HNHacker News
TopNewBestAskShowJobs

tmm1

1,882 karma · joined March 29, 2007

Aman Karmani, @tmm1, github.com/tmm1
submissionscomments
tmm1··on Now Ruby(MRI) has dtrace support
That commit is for YARV, not MRI
tmm1··on Ruby statement modifiers behave differently than conditional statements

  >> if false
  >>   a = 1
  >> end

  >> defined? a
  => "local-variable"

  >> a
  => nil
tmm1··on Startup school emails sent
Same here, can't RSVP
tmm1··on Extending ltrace to make your Ruby/Python/Perl/PHP apps faster
Plus, you can trace a lot more than mysql queries.. commonly used libraries like libMagick, libxml, libcurl, libmemcached, and even internal VM functions like garbage_collect(), PyEval_SafeThread(), etc.
tmm1··on Extending ltrace to make your Ruby/Python/Perl/PHP apps faster
Using strace to trace mysql traffic is painful. You have to know which file descriptors to trace (check via lsof first), then trace all network traffic on those fds in verbose mode to see the queries themselves (doesn't work if the mysql protocol has compression enabled), and then try to figure out how long each of the queries took to execute by matching queries and responses.

ltraceing mysql_send_query() gives you all this information in one line.

tmm1··on GDB 7.0 released
Reverse debugging, awesome! http://www.gnu.org/software/gdb/news/reversible.html
tmm1··on Literally Random Pricing on Thawte Certs Right Now?
It's cheaper than the certs at Verisign. Where do you buy your SSL certificates?
tmm1··on A/b test mallocs against your memory footprint
http://goog-perftools.sourceforge.net/doc/tcmalloc-opspersec...
tmm1··on Ask HN: Archive a MySQL database
http://www.xaprb.com/blog/2006/05/02/how-to-write-efficient-...

http://www.maatkit.org/doc/mk-archiver.html

tmm1··on Git Magic
no mention of github.com ?
tmm1··on SF JavaScript Meetup - lots of hackers, YC people, JS experts
Great idea, I'm so there.

Douglas Crockford is coming.. didn't he invent JSON?

tmm1··on Ask YC: Which web host do you use?
Oh, awesome. I never noticed it anyway since I have an account already.

I use both slicehost and linode, and definitely recommend both!

tmm1··on Ask YC: Which web host do you use?
Slicehost.com is great, but its hard to get an account.

Linode.com is another great VPS with a better admin interface.

tmm1··on Ramaze: a Ruby framework that will amaze
The way I see it, Merb is an implementation of Rails from the ground up- it appeals to Rails users and follows very similar conventions as far as configuration, directory structure, support for REST and included helpers (form_for, input_field, etc like in Rails)

Ramaze, on the other hand, is very Ruby oriented in its implementation- it follows KISS and POLS religiously. It does not force any convention on you, you are free to choose your own directory structure and there's no configuration files involved.

Ramaze allows you to write an entire web-app in one file (see http://source.ramaze.net/source/examples/facebook.rb and http://source.ramaze.net/source/examples/ramaise.rb), which is not possible with Rails or Merb. Merb is great for RESTful applications and handles content negotiation very elegantly (with a simple 'provides :json, :xml' in your controller).

tmm1··on Ask YC: favorite books
The Design of Everyday Things
tmm1··on Stunt Pilot - our first flash game
very cool. nice and simple, i love the three graphics explaining game play at the bottom. controls seem a but un-intuitive though.. up/down are reversed, and left/right might be a better fit
tmm1··on Any suggestions on good places to find freelance developers?
Interesting.. I'm a developer and have the same problem finding designers. Care to share some of tips for finding designers?
tmm1··on Google Maps now has Terrain view
from NAVTEQ, who in turn get it from the Census Bureau TIGER project
tmm1··on Ask YC: Anyone using CouchDB?
There's also http://rddb.rubyforge.org/
tmm1··on Ask YC: What revision control system are you using?
darcs, it's distributed, doesn't require a server setup, lets me work without a network connection, and the cli is extremely user-friendly.

instead of committing files, darcs record lets me pick and choose what changes to include as part of a patch, resulting in cleaner patches which actually encompass a logical change to the code.

i've also heard many good things about git

tmm1··on Ask YC: Critique my Facebook app
The better question is why?
tmm1··on Ask YC: Critique my Facebook app
Written in ruby, with the help of the following great technologies (most are ruby gems):

 - ramaze, the simple, modular web-framework (ramaze.net)
 - sequel as the database ORM layer (http://code.google.com/p/ruby-sequel/wiki/CheatSheet)
 - mongrel as the webserver (monkey patched with swiftiply to use eventmachine: http://swiftiply.swiftcore.org/mongrel.html)
 - facebooker for facebook api calls (http://chadfowler.com/2007/9/5/writing-apis-to-wrap-apis)
 - haml for html templating (http://haml.hamptoncatlin.com/)
 - sass for css templating (http://haml.hamptoncatlin.com/docs/sass)
 - analogger for logging (http://analogger.swiftcore.org/)
 - postgres for db backend (and sqlite for dev)
tmm1··on Ask YC: Critique my Facebook app
Perhaps not, but I don't really expect the app to take off anyway. Just needed a simple idea to implement and get familiar with the facebook api and fbml.

That said, it seems the only apps that do take off on facebook are uninspired concepts such as Vampires, Zombies and KissMe.

tmm1··on How many Java programmers does it take to round up to a power of two?
http://pastie.caboo.se/113312
tmm1··on What's your favorite Javascript framework?
Prototype 1.6 has some nice new features, and mootools is cool, but jQuery definitely wins.
tmm1··on What does News.YC think of distributed version control?
I'd recommend darcs or git. Check out Linus' talk on git, he basically spends 70 minutes talking about why a distributed VCS is vastly superior to any centralized system.

http://www.youtube.com/watch?v=4XpnKHJAok8

tmm1··on Ask News.YC: Opinions on Linux distros, Helma, Java Frameworks
I'm a big Gentoo fan, and if you've used BSD's ports you'll like Gentoo's portage
← PreviousPage 2 of 2