Closure Compiler: Checking Types
Last week, Google open sourced the Closure Compiler. Jared and I were working on this compiler during our time at on the Gmail team, and you can imagine how happy we were to see this fantastic tool out. My main contribution to the project was the design and implementation of the type system. To use… Read more
iPhone Authentication with Facebook Connect
Here at kaChing, we have multiple platforms to access your Virtual Portfolio. Two of those are the iPhone and Facebook. When we released our iPhone app, we wanted Facebook users to easily login using their Facebook credentials. Facebook provides an iPhone library that handles sessions/authentication. To show a login dialog: FBSession *session = [FBSession sessionForApplication:myApiKey… Read more
Wanted: Software Engineer
Join a stellar engineering team whose team members worked on massive backend infrastructure for social networks (Ning, LinkedIn), Gmail’s high performance frontend, the Native Scala Compiler with Prof. Odersky and more. We are test-driven and have a continuous integration process that lets us achieve a 5 minute release cycle! We need engineers to help us… Read more
MySQL Unicode Escape Sequences
While debugging some character encoding issues today, I decided it would help to directly populate a database table with some test strings containing non-latin characters. I hoped the mysql client would, by chance, support C-, Java- or Ruby-style Unicode escape sequences. Alas, it does not. A couple of searches later, all I’d found was my… Read more
Easy to get burned by Hibernate
I got burned by Hibernate the other day. This code throws a ClassCastException; can you see what the trouble might be? return (Integer) session.createSQLQuery( “select count(*) ” + “from trades ” + “where date >= :from and date < :to”) .setParameter(“from”, converter.toString(from)) .setParameter(“to”, converter.toString(to)) .uniqueResult(); Under the covers Hibernate infers the result of the query… Read more
New kaChing is live! time to invest like a Genius
Most Emaild article at NYT! CNet NY Times LA Times Forbes Reuters Mercury News Investment News Prolx Gigaom MarketWatch Number one at Goolge Businesses Section