Synapse ↵

logically incoherent… not!

Archive for the 'Source Code' Category

A collection of source code of different languages some of it coded by me and the rest from other sources

Nifty Wikipedia Bash Script

Posted by synapse on February 21, 2006

wikilogo

Lets face it. At some point or the other most of us have used Wikipedia. But its a lengthy process firing the browser, typing the adress of the site, choosing the english Wikipedia and finally entering your query. All this and the countless images that get loaded which further slow down the process.

Well if you are more comfy with the terminal like me, all you do is use this script. I wrote this really simple script to save some time getting information from Wikipedia. Here are the install instructions -

>> Download wikip_v1.tar.gz

>> Extract all files to a temporary location (tar xvfz wikip_v1.tar.gz)

>> Go through the readme.txt file

>> Copy wikip to /usr/bin

>> Type wikip text_to_search

That’s all. Now isnt that a lot faster than using the traditional method ;)

Posted in Linux, Source Code | 3 Comments »

A dip in the cup of Bash scripting

Posted by synapse on December 28, 2005

Scripting is one of the most powerful tools of any Linux box. Tasks which require repetitive actions and seem to take forever to complete can be automated in a jiffy. The possibilities are endless. Since built in Linux commands can be used in shell scripts this opens up countless ways to write scripts. The three scripts that follow are basic examples to get you started. In the future I will be writing a tutorial on bash scripting. For now, im throwing a bit of source code in your face.

Read the rest of this entry »

Posted in Linux, Source Code | 6 Comments »

Java Swing example : celsius to farenheit converter

Posted by synapse on December 9, 2005

I’ve just started writing GUI programs in Java using AWT and Swing. This is a simple celsius to farenheit converter. Although the example is fairly simple it is a good introduction to GUI programming in Java.

Click here to download the source code for the application

Note - You need Linux or a program like WinRAR to extract the contents of the tarball

Posted in Projects, Source Code | 3 Comments »