Archive

Archive for May, 2007

Installing Ubuntu the easy way

May 31st, 2007 7 comments

About a month ago I decided to give Ubuntu ( a very popular distribution of Linux) a go and try it out to see what all the fuss is about. Since I am a big fan of virtualization I decided that I would use Microsoft Virtual PC 2007 to minimize the risk. I could then install it without any chance of messing up my main Windows machine. After a bit of work, I managed to create an Ubuntu Virtual PC and almost everything worked ok.

The main issue I had was that it wouldn’t recognise my sound card on my home pc which was pretty annoying since I couldn’t listen to music or watch a dvd etc. I was convinced that the issue was with Ubuntu so I spent a while reinstalling ALSA drivers and all of sorts of Linux commands but to no avail.

I also download a VMWare Ubuntu Image in order to test that but my sound card still was not detected. While I enjoyed working with Ubuntu I wasn’t completely happy with no sound so I investigated further. I ran the Ubuntu Live CD on my home pc and I was surprised to see that my sound card was actually recognised then. So, it turned out to be the virtualization technology that could not recognize my sound card and not Ubuntu. So this left me with only one solution, install Ubuntu on my PC and dual boot with Windows XP.

I didn’t want to take the chance with the full Ubuntu install while trying to protect my Windows XP setup. The thought of partitioning my drive and messing with boot loaders didn’t really inspire me with confidence. I had come across Wubi a while back on Lifehacker and I decided to give it a try. Wubi allows you to install Ubuntu from within Windows using a familiar Windows installer interface and if you ever want to remove Ubuntu you can just run the uninstaller from within Windows. Pretty neat.

Below I describe step by step how to install Ubuntu using Wubi:

1. Make a backup of any important files on your PC. (Just in case)

2. I recommend downloading the Ubuntu (Alternate) ISO file seperately, the Wubi installer will do this for you but that is just my preference. If you do download the ISO seperately, then just place it in the same folder as the Wubi installer and it will be detected automatically.
Note: Wubi uses the Alternate ISO, available at http://ftp.ussg.iu.edu/linux/ubuntu-releases/feisty/

3. Run the Wubi Installer, and you will see the following screen. (Don’t click Next yet)

wubi-main

4. Before you do anything, click on the Settings button and modify the settings based on your preferences. Since Wubi installs your Ubuntu system to a virtual disk file you can could which drive to install it on. Don’t worry it doesn’t do any partitioning or anything.

wubi-advanced

System Size: This will be size of your system disk where all Ubuntu applications will be installed to, if you plan of installing plenty of software then you will need to allow plenty of space for this drive.
Home Size: This is the size of your local folder where you personal preferences are stored.
Swap Size: This is the size that you wish to allocate to your swap file ( if you don’t know what this is then leave it at the default).
Installtion Drive: This is the drive where you want to intall the Ubuntu virtual disk drives to, it shows the space that you will have remaining on that drive based on your settings.
Keyboard: Your keyboard preference
Desktop Environment: Choose Ubuntu

Once you are happy with your settings, click the Next button.

5. Enter your preferred language, username and password and click Next

The installer will proceed to install the necessary support files prior to the Ubuntu installation.

6. When prompted to reboot, then choose Reboot Now and click Finish.

wubi-reboot

7. Once you PC reboots, the actual Ubuntu installation will begin.

8. Proceed with the installation selecting defaults where you are unsure of the selection.

9. When you boot up your computer from now onwards you will be given the option to choose either Windows XP or Ubuntu.

The installation went very smooth for me and now I am happily using Ubuntu for web browsing, watching DVDs, listening to music, blogging, etc.
There is the odd time that I have to boot into Windows to use some application for which I don’t have an equivalent in Ubuntu.

I plan to do a few more posts in the near future about Ubuntu v’s Windows XP (application by application) and also some posts about writing .NET code from within Ubuntu using the Mono Project.

Categories: Ubuntu Tags:

Irish Microsoft Technology Conference

May 30th, 2007 2 comments

The Irish Microsoft Technology Conference will be held in Dublin on June 7th and will host a wide range of speakers including Tim Sneath from Microsoft. The sessions will cover topics such as:

  • Building Silverlight Applications using .NET
  • Visual Studio “Orcas” and AJAX
  • Microsoft Expression Studio
  • SDLC the Team System way

and lots more. Here is the full agenda.

The conference is organised by MTUG (Microsoft Technology User Groups of Ireland) and IrishDev.com in association with Microsoft Ireland.

The price of the conference is only EUR50 including lunch. You can’t really beat that!

Categories: .NET, Software Development, Web 2.0 Tags:

MTUG Cork Event was great

May 29th, 2007 Comments off

I attended the Agile with Team System and DB Pro event hosted by MTUG Cork on Monday night. The evening was broken into two sessions, Brendan Lawlor firstly presented “Can Microsoft Development be Agile?” which was an excellent presentation. Brendan began by describing what he meant by Agile by drawing an unexpected but excellent analogy to Zara (an agile company in the clothing industry). He then proceeded to show how his company (Decare) has implemented the agile methodology using Microsoft Team System taking advantage of continuous integration, unit testing and refactoring capabilities built in. I really enjoyed the talk especially since I am an ethusiastic CruiseControl.Net /Nant / NUnit user for the past two years.

The second session was entitled “Introducing your Database Objects to the Agile Process Using Microsoft Visual Team System” presented by Alan Crowley. Alan explained how with the emergence of Visual Studio Team Edition for Database Professionals that the database has really been integrated into the software development process. Database scripts and schemas are now treated as a standard artifact and can be subject to the same processes as regular code, including source control, refactoring and unit testing. It really showed that Microsoft have put some thought into how to bring in the work of the DBA or SQL Developer into the software development process.

