Aaron's blog

Microsoft programmers: what are they doing all day?

By aaron.axvig, Fri, 03/23/2007 - 03:00

According to this Wikipedia article, Windows Vista Beta 2 had 50 million lines or code, or about 10 million more than Windows XP.  That seems like a lot, right?  Well, take a look at these calculations:

Say there were 15 million lines of code added for the final version of Vista (I doubt many more than a million were added between Beta 2 and RTM, but I'll be generous).  Then say that they had 4 years to work on it, working 200 days each year (again, being quite generous with the numbers).  So 15,000,000/(200*4) = 18750 lines of code per day.  That seems like a lot.

But lets consider: Microsoft employs at least 60,000 people.  Let's again be generous and say just 1000 of those were actually writing code daily.  Do some division and you get each of those 1000 coders writing just 18.75 lines of code per working day.

What were those employees doing the rest of the day?  Here are my ideas:

  • Figuring out how to merge their source with everyone else's.  I suppose it is no small task to combine 15 million lines of source code from 1000 or more different programmers.
  • Planning features.  However, I suspect that there were several thousands of other employees doing this and other things like testing and graphical design.  I think my guess of 1000 coders should be somewhat close to how many people Microsoft had programming on their flagship product.
  • Quality control.  Microsoft does have their initiative to write super secure applications; maybe this takes a lot of effort.  I suppose if you write enough unit tests....

I would love to see some holes poked in these numbers or find a really good excuse.  Seriously, less than 19 lines of code per day?

Tags

My spring break entertainment: monstrous computer fan

By aaron.axvig, Mon, 03/19/2007 - 03:00

My brother and I took apart a microwave this past weekend.  They are surprisingly simple inside--just a capacitor, microwave emitter, circuit board and a really big fan.

All right, maybe it's not that BIG, but it is pretty cool.  It's actually a blower (alright, two blowers).  As such, it is lots more nifty than just having 15 120mm fans spread out in your case like some LAN party freak.  And my dad just happened to have brought home an old computer from work that he only wanted the hard drive from, so I had a case to hack apart.

One hour of measuring and Dremel work later, I had something that actually looked pretty decent.  As for powering the fan, it appears to run off of 120VAC.  So I hacked a notch in the case to allow passage of a power cable (of course I borrowed the old power cable from the microwave) and powered it up. 

Pros

  • Extremely high airflow.
  • Easier than water cooling.
  • Cheap (two wire nuts for about $0.20)
  • More 1337 than a Linux tattoo on your forehead.

Cons

  • Extremely loud.
  • Smells like a weird mixture of all the greasy food someone has cooked in their microwave over the past 15 years.
  • Is poorly placed in case, resulting in a lot of sucking and blowing but it's all in the wrong spots.
  • Blocks anything resembling a normal size add-in card.
  • Probably generates large and powerful magnetic fields inside the computer case.
  • Idles at 3+ amps.  In other terms, it easily burns 360 watts.

I haven't actually tested to see if the computer functions with this thing inside (I don't think there would be any problems other than magnetic fields, but I doubt even that will be an issue).  Here are some obligatory pictures:

Tags

Science fair judging

By aaron.axvig, Wed, 03/14/2007 - 03:00

