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:
http://fireftp.mozdev.org/
FireSSH can be downloaded from:
http://firessh.mozdev.org/
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
Listen 192.0.2.1:80
Listen 192.0.2.5:8000

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]
       </IfModule>   
     </Directory>
</VirtualHost>

If your sever name is www.example.com, you can use
ServerName www.example.com
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
Example:
NameVirtualHost *:80

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

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


The server  www.domain.tld and domain.tld  point to same www_root
while www.otherdomain.tld points to different folder
(reference: http://httpd.apache.org/docs/2.2/vhosts/name-based.html)

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

NameVirtualHost 172.20.30.40:80
NameVirtualHost 172.20.30.40:8080

<VirtualHost 172.20.30.40:80>
ServerName www.example.com
DocumentRoot /www/folder1
</VirtualHost>


<VirtualHost 172.20.30.40:8080>
ServerName www.example.org
DocumentRoot /www/folder2
</VirtualHost>
 

http://httpd.apache.org/docs/2.2/vhosts/

Wuala: free Secure Online Storage


Wuala can be downloaded from:
http://www.wuala.com/
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: http://docs.jquery.com/Downloading_jQuery

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

Example:
For video setting:
Design a symbol local_video_label using flash CS5. Add following action in symbol:
onClipEvent(load){
this.onRelease = function():Void
{
System.showSettings(3);
}
}

For audio setting:
Design a symbol local_audio_label using flash CS5. Add following action in symbol:
onClipEvent(load){
this.onRelease = function():Void
{
System.showSettings(2);
}
}
Reference:
showSettings (System.showSettings method)
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001577.html