Posts

Showing posts with the label storing

Storing JSON object in HTML5 Local Storage Stringify

Storing JSON object in HTML5 Local Storage Stringify This tutorial will help you to store JSON  Object in LocalStorage. This method uses a function called  stringify . Suppose we have a JSON  object like this : var data = {name:subin,class:8A}; If we want to store this JSON object in Local Storage  then use the function below: localStorage[ info ]=JSON.stringify( data ); Thats it. JSON  Object is now stored in your Local Storage . download  file  now

Stop Windows Storing Recent Opened File List In Vista

Image
Stop Windows Storing Recent Opened File List In Vista People some times complain why does window show the recent opened file list in windows, as for many people it really affects their privacy when others come to know which files they have opened. In Vista you can set the windows not to store the list of recently opened file list so no one will know what files you opened recently. In order to set the privacy settings in windows not to store the names of recently opened file list follow the procedure below 1. Right click on the Start button and select Properties 2. Under Start Menu , Make sure that under Privacy both of these check box are unchecked, if they are not uncheck these checkboxes which says Store and display a list of recently opened files Store and display a list of recently opened programs 3. Click OK, That�s it Done! Windows will not store any program or file opened after you set these privacy settings. Subscribe to TechnoPhillia!! by Email download  file ...

Storing Multi line commands in history using shopt

Storing Multi line commands in history using shopt It is hard to reuse multi-line commands as the newlines are replaced by semicolon and the many line command is converted to a single line. For example: for i in $( ls *.txt) do pwd echo $i cp $i /bin done After executing it, when you press up button to reuse it, the command becomes: for i in $( ls *.txt); do pwd; echo $i; cp $i /bin; done Forget about reusing, I cant even understand what it does when so many things are stuffed in one line! I found a way using which it is possible to retain the newlines in history using shopt . shopt -s lithist Now when you press up button you will see the command in multiple lines! win! If you want this to be enabled by default add " shopt -s lithist " at the end of file ~/.bashrc UPDATE Also multi-line commands are screwed up when you add comments. For example for i in $(ls) do echo "a" #echo $i done becomes for i in $(ls); do echo "a" done (note that there is no semico...