Dipin krishna
Perl: Send bulk mail via SMTP with authentication
This is a tutorial on how to send mails to multiple recipients using Perl Net::SMTP module with authentication. The smtp module implements a client interface to the SMTP and ESMTP protocol, enabling a perl5 application to talk to SMTP servers. The first step is to create a SMTP connection to the server. A new Net::SMTP… Read More »Perl: Send bulk mail via SMTP with authentication
Perl: Simple way to read Command line arguments
Parsing command-line arguments in Perl is very easy. All the command-line arguments are present in the array $ARGV. You can get the number of arguments passed as ( $#ARGV + 1 ). Below is a sample Perl script to read the command-line parameters.
Sending Emails Via Gmail SMTP With Perl
Update: Click here If you want to Send an Email with attachment through Gmail SMTP. This is a tutorial on how to send mails using Perl Net::SMTP module through Gmail SMTP. The smtp module implements a client interface to the SMTP and ESMTP protocol, enabling a perl5 application to talk to SMTP servers. The first… Read More »Sending Emails Via Gmail SMTP With Perl
Git: Create and delete remote branches
Many git users frequently do create and delete branches. I often forget the command. So i am now writing it down here. May be, it will be useful to some guys out there too. Create a remote branch git push origin new_branch Where origin is your remote name and new_branch is the name of the branch… Read More »Git: Create and delete remote branches
C++/CPP: Search and Replace in String
My CPP function for search and replace in string is given below: string search_replace( string String, string searchString, string replaceString, string::size_type pos = 0) { while ( (pos = String.find(searchString, pos)) != string::npos ) { String.replace( pos, searchString.size(), replaceString ); pos += replaceString.size(); } return String; } Sample program using it. /* * searchreplace.cpp *… Read More »C++/CPP: Search and Replace in String
Install Skype in Ubuntu 10.04 Lucid Lynx from official partner repository
Skype has just been uploaded to the “partner” official Ubuntu 10.04 Lucid Lynx repository. So you can now install skype in your ubuntu 10.04 without downloading the setup files from skype. So to install Skype in Ubuntu 10.04 Lucid Lynx from the partner repository, go to System > Administration > Software Sources and on the… Read More »Install Skype in Ubuntu 10.04 Lucid Lynx from official partner repository
How to Install Adobe PDF Reader 9.3 in Ubuntu 10.04
Adobe Reader is a famous pdf reader.Command line way: $ wget http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.3.2/enu/AdbeRdr9.3.2-1_i386linux_enu.deb$ sudo dpkg -i AdbeRdr9.3.2-1_i386linux_enu.deb Non Command Line: Download the deb file for 32-bit linux os from here. Just double click the .deb file you just downloaded to install adobe reader. Enjoy!
Upgrade To Ubuntu 10.04 Lucid Lynx: No internet, no problem
Upgrade To Ubuntu 10.04 Lucid Lynx Without An Internet Connection Well, if you don’t have an Internet connection, you can still upgrade to Ubuntu 10.04 Lucid Lynx, but you’ll need to download the Ubuntu 10.04 Lucid Lynx alternate CD somehow. You can download the Ubuntu Alternate ISO from HERE. Then, you can then either write… Read More »Upgrade To Ubuntu 10.04 Lucid Lynx: No internet, no problem
UNP: Now extract any archives without any worries
Many of us may know how to extract a .Tar.gz file. But how many of us know how to extract a .bz2, .lz, etc files. Some extra option to tar will do the needfull, but we will need to know the options for each type of archive. But no worries any more. You can now… Read More »UNP: Now extract any archives without any worries
apt-rdepends: How to know the dependencies of a package in Ubuntu
I am sure that this might have happened to you also, when you tried to install a package, and then a message showed “Failed dependencies”. Now use apt-rdepends to know the dependencies and their dependencies of a package.When we make a query for dependencies of a package, apt-rdepends searches the APt and return the list… Read More »apt-rdepends: How to know the dependencies of a package in Ubuntu
Fix ubuntu 10.04 lucid lynx black screen on bootup issue
You can face this issue in two conditions. 1. Those who have installed ubuntu 10.04 might encountered this problem. The screen goes blank just after grub (may be after bios startup, if grub timeout early). Please follow the steps below to fix it.Press e on getting the GRUB bootloader(if not getting grub, press and hold… Read More »Fix ubuntu 10.04 lucid lynx black screen on bootup issue
How to play video dvd in Ubnutu 10.04 Lucid Lynx
Install the libdvdcss library. # sudo su -# apt-get install libdvdcss2# apt-get install libdvdread4# cd /usr/share/doc/libdvdread4/# ./install-css.sh If it says that the package is not found then try them again after executing the below lines:add medibuntu repositories in your sources list $ sudo wget –output-document=/etc/apt/sources.list.d/medibuntu.listhttp://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list$ sudo apt-get –quiet update $ sudo apt-get –yes –quiet… Read More »How to play video dvd in Ubnutu 10.04 Lucid Lynx
GNU Screen: a free virtual terminal multiplexer
GNU Screen is a free virtual terminal multiplexer that allows a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. Persistence Similar to VNC, GNU Screen allows the user to start applications from one computer, and then reconnect from a different computer and continue using the same application… Read More »GNU Screen: a free virtual terminal multiplexer
How to install Stable Open Office 3.2 in ubuntu 10,04 Lucid Lynx
PLEASE TRY THE METHOD TWO FIRST. METHOD 1 Download the installation package archive of Open Office from the below links. 32 bit US English 64 bit US English 32 bit British English 64 bit British English For a different language please download the deb archive from here http://download.openoffice.org/other.html The file will be a tar.gz file.… Read More »How to install Stable Open Office 3.2 in ubuntu 10,04 Lucid Lynx
How to Enable/Disable vertical and horizontal scrolling using touchpad in ubuntu
Ubuntu provides configuration of the most common touchpad options in System > Preferences > Mouse Below the some common options you would like to enable under the Touchpad tab. Edge Scrolling Enable horizontal scrolling Enable mouse clicks with touchpad
How to increase the priority of a running process in Linux
Kernel decides how much processor time is required for a process based on the nice value. Possible nice value range is: -20 to 20. A process that has a nice value of -20 is very high priority. The process that has a nice value of 20 is very low priority. $ ps axl Use ps… Read More »How to increase the priority of a running process in Linux
How to make Ubnutu 10.04 Lucid Lynx Multimedia Ready
In Ubuntu 10.04 “Lucid Lynx”, the universe, multiverse and restricted repositories are activated by default. For installing Multimedia files you need to add medibuntu repositories. Run the following in command mode it will add medibuntu repositories in your sources list $ sudo wget –output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list $ sudo apt-get –quiet update $ sudo apt-get –yes… Read More »How to make Ubnutu 10.04 Lucid Lynx Multimedia Ready
Upgrading to 10.04 Lucid Lynx from Ubuntu 9.10 or Ubuntu 8.04 LTS
To upgrade from Ubuntu 9.10 on a desktop system 1. Press Alt+F2 and type in “update-manager -d” (without the quotes) into the command box. 2. Update Manager should open up and tell you: New distribution release ‘10.04’ is available. 3. Click Upgrade and follow the on-screen instructions. To upgrade from Ubuntu 9.10 on a server… Read More »Upgrading to 10.04 Lucid Lynx from Ubuntu 9.10 or Ubuntu 8.04 LTS
How to view the performance details of individual CPUs in the top command
You can view the performance details of each CPUs of your machine in the top command by pressing 1 (number one) while the top command is running.one). $ top top – 09:28:33 up 2 days, 12:46, 2 users, load average: 0.61, 0.41, 0.18 Tasks: 90 total, 1 running, 89 sleeping, 0 stopped, 0 zombie Cpu(s):… Read More »How to view the performance details of individual CPUs in the top command
Resolve Skype video chat (web cam) issue in ubuntu 10.04 Lucid Lynx
Problems using WebCam in Skype. I installed Skype on Ubuntu 10.04 (64 bits). After installing, i found that the color webcam display looked ”green”. I had faced the same issue when i installed and used skype in ubuntu 9.10. The fix show below helped me at that time, it does rescue me this time also.… Read More »Resolve Skype video chat (web cam) issue in ubuntu 10.04 Lucid Lynx