Archive for July, 2004

CSS & other stories

Tuesday, July 27th, 2004

For the unobservant amongst you, I have modified the layout of the site. I’ve used the faux columns and negative margins tricks from A List Apart to get things looking the way I want. I’ve tested in in Firefox 0.9 (Windows & Linux), Internet Explorer 5.0, 5.5 and 6.0, and Opera 7.53 (Linux) so far, and everything seems to be working… I’ve learnt a lot about CSS and cross-browser compatibility today!

An Internet Explorer to suit your mood

One thing I used whilst testing the design was Multiple IE’s in Windows – makes testing sooo much easier.

Sci-Fi

Never really been a big fan of the Sci-Fi genre of fiction, but after re-reading my Carl Hiassen and J.K.Rowling books for the umpteenth time I decided it was time to try something new…

I’ve just finished Down and Out in the Magic Kingdom and currently reading Eastern Standard Tribe by Cory Doctorow. I’ve been pleasantly surprised by them. I think it’s because they aren’t too far fetched – they’re simply two steps beyond where we currently are – that make them so palatable.

I may have to try some more like this…

Why .NET?

Saturday, July 24th, 2004

I was speaking to Matt from LugRadio on Skype earlier today, and we got onto the topic of Mono and .NET (the Framework, not the ‘brand’ that has been badly abused).

I tried to explain to him ‘Why .NET?’ and by association ‘Why Mono?’, which prompted me to write this.

Jack of all trades…

First a little background… I regularly code in Perl, PHP, Delphi, and C#. I’ve played a little with C, C++, and Java. I’m familiar with HTML, XHTML, XML, CSS, and JavaScript. I can also do VB/VB.NET, but only under extreme duress! I’m in the process of learning Python.

So I’ve got plenty of tools to choose from when I’m writing applications, so why do I prefer developing in .NET?

Horses for courses…

That statement isn’t entirely true – I prefer coding in all of them (except VB!). Perl is my favourite for quick scripts and prototyping – I’m also learning Python for these purposes. Delphi is my preference for standalone MS Windows applications – it’s lack of runtimes elevates it above all other offerings here. For ‘public’ internet sites, PHP, Perl & CGI or mod_python will be used, mainly for cost and security.

Now, here’s why I like .NET:

Web ApplicationsASP.NET allows you to create event driven applications easily. This requires extensive JavaScript knowledge in other languages.

Web Services – .NET makes creating and consuming web services ridiculously easy. I know they can be done (relatively easily) in other languages, but in .NET they are a part of the furniture.

SecurityCode Access Security is – initially – quite difficult to get your head round. As a consequence it’s ignored by a lot of developers, but it allows very fine-grained control over who and how your code is used, and what rights your code needs to be able to execute. Authentication is built-in to ASP.NET applications.

Cross Platform – Yes, .NET only runs on MS Windows, but MS Windows runs on several platforms – PCs, Pocket PCs and SmartPhones. Combine these with
web services, and you have a killer solution.

Object Orientation – OO is very much a part of .NET.

nTier – A nice buzzword, but once you understand the concept, .NET makes it easy to implement.

Visual Studio.NET – This is a big part of why .NET works so well. I learnt ASP.NET via Notepad and the SDK, and I managed. When I moved up to VS.NET it opened up a whole new world. VS.NET is a bloody good IDE, and it makes writing applications very quick.

Note that MS Windows applciations (with the exception of consuming Web Services) are not a reason I use .NET.

To sum it up, if I look at a problem I can visualise and implement the solution in .NET very quickly. If I try to do the same in another language, I get extremely frustrated – e.g. using OO in PHP and Perl.

Snake Oil

Don’t get me wrong. .NET is not a panacea for development – it has it’s fair share of problems but due it’s extensible nature most can be remedied without involving Microsoft. A huge community – encouraged by Microsoft – has grown around it, and unlike it’s predecessors a lot of code, libraries, and utilities are released for free – either under the GPL or comparable license. There is still a lot of proprietary or shareware stuff, but some are well worth paying for. If that really rubs you up the wrong way, just remember you don’t need them to your job done.

One of my biggest problems with it is that the HTML generated by ASP.NET ‘bends the rules’, so it you are standards junkie, you will be frustrated. On the flip side is that ASP.NET adapts its output according to the capabilities of the browser.

What about Mono?

I see a lot of potential in Mono, but it’s still got a lot of ground to make up. For now you can forget about compiling your .NET code on Mono and vice versa. Cross platform (different OSes in this case) is possible, but only by using Mono on both UNIX and MS Windows.

