<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:posterous="http://posterous.com/help/rss/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Linux fanatic</title>
    <link>http://tneupaney.posterous.com</link>
    <description>http://tushar.com.np</description>
    <generator>posterous.com</generator>
    <link xmlns="http://www.w3.org/2005/Atom" href="http://posterous.com/api/sup_update#97c225a4e" type="application/json" rel="http://api.friendfeed.com/2008/03#sup" />
    
    
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/tneupaney" /><feedburner:info uri="tneupaney" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://posterous.superfeedr.com/" /><item>
      <pubDate>Sat, 05 Feb 2011 22:53:00 -0800</pubDate>
      <title>10 ways to finding things in linux</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/WIeVVzgWIug/10-ways-to-finding-things-in-linux</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/10-ways-to-finding-things-in-linux</guid>
      <description>&lt;p&gt;
	&lt;p&gt;﻿Basically i am talking about Linux terminal and without installing any new programs. I will also not use any programming languages. I am not digging into regexp details, please refer to their documentations. Many programs have their own regexp and syntax so I usually pipe the output to the input of egrep or such to satisfy my needs. This document is for reference and only states how i use them. These are obviously not the only ways.&lt;p /&gt;1. ls (dir also does things similar) : List the contents. Ls is the first command I use to search in Linux. Obviously the very basic but also, very useful if you know in which directory your file is. This command was written partly by Richard stallman himself. To do a simple search just type ls followed by the file name. Other examples:&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To search file names with a fixed file-type (Using Wildcard)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Here I am searching for mp3 files in my current directory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls -C *.mp3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * this matches everything that has a '.mp3' anywhere in the filename and puts it in a column (-C).&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To search for file whose filetype and first starting character I remember&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # I am searching for mp3 files whose first character is y&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls | egrep '^[Yy].*.mp3$'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * this matches everything starting('^' for starting character) with a 'Y or y' and any number (here '*' for any number of times) of character (here '.' for any character) following it which ends in ".mp3" (here $ as end of line).&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;2. locate : Locate is a command line file search utility which finds file by it's name until regexp is used. Unlike ls, locate searches for files in all directories. But it has a major drawback. It uses a database('/var/lib/mlocate/mlocate.db') to search from, which might not be updated all the time.&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To update the database use&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; updatedb&lt;p /&gt;3. who (also, finger and w) : While a little different, it searches for users who are logged into the computer right now. Finger provides a little more detail&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To find out who logged into the system after the computer booted type:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; who -a -H&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;4. whatis (apropos and man) : These commands searches for discription about some binaries, files whose manual pages are available. It is very useful to find out if an application is installed which additionally displays descriptions (short description in whatis and broader and long description in apropos and a complete manual with man) of the application. whatis and apropos supports regex and wildcards.&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To find out if ls is installed in your system with whatis type:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; whatis ls&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To do the same with apropos&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; apropos -e ls&lt;br /&gt;&lt;br /&gt;5. whereis : Whereis searches for binary files, source files and manual pages about the binary or source.&lt;br /&gt;It is useful to find out where a binary is located and where is it executed from. It doesnot support regex and wildcards.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To find out where ls is located type&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; whereis ls&lt;p /&gt;6. find: The most advance tool to search from command line installed by default is find. It searches for files in a directory hierarchy.&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Ls like command from Find&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; find Desktop/ -print&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Starting from root Find file with filename&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; find / -name fname&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Starting from root find string 'fname' in a filename&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; find / -name "*fname*"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To Find all setuid and setgid programs on your host&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo find / -type f -perm +6000 -ls 2&amp;gt;/dev/null&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * &amp;ldquo;Set-user-ID root&amp;rdquo; programs run as the root user, regardless of who is executing them,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and are a frequent cause of buffer overflows. So, I'll find them to remove selected ones.&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Find all world-writable files on your system&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo find / -perm -2 ! -type l -ls 2&amp;gt;/dev/null&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * The stderr (here '2') is sent to (with '&amp;gt;') /dev/null (a null file in linux).&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Identify all files that do not have an owner or belong to a group&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo find / -nouser -o -nogroup&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Suppose that, I want to find out a file whose name I don't remember but could decide which file it is by viewing &amp;nbsp;&amp;nbsp;&amp;nbsp; the first line&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; find Desktop/ -print0 | xargs -0 head --lines 1 2&amp;gt;/dev/null&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Find prints full filenames of Desktop to stdout followed by null character. Which is piped to xargs which manages spaces and characters and blissfully redirects the output to child processes that prints 1 line from it's start which are created every-time a filename is encountered.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;7. ps:ps displays information about a selection of the active processes. If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you want a repetitive update of the selection and the displayed&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; information, use top instead. Other ps like commands are (top,pgrep and pstree)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To see every process in the system&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ps -ef&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To print a process tree&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ps -ejH or a beautiful one with ps -ef --forest&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To see every process running as root&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ps -U root -u root u&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Send Termination signal to Process 'MySql' after finding it's id&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo kill -s TERM 'ps -C mysqld -o pid='&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Sort according to cpu usage&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ps u -e --sort cp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Sort according to memory uses&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ps u -e --sort pmem&lt;p /&gt;8. netstat: Netstat&amp;nbsp; prints&amp;nbsp; information about the Linux networking subsystem.&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To display a complete information&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netstat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To display information interface wise&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netstat -i&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To display information about routing&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netstat -r&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Show network statistics&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netstat -s&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Display lsof type result&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netstat -p&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;9. proc: Proc file system is a pseudo-file system which is a kernel and process information gathering virtual filesystem. To access a process and it's information use syntax: "/proc/[pid]/..."&lt;p /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To Find a processes status&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat /proc/[pid]/stat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To find the command line for a process&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat /proc/[pid]/cmdline&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To find the environment variable of the process&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (cat /proc/1/environ; echo) | tr '\000' '\n'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To fetch information about your battery where BAT0 is battery id&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat /proc/acpi/battery/BAT0/info&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To fetch information about your cpu&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat /proc/cpuinfo&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To fetch information about filesystems in your computer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat /proc/filesystems&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # An alternative to fstab&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat /proc/mounts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;10. lsof : &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # List open files used by internet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsof -i&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # List files opened by internet and used by example.com and port 20&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsof -i @example.com:20&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # List all open files on device sda1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsof /dev/sda1&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/10-ways-to-finding-things-in-linux"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/10-ways-to-finding-things-in-linux#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/WIeVVzgWIug" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/10-ways-to-finding-things-in-linux</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 23 Dec 2010 01:21:00 -0800</pubDate>
      <title>Ubuntu 10.10. What I did to my computer.</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/BT6FCwdgbl8/ubuntu-1010-what-i-did-to-my-computer</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/ubuntu-1010-what-i-did-to-my-computer</guid>
      <description>&lt;p&gt;
	&lt;p&gt;SAfter installing Ubuntu 10.10 into my computer the following are the list of software and tweaks i did to my computer. If you like it you can use it.&lt;p /&gt;1. Installed Firefox addons:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. Adblock Plus&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. DownloadHelper&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c. Download Statusbar&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d. FaviconizeTab&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e. Fission&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; f. Greasemonkey&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g. Omnibar&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; h. Smart Stop/Reload&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.&amp;nbsp; SmoothWheel&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; j.&amp;nbsp; Stylish (installed the style: Highlight Input&amp;amp;Textarea)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; k. Firebug&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l. FireFTP&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m. Chromifox Basic&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; And Did the following Tweaks&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Typed about:config in url bar and changed the following values&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. media.autoplay.enabled-&amp;gt;false&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. network.buffer.cache.size-&amp;gt;8192&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c. network.http.max-connections-per-server-&amp;gt;30&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d. network.http.pipelining-&amp;gt;true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e. network.http.pipelining.maxrequests-&amp;gt;20&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; f.&amp;nbsp; network.http.pipelining.ssl-&amp;gt;true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g. network.http.request.max-start-delay-&amp;gt;2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; h. plugins.hide_infobar_for_missing_plugin-&amp;gt;true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.&amp;nbsp; plugins.hide_infobar_for_outdated_plugin-&amp;gt;true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; j.&amp;nbsp; network.http.keep-alive-&amp;gt;true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; k. network.http.max-persistent-connections-per-server-&amp;gt;30&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PS: you can enable pipelining for proxy in the same manner too.&lt;p /&gt;2. Installed software in Ubuntu:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Gimp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Vlc Media Player&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Docky&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Clementine Music Player&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. Zeitgeist Engine&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. Gloobus-preview&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7. elementary desktop&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8. Nautilus elementary&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.&amp;nbsp; Elementary theme for nautilus&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp; Recoll Search engine&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11. Artha Dictionary&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12. Hotot Twitter Client&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13. Geany&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14. Wine&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15. CCSM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16. apt-fast&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17. nautilus-script-manager&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18. nautilus-terminal&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19. skype&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20. vim&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21. Global-Menu Applet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22. Nmap&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23. Ethereal&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24. Wireshark&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25. Experimental Plugins for Compiz&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; sudo apt-fast install compiz-fusion-bcop compiz-dev \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; build-essential libtool \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; libglu1-mesa-dev libxss-dev \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; libcairo2-dev git-core&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; git close git://anongit.compiz.org/users/soreau/scripts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; cd git&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; ./compiz-addons install all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26. Ubuntu Tweak&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27. Pdf Suffler&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28. axel&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29. hugin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30. bum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31. pdfedit&lt;p /&gt;3. Plugins/addons&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. Adobe Flash Plugin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. OpenJDK&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c. Gstreamer Plugins&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d. Ubuntu Restricted Extras&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e. Any hardware drivers which i may need&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;4. Addons for gedit&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. Auto Tab&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Browser Preview&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c. Class Browser&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d. Tabs Extended&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; f.&amp;nbsp; File Browser Pane&lt;p /&gt;5. Tweaks for ubuntu&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. Sanitize panels&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Adjust fonts and resolution&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c. Put up nice background picture&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d. change vlc looks to minimalistic and without menus&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e. change desktop edge settings &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; f. change number of workplaces and their arrangements&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g. Increase memory size in ooffice and choose small icon sets&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; h. customize ooffice toolbars and fonts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i. Disable help agent in ooffice&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; j. Tweak vimrc file and bashrc files&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; k. Stop unused application from starting up&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/ubuntu-1010-what-i-did-to-my-computer"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/ubuntu-1010-what-i-did-to-my-computer#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/BT6FCwdgbl8" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/ubuntu-1010-what-i-did-to-my-computer</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 30 Jun 2010 22:58:00 -0700</pubDate>
      <title>Stop Mysql service to run at startup</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/g9E9C6MXUJc/21706792</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/21706792</guid>
      <description>&lt;p&gt;
	&lt;p&gt;My Linux box was running mysql from the start and I did have no clue. It was not in my startup applications list, neither in my init.d folders.&lt;p /&gt;But whenever i did &lt;em&gt;nmap of localhost&lt;/em&gt;, i could see the mysql port open. I could &lt;strong&gt;kill mysql service&lt;/strong&gt;, need to kill it multiple times, only then it used to die.&lt;p /&gt;I even installed "&lt;strong&gt;sysv-rc-conf&lt;/strong&gt;" so that i could stop it at run levels, but it was not running at any runlevels. I then did "update-rc.d mysql disable". Which didn't work either.&lt;p /&gt;Later I found that there was a file called "&lt;strong&gt;mysql.conf&lt;/strong&gt;" in&lt;em&gt; /etc/init/&lt;/em&gt; folder. I renamed the file to &lt;strong&gt;mysql.conf.disabled&lt;/strong&gt; and it worked out. Hope this will help others who have the same problem.&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/21706792"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/21706792#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/g9E9C6MXUJc" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/21706792</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 26 May 2010 00:39:00 -0700</pubDate>
      <title>Lookup details of an IP or Domain (whois lookup) graphically</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/FoEurjFKWBk/lookup-details-of-an-ip-or-domain-whois-looku</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/lookup-details-of-an-ip-or-domain-whois-looku</guid>
      <description>&lt;p&gt;
	&lt;p&gt;By using the following script you can easily lookup for an ip or domain using zenity and shell script. (sorry Windows folks, i just hate you).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;# Get the domain name&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;Z="/usr/bin/zenity"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;O="/tmp/whois.o.$$"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;domain=$(${Z} --title  "Domain Information" \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;                --entry --text "Domain name who's information you seek!" )&lt;/span&gt;&lt;p /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;if [ $? -eq 0 ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;then&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;    whois $domain  | tee &amp;gt;${O}&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;  # Display back output&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;  ${Z} --width=800 --height=600  \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;               --title "Whois info for $domain" \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;               --text-info --filename="${O}"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;  ${Z} --error \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;               --text="No input provided"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large; color: #ff9900;"&gt;fi&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Enjoy. :D&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/lookup-details-of-an-ip-or-domain-whois-looku"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/lookup-details-of-an-ip-or-domain-whois-looku#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/FoEurjFKWBk" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/lookup-details-of-an-ip-or-domain-whois-looku</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 08 Apr 2010 04:13:00 -0700</pubDate>
      <title>oh i am back in ruby!</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/jfVRLQMO9_Q/oh-i-am-back-in-ruby</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/oh-i-am-back-in-ruby</guid>
      <description>&lt;p&gt;
	&lt;p&gt;After a long time, I am back and am back in ruby too.&lt;br /&gt;doing new things in ruby.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small; color: #808000;"&gt;&lt;span style="color: #ff9900;"&gt;&lt;strong&gt;&lt;span class="keyword"&gt;class&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; linuxfanatic  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small; color: #808000;"&gt;&lt;span style="color: #ff9900;"&gt;&lt;strong&gt;  &lt;span class="keyword"&gt;def&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; says(message)  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small; color: #808000;"&gt;    puts message  &lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size: x-small; color: #ff9900;"&gt;  &lt;span class="keyword"&gt;end&lt;/span&gt;  &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color: #ff9900;"&gt;&lt;strong&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="keyword"&gt;end&lt;/span&gt;  &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small; color: #808000;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small; color: #808000;"&gt;tushar = linuxfanatic.&lt;strong&gt;&lt;span class="keyword" style="color: #ff9900;"&gt;new  &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="font-size: x-small; color: #808000;"&gt;tushar.says &lt;span class="string"&gt;"oh i am back in ruby!"&lt;/span&gt;&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;

	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/oh-i-am-back-in-ruby"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/oh-i-am-back-in-ruby#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/jfVRLQMO9_Q" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/oh-i-am-back-in-ruby</feedburner:origLink></item>
    <item>
      <pubDate>Sun, 21 Mar 2010 23:17:00 -0700</pubDate>
      <title>Make Your Linux Box Blazing fast!</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/ZBe7g77PNN4/make-your-linux-box-blazing-fast</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/make-your-linux-box-blazing-fast</guid>
      <description>&lt;p&gt;
	&lt;p&gt;This list is compiled for my personal use, should work for anyone. Try the followings:&lt;/p&gt;
