Hackable Scriptable Programmable Cell Phone

Does such a thing exist?

I want a phone that I can script/program/hack. For example, I want to be able to have the ringer volume change at a scheduled interval.  I work in a quiet office from 9AM to 6PM.  So during that time I'd like the ringer to go to vibrate.  However, outside those hours, I'd like to the phone to go to full ring volume.  

I can probably program something like that but then you have to pay money to the cell phone company to get it on your phone.  I just want it on my phone, I don't even really want to sell it.  I could be convinced to sell it, but I wouldn't have to.

Anyway, if anyone could point me at a good phone (or carrier) that lets you script some simple actions on the phone without having to pay an outrageous fee, I'd appreciate it.

I know there are SDK's and API's available.  That's not the problem.  It's actually deploying the app on my phone.  Right now I have an LG Dare and Verizon.  AT&T is coming to our area this year so I suppose I could get and iPhone and jailbreak it, but I'd rather not.

Comments [2]

Finally Finished Battlestar Galactica

Off topic post on the TV show Battlestar Galactica.

I'm not a huge scifi fan.  I grew out of most of that in College.  But I did get sucked into Battlestar Galactica.  I don't even have cable.  I turned on TV one night (very rare thing any more) and there was a movie on NBC (you know the old network like when there used to be only 3).  And it was actually pretty good.  

The truth about most scifi is that it stinks.  I mean most of it is terrible.  Especially anything on the SciFi channel, err I mean the syfy channel (WTF?).  But this show was actually good.  The actors, the space combat everything.

So I got hooked and started watching from the beginning via netflix.  Half way through season 2 it started getting a little much.  By season 3 I was getting a little tired of the melodrama and by season 4 I was too heavily invested to quit.

Overall BS was a good show.  I think the drama was both it's best and worst feature.  

One of my coworkers complains that its too dramatic and people are too irrational.  Of course, I wonder how rational I would be if my planet just got nuked and I was on a ship running from crazy killer robots for 4 years and I drank like a fish.

The drama sometimes overshadowed the cool stuff, but what are you going to do.  BS wouldn't be the show it was without the tension from the drama.  It really was a Greek tragedy in space.  Without conflict you have no interest.  Most scifi assigns good guys and bad guys, black and white, (think star wars and star trek).  Battlestar wasn't like that.  Much more life like.  People have real interests and agendas and enemies become friends out of necessity.

I'm going on a limb here and saying that BS is the best SciFi show that CAN be made.  All the rest are either for children (Star Wars) or too preachy (Star Trek) or just plan bad (most of the rest).  

I liked the ending.  Much better than the original series.  

Rating Series:  4.5 out of 5
Rating 1st Season: 5/5
Rating Last Season: 4/5

Comments [0]

My Web Browser is the Same

I just had this thought:

My web browser works the same as it did on Vista and XP.  Yes, besides the occasional game, I don't stray outside the browser too much.

I listen to music on Pandora.  I email through gmail.  I type up (the rare) document in google documents.

I watch an occasional DVD but more often then not, when I do watch video, it's youtube or Hulu or even Netflix on demand service.

I don't write much code at home anymore.  I think I'm going through a dry spell.  

I read books on my kindle instead.  I love my Kindle.  I download books for it through my web browser.  Hmmm.

Any thought I had of building a desktop software product (other than a gamer) have just disappeared.

The corporate world will lag behind.  That world is tied to the desktop, however every year more and more enterprise software is delivered via the browser to users.  Even the venerable MS Office now has a web version.

Hmmm, what do I use my PC for besides games?  Video, my PC is my main movie watching location.  I watch less than one per week.

The most important task I can think of is movie and video storage.  Pictures and videos of my son.  Even these are backed up to Amazon right now.

Just checked smugmug.com.  Prices are:  Standard: $39.95/year  •  Power: $59.95/year  •  Pro: $149.95/year  Might be worth looking into.

The only desktop software I need at work are visual studio and sql server management studio.  And I use those to ummm..yeah develop web sites and other server based software.

The PC didn't die, it just got really small and went everywhere.  It's in your phone, TV, DVR, cable box, game console, etc.  

Upon reflection, it seems the only reason I really need a PC is to play the type of games I like.  I like to play Fallout 3 and Bioshock and King's Bounty.  These games are fun and they are just plain better on the PC.

So, just like 15 years ago, I continue to use the PC because it's my next best source of entertainment besides books.  Movies are mostly for 14 year olds.  Games surprisingly appeal to a broader audience.  Books even more so.  

So my dual core 2.9 Ghz processor and my 8 GB of ram don't do much besides run a web browser (actually about 20 instances of a web browser) with the occasional gaming workout.

Yeah, not much has changed in 15 years actually.

Comments [0]

Windows 7 - 9 out of 10

Windows 7 Rating 9/10

I just installed Windows 7 Ultimate 64 bit on my home computer.

I was previously running Vista Ultimate 32 bit.

Ultimate is a nice upgrade.  Probably what Vista should have been in the first place.

