Archive

Archive for the ‘Computers and Internet’ Category

In the beginning…

 

Crazy Driver Tile

Crazy Driver Tile

So I wanted to just get this app OUT there. Out to the Marketplace. Yeah, yeah. I started a sentence with SO. SO SUE me. Oh wait. No. DON’T do that. I really wanted that voice-to-text API in place before I published, but I knew that there would be some pain in submitting my application. And there WAS.

I got the main page laid out. I needed a settings page. And an “About” page.

http://msdn.microsoft.com/en-us/library/hh184843(v=VS.92).aspx

In order to pass certification you need a way for people to contact you. That typically goes on the About page. I was going to use a pre-made About page DLL, but it didn’t really have the exact layout that I wanted so I created my own panoramic page and put everything in there.

I figured that I NEEDED a disclaimer page. I’ve already said it (in my previous post), texting while driving is STUPID. DON’T BE STUPID! That took some doing. Not the layout, but I needed to remove that page from the history so when you’re on the main page and you hit the back button you don’t go back to the disclaimer. THAT would be stupid too. So in the main page I added this to the Loaded event. I tried a TON of other stuff, but this is what worked the best.

// Remove the disclaimer page.
try
{
 if (((App)Application.Current).RootFrame.CanGoBack)
 {
  ((App)Application.Current).RootFrame.RemoveBackEntry();
  }
}
catch (Exception)
{
 // Eat this.
}

Finding the Twitter code was painful as well. I headed down the wrong path because I didn’t realize that Twitter CHANGED their API a while back. Uh Oh. That’s a BIG NO NO Twitter. But they’re so big that they just did it and HOPEFULLY it won’t change again. So I got all the old code laid in place and NOTHING worked, so I googled with bing some more. I finally found some REST code that worked. I didn’t KNOW it was going to work, but I thought I’d give it a shot. It uses the Hammock.WindowsPhone DLL and some other C# code.

Things STILL weren’t working, but I noticed that in the TwitterSettings.cs file I needed to setup some keys and you HAVE to head to https://dev.twitter.com/, create and register your application, and THEN you can get some keys. Paste those keys into your settings and you’re good to go.

I wanted to TRY to make some money with this thing so I thought I’d put Microsoft’s Advertising control on the bottom. But you need KEYS for THAT to work too.

https://pubcenter.microsoft.com/

I tested the final release state on my phone. I had been doing this all along, but deploying the debug version. So now I ran a few smoke tests against my app just to make sure the Twitter registration was working. The disclaimer would display and then not get in your way when you wanted to exit the application. I added a few new default tweets and then deleted them. You probably saw those test tweets. Ok. Probably not. 😉

I was READY to submit my application! WOOO! Of course you can only submit your application if you’re a registered developer (but you already knew that, right?) That’s 100 bucks a year, but I got my registration for free through the “30 Days to Launch” campaign.

The first page of submission you’ve got to have ALL these other icon sizes. WHAT? Oh geez. So I brought up Pixlr and sized up the icons. They looked like crap, but I figured I’d change them later. You’ve got to answer a few questions about pricing and distribution. I selected FREE and worldwide. A few more questions and I was ready to submit.

It took a few days after submission to get a certification failure notification, because a few of the Asian countries would find my app offensive. Hmmm. Was it my disclaimer page? DON’T BE AN IDIOT! Or one of my system default tweets that has the word “damn” in it? So I removed quite a few countries. Submitted again. And the thing passed a few days later.

AWESOME!! My FIRST Windows Phone app. WOOO!!

Version 1.0 was out the door at the end of March. And I was already working on version 1.5. I figured I’d call it 1.5 because only half of the app would be “metroized”. The settings page got the metro look and a few other annoying things were taken out. The disclaimer only shows up every 10 times. The default tweet “Select default tweet…” which was actually just the first row of the default tweets was ALWAYS in the editable tweet section. So THAT got removed. As part of the “metroization” I created a modal text field which has bigger text and auto selects the entire field when it pops up. This way you can just start typing if you want to replace the default hash tags. I cleaned up some of the icons and made the horn bigger and the twitter bird smaller. Does that bird have a name? Hmmm. Since I could only find REALLY low resolution pictures of the car horn icon I created my own using Paths in Blend. So now I can scale that horn up and down at will. I’m still keeping that dashboard themed icon when pinned. I think it makes sense using that main dashboard metaphor anyway.

