Monday, June 29, 2009

On being drunk

I'm drunk. That means that I' Kanty rely yak ell. so I dot soon. ok? yes, Steph is awesome, sbu it's time for be d fow, so now it tbhe time, si kant elhy type well so much so this post is not so sgood. yes... hmm...... f=drinking is fun buy leaves my hard to advice electroni devices fo how \tpo operativ to convey my thoigbhts. an I think that's interesting as how I tyhink is fun to think about becouse it's very not drunk unless I'm drinking, in which c ase I'm drunk and ca'n't ty[e verhy wellm, so now i sjoould prob ly do bed as in bed gtheye is nothing to type on!

Sunday, June 28, 2009

Objective-C

Well I started going through the iPhone course - I've gone through 2 lectures and finished the first two assignments, and I must say - it's been pretty exciting so far. We haven't actually written anything for the phone yet, but I'm starting to learn Objective-C, which is something that I've wanted to learn for quite a while.

The last time I tried to learn it was for Phidgets - I had to write some GUI app examples for OS X and used Cocoa, which is of course written in Objective-C. The problem is that while I kind of learned the language (badly), I never really found a good primer into Cocoa, which is the class library for GUI apps on OS X (on the iPhone it's Cocoa Touch). So I never properly learned how to deal with string, numbers, array, dictionaries, etc.

Needless to say, even after one lecture, I've decided that I need to rewrite the OS X Phidgets examples...

Anyways, on to lectures 3, where I'll learn how to properly manage memory. I've always wondered how to properly use retain/release.

-Patrick

Friday, June 26, 2009

iPhone OS Development

I want to learn to write apps for the iPhone.

I'm going to follow along with the Stanford iPhone Application Programming course which is being offered for free online though iTunes U. Also, now that OS 3.0 is released, I can get access to it without having to be a paid iPhone Developer or having to sign an NDA. I might sign up for the dev program, but it's $99 and I want to make sure I will actually use it.

So - write some apps first, follow along with the course, see what cool things I can do, use the emulator, etc. And then if I want to release something to the app store I will sign up then.

The first app I want to create is something to find/control Phidgets over the network. Since the Phidget webservice has built-in Bonjour support, this could actually be pretty slick. I'm thinking something like the Jaadu interface for automatically finding Phidgets. (Jaadu is an awesome VNC app that will find computers with screen sharing turned on).

I think a Phidgets app would be really cool and slick, though I have to admit that I'm probably in a minority, as it would only appeal to people who have both an iPhone and Phidgets. Either way, I'd like to get it on the app store and see if people grab it.

-Patrick

Thursday, June 25, 2009

On setting up a new domain... Cheaply! (Part 2)

So, I have a domain, but where can I point it?

The first thing you need is an IP Address for the base hostname - ie patrickmcneil.ca. This is an A Record, and usually I would just point this at my house.

Well, I just discovered that godaddy offer free web hosting with a domain name purchase! This actually seems pretty decent - they give you 10Gb, 300Gb/month transfer, php support and 10 MySQL databases. With that, I should be able to set up anything I could want.

At this point, I have the option to set up CNAME Records, this is where you can redirect a subdomain to any hostname. ie cats.patrickmcneil.ca could redirect to icanhascheezburger.com.

This is where google apps comes in. This allows you to create CNAME records to redirect subdomains to google services. They support mail hosting, website hosting, blog hosting via Blogger and more. Through this, I've set up mail.patrickmcneil.ca and blog.patrickmcneil.ca. I also set up main.patrickmcneil.ca as a test of google sites, but I doubt I'll use it.

Now - e-mail. In order to make @patrickmcneil.ca addresses work, I need a mail server. Luckily, google supports this too. All I have to do is set my MX records to point at the google servers, and I have the gmail interface for @patrickmcneil.ca. A lot of companies do this, including mine - Phidgets Inc.

I would probably stop there, except that I just signed up for a 2 month trial of MobileME, and it supports custom hostnames too, so I pointed www.patrickmcneil.ca at a mobileme website that I created in iWeb.

Anyways, a bit complicated, but there you go - free hosting, and a domain for basiclly free.

-Pat

On setting up a new domain... Cheaply!

I've never had my own domain. The reason is simply that I haven't wanted to spend the money. I've had plenty of dyndns.org domains, which are free, and I've used those to alias my IP for remote desktop logins and such, but never my own domain name.

And then I realized: If I want a specific domain, like my name, and it's gone, I'm out of luck - and it's true: www.patrickmcneil.com is taken.

And THEN I realized: domains are only about $10/year! That's nothing! My idea of not wanting to spend the money originates about 10 years ago when domains were actually expensive and when I didn't have a credit card so I couldn't have gotten one anyways.

So anyways, I hopped on over to godaddy.ca and registered patrickmcneil.ca. It's $12/year and I got a 10% discount with the code DIGG1 (from the Diggnation podcast of course).

Now of course I need to deal with hosting for the new domain - basically you need a webserver somewhere that you point the domain at and host files/blogs/webpages/a mail server, etc.

I don't want to pay for hosting services (at the absolute minimum it's ~$5 a month and good ones start at ~$30/month - which gives you your own machine). My ISP (Shaw) doesn't want me to point my domain at my home IP address, and it's not static anyways. So what to do? Well I'll talk about that in my next post...

Monday, June 22, 2009

Starting

I'm just starting a new BLOG at my new domain - patrickmcneil.ca

It's pretty exciting to have my own domain.

-Patrick