Author Archive
Ubuntu Linux – Disk Full 100% What to do?
When the DISK is full – lot of things stops functioning.
Here is a way to find and clear the log files.
1) Check the Disk Usage using sudo df -h
testserver: sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda 30G 746M 30G 100% / tmpfs [...]
SOAP4R and ActionWebServices Conflicts and the FIX
SOAP4R and ActionWebServices doesn’t get along very well – due to conflicts in their naming convention.
SOAP4R is used to connect to any Web Services based third party clients – may or may not be based on rails. SOAP4R works fine when its used independently.
If you have to offer your own Web Services using ActionWebServices [...]
How to install and configure Postfix in Ubuntu
Postfix is the default Mail Transfer Agent (MTA) in Ubuntu. It attempts to be fast and easy to administer and secure. It is compatible with the MTA sendmail. This section explains how to install and configure postfix. It also explains how to set it up as an SMTP server using a secure connection (for sending [...]
How to reconfigure Postfix?
Once Postfix is installed, reconfiguration can be done using the following command.
sudo dpkg-reconfigure postfix
The user interface will be displayed. On each screen, select the following values:
Ok
Internet Site
NONE
mail.example.com
mail.example.com, localhost.localdomain, localhost
No
127.0.0.0/8, 192.168.0/24
Yes
0
+
all
You may have to edit /etc/postfix/main.conf to update the mail hostname!!
Learning HTML5 and CSS3 by example
Check out an excellent presentation & Live Demo – written in HTML5, CSS3 and JS APIs for demonstrating the capabilities of HTML5, CSS3 and JS APIs.
Check it out …
http://apirocks.com/html5/html5.html
Introduction to HTML5 & CSS3
How to build a html5 websites.v1
View more presentations from Bitla Software.
Canvas Demos
Checkout the DEMOs here …
http://www.canvasdemos.com/type/applications/
http://code.edspencer.net/Bean/index.html
http://www.xarg.org/project/chrome-experiment/
http://www.canvasdemos.com/2010/05/06/catch-it/
SVG Demos
http://code.google.com/p/svgweb/
http://codinginparadise.org/projects/svgweb/samples/demo.html
http://codinginparadise.org/projects/svgweb/samples/javascript-samples/svg_dynamic_fancy.html
Geo-Location Demo
http://www.mozilla.com/en-US/firefox/stats/
jQTouch Demo
http://jqtouch.com/preview/demos/main/
Finally, an excellent Demo on all the latest features from HTML5, CSS and the JavaScript APIs, This presentation itself is an HTML5 one page website.
http://apirocks.com/html5/html5.html
Some screens from the Demo:
Installing Passenger passenger-install-apache2-module: command not found
If you are installing/upgrading Phusion Passenger (a.k.a mod_rails/mod_rack) and facing the following error at the second step when you run passenger-install-apache2-module
sudo: passenger-install-apache2-module: command not found
That means gems bin directly is no in the PATH. Either you can add this to the PATH or You can simply run the command with the full path to passenger-install-apache2-module.
In [...]
Upgrading to Phusion Passenger 2.2.11
When under high load, Apache was freezing and stop responding to requests in 2.2.10 & 2.2.9 version of Passenger.
More information about the problem can be found at the following discussion thread:
http://groups.google.com/group/phusion-passenger/t/d5bb2f17c8446ea0
Its worth while to upgrade to the latest version of Phusion Passenger 2.2.11
How to upgrade to 2.2.11?
Via a gem
Install it with the following [...]
Deserializing an object failed in ActiveRecord
This can happen when the rails dependency system doesn’t load the serialize referenced objects before deserialize happens. We killed some time figuring this out – here is what you can do if you see any such issue:
For example:
The following code could create deserialization errors when Employee object is loaded.
class Employee < ActiveRecord::Base
serialize :job_roles
[...]
Ruby on Rails: Serializing and DeSerializing Ruby objects
Serialization in Ruby comes very handy at times, it really helps in several cases especially when dealing with:
persisting Ruby objects onto a disk or to the database
transferring the Ruby objects over the network
session persistence
complex data structure storing in the database with ActiveRecord
and lot more …
The Object Serialization can be done in Ruby in two [...]


