Sunday, May 27, 2012

Install Moodle



Moodle is a free open source learning management written in PHP.
Moodle can be downloaded from:
 http://download.moodle.org/

Somw tips to install Moodle.
In php.ini, you need to enable following:
extension=php_curl.dll
extension=php_intl.dll
extension=php_mysqli.dll
extension=php_soap.dll


Configure httpd.conf for Moodle path in Apache.
Run index.php in Moodle directory and follow instructions step by step.


Saturday, May 26, 2012

Reset admin password




Sometimes you installed Open source software such as Moodle in local host. You forgot the admin password and smtp password reminder is not set properly. You can access MySQL database, but password is md5 encrypted.

There is one way to solve this. In password field enter:
d41d8cd98f00b204e9800998ecf8427e 
Because MD5("") = d41d8cd98f00b204e9800998ecf8427e, so now your password is a empty string.
So you can login as admin without password. And reset password after login.

You can also directly  reverse md5 encrpted password online via:
 http://md5.gromweb.com/
Then you know the admin login password.

Friday, May 25, 2012

Install Java in Firefox




  • To test that Java is installed and working properly on your computer, run this test applet. If Java is working, the message will be "You Java is working", or "Agree and start download" button will show.
If you found Java is is not installed, you can also go to:
http://www.java.com/en/download/help/firefox_online_install.xml



Thursday, May 24, 2012

PHP quiz




The following PHP quiz is written using Java Script.   You can answer each question only once. Your score will be shown.
1.All variables in PHP start with which symbol?
&
$
!
#
2. In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
True
False
I do not know
Not Always
3. Which is correct to include a file in PHP:
include('header.php');
#
include('header.php');
#require('header.php');
$require_once('header.php');
4.What can you use to replace dog with cat
preg_replace("dog", "cat", "I like dog");
preg_replace("cat", "dog", "I like dog");
preg_replace("/dog/", "cat", "I like dog");
preg_replace("dog", "/cat/", "I like dog");
5. Which syntax write "Hello World" in PHP
write('Hello World");
echo 'Hello World';
document.write("Hello World");
cout<<"Hello World";
6. What does PHP stand for?
Personal Homepage Preprocessor
PHP: Hypertext Preprocessor
Permanent Header Profile
Preprocessor Header Profile
7. PHP server scripts are surrounded by which delimiters?
<?php> <?>
<?php        ?>
<??            ??>
<?       php?>
8. What is the correct way to connect to a MySQL database localhost?
connect_db("localhost");
connect_mysql("localhost");
mysql_connect("localhost");
db_connect("localhost");
9. PHP comments have the following syntax:
//
#
!
<--?
10. Award!!! -- This blog is written by?
Jessie
Andy Lu
Jiansen Lu
All of Above























add videobar in this blog



Blogspot has a videobar gadget, where you can put 4 youtube videos in your blogspot sidebar.
Go to layout, add gadget, find videobar and add, in search box input: album music.
Result is shown in my blog right sidebar.
Click each video to get a bigger video. Click "I have finished watching this video" to close video window,

How to search other blogs in blogspot.com?



There are millions of blogs in blogspot.com. How to choose your favorite blogs and follow?

 One way is to use your blogspot.com profile.  For example, you can add "computer programming" in your interest if you want to search "computer programming" in blogspot.  Then you can click the link in "computer programming" in your profile and all related blogs will be shown.

Another way is to use Google search. You can type 
site: blogspot.com, computer programming
to  search "computer programming" blogs in blogspot.com.

You can follow the blogs you are interested and your blogs will be getting more visitors too.

Example:
 

Friday, May 18, 2012

Create a new Wordpress in Wordpress.com



 Create a Wordpress blog in wordpress.com
http://jiansenlu.wordpress.com/
Although I installed  two other wordpress  in my personal sites, I  appreciate to join wordpress community in wordpress.com.