I spent the entire day today judging the Southeast North Dakota Regional Science Fair.  I had never been to an actual science fair before, so it was interesting (although I have done many presentations for 4-H that were similar to a science fair exhibit).  A few highlights:

  • One school has a coach who heavily influences the work of the students.  That coach also has them do an unbelievable amount of work.  By and large they follow the proper scientific method, but they never seemed to have a hypothesis and hence never really came to a conclusion at the end.  So here was all of this excellent work but they didn't really have a clear message of their discoveries for us.
  • The simplest exhibits were some of the best.  The school I speak of above had large (and I mean large--all of the high school students from that school had towering 5-foot tall three-sided presentation boards) boards cluttered with scores of overlapping graphs and pictures illustrating the methods they used.  The kid who got first place built a really simple project based off of something he saw on the Discover Channel called a Baghdad Battery.  He had a small simple poster board with just a few graphs showing the voltage produced by different electrolytes.  He didn't have a spectacular exhibit with hundreds of sample points, but because it was such a very controllable experiment and it was well thought out, he walked away with 3 or 4 different awards (1st place and several other awards from organizations).  Probably the biggest thing was that he simply knew his stuff.  This kid knew everything about the experiment and electricity and how it could be used to anodize materials.  Judges like that.
  • One student measured electrical conductance to find out the amount of electrolytes in energy drinks.  Here is a sample of the conversation:
    • "So tell me about the container you measured the voltage in."
    • "Well, it was a measuring cup."
    • "Yes, but..." (interrupted)
    • "I think it was 1/4 cup."
    • "What material was the cup made out of?" (I really was fearing the worst here, and my fears came true)
    • "Metal."
  • Another student (who was obviously from the school of the afore-mentioned coach) tested dish soap.  Notice that I didn't say test the effectiveness, or which one would be the best to buy.  Basically she just ran a bunch of tests to determine the solid content, ph balance, and viscosity of the soap, but didn't draw any conclusions.  This frustrated me and I snapped, putting forth my best effort to point this out in a very destructive manner.  Not exactly my best move of the day.  But it was so frustrating to see all this work and no hypothesis that might drive a conclusion at the end of the experiment.  You don't do a science fair exhibit to find out a bunch of parameters about 11 different soaps (yeah, she did 11!), but rather to find out which one is the best for its intended uses.
  • One display was about natural fungicides and pesticides, but the student was unaware of the commercial product that is based off of the exact same idea she was using.

So, if you are a soon-to-be science fair participant out there reading this, keep a few things in mind:

  • Don't use a metal cup when you are measuring electricity.
  • Have a hypothesis and decide whether it was true or false (it really doesn't matter if your hypothesis was wrong as long as you made reasonable guesses in forming it).
  • Know your subject matter like the back of your hand.  Research other things even remotely related to your project.
  • Speak up and be confident, but don't have a 10 minute rehearsed speech (just a 30 second summary is fine, after that just share your knowledge).
  • KISS - Keep It Simple Stupid.  A couple graphs are fine, and some pictures.  You can stuff all the actual data in a folder and have it on the table.

Vista Media Sharing With Xbox 360 Permissions Problems

By aaron.axvig, Sun, 03/11/2007 - 03:00

Last night my cousin and I put some serious effort into getting a Windows Vista (Ultimate) machine with Media Center to share music with an Xbox 360.  Several hours later we finally got it to work, but it was quite a journey:

First off, our setup is maybe a bit non-typical from the standard home setup Microsoft envisioned when they designed it.  We have a domain with 2 servers, one which has all the media files on a shared drive.  We usually just add the network path of the shared drive to WMP11 on our local machines usually and it works just as well as if they are on the local HDD (provided the network is not down).  The two servers run Server 2003, and Microsoft dropped the ball there by not enabling WMP11 or Windows Media Connect to install on Server 2003.  So we setup another computer with Windows Vista Ultimate.  The plan was to add the media files into WMP11 using the shared drive on the server, and then share them on the Vista box using the built-in Media Sharing feature.

Unfortunately we ran into a permissions problem.  Except we didn't know this right away, and kept resetting everything, rebooting computers and the Xbox, and being really frustrated.  Really, really frustrated.

There are several problems.  First is that the Xbox doesn't show up to "Allow" in the Media Sharing dialogue until you try to access the shared library using the Xbox.  Of course it gives an access denied message (since you can't allow it in Media Sharing because it's not even there yet), and then it appears in Media Sharing and you can allow it.  Inconvenient.

Second, there are multiple users that can share a library on the same machine. This is a PITA.  As far as I can tell, wmpnetwk.exe goes through the C:\Users\ folder and looks in all the profiles for a WMP11 database (C:\Users\%username%\AppData\Local\Microsoft\Media Player\).  So it will share any user's library when the settings are configured to allow that (and the settings can get really goofy really fast--they are deceptively simple).  Then you will see two different libraries (or three, or four) to connect to on the Xbox, but they will both be on the same computer.  Invariably, one of them shares only the songs that ship with Vista, and since you haven't gotten anything else working yet, that is all you can listen to.  Anyways, I had an old profile on my computer from before it joined the domain, and I wasn't able to delete the profile because the WMP11 database was in use by an application.  So I had to disable Media Sharing, end the wmpnetwk.exe process, and then try and delete it (it didn't work until the 3rd or 4th try for some reason).  The real WTF is that this was all going on while the old user didn't even exist on the computer anymore (deleted via lusrmgr.msc).

