Sunday, October 30, 2011

Create flash website using Adobe Rome


Adobe Rome is an online and desktop content creation and publishing application. Finished projects can be exported in PDF, JPG, Flash, and HTML file formats. You can easily combine graphics, photos, text, video, audio and animation into your website projects. You can download Adobe Rome for free from:
http://rome.adobe.com/download.html

Video: Make A Flash Website With Adobe Rome (Free Version Of Flash)

Convert flash to HTML5 using Adobe Wallaby


Adobe Wallaby converts flash file (fla) to HTML5. This conversion is a good news to ipad as ipad doses not support flash. This also allows you to reuse and extend the reach of your content. Adobe wallaby is a free software. You can download it from
http://labs.adobe.com/technologies/wallaby/
Video: Adobe Wallaby- How to convert Flash Fla Files into HTML5

3D printer


Think about printing 3D object using printer. Yes it is possible, three dimensional object can be created by laying down successive layers of material. There are several different techniques, some used molten polymer and the other used metal.

Below is the video for how 3D metal printer work.

Video: 3D metal printing


Reference: http://www.canadaka.net/news/topic/9-science

Friday, October 28, 2011

Adobe Flash Tutorial- Design a Cartoon using drawing tools


This video showes you how to create an outside cartoon environment. For more tutorials check out: http://www.incredibletutorials.com.
There is no actionscript related, mainly learn how to use Adobe flash drawing tool and design cartoon.

Thursday, October 27, 2011

Create an online survey for free


You can create an online survey via:
http://www.surveymonkey.com
The basic is for free. 10 questions per survey. 100 responses per survey.
You can copy the survey embed code in your blogs. There are also a lot of templates
to select. You can also create an online survey using Google docs. Below is the survey for my blog. Fill and send:
Create your free online surveys with SurveyMonkey, the world's leading questionnaire tool.

Wednesday, October 26, 2011

Telus Optiktv TV show remote recording



You not only can schedule and manage your Telus Optik TV HD PVR recordings* at home, but also at a smartphone† or any Internet-connected computer.

The following is the step for setting Telus Optiktv TV show remote recording.

1)Press record button in your Telus Optik TV HD PVR box or remote
control, select create account and type your email address.

2)You will receive an email from telus. Follow the instruction and register
your account to setup password. Go to
http://telus.com/content/tv/optik/applications/remote-record.jsp
Update:
 https://webservices.tv.telus.net/RdvrSilverlight/RDVR.html

3) Click launch application, type your email and password. Done! you can record
your favorite TV shows fro any computer with network connection.

4) The Remote Recording application is for free.

Monday, October 24, 2011

PHP, text after apostrophe or hyphen cutoff



In some scenarios when a piece of text is pasted from Word to online visual editor, if the text contains an apostrophe or hyphen, all text that comes after the apostrophe or hyphen will not cutoff in MYSQL database. mb_convert_encoding function can be used to solve this problem:

$sql_subject =mb_convert_encoding($_POST['subject'], 'HTML-ENTITIES', 'OLD-ENCODING');
$sql_subject =ereg_replace("’", "'", $sql_subject);
$sql_subject=$addslashes(html_entity_decode($sql_subject));

’ is for  ',  mb_convert_encoding will automatically solve hyphen cutoff problem.

For using function mb_convert_encoding:
In C:/php5.3.1/php.ini, line 960, un-comment
extension=php_mbstring.dll

Thursday, October 20, 2011

Schedule backup MySQL database in Windows Server


I tried to use MySQL query browser to backup MySQL database in Windows 2003 server, but failed.
Step 1:
1) Start MySQL query browser.
2) Go to Tools ->MySQL administration, click backup, move the database you want to backup to right column
3)new project->project name: gnsh_backup, save project.
4) click Schedule: Error message: "A schedule backup requires a stored connection"
click Schedule: Error message: "A schedule backup requires a stored connection"

Step 2:
Switch using Scheduled Tasks in Windows:
1)Control Pane -> Scheduled Tasks.
2) Click "Add Scheduled Task", select backup,  daily, set name gnsh_backup,
10:10 pm every day, start date 10/20/2011, enter: user name and
password.
3) Select "open advanced window"
In Run column, enter:
"C:\Program Files\MySQL\MySQL Tools for 5.0\MySQLAdministrator.exe" "-UDC:\Documents and Settings\Administrator\Application Data\MySQL\" "-cRoot" "-bpgnsh_backup" "-btC:\sql_dumps\mysql_admin\" "-bxgnsh_
In Start Column in:
"C:\Documents and Settings\Administrator\Application Data\MySQL\

Note: Explanation of  MySQLAdministrator.exe command line:
C:\Program Files\MySQL\MySQL Tools for 5.0\MySQLAdministrator.exe" -cServer -bpProject-Name -btC:\SQLDUMP -bxDump-Name
 Note Project-Name is defined in step 1.

MySQL database is successfully backuped daily automatically.

Friday, October 14, 2011

GIMP - free photo and graphics tool


GIMP is a free photo and graphics tool. You can download GIMP from:
http://www.gimp.org/.

GIMP has full suite of paiting tools, advanced manupilation including full alpha support, layers and channels, foreground extracting tools, transformation tools including rotate, scale, shear and flip, frame navigator for animation. GIMP supports file format including bmp , gif, jpeg, mng, pcx, pdf, png, ps, psd, svg, tiff, tga, xpm, and many others, and also file formate converting. If you can not afford PhotoShop, using GIMP may be an alternative choice.

