liltux

while(Alive){Code();}

Archive for November 2006

Robotics Resources in Bangalore

with 14 comments

During my recent visit to Bangalore I went to S.P road to purchase some electronic kits and found that OM electronics had opened a new shop called “OM Technology center” where a lot of new Robotic kits,Gears,servo motors etc are available to the hobbyist as well as the student.

Most students who are looking all over Bangalore for parts and spares will definitely find this shop very useful.In addition to the robotics kit the shop also has vegakit and EFY kits and an in-house kit that the make themselves called techno Kit.These Kits are pretty useful for both Diploma and B.E students.

I hope most students will find this wirte up useful,if so please leave a comment and I will post more :) .

Written by suresh_ning

November 29, 2006 at 12:13 pm

Posted in Robotics

RTLinix Resources

without comments

RTLinux is a Modified extension to the Linux kernel such that the Kernel acts as a Real time operating system. The small size and the wide variety of platforms supported by Linux makes RTLinux an ideal candidate for embedded applications.RTLinux finds applications in Aerospace, Automobile and Consumer electronics industries.

Here are some useful links to RTLinux related sites

RTLinux application development tutorial.

Another RTLinux Tutorial.

RTlinux reference projects.

powered by performancing firefox

Written by suresh_ning

November 18, 2006 at 10:07 pm

Posted in Embedded Systems

Broadcom Wifi woes

with 3 comments

I recently inherited a HP ZV6000 laptop, I decided to install Linux on this and began by trying to install Fedora 5. Everything went smoothly I booted into Linux to find that my WiFi was not working, a little research on the net pointed to the Broad com 4306 WiFi card that comes with my laptop to be the culprit. Frustrated users of Broadcom abound in various online forums and are fed up with this crappy card. I tried various methods both with NDISwrapper and the FWcutter method but to no avail. I must have been doing something wrong cause on most forums people were able to get the card working pretty easily. A few unfortunate souls like me ran into trouble and couldn’t get t to work. I decided I might as well try a different distro so I downloaded UBUNTU Linux and installed it, again the WiFi card was not working. I messed around with Ubuntu by following the instructions given on the Ubuntu forum and got the card working but it is very sporadic. I gave up for a few days and when Fedora Core 6 was released I decided to give it a shot again. I downloaded and installed FC6 but the card still refuses to work. I read on the fedora forum that the WiFi card is PCI-X and needs different drivers. I will try mucking about and see if I can get it working. meanwhile for the unfortunate people who have Boradcom just like me and want to try it themselves here are the links.Getting Broadcom to work on UBUNTU with NDISwrapper.

Another forum posting for UBUNTU & NDISwrapper.

Fedora Forum search results for Braodcom+4306.

I understand that the Broadcom corporation wants to protect its intellectual property and will not release the source code for the drivers. A few braves souls have reverse-engineered the driver and got the driver built into the Linux kernel from 2.17 onwards. Big companies like HP who bundle such crappy cards should come to the rescue, if they really care about Linux why not release a driver compatible with Linux that works out of the box without us resorting to various serpentine methods. at least fund the group that is reverse engineering the drivers.

powered by performancing firefox

Written by suresh_ning

November 17, 2006 at 3:45 pm

Posted in Linux

Kiosk mode browser using XUL

without comments

I volunteer at the Warren memorial library and was asked recently to create a Kiosk mode browser that could not be used to browse anything else except for the library’s book catalog. I started exploring the various options available and soon settled on two browsers, Opera and Firefox, while it is fairly easy to setup opera in kiosk mode you still need to pay Opera for the professional version to make it work.That ruled out opera and I was left with Firefox.I started hunting around for an extension that would turn the Firefox browser into a locked down version where you could not navigate to any site. I downloaded the R-Kiosk extension this extension does a pretty decent job of locking down the browser.The extension disables most of the menu items and does a pretty good job in disabling the navigation bar and the address bar,but the extension fails to block the preferences menu item thus leaving a chink in its armor which can be exploited by anyone who is computer savvy. The person can use the preferences menu to set the home page to any desired site close preferences and hit alt+home on the keyboard to navigate to that page.