Third, the permissions problem.  It turns out this is what was really stopping us the whole time.  The other two problems are just annoyances.  We would be able to get the right username on the right computer to show up on the Xbox 360 and it would connect fine, but the library would always be empty when we went to play songs.  After suspecting permissions problems and finally just copying some files to the local HDD before we added them to the library on the Vista machine, we were able to actually see songs and play them on the Xbox.  Much rejoicing.  So we grabbed the drive from the server (good thing it was external USB) and hooked it up to the Vista box.  It still seems to be working (although I did have to power-cycle the HDD this morning, I'm not sure what happened there).

The permissions things boils down to Media Center and Media Sharing both wanting their own user account to access media.  I'll speculate that the process that tried to set these permissions did not have permission to set them, and thus neither Media Center or Media Sharing was able to use them.  Anyways, the files on the external drive now have have two additional users in the security tab--"WMPNetworkSvc" (for Media Sharing) and "uuid: 10000000-0000-0000-0200-0017FA3792D7" (for Media Center).  No, I didn't know that the obscure uuid number was associated with Media Center until I opened up the local user manager and saw Mcx1 next to that mess of numbers and then read online that Media Center uses user "Mcx1" to access files.

So, if you really wanted to share network files via Media Sharing or Media Center, you could either give the media machine's Mcx1 and WMPNetworkSvc users read access to the media files or just give everyone full control of the media so that the necessary permissions can be applied (the former is recommended over the latter).  We ended up just moving the media files, but that might not be viable for some people.

Linux (Still) Not Ready

By aaron.axvig, Thu, 03/08/2007 - 03:00

Every year or so I get some incredible itch to install Linux.  I suppose it's because I read so much online about how great it is, how it is finally ready for all the desktops of the world, how Microsoft is the coming of the Apocalypse, and how the latest version of it is better than ever.

So I would download the latest ISO file, burn it to disk (the last few times I was smarter and used a CD-RW), and install.  Things like no support for SATA or an install process that required a deep knowledge of Linux file systems used to get in my way, but of course the next version always promises to fix this (and that's usually correct).

Fast forward to the beginning of January.  I get most of the way through a Gentoo install (an attempt to "learn more about the inner workings of Linux").  I don't know how much I really learned, basically I was just copying command line commands off of the Gentoo handbook.  I never finished, and the machine sat there, 3/4 complete, powered on for 2 months, until...

I figure it's finally time for me to get a Linux install that works so I can start learning some stuff.  Pop in Ubuntu CD, next next next, complete.  Pretty easy, right?  So up comes the desktop, there it is in all it's glory at 1024x768.  For all the people who criticize Windows XP for looking like a kids toy, they evidently haven't seen Ubuntu at this resolution.  It may not have blue and green colors, but there are wasted pixels and bloat everywhere, including a bar at the top AND bottom of the screen.  Efficient power user OS indeed...

My LCD supports 1280x1024, and so does my video card.  What video card doesn't right?  I figure, "It's 2007, I damn well better not have to edit a config file just to change my resolution."  To my surprise, I found the option to do it, nice point and click.  Also to my surprise, there was no option for 1280x1024.  The highest was 1024x768.

Now I wonder how to fix this.  Do I update the driver?  It seems that it should be able to support this standard resolution right out of the box.  Will I have to edit some config file?  Who knows.  I'll get to that some other day, because 1024x768 is livable for a little while.

So I look into joining our domain.  This is a VERY easy process (please click that link just to see how easy it is) on Windows: set DNS entries, enter domain in text box, click OK, and enter administrator password.  What is the Linux equivalent?  Ensure 6 packages (plus dependencies) are installed, edit 3 text files (be careful lest you make one typo and it doesn't work), restart 2 services, and issue the actual command from the command line (admittedly there are better things in place in case of failure on Linux than Windows--you can check the log files, whereas in Windows you would be left hanging).  Needless to say, I won't be joining my domain at work for a few days.  Someone please tell me how this needs to be so much harder than in Windows.

Is it unfair to ask Linux to measure up to Windows?  Maybe.  Does Linux need to be as easy as Windows to gain appreciable market share?  Most definitely.  Is it very close?  Nope.

Tags

How About A Matrix Background for Vista Dream Scene?

By aaron.axvig, Thu, 03/01/2007 - 03:00

I had a pretty good idea today.  It relates to Dream Scene, a feature of Windows Vista Ultimate.  It is a desktop background that uses videos & animations, so that you can have animated backgrounds.  The only one I've seen in action was a sunset scene of a lake, with the waves rippling, and I'll admit it was pretty cool (resource consumption aside).

So I think there should be one of these that does the Matrix thing.  You know--the water-falling green symbols.  Neo would be happy.

Tags

Word 2007 - bibliography features

By aaron.axvig, Wed, 02/28/2007 - 03:00

So I'm watching this on10.net video right now.  And I also just finished writing a paper for English 120.  With a bibliography.  And about half-way through the video, they start talking about the bibliography features of Word 2007.  I don't get that excited about a whole lot of stuff, but when I saw them demonstrating how to make a bibliography, I definitely did.  This is a killer feature.  Here are the essentials:

  • You add your sources using a basic data-entry form.  Of course you can choose the type of source, such as website or book or even patent.  This feature alone would be useful for managing sources, even if it did nothing with the data.
  • You type your report and use the ribbon button for "Insert Source" to select your source, and it automatically puts in a correctly formatted (punctuation and typesetting) citation.  Excitement level goes up because citing sources just got a hell of a lot easier.
  • Want a bibliography at the end?  Just add it in using a document building block (sounds complicated, but after you've done it once it should be easy) and it will put all your sources correctly formatted.  I assume this also updates if you add new sources in the source manager.  Excitement level increases significantly.
  • Did you enter that name wrong?  Just go change it in the sources manager, and it will automatically update it in the citation and the bibliography.  More excitement.
  • Oops, did you do everything in APA format instead of MLA?  Do you spend the next 20 minutes switching underlining, punctuation, and information order just to get those 10 points back in class?  No, you have Word 2007.  Just change the selection on a drop-down to MLA (or one of 8 or so others), and all the formatting AUTOMATICALLY UPDATES.  Excitement level reaches all time high.

Now, I realize that other programs are capable of generating bibliographies, but I doubt any of them are as polished as this is.  And I really doubt any of them have such tight integration with a word processor and will automatically update all the stuff we just talked about.

So that paper that I just wrote?  Yeah, it was horribly formated, lacked data, and I didn't really care how good it was.  Will I lose points?  Probably not.  But you can be sure that my next bibliography (and citations) is going to kick some serious ass.

Tags

Inconsistent Ctrl+Del behavior

By aaron.axvig, Fri, 02/23/2007 - 03:00

One annoyance that has gotten me quite a few times lately is inconsistent Ctrl+Del key behavior.  If you weren't aware, in most programs this is supposed to delete one word to the right of the cursor's current position (and usually one of the spaces).  Similarly, Ctrl+Backspace deletes one word to the left of the cursor.

Some programs don't play nice with Ctrl+Del (I have found Ctrl+Backspace to be fairly consistent).  Would Microsoft please clean up their act?  Here are some results (all tested in Windows Vista, but I know I've seen some of the same in XP also):

  • Notepad: deletes entire line to the right of the cursor
  • Wordpad: deletes one word
  • Word 2007: deletes one word
  • OneNote 2007: deletes one word
  • IE7 Address Bar & Search Box: deletes entire line to the right
  • IE7 Textbox: does absolutely nothing
  • Windows Live Writer: deletes one word
  • Start Menu Search Box: deletes entire line to the right
  • Visual Studio 2005: deletes one word
  • Editing File Names in Explorer: deletes entire line to the right

So we see three entirely different, largely unpredictable results, from one company.  The closest thing to a trend is that the "major" word processing tools have the correct behavior, while simple things such as text-boxes and Notepad are wrong.  At least Ctrl+Z (undo) is there to save you when that whole line disappears.

Tags

A crazy idea about Vista UAC

By aaron.axvig, Wed, 02/21/2007 - 03:00

So we all know about the User Access Control feature in Windows Vista.  It keeps unwanted programs from doing unwanted things.  However, it is a major pain in the butt for power users, who regularly like to change the type of settings that UAC is designed to protect.  So of course I promptly turned it off on both of my computers running Vista.  I kinda feel guilty about that.  And I don't really think UAC is that bad of an idea.

And yesterday I got a bad idea.  I thought, "Hmm, I should see if it really sucks that much, and share my experience."  Yes, I got to thinking that I should re-install Vista just so I could keep blog entries detailing each of the times that I was confronted by UAC (what it was for, was it quick, did I understand the need for it, etc.).  I imagine the encounters would number near 50 to get the system configured as desired, which really isn't that bad--especially compared to the amount of time to clean just one piece of spyware off of a computer.  Of course I would expect to be bothered by it maybe 3 or 4 times per week (or maybe less) after that as I do occasional installations and adjustments.

The bad idea part of this is because it would mean re-installing Vista (and the ensuing 8 or so hours to install all my programs).  And I have about 60GB of data on my HDD that I don't have a convenient method of backing up right now.  But maybe I'll figure something out.  Because I really think it would be an interesting experiment.

Tags

Library search always sucks

By aaron.axvig, Wed, 02/07/2007 - 03:00

2019-10-25 - I remember that a library staff person somehow found this rant and replied with a decently helpful/explanatory comment (on the long gone site).

--

If there's one thing I hate about the library, it's that the search functionality you can use to find books REALLY SUCKS.  In fact, when I think of the Bismarck Public Library, the foremost image in my mind is the island of computers, all with that dreaded search interface displayed on the screen.

Anyone remember the days where if you entered "Ernest Hemingway" you would get no results?  That's right, you would only get a list of the books he wrote if you entered "Hemingway, Ernest."  Just one of the many things that contributed to the general poorness of the system.  While this seems to be fixed now, it is representative of the silly things one must put up with.

Another frustration of mine is searching for the books in a series.  I used to read a lot of Star Trek and Star Wars books, most of which are part of a series.  Sometimes these series number well over 100 titles.  One would think a library would have an easy way to find out which book is next in the series (maybe to encourage more reading--just a thought).  Nope.  Go ahead, try it: http://www.odinlibrary.org/ Basic search has no drop down for searching for a series, but advanced search does.  Does it possibly return a list of the "Star Trek" series which the Fargo Public Library (for example) has?  Would I then be able to click on the name of one of the series (maybe "Star Trek: Voyager") and view all the titles of that series in numerical order?  Nope.  It returns a list of all the Star Trek books the library has, inconveniently ordered by title, alphabetically.

So, as I did almost weekly between the ages of 12 and 17, one has to go to the library, find a book towards the end of the series, look inside the front cover, note which book they haven't read yet, and go search by title.  Which may or may not work, because the search doesn't automatically look for "Conquerors" when a search for "Conqueror" is entered.  At least NDSU search (which is a whole other case of poor functionality) does this.  It can be quite comical actually, especially if you enter 4-letter words that start with "f".

As it is, searching for things on the Internet is WAY easier than in the library.  Probably that's because webpages are structured in a fundamentally different way.  Or that web designers customize their sites to be more searchable.  But there is definitely room for improvement.  If I were some sort of search engineer working at Google right now, I would be dedicating my 20% time to figuring out a better system for this.  Then Google could sell this to libraries across the world, much like their Search Appliance.  Or even give it to them for free, and display ads next to the results.  I'd be willing to look at ads if I was able to find what I wanted.

So, later today I'll be heading down to the library, in search of a book that has all the others listed inside the front cover.  Hopefully I can check out a book on the same day that I get a new library card...

Tags