tag:blogger.com,1999:blog-25601287031129481192024-02-20T19:58:13.040+05:30san boardUnknownnoreply@blogger.comBlogger44125tag:blogger.com,1999:blog-2560128703112948119.post-25556242023479347322014-05-11T06:33:00.000+05:302014-05-11T06:33:17.056+05:30Trip To The Marvellous Taj Mahal.... Some points to learn and some to ponder...<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Trebuchet MS, sans-serif;">My mom had always wanted to see the Taj and have a snap there in front of it. And for me, it has been one of those good-son's dream to make it happen for her. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">So came the golden chance to fulfil that when mom and dad came to Delhi last week. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Well, its sunny May, the heat is scorching here, thinking of which I was worried ,if it was gonna make it difficult for them. But then, I had this opportunity and I didn't want it go by and we decided to go there on Thursday, 8th of May,2014. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">The journey didn't began on expected lines. We couldn't take breakfast and we had to hurry down the elevator when the travel agent called up like we were actually missing the bus(Actually here starts the great trick of fooling people by the Miscreants Of Delhi).</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">The Bus looked good from outside, inside it looked like a modified WWII German Bus. As soon as we were about to board, the agent locked it and asked us money-we paid. But this was a trick- there were only 2 seats left and the third one was at the back. So he fooled us and I had to sit at the back seat(You would understand if you have travelled on Indian Roads).</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Now, came the journey down the road, and at this time, my only thought was to reach there as soon as possible. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Some time later, the idiot conductor came in the passenger cabin and shouted like a General of The East Army Division, giving instructions about getting breakfast. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">They took us to a roadside restaurant, that looked like a human abattoir. It served us some dishes having South Indian dishes, but ...... I have no words to speak of it except that it provided me with some relief and especially for my parents. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Here I learnt that those peoples who would take us there would get commissions...and we had to pay for them too.. pretty horrendous...right? paying and suffering at the same time..nonsense..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Then, It seemed like we'd reached Agra. Soon enough a man came who claimed to be our guide and who would later give many false facts just to complete his job.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">We went first to the magnificent Agra Fort. It was one kind of thing that I had always wanted to see. I saw all the important places. Only dissatisfaction here I had was that, the visitors would dirty the fort, while the ASI cared only for the exterior polish, and the green gardens. It war really saddening. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Then we were taken to the UP handicrafts, saw some good items but the price was really overwhelming. Tricking was still practised here, we were continuously told about the AC inside the building and to enjoy it. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">(what kinda marketing was that??, it was neither emotional nor assertive, but rather spuriously persuasive.)</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">We were also told, not to buy sweets(or the famous Petha) from others but from the place where the guide would take us( seriously he was on roll to make money on commission). And on the way, the guide would take money for various reasons, shoe-cover, taxi,etc.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Then we went to The Destination. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">The Taj Mahal, built by Shah Jahan, I saw it and I touched it. Until this part, I would say, I came, I saw, But not yet conquered.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">It was really a piece of wonder. No amount of photography can replace its beauty seen with real eyes.</span><span style="font-family: 'Trebuchet MS', sans-serif;">We took some snaps(Please try to take your own camera), went inside the mausoleum and offered janaza prayer for the Emperor and the Empress.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Here too, the inside of the Taj is really becoming chaotic.Too much crowd and noise is a real threat to the structure. The constant dirtying done by the visitors is a real concern and since its a mausoleum, it deserves peace and silence, which was not the case and the security did not attend to it.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">I sincerely hope that the ASI authorities will take a responsible call to this.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Then it was time to bid adieu to it. I was not so satisfied by this journey, so I prayed that, I may have another chance to bring my mummy and daddy here again.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Then we came back and reached Delhi at around 3:00 in the morning. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">For all those who are planning to go, I'd just say the following few words.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">*Never believe in the travel agents.They only care for money.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">*Please don't dirty the structures. And Please don't make noise inside the mausoleum.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">*Agra has many other places. Besides the tomb of Shah Jahan, There is also tomb of Akbar the Great, and others, so plan for it.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">*Beware of the pick pockets.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">................................................................</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> I end with the message of love having seen the building of love.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Adios..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-80724830933582453282013-06-15T14:49:00.001+05:302013-06-15T14:49:22.790+05:30Erlang on Linux: Configuration and Installation<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "Trebuchet MS",sans-serif;">Erlang is a fast growing language and is used in many key applications. Being concurrent and fast..it is used in many applications where multiple service are required simultaneously. </span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">It can be installed on linux via it package </span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">or </span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">simply from the terminal using : <b>sudo apt-get install erlang</b></span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"><br /></span>
<span style="font-family: "Trebuchet MS",sans-serif;">I did using the source file from the erlang site.</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">The following steps made me complete the installation:</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"><br /></span>
<span style="font-family: "Trebuchet MS",sans-serif;">1>download the tar file.</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">2> cd to the folder and unzip it. </span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">3> go the unzipped folder. </span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">4> Now, Erlang needs some other files to fully complete installations and generate documentations.</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"> So the following steps needs to be done:</span><br />
<ul style="text-align: left;">
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install fop </b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install libncurses-5-dev</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install openjdk6-jdk</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install unixodbc-dev</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install g++</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install libssl-dev</b></span></li>
</ul>
<span style="font-family: "Trebuchet MS",sans-serif;">Still, Erlang requires wx libraries so we will do the following:</span><br />
<ul style="text-align: left;">
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install libwxbase2.8</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install libwxgtk2.8dev</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install libqt4opengldev</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install libgtk2.0dev</b></span></li>
</ul>
<span style="font-family: "Trebuchet MS",sans-serif;">Now, we are ready to go...</span><br />
<ol style="text-align: left;">
<li><span style="font-family: "Trebuchet MS",sans-serif;">cd to unzipped folder.</span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;">Type: <b>./configure</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;">Type:<b> make</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;">Type: <b>sudo make install</b></span></li>
</ol>
<span style="font-family: "Trebuchet MS",sans-serif;">And there it will be....your Erlang ready to goo....</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">Test it by typing in the terminal..</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"><b>erl</b></span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"><b>2+9.</b></span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">It will print: <b>11 </b></span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">or </span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"><b>which erl</b></span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">This is supposed to give : <b>/usr/local/bin/erl</b><br />....So happy coding...Cheers...</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">...If there is any problem...let me know.. lets solve it together...</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-73239788970961554732013-06-14T15:01:00.000+05:302013-06-15T15:02:02.861+05:30Boot problem in Ubuntu dual boot os: Solved<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<div>
<span style="font-family: "Trebuchet MS",sans-serif;">I had been using Ubuntu for quite a long time. Sometimes, problems arise as such like:</span><br />
<ul style="text-align: left;">
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b> Windows cannot boot.</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>or Ubuntu cannot boot.</b></span></li>
</ul>
</div>
<span style="font-family: "Trebuchet MS",sans-serif;">Solving this problem is easy: however it requires you to have:</span><br />
<ul style="text-align: left;">
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>Internet connection.</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>Ubuntu live cd or bootable pendrive. </b></span></li>
</ul>
</div>
<span style="font-family: "Trebuchet MS",sans-serif;">Now lets go through how we could solve this using a software:</span><br />
<ol style="text-align: left;">
<li><span style="font-family: "Trebuchet MS",sans-serif;">Boot from the pendrive or cd.</span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;">Use the Try Ubuntu mode on first page.</span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;">Connect to the net</span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;">Open the terminal using ctrl+alt+t and do the following steps:</span></li>
</ol>
<ul style="text-align: left;">
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo add-apt-repository ppa:yannubuntu/boot-repair</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get update</b></span></li>
<li><span style="font-family: "Trebuchet MS",sans-serif;"><b>sudo apt-get install -y boot-repair && (boot-repair &)</b></span></li>
</ul>
<span style="font-family: "Trebuchet MS",sans-serif;">Now a window will pop up after installation and it will give you the options. Choose whichever is appropriate and it will solve the problem.</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">It also provides link to the error log file from where you can know more of the problem or ask the community about it.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">.......So don't worry next time...just do the steps listed above...If it does not solve ...leave a comment here..lets see to it..</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">/>...Cheers.. </span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-41948998826431099222013-06-14T00:45:00.000+05:302013-06-14T00:46:59.346+05:30How to create a bootable USB pendrive in Linux<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "Trebuchet MS",sans-serif;">If it was windows, it would be much easier ...for we have the universal USB installer. In Linux, we can't use that: however, we need not worry, guys have done a great job by creating a much easier tool to do the work.</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"><br /></span>
<span style="font-family: "Trebuchet MS",sans-serif;">The tool is called gparted. It is a nice GUI tool to do our work. So lets see how we shall do it.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Open the terminal .</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Now type: <b>sudo apt-get install gparted</b></span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">......This will install the tool ...well and good if you had it from before.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Now type: <b>sudo apt-get install-3g</b>( gparted installed this as default for me...just see if it did for you).</span><br />
<br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Now open the tool via: <b>System>Administration>Gparted Partition Tool</b></span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Now you are almost done....Click the File and choose the drive for the particular USB.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Right click on the drive when it is enlisted. See Manage Flag menu and click to enable boot.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Now go to Partition menu at the top panel and format the drive as ntfs . This will keep the work as pending operation ...click the correct sign above to start the operation...It will be done in a moment..</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">>Just unplug and plug in the pendrive once and do the last step.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">> Now you can just decompress the win7.iso file to your pendrive ...and it is bootable right away.. </span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-24779897628658020302013-06-05T23:45:00.000+05:302013-06-16T12:16:19.956+05:30How to find the difference between two files from windows shell<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="font-family: Trebuchet MS, sans-serif;">Well I was just wondering how could I see the difference between two files in windows.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Searching the net, I saw some softwares that would do the job for me..But I wanted simple and fast not so sophisticated ...</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">I found out we could do using a simple tool...fc..from the DOS prompt.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">FC is a command to view the difference of two files or set of files..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">So the steps are:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><b>1> go the directory where the files are..</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><b>2>type</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><b> fc first-filename second-filename</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;">....and there you go..You will get the result each different section divided by line of stars..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">...Its simple ...right??</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">I love it....The following explains the full usage method</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">-------------------------------------------------------------------------------------------</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><b>Syntax:</b><br /><br /><b>FC [d:][path]filename [d:][path]filename [/A][/C][/L][/Lb n] [/N][/T][/W][/(number)]</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><b>for binary comparisons<br />FC [d:][path]filename [d:][path]filename [/B][/number] </b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br />FC reports differences between the two files you specify. FC first displays the name of the first file to compare. Next, it displays the lines that differ between the two files. Next, it displays the first line that matches in the two files. FC next displays the name of the second file, followed by the lines that are different followed by the first line that matches.</span><b style="font-family: 'Trebuchet MS', sans-serif;">Caution:</b><span style="font-family: Trebuchet MS, sans-serif;"><br /><br />The FC command requires enough system memory (RAM) to compare 100 lines. If system memory is limited, FC will make comparisons between the number of lines that can fit into available memory. Be careful of this!.<br /><br /><b>Options</b><br /><b><br />/A</b> - Instead of displaying all the lines that do not match (in an ASCII comparison), the program displays only the lines that begin and end each set of differences.<br /><br /><b>/B</b> - Used for a binary comparison of files. The files are compared byte-by-byte. Mismatches are displayed as a relative address from the beginning of the file. Unless you specify the /L switch, the program will automatically assume you want to use this type of comparison when the compared files have a .COM, .EXE, .SYS, .BIN, .OBJ, or .LIB filename extension.<br /><br /><b>/C </b>- Ignores the case of letters in the compared files. All letters are considered as upper case.<br /><br /><b>/L</b> - Used for an ASCII comparison of files. Unless you specify the /B switch, the program will automatically assume you want to use this type of comparison for all files that do not have a .COM, .EXE, .SYS, .BIN, .OBJ, or .LIB filename extension.<br /><br /><b> </b></span><span style="font-family: 'Trebuchet MS', sans-serif;"><b>/Lb</b></span><span style="font-family: 'Trebuchet MS', sans-serif;"><b>n </b>- Sets the line buffer to n number of lines. The amount of memory used for holding lines being compared is normally enough to store about 100 lines. Use this option to reset the buffer (memory space) to n lines. If more than this number of consecutive lines is found to differ, the program will terminate the comparison and display an error message.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;"><b>/N</b> - Used to turn on the display of line numbers while carrying out an ASCII comparison.<br /><br /><b>/T</b> - Turn off the display of tabs as spaces in an eight column display format.<br /><br /><b>/W</b> - Compresses tabs and spaces during the comparison.<br /><br /><b>/(number)</b> - The number of lines that must match after the program finds a difference between the compared files (if fewer lines match, the matching lines are displayed as differences). If you do not use this option, the number of lines to match between the files is two.<br /><br /><b>Example</b><br /><br />To compare the text file A.html with the file B.html on drive D </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> type and press return key the following..<br /><br /><b>fc /l A.html D:B.html</b><br />for binary comparison of the files A.EXE and B.EXE, enter<br /><b>fc /b B.exe A.exe</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;">.....................................I hope this helps..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">way to gooo...</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-57254668045238628692013-06-05T22:07:00.000+05:302013-06-05T22:07:04.754+05:30GIT : Terminal Shortcuts..to help you..and us..<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h3 style="-webkit-font-smoothing: antialiased; background-color: white; border: 0px; color: #333333; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px !important; padding: 0px; position: relative;">
<span class="caps" style="border: 0px; margin: 0px; padding: 0px;">SHORTCUTS</span></h3>
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px; margin: 15px 0px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><th style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Key/Command</th><th style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Description</th></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + A</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Go to the beginning of the line you are currently typing on</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + E</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Go to the end of the line you are currently typing on</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + L</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Clears the Screen</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Command + K</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Clears the Screen</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + U</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Clears the line before the cursor position. If you are at the end of the line, clears the entire line.</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + H</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Same as backspace</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + R</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Lets you search through previously used commands</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + C</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Kill whatever you are running</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + D</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Exit the current shell</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + Z</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Puts whatever you are running into a suspended background process. fg restores it.</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + W</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Delete the word before the cursor</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + K</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Clear the line after the cursor</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Ctrl + T</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Swap the last two characters before the cursor</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Esc + T</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Swap the last two words before the cursor</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Alt + F</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Move cursor forward one word on the current line</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Alt + B</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Move cursor backward one word on the current line</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Tab</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Auto-complete files and folder names</td></tr>
</tbody></table>
<h3 style="-webkit-font-smoothing: antialiased; background-color: white; border: 0px; color: #333333; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 1.5em; margin: 1em 0px 15px; padding: 0px; position: relative;">
<a class="anchor" href="https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-)#core-commands" name="core-commands" style="border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;"><span class="mini-icon mini-icon-link" style="border: 0px; margin: 0px; padding: 0px;"></span></a><span class="caps" style="border: 0px; margin: 0px; padding: 0px;">CORE</span> <span class="caps" style="border: 0px; margin: 0px; padding: 0px;">COMMANDS</span></h3>
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px; margin: 15px 0px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">cd</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Home directory</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">cd [folder]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Change directory</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">cd ~</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Home directory, e.g. ‘cd ~/folder/’</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">cd /</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Root of drive</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">ls</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Short listing</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">ls -l</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Long listing</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">ls -a</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Listing incl. hidden files</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">ls -lh</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Long listing with Human readable file sizes</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">ls -R</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Entire content of folder recursively</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">sudo [command]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Run command with the security privileges of the superuser (Super User DO)</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">open [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Opens a file ( as if you double clicked it )</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">top</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Displays active processes. Press q to quit</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">nano [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Opens the Terminal it’s editor</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">pico [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Opens the Terminal it’s editor</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">q</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Exit</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">clear</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Clear screen</td></tr>
</tbody></table>
<h3 style="-webkit-font-smoothing: antialiased; background-color: white; border: 0px; color: #333333; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 1.5em; margin: 1em 0px 15px; padding: 0px; position: relative;">
<a class="anchor" href="https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-)#command-history" name="command-history" style="border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;"><span class="mini-icon mini-icon-link" style="border: 0px; margin: 0px; padding: 0px;"></span></a><span class="caps" style="border: 0px; margin: 0px; padding: 0px;">COMMAND</span> <span class="caps" style="border: 0px; margin: 0px; padding: 0px;">HISTORY</span></h3>
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px; margin: 15px 0px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">history n</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Shows the stuff typed – add a number to limit the last n items</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">ctrl-r</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Interactively search through previously typed commands</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">![value]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Execute the last command typed that starts with ‘value’</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">!!</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Execute the last command typed</td></tr>
</tbody></table>
<h3 style="-webkit-font-smoothing: antialiased; background-color: white; border: 0px; color: #333333; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 1.5em; margin: 1em 0px 15px; padding: 0px; position: relative;">
<a class="anchor" href="https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-)#file-management" name="file-management" style="border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;"><span class="mini-icon mini-icon-link" style="border: 0px; margin: 0px; padding: 0px;"></span></a><span class="caps" style="border: 0px; margin: 0px; padding: 0px;">FILE</span> <span class="caps" style="border: 0px; margin: 0px; padding: 0px;">MANAGEMENT</span></h3>
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px; margin: 15px 0px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">touch [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Create new file</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">pwd</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Full path to working directory</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">..</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Parent/enclosing directory, e.g.</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;"></td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">‘ls -l ..’ = Long listing of parent directory</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;"></td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">‘cd ../../’ = Move 2 levels up</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">.</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Current folder</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">cat</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Concatenate to screen</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">rm [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Remove a file, e.g. rm [file] [file]</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">rm -i [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Remove with confirmation</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">rm -r [dir]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Remove a directory and contents</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">rm -f [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Force removal without confirmation</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">rm -i [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Will display prompt before</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">cp [file] [newfile]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Copy file to file</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">cp [file] [dir]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Copy file to directory</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">mv [file] [new filename]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Move/Rename, e.g. mv -v [file] [dir]</td></tr>
</tbody></table>
<h3 style="-webkit-font-smoothing: antialiased; background-color: white; border: 0px; color: #333333; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 1.5em; margin: 1em 0px 15px; padding: 0px; position: relative;">
<a class="anchor" href="https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-)#directory-management" name="directory-management" style="border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;"><span class="mini-icon mini-icon-link" style="border: 0px; margin: 0px; padding: 0px;"></span></a><span class="caps" style="border: 0px; margin: 0px; padding: 0px;">DIRECTORY</span> <span class="caps" style="border: 0px; margin: 0px; padding: 0px;">MANAGEMENT</span></h3>
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px; margin: 15px 0px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">mkdir [dir]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Create new directory</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">mkdir -p [dir]/[dir]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Create nested directories</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">rmdir [dir]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Remove directory ( only operates on empty directories )</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">rm -R [dir]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Remove directory and contents</td></tr>
</tbody></table>
<h3 style="-webkit-font-smoothing: antialiased; background-color: white; border: 0px; color: #333333; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 1.5em; margin: 1em 0px 15px; padding: 0px; position: relative;">
<a class="anchor" href="https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-)#pipes--allows-to-combine-multiple-commands-that-generate-output" name="pipes--allows-to-combine-multiple-commands-that-generate-output" style="border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;"><span class="mini-icon mini-icon-link" style="border: 0px; margin: 0px; padding: 0px;"></span></a><span class="caps" style="border: 0px; margin: 0px; padding: 0px;">PIPES</span> – Allows to combine multiple commands that generate output</h3>
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px; margin: 15px 0px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">more</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Output content delivered in screensize chunks</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">> [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Push output to file, keep in mind it will get overwritten</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">>> [file]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Append output to existing file</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;"><</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Tell command to read content from a fi</td></tr>
</tbody></table>
<h3 style="-webkit-font-smoothing: antialiased; background-color: white; border: 0px; color: #333333; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 1.5em; margin: 1em 0px 15px; padding: 0px; position: relative;">
<a class="anchor" href="https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-)#help" name="help" style="border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;"><span class="mini-icon mini-icon-link" style="border: 0px; margin: 0px; padding: 0px;"></span></a><span class="caps" style="border: 0px; margin: 0px; padding: 0px;">HELP</span></h3>
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 15px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">[command] -h</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Offers help</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">[command] —help</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Offers help</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">[command] help</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Offers help</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">reset</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Resets the terminal display</td></tr>
<tr style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">man [command]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Show the help for ‘command’</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px; margin: 0px; padding: 0px;"><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">whatis [command]</td><td style="border: 1px solid rgb(221, 221, 221); margin: 0px; padding: 6px 13px;">Gives a one-line description of ‘command’</td></tr>
</tbody></table>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-56738323934875552272013-06-05T22:04:00.002+05:302013-06-05T22:04:42.818+05:30Macbuntu theme destroyed my Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Trebuchet MS, sans-serif;">I have been using Linux on my PC using dual boot. This time I was using Ubuntu 11.10 ultimate edition. </span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;">As like many windows users ..I have been tempted my Mac-OS..and I have been using Mac theme for my PC too..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Recently I got too ambitious and I went on to install Macbuntu theme for my Linux ...(I thought I could be satisfied than I did on my windows)...Lo....During installation ...It got too complex...many downloads...and that too ...unverified.....</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">After it was half way through ..the system tray could be seen...but it was not functioning at all...</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">.....It was going too frustrating ...so I did a force shut down...(It was the last time I could see my GUI ...)...After this, I could never go back to the gui...All it was left was the tty..(and what much could we do in there..??)..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">I am careful now..I won't install any theme again... </span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-49903286565079578092013-06-04T05:30:00.001+05:302013-06-06T00:08:23.748+05:30Linking to a hosted Cloud JQuery library is better than localized link: The Reasons <div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Trebuchet MS, sans-serif;">Well, we all know what and how JQuery has revolutionized the UI design and development of websites and web applications. Given its robustness for browser support, familiar syntax ,built-in animations and not impact content gives it immense credibility and avenues for use in many great applications..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">In its development novice developers sometimes makes the mistake of linking the lib from their own local site..However this is wrong ..which I can say confidently at least for the case of deployment of your app.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">The reason is:</span><br />
<br />
<span style="font-family: Trebuchet MS, sans-serif;"><b>Using Cloud Scripts Keeps Your Pages Fast</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Linking to script libraries such as jQuery from an internet location</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> (such as http:/</span><span style="font-family: 'Trebuchet MS', sans-serif;">/code.jquery.com/jquery-1.5.2.min.js in the HTML here) is a way of using a content </span><span style="font-family: 'Trebuchet MS', sans-serif;">delivery network (CDN). When many developers link to the same location for</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">a script, that script is more likely to be cached by your readers and load more</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">quickly. Also, your browser may have a limit of as few as two connections to a</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">specific host name at once, so this sends a request to a separate domain,</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">increasing the speed.</span><br />
<br />
<span style="font-family: Trebuchet MS, sans-serif;">As jQuery's popularity has grown, companies have made the file freely available</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">through their Content Delivery Networks (CDNs). </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Most notably:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> <b>Google</b> : <a href="http://code.google.com/apis/ajaxlibs/documentation/" target="_blank">link</a></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;"> and <b>Microsoft</b> : <a href="http://%20www.asp.net/ajax/cdn" target="_blank">link</a> </span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;"> offer the file on powerful, low-latency servers distributed </span><span style="font-family: 'Trebuchet MS', sans-serif;">around the world for fast download regardless of the user's location</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;">..................................................If you just trying for local development ...you could have it in your own machine...maybe..that will save when you don't have net connection...</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;">..so happy coding...and cheers..</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;">way to goo..</span><br />
<br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-68697975863983346012013-05-27T01:56:00.001+05:302013-05-27T01:56:33.079+05:30Android Studio Windows installation problem solved.<div dir="ltr" style="text-align: left;" trbidi="on">
Well..It has been almost fascinating to try the new IntelliJ IDEA based android IDE on my windows machine. It has been not been working since I installed it.<br />
I followed all the Stackoverflow and other blogs....regarding my problem...<br />
My problem was:<br />
>I was using JDK 1.6.21...which probably was too old for the studio to get up with.<br />
>I did not add the JDK_HOME...<br />
............I downloaded the new latest version of JDK and finally got the nice new thing running..<br />
So,,update your system and don't forget to add the JDK _HOME directory to the system path....Its gonna be all ok then..<br />
way to goo...<br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-17736300903312817042013-05-26T11:55:00.000+05:302013-05-26T11:55:03.623+05:30MongoDB: Setting up and basic operations<div dir="ltr" style="text-align: left;" trbidi="on">
Lets talk about some starting points of the mongoDB..<br />
First..installation is easy as easiest:<br />
>Just go to the <a href="http://www.mongodb.org/" target="_blank">Mongo</a> site and download the whichever package is needed for your system. Though it is recommended to work with th 64 bit version for production ..fear not you can do with any package that suits your system..remember...the version with the even no. in the middle means the stable release for the time.<br />
<br />
> Now extract the compressed filed and create a folder in a location of your choice. In the uncompressed folder..there will be bin folder..copy all its content to the folder you just created...And there it is the starting point for working on mongodb.<br />
<br />
> When you have done all the above ...just open the command shell and go to the directory and type mongod...the mongo shell daemon. and it will start the mongo server.<br />
> You can type db( It is the command which you will use in every operation for it starting point for every command). This will print test...which is the default collection every mongo shell contains for the first time.<br />
...Now you can open another command shell and type mongo ...this will start shell where you can start doing your work for all operations...<br />
<br />
Way to goo....</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-46140190447740230882013-05-25T22:22:00.001+05:302013-05-25T22:22:52.993+05:30MongoDB: The pioneer of NoSQL....Easy and really quick to learn..<div dir="ltr" style="text-align: left;" trbidi="on">
I just signed up for 10gen free class on MongoDB...and wow..its so easy and interesting to follow.<br />
I wondered what was all this buzz about NoSQL...but seeing it and coding it on my own has really made me believe that it is going to grow larger and more effective over the years to come.<br />
One thing that sets this new trend apart from others is its ability integrate easily with the client code: It can be just accessed from the code using the OOP approach that we are all accustomed to( I mean if you had been programming!)..<br />
<br />
Its schemaless ..meaning it does away with all those CRUD statements that we all use for RDBMS..though it has an adequate means of addressing all of that through a simple syntax and various APIs it provide for the same. One thing that it is critical about is the lack of:<br />
>Transactions<br />
>and Joins<br />
Still it has enough for all the uses it is meant for..where you would really have to do a big maintenance of bank accounts spanning over many countries...say in a web app or say a large database oriented projects involving many entries having the need for dynamic updates: it can do and I would say it can fairly do all that in a neat and nice little piece of code.<br />
<br />A nice feature I am impressed is the ability to hold entries of multiple and inconsistent columns in one collection..that would be impossible in RDBMS .<br />
Thumbs up to the team Mongo and all those maintaining the class.<br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-69388029914922971802013-05-25T15:40:00.001+05:302013-05-25T15:40:35.208+05:30The Great Gatsby: Great film ...wonderful course of hope..idea of life and struggle<div dir="ltr" style="text-align: left;" trbidi="on">
Last saturday, I went for the movie of the year: The Great Gatsby.<br />
It was such a nice movie...Leonardo and Tobey has done a tremendous acting together.<br />
The struggle of a man trying to reconquer his love..."trying to change the past for his present"...<br />
I really love this movie..for it portrays a man trying all his ways to get his love and doing everything for the sake of his love..<br />
The movie also portrays a materialistic mindset of the woman he loves who fails to appreciate his love and reciprocate or say understand whats beyond the truth and what odds her lover has taken for her.<br />
All and all ..It was a nice one...definitely worth watching</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-19462106180773131182013-05-25T15:32:00.000+05:302013-05-25T15:32:09.190+05:30Building firefox code base on windows: long process but worthwhile..<div dir="ltr" style="text-align: left;" trbidi="on">
I have always been a firefox fan...right from the start...It always kept me wondering what makes this good piece of software work so well until I downloaded the source code and built it on my own..<br />
I required the following:<br />
1> Visual Studia 2010<br />
2> Directx<br />
3> Msys<br />
4> Windows SDK<br />
<br />
You can download the source code from the mozilla website..Once you are done with that ..<br />
You can get all the detatils from the website on how to build the code .<br />
<br />
I had a simple problem...the Python path problem..<br />
I had installed Python earlier and the build tool uses the Python embedded in the Msys...<br />
Once I removed the original Python path from my environment variables and replaced with that of the Msys ..It was all done..<br />
<br />
The final part of build process gives you a firefox nightly .although it takes about 4 hours in my core 2 duo machine...Its such a neat and nice ..you would love it..<br />
<br />Thanks to the firefox team ...and all the supporters :)) </div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-77006586852983811762013-05-25T15:22:00.002+05:302013-05-25T15:22:16.822+05:30Blue Screen: Problem and the Solution <div dir="ltr" style="text-align: left;" trbidi="on">
I have just recovered from the usual blue screen problem with my laptop. I just thought it was going to be an "All Over Thing" for my hard drive...So I went to hp repair store-(www.laptopstore.in) ...man..they are stupid peoples ...commercials...having no knowledge nor commitment to solve problems.<br />
I came back ...and did these simple things .<br />
<br />
>Sanitized my hard drive through BIOS screen..<br />
>Self tested the hard drive...aha...now it was working for me ...(probably those guys don't know about).<br />
<br />
Then I reinstalled my OS both Windows and Linux..as I usually do..<br />
Now Its working..all fine...only thing I miss are those files I lost...<br />
I saved me huge..Those guys had told me to change my hard drive ...<br />
Thank God...I didn't ..<br />
<br />
Always test hard drive for error constantly and keep up the anti virus....<br />
Adieu..</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-16527099126919868482013-04-23T14:38:00.007+05:302013-06-14T20:32:16.570+05:30How to install Google Chrome on Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "Trebuchet MS",sans-serif;">I installed Google Chrome today. Its easy, I just followed the following steps:</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">1> Download the .rpm package from the google chrome site.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">2> Once that is done ...cd to the directory where it is located.</span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">3> Now, type: <b>sudo dpkg -i google_chrome.rpm( replace google_chrome with the actual file name)</b></span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">4> It may not be done...due to lack of certain files...so do the following:</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;"> type: <b>sudo apt-get install -f</b></span><br />
<br />
<span style="font-family: "Trebuchet MS",sans-serif;">5> There you go...you can get the chrome via Unity...so launch it and do the nice works..</span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">/></span><br />
<span style="font-family: "Trebuchet MS",sans-serif;">Cheers...</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-63043033015415132442013-01-14T01:26:00.000+05:302013-06-14T00:26:52.253+05:30Ubuntu Problems solved for installing new softwares.<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "Trebuchet MS",sans-serif;">I<span style="font-size: small;"> had a problem in Ubuntu of not being able to install a software. It gave me the following errors:</span></span><br />
<br />
<pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code></code><b><code>E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.</code></b></span></span></pre>
<pre><span style="font-size: small;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><code> </code></span></b></span></pre>
<pre><span style="font-size: small;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><code>or like this one:</code></span></b></span></pre>
<pre><span style="font-size: small;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><code> </code></span></b></span></pre>
<pre><span style="font-size: small;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><code><span class="comment-copy"><code>E: Malformed Description-md5 line; includes invalid character 'fc1f7600accbcc"07ef9954ba3306c14'</code></span></code></span></b></span></pre>
<pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code><b><span class="comment-copy"><code>E: The package lists or status file could not be parsed or opened</code></span> </b></code></span></span></pre>
<pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code>
</code></span></span></pre>
<pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code>
</code></span></span></pre>
<span style="font-family: "Trebuchet MS",sans-serif;">But it was an easy problem to solve:<br /><br />The reasons for the problem arise from failed update attempt or may be when you try mess around with </span><pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code><code>
</code></code></span></span></pre>
<pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code><code> <b> /var/lib/dpkg/status</b></code><b> </b></code></span></span></pre>
<pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code><b> </b></code></span></span></pre>
<span style="font-family: "Trebuchet MS",sans-serif;">Or may be you have too many sources in your repo,,,,that could also be a problem.<br />To solve this is simple,,just do the following steps:</span><br /><pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code> </code></span></span></pre>
<pre><span style="font-size: small;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><code>1> Open the terminal with ctrl+alt+t;</code></span></b></span></pre>
<pre><span style="font-size: small;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><code>2> Type: </code><code><code>sudo rm /var/lib/apt/lists/* -vf </code></code></span></b></span></pre>
<pre><span style="font-size: small;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><code><code>3> Now type: </code></code><code><code><code>sudo apt-get update</code></code></code></span></b></span></pre>
<pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code><code><code> </code></code></code></span></span></pre>
<span style="font-family: "Trebuchet MS",sans-serif;">This cure your pain...and once again your darling linux will be working fine.<br /><br />If the said method does not solve try :</span> <br /><pre><span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"><code><code><code></code></code></code><code><code><code></code></code>
<b><code>1>sudo mv /var/lib/apt/lists /var/lib/apt/lists-old
2>sudo mkdir -p /var/lib/apt/lists/partial
3>sudo apt-get update</code></b></code></span></span></pre>
<pre><span style="font-family: "Trebuchet MS",sans-serif;"><code><code> </code></code></span></pre>
Even when this does not work, try :<br /><pre><span style="font-family: "Trebuchet MS",sans-serif;"><code><code> </code></code>
<b><code>1>sudo apt-get clean
2>sudo apt-get update</code></b></span></pre>
<pre><span style="font-family: "Trebuchet MS",sans-serif;"><b><code> </code></b></span></pre>
<pre><span style="font-family: "Trebuchet MS",sans-serif;"><code><b>.............................................................................</b></code></span></pre>
<pre><span style="font-family: "Trebuchet MS",sans-serif;"><code><b> </b></code></span></pre>
<div style="text-align: left;">
<span style="font-family: "Trebuchet MS",sans-serif;"><span style="font-size: large;"><code><span style="font-family: "Trebuchet MS",sans-serif;">Hope this helps....Leave a comment if it does not solve your problem...lets try on it...</span><b> Ch<span style="font-size: large;">ee<span style="font-size: large;">r<span style="font-size: large;">s!!</span></span></span></b></code></span><b><code><span style="font-size: large;"> </span></code></b></span></div>
<code></code></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-39229620825052614172012-11-22T01:14:00.000+05:302013-06-06T00:16:45.619+05:30Android: Understanding Intents and starting activity from it..<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Trebuchet MS, sans-serif;">Basic understandings of Android Intents and starting activity from it..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">....................................................................................................................</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<span style="font-family: Trebuchet MS, sans-serif;">Toast and its simplest work to show the text:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Toast.maketext(getActivity(),textview.getText().toString(),Toast.LENGTH_SHORT).show();</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Starting Activity:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">>startActivity(i); //if i is a defined Intent object already;</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">>startActivity(new Intent("name of the class from manifest.xml");</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">>startActivity(new Intent(this, "name of the java class");</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Intents in Android and its invocations </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">1>Intent i = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("http://website"));</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">startActivity(i);</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">2> Intent i = new Intent(android.content.Intent.ACTION_VIEW);</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">i.setData(Uri.parse("http://website"));</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">startActivity(i);</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">****************</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Uri.parse can take values as such to be shown:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Like :></span><br />
<span style="font-family: Trebuchet MS, sans-serif;">geo---for map application or activity;</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">tel--->for telephonic activity</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">http-->for web browser activity</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">****************</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">3>For default action or dynamic data:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Intent i = new Intent(android.content.Intent.ACTION_PICK);</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> i.setType(ContactsContract.Contacts.CONTENT_TYPE);</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> startActivity(i);</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Intent can contain the following information:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> >Action</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> >Data</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> >Type</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> >Category</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> >To choose from options..</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> add:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> > category in the manifest file:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> eg. <category android:name="name of the activity /></font></p><p><font face=" ms="" sans-serif="" trebuchet=""> and </category></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> add in the main java file</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> as </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Intent i = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("http://webaddress"));</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> startActivity(Intent.createChooser(i,"choose");</span><br />
<br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-67037323257698909392012-09-25T09:56:00.000+05:302012-09-25T09:56:07.305+05:30Why study of algorithms are still very important in computing<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Trebuchet MS, sans-serif;">Algorithms is the mother of computing science(If Mathematics is the father!!). The very first concept of computing was the algorithm on which depended the first simple operations and all that followed.</span><div>
<span style="font-family: Trebuchet MS, sans-serif;"> Yes, it was algorithms which preceded all the fancy big and small systems and electronics that has enabled us to visualize all the fascinating results it yields according to it. </span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">Derived from the name of Al Khwarizmi, the great mathematician who invented algebra, it lays down the basic step of realizing the solution to any problem being dealt. One great thing about it is that it involves all the mathematical details of the problem and gives a worthy information about its speed and space complexity. And hence, it provides a summative look on how the problem is going to be solved and all its estimates for the operation.</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">A great thing one might want to know is that "<b>Good algorithms are better than Supercomputers</b>".</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"> It may seem rather dubious but the fact is it holds true. Over the last 5 decades many new techniques and theories have been playing around, like we have better than ever memory chips and processors, yet, a good algorithm can make a turnaround and make a simple PC do what a supercomputer can do. So its a thing of millions of dollars and work hours a good algorithm can reduce and make it happen. A simple example, the Quicksort can do sorting in an instant for a billion counts in a PC of what it would take years with Selection sort in a Supercomputer.</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">This is the beauty of a good algorithm and the miracle it can cause.</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">And again we may say that "<b>Good algorithms are better than bad algorithms</b>". This is obvious to follow as it changes a lot from all the space and time complexity from one algorithms which has quadratic complexity to the one with logarithmic complexity. </span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">Study of good algorithms is very essential in computing sciences. It affects the design of efficient code which is a must ingredient for any good application. </span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"> </span><br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-83943568882900072252012-09-22T21:54:00.000+05:302012-09-25T22:12:09.975+05:30How to compete online programming competitions<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="font-family: Trebuchet MS, sans-serif;">It so happened to me this month that I broke the final barrier of not being a rated member of Codechef and Codeforces. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;">It has been a bit of time since I registered at both the reputed online programming platforms. Though I have been practicing some problems, still it didn't occur to me to make it a point when it came to the contests on this two sites- The coveted Long and Short contest of Codechef and regular contest for Codeforces.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">About how I did....Nothing so extra ordinary because all it needed was just one thought and determination that "I had to do it this time..at all cost". It paid off and now I am rated in both the platforms. Its a small step yet it is a big leap because it makes me motivated in all that I do now and yes, I can say that I am more confident now than I was and this will help me in doing better.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">If there is anyone still not being a part of these things, I sincerely invite you to it. Not just that we can improve our skills but that it makes us motivated and learn a great deal which would otherwise take a lot more time and devotion. </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">I would like to tell that all we need are:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">>> Firm and solid knowledge of a programming language.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">>> If not, then not stopping to learn one of it.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">>> Never say die spirit, this will keep us moving and reach us to our goal.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">>> Being interactive and active in all participations.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">>> Just give a try...come on...do it..and you can(Believe this!!)</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;"> To anyone with passion of coding, it brings the joy of accomplishment and fire to burn for more as one goes on. Coding is not just about ending in a company. One who has the command over it knows it certainly well of what it is capable of and where it can take. One is never born without limitations or nor with all the trophies. Needless to say that hardwork pays.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> So happy coding!!!</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-37636313345908866412012-09-13T12:13:00.000+05:302012-09-13T12:13:22.883+05:30Machine Learning: Creating Efficient Intelligence<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Advent of Machine Learning</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"> Artificial Intelligence has been used extensively in many applications over the last 3 decades. Areas of prime importance such as manufacturing, research, healthcare,finances and banking has been using AI on an extensive and intensive basis. </span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"> Over the recent years, researches has been conducted on the sidelines of AI to make its application much more productive. Things such as Data Mining popped up following the internet explosion and took a very pleasing growth proving its use in industrial scale applications. </span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"> One question has though been asked since its inception:"Whether the machine themselves can be made to learn on its own?". This lead the researchers to conceive the idea of "Machine Learning",where the machine itself will learn from its own experience and derive appropriate action for a thing in future based on this, without having to write any program necessarily for the same. This almost seems to conjunct with the quest for building the ultimate the human-intelligent machine, but speculations are far from achieving that. </span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Yet it may be said numerous application of machine learning has sprouted up today, powering many startups and giving invaluable services to many firms which would have been otherwise financially so burdening and time consuming.</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Start ups like <a href="http://www.predilytics.com/" target="_blank">Predilytics</a> are using machine learning algorithms to help the healthcare industry with its large data dynamics. Not just that, even more fancier applications can be made with this technique to the extent of multiple voice recognition and individual partition. Recently a Forbes column wrote of using machine learning algorithms to automatically generate contents of a book. </span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Powered by Moore's law obedient,ever increasing memory power industry and the advancement in the processing techonology makes Machine Learning a potent technology of the future. The demand end has also been impressive with todays industries involving a lot of analysis and planning, it could make its growth quickly as anticipated.</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Where career is concerned, Machine learning has indeed been </span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">listed as top skill in demand of the current times(computer world).</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-79283397043334344672012-07-15T00:17:00.000+05:302012-09-26T00:41:30.045+05:30Unable to open drives on double-click: How to solve it<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="font-family: Verdana, sans-serif;">Sometimes we get a buggy thing happening with us when most of our USB slots are filled up and we try to open a disk-drive by double clicking and we can't open except using right-click options. </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Well, many post and many suggestions go for checking the virus-stuff in the USB drive providing links to many third party tools and other anti-virus options.</span><br />
<span style="font-family: Verdana, sans-serif;">On the contrary of all these superficial tweets....I found my problem solved through a simple handling with the computer management tool for disk management.</span><br />
<span style="font-family: Verdana, sans-serif;">Before jumping on to the steps for solving the problem, I would like to highlight that the main cause for this problem is due to external disk(s) connected with the system bus. Each disk drive is allotted a unique letter from C - Z. Sometimes due to multiple connection, there may perhaps be a collison for the names and the system cannot recognize them. So,it does not allow it to be open through d-clicking!</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">How to solve it..</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">You must be logged on as an administrator to perform these steps.</span><br />
<span style="font-family: Verdana, sans-serif;">If you don't like the letter Windows has assigned to a new drive or you want to organize your drive letters in a certain way, you can change the drive letter.</span><br />
<span style="font-family: Verdana, sans-serif;">You can assign the letters C through Z to each drive on your computer. A and B are usually reserved for floppy disk drives, but if your computer does not have floppy disk drives, you can assign A and B to volumes. You can see which drive letters are used on your computer by opening Computer.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Now do the following:</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">You can change, add, or remove a drive letter by using Computer Management.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">>>Open Computer Management by clicking the Start button , clicking Control Panel, clicking System and Maintenance, clicking Administrative Tools, and then double-clicking Computer Management. Type the password(If needed) or provide confirmation.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">>>In the Navigation pane, click Disk Management(It can also be simply reached by right clicking My Computer icon and selecting Manage).</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">>>Right-click the partition or drive that you want to change, and then click Change Drive Letter and Paths.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Do one of the following:</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">**To assign a drive letter if one has not already been assigned, click Add, click the letter that you want to use, and then click OK.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">**To change a drive letter, click Change, click Assign the following drive letter, click the letter that you want to use, and then click OK.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">**To remove a drive letter, click Remove, and then click Yes to confirm that you want to remove it.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Remember:</b></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"> MS-DOS and Windows programs make references to specific drive letters. If you change a drive letter, some programs that you have installed on your hard disk might not work correctly.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">You cannot change a drive letter if the drive is either a system partition or a boot partition. If you get an error, the partition or drive you are trying to change might be in use. Close any program or window that is using the partition or drive and try again.</span><br />
<span style="font-family: Verdana, sans-serif;"> Have a nice hack!!</span><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-85957562365743775652012-06-11T23:13:00.000+05:302013-06-11T23:14:16.349+05:30Applications of Scala Programming language:<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="font-family: Trebuchet MS, sans-serif;">According to TIOBE index Scala stands at 34th position with 0.290% rating.However, it has wide and good applications built on it( The list though does not account for anything related to the quality of the languages listed..its just based on popularity).</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> I read about Scala and was amazed to find out its varied and robust applications,,which is used in many popular applications of today).</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Some of the many are listed here:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> 1>Twitter.<a href="http://www.artima.com/scalazine/articles/twitter_on_scala.html" target="_blank">.this describes the best</a>.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> ....Also Twitter uses Scala very robustly(as I learnt from this <a href="http://kevinoncode.blogspot.com/2008/10/octobers-bay-area-scala-enthusiasts.html" target="_blank">blog</a> as of 2008). May be it has changed now.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> 2>LinkedIn..<a href="http://www.infoq.com/articles/linkedin-scala-jruby-voldemort" target="_blank">this link describes the best</a>.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> 3>Novell ..<a href="http://www.scala-lang.org/node/7800" target="_blank">See this link</a></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> 4>Foursquare...<a href="https://groups.google.com/forum/#!topic/liftweb/Em5rHlKfvRQ" target="_blank">Know more from here</a>.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> ......Foursquare is said to be built almost 100% using Scala(See this Quora <a href="https://www.quora.com/What-are-the-programming-languages-and-frameworks-the-top-NYC-startups-are-using/answer/Harry-Heymann" target="_blank">link</a>).</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> 5>UBS..and HSBC bank.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Having said all these,,I will also like to add that Scala has two web frameworks developed, namely Lift and Play. Akka actors is good concurrency framework.Eclipse too has good support for it.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Some more applications developed using Scala are given in the following links</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Take a look at Jonas Bonér's blog series beginning with <a href="http://jonasboner.com/2008/10/01/real-world-scala-introduction" target="_blank">Real-World Scala: Introduction</a></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> And this<a href="http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di/" target="_blank"> link</a> for real world applications too.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> On google code I found this out <a href="http://code.google.com/p/kiama/" target="_blank">link</a>. Its an application written in Scala for language processing and I like it.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> </span><br />
<span style="font-family: Trebuchet MS, sans-serif;"> Way to goo..</span><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-28660539283737537432012-04-12T08:41:00.001+05:302012-04-12T08:41:27.357+05:30LXML: Installation simplified<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">Its easy.., but sometimes it is troublesome with the installation of lxml module of Django. Here is the simplified steps to do it:</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"><br /></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">Step 1>Download easy installer from this <a href="http://www.blogger.com/%22http://pypi.python.org/pypi/setuptools#files"" target="_blank">link</a>-(Ok!, if you have already),</span><span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"> the "setuptools-0.6c11.win32-py2.6.exe" file.</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">or search-> easy installer for python.</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"><br /></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">Step 2>Download lxml.egg from this <a href="http://pypi.python.org/pypi/lxml/2.3#downloads" target="_blank">link</a></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"><br /></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">Step 3> To install,just type the following:</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">easy_install lxml.egg(this should be at the command window at the directory where lxml.egg lies->you can open command window by holding the shift key and then clicking on the right mouse button and then choosing from the context menu).</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"><br /></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">The easiest method:</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">download lxml.exe from <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml" target="_blank">here</a></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif; font-size: large;">and simply install it your way..!!</span><br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-332708909728178042012-04-03T03:35:00.002+05:302012-04-07T15:34:35.246+05:30Pip and its installation on windows<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: large;"><br /></span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;"><span style="color: #7f6000; font-size: large;">The python software pip is a replacement for *easy_install* .One may say it as a wrapper for easy_install, and indeed it is.</span></span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;">It is used mainly to provide installation for python packages.</span><br />
<span style="font-size: large;"><br /></span><br />
<span style="color: #eeeeee; font-family: 'Trebuchet MS', sans-serif; font-size: large;">First method:</span><br />
<span style="font-size: large;"><br /></span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;">Step 1>Download the last easy installer for Windows that fits your installed python version: (download the .exe at the bottom of http://pypi.python.org/pypi/setuptools ). Install it.</span><br />
<span style="font-size: large;"><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Step 2></span><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Add c:\Python2x\Scripts to the Windows path (replace Python2x with the correct directory)</span></span><br />
<span style="font-size: large;"><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Step 3></span><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Open a new (!) DOS prompt. From there run easy_install pip</span></span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;">For the 64 bit operating system refer to this<a href="http://stackoverflow.com/a/9038397/362951" target="_blank"> link</a></span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;"><br /></span><br />
<span style="color: #f3f3f3; font-family: 'Trebuchet MS', sans-serif; font-size: large;">Second method:</span><br />
<span style="font-size: large;"><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Step 1></span><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Download the last pip version from <a href="http://pypi.python.org/pypi/pip#downloads" target="_blank">here</a>: </span></span><br />
<span style="font-size: large;"><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Step 2></span><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Uncompress it</span></span><br />
<span style="font-size: large;"><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Step 3></span><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Download the last easy installer for Windows: (download the .exe at the part of http://pypi.python.org/pypi/setuptools ). You can install it directly.</span></span><br />
<span style="font-size: large;"><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Step 4>G</span><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">o to the uncompressed pip directory from the command prompt and type:</span></span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;"> python setup.py install</span><br />
<span style="font-size: large;"><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Step 5></span><span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif;">Add your python c:\Python2x\Scripts to the path</span></span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;">You are done.</span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;"><br /></span><br />
<span style="color: #7f6000; font-family: 'Trebuchet MS', sans-serif; font-size: large;">Now you can use pip install package to easily install packages like you do in Linux :))</span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2560128703112948119.post-997307361373039102012-03-30T02:32:00.006+05:302012-03-30T03:31:43.397+05:30Directory navigation in command line: Tips and Tricks<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: #444444; color: #f1c232;"><br /></span><br />
<span style="background-color: #444444; color: #f1c232;"><br /></span><br />
<span style="background-color: #444444; color: #f1c232;"> <span style="font-family: 'Trebuchet MS', sans-serif;">Well it may be absurd for someone who is not so used to with all the command line stuff that one has to undergo, but for the geeks, its the things that keeps using computing enjoyable and something Geekyy!!</span></span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> Some people really do not know and may be perhaps do not care for the command line interface commands.</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> That's why I have wriiten this piece of information for all those who wanna keep the geeky thing up in themselves</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> </span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;">1> To move to the next directory we use</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> cd:\Destination_folder</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;">2> To move to long destination you can also type:</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> cd:\folder1\folder2\......\folder-n</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;">3> To get into a diferent folder at the same root level</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> eg: pics and movs at c:\de\film</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> and you are at </span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> c:\de\film\mov and you want to navigate to pics</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> then type:</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> cd../pics</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;">4> To move back one step up to the parent folder </span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> type:</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> cd../</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;">5> To move directly to the root folder</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> type:</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> cd /d drive_letter:\</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;">6> To change drive cd /d drive_letter:\</span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"><br /></span><br />
<span style="background-color: #444444; color: #f1c232; font-family: 'Trebuchet MS', sans-serif;"> Hope it helps!</span><br />
<span style="background-color: #444444; color: #f1c232;"><span style="font-family: 'Trebuchet MS', sans-serif;">Adios amigos </span> </span><br />
</div>Unknownnoreply@blogger.com0