&lt;p&gt;1. Use lighter applications (Replace your default applications with them)&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;Gedit &amp;gt;&amp;gt; Mousepad&lt;br /&gt;Picture viewer (EOG ...) &amp;gt;&amp;gt; Gpicview&lt;br /&gt;Network Manager &amp;gt;&amp;gt; Wicd&lt;br /&gt;Open Office Writer &amp;gt;&amp;gt; AbiWord&lt;br /&gt;Open Office Spreadsheet &amp;gt;&amp;gt; Gnumeric&lt;br /&gt;Evince &amp;gt;&amp;gt; epdfview&lt;/p&gt;
&lt;p&gt;2. Increase Swappiness&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo vim /etc/sysctl.conf&lt;br /&gt;Edit: vm.swappiness=10&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; For dual cores (Use Concurrency)&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo vim /etc/init.d/rc&lt;br /&gt; Edit: CONCURRENCY=shell&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4. Clean up apt cache at /var/cache/apt/archives and unneccessary apt-sources list in /etc/apt/sources.list&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo apt-get autoclean&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;5. Install BUM (Boot Up manager)&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo apt-get install bum&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;Remove unneccessary applications and services from startup&lt;/p&gt;
&lt;p&gt;6. Remove some unneccessary TTY's&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo vim /etc/default/console-setup&lt;br /&gt;Edit: ACTIVE_CONSOLES="/dev/tty[1-3]"&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;Note: goto /etc/event.d/ and change the tty's files that you DONOT want. Edit them and comment lines starting with &amp;ldquo;start on runlevel&amp;rdquo;. So, in this case, you&amp;rsquo;ll comment the start line in tty4..tty6 files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;7. Install Prelink&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo apt-get install prelink&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo vim /etc/default/prelink&lt;br /&gt;Edit&lt;/span&gt;: PRELINKING=Yes&lt;br /&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo /etc/cron.daily/prelink&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;8. Install Preload&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo apt-get install preload&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;9. Get rid of kinit if you don't use hibernate and sleep functions.&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;$ sudo vim /etc/initramfs-tools/conf.d/resume&lt;br /&gt;Edit: Comment (Put # in front of) RESUME=XXXX.........................&lt;/span&gt;&lt;span style="color: #333300; font-family: Verdana; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[Disclaimer] Administer the following at your own risk.&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/make-your-linux-box-blazing-fast"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/make-your-linux-box-blazing-fast#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/ZBe7g77PNN4" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/make-your-linux-box-blazing-fast</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 13 Jan 2010 22:23:03 -0800</pubDate>
      <title>My .vimrc file </title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/vnYBFo75mv4/my-vimrc-file-0</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/my-vimrc-file-0</guid>
      <description>&lt;p&gt;
	&lt;p&gt;&lt;strong&gt;Vim&lt;/strong&gt; is the &lt;strong&gt;editor&lt;/strong&gt; of my choice for my &lt;strong&gt;linux&lt;/strong&gt; box. I have configured my &lt;strong&gt;.vimrc&lt;/strong&gt; file in my &lt;strong&gt;ubuntu&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;" Tushar Neupaney's VIMRC File&lt;br /&gt;" Followme twitter.com/tneupaney&lt;br /&gt;" linuxfanatic.posterous.com&lt;p /&gt;" (&lt;strong&gt;sw&lt;/strong&gt;)&lt;strong&gt;shiftwidth&lt;/strong&gt;: how many columns text is indented with reindent operations&lt;br /&gt;" (&lt;strong&gt;sts&lt;/strong&gt;)&lt;strong&gt;softtabstop&lt;/strong&gt;: how many columns vim uses when you hit tab&lt;br /&gt;" (&lt;strong&gt;ts&lt;/strong&gt;)&lt;strong&gt;tabstop&lt;/strong&gt;: how many columns a tab counts for&lt;br /&gt;set ts=4 sw=4 sts=2&lt;p /&gt;" &lt;strong&gt;expandtab&lt;/strong&gt;: appropriate number of spaces in insert mode&lt;br /&gt;set expandtab&lt;p /&gt;" Make &lt;strong&gt;gvim&lt;/strong&gt; &lt;strong&gt;colorscheme&lt;/strong&gt; as evening&lt;br /&gt;if v:progname =~? "gvim"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorscheme evening&lt;br /&gt;endif&lt;p /&gt;" Prevents keeping of &lt;strong&gt;backup&lt;/strong&gt; after &lt;strong&gt;overwriting&lt;/strong&gt; the file&lt;br /&gt;set nobk&lt;p /&gt;" To see &lt;strong&gt;line numbers&lt;/strong&gt; on the left&lt;br /&gt;set number&lt;p /&gt;" &lt;strong&gt;autocomplete&lt;/strong&gt; &lt;strong&gt;parenthesis&lt;/strong&gt;, &lt;strong&gt;brackets&lt;/strong&gt; and &lt;strong&gt;braces&lt;/strong&gt;&lt;br /&gt;inoremap ( ()&amp;lt;Left&amp;gt;&lt;br /&gt;inoremap [ []&amp;lt;Left&amp;gt;&lt;br /&gt;inoremap { {}&amp;lt;Left&amp;gt;&lt;p /&gt;" &lt;strong&gt;Syntax highlighting&lt;/strong&gt; on&lt;br /&gt;syntax on&lt;p /&gt;" &lt;strong&gt;share windows clipboard&lt;/strong&gt;&lt;br /&gt;set clipboard+=unnamed&lt;p /&gt;" &lt;strong&gt;Hightlight&lt;/strong&gt; the curent &lt;strong&gt;column&lt;/strong&gt;&lt;br /&gt;set cursorcolumn&lt;p /&gt;" &lt;strong&gt;Hightlight&lt;/strong&gt; the &lt;strong&gt;current line&lt;/strong&gt;&lt;br /&gt;set cursorline&lt;p /&gt;-------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Here is the Screenshot!&lt;/p&gt;
