jared tame

there is no spoon. 

firequery is really screwing up firebug

i recently downloaded firequery, only to discover that firebug's element inspector stopped working after a few uses (5 minutes of it working, at best).

it's a cool firefox plugin otherwise, but until it stops screwing with firebug, i'm not reinstalling it.

Comments [0]

hacking jquery's easyslider for faster jumps

easyslider is a terrific jquery plugin for condensing lots of information into a few "slides" that the user can jump to.  demo is here.

the problem is when you have a long list of items to display.  if i have 10 items, and i want to jump from item 1 to item 10, there is a very long delay.  currently, easyslider uses the current formula to calculate how long it takes to do a jump:

var speed = diff*options.speed;

so if there's a difference of 9, it says 9*1000, or 9 seconds for the jump to complete, assuming 1000 milliseconds is your default pause time.

there's a better way to handle this, IMHO.  for example, using the formula below:

var speed = Math.abs(options.speed/(diff/2));

let's use a few examples to show how this is a bit faster.

  • if you jump from item 1 to item 10, your difference is 9.  if you divide by half of that, your jump time is 1000/4.5, or 200 milliseconds.
  • if you jump from item 1 to item 5, your difference is 4.  1000/2 will result in a delay of 500 milliseconds.
i added a check to see if the user clicked on the same item, which can screw up the math a bit:

if (speed > options.speed) { speed = options.speed; } // reset the speed back to normal

you can insert these two lines into the animate function and your jumps will be faster.  the complete function is here on pastie.  as a disclaimer, i threw this together pretty quickly and it's just a quick hack at this point.  i'm sure it could be improved upon and implemented into easyslider.  clearly this particular snippet won't work for abnormally large numbers, like 100.

edit: if the above snippet is too fast, consider trying out this variation:

var speed = Math.abs(options.speed/(diff/(s/2))); // s is the number of items in your list

Comments [1]

bash aliases in snow leopard

don't like typing? setup aliases in ~/.profile (used to be .bash_profile) and restart terminal.

some cool examples for ror devs:

http://www.themomorohoax.com/2009/03/24/bash-aliases-for-rails-cucumber-developers

Comments [0]

more snow leopard fixes: textmate and mysql

these two guides fell pretty short for me, but they are a good start to setting up a ruby on rails stack (mysql being the biggest hassle):

http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard

http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/

and as for textmate:

http://hivelogic.com/articles/fix-broken-textmate-command-arrow-keys-in-snow-leopard/

Comments [0]

make safari shortcuts behave like firefox

from a mac:

system preferences

keyboard

shortcuts

see screenshot for settings:

Comments [0]

server hax0rs

i think our rackspace servers got hacked or something the other day, rackspace never really figured it out either.  a quick summary of what happened:

- tried deploying via capistrano, noticed a weird error "/bin/bash: Exec format error"

- tried to ssh in, even as root, and that wasn't working (some random errors and then getting disconnected)

- tried to login via rackspace console, had some issues there (this is when my blood pressure noticeably increased)

- rackspace did a hard password reset, console worked again -- went into rescue mode and mounted sda1 to get back into our server

- databases were nowhere to be found (and i think the site cached everything, so i didn't notice the database was missing to begin with), luckily my co-founder had a 3 day recent backup so my blood pressure plateaued there.  there were random files and users added, so at this point we think someone managed to get into the server.

- found the binary ibdata left in /var/lib/mysql and downloaded that, luckily it was untouched so we lost no data (rackspace only makes server instance backups of 2gb servers, we use 4gb on everything)

- transferred everything to another staging server, and realized the iphone v1.1 was pointing to the original production server ip, so we had to rebuild the production server from scratch.

- had lots of permission problems when we thought it was a much more serious problem, wasted time looking into mysql sockets when all we needed was to fix the mysql privs and re-configure a few things in apache's httpd.conf

- finally got everything working, and still wondering WTF just happened just before going back to sleep

all of this happened from about 3am to noon, and luckily it looks as though nothing ever happened unless you tried using the app early yesterday am ;)

Comments [2]

graffiti badges updated

just showing a few of our badges in this screenshot, but i settled on the last row. i thought about using progress bars to represent how far a person has progressed visually, but ended up sticking with just numbers for now.

Comments [0]

listia badges are great

i just noticed the new badges tonight on one of the user profiles at lisia. these badges are well designed and intuitive, i love them. going to redesign graffitigeo's over the next week or two, keeping simplicity above all else.

nice work listia!

Comments [0]

if you quit, i'll still take you more seriously

just a quick response to the 37signals post, where i feel they're unfairly discrediting people who decide to take the plunge into a start up full time. that's a huge step to take.  i tend to agree with aaron patzer's stance:

"I was trying to work on this other start up and Mint, and it was too much. I was working essentially two jobs. and I realized one day if I gave it 100% and failed, I could live with that. If i didn't, and it didn't work out, I just couldn't live with myself. [Mint] was an idea I had to try.

So rule number three is quit your job. On March 1st, 2006, I quit my job and I lived off my savings for the next seven months. I worked alone in a room for 14 hours a day, 7 days a week, and I didn't have air conditioning either. During this period, I had a lot of self doubt. I was 25, taking on Microsoft with Microsoft Money and Intuit with Quicken. Every day, I thought this was the greatest idea ever... the next day, I thought 'who am I to do this? I don't have any background in finance... didn't work for Quicken or Microsoft Money.' I think that's probably an advantage, because you'll get to rethink the entire field."

i still don't think rejecting a steady paycheck is an easy thing to do. but it's a commitment to focusing on something, and i wouldn't give that up in a start up.

Comments [2]

grooveshark logo rocks my socks

stumbled on what looks like a newer grooveshark logo design. this looks awesome, and definitely in my top 10 favorite applications of all time.  where's that iphone app at guys? ;)

Comments [0]