Flash is becoming a huge thing now adays, and if you don't have the flash plugin to your browser, then you should! A lot of sites use it and require you to have it in order to even view the site.
So, how would you go about embedding a flash video or object into your website so that all the different web browsers could see and use it? It's rather simple, just copy and paste the code into your site below and replace all the necessary options with your file, and vua-lah!
Note, you need to update both the object params and the embed params for it to work in all browsers!
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="YourFileName" align="middle" width="500" height="350">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="YourFile.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<embed src=... View In Full
When starting to develop new systems, sometimes it is good to work through it before you actually start writing it. Or maybe you run into a problem while writing a code and it's very hard to sift through it. So, the ideal solution would be to pseudo code it, or in other words, simplify writing statements in the margin.
So, comparing codes, here is what a simple script would look like that ouputs text in PHP:
<?php
print "Hello World.";
?>
It's similar in pseudo code, just without all the detailed stuff.
output Hello World
What would putting in conditions? Well my friend, here is your answer:
PHP:
<?php
$a = (String) "hello";
$b = (String) "hellos";
if($a === $b)
print "Yep.";
else
print "Nope.";
?>
Pseudo Code:
A = hello
B = hellos
IF A IS B THEN
OUTPUT Yep.
ELSE
OUTPUT Nope.
If you are firmiliar with Visual Basic, you can see the similarities between the two languages. Next I will show you a bit more advance code... View In Full
If you have been on the computer for a while, since Windows 95, then you should definitely know how to use command line! It comes in really handly when you want to start automating programs and tasks, such as performancing logging, or maybe you are trying to troubleshoot networking problems.
Here are some basics to get you started on learning some simple commands for command line that could save your sanity.
Start up command prompt by click on Start -> Run -> cmd
If you want to learn about any really basic commands in the prompt, just simply type 'help' and it will populate a nice list of commands. These commands are useful for doing IO (or file) operations, but will not help you for doing things like automating. For doing batch commands like 'net' or 'ipconfig', you need to know the command in order to use it.
For reference on all the standard batch command for A-Z, visit Microsoft's handy webpage: http://technet2.microsoft.com/WindowsServer/en/library/552ed70a-208d-48c... View In Full
Simple script to demonstrate how PHP's XML parsers work. This script simply takes a XML file, opens and reads it line for line and then updates the hit counter based on the ID inputted.
Goes over
This is a batch file that will create a performance counter log on your Windows setup with basic counters like Available memory, page faults, processor usage and disk space. Everyday it will stop the
lol last week. I know, it was weird. I had 3,000 and then I checked a day later and I had 40 more posts. I'm must just be the animal that I've been talking about :P