- Disgusted with the #iPad. The name is horrible. Overpriced #touch and you need #wifi to do anything useful. But seriously, Will it #blend? #
- @alexobenauer @timftutt @strife25 Good job guys. Looking forward to the upcoming presentations. #
- @VTUCONCERTS Rap & Hip-Hop. Where're my T.I. and Kid-Cudi concerts at? :O Luda would be nice too :] in reply to VTUCONCERTS #
Monthly Archives: January 2010
Twitter Weekly Updates for 2010-01-24
- @aaaaaaaali Please do tell more :] in reply to aaaaaaaali #
Spring Schedule 2010
Twitter Weekly Updates for 2010-01-17
- @dearbleachh How'd you end up in there? (^_^) in reply to dearbleachh #
- There isn't anything wrong with using #copy and #paste. Just as long as the code works. hah. CTRL+F to the rescue. #
- @TheMauricio You forget that you'll soon be doing programming classes 😛 in reply to TheMauricio #
- @Gordonswaby Yeah man, where have you been? in reply to Gordonswaby #
- Brushing up on #namespaces in #php. #in2010 I want to learn a secondary programming language full time. Thinking about going back to #ror #
- Teaching a 50 year old how to signup for Facebook and use his wordpress blog. This is gonna be a long day >_< #
- Time for gas! Who's paying? 🙂 http://tweetphoto.com/8521396 #
- @BrianLieberman What exactly are "disco fries"? Sounds like midnight bowling. in reply to BrianLieberman #
- Working with a client that has over 200 icons on their desktop. Quite impressive if you as me. At least they use #ff and #chrome. #
- @dearbleachh (>_<) You're such a druggie 😛 I want to come visit. Where which are you at now? in reply to dearbleachh #
- @Gordonswaby People are just used to it being #small 😉 in reply to Gordonswaby #
- Keeping track of all my earnings this year. #googledocs to the rescue! #
- @Chaddyr23 You're funny. Besides, you've always been one of my main supporters 😀 We'll talk in 5 years and I'll be living in your house lol in reply to Chaddyr23 #
- @DanielHellier Fire away! I'm listening :] in reply to DanielHellier #
- Yay! Virginia Tech is sucking the money from my bank account. Paying for college #sucks #
- @DanielHellier I've been on for the majority of the day. Try adding me again? I'll DM you my handle. in reply to DanielHellier #
- @Chaddyr23 Nope, I get back to campus on Saturday. How was your first week of classes? in reply to Chaddyr23 #
- Windows Key + Directional arrow is one of the best new features of #windows7. Definitely brings multi tasking to a new level. #
- I haven't used an Internet Explorer css hack in a couple of years. Is my #xhtmlcss that solid? #ithinkso #
- RT @CarMax is giving away a car. http://carmax.com/tweet for rules and details. RT and follow to enter. #
- Just upgraded @pixel2life to the latest stable #apache, #mysql, #php and #cpanel. Not to mention multiple #wordpress blogs. Fun. #
- @matthewpacific Well you can always just show her this tweet 😛 in reply to matthewpacific #
- I'm definitely not a #jquery guru or an user interface expert, but I always find the proper tools to provide an awesome solution :] #
- @DanielHellier Yeah sure thing man. Just hit me up on MSN. cha0sk1ng [ at ] hotmail in reply to DanielHellier #
- @avowtostay That was insane. My dad told me about the same thing. Your heart must have been ripped out of you. #cnn #news #haiti in reply to avowtostay #
- Watching the news. The situation in #haiti is just getting worse. They're now dumping bodies into mass graves because there's just no room. #
- @DanielHellier No one cares about IE5 =/ You can barely find developers who still care about #ie6 in reply to DanielHellier #
- @DanielHellier You can use this html though. <!–[if IE 5]><style type="text/css"></style> <![endif]–> in reply to DanielHellier #
Working with funny JSON variable names
I was working on an User Interface (UI) that played with some JSON data sitting on the page. One of the variables had a dash (-) in the name which would obviously put a syntax error on the page.  After a bit of playing, I came up with the solution. I hope it helps someone. Obviously this naming convention is through whenever working with any Javascript object.
Snippet
var user = { "name": "Jamie Chung", "has-avatar": false };
alert ( user.name ); // Jamie Chung
Broken Code
alert( user.has-avatar ); // Error on page because has-avatar is invalid
Working Code
alert ( user["has-avatar] ); // true

