Wednesday, April 11, 2007

I got a new laptop yesterday: Dell inspiron, 17" screen, core 2 duo 2.13ghz, 2gb ram@667mhz, 7200rpm serial ata drive, more 3d card than one needs unless one is playing Quake4.  Hmm, sounds like we need to install Quake4 at work for Team Building.  My previous laptop was on its 4th year of service, its 2nd round of ram and 2nd hard drive, with the 2nd one looking like it was on its way out due to more and more bad sectors being found by chkdsk.

Its amazing how fast Outlook 2007, Visual Studio 2005, etc. run with the fastest hardware Dell would currently sell me. 

 

.NET | Rant
Wednesday, April 11, 2007 12:26:41 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Sunday, April 08, 2007

I thoroughly enjoyed GrindHouse this weekend.  Surprisingly it was Jen's idea to go see it as she is also a fan of Sin City and the various Tarantino films.  While a bit long at 190 minutes I haven't enjoyed a film this much in a long time.  Not everyone will appreciate the gore filled double feature; they are chocked full of Hollywood insider nonsense.  Rose McGowan is dating Robert Rodriguez, nearly the entire cast of both films have previously appeared in Tarantino or Rodriguez films, "Zoe Bell as herself" did Uma Thurman's stunts in Kill Bill 1 & 2. Eli Roth, director of Hostel (presented by Tarantino), plays a small roll in Death Proof.  And so on, and so forth, I'd have to watch it a few more times to catch probably even half the Hollywood insider crap.

Two big successful directors with a large studio backing them and an-all star cast spoofing/praising low-budget camp horror films works despite the irony.  The fake movie trailers before and in-between the features are hilarious and may be the best part of Grindhouse. 

Sunday, April 08, 2007 10:08:24 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [1]  |  Trackback
 Wednesday, April 04, 2007

Got a PS3?  Join the Blu-Ray.com folding team, # 56895.  I'm going to let mine fold for a while to see if the team moves up the ranks at all.

http://folding.stanford.edu/

http://folding.stanford.edu/FAQ-PS3.html

http://fah-web.stanford.edu/cgi-bin/main.py?qtype=teampage&teamnum=56895

My name is "drpayne", which is also my playstation network id in case anyone is interested in beating me at MotorStorm. 

As soon as the SplitFish comes out for the PS3 I think I'll start playing FPSs competetively again, I absolutely cannot play these games (like Resistance) with a console controller.  It ain't natural.

Wednesday, April 04, 2007 2:00:24 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Tuesday, April 03, 2007

Why would you want to take something very technical, such as the Visual Studio designer environment, and put it into the hands of end users?  I suppose it depends on who your end users are.  In my case, I had a controlled group of people who needed a WYSIWYG way to design window stickers for cars, a tool with deep integration into our backend and handheld systems.  When I was given the first example background PDF I realized this was doable.  I can create an image that is exactly %print resolution% x 8.5" x 11", and my handheld ONLY supports printing at 72dpi.  Easy enough: make a background image that's 612x792 pixels.  1 pixel on screen=1 point on my printed document, and I'm on my way to creating a window sticker designer.  Here's a simple example of the beta of my new designer using the VS2005 surface:

While the Visual Studio designer surface is not Visio, it does work well for things that need to be shown in spatial relations to other things, and in some cases allows user interface design elements to be chosen after deployment, and by someone besides me.  You can see here I have the basic elements you see in VS2005: a toolbox, a property grid, and a surface I am dragging and editing controls on.  An XML file format describes the locations of various things on the form.  So, how did I build this?  Its about 6000 lines of not very straightforward code before you get into anything specific to your problem domain.  Speaking of problem domains, could you use DSL tools for this type of thing?  Maybe, but I have quite a bit of control by hosting this myself and of course I'm not distributing Visual Studio to non-programmers.  In a future project, I may look into what it would take to host the DSL tools outside of visual studio, but I expect its fairly similar to what I'm doing here.  Anyway, as far as building this, I thought I'd see if the VS Class Diagram tool could reverse engineer some relationships for me before I get into code.  No such luck:

 

 

I gave up after this point, although these are some of the most important classes,  so I'll need to invest some time into StarUML or just jump into code.  Its a long road to getting a Form to show up in designable fashion, stay tuned.

Tuesday, April 03, 2007 2:15:00 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback

I'm getting ready to bust out a series of articles on Hosting the Visual Studio Designer Surface.  Controls, Designers for Controls, drag 'n drop life, ISite, and the myriad jungle of nonsense needed to make the Property Grid do just what you want it to.

One complaint you'll hear over and over again is this: surely there must be a better way to create my controls' contract with their designer than Class and Property level attributes?

/// <summary>
/// Show a dotted line warning the sticker margin vs. the page margin
/// </summary>
[Browsable(true)]
[Description("Vertical margin size in fractions of an inch")]
[EditorBrowsable(EditorBrowsableState.Always)]
[DefaultValue(.25f)]
[DisplayName("V. Margin")]
public float VerticalStickerMargin
{
   get { return _verticalMargin; }
set
{
_verticalMargin = value;
Invalidate();
}
}

