So, a few things about using Citrix under Ubuntu (7.04): Don’t use the client linked from your Citrix login page, it’s probably version 7 but the latest is version 10. Go here, instead You will need Open Motif. Use synaptic to search for ‘motif’. Install limbotif3, libmotif-dev, and motifnls You may need to set up [...]
Posts tagged code
Observation: Code cleverness == Bad
This is inspired by Ruby, but could apply to Perl as well. Situation: class with dynamic, on the fly class method definitions of the form What this does is defines some class methods role1_email_addresses, role2_email_addresses, etc on the fly. Works perfectly, until the first element returned in users is actually an empty email. This is [...]
Fesity Ubuntu Vs. Edgy Ubuntu
Yesterday I took the plunge and installed the Feisty Beta of Ubuntu on the laptop. It was a long, slow process — I installed via “update-manager -d” rather than from CD. What follows is a short analysis and rumination on the ordeal.
Forgive me, Father, I have sinned…
I have written code that looks like this. foreach ($row as $k => $v) { if (is_numeric($v)) continue; $row[$k] = preg_replace(“/([\\xC0-\\xDF])([\w|\W])/e”, “‘\\1′.chr(ord(‘\\2′)-64) “, $v) ; } Incidentally, had to do som strange copy/paste action to get that line to not break wordpress. And FWIW, that preg_replace effectively converts windows-1252 characters out of the unused overlap [...]
Cockrock gets a bad rap
You know, it really does. Autograph – Turn Up the Radio is just an excellent, nothought song. I mean, do you always want to analyze the lyrics or the intricacies of the melody/harmony/counterpoint? Sometimes you just want some Whitesnake or Ratt to rock out to. “Big, dumb music” as one of my buddies calls it. [...]
A couple WordPress 2 configuration things
Some things I’ve discovered about WordPress V2: Use the internal editor to edit your .htaccess. If you do it outside WP, appparently you lose your changes the next time you do ANY editing or posting. Seems like a bug that it resaves the .htaccess each time you post or edit a post. Dunno. This ends [...]
SQL Server and IN() Statements = Suck
Potentially. Example: SELECT t.* FROM table t WHERE t.id IN (SELECT DISTINCT f.id FROM table f, table e WHERE f.something = e.somethingelse AND f.someotherthing = e.somethingdifferent) In Postgres and MySQL, IN seems to be fairly efficient and treats the subselect as a simple list. In SQL Server, it appears that IN does some kind of [...]