Posts

Having fun with LaTeX

LaTeX - Pronounced Lay-tec ( as in tech ) as in don't pronounce the X like X-Ray but rather as a soft c as in tech. Ok so now we have the way to say it under control, I thought I might describe it a little. LaTeX is a document mark-up language based on Tex. ( just look this stuff up on Wikipedia cos I am too lazy tonight to starting collecting references and formatting them correctly and worrying about how the document is structured etc... ) Its all so boring - Enter LaTeX to save the day. On Fedora you can download the LaTeX plugin for Gedit and start editing your next book, thesis, report or article. Basically it provides a mark-up language not unlike that provided by MediaWiki. It lends itself nicely to multiple document type conversions as the content formatting is described rather than embedded. LaTeX takes this one step further by handling all your references inside a separate file compiled by the companion application called Bibtex. The Gedit plug-in will actually prom...

Orcon owns iServe owns Kiwiwebhost

It was announced ( http://www.iserve.co.nz/news.php ) on the 1st May that Orcon have acquired iServe. iServe are the parent company for Kiwiwebhost. It seems like a remarkable coincidence that in the days leading up to this acquisition, Kiwiwebhost rushed into upgrading their servers from php4 / MySQL 4 to php5 / MySQL 5. Besides my moaning about all the hard work I had to suddenly do to get my one osCommerce website ready for this upgrade, I am ultimately pleased that the upgrade was made. PHP5 offers so much more in terms of Object Oriented Programming ( OOP ) as well as increased security. Kiwiwebhost have also turned Register Globals off. This closes a fundamental security hole. So well done to Kiwiwebhost for implementing a large upgrade in a short period of just two days with outages amounting to less than 12 hours per server that was being upgraded.

osCommerce & Register Globals

What happens when your web host finally get's around to upgrading to php5 and MySQL 5? Here is what happened to me in order: 1. Rejoice because finally your website is hosted according to industry standards. 2. Panic because you are unprepared. 3. Worked through the night to get the website updated. In order to migrate an osCommerce website from php4 to php5 there is really only one thing you need to worry about and that's a little "feature" in php called, Register Globals. Register Globals makes every variable contained in the URL, POST, SESSION and ENVIRONMENT directly available in every script. What this means is that with register globals turned on, you can write a webform that posts a variable to a script and that script can refer to the variable in the POST by name. For example: <?php /* ** Example script to show what happens when register globals is turned on. ** ** A form will submit POST data to this website as follows: ** String $_POST['name'];...

Recycling old computers

I have an old PIII at home with 256Mb Ram and a 20Gb hard disk. Graphics is nothing to write home about and it will not support Vista or KDE 4.2. I know there are many, many blog posts on the internet that discuss this so I will simply add to the general wash. Ubuntu Server: File server with samba Apache webserver with dyndns.com ( free dynamic IP to Domain Name resolution ) - This can be useful if you are a freelance website designer / programmer and you need to publish draft websites for your clients prior to going live. Xbuntu Desktop: Install Childsplay - a very basic suite of games that are designed to develop mouse and keyboard familiarisation in a fun and easy to understand environment. - In fedora this was just as simple as, "yum install childsplay" Install the Mame Emulator and download roms for some of those neat and safe for kids arcade games that you played in the 80's at your local cornershop or arcade. If you have an XBOX controller - install the drivers...

Write .NET applications on Mono and use them in Windows

Image
I am no professional .NET developer but I thought I would have a crack at a simple application written on my Fedora 10 in the Monodevelop IDE and then run the same exe it compiles in a Windows XP. It took a while but I got there in the end and in retrospect it was not too hard. Just a few dependancies, a short forum-search for a solution to a small problem. Here is what I did: 1. Install mono, monodevelop and gtk-sharp ( GTK# ): The monodevelop IDE provides a gui designer for gtk#. So I thought I would try this out and see how I could get that working in windows too. In Fedora I just ran the following: # yum install monodevelop gtk-sharp* As usual I let yum decide dependancies for me. 2. Start monodevelop and create a new solution: Select the C# templateand then pick Gtk# 2.0 Project Under Solution name: type "tutorial" and under Name: type "myGuiApp" to create a Gtk# GUI application under the folder {$HOME}/Projects/tutorial. Click Forward and select your Targ...

Blogger Templates

I have changed the template only slightly. It seems that this default denim template also has a "wide" option. The colours and widgets remain the same. The only difference is that source code can now be read more easily as the layout will stretch with the browser.

CSS Floating Box Model

A simple floating box model example showing how to "float" div elements within another div element. This example includes boxes that float left and boxes that float right. It is easy to imagine how one could beef up the aesthetic quality of these floating boxes with rounded corners or varied background colours or patterns. The boxes used here are for demonstration purposes only. <html> <head> <title>Floating Right and Wrapping</title> <style> #maincontent { display:block; width: 600px; margin: 0px auto; } .wrapcontainer { float:left; width:600px; padding: 5px; border: 1px solid #777777; margin: 5px; display: block; font-family: arial,helvetica,sans-serif; } .sidebar-right { float: right; border: 1px solid #777777; padding: 5px; margin: 5px; display: block; width: 210px; font-family: arial,helvetica,sans-serif; } .sidebar-left { float: lef...