Comment RSS Site RSS

Users

  • Register

  • Log in

    News

    Actually useful XHTML and CSS reference!

    Still using w3schools? Go to http://xhtml.com/en/xhtml/reference/ and http://xhtml.com/en/css/reference/ !

    read more | digg story

    Posted April 22, 2008 By Bryan
    Filed under: Programing, Software, Tutorials, Web, news


    Ajax image galleries

    A handful of commentaries and links to Ajax image galleries scripts, including Slimbox [lightbox] and Mootools.

    read more | digg story

    Posted By Bryan
    Filed under: Art, Design, Programing, Software, Tutorials, Web, news


    Blogger line height bug fix

    5 easy steps to get rid of the annoying line-spacing bug on your Blogger blog.

    read more | digg story

    Posted April 21, 2008 By Bryan
    Filed under: Programing, Tutorials, Web, news


    How To Make Own Wordpress Theme Part IV

    Getting closer to finishing your first wordpress theme. However there
    ’s one important thing left - sidebar. That’s right, every blog needs a well organized and user-friendly navigation. It’s actually pretty simple. We just need to call few wordpress functions and add few lines to the stylesheet :)
    read more | digg story

    Posted April 15, 2008 By Bryan
    Filed under: Design, Programing, Tutorials, Web, news


    Quick Tip - How to Connect to MySQL using Perl

    This is a Quick Tip on how to connect to a MySQL database using Perl. Even though many other languages are sneaking their way onto Perl’s turf. There is still a great demand for Perl on the web, so don’t forget one of it’s primary uses. Here’s the code:

    #!/usr/bin/perl
    use DBI;

    $database = “DATABASENAME”;
    $hostname = “db.DOMAIN”;
    $port = “3306″;
    $username = “USERNAME”;
    $password = ‘PASSWORD’;

    $dsn = “DBI:mysql:database=$database;host=$hostname;port=$port”;

    $dbh = DBI->connect($dsn, $username, $password) or die(”Could not connect!”);

    $dbh->disconnect;

    First we have to tell perl to use the DBI module. Define our variables. Then define the database information. Finally we’re able to connect to our database. This could be done in one line, but you’ll find that most people prefer to connect their scripts this way for clarity. That’s all. Thanks for reading…

    Posted April 14, 2008 By Bryan
    Filed under: Articles, Programing, Quick Tips, Tutorials, Web, Web Dev Tutorials, news




    Menu