Thursday, February 17, 2011

Add a new page to your blog

Adding a new page to your is nothing.It's very easy.Let's any way look how to add a new page to your blog so that you can have several pages in your blog,each dedicated to write things relevant to that page.

1.First go to your existing blog or create a new blog and select "Design" from the upper right corner
Ex. See below

2.Then you will get the "Edit Layout page", from there , select "Posting" tab , see the below image

3.Then select "Edit Pages" tab as in the below image

4.Then click on the "New Page" button

5.Now you can edit the contents to be included in the page.Give a title and contents in relevant space and Click on "PUBLISH PAGE"

Now you have added a new page...Congradz! Keep on Blogging......! :D

Thursday, January 13, 2011

Colombo hits its lowest temperature in 61 years!!!

Yesterday Colombo recorded its lowest Temperature in 61 years: 18.8C. It was a thrilling experience here in CMB.I recalled my university life when we were spending in Badulla.It is also very similar to what prevails in CMB now.For the first time I could see people wearing Ice Caps,Sweaters in streets in CMB at late evening ...!Heard that Nuwaraeliya recorded 7.8 C.What I wonder is,towards which Sri Lanka moving,because really strangest things do happens from some period of time!!!!

Saturday, July 3, 2010

unwise_.exe Virus

I was struggling with this damn unwise_.exe once but I could remove it from my computer

1. Start->Control Panel-> Fonts
2. CTRL+ALT+DEL and open Task Manager
3.In fonts tools ->folder options->view and check the "show hidden files and folders" search for the unwise_.exe and once you got it, end the task from the Task Manager
4.Then once you ended the task..delete the unwise_.exe from Fonts search results..!
5.Start->regedit.exe and Enter
6.CTRL+F and type unwise_.exe
7. The delete the registry entry for unwise_.exe

mysql_fetch_row was not working!!!!

while($row =mysql_fetch_row($resultlinks))
{
$username = $row["username"];
echo $username;
}
I had this code piece in one of my php script and had a time with the following error:

Notice: Undefined index: username in C:\wamp\www\moodle\SMSNotifications\form V1\process2.php on line 38

When I change mysql_fetch_row to mysql_fetch_array the problem was gone!!!!

Wednesday, June 23, 2010

Forgot Admin password in your Moodle site?

If you forgot or can not access your admin account in your Moodle site, as you have access to the database just change password field of the database table mdl_user to the following md5 hash code which is equal to the hash code of 'admin' : 21232f297a57a5a743894a0e4a801fc3

Then type username as admin and password also as admin to log in to your Moodle site!

Have fun!

Forgot Admin password in your Moodle site?