Where I can see it getting a lot of use is powering Web Applications and Web Services. Being able to run your application backend on a UNIX or MS Windows server will appeal to a lot of current .NET developers. As far as desktop application development is concerned, it’s not currently going to win many .NET developers over – in fact I can imagine more Mono developers jumping to .NET once they’ve got to grips with the concepts.

Disclaimer (of sorts)

I’m currently certified in C#/.NET Web Applications and Web Services and studying for my MCAD and MCSD which I intend to complete before the end of this year.

Front page

Friday, July 23rd, 2004

My latest article has just gone live on Linux.com – it’s entitled ‘How to run your own yum repository’ and I’m pretty pleased with it. Feedback is always appreciated though. As Linux.com is an OSDN site, the article is listed at NewsForge as well.

My previous article ‘Introducing Screen’ has been getting a lot of traffic as well – so far it’s been been listed on:

…plus a few blogs and forums. If there are any more that I don’t know about, please let me know.

All in all, I’m fairly pleased with my first forays into ‘public’ writing, and I’m busy putting plans together for more.

Same distro, new bugs…

Monday, July 19th, 2004

…or maybe that should be ‘new distro, same bugs’?

Swapped Fedora Core 1 for 2 this weekend.

Same install procedure – although my old routine of copying the CDs to my server and installing over HTTP doesn’t work because there aren’t any boot disk images any more – so no great surprises. My standard install recipe consists of:

  1. Install
  2. Boot
  3. Disable Kudzu so my 3C905TX works :(
  4. Reboot into run level 3
  5. Edit /etc/yum.conf for my local repositories
  6. yum -y update
  7. Reboot into run level 3 again
  8. Install the latest NVIDIA drivers
  9. Reboot into run level 5
  10. Install apt from freshrpms.net
  11. apt-get install synaptic
  12. Edit /etc/fstab for my various NFS mounts
  13. Install the various mp3 codecs and plugins for XMMS and GStreamer
  14. Install Firefox + extensions

With that all done, there’s nothing exceptionally new and shiny about FC2 (apart from the fact that it’s new and shiny). It’s a bit faster (though not that noticeable on my classic Athlon 800MHz), and it’s got newer packages. Haven’t really got a strong opinion either way at the moment on the spatial nautilus thing – it works, and I’m happy with it.

As mentioned above, support for floppy boot disks has now gone, so my old HTTP installation routine no longer works. Instead they provide a bootable CD-ROM image and some PXE instructions that I’ve not looked into yet. I think PXE + rom-o-matic will be my new solution. I may have to invest some effort in Kickstart as well.

Of course there’s now another step added to my standard install: Mono, on which note:

My first Mono application – Hello World! – original, huh? This isn’t your typical hello world demo app though – it’s running against a PHP / NuSOAP based web service that I wrote and consumed.

I’ll save my commentary on Mono for another post – I’ll let you have one comment for now though: bags of potential…

And so it begins…

Friday, July 16th, 2004

My Screen article has been posted on NewsForge and LinuxOrbit.

I’ve held off submitting it to OSDir for now – instead they’ve said they’d be interested in publishing it on their site if I expand on it.

Mono day?

Friday, July 16th, 2004

I was chatting to Jono on Skype (see my contact details is you want to ‘ring’ me) earlier about various things and we got onto the topic of Mono.

We discussed the possibility of me being on the next LugRadio show to discuss it, and we both said we would go and do some research on it.

We were also discussing my first ‘article’ as I’d asked him for some advice on my writing and getting published. He recommended that I submit links to my pieces on places like NewsForge and O’Reilly so off I went to do just that…

So, I land at NewsForge, and what do I find? An article entitled “The downlow on Mono” on the frontpage and a link to another Mono article in NewsVac entitled “More than an open-source curiosity”.

Next on OSDir I found a link to the current Ars Technica column Linux.Ars (dodgy name if ever there was one!) subtitled “Mono รข?? a unified development platform”.

So, is today Mono day or what?

P.S. I’ve submitted my ‘Introduction to Screen’ article to both NewsForge Newsvac and OSDir – hopefully they’ll make it through…

Use your Palm with Fedora Core 1

Wednesday, July 14th, 2004

Finally discovered how to get my Palm Vx working with Fedora Core 1 today.

As root, enter the following:


$ chmod o+rw /dev/ttySn

Where n is the number of your serial port e.g. ttyS0 corresponds to COM1 , ttyS1 COM2, etc.

Hey presto! My sychronisation with Evolution now works!

My first ‘published’ article!

Wednesday, July 14th, 2004

OK, so it’s only ‘published’ on another site I run, but I’m pleased with it.

So, go read my article “Introducing Screen” and let me know what you think…

Re-re-re-design…

Tuesday, July 13th, 2004

Finally updated my website again… This time it’s powered by the Textpattern CMS.