&lt;p&gt;&lt;img src="http://web12.twitpic.com/img/57140496-3edd8519112cf6ef603be002fc007236.4b4eb6d9-scaled.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/my-vimrc-file-0"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/my-vimrc-file-0#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/vnYBFo75mv4" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/my-vimrc-file-0</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 13 Jan 2010 04:23:00 -0800</pubDate>
      <title>[Solved] Wireless Driver for Compaq CQ40 (bcm4312)</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/Vg9mrGEZoe8/solved-wireless-driver-for-compaq-cq40-bcm431</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/solved-wireless-driver-for-compaq-cq40-bcm431</guid>
      <description>&lt;p&gt;
	&lt;p&gt;Trying out&lt;strong&gt; ubuntu&lt;/strong&gt; in our new office laptops the &lt;strong&gt;Compaq CQ40&lt;/strong&gt;, I found out that the&lt;strong&gt; wireless driver&lt;/strong&gt; was not working. To find out the actual wirelss device installed in the system I tried the following commands:&lt;/p&gt;
&lt;p&gt;1. lshw -C network&lt;/p&gt;
&lt;p&gt;This gave me the product result as &lt;strong&gt;BCM4312&lt;/strong&gt; 802.11b/g from Broadcom Corporation. Tried a lot of googling and found that you could download a file from broadcom &lt;a href="http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz" title="here"&gt;here&lt;/a&gt;. And do the following! While this works for me.&lt;/p&gt;
&lt;p&gt;Try the following while being root!&lt;/p&gt;
&lt;p&gt;# Removing previous instances of wireless drivers if any&lt;br /&gt;2. lsmod | grep "b43\|ssb\|wl" &lt;br /&gt;3. rmmod b43&lt;br /&gt;4. rmmod ssb&lt;br /&gt;5. rmmod wl&lt;/p&gt;
&lt;p&gt;# Prepare the device driver from the file that you've downloaded&lt;br /&gt;6. cd to the downloaded file&lt;br /&gt;7. make clean&lt;br /&gt;8. make&lt;/p&gt;
&lt;p&gt;# Blacklist previous drivers&lt;br /&gt;9. echo "blacklist ssb" &amp;gt;&amp;gt; /etc/modprobe.d/blacklist.conf&lt;br /&gt;10. echo "blacklist b43" &amp;gt;&amp;gt; /etc/modprobe.d/blacklist.conf&lt;br /&gt;11. echo "blacklist wl" &amp;gt;&amp;gt; /etc/modprobe.d/blacklist.conf&lt;/p&gt;
&lt;p&gt;# Install the driver&lt;br /&gt;12. modprobe lib80211&lt;br /&gt;13. insmod wl.ko&lt;/p&gt;
&lt;p&gt;:-)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/solved-wireless-driver-for-compaq-cq40-bcm431"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/solved-wireless-driver-for-compaq-cq40-bcm431#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/Vg9mrGEZoe8" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/solved-wireless-driver-for-compaq-cq40-bcm431</feedburner:origLink></item>
    <item>
      <pubDate>Sat, 05 Dec 2009 20:36:17 -0800</pubDate>
      <title>What is the motive beind today's nepal band?</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/zMasoBwpvVc/what-is-the-motive-beind-todays-nepal-band</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/what-is-the-motive-beind-todays-nepal-band</guid>
      <description>&lt;p&gt;
	&lt;p&gt;&lt;script language="javascript" src="http://www.polleverywhere.com/multiple_choice_polls/MjEwMzE0Nzk5NQ/web.js?results_count_format=percent&amp;css=false&amp;partner=posterous" type="text/javascript"&gt;&lt;/script&gt;&lt;link href="/stylesheets/polleverywhere.css" rel="stylesheet" type="text/css" /&gt;&lt;div style="margin-top: 5px; margin-bottom: 15px; text-align: right;"&gt;&lt;a href="http://polleverywhere.com"&gt;&lt;img src="/images/services/live_poll_by_polleverywhere.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/what-is-the-motive-beind-todays-nepal-band"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/what-is-the-motive-beind-todays-nepal-band#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/zMasoBwpvVc" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/what-is-the-motive-beind-todays-nepal-band</feedburner:origLink></item>
    <item>
      <pubDate>Sat, 05 Dec 2009 07:01:00 -0800</pubDate>
      <title>Why did the chicken crossed the road?</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/bvUd9uHkmLs/why-did-the-chicken-crossed-the-road</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/why-did-the-chicken-crossed-the-road</guid>
      <description>&lt;p&gt;
	&lt;p&gt;We can see people taking strange stand in things they think true, &lt;br /&gt;but holds meanings from different perspectives and may not be true to&lt;br /&gt;all ranges of beholders. We can visualize this in political agendas where,&lt;br /&gt;&amp;nbsp;each agenda is a mere delusion and are produced to shadow the&lt;br /&gt;real fact. But for it's faithful believers all points are considered to be true.&lt;br /&gt;&amp;nbsp;Here is an example of a small question being asked and supposed&lt;br /&gt;opinions of famous people around the globe. &lt;br /&gt;The question being "Why did the chicken crossed the road?". &lt;p /&gt;Plato:&amp;nbsp; For the greater good.&lt;p /&gt;Aristotle:&amp;nbsp; To fulfill its nature on the other side.&lt;p /&gt;Karl Marx:&amp;nbsp; It was a historical inevitability.&lt;p /&gt;Nietzsche:&amp;nbsp; Because if you gaze too long across the Road, the Road &lt;br /&gt;gazes also across you.&lt;p /&gt;Albert Einstein:&amp;nbsp; Whether the chicken crossed the road or the road&lt;br /&gt;crossed the chicken depends upon your frame of reference.&lt;p /&gt;Darwin:&amp;nbsp; It was the logical next step after coming down from the &lt;br /&gt;trees.&lt;p /&gt;Ernest Hemingway:&amp;nbsp; To die.&amp;nbsp; In the rain.&lt;p /&gt;Buddha:&amp;nbsp; If you ask this question, you deny your own chicken-nature.&lt;p /&gt;Pyrrho the Skeptic: What road?&lt;p /&gt;Ronald Reagan:&amp;nbsp; Well,...................&lt;p /&gt;Mark Twain:&amp;nbsp; The news of its crossing has been greatly exaggerated.&lt;p /&gt;Johnny Cochran:&amp;nbsp; The chicken didn't cross the road. Some chicken-hating, genocidal, &lt;br /&gt;lying public official moved the road right under the chicken's feet while he was practising his golf swing and &lt;br /&gt;thinking about his family.&lt;p /&gt;More on &lt;a href="http://www.infiltec.com/j-chick2.htm" title="infiltec.com" target="_blank"&gt;INFILTEC:HUMOR&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/why-did-the-chicken-crossed-the-road"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/why-did-the-chicken-crossed-the-road#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/bvUd9uHkmLs" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/why-did-the-chicken-crossed-the-road</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 03 Dec 2009 19:16:14 -0800</pubDate>
      <title>10 finest Gifts for the geeks (Under $10)</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/Cw7fjOuta-Q/10-finest-gifts-for-the-geeks-under-10</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/10-finest-gifts-for-the-geeks-under-10</guid>
      <description>&lt;p&gt;
	&lt;p&gt;So what does a geek want? Don't know in certain than try out the new &lt;a href="http://www.thinkgeek.com/interests/giftsunder10/feature/desc/0/all"&gt;Under $10 Gifts&lt;/a&gt; from thinkgeek. If you have already been to thinkgeek.com you might have realized the wonderful and exciting things they collect which are humorously creative. Obviously, the gifts that I am talking about are also salient yet pleasing to any geek or nerd around. Some of my personal favourite are:-&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.thinkgeek.com/images/products/front/einstein.jpg" height="186" alt="" width="79" /&gt; &lt;img src="http://www.thinkgeek.com/images/products/zoom/9405_starwars_sd_plush.jpg" height="171" alt="" width="181" /&gt; &lt;img src="http://www.thinkgeek.com/images/products/additional/large/snowbot_army.jpg" height="174" alt="" width="229" /&gt; &lt;img src="http://www.thinkgeek.com/images/products/front/b640_control_a_cat_remote_control.jpg" height="196" alt="" width="133" /&gt; &lt;img src="http://www.thinkgeek.com/images/products/zoom/b21b_origami_sticky_notes.jpg" height="147" alt="" width="184" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Albert Einstein action figure: &lt;/strong&gt;Dressed for intense classroom action, this Albert Einstein Action Figure stands with a piece of chalk in his hand, poised to explain relativity or do battle with the forces of entropy&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. &lt;/strong&gt;&lt;strong&gt;3-D Paper Notepad&lt;/strong&gt;: Now you can practice origami in the office and make use of all the old sticky notes you have plastered to your desk. Each pad has printed instructions on each sheet for 10 different origami shapes. From UK-based design company Suck UK.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Control-A-Cat-Remote:&lt;/strong&gt; Simply point at your cat, press buttons on the remote and hope for the best. With buttons for "Stop Scratching", "Show Affection", "Remain Aloof" and others, you'll be in control in no time. It's finally your turn to make your cat do what &lt;em&gt;you&lt;/em&gt; want.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Paper E-mail:&lt;/strong&gt; Paper E-mail is perhaps the funniest way to pass messages in your office. Why? Because it will confuse the person you send it to. 'Why didn't they just e-mail this to me?' they'll wonder, 'is their computer down?'&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5. Star Wars dolls:&lt;/strong&gt; Each one is officially licensed by Lucasfilm and crafted by only the finest plush-clone engineers Kamino has to offer. They are huggable and throwable and small enough to hide in a back pack or on your desk.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;6. Infectious Cute Microbes:&lt;/strong&gt; Most folks never realize how cute microbes can be when expanded 1,000,000 times and then fashioned into cuddly plush. Until now, that is. Keep one on your desktop to remind yourself that there is an "invisible" universe out there filled with very small things that can do incredible damage to much bigger things.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;7. Tiny Remote:&lt;/strong&gt; The Micro Spy Remote's powers will work on a wide variety of televisions (Sony, Panasonic, Samsung, Toshiba, Sanyo, Aiwa, Mitsubishi, Philips, JVC, Sharp, etc) and its small size will safeguard you against discovery. Remember, Agent 002, if you are caught, the Department will not save you. You are on your own. Good luck, Mr. Blond.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;8. Usb SnowBot:&lt;/strong&gt; Powered by a simple USB port, the Snowbot has a scanning light just like the robots from the future. You can change the speed of the scan, turn on/off the scanning noise, and (for future protection) change the scan color (red or blue). So no matter which robot army storms your home or office, a quick flick of a switch and you are rooting for the invader's color.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;9. Utili-Key 6-in-1 Tool:&lt;/strong&gt; The lightest, most compact multiple tool ever developed! If you feel lost without your trusty knife at your side, this tiny multi-tool can give you some great company. Easily closes to attach to any key ring, making it super easy to carry.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;10. Cool Shooters Ice Shotglasses:&lt;/strong&gt; The two biggest problems in hosting a truly epic party are keeping the drinks cold, and glass breakage. So, the good scientists at ThinkGeek Hootenanny Industries, L.L.C. realized there was a need begging for a product. After weeks of study and drinking well into the night, we found the Cool Shooters Ice shotglasses tray.&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/10-finest-gifts-for-the-geeks-under-10"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/10-finest-gifts-for-the-geeks-under-10#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/Cw7fjOuta-Q" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/10-finest-gifts-for-the-geeks-under-10</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 03 Dec 2009 08:06:00 -0800</pubDate>
      <title>Politics Explained</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/Ph1JkxPIpKw/politics-explained-4</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/politics-explained-4</guid>
      <description>&lt;p&gt;
	&lt;p&gt;FEUDALISM: You have two cows. Your lord takes some of the milk.&lt;/p&gt;