Wednesday, October 12, 2011

Remove facemoods


facemoods is a Facebook add-on for Facebook Chat that gives you a huge collection of smiley. I set google as my default homepage settings. It it is often changed to http://start.facemoods.com/.

To remove facemoods in Windows 7, go to Control Panel, then click Program, then click uninstall a program under Programs and Features,  right click Facemoods Toolbar and uninstall.

Tuesday, October 11, 2011

Transfer variables from Javascript in SWFobject to actionscript in a flash file



I am designing a flash swf file, which is used to test video connection setting in Flash Media Server. The IP address of the Flash Media Server should be passed from Javascript in SWFobject to  the actionscript in the flash file. My Javascript for SWFobject:
<div id="flashContent" class="flashContainer"></div>
   <script type="text/javascript">
   <!--//--><![CDATA[//><!--
   var so = new SWFObject("/_swf/fms_connection/settings.swf", "connection_settings", "640", "360","7");
   so.addParam("wmode", "transparent");
 so.addParam("flashvars", "fms_server=192.168.1.61&room_id='.$_SESSION['member_id'].'");   
so.write("flashContent");
   //--><!]]>
</script>

Pass variables  room_id and fms_server to the  actionscript in the flash file.
import flash.external.
ExternalInterface;

function onMouseDown():Void {
    focusManager.enabled = false;
}
function onMouseUp():Void {
    focusManager.enabled = true;
}

attachMovie("connectionSettings", "cs", 0);
var flash_id = "connection_settings"; //could retrive this dynamically with the _url param
function whereAmI(myLocation:String):Void {
    cs.myTrace("whereAmI: " + myLocation);
    cs.connect(room_id,myLocation,fms_server);
}
//don't put the swf in a form IE will crap out on ExternalInterface.addCallback
ExternalInterface.addCallback("sendToFlash", null, whereAmI);
getURL("javascript:var me=document."+flash_id+";me.sendToFlash(top.location.href);");
room_id and fms_serve are also passed to connetionSettings class, which is defined in another actionscript file.

Monday, October 10, 2011

New tags in HTML 5



1. <canvas>: This is used for rendering dynamic bitmap graphics  or games.

2. <command>: This is used for  a command button, like a radiobutton, a checkbox, or a button, only visible if it is inside a menu element.

3. <audio> is used to define sound stream

4. <datalist> defines a list of options for input, only supported by Firefox and Opera, not Chrome and IE

5.  Other new tags
 <details>
<embed>
<figure>
<footer>
<header>
<hgroup>
<keygen>
<mark>
<meter>
<nav>
<output>
<progress>
<ruby>
<section>
<time>
<video>
<wbr>

Friday, October 7, 2011

Confirmation Email sent when user submitting a Google Form


1. Go to your Google docs
2. Click the form you produced, which will be shown as EXCEL format
3. Click tools in the top menu bar, select Notification Rule
4. Check the box "A user subits a form" and check "Email-right away".  Click Save.
5. An email will be sent to me when users submit the form.
I try to setup the email notification to other collaborators when users submit the form. But I still can not find the way.

Wednesday, October 5, 2011

How well does your bowser support HTML5?



HTML 5   is the fifth revision of the HTML standard. The best browser to support  HTML5 is Google Chrome (Score 341  out of 450 for version 13).  The second is Mozilla Firefox (Score 313 out of 450 for version 6).  Even though the specification isn't finalized yet, all major browser manufacturers are making sure their browser is ready for the future.

To find out which parts of HTML5 are already supported by your browser today and compare the results with other browsers, click  http://html5test.com/index.html.

Sunday, October 2, 2011

Upgrade Flash Media Server from 2.0 to 4.5


Backup Flash Media Server (FMS) 2.0 as upgrade will remove the old version first. As I already install Apache 2.2, I do not choose install Apache 2.2 during upgrade. I only choose port 1935, but not port 80 for FMS as it is for my web server.

After upgrade, copy application directory  in FMS 2.0 to Flash Media Server 4.5. I have one extra file domainList.asc under directory scriptlib to copy. I also modify conf/_defaultRoot_/_defaultVhost_/Vhost.xml. Copy these two files to FMS 4.5. You do not need to copy these two files. Restart FMS 4.5. (In Windows, go to control panel, then click administration tools, then service and select Flash Media Server)

Server license, port and user administration information can be found in coif/fms.ini. The administration password is stored in conf/fms.ini in FMS 2.0, but not in FMS 4.5.

Flash Media Development Server 4.5


Flash Media Server can be downloaded from http://www.adobe.com/downloads/ via selecting Flash Media Server and click Go.

If you do not buy the flash media server, you still can use it. During installation, you do not input license number and the installation will be changed to Flash Media Development Server. Flash Media Development Server has the same functionality of Flash Media Server but with limited of streaming time and number of connection. It is ideal for developers. The restriction of video delivery on Flash Media Server is:
1) HTTP streaming session length is not more than 30 minutes
2) IP multicast streaming for no more than 10 minutes
3) Your server multicast plug-in will be limited to 50 multicast connections
4) Server support for RTMFP is limited to 50 connections.

The difference between Flash Media Development Server, Flash Media Streaming Server, Flash Media Interactive Server, Flash Media Enterprise Server, Flash Media Server on Amazon Web Services can be found:
http://www.adobe.com/products/flashmediaserver/helpmechoose.html