How to install pip on macOS
Do you need to install pip on macOS? Easy, simply do the following sudo easy_install pip
Do you need to install pip on macOS? Easy, simply do the following sudo easy_install pip
Did you know that Dutch uses the following list of special (diacritic) characters? áéíóúàèëïöüÁÉÍÓÚÀÈËÏÖÜ While I was working on a python script, I figured I could simply use python’s translate function to “translate” them to their base character. It probably is the worst idea ever, but hey, it is what it is. According to tutorialspoint.com you […]
Great news for all macOS users of MarcEdit by Terry Reese. Since MarcEdit 3 (for macOS) the application comes with its own command line tools! In the past you had to install Mono and a copy of cmarcedit.exe, but now you can “talk” to the App directly. A command line to convert MarcXML to Marc21 would […]
Ever had a folder with 200000 files and needed to split them into smaller folders? If so, the following code can be executed within the directory from your command prompt (terminal) to split into n directories of 10000 files each: i=0; for f in *; do d=dir_$(printf %03d $((i/10000+1))); mkdir -p $d; mv “$f” $d; […]
Whenever I try to start Elasticsearch within Docker on my Mac, I get the following error: [2017-11-07T11:16:00,625][INFO ][o.e.b.BootstrapCheck ] [y4U9OH5] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks ERROR: bootstrap checks failed max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] To fix this problem the […]
This weekend I was running some processes, which created > 100k files in directories. To monitor the process, I felt it beneficial to just check the number of files from time to time. in macOS (and other Unix based Operating Systems) you can count the number of files in a directory with the following shortcut: […]
If you created a multipart/form-data form to upload a file to your server and it gives you an error 1 (UPLOAD_ERR_INI_SIZE) , you need to update the php.ini for your machine. PHP.ini is usually found in /etc/ directory of your server. On my AWS AIM Linux instance the current PHP Version is 5.6 and thus the file […]
I tried to get gettext() translations going on a Ubuntu 16.04.2 server and while the code was solid, there was one major bit missing – the locale was not available on the server. So if you have the same problem – simply run for each locale you plan to support: sudo locale-gen de_DE So what does […]
This page will basically be a home to my various development projects. I haven’t really done much yet, but hope to bring out some blog posts surrounding “OtzPlane” soon. So stay tuned…