Next up, some designer classes.

 

Tuesday, April 03, 2007 1:43:26 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback

I looked into getting a new laptop for work, and I'd really like to run Vista on it since VS2005 seems to be working fine now, however, one of the applications I have to support is my good old friend the Windows CE 4.2/Compact Framework application.  Mobile Device Center only works for Windows Mobile 2003 and later systems.  Active Sync does not install or work on Vista.  Just like when CF2 came out without CE4.2 support (thankfully patched later) I'm left in the lurch.  Curse you, Microsoft, for leaving a large number of people high and dry once again.

Luckily it seems Dell can offer Windows XP if you order from the business division, which I've never thought they were able to do before.  I could always get it w/Vista and wipe it right away but what fun is that?  Maybe w/Virtualizaiton I could create an XP install for working on this one product, but  I'm not sure how much hardware Virtual PC gives you access to though.  I guess I'll be trying it on my vista desktop.

{edit: USB is explicitly not supported for performance reasons.  Guess I'm running XP until my products sunset 5 years from now?  Give me a break, Microsoft}

Tuesday, April 03, 2007 11:55:39 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback

My Monday was interesting.  The high point arrived at 9:30am when my accountants called with the lowdown on 2006 taxes, seems I saved too much $$ aside for my business taxes so Damon is getting a new laptop.  Its never good when the high point arrives so early...

I was to meet some business associates at the Brewer's Opening Day around 10:30.  I've been to games in the new ballpark before so I thought I knew how much traffic to expect.  I was to show up to cook veggie kabobs (I have a mixture and method I think is pretty good though I'm not a vegetabletarian) for the vegetarians and people who think Brats are unhealthy.  Once I got close to the stadium, it took me from 10:20 until 12:30 to go the last 4 miles.  Already super late because of this, I then follow the parking herd only to realize that all forms of parking are sold out and I have to park on National Avenue; let's just say its as far as I could be from where I needed to get to.  (For Milwaukeans: 41st and National to the East end of the North Lot, Giants 2)  So I got my out of shape self to run the 3 miles and stayed at the game for a while.

I picked my daughter up from daycare to learn she's finally done running a 105deg fever.  I got around to beating God of War 2 last night as well, they are obviously getting ready to start God of War 3 on the PS3.  I'm not sure if the ending was as satisfying as God of War but the game overall was better.

Tuesday, April 03, 2007 9:43:20 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [2]  |  Trackback
 Friday, March 30, 2007

For me, it comes down to a question of innovation and real-world improvement.  Is find . -name *cpp -exec ls {} (or similar) still the best way to find files on a computer?  If I want to know rougly how large a project is, is find . -name *java |xargs wc -l the best way to see how many lines of code the team has produced?  Is make the best way to group many files into a single logical output?  Are ex macros the best way to refactor your code?

Is James Gosling's statement that most real development is still done in emacs (Java developer's journal, July 2000)the most bullshit words to be spoken since "No one will ever need more than 640k..." ?

.NET | Rant
Friday, March 30, 2007 11:25:46 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [1]  |  Trackback
 Tuesday, March 20, 2007

I saw this first here: http://feeds.joystiq.com/~r/weblogsinc/joystiq/~3/103076806/

First, its my opinion that Microsoft absolutely did the right thing by not including HDMI when the XBox360 released.  The rollout of everything related to HDMI from a hardware standpoint has been rough and incongruent.  HDMI support in hardware (players, TVs, projectors) is only now reaching a tolerable point and would have hurt the Xbox360 when it launched.  Copyright holders are, of course, jumping up and down to get everything going over an HDCP enabled connection and the future of video and sound is HDMI 1.3 right now with its wider color depth and increased bandwidth for high definition audio.  I do hope they are making this an HDMI 1.3 device.

With the new price of $476 if you were to buy the Wireless adapter, the wireless controller/charging station, and the HD-DVD add-on your total price is $800.  Suddenly Sony doesn't look quite so crazy with the $599 PS3, do they?  Granted, you don't NEED to buy the HD-DVD drive for $199 but for $600 (HDMI Xbox+wireless controlers+120gbhd, 60GB PS3 with Bluetooth and Blu-Ray, both w/802.11) would you rather have 60gb more of hard drive space or High-def optical disc capability?

At any rate, while it may piss of the 6million existing Xbox360 customers its the right move for MSFT to make, and also in my eyes validates many of the PS3 design decisions.  It also means I may get an XBox360 to put in my home theater for Gears of War and Dead Rising now that I can (almost) get an HDMI version.

{edit: Tycho agrees with me and then some http://www.penny-arcade.com/2007/03/21/#22092}

Tuesday, March 20, 2007 12:56:35 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [1]  |  Trackback
 Monday, March 12, 2007

I dislike quoting actors and directors and the like because I generally consider them too out of touch with reality to have much to say that bears on my life or the life of anyone who doesn't live in a meticulously constructed fantasy world.  This NPR interview with Frank Miller (wrote the graphic novel the recent film "300" is based on) shows surprising clarity for "one of those hollywood people".  I'll post the same extract here as I read on The Atlasphere.  I am specifically talking about the notion of cultural equality:

From the interview:

NPR: […] Frank, what’s the state of the union?

FM: Well, I don’t really find myself worrying about the state of the union as I do the state of the home-front. It seems to me quite obvious that our country and the entire Western World is up against an existential foe that knows exactly what it wants … and we’re behaving like a collapsing empire. Mighty cultures are almost never conquered, they crumble from within. And frankly, I think that a lot of Americans are acting like spoiled brats because of everything that isn’t working out perfectly every time.

NPR: Um, and when you say we don’t know what we want, what’s the cause of that do you think?

FM: Well, I think part of that is how we’re educated. We’re constantly told all cultures are equal, and every belief system is as good as the next. And generally that America was to be known for its flaws rather than its virtues. When you think about what Americans accomplished, building these amazing cities, and all the good its done in the world, it’s kind of disheartening to hear so much hatred of America, not just from abroad, but internally.

NPR: A lot of people would say what America has done abroad has led to the doubts and even the hatred of its own citizens.

FM: Well, okay, then let’s finally talk about the enemy. For some reason, nobody seems to be talking about who we’re up against, and the sixth century barbarism that they actually represent. These people saw people’s heads off. They enslave women, they genitally mutilate their daughters, they do not behave by any cultural norms that are sensible to us. I’m speaking into a microphone that never could have been a product of their culture, and I’m living in a city where three thousand of my neighbors were killed by thieves of airplanes they never could have built.

NPR: As you look at people around you, though, why do you think they’re so, as you would put it, self-absorbed, even whiny?

FM: Well, I’d say it’s for the same reason the Athenians and Romans were. We’ve got it a little good right now. Where I would fault President Bush the most, was that in the wake of 9/11, he motivated our military, but he didn’t call the nation into a state of war. He didn’t explain that this would take a communal effort against a common foe. So we’ve been kind of fighting a war on the side, and sitting off like a bunch of Romans complaining about it. Also, I think that George Bush has an uncanny knack of being someone people hate. I thought Clinton inspired more hatred than any President I had ever seen, but I’ve never seen anything like Bush-hatred. It’s completely mad.

NPR: And as you talk to people in the streets, the people you meet at work, socially, how do you explain this to them?

FM: Mainly in historical terms, mainly saying that the country that fought Okinawa and Iwo Jima is now spilling precious blood, but so little by comparison, it’s almost ridiculous. And the stakes are as high as they were then. Mostly I hear people say, ‘Why did we attack Iraq?’ for instance. Well, we’re taking on an idea. Nobody questions why after Pearl Harbor we attacked Nazi Germany. It was because we were taking on a form of global fascism, we’re doing the same thing now.

NPR: Well, they did declare war on us, but…

FM: Well, so did Iraq.

I'm not a big GWB supporter these days but I agree with what Frank Miller is saying about culture.  The notion that we can't condemn people for holding onto barbaric practices like enslaving women and mutilating little girls because "that's their culture and no one's ideas are any better than anyone else's ideas" quite frankly has gotten old and will be the downfall of western civilization if not checked.  What's funny is that a nation like Iran or the various African nations engaging in what most of the civilized world regards as insane human rights violations can take the stage at the UN and condemn the United States for our various questionable practices.  Iran can blast the US for not sending enough troops to Darfur or something, meanwhile the world should turn a blind eye to its Barbarism.  This is why the UN is a joke in my opinion.  The international community has done a poor job of working out Standards for Participation.  You want to be in our club? (where our club is trade, assistance, etc)  You have to follow our rules, and our rules must include some fundamental standards for human rights within member nations.  The US is absolutely not without its flaws, but Murderers and dictators should not be able to take the stage at the UN to crticize civilized nations.

I'm sure I'll get blasted for this, flame on.

Monday, March 12, 2007 11:20:46 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [2]  |  Trackback
 Sunday, March 11, 2007

I am running VS2005 on Vista with the Beta of the patch that allows it to run on Vista or with some Vista specific enhancements.  I set the ide .exe to always run as administrator and cannot get over the fact that it still asks me if I'm sure every time I run it.  This is ridiculous.  Of course I could turn off UAC but part of the reason for doing this was to learn the ins and outs of what my clients will experience with Vista.

I got the Smartphone 2005 SDK and am working on a smartphone video game which will be the subject of a few posts: nothing innovative at this point but if I can leave MotorStorm alone for long enough I'll get into some interesting code.

.NET | Gaming
Sunday, March 11, 2007 5:00:51 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [2]  |  Trackback