This morning I noticed something new in my gmail — a perculiar looking button style. From what I can tell, Google has decided to abandon the browser default buttons and build their own button using DIVs. The DIVs are layered like matryoshka dolls, complete with hover and on key down effects. Surprisingly to me, they… Continue reading Google Imageless Buttons
Category: Technology
Rails new vs build
@article = Article.new Creates a new instance of a Model. @comment = @article.comments.build Just like the new method, but by assocation proxies (not for Models). It automatically sets the foreign_key. The other thing is that when you are doing a “has_one” the build looks like this: @comment = @article.build_comments I am writing this posts because… Continue reading Rails new vs build
NPR on the HTC Touch Pro
To get the NPR – KQED radio stream to work with my HTC Touch Pro, I had to down the CorePlayer. Then from the KQED website, I download the MP3 stream, which is a .pls file. Open the file in CorePlayer and wahla, streaming NPR radio on the HTC Touch Pro. It took me a… Continue reading NPR on the HTC Touch Pro
Firefox Input Background Image
Has anyone noticed this? When you put a background-image into an input field in Firefox Mac/Win, the input borders get distorted (it’s darker…) I don’t have a fix for it, actually, I am not even sure it’s broken. Also, the blue highlight the input field gets when it is in focus, does not appear when… Continue reading Firefox Input Background Image
Techniques To Improve Your User Interface Designs
Smashing Magazine has this awesome article on UI Designs: 10 Useful Techniques To Improve Your User Interface Designs. This has to be one of the most informative and well thought out web design article I have ever read. Although I am not a web designer, these are the kind of things I notice when I… Continue reading Techniques To Improve Your User Interface Designs
IE z-index anchor link bug
I was working on a client’s website and I discovered this strange bug in Internet Explorer that I am unable to reproduce ( too lazy to go through all the effort ), but I swear, it’s the strangest bug I have ever seen. Basically, I have a bunch of links that are set as ‘display:block’… Continue reading IE z-index anchor link bug
fix mac os x terminal ssh delete key
Whenever I use terminal to ssh into my ubuntu linux setup on slicehost, my delete key turns into a “foward delete” key. This was too much for my brain for handle because deleting the character to the right instead of the left seemed so unnatural. After about 30 minutes of googling around, I finally found… Continue reading fix mac os x terminal ssh delete key
Bricka Bracka Flash Flex Development in Sacramento
A long time ago I wrote about the perfect work place. Today I went to a web developer meetup at Bricka Bracka, and it is as close to the perfect work place as I have ever seen. 1. The office is a huge art studio with plenty of room, high ceilings, and plenty of couches.… Continue reading Bricka Bracka Flash Flex Development in Sacramento
Can’t use “type” as a database column name in Ruby on Rails
I was writing some Ruby on Rails code the other day, and one of my column, which I had named “type”, was not saving. After some googling, apparently you can’t name your database column “type”. The word “type” is part of the magic field names, so it is reserved. I thought this is kind of… Continue reading Can’t use “type” as a database column name in Ruby on Rails
How to use the linux mail command
The other night I was messing around with the mail command on my setup because I wanted to send e-mails. Some how I made it so that every time I opened Terminal, it says “You have mail.” It was very annoying, but I did not know how to get rid of it. After about an… Continue reading How to use the linux mail command