For e.g if you wanted to restrict the patron from visiting any other site except for the library’s own home page a malicious user could set the home page to something like www.google.com and navigate to any site from there. The author also claims that the extension can only be uninstalled from safe mode, but by going to http://addons.mozilla.com and installing any addon you still get access to the addons window and can uninstall the extension from there.

In the end I found that the only way to circumvent these issues was to disable almost all the menu items, this was too much work which included hacking the perf.js file in the profiles folder so I decided to write a XUL widget instead.

Here is the XUL code

<pre><code>

<?xml version=”1.0″?>
<?xml-stylesheet href=”chrome://global/skin/” type=”text/css”?>
<window
id=”google’s Online catalog”
title=”googleOnline catalog”
orient=”horizontal”
width=”1000″
height=”768″
xmlns=”http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul”
xmlns:html=”http://www.w3.org/1999/xhtml”>
<vbox flex=”1″>
<hbox pack=”center”>
<html:font face=”verdana” color=”blue”>
<html:strong>
<label value=”Google’s online catalog”/>
</html:strong>
</html:font>
</hbox>
<hbox flex=”1″ orient=”vertical”>
<html:iframe src=”http://books.google.com/” flex=”1″></html:iframe>
</hbox>
</vbox>
</window>

</code> </pre>

PS: Copy pasting the code above will not work please download the code here, for some reason the code tag in wordpress does not work with XUL code :( properly. once you download the file from the above link rename the file from kiosk.doc to kiosk.xul.

you can preview the above code in this excellent XUL live editor.

googlexul.jpg

On a Mac you can setup a restricted account,set it to do an auto login without password and then set Firefox to start this XUL file at login and for further protection install the profile password extension for Firefox,while not an elegant solution, it got the job done.

The XUL file can be started on login with the following command line typed into a shell script

cd /
cd Applications
cd Firefox.app
cd Contents
cd MacOS
./firefox -chrome /nameofxulfile.xul

On a windows machine the default shell can be changed to something like Blackbox which is a minimal shell and can be used for the same purpose, but it isn’t foolproof the only other way is to set the shell as Firefox which I haven’t found a way to do yet.

powered by performancing firefox

Written by suresh_ning

November 17, 2006 at 11:49 am

Posted in XUL, firefox

FON Heralds the Free WiFi Revolution

without comments

FON a startup with a very simple idea is taking the world by storm,FON wants you to share your internet bandwidth. Owners of broadband internet connections and compatible WiFi routers (currently Linksys WRT54G (pre-v5), WRT54GL, WRT54GS and WRT54GSv4, or Buffalo WZR-RS-G54, WHR-HP-54, and WHR-G54S and FON claims more are to be supported in the near future) can participate in the FON network by installing FON’s firmware on their routers. FON is also shipping routers that have the firmware pre-installed for $29.95 including shipping. Currently FON users can either choose to share their bandwidth freely or can choose charge other FON users for access to the internet thru their routers.FON currently supports three kinds of users.

Linus: Linuses are users who share their internet connection freely without charging for it.

Aliens: Aliens are users who do not share their internet connectivity and get charged $3 to access the FON network when available.

Bill: Bills are users who get a share of the money paid by Aliens and do not have roaming access. these users do not share their Bandwidth for free.

Participating in the FON network might sometimes conflict with the terms of use of some ISPs, but FON has entered into agreements with some ISPs to allow DSL-sharing.

FON recently inked a deal to bundle its “La Fonera” router with Skype’s WiFi wireless phone Bundle.

The company which was founded in 2006 has received backing from big players like Google, Skype and eBay.

powered by performancing firefox

Written by suresh_ning

November 15, 2006 at 6:28 pm

Posted in Gadgets

Data recovery – Part I

without comments

There you are cruising the information superhighway,collecting little nuggets of information,bookmarking sites,downloading programs and generally having a good time and “BAM” your hard drive crashes thus playing spoilsport and ruining your day and negating all the years of effort and destroying all your data?, well there is hope for you my friend by the time you finish reading this you will know how a hard drive works and how you can recover most of the data from your hard rive 90% of the time.A hard drive stores data on a magnetic medium. A steel plate called platter over which a thin coating of a cobalt-based alloy is sprayed, the data is stored in regions called sectors. Since the hard drive medium is magnetic in nature data corruption can occur when the hard drive is subjected to extreme temperatures or magnetic influences. A head is positioned above the magnetic platter much like the gramophone players of yore, while the gramophone head touches the gramophone record the head in a hard drive floats on a cushion of air a few nano meters above the platter. Data corruption can occur when the hard drive head touches or grazes the surface of the platter due to a physical shock or abnormal vibrations.Data corruption can also occur in case of a malicious piece of software like a virus or worm infects the computer.

Now that we have had a little background on how a hard drive works lets move to the most important item on our little article, what do I do in case of a hard drive crash or if I have deleted files by accident. The first thing to do is to switch off your computer right away, this might sound like an extreme step, let me explain why you should do so, in case the data corruption was due to a virus the virus could still be active and eating away at your computer, by switching off you are saving what is left. The next thing to do would be to decide if you would like to do the troubleshooting yourself or hire a professional to do it.If you want to get the data recovered professionally then you can stop here,Do a Google search look for a good data recovery company and get the job done.

To be continued….

powered by performancing firefox

Written by suresh_ning

November 15, 2006 at 3:41 pm

Posted in Security

Amazon filler item finder

with 2 comments

There you are on a shopping spree on Amazon and much to your dismay you find that you are 2 dollars away from qualifying for a free shipping deal,thus ensues a made scramble to find that nifty little knick knack that could meet your needs and lead you to free shipping nirvana,The Amazon filler item finder is a site that can come to your rescue at just such times.This site finds products that match the amount you specify in such a way that by adding this little item you will qualify for free shipping.While the UI isn’t so great the results are absolutely wonderful.Give it a try and say hello to free shipping every time you shop on amazon.

Written by suresh_ning

November 15, 2006 at 12:23 am

Posted in bookmarks

Crap cleaner

with one comment

Crap Cleaner is a nifty little tool that enables you to clean out all the junk and temporary files that mysteriously accumulates overtime on your windows PC, every time you visit a site or download something cookies, temporary files and installer related files get stored in the temp folder, while there are a variety of tool that boast many optimization techniques the best so far is CCleaner from http://www.piriform.com/. The software is an effort to provide a utility that does just what it says clean crap from your computer at an unbeatable price “FREE”. On a freshly installed computer running windows XP this tool is able to remove as much as 500MB of junk thus making way for your eclectic mix of Mp3’s from various obscure bands and maybe more space for photos of Paris Hilton.

CCleaner can also fix certain issues with the registry, It can also be setup to run automatically at startup and for the paranoid “tinfoil hat” types can be setup to erase files by shredding them. It also includes a add/remove programs interface using which you can uninstall programs and an startup editor which can be used to prevent programs from starting up automatically when windows starts. Overall this utility is best suited if you don’t want to spend 20-30$ on a swiss “army knife” of a utility that claims to do everything but does not do anything well.Go ahead and give it a try the small download size and the excellent performance will win you over,over 350 million people have downloaded this utility you should too.

Written by suresh_ning

November 15, 2006 at 12:19 am

Posted in Tweaks

Alternatives to Windows Programs

without comments

The open source revolution is providing more choices to users then ever before, be it an completely free operating system, a fully featured office suite or very good graphics editing program, the sheer number of alternative programs to some popular proprietary programs is amazing. The following site has a very nice list of programs that provide alternative programs to some propriety one.www.foogazi.com

powered by performancing firefox

Written by suresh_ning

November 11, 2006 at 3:16 pm

Posted in Security

configuring ConTEXT editor for Java

without comments

A few weeks ago I started learning Java,while searching for a good editor I found ConTEXT editor a multipurpose code editor which supports a wide variety of languages and has support for customizable templates. ConTEXT editor is the best editor I have see that suits a budding programmers needs perfectly.ConTEXT Editor can be downloaded here. Help configuring ConTEXT for java can be found here.

powered by performancing firefox

Written by suresh_ning

November 7, 2006 at 7:07 am

Posted in Programming