&lt;p&gt;PURE SOCIALISM: You have two cows. The government takes them and puts them in a barn with everyone else's cows. You have to take care of all of the cows. The government gives you as much milk as you need.&lt;/p&gt;
&lt;p&gt;BUREAUCRATIC SOCIALISM: You have two cows. The government takes them and put them in a barn with everyone else's cows. They are cared for by ex-chicken farmers. You have to take care of the chickens the government took from the chicken farmers. The government gives you as much milk and eggs as the regulations say you need.&lt;/p&gt;
&lt;p&gt;FASCISM: You have two cows. The government takes both, hires you to take care of them and sells you the milk.&lt;/p&gt;
&lt;p&gt;PURE COMMUNISM: You have two cows. Your neighbors help you take care of them, and you all share the milk.&lt;/p&gt;
&lt;p&gt;RUSSIAN COMMUNISM: You have two cows. You have to take care of them, but the government takes all the milk.&lt;/p&gt;
&lt;p&gt;CAMBODIAN COMMUNISM: You have two cows. The government takes both of them and shoots you.&lt;/p&gt;
&lt;p&gt;DICTATORSHIP: You have two cows. The government takes both and drafts you.&lt;/p&gt;
&lt;p&gt;PURE DEMOCRACY: You have two cows. Your neighbors decide who gets the milk.&lt;/p&gt;
&lt;p&gt;REPRESENTATIVE DEMOCRACY: You have two cows. Your neighbors pick someone to tell you who gets the milk.&lt;/p&gt;
&lt;p&gt;BUREAUCRACY: You have two cows. At first the government regulates what you can feed them and when you can milk them. Then it pays you not to milk them. Then it takes both, shoots one, milks the other and pours the milk down the drain. Then it requires you to fill out forms accounting for the missing cows.&lt;/p&gt;
&lt;p&gt;PURE ANARCHY: You have two cows. Either you sell the milk at a fair price or your neighbors try to take the cows and kill you.&lt;/p&gt;
&lt;p&gt;LIBERTARIAN/ANARCHO-CAPITALISM: You have two cows. You sell one and buy a bull.&lt;/p&gt;
&lt;p&gt;SURREALISM: You have two giraffes. The government requires you to take harmonica lessons.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;Source: &lt;a href="http://www.sjgames.com/illuminati/politics.html"&gt;www.sjgames.com/illuminati/politics.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/politics-explained-4"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/politics-explained-4#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/Ph1JkxPIpKw" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/politics-explained-4</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 01 Dec 2009 08:56:40 -0800</pubDate>
      <title>Hewlett Packard (HP 530) due to snd-hda-intel making a click sound fixed</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/ufPPDrXsrME/hewlett-packard-hp-530-due-to-snd-hda-intel-m</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/hewlett-packard-hp-530-due-to-snd-hda-intel-m</guid>
      <description>&lt;p&gt;
	&lt;p&gt;I had installed ubuntu in my uncle's laptop hp 530. I had installed ubuntu 9.04 (jaunty jackalope) in the laptop. When I upgraded the distro into Karmic Koala, the audio started to make a clicking sound. So irritating and confusing. I tried to unload all the modules for sound first so tried:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: medium;"&gt;rmmod snd*&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;then, tried to load each module independently, later to my notice only when the snd-hda-intel module was installed, the computer was going wooo.&lt;/p&gt;
