Archive for the ‘code’ Category

35 Years of computing time utterly defeats Rubik’s Cube

Tuesday, August 10th, 2010

Morley Davidson, John Dethridge, Herbert Kociemba, and Tomas Rokicki have officially conquered the Rubik’s Cube officially proving man greater then machine (man meaning brains telling supercomputers what to do, and machine being a small plastic toy). They also mathematically proved that…

Every position of Rubik’s Cube™ can be solved in twenty moves or less.
With about 35 CPU-years of idle computer time donated by Google, a team of researchers has essentially solved every position of the Rubik’s Cube™, and shown that no position requires more than twenty moves.

“Okay”, You think to yourself, “I’m mildly impressed. I’ve never actually solved one of those before (although I tell my children that I have). But really, how hard could it be?”

“We partitioned the positions into 2,217,093,120 sets of 19,508,428,800 positions each.
We reduced the count of sets we needed to solve to 55,882,296 using symmetry and set covering.
We did not find optimal solutions to each position, but instead only solutions of length 20 or less.
We wrote a program that solved a single set in about 20 seconds.
We used about 35 CPU years to find solutions to all of the positions in each of the 55,882,296 sets.”

If you want to feel “stupider”, er, “more stupid”, checkout cube20.org.

Here’s a bonus. This tutorial will get you started to solve your own Rubik’s Cubes.
Hey, we won’t tell your kids you had to cheat.

If you’re still not sick of Rubik’s Cubes, checkout its history here.

Theoretical antilaser developed

Saturday, July 31st, 2010

Even though the antilaser absorbs perfectly, it does so only at specific wavelengths of light, making it unsuitable for applications like solar panels that take in a broad range of wavelengths. (Other, specially engineered materials called metamaterials can perform those kinds of absorptions.) But because the antilaser can switch from absorbing to nonabsorbing just by changing the wavelength of the incoming light, it could prove useful in optical switches — for instance in futuristic computer boards that will use light instead of electrons.

Really cool stuff. Make sure you read the full article over at wired.

Stop abusing tabs. Love, Firefox

Saturday, July 31st, 2010

I remember in the early days of browser innovation when “Tabs” was becoming the big thing. No longer were you confined to awkward windows cluttering your desktop. It was a productivity booster (“Cool, I can quickly compare two products!”), and distractor inhancement (“I’ll just keep me email open in this tab…”) all wrapped into one. “Productivity” and “distractions” are two of my favorite things, and so it makes sense I would love their love child “Tabs” immensely.

As time wore on and the novelty wore off, I found myself abusing tabs. Sometimes I would leave tabs opened for days, just chewing at my system memory. Coupled with memory leaks in older Firefox builds, my computer would grind to a halt quite frequently. I constantly found myself opening a bunch of tabs to “read later” and never going back to them.

Third party solutions such as Instapaper have filled the gap to a degree for me (especially in the mobile space). However it now looks like tabs are going to get some first party love with Firefox’s new vision.

I just counted. I have 17 tabs currently open. No one is more excited then me that Mozilla is innovating in this space then I am.

Do you have any tab horror stories? Let us know on twitter @codesketch or talk back on Hacker News.

WWDC iPhone 4 WiFi issue explained

Saturday, June 12th, 2010

Neither was present at the keynote, but after seeing the video and discussing what appeared to happen, both agreed separately that the iPhone 4 was having trouble. Belanger said, “It seems more like there’s something funky with the iPhone software.” Kearney said, “My experience in the wireless space leads me to believe that there may be a bug in the firmware or the driver for the WiFi chip in the iPhone 4.” (Kearney and his group provided advice for the iPhone and iPod touch engineers, and he consulted with Apple’s WiFi chipmaker on the chip in question.)

Read the full article at arstechnica.com.

How to Jailbreak Your iPad in 5 min.

Monday, May 3rd, 2010

Before we begin, let’s get this out of the way. Codesketch is not responsible for any damage, or data loss resulting from this guide. You should always have a backup handy. Use this guide at your own risk.

This guide should have you jailbroken in 5 minutes flat. It’s pretty easy to do.


Browse to http://www.spiritjb.com/, and scroll down to the “Download” header. Click whatever Operating System you are using.

This will download a zip file. Unzip it, so that you can see the application.
For ease of use, we put it right on our desktop.

The application will open a window like this. Go ahead and plug in your iPad when it says “Please connect device”.

Once Spirit detects your iPad, the message will below the “Jailbreak” button will change to “Read: iPad (3.2) connected.”

Go ahead and press the “Jailbreak” button. It finished in about 5 seconds. As soon as it was done, my iPad automatically rebooted.

You will see a psychedelic screen with a loading bar in the middle as your iPad boots up.

Once it loads, look for the Cydia Icon. If you see this icon, success!

If you liked this article, you should follow us on twitter @codesketch!

Getting Started Programing For the iPad

Saturday, May 1st, 2010

Since the iPad uses the same SDK as the iPhone, all of the code under the hood is almost identical. Actually, when looking at the new and changed API classes, you will realize that most of them are user interface related. This is good news for us since we have already been coding iPhone.

While this tutorial is called “Hello World”, it is really much more than that. I assume you already have working knowledge of iPhone/Objective-C programming.

WHAT WE WILL BE CREATING
In today’s tutorial, I will be showing you how to create an iPad project that uses the UISplitViewController to display content in 2 separate panes. We will also be touching on some of the new design/UI patterns and giving an overall introduction to iPad programming.

Read the full tutorial here.

Ex-Adobe Employees Talk About Flash

Friday, April 30th, 2010

“Walter and I, being the lead architects for Flash Lite, we were seeing the iPhone touch devices coming out, and we kept saying ‘Hey, this is coming along,’” Icaza said in a phone interview. “You have this white elephant that everybody ignored. Half the [Adobe] mobile business unit was carrying iPhones, and yet the management team wasn’t doing anything about it.”

Read the full article here.

W.I.P. Code Editor for iPad

Wednesday, April 14th, 2010

I cannot wait for this App. Clean, syntax highlighting, well designed. I will be using my laptop less and less.

Follow his progress here.