fleshyorgans

Journal of a software engineer with a romantic heart

ATI Radeon 9600 with Compiz and Dual-Head

This concerns configuring an ATI Radeon 9600 under Linux to be dual head and run compiz-fusion. I’m not going into detail on what options make compiz run faster, just how to get two screens working well with compiz. I’m posting this because I had a hell of a time finding all the info on it. [...]

Vim awesomeness.

If you use Vim as your text editor, try this :TOhtml This will generate an HTML version of your source code, complete with color scheme. It’s pretty sweet. Example here (opens a new window) This just tickles me.

Odd SQL Server errors

Maybe someone will find this post and explain to me why SQL Server behaves like this. My question isn’t “how should I rewrite this query”, but “why does SQL Server act like this”. The behavior I see is that for some reason it’s easier to do TOP bignumber than TOP smallnumber. In my instance, TOP [...]

Ruby Braces vs. Do/End blocks

When parentheses are important: So, braces have higher precedence over do/end blocks. According to Pickaxe, when calling a method with no parentheses, the braces will be applied to the last method parameter, do will be applied to the invocation. A Very Contrived Example: def string_to_integer   if block_given?     yield.to_i   else     0   end end a = [1,2,3] [...]

Ruby and processing character sets

Posting this because it’s been difficult for me to find resources on how to convert between different character encodings, such as Windows-1252 (cp1252) to UTF-8 or ISO-8859-1. It took me about a day to discover some of these libraries. Maybe I wasn’t searching for the correct keywords — dunno. require ‘iconv’ require ‘charguess’ # Reads [...]

Unix command line: Kill by pattern command

The following attempts to kill based on a pattern you specify. I wrote this because our network gets messed up while Amarok is attempting to load files, which causes it to hang and leave various pipes open. By specifying “amarok” where it says “pattern”, below, I can kill all the open Amarok processes in one [...]

Jinzora Media Jukebox – Impressions

I installed Jinzora, a music organizer/streamer/jukebox application, today. I have some interesting impressions. Quick summary: I’m not going to use it because it’s technically deficient. This isn’t really a comprehensive review, just an exclamation over the techniques involved in the implementation of the software.

« go backkeep looking »
  • Follow me

  • Twitter

    Powered by Twitter Tools

  • RSS Tumblr Posts