Skip to content

Ramblings

Musings of Matt Williams
  • Blog
  • About
  • Chibi
  • Ruby Blender
  • Archives
  • Log in
 
Less
More
Trim
Untrim
« Older
Home
Loading
Newer »
Archive for August, 2008
29Aug08 $0.23 Skiddoo
administrivia
0 Comments

Just for grins and giggles, I went to see how much I’ve earned from scribefire thus far — $0.23 cents — they’ve determined that 218 impressions have been viewed.

That said, I’m currently at about 1520 views for the last three weeks.  I did the scribefire on the 25th, I’ve had ~400 views (according to wordpress) since then.  I expect that a good bit of the traffic is feed related (hence no ads), but still, as an experiment, it means that at my current rate of views I make $1/month, which is 20% of my hosting fee — that said, I’d like to plug my provider, DrakNet
(if you click on that link and sign up, I do get an affiliate fee). They’ve been simply wonderful to work with. Their tech support is great and they really are friendly and go the extra mile. I can’t recommend them more highly. Additionally, they are carbon neutral, if you’re into that sort of thing.

29Aug08 CSS tooltips using CSS Sprites
css gotchas Uncategorized web design
2 Comments
Thought Bubbles!

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 image, so you needn’t use the “bubbles”.  So, here’s how I did it, with the caveats/gotchas. Continue reading ‘CSS tooltips using CSS Sprites’

29Aug08 Blogs I’m excited about…
Uncategorized
0 Comments

Earlier I was going through rss feeds when I noticed that a blog had been updated. I thought to myself “Oh, cool! they’ve updated.” It struck me that there are certain individual (as in written by an individual) blogs which I follow and am excited when I see posts. Here’s a partial list — bear in mind a number of blogs (most, in fact) I read through aggregators. While there are some really nifty ones there, I’ve left them out. Also I’ve left out “magazine” blogs, however cool they may be. Well, with one exception, which I miss, and I believe others miss a lot.

In no particular order, I present….. (with links to feeds):

  • Dion Hichcliffe’s Web 2.0 Blog
  • Creating Passionate Users
  • Presentation Zen
  • Software by Rob
  • Muness
  • 24slash7
  • Creative Generalist
  • Hackity.org
  • Igvita
  • Veerle’s Blog

Does anyone have feeds like these that they love to see?

28Aug08 CSS “width” gotcha
css gotchas web web design
0 Comments

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 of containing block

This made life interesting while working on a css sprite (more on that next).  I kept wondering why it bled into the next sprite….

I had thought it was the total width of the element.  Foolish me.  Now I know and……

27Aug08 Programming philosophy in the oddest of places
philosophy programming
2 Comments

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 to be robust and able to respond to most anything, barring, of course, Fear, Fire, and Foes.

So how do we go about doing so?  For starters, there’s testing, whether BDD or TDD.  Boundary conditions and fencepost errors frequently cause grief.  And any time the programme interracts with the “outside” there’s room for error — whether it be bad data or an I/O error.

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

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

26Aug08 Mini Sagas
Just Enough Programming mini sagas
2 Comments

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 some ways they might be like koans or zen stories.  Here’s one I’ve written:

Once there was a developer who wanted to make the new killer app.  He plotted and planned for months, seeking perfection.  He planned for infinite scalability and flexibility.  Then he coded.

Another developer wrote code that was just enough to solve his problem.  And the problem of millions more.

26Aug08 Sometimes More is Just Enough
Just Enough Programming programming
0 Comments

In the quest for simplicity and maintainability, sometimes we need to add components.  It seems counter intuitive, perhaps, but sometimes it’s true.

As an example, I once came across a project which had multiple queries, each of which contained over 40 lines of SQL code.  I don’t know about you, but 40 lines of code for a single query smacks of being overly complex. The query was too long for the database to optimize and far too long for humans to maintain, let alone understand.

In this case, to “simplify”, the queries were perfect candidates for database views and stored procedures.  Thus, by adding components to the architecture, we’ve actually made it simpler and easier to maintain.

26Aug08 Why my code is broken….. (break my code redux)
gotchas programming ruby
0 Comments

Yesterday, I posted an article entitled Break my code, please, wherein I posted a very fragile piece of code, with the challenge to find ways in which to break it.

What follows is a discussion of the code and why it is bad/fragile/easily broken…..

Continue reading ‘Why my code is broken….. (break my code redux)’

25Aug08 Rails Project Setup Script
rails
1 Comment