&lt;p&gt;So&amp;nbsp; I thought that there is a problem in the module. Strangely the sound was not coming when I was running rhythmbox or vlc or some sort of video or audio player. Thus I had to search the internet for remedy.&lt;/p&gt;
&lt;p&gt;The solution is quite easy : you need to comment out the following line in /etc/modprobe.d/alsa-base.conf.&lt;/p&gt;
&lt;p&gt;#options snd-hda-intel power_save=10 power_save_controller=N&lt;/p&gt;
&lt;p&gt;I too found out that there were bug reporting of the same and a youtube video to demonstrate the problem. But I tried to search something else, I was looking for what is snd-hda-intel and why the hell is it needed when everyone is commenting it out. Actually, it is a module to control the HD Audio Controller, produced by intel. You will come across this, when you type the command lspci. This module is used to control the Intel audio bus, but is quite less thought about project. Thus, creation of some audio disturbances are of no interest to the community.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Reference:&lt;/p&gt;
&lt;p&gt;Youtube video explaining the problem: &lt;a href="http://www.youtube.com/watch?v=2_W8HrRwep4"&gt;http://www.youtube.com/watch?v=2_W8HrRwep4&lt;/a&gt;&lt;br /&gt;A Bug in Launchpad: &lt;a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/381201"&gt;https://bugs.launchpad.net/ubuntu/+source/linux/+bug/381201&lt;/a&gt;&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/hewlett-packard-hp-530-due-to-snd-hda-intel-m"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/hewlett-packard-hp-530-due-to-snd-hda-intel-m#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/ufPPDrXsrME" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/hewlett-packard-hp-530-due-to-snd-hda-intel-m</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 30 Nov 2009 23:36:05 -0800</pubDate>
      <title>Could not determine the server's fully qualified domain name : apache2</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/v2mdA5txDbE/could-not-determine-the-servers-fully-qualifi</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/could-not-determine-the-servers-fully-qualifi</guid>
      <description>&lt;p&gt;
	&lt;div class="content"&gt;
