Category Archive: Computers

Sep 11

universal cat redux

I have a neglectful relationship with inject. That is, I neglect to remember that it exists, having worked for so long with other languages which are “unfamiliar with the concept”. Amos King’s blog entry on Inject & Me – BFFs got me to thinking that ucat (see cat on steroids (or cat on a hot …

Continue reading »

Sep 10

cat on steroids (or cat on a hot ruby roof)

I got to thinking about SuperIO and how it could be used as a swiss army chainsaw to open files, whereever they might be on the net.  From there, my fevered mind got to thinking about cat and how the two could be used together.  That said, I present ucat — a universal cat, if …

Continue reading »

Sep 08

Random Quotes

Quotes can provide inspiration or food for thought.  In this entry, I’m examining the use of open-uri and feed-normalizer to get a random quote which could be used as either a thought for the day or a “fortune” replacement.

Continue reading »

Sep 05

A “grue”some look at Statemachine and Treetop

state_diagramme

In this blog entry, dear reader, we examine the statemachine and treetop gems via an old standby, a Zork imitation.  And, despite the title, you won’t find a grue.

Continue reading »

Sep 05

Converting a rails app from 1.2.6 to 2.1

This is the first in a series(???) of posts detailing things that I’ve found in the process of updating rails (and other plugins/gems) for an application.  Due to politics, it’s using JRuby, running inside a JBoss container, with a Derby backend. Things which are getting updated include: Rails ActiveRecord-JDBC ActiveScaffold ActiveScaffoldExport Goldspike is being replaced …

Continue reading »

Sep 02

A language a year

The Pragmatic Programmers have proposed that developers learn a language a year.  I agree that it’s very important to keep abreast of changes in IT and that by learning new languages we can keep our minds sharp and bring new ways of doing things into old languages.  However, I have to wonder if this learning …

Continue reading »

Aug 29

CSS tooltips using CSS Sprites

Thought Bubbles!

For a project I’m currently working on I wanted to make some “bubble” tooltips.  In order to cut down on the size/number of images, I’m using css sprites.  A quick google reveals that nobody else has (at least on the first page) put together tooltips using sprites.  The technique will work with any sort of …

Continue reading »

Aug 28

CSS “width” gotcha

I found out something interesting today.  Per the W3C, the total “width” that a block element uses is: If ‘left’ or ‘right’ are given as ‘auto’, their computed value is 0. The following constraints must hold between the other properties: ‘margin-left’ + ‘border-left-width’ + ‘padding-left’ + ‘width’ + ‘padding-right’ + ‘border-right-width’ + ‘margin-right’ = width …

Continue reading »

Aug 27

Programming philosophy in the oddest of places

Assume Nothing! Trust no one! Paranoia is good! (in moderation)

Today’s thought for the day from A Word A Day is: Not being able to govern events, I govern myself. -Michel de Montaigne, essayist (1533-1592) This struck me as being very much the idea behind defensive programming.  Because we don’t know what sort of events life will throw at a programme, we need for it …

Continue reading »

Aug 26

Mini Sagas

One of the manifestos from ChangeThis this month is about Mini Sagas.  The author, Rajesh Setty presents the idea that writing mini sagas, which contain exactly 50 words, expands your creativity — following on the idea that Creativity Loves Constraints. Typically the mini saga expresses some sort of message or value — I think in …

Continue reading »

Older posts «

» Newer posts