Wednesday, April 20, 2011

Python Programming Video Tutorial

Click > to start, then click video to see video, click ^ in bottom control to return to main menu

Monday, April 18, 2011

Remote Desktop Connection in Windows 7

You can use remote desktop connection to access to another computer in the network.
1) Click start icon in Windows, clicking All Programs
2) Click accessories, clicking Remote Desktop Connection.
3) Typing another computer IP or hostname and click connect.

Another computer needs to be set allowing remote access as followings:
1) Click start icon in Windows, clicking control panel
2) Click system, clicking remote setting and change the setting.

Fireftp and FireSSH-- free, cross-platform ftp and SSH terminal clients

Fireftp can be downloaded from:
FireSSH can be downloaded from:
After downloading them, you need to restart Firefox.
Clicking tools in the Firefox menu bar, you see FireSSH and Fireftp.
Click them to launch application.

Changer Screen Saver time in Windows 7

Changing Screen Saver time in Windows 7 is under Appearance and Personalization, not under display
1) Click start -> Control panel, you can see control panel->Appearance and Personalization
2) Click control panel, then clicking Appearance and Personalization
3) Click change screen saver under personalization, a window popup.
4) Change wait 1 minute to the minutes you want.

Tuesday, April 12, 2011

Running more than one website in a computer -virtual host

1) Modify httpd.conf to listen two ports in one IP
Listen 80
Listen 8000
If there are two interfaces, we use

To debug virtual server configuration, we can use:
/usr/local/apache2/bin/httpd -S

2) Use VirtualHost  to specify the behavior of the ports.
Example of my virtual host:

<VirtualHost *:808>
     ServerName egps.localhost:808
     DocumentRoot C:/Users/jiansen/Desktop/CAS/jiansen_dir/www_GNSH/gnsh
     <Directory />
        Options FollowSymLinks
        AllowOverride None

        Order allow,deny
        Allow from all
       <IfModule rewrite_module>
          #RewriteEngine On
          #RewriteRule !maintenance_msg\.php$ /maintenance_msg.php [R,L]
          RewriteEngine On
          RewriteCond %{HTTP_REFERER} !^$
          RewriteCond %{HTTP_REFERER} !^http://localhost/.*$ [NC]     
          RewriteRule .*\.(jpe?g|png|gif|bmp|swf|flv) - [NC,F,L]

If your sever name is, you can use
Here HTTP_REFERER will contain the page that the browser claims it last visited.
^ means conition (is)

You also use same port for different server names
NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain

<VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain

The server  www.domain.tld and domain.tld  point to same www_root
while www.otherdomain.tld points to different folder

For running different sites with different ports:
Listen 80
Listen 8080


DocumentRoot /www/folder1

DocumentRoot /www/folder2

Wuala: free Secure Online Storage

Wuala can be downloaded from:
For free account, you can get 1GB storage.
Wuala is Secure Online Storage. You can backup, sync, share and access your files everywhere. It is very easy to use. You just need to copy and past your files and folders after downloading Wuala application. All data encrypted on your computer.
I use it to backup my important programming files and find that it is convenient.

Video: Introduction To Wuala (Win)

Sunday, April 3, 2011

Learn About HTML5 and the Future of the Web

In this video, Brad Neuberg from Google gave an overview of HTML5 included SVG/Canvas rendering, CSS transforms, app-cache, local databases, web workers, and much more.

JQuery Video Tutorial

JQuery can be downloaded from:

The jQuery library contains the following features: HTML element selections, manipulation. event functions, CSS manipulation. JavaScript Effects and animations, AJAX and utilities.

Click > to start, then click video to see video, click ^ in bottom control to return to main menu

Friday, April 1, 2011

ActionScript, select local video and audio settings

Systems.showSettings(tabID) method can be used to show the specified flash panel settings.

tabID=0, Privacy
tabID =1, local Storage
tabId=2, Microphone
tabID=3, Camera

For video setting:
Design a symbol local_video_label using flash CS5. Add following action in symbol:
this.onRelease = function():Void

For audio setting:
Design a symbol local_audio_label using flash CS5. Add following action in symbol:
this.onRelease = function():Void
showSettings (System.showSettings method)