Using Sinatra 0.9.2 this is an easy to way to get an updating single tweet in your application. I am using the most recent HAML gem ( haml 3.0.5 ). I am also deploying this application with Heroku, not that it will make a difference, but it may help. It did take a few hours to get the function to call correctly, and the HAML ( or Sinatra ) people may say that there better ways to instantiate this, but that is why I am writing this post. You need to include two gems in your app.rb file in addition to the norm: 1 2 3 4 5 6 7 8   require ‘rubygems’ require ‘sinatra’ require ‘haml’   #[…]

PHP memory limit is a very simple error to solve. When loading new plugin to a CMS or transferring data into a database this error may effect areas of your program: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1841890 bytes) in /the_path/to_your/file.php Two simple lines of code can make all the difference. If you don’t have root access or you don’t want to change your server configuration attach this code to the top of the file: 1 2   ini_set("memory_limit","32M"); If you want to change the memory limit for all the files on your server add this code to your php.ini file giving the error. 1 2   memory_limit = 32M This should let you[…]