Category Archives: Uncategorized

Printing to a remote printer

Every now and then I’ll enter the computer lab only to find that all the computers are being used – this usually happens when I urgently need to print something before I miss the bus.
Thankfully, the system admins have allowed me the wonders of ssh access. So, printing is relatively simple:
Copy the file to be [...]

KDE DPI Issue

Simple fix:
in /usr/share/config/kdm/kdmrc
Add the “-dpi ” argument to ServerArgsLocal in [X-:*-Core].
Not sure what this does to dual monitor setups.

Sony NWZ-E438F + Video

I recently purchases a Song Walkman which has great video capabilities – provided you know how to encode the video.
It’s not very hard, simply chuck the video into handbrake and let it churn out a Sony Walkman compatible video:
handbrake -i $input_name -o $output_name.mp4 -f mp4 -e ffmpeg -E faac -w 320 -l 240 -b 500
If [...]

A tired mind cannot comprehend pointer arithmetic

One of the problems in K. N. King’s C Programming: A Modern Approach asks the reader to write a function that takes a string and, using two pointers, reverses it.
I spent about two hours fighting against this relatively simple problem. Why? Because the part of my mind that understands with pointer arithmetic [...]