This time i am being late to put blog. Today i am came with the concept that install linux on pen drive. 

Now the question stays that why to install linux on usb pen drive ?

I have seen many people who dont want to experiment new OS on their laptop/computer harddisk. because generally afraid of hard disk failure.  And that is one reason that linux is not used. 

Some users think it is difficult to install linux on haddisk ….. multi boot and removal problem and many more, so not play with it. Frankly speaking I am also with them. 

Now days USB cost very low approximately 2GB @ Rs 250 / $4 and 8 GB @ Rs 750 / $6 with good brand name. It is better to use any of them other then using your own hard disk.

Now let me come to the point. I found very easy way to install fedora linux on usb drives.  Not to say more about fedora. It is very nice OS and used by many people. I also like it. 

To intall you just need to download liveusb-creator which is compatible with windows(8.9MB) and linux(183kb).

https://fedorahosted.org/liveusb-creator/wiki

Get it from the site and follow the step given by him. and your Fedora Linux is ready. And you can use it when ever you like on your laptop / computer, without any problem. 

Come out of that costly Windows and have one look over how is linux ? And then decide which one is better. 

I hope you will try it now. 

When we design Java script, we are missing many things. So now onwards if you want to check your java script code then test it in the following URL.
You just need to copy your java script function and click on JSLint. It shows possible error.

http://www.jslint.com/

More info. about it is in below given link.

http://www.jslint.com/lint.html

Stop stealing your laptop

Posted: November 19, 2008 by Narendra Shah in General
Tags: ,

According to various surveys, 90% of laptops in India are stolen during travel. Worldwide, a laptop gets stolen every 12 seconds. These figures are obviously alarming, and will only go up as laptop sales increase. But then the good thing is that the IT industry doesn’t leave any opportunity unexplored…so enter solutions that track stolen laptops. They provide a small ray of hope to those unfortunate souls who’ve lost their laptops. Some more good news is that if something is launched in the commercial world today, the Open Source world doesn’t sit quietly for long either. So, there are both commercial and Open Source solutions to track stolen laptops, and Adeona is one such Open Source solution. It enables you to map out your stolen laptop. All you need to do is install this software on your laptop, and if your laptop gets stolen, wait for the thief to connect it to Internet. The software continuously monitors current the location of the laptop and sends updates to the Adeona server. These updates contain information such as, IP address of the laptop, nearby routers and name of the Wireless AP (if connected through a wireless connection). It uses OpenDHT storage service to store locations of your laptop sent by Adeona client. The laptop owner can retrieve an update from the last IP and contact the appropriate law enforcement agency with the details.How to use?
Installing Adeona is easy. During installation it will ask for a password. Remember this password carefully as it will be required when you try to retrieve position of your laptop. Once installed Adeona will automatically start a background service. By default, the client sends update at randomly defined time, -usually an update every 30 mins. As the installation finishes it places an ‘.ost’ file on the desktop. This is the file you will need, to determine the location of your laptop. It’s recommended to backup up this file at a secure location away from your laptop, like on a CD or you can just email it to yourself.

 tracking1_nov2k8
Update results retrieved from Adeona server. Here it shows internal as well as external IP address of the laptop and name of the AP. It also shows details of nearby routers.

Now to determine the location of the laptop, you would need to run Adeona recovery tools. These tools are by default installed with the client, and can also be installed separately. Once you run this tool, it will ask for the ‘.ost’ and password for the file. If authentication is successful, it will now connect to its server and try to retrieve the last IP address from which Adeona client had sent the update. Once it has retrieved the details, it will automatically save them on the desktop in a text file format. This will include the last IP address and names of nearby routers if available.

Cache Memory

Posted: November 17, 2008 by Narendra Shah in Reserch And Development
Tags: ,

Every one which is from IT industry is some how knows about Cache Memory. Then also let me introduce about it with little bit different way as explained in HOWSTUFFWORKS, it is some how related librarirain meance non technical.

E.g In any library(not online), there is person with post Librarian(i.e CPU, Harddisk etc.).His job is to issue and take back books(data digital data). What he will do when ever any user comes, he goes to libarary store room take the book required by user and issue him. When some other user comes for submitting book, he will put that book back to library. Think about the time required by libararian to put and take book from Library.

As such he knows that every one is generally coming for requirement of very known book, why he will go to store and come back. Rather when any use submit book then he will put that in the Rack(CACHE) itself. If any one comes to take book he will return that book from the Rack itself. This is very popular solution which generally many libararian are following.

Now coming to our computer world, with coming of Dual core and Core 2 Duo processor, they do have cache which will store frequently used operation in the cache. and it will make that processor being faster than any other CPU which do have higher clock rate. and Performance hikes. Now intel is thinking only for cache to increase speed of his CPU. So he is now ahead of AMD. AMD do have processor which are much more faster in clock speed then also, Intel chip will give more performance because he have cache. And now intel wins.

When you think about writing cache for your application then you will get the performance difference of your own application.

Let me show you how? In many application we do have databases, why dont we cache the connection in connection pool. Why dont we design a cache architecture which will store frequently used database operation will be on database as well as on cache also. When you write in frequently used table then write it in cache and database both. So when ever any operation requested by your application from table it will return from Cache itself and not from table. So decrease I/O read from Harddisk.

Same is true for file operation also.

There are some thing before incorporating cache with your application like if you have good RAM then your application goes faster. But if it is not then it is not good to use it.

Inside iPhone SDK

Posted: November 16, 2008 by hardnand in Apple
Tags: ,

Here is the detail insight on iPhone SDK

http://arstechnica.com/articles/culture/iPhone-SDK.ars

Enjoy !!!

Linux Performance