The submission of 1.5 was a hell of a lot easier. I knew it would be, because when I resubmitted 1.0 all I had to do was make changes to the submission and everything else stayed the same. For 1.5 I dropped in the new screen shots and icons. Loaded the new XAP file. Clicked NEXT on quite a few screens and the thing submitted and then passed certification a few days later. WOO!

Version 2.0? This still won’t have the voice-to-text in it, but the main page will be “metroized” and the default state will be using the geo-location services from Bing! Yes, you have to get yet ANOTHER application key.

So PLEASE stick with me and you’ll see the little engine that could grow into a full-fledged application.

THANKS!!

Advertisements

Crazy Driver – Don’t be an IDIOT!

Don't be an IDIOT!

Crazy Driver Disclaimer

I thought I’d post the disclaimer a bit bigger than what’s in the Windows Phone Marketplace.  Plus, many people have asked me if I had a disclaimer. Yes.  Yes I do. I certainly don’t want to get sued because people are idiots.  If you haven’t had a close call trying to “quickly” reply to a text then you WILL.  It’s just like riding a road bike (or mountain bike).  There are those who HAVE wrecked and those who WILL.  And you MIGHT just want to be wearing that helmet because you never know when you WILL.  So my close call was with a curb.  I was going pretty slow and missed it due to my video game reflexes.  BUT!  You never know when there will be a kid right there on his skateboard or running to get a ball.  So it’s good NOT to do it.I’m excited for the voice to text to be available on the phone.  Hopefully it’s SOON!  Hello?  Microsoft?

That’s why I typically launch the SMS text application FIRST and try to say everything to a new text message.  It doesn’t have to be TO anybody, just so you’re able to “talk” to your phone.  Then cut and paste the snippet(s) into Crazy Driver and let that person HAVE IT!

Of course you don’t even have to be driving.  You could be the passenger while your mom or dad is driving.  I see that quite a bit under the #CrazyDriver hashtag.  Or you could be walking to your car in the parking lot and one of your co-workers tries to run you over.  That’s a good time to let them have it too.  Sorry Raj.

So go ahead and download the app, confirm that you’re NOT an idiot, and tweet to your heart’s content.

Crazy Driver 1.0

You know how it is.  You’ve got your to-go cup of coffee and you’re blaring KBPI on the radio.  Things are going smooth until you’re out of the neighborhood and down by the post office.  Then you see him behind you.  A big old pickup racing up behind you.  Apparently poor planning on HIS part BECOMES your problem.  He SLAMS on his brakes.  DUH!  We’re at a stoplight you dumbass.  The traffic slowly starts moving again right past the Walgreens.  Yeah, they’re EVERYwhere, aren’t they?  And just as you expect, the guy behind you cuts over and passes you in the right hand lane that just opened up.  But of course HE didn’t see the other guy pull out up ahead.  I’m expecting this.  You HAVE to expect this.  And he swerves into MY lane.  I glance at his license plate “DUMBASS”.  OK.  That’s NOT what it said, but it SHOULD have.  Or at least ID10T.  You raise your hands and yell some obscenities.  They’re GOLDEN.  But nobody heard you.  The guy in front of you is already flicking his cigarette out his window and has swerved back to the right.

That’s when it hit me.  I want to push a button on my phone and through the Blue Tooth integration in my stereo the radio mutes and a digitized voice comes across the speakers.  “This is Crazy Driver, what would you like to rant?”  I say “License plate D-U-M-B-A-S-S.  Ranting why the hell did you cut me off you idiot?!”  The app thinks for a second and then fills in the appropriate fields and parses out the tweet “Why the hell did you cut me off you idiot #CO_DUMBASS #CrazyDriver.”  I glance at my screen and the tweet is scaled up so I can read it on the tweet tile.  I’m good with that since I don’t feel like stopping at the next light to add the question mark and five exclamation points (remember the disclaimer?).  I hit the tile and it’s sent.  I feel better.  Not as good as activating a 0.50 caliber machine gun on my roll cage and blowing the guy off the road, but better.

So after signing up with Microsoft’s 30 Days To Launch event I got a free developer account and was able to publish Crazy Driver.  It didn’t take a whole lot to build, because I was able to find code on the net that did the tweeting.  But there was still some learning curve.  If I got my application to certification by a certain date then I could have won a new Windows Phone, but that didn’t happen.  I have a regular development job and I was working on Mass Effect 3 too.

Not bad for my first Crazy Driver blog post.  I’ll post what I’ve learned and where you can find the oAuth code since the first snippet of code that I found didn’t work and I had to Bing again.