&lt;p&gt;I just installed the new karmic koala, in my laptop. After I configured everything i installed apache2. While i started the apache2 service daemon I bumped into the following error:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;While this error is not new to people who have configured apache previously, but the remedy was wonderfully easy. So i wanted to share this with you folks. To do so, you need to edit the &lt;strong&gt;httpd.conf&lt;/strong&gt; file located in &lt;strong&gt;/etc/apache2&lt;/strong&gt; folder. You need to have &lt;strong&gt;sudo&lt;/strong&gt; access (Obviously). So choose your favourite editor and write the following lines in it.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ServerName YOURSERVERNAME&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="content"&gt;This majical line will solve your problem. Try restarting the service by the following command and watch the error fly away.&lt;/div&gt;
&lt;p /&gt;
&lt;div class="content"&gt;sudo /etc/init.d/apache2 restart&lt;/div&gt;

	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/could-not-determine-the-servers-fully-qualifi"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/could-not-determine-the-servers-fully-qualifi#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/v2mdA5txDbE" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/could-not-determine-the-servers-fully-qualifi</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 10 Sep 2009 19:12:00 -0700</pubDate>
      <title>Next Top Trends in Science and Technology</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/23HgUDQQoYI/next-top-trends-in-science-and-technology</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/next-top-trends-in-science-and-technology</guid>
      <description>&lt;p&gt;
	&lt;p&gt;As we all know, trends are things that matters the society the most. Actually, it is not who matters but society shapes the trends and to understand the flow of society, analysis and importance of trends grow by folds. I came across the future trends things in the internet. Sort of ran into it.&lt;br /&gt;&lt;/p&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: center;"&gt;&lt;img title="l_scic061108.jpg" src="http://web-japan.org/trends/science/images/l_scic061108.jpg" height="143" alt="l_scic061108.jpg" width="200" /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;Technology with it's frogleap, is being quite unsually complex to predict, at what end will it come out. But some ideas are already created. Some have florished from the 80's, some are younger when they belong to 90's and this millenium. Some forcastable conditions are:&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;1. &lt;strong&gt;The smaller reveiled&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; As suggested by the name, nano technology is the science of small things. In the future almost everything including food, drugs, clothes, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; machines ... will have nanotech built-in. They will not only be a household item but also be integrated to ourselves as unseperable.&lt;p /&gt; 2. &lt;strong&gt;Singularity&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The rise of machines, where machines will not only be intelligent than humans but also achieve rapid growth, conciousness and the power to replicate itself.&lt;p /&gt;3. &lt;strong&gt;Discipline convergence&lt;/strong&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; We have seen subjects converging with each other already. For example engineering has converged with computing and in future we will see nanotech which&lt;br /&gt;&amp;nbsp; &amp;nbsp; will be a convergence of biology-physics-engineering-chemistry and lot others.&lt;p /&gt; 4. &lt;strong&gt;Universe answered&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We already know universe and it's unpredictabiligy. This won't be so, the queries about the universe and the smaller fractions like quarks will end forever but we still&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; can't predict what will happen next.&lt;p /&gt; 5. &lt;strong&gt;Geo Tagging&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; You will no more be in congnito, world will find out exactly where you are through RFID. This won't make life hard coz you can choose what to make public. This will&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; help you open doors at office, home and banks.&lt;p /&gt; 6. &lt;strong&gt;Device Convergence&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; Ya, we know it's happening. For e.g. your iphone can call someone, play music, play games and browse the internet. This seriously is a convergence.&lt;p /&gt;7. &lt;strong&gt;Time traveling&lt;/strong&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; Though it might seem fantasy, but physics is damn sure it happens. Theoritical physicist have claimed and devoted their lives for this.&lt;p /&gt;8. &lt;strong&gt;Human Genetics&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; Humans will be able to regenerate their body parts and clone themselves too. We will have genetically engineered childs. Looks weird but true&lt;p /&gt; There are limitations here, coz future can be predicted from all sort of angles, disciplines, perspectives and majors.&lt;br /&gt;Please put your view in the comment.&lt;p /&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;br /&gt;1. &lt;em&gt;&lt;a href="http://josephcoates.com/2025_PDF.html"&gt;http://josephcoates.com/2025_PDF.html&lt;/a&gt;&lt;/em&gt;&lt;br /&gt; 2. &lt;em&gt;&lt;a href="http://web-japan.org/trends/science/sci061108.html"&gt;http://web-japan.org/trends/science/sci061108.html&lt;/a&gt;&lt;/em&gt;&lt;br /&gt;3. &lt;em&gt;&lt;a href="http://www.chronicle-future.co.uk/"&gt;http://www.chronicle-future.co.uk/&lt;/a&gt;&lt;/em&gt;&lt;br /&gt; 4. &lt;em&gt;&lt;a href="http://www.altfutures.com/"&gt;http://www.altfutures.com/&lt;/a&gt;&lt;/em&gt;&lt;br /&gt;5. &lt;em&gt;&lt;a href="http://www.nowandnext.com/?action=top_trend/list_trends&amp;amp;sectorId=3"&gt;http://www.nowandnext.com/?action=top_trend/list_trends&amp;amp;sectorId=3&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/next-top-trends-in-science-and-technology"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/next-top-trends-in-science-and-technology#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/23HgUDQQoYI" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/next-top-trends-in-science-and-technology</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 08 Sep 2009 22:30:02 -0700</pubDate>
      <title>Nitche bash commands to use </title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/0AdRXFZX_ug/nitche-bash-commands-to-use</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/nitche-bash-commands-to-use</guid>
      <description>&lt;p&gt;
	I use a lot of scripting for my daily stuffs. I had listed a collection of commands that are useful to me and guess is useful to everyone else reading this blog. &lt;br /&gt;The stuffs below are collected from different sources but i have tested them for working conditions. &lt;br /&gt; If there are any other ways of doing the same thing, please comment.&lt;p /&gt;&lt;b&gt;1. Connect via ssh using mac address&lt;/b&gt;&lt;br /&gt;    ssh root@&amp;#39;for ((i=100; i&amp;lt;=110; i++));do arp -a 192.168.1.$i; done | grep 00:35:cf:56:b2:2g | &lt;br /&gt;     awk &amp;#39;{print $2}&amp;#39; | sed -e &amp;#39;s/(//&amp;#39; -e &amp;#39;s/)//&lt;p /&gt;&lt;b&gt;2. Show directories in the PATH, one each line&lt;/b&gt;&lt;br /&gt;    echo $PATH | tr \: \\n&lt;p /&gt;&lt;b&gt;3. Check your unred yahoo mail with wget&lt;/b&gt;&lt;br /&gt;    wget -q -O - --load-cookies=cookies.txt &amp;quot;&lt;a href="http://uk.mc267.mail.yahoo.com/mc/showFolder"&gt;http://uk.mc267.mail.yahoo.com/mc/showFolder&lt;/a&gt;?&lt;br /&gt;     fid=Inbox&amp;amp;order=down&amp;amp;pSize=25&amp;quot; | sed &amp;#39;s/&amp;lt;[^&amp;gt;]*&amp;gt;/\n/g&amp;#39; | grep &amp;#39;.&amp;#39; | awk &amp;#39;/^Unread$/,/KB$/&amp;#39; | &lt;br /&gt;    grep -v &amp;#39;&amp;amp;nbsp&amp;#39; | sed &amp;#39;s/^Unread$/===============/&amp;#39;&lt;p /&gt; &lt;b&gt;4. Rip VCD&lt;/b&gt;&lt;br /&gt;    cdrdao read-cd --device ATA:1,1,0 --driver generic-mmc-raw --read-raw image.toc&lt;p /&gt;&lt;b&gt;5. Check your gmail from the command line&lt;/b&gt;&lt;br /&gt;    curl -u username --silent &amp;quot;&lt;a href="https://mail.google.com/mail/feed/atom"&gt;https://mail.google.com/mail/feed/atom&lt;/a&gt;&amp;quot; | &lt;br /&gt;     perl -ne &amp;#39;print &amp;quot;\t&amp;quot; if /&amp;lt;name&amp;gt;/; print &amp;quot;$2\n&amp;quot; if /&amp;lt;(title|name)&amp;gt;(.*)&amp;lt;\/\1&amp;gt;/;&amp;#39;&lt;p /&gt;&lt;b&gt;6. Remove html tags from a file&lt;/b&gt;&lt;br /&gt;    sed &amp;#39;s/&amp;lt;[^&amp;gt;]*&amp;gt;//g&amp;#39; index.html&lt;br /&gt;     &lt;br /&gt;&lt;b&gt;7. Make ISO file using the dd command&lt;/b&gt;&lt;br /&gt;    dd if=/dev/cdrom of=output.iso&lt;p /&gt;&lt;b&gt;8. Watch the load average of your computer&lt;/b&gt;&lt;br /&gt;    watch &amp;#39;cat /proc/loadavg&amp;#39;&lt;p /&gt;&lt;b&gt;9. List all harddisk partitions&lt;/b&gt;&lt;br /&gt;     fdisk -l |grep -e &amp;#39;^/&amp;#39; |awk &amp;#39;{print $1}&amp;#39;|sed -e &amp;quot;s|/dev/||g&amp;quot;&lt;p /&gt;&lt;b&gt;10. Reinstall Grub&lt;/b&gt;&lt;br /&gt;    sudo grub-install --recheck /dev/sda1&lt;p /&gt;&lt;b&gt;11. Flash emergency signals from your computer&lt;/b&gt;&lt;br /&gt;     while true; do xset dpms force off; sleep 0.3; xset dpms force on; xset s reset; sleep 0.3; done&lt;br /&gt;    &lt;br /&gt;&lt;b&gt;12. Scan all active ip addresses in your network&lt;/b&gt;&lt;br /&gt;    arp-scan -l   
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/nitche-bash-commands-to-use"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/nitche-bash-commands-to-use#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/0AdRXFZX_ug" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/nitche-bash-commands-to-use</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 07 Sep 2009 03:15:41 -0700</pubDate>
      <title>Get twitter user information and details with perl </title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/E492nqPGaZM/get-twitter-user-information-and-details-with</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/get-twitter-user-information-and-details-with</guid>
      <description>&lt;p&gt;
	If you are wondering how to pull information of a certain user from twitter, wondering what he is saying and the number of people following him.&lt;br /&gt;These can be done with the following code. This code runs even under proxy. So you don&amp;#39;t have to worry if some filthy animals have set proxy upon your freedom to use internet.&lt;p /&gt;Here I have used  the twitter::badge, html::linkextor, lwp::useragent modules of perl to do all the coding. You don&amp;#39;t have to authenticate yourself before accessing the information.&lt;p /&gt; When i designed the code, i first run into a problem. I could not derive the user id of the specific user.&lt;br /&gt;I had to query his site and then find his id from the site. So if anyone, you know how to pull the user id from any sort of module or so, please write down.&lt;p /&gt; The code is in perl programming language:&lt;p /&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;br /&gt;--------------------- In twitter follow me @tneupaney -----------------------------------------&lt;br /&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;p /&gt; &lt;br /&gt;use &lt;b&gt;Twitter::Badge&lt;/b&gt;;&lt;br /&gt;use &lt;b&gt;HTML::LinkExtor&lt;/b&gt;;&lt;br /&gt;require&lt;b&gt; LWP::UserAgent&lt;/b&gt;;&lt;br /&gt; &lt;br /&gt;my $user = shift;&lt;p /&gt;my $extor = HTML::LinkExtor-&amp;gt;new(undef, $URL);&lt;br /&gt;my $ua = LWP::UserAgent-&amp;gt;new;&lt;p /&gt; $ua-&amp;gt;timeout(10);&lt;br /&gt;$ua-&amp;gt;env_proxy;&lt;p /&gt;my $response = $ua-&amp;gt;get(&amp;quot;&lt;a href="http://twitter.com/$user" target="_blank"&gt;http://twitter.com/$user&lt;/a&gt;&amp;quot;);&lt;p /&gt;if ($response-&amp;gt;is_success) {&lt;br /&gt;        $result = $response-&amp;gt;decoded_content;&lt;p /&gt;     $extor-&amp;gt;parse($result)-&amp;gt;eof;&lt;br /&gt;    my @rs = $extor-&amp;gt;links;&lt;br /&gt;    foreach $lnk (@rs) &lt;br /&gt;    {&lt;br /&gt;        if ($$lnk[2] =~ m/.rss$/) {&lt;br /&gt;            @rmslash = split(/\//, $$lnk[2]);&lt;br /&gt;            @lnk_rss = split(/\./, @rmslash[5]);&lt;br /&gt;             $i =@lnk_rss[0];&lt;br /&gt;            $j = badge($i);&lt;br /&gt;            exit;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;    die $response-&amp;gt;status_line;&lt;br /&gt;}&lt;br /&gt;&lt;b&gt;&lt;br /&gt;sub&lt;/b&gt; badge&lt;br /&gt;{&lt;br /&gt;        my $id = shift;                           &lt;br /&gt;         my $twitter = Twitter::Badge-&amp;gt;new(id =&amp;gt; $id);&lt;br /&gt;        $twitter-&amp;gt;fetch();                           &lt;p /&gt;        print $twitter-&amp;gt;name.&amp;#39; says - &amp;#39;.$twitter-&amp;gt;text.&amp;quot;\n&amp;quot;;&lt;br /&gt;        print $twitter-&amp;gt;name.&amp;#39; has &amp;#39;.$twitter-&amp;gt;followers_count.&amp;quot; followers\n&amp;quot;;&lt;br /&gt; }
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/get-twitter-user-information-and-details-with"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/get-twitter-user-information-and-details-with#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/E492nqPGaZM" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/get-twitter-user-information-and-details-with</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 27 Aug 2009 01:06:17 -0700</pubDate>
      <title>Examples of WMIC a hidden secret</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/2JecY3mquqc/examples-of-wmic-a-hidden-secret</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/examples-of-wmic-a-hidden-secret</guid>
      <description>&lt;p&gt;
	&lt;p&gt;WMIC stands for windows management instrumentation command-line, a well kept secret which has been silently being featured in Windows based Operating system actively after windows 2000. The tool is not only robust, powerful and flexible, it can also be used over the network seamlessly.&lt;p /&gt;To access this tool, you have to enter wmic in the command line of windows, which will end up in it's own shell. Mostly, you should have wmic installed as it is the default in windows, you may also see a message saying wmic installing which happens for the first time only. It basically works after the WMI service starts to run. WMIC also has an easy API structure. To use the api you will have to use the WQL or Windows Query Language which is quite similar to SQL or Structed Query Language.&lt;p /&gt;The format of WMIC is: &lt;p /&gt;WMIC [Credentials] [area] [QueryString]&lt;p /&gt;Some Examples and usage of WMIC:&lt;p /&gt;1.&amp;nbsp; To get the process list - wmic process list&lt;br /&gt;2.&amp;nbsp; To get the group list - wmic group list&lt;br /&gt;3.&amp;nbsp; To get the NIC Card Configuration - wmic nicconfig list&lt;br /&gt;4.&amp;nbsp; To get user account list - wmic useraccount list&lt;br /&gt;5.&amp;nbsp; To get the built in System account list - wmic sysaccount list&lt;br /&gt;6.&amp;nbsp; To get the Environment list - wmic environment list&lt;br /&gt;7.&amp;nbsp; To get the information of all shares (including hidden) - wmic share list&lt;br /&gt;8.&amp;nbsp; To get the list of services - wmic services list&lt;br /&gt;9.&amp;nbsp; To get the computer system details - wmic computersystem list&lt;br /&gt;10. To get the volume information - wmic volume list&lt;br /&gt;11. To get full startup list - wmic startup list full&lt;br /&gt;12. To get Information of logical disks - wmic logicaldisk get description, filesystem, name, size &lt;br /&gt;13. To get screensaver information - wmic desktop get screensaversecure, screensavertimeout&lt;br /&gt;14. To get logon information - wmic logon get authenticationpackage&lt;br /&gt;15. To get information about the OS - wmic os get name, servicepackmajorversion&lt;br /&gt;16. To get information about QFE (Quick Fix Engineering) - wmic qfe get description,installedOn&lt;br /&gt;17. To get information about the computer - wmic csproduct get name,vendor,identifyingNumber&lt;br /&gt;18. To get the toal ram - wmic computersystem get TOTALPhysicalMemory,caption&lt;br /&gt;19. To get the macaddress of nic card - wmic nic get macaddress,description&lt;p /&gt;Note: In all the above you can use "brief" command to get a brief list of information and "full" to get the full list of information, for example use wmic process list brief, wmic process list full.&lt;p /&gt;Doing some niche tasks from wmic:&lt;p /&gt;1. Updage static ip address&lt;br /&gt;wmic nicconfig where index=9 call enablestatic("192.168.0.117"),("255.255.255.0")&lt;p /&gt;2. To Change the network gateway&lt;br /&gt;wmic nicconfig where index=9 call setgateways("192.168.0.117","192.168.0.118"),(1,2)&lt;p /&gt;3. To start an application&lt;br /&gt;wmic process call create "paint.exe"&lt;p /&gt;4. To enable dhcp&lt;br /&gt;wmic nicconfig where index=9 call enabledhcp&lt;p /&gt;5. To kill an application&lt;br /&gt;wmic process where name="paint.exe" call terminate&lt;p /&gt;6. To change the process priority&lt;br /&gt;wmic process where name="iexplorer.exe" call setpriority 64&lt;p /&gt;7. To get name and process id of a process&lt;br /&gt;wmic process where (Name='svchost.exe') get name,processid&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/examples-of-wmic-a-hidden-secret"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/examples-of-wmic-a-hidden-secret#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/2JecY3mquqc" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/examples-of-wmic-a-hidden-secret</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 26 Aug 2009 00:16:49 -0700</pubDate>
      <title>Remote Administration of Windows System</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/DJ9pfGwjXXo/remote-administration-of-windows-system</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/remote-administration-of-windows-system</guid>
      <description>&lt;p&gt;
	Windows based system can be penetrated from outside by using different tools. Some are tools from microsoft themselves and others are from around the globe. I would like to shed light on some tools that I think are very important. Microsoft uses IPC share, remote desktop, remote registry, WMIC and RPC for controlling itself remotely. In which  the most important is RPC or remote procedure call. RPC is not only powerful but also must vulnerable service that windows has. WMIC stands for windows management instrumentation command-line. The scope of this article limits going any further on wmic and rpc, have to write another blog for them.&lt;p /&gt; Tools other than microsoft&amp;#39;s own, uses protocols like wmic, rpc, snmp or self opened ports to communicate between server and client software. These tools are very efficient but also a threat if the system admin could not identify the real motive of the software. For security reason automated remote system administration is very risky. Manual administration puts the system admin in total control of the network thus, keeping the risks at bay.&lt;p /&gt; The reason behind doing remote administration of windows system is to minimize the loss of time, cost and increase efficiency. Computers are being very advanced everyday and normal users cannot catch up the pace. With this advancement comes severe threat of viruses and malwares. To control, monitor and repair compromized systems, remote administration is a must.&lt;p /&gt; Remote administration also includes remote installation of operating system. For remotely installing windows in computers in the network, disk clonning and disk imaging are being widely popular. Free and Open Source tools like FOG, commercial product like Norton Ghost are growing favourite of admins. This tools use PXE network boot to pull disk images from client computers to servers. After pulling all information, it can also write back to the client disk all the information from the previously pulled disk image. This means installing windows and all necessary software in one computer and distributing it to many computers around the network. Later on you must have to authorize the licence of windows on each computer. This can also be done remotely. You have to consult microsoft for multiple licence.&lt;p /&gt; Installing software remotely is very crucial. To make things work better and with ease, system admin must be able to do so. But remote software installation is not like eating cheese pie. You can use remote execute (reexec.exe) for doing so. There are windows terminal services and remote desktop which can help you do that with ease. If you want to do it in your own, remote installation can be done with RPC.&lt;p /&gt; Tweaking and configuring remote computers can be done by creating inf files. These files are registry editing system built by microsoft. With INF files you can delete, add and edit registry values. You can remotely install inf files and edit registry for performance tweaks.&lt;p /&gt; Creating scheduled tasks in client systems will also make your work lot easier. Tasks like disk cleaning, defragmentation and scanning can be scheduled to minimize multiple initialization of routine tasks.
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/remote-administration-of-windows-system"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/remote-administration-of-windows-system#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/DJ9pfGwjXXo" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/remote-administration-of-windows-system</feedburner:origLink></item>
    <item>
      <pubDate>Sun, 23 Aug 2009 05:43:52 -0700</pubDate>
      <title>Using perl to convert short urls (shortened urls) into long urls</title>
      <link>http://feedproxy.google.com/~r/tneupaney/~3/DuAH7dhFLbo/using-perl-to-convert-short-urls-shortened-ur</link>
      <guid isPermaLink="false">http://tneupaney.posterous.com/using-perl-to-convert-short-urls-shortened-ur</guid>
      <description>&lt;p&gt;
	&lt;p&gt;Perl is a powerful and useful programming language. It has been largely popular for it&amp;#39;s string manipulation, speed and ease of using. Perl is one of my favourite languages of choice. It suits best for small programs which needs to one thing but do it best.&lt;/p&gt; &lt;p&gt;When I was writing a software to analyse twitter statuses, i had to see what people were actually trying to say. In twitter culture people include urls to present their view. For example, to say you don&amp;#39;t like Obama&amp;#39;s new agenda, you can give a link to a url where the view is strongly presented. Thus, to abstract the sentiment of tweet by a tweeter user, I had to look for url present in their tweets and rank their sentiments. Also, due to the limitation of tweet being 140 character, people include shortened urls in order to save spaces. These short urls use services like &lt;a href="http://bit.ly/" target="_blank"&gt;bit.ly&lt;/a&gt;, tinyurl, &lt;a href="http://is.gd/" target="_blank"&gt;is.gd&lt;/a&gt; etc.&lt;/p&gt; &lt;p&gt;Thus to lengthened the shortened urls, i built my own perl code. I made a sub function where I will pass a short url and it will return a long url for me. This will mean that when I come across a long url in a tweet I can immediately get a long url of it and get the rank of the site after seeing it (manually).&lt;/p&gt; &lt;p&gt;The libraries and modules that I used is WWW::Curl::Easy and XML::QL. This script basically uses the api of &lt;a href="http://longurl.org/" target="_blank"&gt;longurl.org&lt;/a&gt;. The result which is returned from the site is what we need after we do some small formatting. WWW::Curl::Easy is the backend to pull the page. By using the XML::QL module we can actually find the location from the xml data which comes by when the curl function returns the result.&lt;/p&gt; &lt;p&gt;The Code:&lt;/p&gt; &lt;p&gt;use WWW::Curl::Easy;&lt;br /&gt;use XML::QL;&lt;/p&gt; &lt;p&gt;long_url(&amp;quot;&lt;a href="http://post.ly/2fzW" target="_blank"&gt;http://post.ly/2fzW&lt;/a&gt;&lt;a href="http://tinyurl.com/sP2n" target="_blank"&gt;&lt;/a&gt;&amp;quot;);&lt;/p&gt; &lt;p&gt;sub long_url&lt;br /&gt;{&lt;br /&gt; my $url = shift;&lt;/p&gt; &lt;p&gt; $url =~ s/:/%3A/gi;&lt;br /&gt; $url =~ s/\//%2F/gi;&lt;br /&gt; $url = &amp;#39;&lt;a href="http://api.longurl.org/v2/expand?url=" target="_blank"&gt;http://api.longurl.org/v2/expand?url=&lt;/a&gt;&amp;#39; . $url;&lt;/p&gt; &lt;p&gt; my $curl = new Www::Curl::Easy;&lt;br /&gt; $curl-&amp;gt;setopt(CURLOPT_HEADER,0);&lt;br /&gt; $curl-&amp;gt;setopt(CURLOPT_URL, $url);&lt;br /&gt; my $response_body;&lt;/p&gt; &lt;p&gt; open(my $fileb, &amp;quot;&amp;gt;&amp;quot; , \$response_body);&lt;br /&gt; $curl-&amp;gt;setopt(CURLOPT_WRITEDATA,$fileb);&lt;/p&gt; &lt;p&gt; my $retcode = $curl-&amp;gt;perform;&lt;br /&gt; my $result;&lt;/p&gt; &lt;p&gt; if ($retcode == 0) {&lt;br /&gt;  my $response_code = $curl-&amp;gt;getinfo(CURLINFO_HTTP_CODE);&lt;br /&gt;  open (FL, &amp;quot;&amp;gt;tmp_curl&amp;quot;);&lt;br /&gt;   print FL $response_body;&lt;br /&gt;  close FL;&lt;/p&gt; &lt;p&gt;  my ($qry,$long_url);&lt;br /&gt;  $qry = &amp;#39;WHERE &amp;lt;long-url&amp;gt;$long_url&amp;lt;/long-url&amp;gt; ORDER-BY $long_url IN &amp;quot;file:tmp_curl&amp;quot; CONSTRUCT $long_url&amp;#39;;&lt;br /&gt;  $result = XML::QL-&amp;gt;query($qry);&lt;br /&gt;  return $result;&lt;br /&gt;  } else {&lt;br /&gt;  $result = print(&amp;quot;An error happened: &amp;quot; . $curl-&amp;gt;strerror($retcode).&amp;quot; ($retcode)\n&amp;quot;);&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://tneupaney.posterous.com/using-perl-to-convert-short-urls-shortened-ur"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://tneupaney.posterous.com/using-perl-to-convert-short-urls-shortened-ur#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/tneupaney/~4/DuAH7dhFLbo" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/117225/abu-gharib-table.jpg</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/4aAWDZTp2KgF</posterous:profileUrl>
        <posterous:firstName>Tushar</posterous:firstName>
        <posterous:lastName>Neupaney</posterous:lastName>
        <posterous:nickName>tneupaney</posterous:nickName>
        <posterous:displayName>Tushar Neupaney</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://tneupaney.posterous.com/using-perl-to-convert-short-urls-shortened-ur</feedburner:origLink></item>
  </channel>
</rss>