The things I like:

  • Fast startup
  • Better Organized than Vista
  • Good hardware support
  • Excellent Network features - it found my router and wireless printer and even points me to their admin pages (Wow!)
  • Driver Handling - This is FANTASTIC.  If you have drivers from previous version of Windows, chances are Windows 7 can make them work.  All my Vista drivers worked fine.  Even if the driver install (notably those from ASUS) complained about the OS version, Windows 7 took over and installed them in some kind of compatibility mode.
The things I don't:
  • The taskbar takes a bit to get used to.  For instance, you pin programs to the task bar.  So I pinned my gmail to the taskbar, but each time I clicked it, it opened a new version of gmail.  The open versions went under chrome, which isnt bad, but I was used to seeing the Inbox number in the title in the taskbar to quickly check for new mail.  I'm sure there's a setting some where to change this.
  • Power management isn't quite right.  (Sleep mode doesn't work right, possibly issue with motherboard and 64 bit OS.  Then again the sleep mode on this ASUS board has never really worked right.).  
  • Cost.  
Windows 7 is a worthy XP/Vista replacement.  We MS users finally have a modern operating system we aren't embarrassed to use.  At least 7 will shut up the Mac weanies for awhile (just kidding!).

As a side note, I installed 8 GB of memory, not because I had to but because I could.  It was the most memory my microATX motherboard could handle.  I highly recommend the upgrade with any 64 bit OS.  With the price of memory so low, you'd be foolish not to upgrade.  I paid $120 retail.  Imagine that $120 for 8 GB of ram.  Wow.

While a lot of MS technologies leave me disappointed, Windows 7 is a real gem.  I recommend that you upgrade as soon as you can.

Comments [0]

Back to Python

After much consideration, I'm going back to Python for the next game prototype.

Why?

  • I like Python
  • Python is cross platform
  • Python is also cross VM (IronPython/Jython)
  • I really like Python
I'm good at C# (and by extension Java).  I was beginning to understand Scala.  However, Python is just so darn elegant.

Now I just have to decide between pygame and pyglet.

Then again, I could go Windows only and use SlimDX (for DirectX).

Comments [0]

Scripting Tables, Views and Other Database Objects from SQL Server 2005 Database to SQL Server 2000

If you need to copy table structures between different versions of SQL Server, here is the trick to get the correct scripts.  If you simply generate the scripts by right clicking and then clicking "Script Table as" you'll get the SQL Server 2005 TSQL which Sql Server 2000 with choke on (It won't recognize the new fancy stuff in 2005).

To work around that use the following method.

In Microsoft Sql Server Management Studio:

 

  1. Select your Database in the Object Explorer
  2. Right Click, to get your context menu and choose: Task -> Generate Scripts...  ( this is the only one I know if this will work on )
  3. Click the Next button
  4. Select your DB from the list
  5. About Halfway down the options list set "Script for Server Version" to "SQL Server 2000"
  6. Next...
  7.  Select your DB objects and generate your scripts

 

 The resulting script will work in Sql Server 2000.

From:  http://social.msdn.microsoft.com/Forums/en-US/sqldocumentation/thread/98e3445d-50e3-41e1-9ee4-f79d22aedb8d

By:  WickedMonkey

 

 

Comments [0]

Aw Snap, Silverlight

Comments [0]

Silverlight? Not So Good for Intranet Apps

At my day job we develop a lot of web applications.  I don't mean web sites, I mean web applications.  The type where you fill in a lot of forms and have workflows and need reports, etc.

Our websites are the front end for our business operations.  We also code back office business processes.  These processes require somewhat complex configuration through the web interface.

We were lamenting how hard it is to get reliable AJAX going across browsers.  If you want to support IE7/IE8, Firefox, Chrome, etc you need to do a lot of work.

When Silverlight was announced, it sounded like a great replacement for standard asp.net webforms.  You use C# for the client code, no JavaScript necessary.  As long as there is a Silverlight plugin for your browser, your application willl just work.  Not only will it just work but it will work the same in every browser.  Hallelujah and Amen brother!

However, the reality is different.  Most (but not all) of our apps run on a corporate intranet.  Silverlight is designed to run in an internet environment.  Why is that important?  Data Access.

Data Access Sucks in Silverlight!

I hope thats clear enough.  Why does it suck?  Because you can't simply query your SQL Database as you did before.  You see there is no real data access layer in Silverlight.  You use web services to get all the data.  And that's understandable in an Internet environment.  But in an Intranet it makes no sense.  

Instead of querying your database you have to either use ADO.NET Entity Framework with .NET RIA Services and a DomainService class.  Or you can use ADO.NET Data Services with the ADO.NET Entity Framework.

WTF?  The Architecture Astronauts have left the stratosphere.  Here's a good example post dealing with the insanity that is .NET RIA.

Silverlight looks to be a great Flash replacement for those who need such a thing.  But I can't recommend it as a replacement to good old ASP.NET web forms.

Comments [0]

Closing the Book on My Scala Game (for now)

Scala is a wonderful language.  In fact I think I'd refuse to work on the JVM without either Scala or Jython (maybe clojure, we'll see).

However, the siren song of C# is luring me back.  It really is the most advanced mainstream development language in existence.  

