Archive for Technology

You are browsing the www. Michael Righi .com archives of Technology

Sudoku Cheater: My First iPhone Widget (3)

Last year while flying to the west coast I finally got around to learning how to play Sudoku. Thanks to the folks at Attaché Magazine and an unknown passenger previously seated in 11B who partially completed the puzzle before me, I was able to pick up the rules pretty quickly. Thus began my short lived fascination with the Japanese number game.

On my trip back to Pittsburgh I picked up a book filled with Sudoku puzzles to keep me occupied. By the time the flight attendants were serving beverages I was already imagining more interesting uses for the sheets of paper in the book. (Folding and throwing paper airplanes on an airplane is loads of recursive fun!)

The problem I have with Sudoku is that it’s only enjoyable the first few times that you play it. After playing a handful of games you quickly realize that every game is essentially the same. When you’re doing Sudoku you’re not so much playing a game as you are acting out an algorithm. After playing five games you get into a routine. After playing ten games your brain begins to numb itself to outside stimuli as it morphs into a slow, organic Sudoku solving machine. If you manage to solve one hundred puzzles in a row you’ll find yourself completely transformed into an oil sipping, Daft Punk listening, Sudoku solving robot. You’ll go crazy spotting Sudoku puzzles in the world around you. Phone numbers will begin to resemble Sudoku rows and you’ll catch yourself searching for the missing digit. It’s no way to live.

Although the act of playing Sudoku now bores me, I thought it would be fun to write a software application that solved the puzzles automatically. Nearly twelve months later, I finally got around to building it. The current version is implemented as an iPhone widget, although I plan on eventually developing another version that’s better suited for a typical web browser. I figured that an iPhone widget would be the most useful version as many people like to play Sudoku during their bus or train ride to work. More importantly, I was looking for an excuse to build my first iPhone widget and this seemed as good a reason as any.

If you have an iPhone or iPod Touch, navigate your way to http://www.sudokucheater.com/iphone. When I initially wrote this widget I had it perform all of the calculations on the client side within the iPhone itself. Unfortunately the iPhone’s processor isn’t fast enough to handle complex Sudoku puzzles and it was causing my iPod Touch to give up after five seconds of thinking. The current version performs the calculations on the server side which means that even the most complex Sudoku puzzle can be solved in a fraction of a second. In fact, the Ajax communication takes longer to send and receive than it takes my beefy XServe to actually solve the puzzle.

I plan on turning this application into a case study for some of the training that I conduct. The application employs a Java Servlet, JavaScript, HTML, CSS and Ajax which makes it a good candidate for study in many of my corporate training courses. Once the software is a little better tested and documented I plan on releasing the code for examination. Until then I’m eager to hear your feedback on my first iPhone widget.

December 20, 2007 @ 11:38PM EST Update:

Well that was fast. Apple has already included this widget on their list of iPhone web apps.

Randy Pausch’s Last Speech (9)

I’ve been wanting to watch Randy Pausch’s “Last Speech” for the past few weeks, and I finally had the chance this evening during my six hour stay at Dulles International. The speech was incredible. The strangers sitting around me must have wondered what I was watching that would induce fits of laughter one moment and tears the next.

My favorite theme of the speech is the metaphorical brick wall and its true purpose in life. As Randy sees it, obstacles in life exist as filters to separate the mildly interested from the truly passionate. In his words, “…brick walls are there for a reason. The brick walls are not there to keep us out. The brick walls are there to give us a chance to show how badly we want something. Because the brick walls are there to stop the people who don’t want it badly enough. They’re there to stop the other people.”

All software developers, cancer survivors, families of cancer victims, artists, students, professors, dreamers and human beings should watch this video. Set aside an hour and forty five minutes of your time and prepare to be inspired.

Seven Deadly Sins (19)

If you’re in Pittsburgh and available tomorrow (August 30th, 2007) at 3:30pm I’ll be speaking at the Seven Deadly Sins discussion being hosted at the DejaVu Lounge. I’m not quite sure how I got invited, but I’m supposed to be one of the “experts” discussing entrepreneurial mistakes that I’ve made and learned from. Actually, come to think of it, I know exactly why I was invited. Being the youngest entrepreneur on the panel I suppose I’m much closer to my mistakes than the other people speaking. I’m honored to be speaking along side Don Jones and Ron Morris, two powerhouse serial entrepreneurs with years of experience and stories to share.

Here’s the advert:

Seven Deadly Sins II: Publication Launch Event

Steer clear of common business mistakes with help from TEQ Magazine’s custom publication, “Seven Deadly Sins II,” a unique resource packed with expert business insight. Get a free, hot-off-the-presses copy when you join us for this special launch event. Hear proven business advice from an expert panel, including Don Jones of Draper Triangle Ventures, led by heavenly business legend and regional entrepreneur Ron Morris. Afterwards, indulge in cocktails while enjoying conversation with your peers.

Date: Thursday, August 30
Time: 3:30 p.m. registration, 4 - 5:30 p.m. program, 5:30 p.m. cocktails and networking
Venue: DejaVu Lounge, 2106 Penn Ave., Strip District
Pittsburgh Technology Council Member Cost: $25
Non-Member Cost: $35
RSVP: Council Events or 412.918.4229

I hope to see you there.