Kinect Driven Projectors


Wouldn’t it be cool if there was a Kinect emitter on projectors?  No?  Ok.  So let me draw you a picture.  The Kinect emits a series of dots and the processor in the Kinect hardware can detect distances using those infrared dots.  So why couldn’t the projector that is toted around from conference room to conference room have a TRUE auto-adjust feature.  You’d push a button and the legs would move to adjust the screen size and height based on un-interrupted wall space.  The keystone could be measured along with any other rotation that would be needed.  At the push of a button everything would work in harmony to produce the BEST possible picture for the wall that you want to display on.

C’mon Microsoft, get with the program!  Where’s Johnny when you NEED him?

I LIKE this font.

THIS font I like. See how it reads like book? Now doesn't that feel like
you're reading a legitimate article?

So here's what I did. I ended up editing one of the old articles that converted
from the MSN Spaces. I switched to the HTML view and took the various styles in
the tag and pasted it into notepad. I compressed each span tag into one
and saved it into my blog.html template file. I closed out that file from
notepad and dropped it into the Visual Studio 2010 that I was running at the
time. C'mon. WHO uses notepad to edit HTML anymore? Really? Sure, in a
pinch. But there are MUCH nicer editors out there. I'm not saying that VS
2010 is the BEST, but it's what I'm used to.

Technically I'm using Word as my editor right NOW. But I'll paste
this into Studio and look at the HTML Word generates, which is a whole lotta
crap and stuff that Word Press doesn't care about and will just confuse it. I
tried that already for the previous article and it just wouldn't do it for me.
So I'll use Word for that red squiggly spell checking that I'm used to, that's
about it. THEN paste it into Notepad to strip out all of the bloated HTML
that Word puts in.  Copy THAT from Notepad and paste it into Studio
to check out the HTML and make sure that WP doesn't throw up all over it and
convert my post to something that looks like crap versus what I'm seeing now in
Word.

So if the planets align correctly then you'll be seeing this post in Times
New Roman and slightly grey. See? THERE! So now I can get on with
converting a few of my game reviews out of Outlook and post them here.

I hate THIS font.

Yes.  The font you’re reading.  I HATE it.  I’m fine with the font used for editing this post.  The font I’m using right NOW is a nice serif font that looks like Times New Roman.  I like that.  It’s pleasing to read.  It looks like a book or a “real” article.  And it makes me feel like a “real” writer.  The other san serif fonts look like something you’d type up in Notepad.  Something temporary.  Like a GUID (goo-id) that you have to remember for a download so you paste it into Notepad and then save it to your desktop (or not).  And then your machine crashes during the initialization process and you had WISHED you had saved it.

See the font that’s used in the Mixed Case post?  THAT’S the font I want to use.  THOSE posts came over from the MSN Spaces and were converted straight over with the font preserved.  Maybe I have to upgrade my Word Press account in order to JUST change the font on these posts.

Why even HAVE that “Visual” tab up there if what I’m seeing NOW while I’m typing isn’t going to be exactly what’s posted?  If I were Word Press I’d change that label to “Approximate Visual”.  I even created the post below in Word.  Then saved it as HTML so I could paste it in exactly as I typed it in.  No such luck.

Unfortunately for now…  When I post this article, the font will change and it’ll look like crap.  Sorry about that.

I figured it out shortly after I posted this. Check out the LATEST article.

Let’s Hope The Mayans Were Like Programmers

So we all KNOW that computer programmers are just plain lazy.  “Oh, I’ll fix that later” is a common mantra.  Look at the Y2K problems.  Trying to save space for dates knowing full well that SOMEbody would have to fix it later.  That SOMEbody was certainly not THEM.  So the end of the world was coming at New Years of 2000.  Hmmmm.  Didn’t happen. Even now we’ve got dates in databases that will only last until 2037 because our computers aren’t big enough to handle a date since the beginning of time (AD).  “Oh, I’ll fix that later” or more to the point “I’ll be at a different job when THAT finally breaks.”  So let’s HOPE that the Mayans were like programmers and meant to fix their calendar BEFORE they were wiped out.  I mean c’mon, it’s ONLY a bunch of dates right?

And if you’re like me then you’ve already done some digging to find out what the calendar REALLY means and it just measures a cycle.  And cycles are rather nice because they just start over.  Just like a year or a day, you get another one right after the one you’re on cycles on by.