When you are sharing a Dropbox folder with a lot of different people at one point someone will eventually delete the shared folder through his/her file manager instead of dropbox, resulting in having half of the files in the subdirectories being gone. As this got so annoying for my use case I wrote a little […]
Preventing OS X from “hibernating” while charging
Although the “deep sleep” feature of OS X can be useful at times to save some battery power, if you’re like me you will probably use your laptop within a few hours anyhow. Sometimes you will have enough with the hour that Apple gives you before you have to wait a minute for it to […]
Windows version of os.walk with long path (255 characters) support
There are these times that you really have to use Windows and in those cases some issues like the 255 path limit tend to occur with network mounts. Luckily, this is fairly easy to solve with a small Python snippet: [python]import os UNUSED_DRIVE_LETTER = ‘x:’ def windows_walk(top, topdown=True, onerror=None, followlinks=False): for path, dirs, files in […]
Batch adding data to Pocket
For some reason I do not understand, Pocket seems to have no support for batch adding articles to the reading list. After looking around quite a bit it doesn’t even seem possible to get a simple add url so you can add them with a little batch script… Since I still wanted to have my […]
Using git for offline svn access
Once in a while I have to work on projects that still use Subversion, it doesn’t happen that often but it does. And while svn isn’t that bad to work with, it does require an internet connection to make commits. Initial checkout Getting the initial codebase from svn: [bash]git svn clone https://some_server/some_repo local_path[/bash] This can […]
Mixing Django with Jinja2 without losing template debugging
At Fashiolista we’ve build nearly the entire site with Jinja instead of the Django template engine. There are a lot of reasons for choosing Jinja2 over Django for us. Better performance (atleast… it was a lot better with previous Django versions), way more options (named arguments, multiple arguments for filters, etc), macros and simply easier […]
Recent Comments