How to clear the iOS and Mobile Webkit HTML5 Canvas
Took me forever to find this, but hopefully you found this post faster:
You can either use “context.clearRect(0, 0, canvas.width, canvas.height);” Which I found only worked sometimes, and best in desktop version of the browser.
What I did was the width trick (setting the canvas width to itself clears EVERYTHING), and [...] Continue Reading…
How to setup an Arduino board with LEDs - Blink Morse Code
Got my hands on my first Arduino project this weekend. My friend was nice enough to lend me an Arduino Duemilanove board with a couple starter supplies.
I did a little enhancement on the basic turn an LED on/off by giving it a string of char representing morse code and [...] Continue Reading…
Ruby on Rails strftime() options
Format
Meaning
%a
The abbreviated weekday name (“Sun”)
%A
The full weekday name (“Sunday”)
%b
The abbreviated month name (“Jan”)
%B
The full month name (“January”)
%c
The preferred local date and time representation
%d
Day of the month (01..31)
%H
Hour of the day, 24-hour clock (00..23)
%I
Hour of the day, 12-hour clock (01..12)
%j
Day of the year (001..366)
%m
Month of the year (01..12)
%M
Minute of the [...] Continue Reading…
How to send SMS Text Messages with Twilio from Rails
It was kind of confusing to find a straight forward example on how to send a text message through Twilio using Rails. Here is a step by step guide I wish I had.
Sign up for a free account with Twilio. You will get a good amount of free credit [...] Continue Reading…
How to write HTML and CSS for a Facebook Page
Mashable released an awesome post on this:
HOW TO: Design and Program a Facebook Landing Page
I would keep these 2 important things in mind:
Externally load all your images and css with absolute URLs
Write HTML and CSS just like normal except you can add specific facebook tags in to enhance your [...] Continue Reading…
Smart Way Around IE CSS Hacks & Conditional Stylesheets
If you are ever bothered by adding hacks to your css or including your ie css styles in multiple style sheets than do I have a solution for you.
It’s so simple and awesome.
Step 1) Surround your html tag with conditional statements like so:
<!–[if lt IE 7 ]> <html class=”ie6″> [...] Continue Reading…
JQuery Toggle Hide and Show Link
Even if you’re new to JQuery it’s always mind-boggling how easy it is to do pretty cool UX stuff with it.
Here’s you you make a link that shows and hides content on you page:
$(”#toggle_link”).toggle(
[...] Continue Reading…
How to Save Over $500 When Hiring a Web Designer or Developer
Most people looking to hire a web designer want a kick-ass website that makes them money. They want a return on their investment but are surprised that it definitely costs minimum $2,000 to get a nice website.
So how do you save money and get a website you love that [...] Continue Reading…
Google Super Bowl Commercial - Video
Google released this spot during the Super Bowl titled “Parisian Love” which has been on Youtube for quite sometime. I think it’s amazing and every girl in the room stopped what they were during for the whole commercial and just sighed and said “Awwww” at the end.
Great job showing [...] Continue Reading…
How to Unmute an iPod Touch or iPad
All of a sudden the other day my ipod touch’s internal speaker just decided to mute itself. Either that or I somehow muted it. Couldn’t find how to un-mute it anywhere online but I figured it out. Hopefully this orks for iPad’s as well.
Solution 1: Some people said it [...] Continue Reading…

