{"id":976,"date":"2009-04-03T20:00:49","date_gmt":"2009-04-04T04:00:49","guid":{"rendered":"https:\/\/www.ultrasaurus.com\/?p=976"},"modified":"2009-04-03T20:00:49","modified_gmt":"2009-04-04T04:00:49","slug":"sf-ruby-meetup","status":"publish","type":"post","link":"https:\/\/www.ultrasaurus.com\/2009\/04\/sf-ruby-meetup\/","title":{"rendered":"sf ruby meetup"},"content":{"rendered":"
Last week I attended the March SF Ruby Meetup<\/a>. (Some day I hope to attend a meetup where I don’t personally double the number of women, but at least I wasn’t all alone, and the guys treated me as more of a geek than a girl, which is always a good sign.) I found the talks engaging and learned a few things. <\/p>\n There were three short talks (see notes below):<\/p>\n Rajiv Aggarwal has created a treasure hunt application Cell Guided<\/a>. Rajiv generously shared details about what it took to build it and highlighted the various libraries and APIs he used for mapping and geo-coding.<\/p>\n Geocoding using GeoKit<\/a> (requires Google API Key)<\/p>\n extends ActiveRecord<\/p>\n Maps using ym4r<\/a><\/p>\n Displays static or dynamic maps that you can interact with. For printing, couldn’t use the same API (since sometimes the Javascript wasn’t done by the time the print happened, sometimes the map would be blank), instead using the static map API worked.<\/p>\n They use a ‘QR code’ on the flyer to encode the URL of the website. Pretty cool. Aside from an audience member: McDonalds in Thailand uses it on the packaging to tell you how many calories are in that food item!<\/p>\n Q: How much Javascript did you have to write? “about a page”<\/p>\n Adam Wiggins, one of the co-founders of Heroku, demonstrated how easy it is to deploy a Ruby on Rails app to Heroku and talked about some additional neat features, as well as their (not yet final) plans for pricing the service.<\/p>\n how to:<\/p>\n you can use your own URL if you like, but by default it will make one up for youto make it easy to experiment.\u00a0 memcahce in beta right now.\u00a0 ‘heroku console’ will give you access to the console.\u00a0 The severs are locked down at the Unix level: filesystem is read-only now and git submodule hacks won’t work anymore.<\/p>\n gem support?<\/p>\n What if RubyForge doesn’t have it yet? Rmagick? all installed, other gems that depend on OS binaries: email us<\/p>\n Q: how do you get your data in and out?\u00a0 A: taps .. streaming database import\/export<\/p>\n How to move data from your database to heroku…<\/p>\n heroku db:push<\/p>\n you can also do: backup? EC2 – tripple re-dundant.\u00a0 You should keep your own backups, of course.\u00a0 They provide some tools. Also heroku bundle:capture<\/p>\n They have tested high traffic, easy to scale, built into the architecture.\u00a0 You’ll be sharing a db on the free apps. All 2.0 series of Rails are installed.\u00a0 If you want something else you can always vendor it.<\/p>\n Uses postgres.. not mySql<\/p>\n Chris Wanstrath from GitHub<\/a> gave an entertaining and detailed talk about the lesser known features of github. I was one of 2-3 people in the audience (of about 60-70) who raised their hands in answer to the question “who doesn’t have a github account?” Sitting near the front Chris challenged me to tell him what I didn’t like about GitHub. I had no gripes about the site, but hadn’t seen a reason to use github and had merely set up a remote repository on a dev server when needed to collaborate. Of course later in the week I realized I did have a GitHub account, I just wasn’t using it for posting. There’s probably no way you can write Ruby on Rails code for even just a few months and not have *some* reason to have an account on GitHub. After hearing Chris’ talk, I did have second thoughts about not using GitHub for my shared git repository. GitHub seems well-worth the price of admission with cool features for collaborating on shared code. Here are some highlights:<\/p>\n Cool visualizations “Punch Card” graph, commit activity by day and hour: Blocks represent “impact”. Impact is (lines added + lines deleted) for all non-merge commits during a week period. Network Graph Viewer They also use rubanalytics to create a view of page traffic<\/a> (based on the google analytics they were already using for githb).<\/p>\n Looking at source code… on a commit… on the URL, add .patch or .diff Fork Queue — I guess only admins have it<\/p>\n They have a bug tracker in development. Lightweight, simple priority, modeled after gmail, same keyboard shortcuts.<\/p>\n Chris talked in detail about various implementations of a “job queue,” apiece of work that can be done in the background by a persistent worker. Nice presso, sorry no notes. Heroku doesn’t support this yet… working on it. Noted “workling” an emerging Rails plugin.<\/p>\n Odd langugage quote of the evening “We didn’t have to tie up the mongrel” (to a different audience this would mean something quite different!)<\/p>\n CodeCon<\/a> – unconference, for hackers by hackers Last week I attended the March SF Ruby Meetup. (Some day I hope to attend a meetup where I don’t personally double the number of women, but at least I wasn’t all alone, and the guys treated me as more of a geek than a girl, which is always a good sign.) I found the… Continue reading \n
\n<\/a><\/p>\nCellGuided<\/a><\/h2>\n
\n
Whatever.find(:all, :origin => [37.39, -122.39], :within => 50)\nWhatever.find(:all, :origin=>'100 Spear st, San Francisco, CA', :within=>10)<\/pre>\n
\n<\/a><\/p>\nHeroku<\/a><\/h2>\n
\n
\n
\n
\nmy-gem –source http:\/\/mygem.myserver.com<\/p>\n
\nheroku db:pull<\/p>\n
\nYou would pay to have a dedicated database.\u00a0 You get 1-2 mogrel\/thins for free, higher for pay.\u00a0 You could crank it up to 8 just for a day, easy command line control.\u00a0 Can you specify limits? analogy to google ad words, set a budget… still working out the details, which is one of the reasons we aren’t publicly posting pricing.<\/p>\nGitHub<\/a><\/h2>\n
\n(click on the images to link to the live graphs)<\/p>\n
\n<\/a><\/p>\n
\n<\/a><\/p>\n
\n<\/a><\/p>\n
\nshift-select – highlight a section of code and send a URL
\nl & h, key nav for pagination
\non commits page, j & k, c for commit<\/p>\n
\ncan wget the .patch, can apply it<\/p>\nAnnouncements<\/a><\/h2>\n
\nApril 17-18<\/p>\n","protected":false},"excerpt":{"rendered":"