Category: Programming

SQLite and Swift

By , June 27, 2018 7:49 pm

I have started programming for the iPhone again and I’m always looking to new thing to help me improve my skills. Today I found a tutorial from  raywenderlich.com on SQLite. This is a really good tutorial. Check it out.

Writing an Offline Web browser for iOS

By , June 8, 2014 9:31 am

I’m work on a project for work. They need the capability to have an offline web browser to view an HTML5 document. I found a couple of good resources for using Hype and Xcode.

http://macsfuture.com/post/59921246236/embedding-a-hype-2-0-html5-project-into-an-ios-app

http://system-log.tyr.org.uk/2012/02/08/using-tumult-hype-for-ios-game-titles/ 

I’m not using PhoneGap, but if you are looking for some info check out this post

http://hype.desk.com/customer/portal/articles/608835-tumult-hype-within-ios-an-xcode-phonegap-tipsheet

Enable Virtual host on XAMPP for OSX

By , April 26, 2014 10:42 pm

I just upgraded XAMPP to the latests version and in doing so I was no longer able to access my files stored in my Users/user/Sites folder. By default XAMPP does’t come setup for allowing virtual hosting. You have to setup it up yourself. This is the process to setup Virtual Hosting on OSX 10.8.3.

  1. Open Terminal. It is located in your Applications/Utilities folder
  2. Type in the following command.

    sudo pico /Applications/XAMPP/xamppfiles/etc/httpd.conf

  3. Press Control key and V to scroll down to the bottom of the file. Keep doing it until you find the following lines.

    # User home directories
    #Include etc/extra/httpd-userdir.conf

  4. Uncomment out Include ext/extra/httpd-userdir.conf by deleting the # sign. It should look like this when you are done.

    # User home directories
    Include etc/extra/httpd-userdir.conf

  5. Save the changes. Press the Control Key and O. The click the Control Key and T.
  6. Select the httpd.conf file name and hit the Enter Key. This will over write the httpd.conf with the changes you just made.
  7. Press the Control Key and X to exit the editor.
  8. Next type in the following command in to Terminal to edit the httpd-userdir.conf file.

    sudo pico /Applications/XAMPP/xamppfiles/etc/extra/httpd-userdir.conf

  9. Find the follow line and comment it out.

    UserDir public_html

  10. It should look like this after you comment it out: #UserDir public_html
  11. Type in the following line: UserDir Sites
  12. Find the following lines and comment them out.

    <Directory “/home/*/public_html”>

  13. Add the following line: <Directory “/Users/*/Sites/”> right after the line you just commented out.
  14. Save the changes. Press the Control Key and O. The click the Control Key and T.
  15. Select the httpd-userdir.conf file name and hit the Enter Key. This will over write the https.conf with the changes you just made.
  16. Press the Control Key and X to exit the editor.
  17. Restart the Apache Server.

One Bad Apple – MobileMe

By , June 7, 2011 7:01 pm

MobileMe wasn’t one of Apples brightest moments. So yesterday at WWDC Apple introduced iCloud and the end of the MobileMe service. To prep for the transition to the cloud Apple has extended everyones MobileMe account until June 30, 2012 for free, which is pretty cool of Apple to do. Unless you are one of many user like my self that just paid for another year for the MobileMe service. I renewed my MobileMe account on May 25th.

On Apple’s Support forums a lot of people are complaining that Apple has left us out in the cold. Apple isn’t saying anything about this to anyone. If you call support they tell you you can ask for a full refund, but you will lose all your current email addresses and can’t get them back until you sign up for the iCloud service, but you might not be able to get the same addresses when you sign up for the iCloud service. So what am I to do? I don’t want to lose my address, I use it a lot.

Do you think that the people who just renewed have a valid complaint that they paid for a service that everyone is now getting for free or do you think we should stop complaining and deal with it.

I don’t expect a full refund, but I would like some type of response from Apple. Instead of letting people wonder if they are going to do anything for us. I would be happy if Apple would just tell us that “we are S.O.L. and to have a nice day”, at least we would know where we stand.

For more info about the MobileMe transition to iCloud, Apple has a little Knowledge Brief posted on their site. http://support.apple.com/kb/HT4597

WWDC 2011 Live Coverage

By , June 5, 2011 3:07 pm

Here are a few websites and twitter accounts that will be covering WWDC.
Updated: 6/6/11 @ 1:00 PM Eastern
Websites Covering WWDC

Twitter Accounts Covering WWDC

If you know of any other site or twitter feed broadcasting WWDC live tomorrow post a comment and let me know. I’ll keep this list updated until the keynote starts tomorrow.

Programming – Entering in a price of an item – Help

By , February 20, 2011 9:46 pm
I am trying to accomplish the same interface as Grocery iQ has for entering in a price of an item. They have a Table View with a custom Table View Cell. I think the custom cell has a label over a text field so the decimal is always visible. If you type in 125 it displays 1.25 on the screen. Does anybody have any idea how to do this?
One other thing I would like to know when you click on the “back button” the value entered ($1.25) is sent back to a label on the previous view. How do you do this?
Any help on either of these 2 question would be appreciated.
This is what I want it to look like.

Working on my First iPhone app!

By , February 16, 2011 11:09 pm

I started my journey almost 2 years ago, trying to learn the programming languages to write an iPhone app. It was harder than I thought. But all that time and effort has paid off. I am working on my first iPhone app now. I hope to have it in the store by the end of summer.

Now that I’m at this point I’m gonna post more stuff on my site about Objective C and iOS programming.

[ccilang=”objc”]
for (i = 0; i < zz; i++) { NSNumber *temp = [[NSNumber alloc] init]; temp = [array objectAtIndex:0]; for (j = 0; j < zz; j++) { if ([temp isGreaterThanOrEqualTo:[array objectAtIndex:j]]) { temp = [array objectAtIndex:j]; k = j; } } [sortArray addObject:[NSNumber numberWithInt:k]]; [array replaceObjectAtIndex:k withObject:[NSNumber numberWithDouble:9999.99]]; [temp release]; } [/cci]

WWDC Live Coverage

By , June 6, 2010 11:36 am

Here are a few websites and twitter accounts that will be covering WWDC.

Websites Covering WWDC

Twitter Accounts Covering WWDC

iPhone OS 4 Live Event Coverage

By , April 8, 2010 10:57 am

Here are some links for to follow Apple’s iPhone OS 4 Live event today

TUAW
Engadget
Gizmodo
MacWorld

Apple Releases iPhone 3.2 SDK – No Leopard Build, Only Snow Leopard?

By , April 3, 2010 9:59 pm

I just logged into Apple’s Developer section to download the new iPhone 3.2 SDK and to my surprise there is no build for Leopard, just a build for Snow Leopard. After digging around in the iPhone SDK Release notes I found out that Apple isn’t going to release a build for Leopard.

iPhone SDK 3.2 provides support for developing iPad applications and includes the complete set of Xcode 3.2.2 tools, compilers, and frameworks for creating applications for iPhone OS and Mac OS X. These tools include the Xcode IDE and the Instruments analysis tool among many others.

With this software you can develop applications that run on iPad using the included iPhone Simulator, which runs iPhone OS 3.2. Additionally, you can develop applications for iPhone and iPod touch, which run on iPhone OS 3.1.3. (This software does not include all of the iPhone OS 2.x SDKs.) Installing iPhone SDK 3.2 requires a Macintosh computer running Mac OS X 10.6.2 (Snow Leopard) or later.

This means if you want to write apps for the iPad you will need an Intel Mac and Snow Leopard. I would also assume that this means the new iPhone 4.0 SDK will be the same way.

Panorama Theme by Themocracy