Web Design. Development. Optimization. RSS 2.0
 Friday, October 06, 2006

So here is the status of my .NET 2.0 application conversion. I converted the 71568 lines of C# code and 38452 lines of VB code in the business object and services tier with little error. No errors really, just a few things that Visual Studio 2005 warns about that Visual Studio 2003 did not.

When I got to the web portion, I started finding lots of interesting errors. It's going to take a full day or so to go through them all.

All in all, it's not as scary a proposition as I thought. It's the kind of conversion that can be completed in a couple of days. I thought it might have required weeks before.

 

Friday, October 06, 2006 1:03:44 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
.NET | The Blogging Life | Visual Studio 2005
Del.icio.us Digg Technorati Blinklist Furl reddit
 Thursday, October 05, 2006

We have a rather large project that currently runs in ASP.NET 1.1, and we want to convert it to 2.0. Now it's not huge compared to some projects, but it's pretty big.

71568 lines of component C# code

38452 lines of component VB code

100401 lines of ASPX C# code

It should be fun seeing how the .NET conversion wizard handles this... I'll document my progress here as I go through it for the sake of posterity and the benefit of anyone else contemplating a rather large conversion.

 

Thursday, October 05, 2006 12:12:05 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
.NET | The Blogging Life | Visual Studio 2005
Del.icio.us Digg Technorati Blinklist Furl reddit
 Friday, September 22, 2006

Microsoft recently released a toolkit called Atlas at http://atlas.asp.net/

Atlas is an AJAX framework for ASP.NET 2.0. If you don't know what AJAX is, it is best described as a web programming technique where the page appears to update itself (or actually does update itself) without a full refresh of the page by the server. This can be automatic or at the request of the user viewing the page.

For instance, the up-arrow images on the left side of this page are AJAX-type controls that allow the user to alter their view of this page. This happens without a trip back to the web server.

