There once was a little boy who wanted to meet God. He knew it was a long trip to where God lived, so he packed his suitcase with cupcakes, several cans of root beer and started on his journey. When he had gone about three blocks, he saw an elderly woman. She was sitting on [...]
Posts Tagged ‘lessons’
Smile and light up someones day
Posted in Fun-and-morals, Lessons I have learnt, tagged lessons, morals on October 23, 2009 | Leave a Comment »
Eyes…….
Posted in Fun-and-morals, Lessons I have learnt, tagged lessons, morals on October 10, 2009 | Leave a Comment »
Eyes can’t lie so easily as lips
Proxy and Reverse Proxy servers
Posted in Found it useful, Networking, tagged lessons, Networking, tips on September 24, 2009 | Leave a Comment »
Proxy servers In computer networks, a proxy server is a server (a computer system or an application program) that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server, requesting some service, such as a file, connection, web page, or other resource, available from a [...]
Criticism
Posted in Fun-and-morals, Lessons I have learnt, tagged funs, lessons, morals on September 23, 2009 | Leave a Comment »
A young couple moves into a new neighborhood. The next morning, while they are eating breakfast, the young woman sees her neighbor hang the wash outside. That laundry is not very clean, she said, she doesn’t know how to wash correctly. Perhaps she needs better laundry soap. Her husband looked on, but remained silent. Every [...]
Private And Public IP Addresses
Posted in Found it useful, tagged lessons, tips on August 25, 2009 | Leave a Comment »
A computer on the Internet is identified by its IP address. In order to avoid address conflicts, IP addresses are publicly registered with the Network Information Centre (NIC). Computers on private TCP/IP LANs however do not need public addresses, since they do not need to be accessed by the public. For this reason, the NIC [...]
uninitialized constant TwitterAuth::BasicUser::ClassMethods::JSON – [Ruby on Rails]
Posted in installations, Ruby on Rails, Weird Errors, tagged bug fixes, lessons, Ruby on Rails, tips on August 25, 2009 | Leave a Comment »
Got this issue. No worries. Open up environment.rb and Add; config.gem ‘twitter-auth’, :lib => ‘twitter_auth’ That should fix ur issue
Removing all .svn folders in Linux
Posted in Unix, tagged lessons, Linux, tips on August 25, 2009 | Leave a Comment »
To delete all .svn folders in Linux; Move to your current/working directory (i.e) your project folder (ex: /usr/local/myproject/test). This will delete all the .svn folders under this directory. Execute the following command; find ./ -name “.svn” | xargs rm -Rf Done.
Rails – Calling multiple redirects or renders fix
Posted in Ruby on Rails, Weird Errors, tagged bug fixes, lessons, Ruby on Rails on July 28, 2009 | Leave a Comment »
Use the “return” statement to fix this issue. (E.g) def do_something redirect_to(:action => “elsewhere”) and return if monkeys.nil? render :action => “overthere” # won’t be called if monkeys is nil end (copied from http://api.rubyonrails.org/classes/ActionController/Base.html)
ERROR RUNNING ‘cluster::configure’: Plugin /cluster::configure does not exist in category /commands [mongrel/Ruby on Rails]
Posted in installations, Ruby on Rails, Weird Errors, tagged bug fixes, installations, lessons, Ruby on Rails on July 22, 2009 | Leave a Comment »
If you see this errror; ERROR RUNNING ‘cluster::configure’: Plugin /cluster::configure does not exist in category /commands Make sure you have; “mongrel_cluster” gem installed. You can see whether it exists in the list by issuing the command; gem list –local If you don’t see it, run; gem install mongrel_cluster That should fix your issue.
Domain based sessions and cookies [Ruby on Rails 2.2+]
Posted in Ruby on Rails, tagged lessons, programming, Ruby on Rails on July 14, 2009 | Leave a Comment »
This is helpful to have the single login for multiple level domains. Edit your environment configuration and add something like this; (E.g in environment.rb or production.rb) config.action_controller.session = {:domain => “.arthurneil.com”, :key => ‘_arthurs_session_id’, :secret => ’4gfsdf234jmfv35ksdf23m44m4m4neserf345′} Likewise, to target the cookies based on particular domain, try; (E.g) cookies[:my_test_cookie] = {:value => “test”, :expires => [...]