MikeTeo.net

A Software Technologist's Blog (Wanna Email Me?)

Archive for August, 2008

Simple iPhone Tutorial (Part 3)

Aug-31-2008 By miketeo

With the completion of Part 2, the user interface of your application is almost ready. However, it does not serve much purpose since it does not interact with the users. In this last part of the tutorial, you will add in action handlers using addTarget API and @selector to capture user actions.

Read the rest of this entry »

Simple iPhone Tutorial (Part 2)

Aug-31-2008 By miketeo

In Part 1, we have created a tutorial project, initialized the main screen with 2 tabs, and have attached a custom table view for the first tab. In Part 2, we are going to add a custom form view for the second tab.

Read the rest of this entry »

Simple iPhone Tutorial (Part 1)

Aug-31-2008 By miketeo

The iPhone developer center provides a great library of information of developing applications on iPhone. However, it assumes that the developer has some relative experience in developing applications on Cocoa. For developers like me who have decided to give iPhone development a try for the first time, there is undoubtedly a great hurdle to leap across.

I have put together this simple howto tutorial to illustrate some of the key features which I have picked from books (books on IPhone SDK development are seriously lacking at this point in time) and online materials that exist in bits and pieces all over the Internet. The illustrated features may not be the best solutions for the problems, but I believe they are rather straightforward and easier to align with my thought process (having come from a few years of development in MFC/Visual C++).

The tutorial will show you how to:

  • Create an iPhone application from an empty application template.
  • Add a 2-tabs tab control view for your main window on your iPhone screen.
  • Create a child view for the first tab which contains a Navigation bar (I use it for the title because it looks good), and a Table view.
  • Create another child view for the second tab which is basically a form-based view designed through the Interface Builder.
  • Load these two child views dynamically from their xib files.
  • Generate table cells which contain a label, and a on/off switch or a slider control through coding
  • Adding action handlers to the on/off switch controls and slider controls in the dynamically-generated table cells.
  • Capturing the changes in the states of the on/off switches and slider controls on the first tab view and display the states on the second tab view (form-based view).

Read the rest of this entry »

Installing Fedora Core 9 from Network

Aug-20-2008 By miketeo

It’s actually a straight-forward process and is good for users who are lazy to download multi-GB images for a one-time installation procedure.

  1. Go to Fedora web site and download netinst.iso for your machine architecture. For i386, the filename should be Fedora-9-i386-netinst.iso
  2. Burn this iso to a CD/DVD. Note that this is an image file. After burning, you should see folders like isolinux, etc on your CD. If you still see an iso file on your CD, that means you have not burnt the image correctly.
  3. Now boot up your machine using the CD/DVD. Select the first option on the menu.
  4. Then continue the setup process until you are prompted with the location of your installation media. Choose URL.
  5. You will be prompted to setup your network devices. Enter the settings according to your network environment.
  6. When prompted for the location of your repository, you need to enter the URL of an online repository which contains the individual RPMs. It is not the same as the Fedora image mirrors which contain only the iso images. For me, I use http://mirror.hiwaay.net/pub/fedora/linux/releases/9/Fedora/i386/os
    If you enter a wrong URL for the repository, you need to restart the setup process. Somehow, there is a bug in the installer which prevents me from correcting any error in the URL at the later stages.
  7. Continue with your disk drive partitioning. If your repository URL is correct, you will prompted to select your package groups: office and productivity, development and web servers. From then on, the setup process will be similar to a CD/DVD-based installation.

MySQL 6.0 SQL Quick Reference

Aug-20-2008 By miketeo

Due to some special circumstances, I have a few days’ worth of unnecessary time which I have spent to put together a MySQL 6.0 SQL syntax quick reference. The quick reference can be accessed here, or just follow the My Notes link on the side bar on the right.