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 [...]
Posts Tagged ‘tips’
Proxy and Reverse Proxy servers
Posted in Found it useful, Networking, tagged lessons, Networking, tips on September 24, 2009 | Leave a Comment »
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.
Calling External Javascript after Ajax Call [Mootoools]
Posted in Javascript, tagged javascripts, lessons, tips on April 24, 2009 | 1 Comment »
If you are trying to run the script in an updated div, that may work with the internal scripts – something like; <script type=”text/javascript”> alert(‘hello’); </script> But when you try to access some external javascrips, (e.g); <script type=”text/javascript”> <script type=”text/javascript” src=”/javascripts/my_script.js”></script> </script> that will not work. The work-around is; [if you are using mootools.js for [...]
Running Rails code through a cron job
Posted in Ruby on Rails, tagged Ruby on Rails, tips on April 7, 2009 | Leave a Comment »
Rails comes with a script/runner script that can be used to run the code in your Rails app. There’re many ways to organize your code to let this runner script execute it, but one obvious way is to write the code as a model’s action. Here are quick steps for doing this: 1. Insert the [...]
The dynamic link library LIBMYSQL.dll could not be found in the specified path
Posted in Ruby on Rails, Weird Errors, tagged MySQL, Ruby on Rails, tips, windows on November 25, 2008 | Leave a Comment »
When you find this error alert in windows, make sure you do one of the following; Find the LIBMYSQL.dll file and add its location to the PATH(environment-variable) (or) copy LIBMYSQL.dll to the System32 directory.
ERROR : could not find gem rails locally or in a repository
Posted in Weird Errors, tagged bug fixes, installations, lessons, Ruby on Rails, tips on November 25, 2008 | Leave a Comment »
If you find this error during rails installation, one solution may be this. Setting up http proxy Gem install behind proxy – MAC
Setting up http proxy
Posted in Weird Errors, tagged installations, tips, windows on November 25, 2008 | Leave a Comment »
Windows XP 1. Open the Control Panel and click the System icon. The System Properties dialog is displayed. 2. On the Advanced tab, click on Environment Variables. The Environment Variables dialog is displayed. 3. Click New in the System variables panel. The New Sytem Variable dialog is displayed. 4. Add http_proxy with the appropriate proxy [...]
Better Exception handling
Posted in Ruby on Rails, tagged programming, Ruby on Rails, tips on November 20, 2008 | Leave a Comment »
The first thing is, we can have something like inline exception handlers. rescue_from ActiveRecord::RecordNotFound do render :file => ‘/bad_record’, :status => 404 end Block can even take have an argument for exception object. rescue_from ActiveRecord::RecordInvalid do |exception| render :action => (exception.record.new_record? ? ‘new’ : ‘edit’) end The above method will be helpful if we use [...]