Archive for the ‘Geek Technical Talk’ Category

Getting Flash to Validate

Thursday, February 21st, 2008

I don’t know about you, but I am a validation junkie. If my website code doesn’t validate I get the shakes, cold-sweats, sometimes get delusional, and get angry for no reason. I really do not understand why embed is even used, well sure it’s a small neat code to throw on a website, but anyone can easily modify the code to w3c standards. If I can do it why can’t the big boys do it too?

Here is how I put flash embeds on my website. We’ll use Youtube for an example.

standard Youtube embed code -



<object width="425" height="344">
    <param name="movie"
           value="http://www.youtube.com/v/50nHCo2n4Tw&hl=en_US&fs=1&">
    </param>
    <param name="allowFullScreen"
           value="true">
    </param>
    <param name="allowscriptaccess"
           value="always">
    </param>
    <embed src="http://www.youtube.com/v/50nHCo2n4Tw&hl=en_US&fs=1&"
           type="application/x-shockwave-flash"
           allowscriptaccess="always"
           allowfullscreen="true"
           width="425"
           height="344">
    </embed>
</object>

The trick to modify this code is to seperate all the embed attributes and then delete the embed tag from start to finish. Now go to your object tag and add the attribute data=”http://www.youtube.com/v/50nHCo2n4Tw&amp;rel=1″ ( anytime you see an “&” replace it with “&amp;”) and type=”application/x-shockwave-flash”. Now you can go into the “param” tags, add a backslash before the “>” delete the closing “</param>”tags. So you get something like this -



<object data="http://www.youtube.com/v/50nHCo2n4Tw&amp;amp;rel=1"
   width="425"
   height="355"
   type="application/x-shockwave-flash" >
    <param name="movie"
        value="http://www.youtube.com/v/50nHCo2n4Tw&amp;amp;rel=1" />
    <param name="wmode"
     value="transparent"/>
</object>


Here it is in action



If you want to get into more difficult codes we’ll use the Whos.Amung.Us map widget, like I have in the footer of my website. The original code looked like this -



<embed src="http://maps.amung.us/flash/flashsrv.php?k="
    mce_src="http://maps.amung.us/flash/flashsrv.php?k="get your own id"&amp;type=em.swf"
    quality="high"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    allowScriptAccess="always"
    allowNetworking="all"
    type="application/x-shockwave-flash"
    flashvars="wausitehash="get your own id"&map=green&pin=target-green&amp;link=yes"
    width="200"
    height="135" />

Now there isn’t even an “object” or a “param” tag, but that is o.k.. First thing I did was erase the black sheep “embed” tag. You only have to put the “src”,”height”,”width” and “type” in the object tag, but change “src” to “data”. Basically you will take all the attributes of the embed tag and put them in param tags like this <param name=”embed attribute” value=”embed attribute value” />.You will get something like this -



<object data="http://maps.amung.us/flash/flashsrv.php?k="get your own id"&amp;amp;type=em.swf"
    width="200"
    height="135"
    type="application/x-shockwave-flash">
<param name="src"
    value="http://maps.amung.us/flash/flashsrv.php?k="get your own id"&amp;amp;type=em.swf" /&gt;
<param name="quality"
    value="high"/>
<param name="pluginspage"
    value="http://www.adobe.com/go/getflashplayer"/>
<param name="allowScriptAccess"
    value="always"/>
<param name="allowNetworking"
    value="all"/>
<param name="type"
    value="application/x-shockwave-flash"/>
<param name="flashvars"
    value="wausitehash="get your own id"&amp;amp;map=green&amp;amp;pin=target-green&amp;amp;link=yes"/>
</object>

If you look in the footer of this web page you will see it in action.

You can check for yourself about validity –>

Valid XHTML 1.0 Transitional

PCLinuxOS an easier Linux Operating System

Wednesday, January 23rd, 2008

PCLinuxOSI’ve been thinking of switching my Operating System on my computer for quite some time. Out of all the Linux distro’s I have tried, I have found one and it’s name is PCLinuxOS.

What is PCLinuxOS? It is a Linux distro based on the very popular Mandriva family. Depending on the distribution, the desktop theme is KDE which is easy to get used to if you are coming from windows. You can download the live CD and test it out on your computer without having to install anything and the option to install is on the desktop if you choose to. I personally have Windows on another partition and basically use PCLinuxOS as an everyday operating system.

What so good about Linux? K3B – a DVD/CD authoring kit which is much better than any commercial authoring kit I have seen. Open Office – A full office suite of programs that is better than ms-office and it’s free. Synaptic – synaptic is where you can download software, Synaptic is the program for PCLinuxOS other Linux distributions have a similar program. Virus protection – you don’t need it. Linux’s architecture is set up in a way that viruses are not able to execute their malicious scripts. You do as always need a firewall. You can download a firewall program from synaptic and if you ever have any problems you can always go to their friendly forum at PCLinuxOS forum.

What should I start out with? Well I would download a live CD. Preferably PCLinuxOS 2007. If your BIOS settings are set to boot from CD then I would burn a CD or DVD ISO image and then reboot my computer then you can see how PCLinuxOS is. Who knows You might like it.

Hers is a video of what this OS can do