Posts

Showing posts from 2015

Installing Ubuntu and Fixing Boot, Software Centre Issues

Installing Ubuntu 12.04 =============== As long as you do not choose to screw your windows partition explicitly default installation should work fine. The problems starts later on however! I trust you on this part and proceed further directly to problems. Boot Problems =========== The grandchildren of linux have the same old boot loader problems that their grandmother RedHat 2-6.0x had! What happens is you will not see an option to boot to Linux, stuff directly goes to Windows or whatever else you have on you computer. Ctrl+Alt+T sudo grub-install /dev/sda Hit enter the problem should now be solved. Software Centre =========== The Canadian server seems to be sleeping so you may get this error. Error ===== W:Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Unable to connect to ca.archive.ubuntu.com:http: E:Some index files failed to download. They have been ignored, or old ones used instead. Open Software Centre and choose Edit -...

Perl Script to find intersection of lines in two files

#!/usr/bin/perl #/* Author : ~rAGU () */ # /*Descripation: A script to find the intersection set of the lines in two text files */ # /* when one of the file is a subset of the other */ # /* finsec.pl */ # 2004 open(SET, @ARGV[0]); $isInSubset = 0; $count = 0; while ($lineInSet = ) {     chop($lineInSet);     #$lineInSet = ~s / ^ \s * (.* ? )\ s * $ / $1 / ;     $count++;     $counts = 0;     open(SUBSET, @ARGV[1]);     while ($lineInSubset = )     {         $counts++;         chop($lineInSubset);         #$lineInSubset = ~s / ^ \s * (.* ? )\ s * $ / $1 / ;         if ($lineInSet eq $lineInSubset)         {             $isInSubset = 1;    ...