Instead of using the database-specific command to start your project’s database console, Rails provides one consistent interface for the most popular databases (MySQL, PostgreSQL and SQLite):
script/dbconsole [RAILS_ENV] # Rails 2 rails dbconsole [RAILS_ENV] # Rails 3 rails db [RAILS_ENV] # Rails 3 alias
[video]
AppleInsider: Serious security flaws discovered in Android phones, Samsung and HTC ignore issuex -
From the paper (PDF link) AppleInsider found:
By exploiting these leaked capabilities, an untrusted app on these affected phones can manage to wipe out the user data on the phones, send out SMS messages (e.g., to premium numbers), record user conversation, or obtain user geolocations all without asking for any permission.
In other words: Android OEMs are playing fast and loose with customer privacy and security when tinkering with Android’s underpinnings, adding features, or making modifications to suit their priorities.
(Source: chartier, via dvint1)
Oh Microsoft…
Do Men Really Think About Sex More Often Than Women? — Do Men Really Think About Sex More Often Than Women?
He’s a goner (Taken with instagram)
Gingerbread man (Taken with instagram)
A window to the world (Taken with instagram)
Future Thoughts by Niklas Agevik: Startups say the darndest things - a translation cheat sheet -
After seeing too many YC companies have recruiting ads that look something like the one below, I decided to provide a quick translation guide for those wanting to work at a startup.
Typical startup job posting: “We are a pre-revenue startup that got early traction with customers that love our…