Laur IVAN

Redis on Windows – Save RDB but Not Able to Persist

Posted by in IT, Tutorial

TL;DR: My windows service wasn’t installed properly. Change the config file to point the DB to an accessible directory and reinstall the service. When trying to build a perioduc Celery task, I got the following error with Redis on Windows (running as a windows service): redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. This is quite unfortunate because the error doesn’t show…read more

WordPress with HTTPS on Dreamhost and CloudFlare

Posted by in IT, Tutorial

Today I’ve got my blog work over HTTPS, including admin. Woo-hoo! Below are the steps I used to do it. Prerequisites My configuration is as follows: Hosting on Dreamhost.com Use CloudFlare free account WordPress 4.7.1 at the time of writing Initialisation From the Dreamhost Panel, select Domains > Secure Hosting: You’ll be presented with a panel to select the type of certificate. I chose to use Let’s Encrypt because it’s free: Once you select Let’s Enctypt SSL, you’ll have to select the domain, accept the T&C and click Add Now:…read more

Copy File from Local Desktop to Remote Resktop Connection

Posted by in IT

TL;DR: Drag-and-drop doesn’t work. Copy&paste does! Before yesterday, my way of moving files between my local desktop and a remote one using MS Remote Desktop Connection involved a 3rd party service like Dropbox or email. Then, a kind soul took pity on me and showed me the proper way. In his words: Drag and drop doesn’t work but copy/paste does. Simple, but veeerrryyy effective! Note I’ve only tried this so far between 2 MS Windows machines, with some large-ish (30M) files. A little experiment: If you find this post and…read more

Multiline Regex in Visual Studio Code

Posted by in IT

Setting up a multi-line regular expression in VS code is done by explicitly matching the CR/LF characters using \r?\n. For example, if I want to find all lines starting with a [, including subsequent blank lines, I can do:

HTH, A little experiment: If you find this post and ad below useful, please check the ad out :-)

Move SQL Developer Data from the Roaming Profile in Windows

Posted by in IT

TL;DR:: Set up IDE_USER_DIR. I have to keep my roaming profile on a diet and this means moving a bunch of default directories around. The latest victim is SQL Developer According to this post, the environment variable to be changed is IDE_USER_DIR. From the post: According to documentation, the IDE_USER_DIR is picked up automatically if set, so there should be no need for an additional conf file set statement in any recent SQL Developer release. If this doesn’t work, you may try editing config files around as described in the…read more

AppleIntelSKLGraphicsFramebuffer – Kernel panic with Intel530

Posted by in Hardware, IT

TL;DR: My solution was to just set the DVMT (Dynamic Video Memory Technology) to 64M. YMMV though… Yesterday I decided I want to start building a hackintosh to replace my old mac mini. My system has the following components: Asus Maximus Hero VIII Alpha 16 GB of RAM I6700k Some SSDs, HDDs and a NVMe I chose not to get a graphics card since the nice ones are both expensive (600+ for a GTX1080) and unsupported (there are reports of RX480 working-ish). So, for the time being I’m stuck with…read more

Set Different Gradle Configurations

Posted by in IT, Tutorial

TL;DR: create a global gradle.properties file (in <HOME>/.gradle or GRADLE_USER_HOME if defined). Place there the system specific configuration. The other day I had the unpleasant surprise that Android Studio replicated my proxy settings into gradle.properties and got committed to Git. Including a password (which has since became obsolete). Since my other environment doesn’t use a proxy, I got an error there. Now, the question became: How do I create a single project gradle settings file which would allow me to run smoothly in both places? Although I thought of a…read more

Migrate Chromium and Keep all Settings

Posted by in IT, Tutorial

TL;DR: Backup App Data\Local\Chromium on your old machine, copy it to your new one and uncompress (in the same place), install Chromium, profit. With the migration to a new computer, I’ve managed to keep all my Chromium settings. The steps I did are the following: On the old computer Note the chromium version you’ve installed Go to App Data\Local Archive the Chromium directory Note: this might be huge! To reduce it, clean the Chromium\User Data\Default\Cache Note the plugins (optional) – this might be useful if you have plugins depending on…read more