Building the postgres gem for a 64bit PostgreSQL on Snow Leopard (10.6)
sudo env ARCHFLAGS=”-arch x86_64″ gem install postgres
sudo env ARCHFLAGS=”-arch x86_64″ gem install postgres
I have yet to try them out, but Clickatell seems like a nice, developer friendly SMS gateway. UPDATE: They offer a trail account where you get a few messages for free (although they override the message content with a default text), so I couldn’t resist and tried it out. It’s really a matter of minutes [...]
Anti-Cracker three20 UI library Phonegap ObjectiveResource Ruby Cocoa on iPhone Facial recognition AppStore styled views Fireworks iPhone UI 3GS Compass test XMPP framework Physics framework OAuth consumer 2D game engine Some random links I’ve found while searching for iPhone on github.
First get and install the 64bit MySQL version: http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.35-osx10.5-x86_64.dmg/from/pick#mirrors Then install the MySQL gem the following way: sudo gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config
How do you find out on which version of Rails your code is running? script/console Loading development environment (Rails 2.3.2) >> Rails::VERSION::STRING => “2.3.2″ >> Rails::VERSION::MAJOR => 2 >> Rails::VERSION::MINOR => 3 >> Rails::VERSION::TINY => 2 >> Rails::VERSION.constants => ["TINY", "STRING", "MINOR", "MAJOR"] >>
sudo gem install rubygems-update && sudo update_rubygems
Each approach to replace N technologies by one technology usually ends with N+1 technologies.
By accident I just found out that if you type the ActiveRecord model name in your Rails console session (script/console), it prints out all the attributes of your model. Now more trips to your database, to find out how attributes are named! Delayed:netmonic schmidp$ script/console Loading development environment (Rails 1.99.0) >> XenServer => XenServer(id: integer, [...]
UPDATE: I didn’t know about the ARCHFLAGS environment variable, this is a less intrusive way (thanks to Sebastian for pointing this out): sudo su – ARCHFLAGS=’-arch i386′ gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config (sudo su – asks you for your normal password not the root password) I’m using the stock ruby environment on Leopard and the [...]
Google just released their new offline-webapp Firefox and Internet Explorer plugin called Google Gears. It’s basically offers a persistent relational database that you can access from Javascript, as well as way to run Javascript code asynchronous, which is important if you have run expensive code. We now have Firefox itself, Google, Adobe and Microsoft offering [...]