Categories
Life Social

Good luck boys

Watch out! It's a blog fly!NY Times: ‘Mr. Sofaer says that centralized networks like Facebook are not necessary. “In our real lives, we talk to each other,” he said. “We don’t need to hand our messages to a hub. What Facebook gives you as a user isn’t all that hard to do. All the little games, the little walls, the little chat, aren’t really rare things. The technology already exists.”’

Sounds like they’re talking about creating a weblog.

Categories
Life

Agreed

Newsweek: “3-D is a waste of a perfectly good dimension. Hollywood’s current crazy stampede toward it is suicidal. It adds nothing essential to the moviegoing experience. For some, it is an annoying distraction. For others, it creates nausea and headaches. It is driven largely to sell expensive projection equipment and add a $5 to $7.50 surcharge on already expensive movie tickets. Its image is noticeably darker than standard 2-D. It is unsuitable for grown-up films of any seriousness. It limits the freedom of directors to make films as they choose. For moviegoers in the PG-13 and R ranges, it only rarely provides an experience worth paying a premium for.”

I’m not all that impressed with 3D, I can live with or without it, and to top it off it makes my wife nauseated.

If we have the choice we’ll go to the 2D version of films. I must be getting old.

Categories
Development iPhone

Rx… Redacted? RxDacted?

No, I didn’t find these pictures in a bar, ok?

Categories
Development

Debugging with Seaside

James Robertson: “People underestimate the importance of this a lot. In fact, you can find plenty of developers (including Rubyists) who will tell you that you shouldn’t debug at all; tests will do it all for you. What that really means is this: debuggers in other languages are very, very different from what we have in Smalltalk, and when you get into Seaside, it’s even more cool”

This is one of the things that bugs me about most web development. You don’t have a great debugger and folks that say you don’t need one are kidding themselves. Debuggers are great for more than actual debugging of code. You can use them to figure out the flow of your code, stepping through it to force code paths, and the like.

If I were to become a full time web developer Smalltalk would be on a very short list of choices because its’ maturity.

Categories
MLOTW

Movie line of the week answer

We have a winner!

Our big winner is Mr. Bill Lazar, congratulations Bill.

The correct answer was…

Copland

This was Sylvester Stallone’s best performance ever, in my humble opinion.

See you next Thrusday.

Categories
Social

Facebook, is it dying?

Thomas Baekdal: “There is one question that I hear all the time. Is Facebook going to last, or is it just a fad? My answer is always the same. If you are trying to find an excuse for not doing “social,” then Facebook is here to stay. But, if you ask “is Facebook going to last?” Then the answer is no; it’s already dying.”

For a lot of us Facebook dying would mean bupkis. It’s just another in a long line of social networking sites. We had BBS’es, then CompuServ, then AOL, then Xanga, then MySpace, and now we have Facebook. Here’s the thing, if you have a weblog, you have your social connector. This space is the center of my social network.

Regardless, Facebook won’t be dying any time soon. They seem to have captured the hearts and minds of the internet masses.

Categories
Apple iPad Life

There’s an iPad for that

Chuck Hollis [via Mike Rohde]: “I don’t think I’ll be buying any more desktops going forward. I don’t think I’ll even be buying any more laptops going forward.

They’ve all been largely obsoleted (at least at my home) by a sleek $499 device that doesn’t really have any right to be called a “computer” in the traditional sense.”

Go read what Chuck has to say, it’s a fun story, and I’m sure it’s being repeated all over the world. The iPad will become “the” device for a large group of people. A lot of techies will claim it’s not useful and that’s a perfectly valid assertion. It’s not useful for them, the techno-geek, but for the average person that browses the internet, or watches movies, or reads a book once in a while, it could be the perfect device.

I know for a fact an iPad would be the perfect device for my wife 99% of the time. She mostly browses her favorite sites and checks out Facebook. Once we have the entire gamut of Facebook games running on the iPad, she’ll probably want one.

Categories
Apple

Leave Apple Alone

Bloomberg (via Daring Fireball): “May 4 (Bloomberg) — U.S. antitrust enforcers are considering an investigation of Apple Inc. following a complaint from Adobe Systems Inc., according to people familiar with the matter.”

Yesterday, on Twitter, I asked “Can you develop XBox 360, Sony Playstation, or Wii apps using Flash?” There was a reason for that question. I was hoping someone would take the bait, but alas, nobody obliged. Once again I ask, can you develop XBox 360, Sony Playstation, or Wii apps using Flash? I’m fairly confident the answer is “NO.”

From the Microsoft XBox Developer site: “At this time, access to development tools for the Xbox 360â„¢ video game console is limited to developers working on approved titles for licensed publishers. This will change over time, so check back for more information in the future.”

At this time you can’t even develop for the platform. Sorry, I’m picking on Microsoft, but I’m most familiar with the XBox so it was easy to find information on developing for the platform.

Why doesn’t Adobe complain about lack of Flash support on those platforms? Money, that’s why. Adobe stands to lose money if it can’t sell it’s Flash development tools targeting the extremely successful iPhone and iPad. For some reason they’re not beating down the door at Microsoft, Sony, or Nintendo trying to get on their game platforms. They’re closed systems, but I guess gaming consoles are somehow different?

Yeah, but…

