Archive for October, 2006
Top 10 Things That Digg Got Wrong
Despite the fact that I read Digg all day, there are several glaring things that are just plain retarded, and am very confused as to why they haven’t been fixed.
0. It does NOT keep me logged in. Why? I visit digg several times a day, everyday. Why can’t it keep me […]
House of cards
Weekends are programming killers, I swear. Friday I got pretty deep into rewriting the methodology to display threads dynamically that reside above your current threshold. Now monday rolls around and I’m trying to get back into it, and I’ll be damned if I don’t even remember where I was. What was I […]
Who wants to donate!
I’m not quite sure why we never did this before … likely for the same reason that I’m still not holding my breath for it to work. Either way, if for some really strange reason you’d like to help us buy ramen while we’re living in our darkened squalor, hacking mercelessly and living on […]
Keeping Your Lines Wrapped When Using the Pre Tag
The pre tag is great for taking text written and formatted somewhere else and making sure it looks right (ie, as the author intended). It’s commonly used for code snippets as it maintains line breaks and formatting (all those tab and newline characters).
I was pulling textual data from a database for a report and […]
Getting the Interface Right
Like Brian, I’ve been frustrated by something inane lately, only it doesn’t have to do with code that’s not working. It’s simply that something doesn’t feel right about my interface. I have a series of navigational tabs on the top, then a column of content (a graph that consumes the width of my […]
When Codings got you down
I’ve spent the last 3 hours debugging the most inane little bug. Its driving me crazy. I have a series of divs in the normal flow and for some reason there’s this unexplainable block of blank space between them. There’s nothing in the CSS that is setting any kind of top or […]
Smart Grouping Using XSLT
XSL is a relatively small language, yet it can do some pretty neat things. I’m glad for that, as I thought I had hit a road block and was going to have to abandon all hope.
If you have some XML that needs to be grouped uniquely by something, you can use an XPath expression […]
How to make a comma seperated list that looks nice
Several times throughout the code, I want to print out a list of items, seperated correctly by a comma. Example:
Users browsing this thread: briantech, spinlock, bobjones, jamesgreer, nancyreagan
It would be painfully easy to just iterate through your array, printing out the array value followed by a comma. The problem with that though, is […]
Salting SHA1 Passwords
It was brought to my attention during a discusion of passwords that apparently SHA1, by itself, is not adequate for protecting passwords. Namely because for 5 or 6 letter passwords it can actually be forced somewhat quickly enough that it would be worth it, but in addition there are reverse lookup SHA1 databases out […]
CSS Helper: Trouble (TRBL)
Brian’s previous post reminded me about a mnemonic I use to remember how CSS borders/margins/paddings are defined (surely there’s a word for what I’m describing). Anyway, in a declaration such as:
#wrapper {
margin: 0px 0px 0px 0px;
}
The margin-top, margin-right, margin-bottom, and margin-left are all 0px, and are defined in that order.
To remember this, […]
Search
You are currently browsing the Code in Focus weblog archives for October, 2006.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.

