Categories
Linux

Modify an initial ramdisk (initrd)

Hi out there! Because modifying an initial ramdisk is something I had to do every once a while and I am pretty oblivious when it comes to “exotic” commands, I will persist the knowledge at this point. First of all, modern linux kernels (like everything above 2.6 or so) use an initrd that is a […]

Categories
Programming

Need ldd on windows?

Hey there, if you might ever need something like ldd on windows to figure out the dependencies on dynamic libraries of some binary, the following link could interest you: http://www.dependencywalker.com/

Categories
MacOS

Got root on MacOS?

Hey you root lovers, no, it’s not a dream, you can haz root on MacOS, too. First, out of security reasons, I recommend to use sudo to do all the nasty stuff on the console. If that ain’t enough, the root users needs to be enabled first. As on most modern Linux distributions, you can […]

Categories
MacOS

MacOS and locked files

Hey peeps around the world, recently I copied some files from one mac to another via network. At first, the access rights on the remote computer were messed up somehow. The nobody user had its finger in the pie. Finally, I’ve made it to copy the files. Now that the files were on my disk, […]

Categories
Linux

UDEV, USB and permissions

Hi peeps, I’ve been stumbling on this so many times, so I decided to dedicate this post to the following issue: If you connect an USB device to your computer, trying to access it under Linux, you might run into permission issues caused by the UDEV daemon. In my case, I was trying to connect […]

Categories
Emacs

Emacs quoted insert

Good morning folks out there, I’ve got another neat little feature of emacs for you today, it’s called quoted insert. I stumbled on this, because I use spaces for code indentation in my emacs, but I needed to insert an actual TAB character. So, in this situation, the combination C-q <TAB> is the way to […]

Categories
MacOS

Sync with Google on MacOS

Hey people out there, daddy’s got a brand new toy to play with. I’ve bought myself a macBook pro and this piece of pleasure impresses me again day after day. I’ve just discovered that one can sync the addressbook app with their google account. Here you go: Edit the file ~/Library/Preferences/com.apple.iPod.plist 1 { Devices = […]

Categories
Programming

GDB command

Hey folks, I’ve just discovered another neat feature of gdb: command. I was in a situation where I needed to watch a certain variable on each breakpoint hit. Generally, this is pretty easy in gdb using its watch-feature. Unfortunately, the variable under consideration was a QString. Now, we already have some experience with those little […]

Categories
Linux

Linux and itunescompilation id3

I was looking for a tool to set the itunescompilation (see here) ID3-field of certain mp3-files. This is necessary for iTunes to recognize that imported files belong to a compilation (or not). Most of the (decent) Linux tools for id3 tagging are not able to perform that task (including EasyTag). Fortunately, I found eyeD3 (see […]

Categories
Emacs

Start Emacs with GDB directly

Hey folks out there, as we all know, Emacs has a very powerful (graphical) interface to our beloved debugger GDB. Until five minutes ago, I used to start a program in debug mode by first starting emacs and then invoking M-x gdb, which can take a long time to navigate to the desired binary. Furthermore, […]