Sunday, March 27, 2011

Flash ActionScript 3 Camera tutorial


Click video to see Video, click tiny up arrow in control bar to return to menu.

Saturday, March 26, 2011

Update my online music site


Add more contents in my online music site:
https://sites.google.com/site/jiansenlumusiconline/

Embed major music sites and best music video search engine
  1. Hot Artist from TRUVEO
  2. Youtube top music videos
  3. Yahoo top music video Rss
  4. Yahoo featured video Rss
  5. Pop music in metacafe
  6. To African Music Videos
  7. My Music Playlist

For Chinese:
  1. Chinese Flash Music Videos
  2. Search Chinese Music Videos

Tuesday, March 22, 2011

Javascript: popup a window when clicking a link


code:
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
    newwindow=window.open(url,'name','height=360,width=480');
    if (window.focus) {newwindow.focus()}
    return false;
}

// -->
</script>
<a href="http://www.youtube.com/v/qrO4YZeyl0I" onclick="return popitup('http://www.youtube.com/v/qrO4YZeyl0I')"> popup Bad Romance</a>

Result, click the following link to popup a youtube video.

popup Bad Romance
 You can resize the window to the size you want.

swfobject and embed code




SWFObject documentation can be found:
http://code.google.com/p/swfobject/

SWFObject 2.2 source code can be downloaded from:
http://code.google.com/p/swfobject/downloads/list

The embed code can be generated from:
http://www.bobbyvandersluis.com/swfobject/generator/index.html

The old code for SWFObject 1.5 can be obtained from:
http://blog.deconcept.com/swfobject/

HTML: set your website default language


For example, you want your website automatically displays Chinese.
In HTML:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
In PHP:
header('Content-Type: text/html; charset=gb2312');
where
gb2312 is simplified Chinese. default is UTF-8 (Unicode character)

Monday, March 21, 2011

Flash Online Global Privacy Settings Check Panel


The application running in Adobe Flash Player  requested access to the camera and/or microphone available on your computer as allow and deny box pop-up below:



Use the link below to reset the privacy settings in Flash Player:
The link:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html

Wednesday, March 16, 2011

How To Create YouTube Playlists And Get Embed Code ?


If you plan to embed multiple videos from youtube, playlist is a good choice.
1) Login your youtube account.
2) Add videos in your playlist.
3) Click share and get embed code for your playlist.
Detail: go to http://www.youtube.com/my_quicklist, click one of your playlist in left menu. Then you can see the share button.
4) If you have playlist ID for other people's playlist, you can embed it in your blog according to:
http://www.labnol.org/internet/embed-youtube-playlists/17687/
5) below is the video for
"How To Create YouTube Playlists And Get Embed Code ?"

6) Below is the playlist I created:

Monday, March 14, 2011

Install network printer in your laptop or desktop


I have a laptop, window 7. Below is the step to use department printers.
1) Connect to network.
2) Start->Device and printer-> Add a printer-> Add a network, wireless, bluetooth printer
3) The computer will find the printers in your network, select a printer you want to add
4) Click next
5) Select Manufacturer and printer type (look at real printer to get this information)
6)Next and finish.

Wednesday, March 9, 2011

Free photo editing software - PhotoScrape


Photoscape is a fun and easy photo editing software that enables you to fix and enhance photos. Inside, there are a lot of icons. You can also use it for animated gif. It is free. You can download it from:
http://www.photoscape.org/ps/main/download.php

Free Logo Maker website:
http://www.logomaker.com/

I used it to make a logo:

Tuesday, March 8, 2011

Create an online music site



Using music template in Google site, create a music website in 5 minutes as
below:
https://sites.google.com/site/jiansenlumusiconline/

I will modify it later.

Monday, March 7, 2011

How to import and export ssl keys/certificates in different computers?


Firefox
Step 1: in computer 1:
Firefox: Select "Tools" ->"Options"-> "Advanced" -> "View Certificates", choose the "Your Certificates" tab and locate your certificate from the list.
Export the certificate.
Step 2: in Computer 2:
The same process as 1 except the last step to import the certificate file created in step 1

Step 1 can also be used to backup your certificate keys.

Sunday, March 6, 2011

Websites using Flash media server


1. http://www.scrapblog.com/
You can create photo books, cards etc using flash. There are plenty of themes to select. Below is the sample photo I created. When you sign up or use your facebook account, you get100 credits. If you don't want to print, you basically have your account for free.



2. Example 2  use Flash Media Server:
http://www.eyejot.com/

Sending video messages with Eyejot is as easy as sending email. There is no software to download or install. Just login to your account, record or upload your video, and send! Join Eyejot for free.

Example 3 http://www.userplane.com/

Live multi-user voice/video chat, webchat and online dating.

Thursday, March 3, 2011

HTML, table inside table


Example code:
<div id="Layer1" style="text-align:center;width:800px;height:500px">
<table width="700px" border="1">
<tr>
<td width="60%">
<iframe height="600px" width="100%" name="innerframe9" src="http://flash.jschina.com.cn/softdown/2007/14/5610220070212111916.swf"></iframe>
</td>
<td width="40%">
<table width="100%" height="500px" border="1"><tr>
<td><a target="innerframe9"  href="http://caixia.vip.flashyc.net/%E5%BD%A9%E9%9C%9E%E4%BD%9C%E5%93%81/%E5%AD%9F%E5%A9%86%E7%9A%84%E7%A2%97.swf">&#23391;&#23110;&#30340;&#30871;</a> </td>
<td><a target="innerframe9"  href="http://bbs8.zhxww.net/UploadFile2008/2010-9/20109182136183580.swf">&#24688;&#24688;&#65292;QQ&#30340;&#29233;</a> </td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td></tr>
</table>
</div>
Result:

Tuesday, March 1, 2011

Copy a table/database from old table/database in MySQL


Copy a table from old table in MySQL
1) First:
creates the new table mytable_new by duplicating the structure of the existing table
in a database such as mydb:
Code:
CREATE TABLE mytable_new LIKE  mydb.mytable;


2) Copy the data from old to new.
Code:
INSERT mytable_new SELECT * FROM  mydb.mytable;



Copy a database from old database in MySQL
The reference using command line can be found:
http://www.keithjbrown.co.uk/vworks/mysql/mysql_p6.php
I used MySQL Query Browser

1) Go to Tools ->MySQL Administrator
2) Click backup->New Poject->Save Project->Excute Backup now
3) Click Restore->Open backup file (file from step 2), choose another schema
click "start restore"
4) Click user under user account under MySQL Administrator, assign (add) privileges of new database for this user