ORM for google gears
very psyched to have found this…
Trac: http://labs.urielkatz.com/wiki/JStORM
Intro by the developer:
http://www.urielkatz.com/archive/detail/introducing-jstorm/
code, insights, and observations
very psyched to have found this…
Trac: http://labs.urielkatz.com/wiki/JStORM
Intro by the developer:
http://www.urielkatz.com/archive/detail/introducing-jstorm/
Postgres doesn’t seem to handle imports very well. At least not as gracefully as MySQL. When the primary key sequence of a table gets out of whack, you can reset it via psql directly:
SELECT setval('table_name_id_seq', (SELECT MAX(id) FROM table_name)+1);
But that doesn’t see to solve the problem for my rails application. This does:
ActiveRecord::Base.connection.reset_pk_sequence!('table_name')
I posted this because all roads seem to lead to the former solution and not the latter..
This is an easy way to reset all the keys (from the console):
ActiveRecord::Base.connection.tables.each{|t| ActiveRecord::Base.connection.reset_pk_sequence!(t) unless t == 'schema_info'}
My wife had what I thought was a great idea: a diary for twitter updates.
When my son was born I tried writing a little bit about each day; just regular stuff that happened each day so I could look back on it later. Fun at first, but became kind of a burden to keep up with it and it eventually went away. Tweetary solves this problem for me. I’m already on Twitter, so now I can just record something privately if I want. Plus, the brevity Twitter requires will make it more likely that I’ll continue to use it. Yeah, you could just email yourself, or start a second account, but that wouldn’t allow me to try out the twitter-auth plugin/gem and mess around with the Twitter api, which was the other motivation. The plugin is great and the Twitter api is very straight forward. The whole thing took only a few hours.
It’s free, and you can export whatever you send there, so there’s no risk of losing it. Try it out and see what you think.
A favorite part of the learning process for me has always been submerging myself in something; opening it up and staring at all the pieces and trying to understand how they all work together and what each piece of the puzzle does. While I realize there’s plenty to read, and a lot to learn, I get impatient and need to see everything in context. Even when I was little I would dump all the pieces to see if I could figure it out(whatever ‘it’ was) and decide if I even needed the instructions at all. I’d read the instructions, but only if I had to, or to see if I’d gotten it right. My dad used to laugh at me for this, but it’s always worked well for me.
I found what’s probably the perfect article to dump the iPhone pieces all over the floor: ‘Your first iPhone application.’ It’s about as simple an application as you could imagine but it definitely gives you a taste of what lies ahead. I’ve been through it twice now, and it’s settling in and making sense. I followed along and got the app running on my phone. Very cool. Now that that’s out of my system, I can move along to the details..(the instructions!). I ordered what looks like a great book from Amazon which I hope will facilitate the process of mapping out an application that will allow our concierges to demo products. I’ve always felt that working on something that actually matters - that you can use or actually need - is the way to really gain some worthwhile experience.