Friday, May 2, 2008

Bike Mount Holder For iPhone By USB Fever

USB Fever, offers iPhone consumers new portable gadget for bicycles - The iPhone Bike Mount.
One can mount iPhone Bike on a steering wheel, and enjoy a good movie, browse internet or check emails while riding the bike.
Be aware not to front-brake too hard, and protect your iPhone from the elements. iPhone Bike Mount costs only $14.99 and you can order it on the USB Fever Website.

First step to order an item on the USB Fever is to register on the website the system is developed for all major browsers (e.g. Firefox, IE...), then find items if you know the exact address, you may simply type it and go and the last step you should do is just to click the icon "Buy". After making the payment, you will receive an order confirmation email from USB Fever .com and PayPal for reference.


How and when do orders to be shipped? To receive your order (by Standard International Air Mail):


  • For US/Canada, it usually takes 2-3 weeks;
  • For Europe and other countries, it usually takes 2-3 weeks;
  • For Italy, Spain and Portugal, it usually takes 2-4 weeks;
  • For South America, it usually takes 2-6 weeks;
  • For South East Asia countries, it usually takes 10~14 days;
  • For other destinations, it usually takes from 2 - 6 weeks;
  • During Peak seasons (e.g. Christmas, New Year, and Easter) or some special occasions ... it may take 1-2 weeks longer.

Security after ordering and paying for an item is important, regardless if you use credit, debit or PayPal none of your information is stored with usbfever.com. All transactions go through PayPal.


References:


http://www.slipperybrick.com/2008/04/iphone-bike-mount-watch-movies-from-your
-ambulance/

http://www.usbfever.com/index_topic.php?did=5&didpath=/5

Thursday, May 1, 2008

Goldstriker Launched 24ct Gold iPhone "Solar Star" Edition

Goldstriker International launched the new 24ct Gold iPhone "Solar Star" edition. This phone belongs to the "Elite Choice" collection by Stuart Hughes.

With the front bezel and rear logo in Gold, this beautiful phone matches Lamborghini Gallardo's Balloon white in color.

The white-and-gold color scheme looks good to the touch and it comes with updated firmware 1.1.4 as well as is unlocked for worldwide GSM use.

The Solar Star iPhone is priced up at £749.95.

Goldstriker International operates as a family run business, specializing in precious metal plating. Except from many different services Goldstriker also offers consumers a unique service of adorning items in any precious metal of their choice.

See also about Shiny iPhone here

References:

http://www.ubergizmo.com/15/archives/2008/04/iphone_solar_star_edition_from
_goldstriker.html


SQLite Adventures

With the release of OS X 10.4 (Tiger), Apple gave us developers something pretty cool called "Core Data". Core Data is an ORM tool based (at least in concept, if not in actual code) on Enterprise Objects Framework (or EOF) which was NeXT's revolutionary tool for persisting object-oriented data to a database: revolutionary, that is, back in 1993.

Now, I don't mean to slight EOF or Core Data in that statement. Both are cool tools, and are vastly superior to embedding SQL calls to a procedural API in your object-oriented code. In 1993, strongly-typed languages ruled the desktop development roost and "web development" was yet to even really exist as a defined form of programming since, for all practical purposes, 1993 was the year the web was born1.

 C and C++ were the indisputed champions of desktop application development and the arrival of Java two years later would cement the dominance of strongly-typed languages for quite some time. In 1993, weakly-typed languages had been around for a while but, for a number of reasons, were largely considered ill-suited to writing "serious" applications. NeXTStep's use of Objective-C was definitely an odd-man out in terms of desktop application development.

Things have changed quite a lot since 1993, though. Computers have gotten faster, dynamic languages like PERL, Ruby, and Python have become increasingly popular, and even most of the statically typed languages — including C++ — have gained some level of runtime introspection capability.

Probably one of the coolest approaches to object-relational mapping is the ActiveRecord design pattern. A good ActiveRecord implementation requires a dynamic language with robust type introspection which allows the object to dynamically add variables and methods to itself based on the contents of a database table.

But ActiveRecord, as cool as it is, is not ideally suited for desktop development with an embedded database because it is database table-driven. What would be ideal for embedded work is a sort-of "reverse ActiveRecord" where tables are created based on the existing attributes of objects. So, if you added a string variable to your object, it would know to add a varchar column to the table and would also know to save the contents of the variable in that column.  If there is a name for this approach, please let me know it; I've never heard one, but I suspect one exists.

Anyway, I do have a point here, and it has to do with the iPhone and SQLite. I realized yesterday while writing an article proposal on SQLite that Objective-C's dynamic nature would allow this theoretical "reverse ActiveRecord" idea to be implemented and, in fact, that it could probably be encapsulated almost entirely in a single abstract super class. Well, not technically abstract, because Objective-C doesn't support abstract classes, but that's neither here nor there.

Yesterday, I wrote a proof-of-concept version of just such a class. It has methods to create tables, insert, update, and delete data from the database as well as rollback to the last values stored in the database. It's capable of using foreign key relationships for one-to-one associations between objects and cross-reference tables for one-to-many associations represented in Objective-C by the use of arrays and dictionaries.

My code is still very rough around the edges and is definitely not production ready, but I think the concept is sound and with Core Data not being available on the iPhone, I think it's a great approach to avoid having to write tons of custom embedded SQL for each object. In fact, all you do is create a subclass, add instance variables and property declarations and you're done. You don't actually have to write any SQL to handle the persistence and there's even a mechanism to specify indices for your object's table.

I will clean up my code a little bit and put it out there for comments and feedback in the next day or so.

1 - Yes, I know that, in theory the web dates back to 1989 and in implementation dates back to 1990, but CERN announced on April 30, 1993 that the World Wide Web would be free for everyone to use, and that date (in my mind) marks the real beginning of the web as we know it.