The real killer app api of c# is Linq.  Linq is awesome.  Linq makes programming in c# fun. Java and c# used to be pretty darn similuar, now c# has pulled way out in front.  I think that Scala or Clojure are the only way Sun can keep up with MSFT in the language department.

Oh and if C# isn't enough for you, there's the funky functional F# which I've only played around with but found it pretty cool also.

I'll admint, I'm a polyglot.

I've been using Python to work through the project euler problems.  While I find python fantastic for small scripts (like the one's for Euler) it just can't beat C# for large projects.

Jonathon Blow (of Braid fame) makes a good case for static languanges.

2) Do not underestimate the power of statically-checked languages for large projects.  In such languages, the compiler is very much your friend.  It enables you to do huge overhauls that would be much more difficult in a dynamic language.  It works like this: you rip out all the old code, change whichever interfaces and data structures you want.  Now the program doesn't link any more and gives you a ton of compile-time errors.  But this is good -- this is how the compiler keeps track of all the tiny details for you, which functions you still need to write, which code you need to change to conform to new data structures, etc. You don't need to think about any of that stuff at all, or maintain to-do lists, or anything.  The compiler does this record-keeping for you, freeing you to think more about the actual designs and implementations.  To proceed, you just start at the top of the error list and fix the errors, one by one.  When you're back down to 0 errors, you have done everything the compiler was reminding you about.  And if you were perfect your program will now run.  (Of course in a system this complicated you probably made some bugs that you now have to fix -- but it's way, way fewer bugs than you would have in a dynamic language).

 

2a) Dynamic Language Advocates will often talk about dynamic systems being great because they give you some Cool Paradigm that you don't have with static languages (like playing around in a read-eval-print loop, or something).  But they don't seem to understand that static languages offer important paradigms, like 2) above, that are very useful for Getting Things Done.  These things may be subtle, but they are still very valuable.  The dynamic languages throw away this subtle, valuable thing for something more obvious but less valuable -- and they think they are winning.  (There are other, even more subtle things, like the confidence the programmer has in individual changes... but I won't go into those here.)  I am much more powerful as a programmer because I can rip out core parts of the code, yanking out tendrils that reach through the whole codebase (i.e. "lots of crosscutting concerns"), and I can do this without fear -- it's no big deal, everything will be back to normal in a few days.  In a dynamic language, I would be so much more worried about this kind of change that I would do it rarely or never (I would be thinking, "ohmygod I am about to fuck up the entire code base, this is going to be a disaster.") Fear of change can be very bad -- it encourages code rot, which means your code slides slowly into unmaintainability.

So C# is the choice for my next prototype.  Christopher Park used C# to create AI Wars.  So I'm in good company (I think).

Anyway I'm not entirely done with my Scala game.  I may return to it at some point.  But right now my muse has pushed me in a different direction.  So with a new prototype comes my reaquaitence with an old friend (actually I use C# everyday so it's my "best" language).

Comments [0]

Game Development in Java and Scala

So why would I use Java to develop a game?

I like Java the platform not Java the language.  A few months ago I was very interested in Scala.  I used Scala to develop a prototype hex based strategy game.

I got as far as generating the hex map, generating the tiles and generally completing all the map work.

Scala was an interesting choice.  Much better than Java.  However, I was translating all the examples from Java while learning Scala, so no doubt I could make some improvements to the code.

After completing this work, I was happy with what I had but I took a break from the project.  I wasn't sure I wanetd to push forward with a turn based strategy game at this point.  

Resources

If you're curious, there are several books about Java game development.  I subscribe to Safari Books so I had access to several.  The books are generally better than the online tutorials.  I find them more well thought out and there are also downloadable resources from the author's sites.

Great for 2D, Not Sure About 3D

I think Java is a valid choice for PC game development.  I wanted to also target Mac, so again Java would be a good choice.  I can't say if it would be great for 3D games, but it proved more than adequate for a 2D game.

For an example of a isometric 2D game in Java see freecol.  It's a freeware implementation of the classic Sid Meier game Colonization.  

IDE?

I used the netbeans IDE to develop the game.  I tried to get Eclipse set up (my preferred Java IDE) but it was just too quirky.  All though Eclipse promised more features.  My one complaint about Scala is the lack of a good IDE.  However, a good IDE is hard, so I understand that a shiny whiz bang Scala IDE isn't going to happen overnight.

Scripting?

I planned to use Jython as the scriping language of the game.  The new activity in the Jython project is rather encouraging.  My second choice was JavaScript with Rhino.  Either language should be easy enough for newbies to pick up.  

So?

My original intent was to discuss why I'm moving back to C# for game development, but in writing this article, I think I've convinced myself to keep using Java+Scala.  But that's the point.  I think C#/Pygame/Java/whatever could be used to make a pretty decent indy game.

I'm still undecided.  C# provides easy access to DirectX/Direct3D and XNA.  Java makes it easy to get on the Mac.  What I really need to decide is what's a better target platform.  Is Mono an option on the Mac?  

More research is required.

Comments [1]

About

[Insert Witty Saying Here]