Beatdigital

Websites made easy...

  • Increase font size
  • Default font size
  • Decrease font size
Home Articles
Development

Connecting Joomla! and windows live writer.

E-mail Print PDF

I just installed the movable type api pluggin for Joomla. I'm writing this message with windows live writer.

The setup was fairly simple, here are the steps.

  1. Download the Moveable Type API Plugin http://www.joomler.net/component/option,com_docman/task,doc_download/gid,101/Itemid,2/
  2. Go to Extensions > Plugin Manager and enable the Plugin
  3. Download and install Windows live writer from http://get.live.com/writer/overview
  4. When you open windows live writer the setup wizard is self explanatory. The only thing you need to remember is to set it to the movable type api.

Read 0 Comments... >>
 

Simple Javascript Syntax Quick-Reference

E-mail Print PDF

Shorthand Conditional (If, Then Statement):
condition ? true : false

ex:
window.location == "http://google.com" ?
alert("you are at google.com!")
: alert("you are not at google.com :(");


Multiple Variable Declaration:
var variable1, variable2, variableN;

ex:
var myCat, myDog, myRat;


Unassigning (Deleting) a Variable:
variable = this.undefined;

ex:
myVar = this.undefined;

if (myVar) alert("myVar is still defined!");


Variable Assignment Across Multiple Lines:
var name = "text \
more text \
end of text";


ex:
var myString = "my string \
more string \
more string";

alert(myString);


Another Multi-line String (Heredoc):
var variable = (<r><![CDATA[
content
]]></r>).toString();

ex:
var myHeredoc = (<r><![CDATA[
An unaltered
multiline string!
]]></r>).toString();

alert(myHeredoc);


Read 0 Comments... >>
 

Adding the PDT plug-in in Flex-Builder-3

E-mail Print PDF

  1. Open Flex-Builder and choose from the menu Help->Software Updates->Find and Install.
  2. Select "Search for new features to install" and click Next.
  3. Click on "New Remote Site", enter a name (e.g. PDT) and paste, in the URL section, the following address: http://download.eclipse.org/tools/pdt/updates .
  4. Select two checkboxes:
    1. Europa Discovery Site and
    2. PDT
    (The europa site was added so that required plugins which PDT depends on can also be downloaded.)
  5. Click Finish, choose a mirror site and wait for the search results.
  6. In the search results:
  7. Select the PDT checkbox
  8. expand the Europa Discovery Site
  9. click on "Select Required" button.
    Now all required features should be automatically selected.
  10. Click Next, Select "I accept...", click Next and at last click Finish.
To see if it's installed OK, you can try File->New->Other.. and look for PHP project under PHP section,
Read 0 Comments... >>
 

Find tech jobs online

E-mail Print PDF

These are sites that will get you going

 

https://www.getafreelancer.com/
http://www.odesk.com/w/
http://forums.australianinfront.com.au/ShowForum.aspx?ForumID=22
http://www.digitalministry.com.au/
http://whirlpool.net.au/jobs/


Read 0 Comments... >>
 

Serving FLV files with IIS

E-mail Print PDF

You may have trouble serving FLV files using IIS. By default FLV is not included as one of the the MIME types and thus IIS doesn’t serve the file.

To fix this you need to do the following:

 

  • Go to the site in question in the IIS snap-in
  • Right click and open the properties for the site
  • Go to the HTTP Headers tab
  • At the bottom of said tab is a ‘MIME Types’ button which you’ll be wanting to click at this stage
  • Add a new type with the file extension .flv and the MIME type of video/x-flv.
  • Press however many ‘Yes’, ‘Apply’, ‘Finish’ or ‘OK’ buttons you need to get rid of it all…

 


Read 0 Comments... >>
 

PHP Authentication

E-mail Print PDF

Here is the script for simple php authentication, setting a session variable indicating that a user is logged in then redirecting them to the members.php page. If the login credentials are incorrect it will redirect the user to the homepage.

<?php
$username = $_POST['username'];
$password = $_POST['password'];

if( $username == 'admin' && $password == 'password' )
    {
        $_SESSION['loggedin'] = 'true';
    }

fclose($handle);

if(isset($_SESSION['loggedin']))
    {
        header('Location: member.php');
    }
else
    {
        header('Location: home.php');
    }
?>

 


Read 0 Comments... >>