Category Archives: Programming

Update github fork

To update your github fork, you need to first clone your fork. Then add a remote branch to the original repo, fetch it, merge it, push it:

Posted in Programming | Tagged , , | Leave a comment

Django project setup with mysql and south

Setting up a Django project with mysql and south in a virtual environment. This is just a quick follow up to my last post about django setup. Edit settings.py and add south to the installed apps. Also set up your … Continue reading

Posted in Django, Programming, Python | Leave a comment

Configuring your system for opencv

After following the installation instructions for opencv on linux you will most likely have to add the directory where the libs were installed to your library path. Create /etc/ld.so.conf.d/opencv.conf and add the directory where the lib was installed. In case … Continue reading

Posted in Programming | Leave a comment

Broke my GitHub streak

I just realized that I broke my GitHub streak on Friday – Damn! So my longest streak is now 21 days. At least now I have something serious to top 😉

Posted in Programming | Tagged | Leave a comment

JavaScript change URL in URL bar without reloading the page

Sometimes it is necessary to change the URL in the URL bar without reloading the page, for example if you load new content via AJAX but still want the page to be bookmarkable. To accomplish this all you need to … Continue reading

Posted in Javascrpt, Programming | Tagged | Leave a comment

Android App Horizontal Ruler

To get a horizontal Ruler between some of your elements just add a view with fixed height and background color. Like so: This will result in a horizontal Ruler of 2dp height.

Posted in Android | Leave a comment

How to deal with android.os.NetworkOnMainThreadException

If you run into this exception you should adapt your code and move your networking out of your main thread. Therefore you create a class that extends AsyncTask. Here a commented example: You can than execute the task like so: … Continue reading

Posted in Android | Tagged , | Leave a comment

Android Studio: Setting up tabs in a TabHost Container

A short tutorial of how to add an popularize a tabhost container in Android Studio. In the design view add a tabhost container. Add/remove the tabs as you need and rename the tabs to something meaningful, prefixing the id’s with … Continue reading

Posted in Android | Tagged , | 1 Comment

Slush’s pool block notification

I wrote a small python script that sends a system notification whenever a new block on slush’s pool is found. Additional it can display your reward for this block. You only need your API token which you can find on … Continue reading

Posted in Bitcoin, mining, Programming, Python | Tagged , | Leave a comment

Github streak till 30C3

I am trying to get a perfect streak on github till the start of 30C3 which is on December the 27th. This means at least one commit a day. I think this is manageable, although I do not want to … Continue reading

Posted in Programming | Tagged , | Leave a comment