Archive for January, 2012

Manually Creating Universal Binaries for iOS

Posted by Dallas on January 13, 2012
Apple, Cocoa, Cocoa Touch, iOS, Mac, Objective-C, Programming / No Comments

Universal Binaries are a wonderful thing, and not just if you are still writing Mac Power PC code, they are just as useful in the iOS development world.

If you do any amount of iOS development, chances are you have used (in one way or another) a static library.
Usually when you use a static library you get (or compile) 2 versions.
One for the device, and one for the simulator.

This is fine until you want to add the library to your app.
If you are using the simulator and the device for testing you have to play a swapping game with the corresponding library version.

Wouldn’t it be easier if you could just have 1 version of the library and it worked on the device or the simulator without you having to make any changes?
Sounds nice? I would say so, and luckily it is pretty easy.

The first thing you need to do is open a Terminal window (don’t worry, its just 1 command)

Use the following command (replacing the library path and name, with your libraries information):

lipo -output <StaticLibraryUniversal>.a -create <StaticLibraryDevice>.a -arch i386 <StaticLibrarySimulator>.a

Thats it!

Just use the new static library file in your project and you can move between the device and the simulator without worry about anything!

Have fun.

Tags: , , , ,

Shame On Utah School Districts

Posted by Dallas on January 08, 2012
Lacrosse, Personal / No Comments

Recently there was a new state law (HB218) that was passed, part of which stated that Club sports would be allowed to use the school’s facilities (such as the Football fields, etc)

This was GREAT to hear as Lacrosse in Utah is still only a club sport, and has never been given any love by the different School Districts in Utah. I hated this as a High School player. We weren’t allowed to use the school’s fields, and we had no support from the schools. Basically we were just able to use the School’s name and that was it.

Unfortunately the Utah School Districts have found a loophole in the new law to ‘keep us away’.
The schools are saying we can use the field, but that we have to pay an exorbitant amount of money to step foot on the fields.

Davis School District is charging $1,000 PER USE!
That would be $1,000 for each practice and game.

Alpine School District wants $300 PER USE!

Obviously this is not possible for club sports.

I say SHAME on all of Utah’s School Districts!

Not all kids want to play Football, Basketball, Baseball, or Soccer.
To take the ability for the kids who decide to play other sports the right of at least playing AT THIER school, is just SAD!
These kids get no support from their schools, no recognition of their wins, and can’t even play at their schools.

The fact that the school districts are using a loophole in the new law to keep the kids away, is even more disgusting.

It makes me MAD at the school districts, and sad for the boys and girls.

If you feel the same way, I strongly suggest that you let your school district know.

Jordan School District: Patrice Johnson (Superintendent of Schools) – 801-567-8323 – superintendent@jordan.k12.ut.us
Alpine School District: Vern Henshaw (Superintendent of Schools) – (801) 610-8420 – vhenshaw@alpinedistrict.org
Davis School District: Dr. W. Bryan Bowles (Superintendent of Schools) – (801) 402-5258 – bbowles@dsdmail.net
Granite School District: Martin W. Bates (Superintendent of Schools) – (385) 646-4523 – mwbates@graniteschools.org
Salt Lake City School District: Dr. McKell Withers (Superintendent of Schools) – (801) 578-8351 – mckell.withers@slcschools.org

Your district not listed above? Find your district at: http://www.onlineutah.com/schooldistricts.shtml

View House Bill 218 at: http://le.utah.gov/~2011/htmdoc/hbillhtm/hb0218.htm

Lehi Lacrosse Varsity Assistant Coach

Posted by Dallas on January 08, 2012
Lacrosse, Lehi Lacrosse / No Comments

I am overjoyed to announce that I am the new Varsity Assistant Coach for Lehi High School Lacrosse!

I have been an avid lacrosse fan ever since I was introduced to the game at the start of my Senior year in High School.
I was introduced to the game by a very good high school friend, Andy Clark, and we both went out for the team.
Luckily for us both there were no cuts :)

I didn’t get as much playing time as I would have liked, as I got injured during pre-season practice, however my love for the game has only grown more and more.

Ever since we moved back to Utah, I have felt an even more powerful draw back to the game. It has been a great time for lacrosse in Utah, as BYU won the MCLA National Championship this last season. (MCLA: Men’s Collegiate Lacrosse Association)
I attended every home game for BYU (even in the bitter cold and snow) and made the trip to Grand Junction, Colorado for the Rocky Mountain Lacrosse Conference Championship Weekend. My wife and I made a second trip to Grand Junction to watch BYU compete during their Fall Ball season. (Fall Ball is not ‘official’ but is a way for the teams to work out their upcoming Spring season rosters, and get the players some practice and conditioning)

I had been looking at putting together a lacrosse camp for youth players featuring some professional players. I met with a couple of people at the Utah Lacrosse Association and during our discussion the idea of coaching was brought up.
So I gave it some thought, and talked to my wife, and decided that it would be something I think I would really enjoy doing.

I was lucky enough to be asked to be an assistant coach for Lehi High School (I am currently living in Lehi, UT so it works great).

We start conditioning practice on January 23, two days before my 30th birthday, and lets just say I am STOKED!

Some quick history on lacrosse for those who don’t know:
Lacrosse is the oldest sport.
It was originally played by the Native Americans, and is called ‘The Creators Game’.
Lacrosse has always been the National Sport of Canada. It has only been in the relatively recent past that Ice Hockey was added as the winter sport and lacrosse as the summer sport.
Lacrosse is really big back east (North East specifically) and growing back in the West more and more.
It is the fastest growing sport in America, and is known as ‘The Fastest Game On Two Feet’.