in

QuestMaster.NET

A Quest for the Perfect Program, and a Quest for Life

Life, Universe And Everything According To Dirk

We apologize for the inconvenience

März 2007 - Posts

  • Exam 70-528 Web-Based Client Development

    I took test 70-528 the other day, and passed. If I also pass 70-536, I can call myself Microsoft Certified Technology Specialist: .NET Framework 2.0 Web Applications.

  • Formula 1 2007 Predictions

    The 2007 Formula 1 season is underway. The first pole position goes to Kimi Räikönnen, who apparently is the first Ferrari driver since Juan Manuel Fangio to snatch the pole in his first race for the Italian team. My predictions for 2007:

    • Kimi Räkönnen will become world champion
    • Ferrari will win the constructor's title.
    • McLaren will likely be the second strongest team
    • Renault will try to beat McLaren
    • BMW will try to beat Renault.
    • The team to watch out for is Aguri: if their qualifying in Melbourne is any indication, they may well be on their way to leave the last place to the likes of Spyker and Toro Rosso.
  • What To Do If Your Boss Reads Your Blog

    Hi Christian, Andreas!  Franz, are you reading this too? :-)

    I know for a fact that some of my bosses read my blog. This creates an interesting situation, because it extends the working world into the private world. At work, I try to be friendly, respectful and polite towards my bosses, colleagues and customers alike.  Since my blog is now part of my relation with my boss, it follows that I what I write should be equally friendly, respectful and polite.

    Or does it?

    On the one hand, I have the freedom to write whatever I want in my blog.  This is freedom of speech, one of the very fundaments of what is usually called "western civilization". I also have to freedom to talk to and about bosses, customers and colleagues in any way I want, when it comes to that.  On the other hand, I have the duty to accept peoples' reactions to my writings and sayings. Any reactions.  This is the "One Right, One Duty" principle.

    So where does this leave me?

    I think this means that I cannot choose the content and tone of my blog based on my blog alone. I need to base those choices on my goals with regard to my relations with my bosses, customers and colleagues.  I want those relations to be friendly and productive.  Part and parcel of productive relations is that you praise in public, and criticize in private.  For this reason, I choose to be friendly, respectful and polite in my blog. From now on, at least ;-)

    Some may call this censure. I would argue with that because this so-called "censure" comes from me, not from outside.  But mostly I would argue with that because "censure" would imply that the "censured" topics disappear into a black hole.  They do not.  These topic will be talked about in private, should the need arise. They will simply find another channel.

    My bosses and I talked about this very topic before I started at TechTalk. We agreed to be open about criticism and to talk about it, but to keep it private. Like I said, this is part and parcel of a productive relation.

  • Windows Vista and One Care Panic

    My company notebook doesn't boot any more.  Not even in safe mode. At a predictable point in the boot cycle of Vista, there comes a Blue Screen Of Death for a very short time, and then the notebook restarts.  Repeat at infinitum.

    So in the worst case the notebook will need to be reinstalled.  So I need to retrieve my data.  No problem, I think, I have one care installed and the most recent backup is only two days old.  I didn't do any significant work on the notebook for the last couple of days, so this should be done in a snap.  Alas, remember the old saying "Never rely on a backup system unless you have tried a restore".

    Either there's something I don't understand about One Care Backup, or it is near useless.  I could restore my files, yes, but the end result was that only about half the files I expected were there.  This is a big no-no.

    I then tried running Vista Setup in recovery mode, but to no avail.  The problem couldn't be solved automatically.  What did work, however, was the command prompt in the recovery console in combination with a USB hard disk.  Even in recovery mode, Windows Vista is able to recognize and mount usb hard disks without any problemns.  So I copied my data to the external hard disk, and resigned myself to awaiting what our sysadmins are able to salvage from this mess.

    So what did I learn?  One Care Backup seems to suck, but Windows Vista Recovery Mode is good.

  • How To Install Visual Studio 2005 SP1

    I had two big issues while installing Visual Studio 2005 SP1: installation takes ages, and on Windows 2003 it fails.   Heath Stewart describes workaround for the first and the second issue.

    Those workarounds are real nerve-savers.  In my experience, it isn't necessary to leave the domain in the workaround for the second issue: disconnecting the network connection worked for me.

  • Dev Meeting

    At TechTalk, we have Dev Meetings at roughly bi-weekly interval. The purpose of those Dev Meetings is to distribute knowledge about new technologies or other interesting topics among the developers. I've attended two so far, one about "Best of TechEd" and and one about PowerShell.

    "Best of TechEd" was a collection of tips 'n tricks about ASP.NET development.  Some of them I knew already, but these two are my "Best of Best of TechEd":

    • You can take your whole ASP.NET site off-line by adding an App_Offline.htm file to the root of the site.  IIS will return the content of this file for every request to the site.  This is helpful if you want to perform maintenance on the site.  Funnily enough, this is possibly the only feature that works better in FireFox than in Internet Explorer.  For reasons best left unknown, IE only displays the content of the file if it is longer than 512 bytes.
    • If You Want To Display A Text In Title Case, you can use TextInfo.ToTitleCase("if you want to display a text in title case").

    The one about PowerShell was a quick tour of PowerShell, with basic commandlets, how to get help, object orientation of the pipe, ... I had quite a bit of Unix practice at University ("Microsoft" being a dirty word there) and I like the shell and scripting stuff from that side of the fence.  Windows was sorely lacking in that department, and not all Cygwin's horses and all MKS's men could make up for that.  Now we have PowerShell, which is all that, and Object Oriented and .NET-based on top of that.

    I think those Dev Meetings are a great way to distribute information and knowledge.  Not only do you get the knowledge, but you also get the annotations and highlights from real experience that you don't get from product documentation. I will probably do a Dev Meeting about WPF with one of the coleagues from Budapest in the near future.

  • Guidelines for Cats

    If there were a school for cats, this would be the text book.  Wherever this school is, our cats went to it before they came to live with us.  Thanks to James S. Huggins' Refrigerator Door who did a lot of research to put this together.

    Doors:
    Do not allow closed doors in any room. To get door opened, stand on hind legs and hammer with forepaws. Once door is opened, it is not necessary to use it. After you have ordered an "outside" door opened, stand halfway in and out and think about several things. This is particularly important during very cold weather, rain, snow, or mosquito season. Swinging doors are to be avoided at all costs.

    Chairs and Rugs:
    If you have to throw up, get to a chair quickly. If you cannot manage in time, get to an Oriental rug. If there is no Oriental rug, shag is good. When throwing up on the carpet, make sure you back up so that it is as long as the human's bare foot.

    Bathrooms:
    Always accompany guests to the bathroom. It is not necessary to do anything . . . just sit and stare.

    Hampering:
    If one of your humans is engaged in some close activity and the other is idle, stay with the busy one. This is called "helping", otherwise known as "hampering." Following are the rules for "hampering":

    • When supervising cooking, sit just behind the left heel of the cook. You cannot be seen and thereby stand a better chance of being stepped on and then picked up and comforted.
    • For book readers, get in close under the chin, between eyes and book, unless you can lie across the book itself.
    • For knitting projects or paperwork, lie on the work in the most appropriate manner so as to obscure as much of the work or at least the most important part. Pretend to doze, but every so often reach out and slap the pencil or knitting needles. The worker may try to distract you; ignore it. Remember, the aim is to hamper work. Embroidery and needlepoint projects make great hammocks in spite of what the humans may tell you.
    • For people paying bills (monthly activity) or working on income taxes or Christmas cards (annual activity), keep in mind the aim-to hamper! First, sit on the paper being worked on. When dislodged, watch sadly from the side of the table. When activity proceeds nicely, roll around on the papers, scattering them to the best of your ability. After being removed for the second time, push pens, pencils, and erasers off the table, one at a time. When a human is holding the newspaper in front of him/her, be sure to jump on the back of the paper. They love to jump.

    Walking:
    As often as possible, dart quickly and as close as possible in front of the human, especially on stairs, when they have something in their arms, in the dark, and when they first get up in the morning. This will help their coordination skills.

    Bedtime:
    Always sleep on the human at night so s/he cannot move around.

    Play:
    This is an important part of your life. Get enough sleep in the daytime so you are fresh for your nocturnal games. Below are listed several favorite cat games that you can play. It is important, though, to maintain one's dignity at all times. If you should have an accident during play, such as falling off a chair, immediately wash a part of your body as if to say "I meant to do that!" It fools those humans every time.

    Cat Games:

    • Catch Mouse:
      The humans would have you believe that those lumps under the covers are their feet and hands. They are lying. They are actually Bed Mice, rumored to be the most delicious of all the mice in the world, though no cat has ever been able to catch one. Rumor also has it that only the most ferocious attack can stun them long enough for you to dive under the covers to get them. Maybe YOU can be the first to taste the Bed Mouse!
    • King of the Hill:
      This game must be played with at least one other cat. The more, the merrier! One or both of the sleeping humans is Hill 303 which must be defended at all costs from the other cat(s). Anything goes. This game allows for the development of unusual tactics as one must take the unstable playing theater into account.

    Warning: Playing either of these games to excess will result in expulsion from the bed and possibly from the bedroom. Should the humans grow restless, immediately begin purring and cuddle up to them. This should buy you some time until they fall asleep again. If one happens to be on a human when this occurs, this cat wins the round of King of the Hill.

    Toys:
    Any small item is a potential toy. If a human tries to confiscate it, this means that it is a good toy. Run with it under the bed. Look suitably outraged when the human grabs you and takes it away. Always watch where it is put so you can steal it later. Two reliable sources of toys are dresser tops and wastebaskets. There are several types of cat toys.

    • Bright shiny things like keys, brooches, or coins should be hidden so that the other cat(s) or humans can't play with them. They are generally good for playing hockey with on uncarpeted floors.
    • Dangly and/or string-like things such as shoelaces, cords, gold chains, and dental floss (& Q-tips) also make excellent toys. They are favorites of humans who like to drag them across the floor for us to pounce on.
    • When a string is dragged under a newspaper or throw rug, it magically becomes the Paper/Rug Mouse and should be killed at all costs. Take care, though. Humans are sneaky and will try to make you lose your dignity.

    Paper Bags:
    Within paper bags dwell the bag mice. They are small and camouflaged to be the same color as the bag, so they are hard to see. But you can easily hear the crinkling noises they make as they scurry around the bag. Anything, up to and including shredding the bag, can be done to kill them. Note: any other cat you may find in a bag hunting for bag mice is fair game for a sneak attack, which will usually result in a great Tagmatch.

    Food:
    In order to get the energy to sleep, play, and hamper, a cat must eat. Eating, however, is only half the fun. The other half is getting the food. Cats have two ways to obtain food: convincing a human you are starving to death and must be fed now; and hunting for it oneself. The following are guidelines for getting fed.

    • When the humans are eating, make sure you leave the tip of your tail in their dishes when they are not looking.
    • Never eat food from your own bowl if you can steal some from the table. Never drink from your own water bowl if a human's glass is full enough to drink from.
    • Should you catch something of your own outside, it is only polite to attempt to get to know it. Be insistent. Your food will usually not be so polite and try to leave.
    • Table scraps are delicacies with which the humans are unfortunately unwilling to readily part. It is beneath the dignity of a cat to beg outright for food as lower forms of life such as dogs will, but several techniques exist for ensuring that the humans don't forget you exist. These include, but are not limited to: jumping onto the lap of the "softest" human and purring loudly; lying down in the doorway between the dining room and the kitchen, the "direct stare", and twining around people's legs as they sit and eat while meowing plaintively.

    Sleeping:
    As mentioned above, in order to have enough energy for playing, a cat must get plenty of sleep. It is generally not difficult to find a comfortable place to curl up. Any place a human likes to sit is good, especially if it contrasts with your fur color. If it's in a sunbeam or near a heating duct or radiator, so much the better. Of course, good places also exist outdoors, but have the disadvantages of being seasonal and dependent on current and previous weather conditions such as rain. Open windows are a good compromise.

    Scratching Posts:
    It is advised that cats use any scratching post the humans may provide. They are very protective of what they think is their property and will object strongly if they catch you sharpening your claws on it. Being sneaky and doing it when they aren't around won't help, as they are very observant. If you are an outdoor kitty, trees are good. Sharpening your claws on a human is not recommended.

    Humans:
    Humans have three primary functions: to feed us, to play with and give attention to us, and to clean the litter box. It is important to maintain one's Dignity when around humans so that they will not forget who is the master of the house. Humans need to know basic rules. They can be taught if you start early and are consistent.

  • Mathematics in print and on screen

    I studied mathematics at university, and my Master's Thesis naturally involved a lot of mathematics.  LaTeX (or me being a Microsoft guy, MikTeX) was the natural choice at the time.  I briefly tried WordPerfect and Word, but I abandonded that track after less than an hour. TeX (in whatever version) is very much an overkill and doesn't justify the learning curve for "normal" texts.  But once you start including lots and lots of formulas, both inline and explicit, WordPerfect and Word start breaking down. At least they did in 2000.

    Every once in a while I look around the internet for new possibilities when it comes to formulas in texts - even though I haven't had occasion to write something involving mathematics since my master's thesis.  Word has matured considerably since its 97 version, and combined with the "full" version of its built-in editor, it may offer a more accessible alternative for mathematical texts than TeX.  I'll be sure to give the Office 2007-compatible version a spin once it's released.  Design Science also offers a couple of other products, like TeXaide and MathPlayer.

    Another company that's heavily involved in mathematic typsetting is Soft4Science.  They have a complete editor (SciWriter) that can export to TeX and MathML.  They also have a couple of .NET controls.  I asked Bernhard Keil, owner of Soft4Science, about plans for a WPF version of their rendering control. He answered saying he prefers not to give information about planned features in future versions:

    [B]itte haben Sie Verständnis dafür, daß ich bzgl. geplanter Features in zukünftigen Versionen vorab keine Informationen preisgeben möchte.

    I think it's a safe bet that he's working hard on it :-)

    A third "player" in the field is Valentin Iliescu, who published a set of WPF controls on his website to display mathematics in a Flow Document.  His sample xbap showcases the possibilities.  It's promising, but also still very rough as far as the API is concerned. Valentin told me that he doesn't know when he will have time to develop the math controls further.

Copyright Dirk Rombauts
Powered by Community Server (Non-Commercial Edition), by Telligent Systems