Overall time well spent with two very interesting sessions. Looking forward to more MTUG Cork sessions in the near future. Thanks to Joe Gill as ever for organising everything.

Categories: .NET, Software Development Tags:

Google to buy Feedburner

May 24th, 2007 2 comments

Techcrunch is reporting that Feedburner is to be bought out by Google. I use Feedburner on this blog to track usage and stats on my rss feed. It is a very popular service amongst bloggers so I’m not surprised that Google has decided to purchase them. It will be interesting to see how the service changes over the next months, will it be rebranded, will the service offering expand ? We’ll have to wait and see.

$100 Million Payday For Feedburner – This Deal Is Confirmed

Feedburner is in the closing stages of being acquired by Google for around $100 million. The deal is all cash and mostly upfront, according to our source, although the founders will be locked in for a couple of years.

Categories: Blogging, RSS, Web 2.0 Tags:

What is your backup strategy?

May 24th, 2007 3 comments

Backing up your important files is something everyone knows that they should do but not too many people actually do it. My backup strategy at the moment consists of regularly burning DVDs or copying files to my portable HDD. Definitely far better that not backing up at all but not exactly bullet proof. I am a firm believer that you should try and automate as much as possible because when things are left to humans they don’t always get done.

I have looked into online backup solutions, especially www.mozy.com where you download a client to your PC and it continually backs up your stuff. The main issue I have with an online solution is security. Mozy say that they use 128-bit (during transport) and 448-bit Blowfish encryption (on our server) so it sounds pretty secure. So maybe I would be willing to backup my digital photos but I would still be a bit slow to backup any files which I don’t want other people viewing (letters, documents, source code, etc.) Obviously there are huge benefits of the online backup strategy, your data backup is held offsite for one.

Another online storage solution is www.box.net – they have just released an MS Office integrated toolbar to allow you to save your documents directly online.

What is your current backup strategy? Do you use an online backup solution and if so do you worry about security ?

Categories: General, Windows Tags:

Download previous versions of popular apps

May 19th, 2007 2 comments

Sometimes you just need to get your hands on a previous version of a popular software application but it is no longer available from the official website. Take for example, web browsers, let’s say that you had to test your new website on Internet Explorer 5. If you go to Microsoft’s download section you will only be able to download Internet Explorer 7 at this stage. Well if you head over to http://www.oldversion.com/ then you can download all the previous versions of many of the world’s most popular applications. Take Internet Explorer for example, you can download versions of it right back to version 1.0 (that’s going back a while now).

I just took Internet Explorer as an example (I’m an avid Firefox fan) there are many other popular apps on the site.

Categories: Windows Tags:

Preventing Cross Site Scripting (XSS) Attacks

May 18th, 2007 Comments off

If you are developing real world ASP.NET applications then security is something that you should be concerned about. How do you make your site or application is tamper proof but still make it flexible enough from an end user point of view ?

In order to make your web application more secure then you should take a look at the Microsoft Anti-Cross Site Scripting Library

Also, to learn more about preventing Cross Site Scripting in general there is a good MSDN Patterns and Practices article available at How To: Prevent Cross-Site Scripting in ASP.NET

Categories: .NET, security, Web 2.0 Tags:

Multiple email addresses for one Gmail Account

May 12th, 2007 50 comments

I’m a huge fan of Google’s online applications: GMail, Google Reader, etc. One little known feature of GMail which I find myself using over and over again is the ability to add extra metadata to my gmail email address to let me know where the email came from.

Let’s say that I have a gmail address: sean@gmail.com

Now if I am signing up for a newsletter at XYZ Corp. I can register with the email address sean+xyz@gmail.com You can put in any extra alphanumeric information after the plus sign and it still gets delivered to sean@gmail.com. Furthermore you can apply a filter in Gmail to process the email a certain way based on the email address that you signed you for (sean+xyz@gmail.com).

One handy use of this feature is to track where emails are coming from so if you started to get spammed for instance you will know which address was passed onto a third party.

Categories: General Tags:

Configuring Source Control Provider in Visual Studio.NET 2003

May 10th, 2007 4 comments

I am working on moving a .NET 1.1 App (Visual Studio.NET 2003) from Visual SourceSafe to Perforce Source Control. In Visual Studio.NET 2005 it is easy to change the source control provider by going to Tools -> Options -> Source Control -> Plug-in Selection. Unforunately in Visual Studio.NET 2003 it is not quite so straightforward and it isn’t possible to change the source control provider directly from the IDE. You need to modify the registry to actually change the source control provider in Visual Studio.NET 2003. I found a nice little application (Source Control Provider (SCP) Selector) that sits in your system tray that allows you to change the source control provider just by selecting the appropriate one from a list. It worked a charm for me!

Source Control Provider (SCP) Selector

http://www.kilic.net/weblog/archives/000183.html

Update: You will need to restart Visual Studio once you change your source control provider, it isn’t sufficient to just close and open the new solution.

Categories: .NET, Software Development Tags:

My RSS Feed fixed at last

May 8th, 2007 2 comments

For a few weeks now my rss feed on this blog was not working and it took me a while to track down the problem. When I ran the feed through the feed validator it reported that the feed was being returned as text/html as opposed to text/xml.

After alot of testing and trying to track the issue down, it eventually turned out to be due to a wordpress plugin that I installed a while back to do syntax highlighting called WP-dp.SyntaxHighlighter. It did the trick with the syntax highlighting for code snippets but it totally messed up my rss feed. In order to fix the feed I deactivated the plugin and began the search for a similar plugin which wouldn’t mess up the rss feed. I have just installed the WP-Syntax plugin as a replacement code syntax highlighter plugin and it works a treat without breaking my rss feed.

Categories: Blogging, Wordpress Tags: