Skip to content

{ Category Archives } Uncategorized

Vim, python pep8 and pylint.

When you are making your Python code pep8 conformant or want to have a good pylint score and you are using vim, there are a few ways to make it easier and faster. First you need to know a bit about the vim option -q. -q takes a filename as a argument, and vim then [...]

Configuring the Buffalo AP’s as a Bridge

Configuring the Buffalo WHR-HP-54G as a bridge is quite easy, given that you can get Tomato firmware on there. The default Buffalo firmware doesn’t support bridging or, I couldn’t find it. only thing I found was WDS bridging which is not what I want. Install Tomato You need to install an alternative firmware, fortunately most [...]

Setting up Suse LTSP with DHCP on another server

At work, I have been tasked with setting up a Linux terminal server to lighten the load of our exsisting Windows server. LTSP (Linux Terminal Server Project) is quite a nice piece of software. It makes good use of PXE netbooting, but it should also work with RDP. Get Suse Download the openSUSE-Edu-KIWI-LTSP-live-unstable.i686 iso from [...]

The G1 Experience

Yesterday when I got home there was a nice present waiting for me. My G1 Phone arrived! I ripped open the packaging and found a phone that was smaller than I expected from the images from the internet. First tries Popping in the sim card and the battery was easy, turning it on was a [...]

Wichteln, aka, random christmas presents!

Why i hate the apple mighty mouse

I’ve been explaining myself a lot lately for my deep hate for the apple mighty mouse, so here is are a few points on why i hate it. Scroll wheel gets dirty and is hard to clean I have never had a mouse with a scrollwheel before where the wheel needed cleaning. Apple doesnt give [...]

Default paramater values with python

Default argument values for functions are a nice shortcut in python. They save you from writing many wrapper functions and make the code more readable and also easier to use. They can be used wrong though: >>> def foo(a=[]): … a.append(‘bar’) … return a … >>> foo() ['bar'] >>> foo() ['bar', 'bar'] Like described in [...]

Vim remap ex-mode key

I’ve become in the habit to miss shift-a in vim (edit at end of line), and instead pressing shift-q which brings you to the ex-mode. To get out of that, you need to type the command “visual“. Quite long and annoying. Quick look at the help pointed me to the vimrc_example.vim (:help vimrc_example.vim). And this [...]

Having fun with IRC daemons

Sooo.. after a talk with my boss, I decided to implement one of the things he once did. An IRC server module which on connect gives you a random 3L1t3 hackers handle. 1245 -!- Code-dUde [] has joined #darkwired 1245 -!- fast-Fate [] has joined #darkwired 1245 -!- wet-chillA [] has joined #darkwired 1245 -!- [...]

New IRC daemon

Today I switched the IRC Daemon on darkwired. From old unreal to the shiny new inspircd. Inspircd is pretty easy to configure although it is a pretty big config, it is quite easy to understand and it did not take long to get it up and running. Big plus on that one! Ofcourse no first [...]