Saturday, September 24, 2011

installing Arch linux

I have a Samsung N150plus netbook on which ubuntu 11.04 with unity interface was installed, but i was getting bored with the ease of ubuntu. If I want easy , I will boot up my Mac with Mac os X Lion or my windows XP machine.

So i decided to go with Arch Linux, the bleeding edge distro. As netbooks lack the optical drive i went with usb install option.

I have been using "unetbootin" for installing ubuntu etc from usb media, but somehow i was unable to install Arch using this, The error i was getting was "Boot device didn't show up after 30 seconds".
after few hours of trying to find a solution i decided to go with the old and trusted dd command.

and it worked!

The command i used was
dd if=Arch---.iso of=/dev/sdb

for Arch---.iso you need to use the Arch iso file you downloaded and for of you need to find out the id of your usb device.

Booted and installed , am now trying to get a GUI working on it, yes it boots into plain old command prompt and no GUI is installed :)

Not for the faint hearted....

Regards,
Ishan

Saturday, September 3, 2011

path to the embedded xml's in ios projects

Xml parsing is an integral part of any mobile project you will come across, 4 out of 5 projects are about parsing the xml and then using the data in one way or another.

xml's are also a great way of passing data between different platforms.

NSXMLParser is provided by the Foundation framework and is an event based parser (SAX ), though there are several free third party parsers available which perform better than NSXMLParser.

To get the xml file opened and read into the NSData variable we need to create the path to the xml file stored in the application.

It can be done as :

NSString *appDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"project_name.app/file_name.xml"];

Will post more when i'll experiment with a DOM parser in ios.

Regards,
Ishan