I got tired of typing the same commands all the time and/or looking up urls for plugins.  Hence this script….  Yes, I know it’s been done before, but this does what I want (for now; I’m sure I’ll edit it).

It does the following:

  • Creates rails instance (optionally setting the database, etc.)
  • Installs rspec & rspec-rails
  • Installs acts_as_statemachine
  • Installs restful_authentication
  • Modifies routes.rb
  • Adds an observer
  • Adds email settings

You can see the script below the cut or download it here:start-rails

(Edit: Removed an un-escaped pair of parens)

Continue reading ‘Rails Project Setup Script’

25Aug08 Testing Scribefire
administrivia
0 Comments

I’m testing scribefire to see how well it works…. Nothing to see here, move along.

 
Browse Archives »
  • administrivia (6)
  • books (1)
  • Computers (2)
  • css (3)
  • cygwin (1)
  • eating crow (1)
  • games (1)
  • glassfish (1)
  • gotchas (19)
  • howto (2)
  • idiocy (3)
  • javascript (4)
  • jboss (6)
  • jruby (8)
  • Just Enough Programming (7)
  • life hacking (2)
  • mini sagas (1)
  • miscellany (1)
  • monitoring (1)
  • mysql (1)
  • philosophy (4)
  • php (1)
  • programming (17)
  • rails (7)
  • rants (2)
  • refactoring (1)
  • ruby (14)
  • tips (10)
  • tools (2)
  • torquebox (2)
  • Uncategorized (9)
  • UNIX (1)
  • utilities (3)
  • web (5)
  • web design (3)
 

Latest

  • cygwin and torquebox and rvm, oh my!
  • JBoss Client Jars for Messaging
  • rsh hates nohup
  • Torquebox and Cygwin: Take I
  • Rails & JRuby in a Jar
  • Fractal Terrain Generation
  • Quick thought on programming and distractions
  • Using jnp as a JBoss heartbeat
  • z-index and events
  • JBoss port confusion

Flickr

layout_newm3headerTerrain Testa

Blogroll

  • Development Blog
  • Documentation
  • Plugins
  • Suggest Ideas
  • Support Forum
  • Themes
  • WordPress Planet

Search

Browse by Category

  • administrivia (6)
  • books (1)
  • Computers (2)
  • css (3)
  • cygwin (1)
  • eating crow (1)
  • games (1)
  • glassfish (1)
  • gotchas (19)
  • howto (2)
  • idiocy (3)
  • javascript (4)
  • jboss (6)
  • jruby (8)
  • Just Enough Programming (7)
  • life hacking (2)
  • mini sagas (1)
  • miscellany (1)
  • monitoring (1)
  • mysql (1)
  • philosophy (4)
  • php (1)
  • programming (17)
  • rails (7)
  • rants (2)
  • refactoring (1)
  • ruby (14)
  • tips (10)
  • tools (2)
  • torquebox (2)
  • Uncategorized (9)
  • UNIX (1)
  • utilities (3)
  • web (5)
  • web design (3)

Browse by Tag

  • 1.2.6
  • 2.1
  • administrivia
  • autotest
  • books
  • controller
  • css
  • feed-normalizer
  • feeds
  • gotchas
  • idiocy
  • irb
  • Java
  • javascript
  • jboss
  • jruby
  • just enough programming
  • mini sagas
  • open-uri
  • philosophy
  • php
  • pragmatism
  • programming
  • quotations
  • rails
  • rants
  • reading
  • restful_authentication
  • rspec
  • rss
  • ruby
  • rubygems
  • scriptaculous
  • setup
  • simplicity
  • sprites
  • statemachine
  • tips
  • treetop
  • utilities
  • web
  • web design
  • websense
  • yaml
  • zentest

Browse by Month

  • June 2012 (1)
  • November 2010 (1)
  • August 2010 (1)
  • June 2010 (1)
  • March 2010 (1)
  • September 2009 (1)
  • August 2009 (2)
  • July 2009 (2)
  • May 2009 (1)
  • April 2009 (1)
  • February 2009 (4)
  • January 2009 (2)
  • December 2008 (2)
  • November 2008 (5)
  • October 2008 (3)
  • September 2008 (12)
  • August 2008 (28)
 
 
  • Blog
  • About
  • Chibi
  • Ruby Blender
  • Archives
  • Log in
 


Theme Design by Jay Kwong | Powered by WordPress and K2

 

Home Top Archives Entries FeedComments Feed