Saturday, 29 August 2009

Fedora 11 Boot Problem (disk checking)

Oh my god! After having a complete system update and Electronic Lab installation, I did a reboot. I do not know what exactly happened, the white stuff loaded only to some extent. Then suddenly a black screen turned out saying
"Press Ctrl + D to continue or enter password to do a manual disk check". Gawd! It scared everything out of me..! Last time I had similar kind of problem and I ended up Reinstalling the whole Fedora 11. But this time, I thought of making things myself. Remembered this command, fsck.
But when I gave it just as "fsck"... It started asking me weird questions like... "Do you want to move this block, actually it was supposed to be at this place and stuff". I didn't have any clue about the moving of disks. But I tried understanding the inner stuff of what was exactly going on behind the scene. Then, I brutally rebooted the system, and I gave
fsck -A -y

and things turned out to be Real GOOD! It asked me to reboot at the end of this filesystem checking process. And Cool..! The white stuff loaded well and the system started. Thanks to the stability of Fedora. No wonder why Linux is mainly focussed on developers, but when I was able to solve the problem, I really loved it..! No matter, I love fedora and love to be as an Ambassador throughout..!

Fedora ROX big time..!


p.s. All the companies and related stuff which I have used here belongs to the company. I put my head into no licensing issues. ( This statement is meant for geeks who actually peep into everything around and check for licenses..!)

Friday, 21 August 2009

Page ranking of my blog..!

Hey there!

The concept of page rank is really cool..! I don't know how exactly it works after the improvements over the previous algorithms, but anyways it has done one major thing..!
It has given the same page rank for both yahoo (http://in.yahoo.com/?p=us) and my blog..! Means that both have the same importance according to Google..!
Interesting...

Saturday, 4 July 2009

Sending mails using PHP through a GMAIL account...

Hi,
This post will explain how to send mails using your Gmail account by using PHP script.
I use XAMPP, so the tutorial will be based on that... Modify if you use some other service! It'd work...

* Download the phpmailer from http://phpmailer.sourceforge.net .
* Extract the folder in htdocs of xampp.
* Now navigate to \_acp-ml\phpmailer\ and create a php page with the name you desire.
* In the section, paste the following code...!

include("class.phpmailer.php");
include("class.smtp.php");
$send_mail=new PHPMailer();
$send_mail->IsSMTP();
$send_mail->SMTPAuth = true;
$send_mail->Username = "someone@gmail.com"; // your gmail username
$send_mail->Password = "passwd"; // your gmail password
$webmaster_email = "someone1@gmail.com"; //Reply to this email ID
$email="someone@aaa.com"; // Recipients email ID
$name="Cool Dude"; // Recipient's name
$send_mail->From = $webmaster_email;
$send_mail->FromName = "Webmaster";
$send_mail->AddAddress($email,$name);
$send_mail->AddReplyTo($webmaster_email,"Webmaster");
$send_mail->WordWrap = 50; // set word wrap
//$send_mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
//$send_mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // attachment
$send_mail->IsHTML(true); // send as HTML
$send_mail->Subject = "Test E-mail";
$send_mail->Body = "Hello there,
This is a test message..."; // Write your email body here!!!
$send_mail->AltBody = "This is a plain test message..."; //Text to be visible in Plain text mode..!
if(!$send_mail->Send())
{
echo "Error : " . $send_mail->ErrorInfo;
}
else
{
echo "The Message sending was successful...";
}
?>

Once you do this,
* Try accessing the file from localhost thru your browser.
* If this doesn't work,
* Find out the php.ini file from xampp folder, open it and uncomment extension=php_openssl.dll" by removing semicolon.
* Now, find the "#connect to the smtp server" line in class.smtp.php in phpmailer folder and add $host = "ssl://smtp.gmail.com"; $port = 465; before it.
* Now restart XAMPP by stopping and starting Apache once!

Try executing the php script, and you'd find this working...

Comment if any changes are to be made or if you found this useful...

Sunday, 28 June 2009

Creating a website in 10 minutes

Hi all,
Lets deploy a website made with PHP and a MySQL database. Follow these steps carefully...

Installing the business tier
1. Download XAMPP by clicking http://www.apachefriends.org/en/xampp-windows.html
2. Install XAMPP by selecting Apache, MySQL and FileZilla AS SERVICE.
3. Click next for all other windows that appear.
4. Start XAMPP and start Apache, MySQL and FileZilla.
5. Disable your windows firewall by navigating to control panel.
6. Type localhost in your browser and see if XAMPP site is opening.

Installing Access tier
1. Download MySQL Gui tools from http://dev.mysql.com/downloads/gui-tools/5.0.html
2. Pick a mirror based on your platform type. Its generally x86.
3. Either register or, click on No thanks! Generally i prefer the second one! ;)
4. Choose a location and click https.
5. Download it.
6. Install it by clicking Next to all that follows.
7. Your Back end is ready.

Create your first web-coding (name it index.php) by following the instructions in the link,
http://www.w3schools.com/html/default.asp

and put your file in a Newfolder (Give it a name) in C:\xampp\htdocs.
Now open your browser and type, localhost/NewFolder(the folder name that you gave) and press enter. Tada! the html file appears...
Now try some php coding by using this link,
http://www.w3schools.com/php/default.asp
Now try combining MySQL queries by following the appropriate links that appear in the above mentioned link.

Saturday, 27 June 2009

XAMPP didn't work - solution

Hi ppl,
I had installed my xampp and deployed my website in the htdocs! I was able to access it by typing localhost/website-name but not using the ip or website address... I worked on that for a few hours and found out that windows firewall was blocking it. If you get the same problem, disable the windows firewall and try testing your ip...
It works