I’ve been carrying on a conversation with a co-worker about iPhone, and iPad, development and he’s not happy about Apple’s stance. He says he doesn’t have access to the platform because he has to invest in an Apple computer($599.00) and pay to join the iPhone Developer Program($99.00). For $700.00 you can develop Mac, iPhone, and iPad applications. I can see where that could be a bit intimidating, $700.00 is a chunk of change. But what does it cost to use Flash to develop on any platform? To purchase Adobe Flash Builder will set you back, that’s right, you guessed it, $699.00. Same price. There may be free tools, I don’t know, I don’t use Flash.

Why punish iPhone and iPad developers?

There’s an entire class of developers out there working hard to deliver iPhone and iPad applications, they’re using the preferred technologies, and quite a few of them are doing quite well. Hey, if a knuckle head like me can figure out how to write and publish an iPhone app, anyone can. Is Flash really a great development tool? Really? All designers aren’t necessarily developers, there are a few that bridge the gap, but not many. I’d venture to guess there is a lot of really bad Flash code running on the web today, Flash is the new Visual Basic, it gives folks something they can create with, that’s great, create away! My question is why do you feel you have to be able to write Flash code to run on the iPad or iPhone? Is there some code of ethics that says you have the right to create Flash based programs that can run everywhere? Why would someone think that? I have an idea.

If you want to create apps for the iPad or iPhone pick up a book, get a compiler, sign up to be an iPhone developer and you can create apps to your hearts content. I’m pretty sure you can create “Punch the Monkey” using Objective-C and Cocoa Touch.

I’ve rambled on long enough, have a great night.

Categories
MLOTW

Movie line of the week

Hot buttered popcorn and a movie, ahhh!Good morning movie liners. I hope I’ve picked a tough one for you, let’s find out.

Here it is, good luck!

Actor #1: See sheriff, I got a sticky problem. My jurisdiction ends, in a sense, at the George Washington Bridge. But half the men I watch live beyond that bridge, where no one’s watching.

Actor #2: I’m watching.

Ok, quick, what movie! Send your guesses here.

Categories
Development Indie iPad iPhone

C++ to Objective-C

About year ago I started looking at writing my first iPhone application. My brother and I had decided we’d finally go ahead and create an application we’d had many fits and starts on but had never finished. The code started its’ life on Palm and Windows. Back when we started I’d written the math code in portable C++ so we could use it on many different platforms.

RxCalc128x128.pngAround Thanksgiving I’d put together a prototype of our iPhone application using that C++ code. I started by creating an iPhone Cocoa View Based Application, and added my existing C++ classes to it. That was pretty simple, now to compile the code. This is where I ran into my first problem.

Say What?

The Objective-C compiler didn’t like having a mix of C++ and Objective-C. Oh, I thought that was allowed? It is. You simply need to name your source files with a .M or .mm extension instead of the standard .m for Objective-C. That was easy.

Below is an example C++ class used in an Objective-C class. The PKMath namespace is where the C++ types and classes live. PKMath::VancoBolusDose() just worked. I verified that by viewing the instance vancoBolusDose in the debugger, so I knew we were good to go with a mix of C++ and Objective-C.

- (IBAction)calculateNewHandler:(id)sender
{
	double height           = heightTextField.text.doubleValue;
	double weight           = weightTextField.text.doubleValue;
	double age              = ageTextField.text.doubleValue;
	double scr              = scrTextField.text.doubleValue;
	double peak             = peakTextField.text.doubleValue;
	double trough           = troughTextField.text.doubleValue;
	PKMath::Gender gender   =  (0 == genderSegment.selectedSegmentIndex) ? PKMath::kMale : PKMath::kFemale;
// Create an instance of a C++ VancoBolusDose. PKMath::VancoBolusDose* vancoBolusDose = new PKMath::VancoBolusDose(weight, height, age, scr, peak, trough, gender);
// Do stuff with dose here. delete vancoBolusDose; vancoBolusDose = NULL; }

So, along comes December, and I haven’t really done much with the iPhone app. I was thinking about it, but not writing much code. I wanted to mess with Objective-C more, try some things out. I decided I’d port the PKMath classes from C++ to Objective-C. It took very little time and I had the beginnings of the PKMath library used in RxCalc 1.0.

Revisiting the code example above, this is what it looked like after creating the new Objective-C version.

- (IBAction)calculateNewHandler:(id)sender
{
	double height           = heightTextField.text.doubleValue;
	double weight           = weightTextField.text.doubleValue;
	double age              = ageTextField.text.doubleValue;
	double scr              = scrTextField.text.doubleValue;
	double peak             = peakTextField.text.doubleValue;
	double trough           = troughTextField.text.doubleValue;
	PKGender gender         = (PKGender)genderSegment.selectedSegmentIndex;
// Create an instance of an Objective-C VancoBolusDose. VancoBolusDose* vancoBolusDose = [[VancoBolusDose alloc] initWith:weight :height :age :scr :peak :trough :gender];
// Do stuff with dose here. [vancoBolusDose release]; }

Apple Core Labs first product, RxCalc, was accepted in the iTunes App Store on July 4, 2009. What a great day!

appstore.pngIf you’re a Clinical Pharmacist, and perform Pharmacokinetics calculations on a daily basis you can purchase RxCalc for the very low price of $0.99.