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

Run Celery 4.1.0 on Windows 10

Posted by in Software, Tutorial

TL;DR: Use set FORKED_BY_MULTIPROCESSING=1 on the worker script/shell When running Celery on Windows 10, I got the following error: ValueError: not enough values to unpack (expected 3, got 0) This is quite unfortunate as Windows is supported on “best effort”. A pull request has a change, but it’s not pretty to patch an installation. To get around, you can just define an environment variable:

I only defined it on the worker’s side. HTH, A little experiment: If you find this post and ad below useful, please check the ad…read more

Use Docker Behind Proxy on Windows 8

Posted by in Software, Tutorial

The other day I had to install Docker at work, aka behind a corporate proxy (on Windows 8). While the docker installer is stand-alone and all is good, dealing with the VM is a different matter… The problem popped up when I tried to create a Django image and pip install failed miserably. To get around, you need to create a docker machine:

You also need to pass in the proxy as a build argument to build:

You can also pass the build argument to docker-compose but, in…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

Use Git Bash as Integrated Terminal in VS Code

Posted by in Software, Tutorial

TL;DR:: Install windows git to get bash and add “C:\\Program Files\\Git\\bin\\bash.exe” to “terminal.integrated.shell.windows” in VS Code’s user settings. As I’m trying my hand at developing a node application today, I’m getting frustrated by the Terminate batch job (Y/N) every time I need to restart a script: Since previously I was developing on linux/macOS, I’m used to bash and I figured that it would be nice to have the bash shell in VS Code’s embedded terminal. One of the painless ways to have bash on your system is to install git…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

Find Where Your Network Drives Map to

Posted by in IT

The other day I was at home in a somewhat odd situation; I had a VPN connection but I could not, for the life of me, remember the mappings of the network drives from the other side. Also, of course there was no documentation how to do it. A kind soul showed me how to do it in windows. On your work computer, perform a net use. You should get something like:

Now, all you have to do is write down/email/whatever the network paths (like \\vpn.server.int\Homes\LAUR) and map them from…read more