An example of automatic updating would be a page with stock quotes embedded inside a news article (like http://www.marketwatch.com/news/story/5x12BB8tQmtNw49x3nlsrfJ?siteid=mktw&dist=TNMostRead ), and every few seconds the stock quotes update themselves with the latest values, but the rest of the page stays the same. In this case, the web browser is actually going back to the server to get a new quote, and updating a small part of the web page with the new value. The reason this is useful is that full page refreshes are slow, and annoy the user by making the page flicker or become unreadable.

For a live example of Atlas, check out the official samples page at http://atlas.asp.net/atlastoolkit/

Look at the Accordion control. As you click the headers, all other headers collapse and only the one selected is open. Or try the slider control - a control not normally available in HTML web pages. These controls are cross-browser compatible with IE and Firefox.

I saw a demo of this last week and it was very cool. http://www.msdnevents.com/ 

 

Friday, September 22, 2006 11:46:25 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
.NET | Technology | Visual Studio 2005
Del.icio.us Digg Technorati Blinklist Furl reddit
 Monday, September 18, 2006

Crank is a movie that stars Jason Statham, the lead actor from The Transporter movies. It also stars Amy Smart as his girlfriend, who I swear I know from somewhere before. But looking at her resume on IMDB, I haven't seen anything she's been in... Maybe just her name sounds familiar.

Anyways...

The movie has an interesting plot: a hitman is poisoned in his sleep, and only has an hour or two to live. He quickly discovers that adrenaline can prolong his life, so while trying to exact his revenge he keeps having to find ways to pump up his adrenaline.

OK, let's start with the good bits of this movie.

* It was funny. There were several places where the audience broke out laughing. So for an action movie, some genuinely funny moments is a nice twist. 

* The cinematography was innovative. If you want to see an example of bad cinematography, take a look at Bourne Identity 2 - the camera was jumpy, and the action sequences were blurry. I thought Crank had some interesting camera shots. In one scene, Statham runs down an alley while one of his killers is on the phone with him. He actually runs past a video projection of that person on the phone. I thought that was a cool technique I hadn't seen before.

* It delivers on the action. So I went to this movie hoping to see some fights and car chases, and that's what I got.

Now let's be honest and talk about the bad bits too:

* Some plot holes. Well, let's be honest. The guy is given a poison that should kill him within an hour. Even though he discovers that when his heart is pumping and his adrenaline is running, it reduces the effect of the poison... there were plenty of places in the movie where his adrenaline should be lower. He's sitting in a restaurant with his girlfriend having lunch --- why isn't he keeled over on the floor from the effects of this poison? Lots of driving, lots of cab rides... The times when the poison affected him were not consistent...

* The poison itself. If you're going a kill a guy, kill him. Shoot him in the head or something. But why inject him with poison and leave a DVD movie for him to learn about his impending fate? Now I guess some bad guys have a huge ego, and love torturing people a little bit or rubbing it in someone's face that they are about to die. The movie never really explains the "why" of it's central plot theme.

(Well, I guess there wouldn't be a movie if they killed him in his sleep... that's a factor.)

Anyways, this is a decent movie. See it on DVD. Or download it. 6.5 out of 10.

 

Monday, September 18, 2006 11:19:37 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
Movies
Del.icio.us Digg Technorati Blinklist Furl reddit

I wonder if anyone has done this type of analysis on the show "Deal or No Deal".

If you haven't seen it, the premise of the show is that there are 26 suitcases with various dollar amounts in side, from $0.01 to $1,000,000. The contestant picks 1 case at the beginning, and the dollar amount inside is what they're playing for. They don't get to see this amount til the end.

Then they eliminate each of the cases a few at a time, and the banker makes them offers to get them to give up "their" case. If the contestant is eliminating low dollar cases, the offer can be high. But if the contestant eliminates high dollar cases, the offer is low.

So the first thing you have to notice is that the contestant can only win one of two amounts: the amount that is in their case (determined at the start of the game), and the amount offered by the banker. The amounts in unpicked cases are not available to the player.

The other thing to notice is that (presumably) the banker has all the information while the player has none. The banker knows the dollar amount in the players chosen case, and has a computer system to tell them the statistical average amount outstanding. And this goes into how much to offer the player.

But the banker doesn't care about the statistical average - he knows what the player stands to win, he knows what's in the case. And he controls the offers. So if the player only has $10,000 in his case, the banker would be stupid to ever offer the player more than that to get them to quit.

But of course the banker needs to keep up an appearance of fairness. His offer has to be within a reasonable limit of the statistical average. For instance, if there are 5 amounts left on the board, $1,000  $100,000 $250,000 and $500,000 and the banker offers $800, it will be a bit obvious to the player and the audience what the player has in his case.

But that doesn't mean that the banker has to be at or above the average. So in the above instance, a player with $1,000 in his chosen case might get an offer of $70,000, while a player with $500,000 in his case might get an offer of $200,000.

Now this is where I'd love to see real life examples of this. Can we get copies of past shows, and see where two players both have the same amounts left and different offers? Then we can see how the offer can give the player a clue as to what is in there case.

And if anyone knows where I can find more details on how the banker calculates the offer, put a link in the comments.

 

Monday, September 18, 2006 9:59:12 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
 Tuesday, September 12, 2006

A few years ago, I used PureTracks.com for my purchased music, before I owned an iPod. Music on that service was relatively expensive, at $1.29 - $1.49 per track. I paid $14.99 for a whole album on there once.

Once I got an iPod, I turned to iTunes for my purchased music.

So I have a bucket full of PureTracks DRM music on my system that I have not listened to in a long time. I just opened up Windows Media Player to check, and I have not played music using Windows Media Player since March 2005!

Now, for the first time, someone has cracked the Windows Media Player license scheme. It can, as far as I can tell, extract the decryption key from Windows Media Player itself. Once it has that, it can decrypt the music permanently.

http://forum.doom9.org/showthread.php?t=114916

I know this is illegal under the DMCA (copyright circumvention), but I am not American so it does not apply to me. Tonight I decrypted dozens of WMA files, and imported it into iTunes. I can now listen to these songs again, for the first time in 1.5 years.

I usually don't do this. Heck, I still own 100's of MB of songs purchased and locked up under iTunes DRM. But to have one media player, and to listen to songs on my one portable device of choice (iPod) - that has to be my right as a consumer. I cannot fathom a law or a judge that would say that even though I purchased this music, I somehow can't play it on my computer or my music player. It's not stealing - it's Fair Use!

And in an ironic twist: The first time I tried running the program against my WMA files, it failed. So I ran Windows Media Player myself, and tried to play the music, and Windows Media Player said I had to download a mandatory update in order to continue. Once I had done that, FairUse4WM worked! Thank goodness for security updates!

 

Tuesday, September 12, 2006 12:31:09 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
 Monday, September 11, 2006

On September 11, 2001, looking at the tragedy that was unfolding live on CNN, I was dumbstruck. I couldn't believe what I was seeing. It hadn't occurred to me until that day that this type of terrorism could ever happen - using a plane as a missile. And as each subsequent piece of news trickled in that morning and afternoon, I couldn't believe it could get any worse. Yet with each passing hour it still did.

Of course - I was glued to CNN all day and all night watchnig replay after replay. Every once and a while, some new camcorder video would come in, and you could see the plane hit the tower from another angle. There was the smoke and ash that filled the streets. I think horrific is the only appropriate word for what happened that day...

And here we are 5 years later. And oh how the world has changed.

Anyways, my prayers go out to the 9/11 victims and their families. This really is one of the great tragedies of human history.

 

Monday, September 11, 2006 7:50:04 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
Politics | The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
Archive
<October 2006>
SunMonTueWedThuFriSat
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Scott Duffy
Sign In
Statistics
Total Posts: 472
This Year: 31
This Month: 3
This Week: 1
Comments: 73
Themes
Pick a theme:
All Content © 2008, Scott Duffy
DasBlog theme 'Business' created by Christoph De Baene (delarou)