The World According to Nick |
My take on Software, Technology, Politics, and anything else I feel like talking about. |
Wednesday, March 31, 2004
Thats a SIDE Effect?I was watching TV last night and saw a commercial for Ambien... a perscription sleep aid. Now I've seen the commercial before, and I've noticed this little detail before... but I figured that since I now have a blog I'd post about it. During any perscription commercial they very quickly list the meriad of awful things that can happen to you as side effects if you take the drug. For Ambien... the very first side effect that they mention is drowsiness. Now forgive my ignorance... but isn't drowsiness supposed to be one of the primary effects? After all, what's the point of a sleep aid if it doesn't make you... well... sleepy? I suppose sometime soon the great people at Sanofi-Synthelabo (the maker of Ambien) will come up with a non-drowsy version... to help you get through your day. I wonder what will be in it.
Tuesday, March 30, 2004
C# FAQ: Object.Equals vs. operator ==When should I use == and when should I use Equals? I actually didn't know this little tidbit... and my first reaction on reading about it was Ewwwwww... Here is the relevant portion:
One more time... just for effect... Ewwwwww.
Wednesday, March 24, 2004
Writing Around the Garbage CollectorOr Teaching an old dog new tricks: GC fun in Whidbey. A blog by Brad Abrams on some new features added to the Whidbey release of Visual Studio .NET (and the .NET framework) to workaround issues that non-deterministic finalization causes with regards to unmanaged memory. Basically they've added two new features:
Of course both of these solutions are hacks, and what they need instead is Deterministic Finalization... but we've been over that before.
Monday, March 22, 2004
The Outsourcing BogeymanHere is a very long article by Daniel Drezner on the The Outsourcing Bogeyman. It is an extremely well thought out and well written article on the myth that outsourcing is taking away American jobs. What's more, he cites very credible evidence and gives very well thought out explanations on the common perceptions (or mis-perceptions as it were) about outsourcing. I'd provide highlights, but the article is so well thought out, its hard to take tidbits out and do them justice standing on their own out of context. One thing that is not mentioned in this article is how he thinks the importation of workers into the United States affects the economy. This is especially noteworthy in the software sector where I believe there is a large influx of people from countries like India on the H1B Visa program, not to mention jobs taken by illegal immigrants. That would be a very interesting article topic indeed I think. Either way, read the whole thing. Its well worth it.
More Helpful Messages from MSN MessengerToday I tried logging into to MSN Messenger from work only to receive the following message (emphasis added):
Apparently they don't use spell check at Microsoft. Either way the message was useless... and had nothing to do with the actual problem which was the fact that they updated MSN Messenger due to a security bug... and didn't really post anything about it anywhere. I went to MSN and downloaded a new copy of the client (even though they didn't have anything that said... oh... I don't know... NEW version needed to connect!) I installed it and was back up and running again. How hard could it be to have intelligent error messages?
One More Reason to Interview at MicrosoftYou become an instant sex magnet? Strange but true.
Sunday, March 21, 2004
E-mail and Snail Mail UniteAn article on BBC News shows how E-mail and snail mail united are bringing mail to inaccessable areas of India.
This isn't exactly a new idea though... the US Army used a similar concept during WWII. Letters sent to service men were actually miniaturized and placed on micro-fiche. Then the smaller more compact letters were sent over seas and printed out for the service men. Doing this actually cut the weight of mail down signifcantly. UPDATE: Chris Sells caught this story as well and has suggested a new service for the USPS that he would be willing to pay for... and frankly so might I. Filter out all my junk mail for me, and then take the good stuff, scan it, and email it to me. Sounds like a winner!
Friday, March 19, 2004
Can Blogging Ruin Your Life?Blogging Off by Whitney Pastorek... apparently it can, if you don't blog. Very funny. If anyone starts seeing these things happen to me... feel free to slap me the next time you see me.
Congress to Test Air Screening ProgramCongress to Test Air Screening Program... I wonder if it will clasify my mom as yellow.
I find this very interesting since I recently took my mother to the airport for a trip to California. While checking in, the majority of passengers had their bags put on the conveyor belt and they went about their way. But when my mom's bag was put on, the belt suddenly stopped and the lady behind the counter started typing away on her console. Then she said, "You're all ready to go, just take your bag over there"... and she directed us to the special detection equipment they've setup for suspicious bags. My 65 year old mother had apparently been mistaken for a terrorist. With security precautions like those, I'm sure we're all in great hands.
Anti-Piracy Vigilantes StrikeAnti-Piracy Vigilantes Track File Sharers.
Apparently some people at the Electronic Freedom Foundation think this might actually be illegal... and they might be right. After all, two wrongs don't make a right... but it is kind of funny. Any time you download something over the net, you are taking a risk. If nothing else, the website they've setup to track the program is kind of funny.
Wednesday, March 17, 2004
It Was All About the Oil... for the FrenchThe French Was For Oil from the New York Post.
Its never as black and white as people want it to be.
The Programmer's Secret HandshakeZero or One based collection? Eric Gunnerson from Microsoft has been a blogging machine lately... and covers a question someone recently asked which is why in today's modern programming world do we still have 0 based instead of 1 based arrays... after all, when humans start counting, we start at 1... not 0.
Or as one of my professors in college used to say... 0 is a perfectly good number... so why not use it?
Tuesday, March 16, 2004
If Kerry was Misquoted... Why Didn't He Just Say So?If Kerry was Misquoted... Why Didn't He Just Say So? This is of course related to Kerry's latest political gaffe where he said during a town hall meeting that foreign leaders have told him that they hope he wins. The Boston Globe reporter how quoted him is now saying he mis-transcribed... and that Kerry never said "foreign"... but if thats true... then why didn't Kerry make that assertion? Why didn't he say - Hey! I was misquoted?
Blogosphere 1, New York Times 0Blogosphere 1, New York Times 0. If you haven't been following this Blogosphere controversery... its a very cool David and Goliath story. Robert Cox over at The National Debate had maintained a New York Times Editorial Correction Page in an effort to correct blatently false information given in editorials, that as part of policy, the Times does not post corrections on.
The page is maintained in the same format as the New York Times website, and is meant to act as a paradoy. Well the Times didn't like this and sent Mr. Cox and his ISP a letter threatening them under the DMCA (Digital Multimedia Copyright Act). After temporarily taking down the parody, and then after a copyright lawyer volunteered his services and helped him fight back, the Times has withdrawn its complaint... how nice of them. You'd think that an organization that depends so heavily on the First Ammendment would not be so quick to quelch it.
Monday, March 15, 2004
The Dangers of DHMO... Makes City Officials Look Like MoronsCity falls victim to Internet hoax, considers banning items made with water. I remember this joke going around when I was in high school chemistry. You can read more about the scurge of DHMO from DHMO.org. Here is a fact sheet on DHMO that looks very similar to the one I remember in high school. Some of the more serious dangers of DHMO are:
DHMO can be found in many locations:
STOP DHMO!
Friday, March 12, 2004
You Are HereA picture of the Mars rover Spirit looking back on Earth. What were we arguing about again?
Thursday, March 11, 2004
More Data Structure GoodnessScott Mitchell is back on MSDN with Part 5 of the Extensive Examination of Data Structures. In this latest installment he covers Graphs, which are really a more general form of a tree.
Great article... and worth the time to read.
Wednesday, March 10, 2004
Debugging the DebuggerYou read that right... The VS7.X Debugger doesn't work, What can I do? This is a blog entry by one of the Microsoft VS.NET QA (that's Quality Assurance for those of you who don't know) guys. He has a whole slew of of messages that you may encounter while attempting to debug either a Windows Forms, or ASP.NET project... and what it means... and what you can do to resolve the problem.
Tuesday, March 09, 2004
LiteScribeNot Lite Brite... LiteScribe... a new technology from HP that will allow you to Simplify DVD Labeling by burning your label using the same laser that burns the data. After burning your data, just flip the disc over and the laser will burn a label onto a special coating. The disc will cost only a few cents more than the average burnable disc... and the drive itself is only about $10 more expensive. Looks cool.
Programming in the BlueProgramming in the Blue is a blog post by Matt Warren from the Microsoft C# team... I have a feeling that this was a late night post made while hyped up on caffine and low on sleep. He talks about the difficulting in changing a language after its initial release... and then has an "epiphany" at the end and arrives at a "solution". Very funny... that is if he's kidding. Kinda strange if he's not.
Monday, March 08, 2004
Not a Cow... But a Comet?Did a Comet Trigger The Great Chicago Fire?
Intellectual DiversityHere is an article from the Duke Conservative Union on the issues that school is having with Intellectual Diversity there.
Here is more on this controversy from Instapundit. Of course, this is really just the tip of the iceberg as Duke is not the only place where this is a problem.
C# Frequently Asked QuestionsHave a question or complaint about something in C#... or lacking in C#? Then take a look at the C# Frequently Asked Questions. This is a new blog from MSDN where they will answer questions from people on the language. They've already answered some good questions relating to the language architecture. To ask a question, simply reply to the first post in the blog. I've already asked a question there about const reference parameters... so click and fire away!
Thursday, March 04, 2004
Don't Like John Kerry? Wait a Week.A great opinion piece on Slate... John Kerry's Waffles - If you don't like the Democratic nominee's views, just wait a week.
It even comes with a handy reference guide in the form of a table at the end showing some of his more substantial reversals. The most important question is this. Which of the his views are we going to get? Are we going to get what he voted and campaigned on as a Senator... or what he says now? And what guarantee do we have that those views won't "devolve" to where they were as soon as the election is over?
Bring Out Your Code!Judge orders SCO, IBM to produce disputed code.
Not that I'm following this case very closely... cause I could really care less. I just find it rather amusing. Knowing how code is written... and how that code probably looks (ugly as sin more than likely)... if you can find a judge/jury that will be able to understand and recognize similarities, then I take my hat off to you.
Wednesday, March 03, 2004
Kerry Not Representing AnyoneHere is an article from the Boston Herald on Kerry being AWOL from the Senate:
But do you think that Kerry (one of the wealthiest members of the Senate) will actually cut a check to the US Treasury? I doubt it. More importantly is the fact that the people of his state are not being represented. What kind of President would he be based on the fact that he is not even representing the people of his state, which he took an oath to do? At least Bob Dole resigned from the Senate when he ran in 1996 so that the Governer of Kansas could appoint a new Senator to represent the people of that state. Kerry should do the right thing and resign... but he's probably too afraid he'd lose and then be out of a job all together.
Tuesday, March 02, 2004
Is a Property a Field or Function?I've been reading a book called The Elegant Universe lately... talking about fun things like String Theory, Hidden Dimensions, Theory of Everything... etc. You know light reading. One of the things being discussed in the book right now is the dual nature of light. The fact that it acts as both a wave and a particle. What does this have to do with properties in .NET you ask? Like light, properties are a funky little thing. They're syntacticly like a field. But their underlying implementation is a pair of functions. In essense, a property is a field where the programmer is allowed to do extra type checking, and validation... abstracting away those details so the consumer of the property doesn't even need to know thats happening. A programmer could even create a property called Age, but never store the age in the object. Instead, he might track the birth date, and return the age each time by doing substraction with the current date. You as the property consumer don't need to know. So should we even be aware that properties are actually a pair of get_ and set_ functions under the hood? Take the following example:
If properties were really properly abstracted, you should be able to pass it as ref parameter to a method. But you can't. You will get a nice little compiler error saying "A property or indexer may not be passed as an out or ref parameter". Instead you'd have to implement MyTest like this:
Wouldn't it be nice if the C# compiler would generate that extra boilerplate code in MSIL for you... thus keeping the abstraction... and never really revealing the fact that a property is really a pair of methods? Just a thought. Of couse if you know that a property is really two methods... you can take advantage of it if you want.
How Fast is Fast Enough?How fast does Avalon need to be? For anyone looking at the new drawing subsystem (code named Avalon) in the next generation of Windows (code named Longhorn) this is an interesting blog by one of the architects. Along with general goals they have in mind for Avalon... he also talks about generic usability guidelines for speed in software:
Monday, March 01, 2004
Something of Note with the New Iraqi ConstitutionIraqis Reach Agreement on Interim Constitution from FoxNews.com:
The United States Congress isn't even made up of 25% women (right now its about 13.6%)... why on Earth do we think we should force that quota or even goal on Iraqi's? Not that I'm against having female representatives in any way... in fact in the U.S. the statistics show that when women run for office, they are more likely to be voted in when running against a man. The problem is that women don't tend to run for one reason or another. But thats besides the point. If you have a truly democratic system where the people vote for their representation, how on can you possibly even enforce such a quota/goal? I have a feeling this is more to satisfy all the Politically Correct Enforcement Agents that are here in the U.S. which is a shame. That sort of language doesn't belong in anyone's constitution.
The Passion of The Christ ReviewsI haven't seen Passion of the Christ yet... and actually I'm not sure if I'm going to (I'll probably wait til the book comes out)... but this is a pretty typical review of the movie from JSOnline.
That's strange, my version of the Bible has Jesus dying of laughter from being tickled by feathers and licked by kittens. Do people actually think that being Crucified didn't hurt? That wearing a crown of thorns doesn't cause your scalp to bleed? Have you ever cut any place on your head? Even a small cut causes tons of blood because of the large number of blood vessels in the head. This is actually a very accurate portrayal of a typical crusifiction... which was an extremely long and torturous way to die.
Kerry's Haiti jabMore hypocracy and two facing from John Kerry in the New York Daily News:
But of course we should never have gone into Iraq without multilateral agreement from every country in the world and full UN endorsement. Thats just different.
Wrapping Up Properties with DelegatesHere's a C# tip that came out of some thoughts I had after reading an article on Code Guru on how to create properties and delegates in managed C++ called Why Don't I Get Those Keywords? What's interesting about the syntax for defining properties is that you are actually creating two functions with this general form:
Obviously, type should be replaces with int, string, or whatever the type of the property is... and MyProperty is a generic name for whatever you want to call your property. One of the nice things you can do in .NET, is create a delegate that is basically a type safe function pointer. But can you create a delegate which is a pointer to a property, instead of a method? At first I thought it would be nice if you could have one delegate that would somehow wrap up both the property get and set in one... but that is not possible. But if you can live with having two delegates for a property, then the syntax for doing that in C++ would be relatively straight forward... following this form:
The problem is when you try to do this in C#. C# has a completely different syntax for defining properties, that makes the above method impossible. So does that mean that you can't do this in C#... nope. It just means you need to use a little reflection to gain access to the underlying get and set functions that do exist under the hood:
CodeGuru has a New LookCodeGuru has finally decided to update their look. It looks nice, but its still not as functional as other software sites out there. Of course, their search engine still sucks, and all the links I have that point to articles there are broken. So as they move older articles into the new database, I will update the links from previous posts. Anway, take a look. They still do have a lot of great content.
Rethinking Free SoftwareHaving gone through the free/open source rocks stage myself... I find this open letter on the Consequences of Writing Free Software very interesting. It was in response to a conversation this gentleman had with a young developer (yes, younger than me) at a software conference.
This of course interests me because I have written plugins for Winamp3 which I put out for free to benefit that particular community... and I'm now working on a skinning program for Winamp Moder Skins, which I plan on selling for money (gasp). My problem comes from the fact that the Winamp community is very into free software rocks... and if you make us pay you are evil. Of course the vast majority of those community members are still in college... and can't afford anything. Wait til they have a real life to support.
Redefining Low and High when it comes to UnemploymentIts all Relative from Tim Blair's Blog... interesting. Compares how unemployment rates were described during the Clinton era compared to how the exact same numbers are compared during the Bush era.
|
About Me
Name: Nick Home: Wauwatosa, WI, United States I'm a Software Consultant in the Milwaukee area. Among various geeky pursuits, I'm also an amateur triathlete, and enjoy rock climbing. I also like to think I'm a political pundit. View My Profile Archives
Home PagePersonal Links
Carnival of the Badger
The Coding Monkey del.icio.us Links Flickr Photos Blog Critics Reviews Blogroll Me! music books video culture politics sports gaming www.flickr.com
This is a Flickr badge showing public photos from Nick_Schweitzer. Make your own badge here.
Credits
Design By maystar |