Programming

Recursively Convert Gif Images To Jpg

Converting images from gif to jpg for web or other reason can be done easily using the ImageIO package. The following snippet convert all the gif images in directory rootDir to jpg images.Compile this class and execute using java command line. This utility class is also available as part of the Livrona Tools Project.The following is the code for the Image Converter.

 

How to debug Java programs using the Debugger in Eclispe?

This is very simple tutorial about how to use built in Eclipse Debugger for Java Programs.

Ruby Cheat Sheet Part 1 v1.0

Ruby Cheat Sheet Part 1.

Version 1.0

 

Ruby Mini Guide v1.0

Mini Guide v1.0 for Ruby Language. It based on ruby 1.8.4.

Clean up Rail Sessions

By default rails does not clear out stale sessions from the session store. Depending on the configuration session can be stored in the local file system or the database.

Retrieve Page Contents via Http Get

This script retrieves the content of url and dumps it to the output

Example copy this script into file named : get_page.rb

#!/usr/bin/ruby
require 'net/http'
host,port,url = ARGV
http = Net::HTTP.new(host, port)
STDERR.puts "url {#url}"
response, data = http.get(url)
puts data

Usage

ruby get_page.rb <host> <port> <url>

The url is specified as a relative path

Syndicate content

Back to top