April 2008

21
Apr

This brief tutorial will outline how to enable file sharing in Ubuntu.

  1. Sharing files and folders across your network from your Ubuntu PC is every bit as easy as sharing files in Windows (arguably, it’s easier). Start by right-clicking the folder you want to share, and select Share Folder. If the services required to share files/folders aren’t installed, you’ll be prompted to install them.
  2. After clicking Install services they will automatically start to download and install.
18
Apr

Split

A very useful function in Perl is split, which splits up a string and places it into an array. The function uses a regular expression and as usual works on the $_ variable unless otherwise specified. The split function is used like this:

8
Apr

Perl Functions A-Z

A

  • abs - absolute value function
  • accept - accept an incoming socket connect
  • alarm - schedule a SIGALRM
  • atan2 - arctangent of Y/X in the range -PI to PI

B

  • bind - binds an address to a socket
  • binmode - prepare binary files for I/O
  • bless - create an object

8
Apr

Tutorial on Threads in Perl

NAME

perlthrtut - tutorial on threads in Perl

5
Apr

how to use gmail to send emails using PHPMailer

How to use gmail to send emails using PHPMailer

1 Download PHPMailer from http://phpmailer.sourceforge.net
2 Extract to folder phpmailer
3 Create a file email.php
4 Paste this code and change the values in blue as you need (I modified the sample code given on the PHPMailer homepage)
IsSMTP(); // send via SMTP
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "username@gmail.com"; // SMTP username
$mail->Password = "password"; // SMTP password
$webmaster_email = "username@doamin.com"; //Reply to this email ID
$email="username@domain.com"; // Recipients email ID
$name="name"; // Recipient's name
$mail->From = $webmaster_email;
$mail->FromName = "Webmaster";
$mail->AddAddress($email,$name);
$mail->AddReplyTo($webmaster_email,"Webmaster");

Activity Stream

Theme designed by Donny Carette - Powered by Drupal - copyright © 2010