Skip to main content

Posts

Convert Visual Studio 2005 to 2008

Normaly Visual Studio (VS) converts 2005 projects to 2008 when we try to open our 2005 projects in Visual Studio 2008. But sometimes we are getting errors... There fore we need to manually converts 2005 visual studio projects to 2008.  This is the way to update 2005 visual studio projects o 2008. Open a Visual Studio Command prompt.  CD (goto) to the folder whitc your project in it. Issue this command, subbing in your own sln file name devenv /upgrade MySoln.sln

Recover Linux After Installing Windows

How to recover ubuntu (Whole in one partition) Open a terminal in the ubuntu using a live disk $ sudo grub then grub terminal will come up,in grub terminal run  $ find /boot/grub/stage1 then something like (hd0, 4) will be displayed,then run $ root (hd0,4) here (hd0,4) is the result from find command,then run  setup (hd0) here (hd0) is first part of the find result restart machine How to recover ubuntu (When boot partition seperately installed) Open a terminal in the ubuntu using a live disk $ sudo grub then grub terminal will come up,in grub terminal run  $ find boot/grub/stage1 then something like (hd0, 4) will be displayed,then run $ root (hd0,4) here (hd0,4) is the result from find command,then run  setup (hd0) here (hd0) is first part of the find result restart machine

Workshop in Nihiluwa Vidyalaya

Conducted five days workshop in Visual Basic, Mambo (Content Management System) and Microsoft Access for student of Nihiluwa Maha Vidyalaya in 2008 October 16.       

Linux Commands - Part 5

du - This used to estimate file space usage. du /home  {shows usage of /home folder and all other files/folders in home folder} du -h /home {show usage in human readable foarmat. Using Mb and Gb} du –maxdepth=0 /home {show enrite /home folder usage only, sumerized one} du –maxdepth=1 /home  {show enrite /home folder and one level down} cut - This used to remove sections in each line. This is most of the time used with pipe command cat /etc/passwd | cut -d":"  -f1 cat /etc/passwd is to show content of the passwd file. We pipe output of that command cut using | (pipe). cut -d":" -f1 {this means split each line of out put by ':' and only display first field (f1)}. Thus if we take only first field we get username. Therefore above command list all the users in our system.  cat /etc/passwd | cut -d":" -f1-3 {show 1,2,3 field ,example :melick:x:1000} cat /etc/passwd | cut -d":"  -f1,3 {show 1 and 3 fields ,example :melick:1000} cat /etc/passwd...

Linux Commands - Part 4

whoami   - This is used get who is the current user. hostname – This is used to get name of the machine. who           -Show who is logged into the system. Date           - Show the current date and time printenv  - Print vales o fall environment variables. env             -Print current environment. su -T his command is used to change the shell user.     su -            {change   the shell to the super user / root}    su - root    {change   the shell to the super user / root}    su - Saman        {change   the shell to the super Saman} id - This is used to print user's   information  id                       {show current user information}   id Saman           {show user Saman information} uname - This used to get machine and operating system information   uname               {show operating system}   uname -a           {show all info, OS, Kernel version, architecture}   uname   -r           {show kernel version} groups   -  T his us...

Linux Commands - Part 3

find -This command is use t find files and folders   find . -name amal -print             {find amal in current directory and print output}  find /home -name a*   -print        {find things starts with a in /home directory and print output}   find /home -name a* -type d   -print       {find directories  starts with 'a' in /home directory and print output}   find /home -name a* -type f   -print        {find files starts with a in /home directory and print output}   find / -atime +7 -name *.conf -print  {find every thing end with “.conf” and access before last 7 days in / (root)}    find / -atime -7 -name *.conf -print  {find every thing end with “.conf” and access with in last 7 days in / (root)}    find / -atime 7 -name *.conf -print     {find every thing end with “.conf” and accessed  day 7 / (root)   f ind . -name meli -type f -exec rm {} \;  {find files  named 'meli' in current directory and remove  them}   Hints:     [-atime,-am...