Posted: November 14, 2008 by Narendra Shah in Linux Box
Tags: , ,

1. How to make things run faster?

This actually is not a problem. Most of the people who are new to Linux usually are surprised by the speed it works at. They love to find the machine responding faster and the decrease in system boot up and application launch response. But for enthusiasts it is never enough. They would always want to have a bit more. They would just push the machine to its extreme and thats what they rejoice in.

From another perspective, we may need our computer to do a particular job faster than other jobs. For example, one may want that the CD burning program is allocated more resources so that CD is not corrupted or one may like that Databases respond quicker.

For this to be accomplished, you need to run the program with a higher priority. In the Linux world, the term ‘niceness’ corresponds to priority. The second thing to be remembered is that a program with LESS niceness is more prior than others. The easier was to remember is that a person who is less nice to others will prefer HIS work before allowing his neighbors to use the resources. So a less nice process will ask for allocation of resources more towards itself than towards the other processes.

The niceness of a process in Linux will typically range from -20 (greatest priority) to +19 (least priority). So if you need to run a process with more priority, run it with less niceness. The easiest way to do this is as follows :

Code: Select all
# nice --adjustment=<niceness> COMMAND

This will run the COMMAND with the specified niceness. nice command is used to set priority of Process in linux. The thing to be noticed is that the nice command can be used only by the root. So you need to be the root before running it. However that would launch the process as root which is not desirable. So to make sure that the nice program is executable by all the users, run the following command as root:

Code: Select all
# chmod +s /usr/bin/nice

Now, an example for the nice command ca be as follows:

Code: Select all
#nice --adjustment=-15 vmware

Runs VMware with a much higher priority (-15) than the normal (0).

NOTE: Remember that you should not run any process with a niceness lower than -15 (without knowing what actually is done) as this may make other processes really slow depending on what the process does.

Let me discuss what benefits I get by using the above example:

Since I run my Windows OS with only one processor power allocated to it which is fairly OK in most of the cases where heavy multitasking is not required. But when I am doing some multitasking in the Virtual Machine but do not want to get my system slow which I use for downloading, copying files and listening to music at one time, I am at a loss. In this case, I run the VMware with a higher priority (and a lower niceness) so that all the power of the ONE processor goes to the Windows in virtual environment and makes it run faster (however multiple machines at one time will take away more power from both processors) and my real machine works at a fair speed as well.

So if you understand what your program does, you can very well run each and every program at a favorable speed.

NOTE: DO not be in the illusion that if you launch all the programs with a higher priority, all of them will run much fast. Niceness of a process is RELATIVE TO OTHER PROCESSES and hence only a few programs which are needed to be run faster can be launched with a lower niceness, not all of them.

 

I will add more performance hits over here as time goes.

Vista look on Linux

Posted: November 14, 2008 by Narendra Shah in Linux Box

So I have been Watching these days that many people (well, exactly speaking, I am talking about my friends) are ready to push their parents to buy them a new OS (or some insist a complete LAPTOP) because they want Vista. No one agrees with HOME BASIC. AT LEAST HOME PREMIUM IS NECESSARY for all of them!

I went on asking them the reason why they wanted to shell out Rs. 8000 – 10000 on an OS when XP was working all fine, with better hardware support, nice speed, less memory usage, more compatible programs and all such things, they said “AERO”. HUH!

I know that Vista indeed is an appreciable product. But I really do not know or understand the reason why a person must shell out thousands for a GLASSY WINDOWS look! So of course I had to show them the LONG LONG list of EFFECTS from the world of Linux and that meant Compiz-fusion.

I know that there are still many many people who want Vista JUST FOR the effects and are ready to give away a lot of their parents’ hard earned money on premium hardware and an unstable OS, that too just for the looks. This makes me remind of two sentences I heard from on of my friends who had bought a HP pavillion Notebook, which came preloaded with Vista! They are:

1) Looks of an OS are like the face & figure of a young Girl. All the beauty that you see might not be really appreciable, specially when it comes to behavior; for both the cases.

2) Vista crashes more than twice a day. I am unable to figure out how HP and Microsoft have collaborated to give out an OS which was CUSTOMIZED to run on that very hardware and that still crashes more than once a day with almost no severe computational load?

And yes, both of these statements hold true.

So, if you have become a die hard fan of the looks of Vista (i.e. AERO interface) and are ready to take out cash from the wallet, go through the images whose thumbnails I have posted below.

THE LOOKS OF VISTA FOR FREE!!!

1) Cover switcher:
===============
Image

You can switch between the application windows in the same way you do in the Album artwork in iTunes’ latest versions!

2) Flip switcher:
=============

Image

You can switch and select between application Windows in much the same way as you do on Windows VISTA AERO!

3) Show of Shadows:
==================

Image

Shadows are a very impressive part of the Windows Vista AERO interface. Look at the shadow of the Windows one-over-another.

4) Hugry for glass! :
================

Image

Of course the glass is something to die for! And yes, you can have more GLASS in LINUX with compiz fusion when compared to vista and what more? It is YOU who will decide how much glass is enough for you for surrounding your applications!

And yes, it is worth a mention that WHATEVER you see on ANY of the above screenshots is COMPLETELY CUSTOMIZABLE. Right from the color of the glass for active and inactive Windows, Color of text on the title bar, the amopunt of glass surrounding the Windows, The Frame sizes in the flip and cover switchers, transparency of Glass, buttons and MUCH MUCH MORE can be decided by ONLY YOU!

Still not convinced on the point that Linux has all the interface effects (and much much more) than what Windows has to offer? You can surely opt to give away 10000 bucks for INSTABILITY AND RESOURCE WASTAGE in return.