Monthly Archives: August 2004

Using Hands on Labs to get used to C#

When I was at TechEd, I did the TabletPC hands on lab. It was in C#. It was the first time I realized that those poor people have to declare every event when they are coding (we get them for free in VB). But it also got me practicing constructors in C# and the curly braces and all.

When I wrote my doodle app, I started with some C# code from a demo and wrote the whole thing in C#. It’s a pretty straightforward app. But again, just more time in the saddle getting used to some little differences like constructing if statements, try/catch blocks etc and the totally anal capatilization.

Now I’m back into the WSE2 Hands on Lab again. It’s all C#. The first part of it is gobs and gobs of coding.

I like the flexibility of being able to go back and forth.

And I was really happy that I didn’t have to learn a new way to create a new line since I’ve been using System.Environment.NewLine in VB since.net came out. reading this post of Sam Gentile’s on BCL Types. I wrote THIS one in response, which same saw and wrote “my work here is done.”

new computer and setting ntfs permissions

I was having some, umm, difficulty (heh) setting NTFS permissions on my new tablet for folders. I couldn’t for the life of me find the security tab. It has been a loooooong time since I had to do this on a new computer and I had forgotten why I was having this problem. I decided it had to be something new in XP SP2 and googled forever. Finally I found security whiz Anil John online on i.m. and asked him. It took him a moment because I distracted him by saying “I think it’s something new in SP2”. But then, he kindly pointed me to Explorer/Tools/Folder Options/View/Advanced Settings. That STUPID “simple file sharing” setting is on by default when you first install XP. (okay, it’s not stupid…) Now this is really embarrassing, but it’s one of those things that is easy to totally forget if you haven’t touched it in years. I was not googling the right words. So it is now just here as a reminder.

Using my digital signature with wse2

Aha! I had seen many samples of getting a digital certificate out of the client machines certificate store, but all of the examples were sending in some pre-defined private key.

Let me back up. When you get a digital certificate and install it on your machine, it has a private key associated with it. So when you are using WSE2’s FindCertificateByKeyIdentifier method, you pass in that key and it gives you back the certificate so you can sign whatever it is you want to sign.

In all of the examples I was looking at, the key was “predetermined“. For example in one article it passed in a variable and said “by the way, this private key is stored in the app.config”, or “previously stored private key” pr in the example of the hands on labs, you just manually pasted the key into your code after copying it from the WSE Certificate Tool (a UI that comes with WSE so you can easily work with your X509 certs). But I could never figure out how the key was being retrieved dynamically.

What was bugging me was this: if you have a client application and an end user installs it on their machine, what is the end-user experience when dealing with the key? How is that pre-determined key being discovered?

Now I see that basically you need to get the user to tell you which of their digital signatures they want to use when using this client to access your web service. D’uh, that’s not so bad. So either you have some setup routine where the user can choose the signature and then store the key in a settings file or just have them choose the key dynamically during the application execution. There are of course different scenarios where you would want one method over the other. There is a Quickstart sample (AsymmetricEncryptionCode) that demonstrates how to popup a dialog box and have the user choose from the correct signatures included with the WSE2 install.

There are other methods for getting a digital signature besides by the private key. Again, based on what you are trying to accomplish, you would choose what method to use. But this was the most common scenario in the samples I have looked at so far.

(I’m very open to corrections if I have stated anything incorrectly here. And James, just because I’m a little thick, doesn’t mean this stuff is *so* hard that we should all switch to smalltalk :-))

MSDN article on Inking Web Applications

Shawn van Ness has another article on Tablet PC development (will soon be on the MSDN Tablet PC Developer Center page) This one is on ink enabled web apps.

oh NOW they publish it. AFTER I had to figure it out all myself. 🙂 (Umm with some help from Shawn and Casey and Stefan on the side …)

The end of Shawn’s article poses this question:

Only one burning question remains: who will the first to Ink-enable their blog?

A Disgruntled Reader of my weblog

I used to enjoy your blog, but not anymore. You don’t provide any useful or knowledgable content anymore, and who wants to keep up with your 15 posts per day? If you quit posting useless information so much, maybe you’d have time to to accomplish something and actually scale it down to one useful blog per day.

You need a dog. Or maybe a cat.

Sorry for my ranting. I just hate it when good blogs go bad.

But I HAVE a dog & cat! 🙂

Is Code Obfuscation another nemesis of the open source community

Once again, I’m getting it from James (though he and I agree to respectfully disagree with each other) for *considering* the DotFuscator Community Edition that is bundled in with Visual Studio .NET.

Here are his posts:

http://www.artima.com/forums/flat.jsp?forum=155&thread=67231

http://www.cincomsmalltalk.com/blog/blogView?showComments=true&entry=3270899203

James is a passionate guy. I’m just a curious girl.

Yahoo Toolbar – Where the f did *that* come from

I explicitly chose to put the google toolbar in my i.e.. I *never* installed a Yahoo toolbar and I was never asked. It just appeared out of nowhere. That ticks me off – quite a lot. What’s going on here? Is Yahoo being run by the we-are-going-to-take-over-your-computer Real Networks, now? I wonder if it was because I went to a website that uses MacroMedia Shockwave and I said yes to installing that but changed my mind and aborted.

Well, here’s another pretty picture for you, Yahoo..

Single-Sex education – in grade schools?

Interesting article from CNN . I had no idea this was being done in grade schools. I went to a women’s college, Wells, and I can definitely attest to the fact that I found myself definitely able to focus on my studies and start definining myself as a human being rather than worry about how I looked in class or would I sound too smart or too stupid…

However, there were a few geeks in my high school that definitely turned out to do some cool stuff that I wouldn’t have been exposed to if I were at a single sex high school. One perfect example is Dan Schwinn, who started a company called Shiva Corporation in the early 80’s that was eventually purchased by Intel. Now he’s into aerospace technologies, heading up Avidyne, a company he started with the dream of bringing high-tech instrumentation to moderate airplanes.

 Dan was definitely our “bar” in high school as there was a group of us who were interested in math & science (oh my god, I just realized, I’ve been a geek all my life – eeeek!) and he was clearly the smartest among us and I also think the most self-confident, in those troubling days of high school social politics, as well. But it wasn’t all geek all the time. I think our poor mother’s drove us to ski about 6 or 7 days a week during the winter!

I went off to a small liberal arts women’s college and Dan went to MIT (oh, shock!) and I remember hearing that he was coming home during college breaks driving a Porsche because he was already doing some amazing stuff for some high-tech companies during the summers. In the late mid-80’s, I was working in the marketing dept for a magazine (already doing lots of programming related stuff). We were heavily invested in Macs as one of the first companies to do a lot of in-house computerized graphic work, and I remember that Dan’s company had the back cover ad of MacWeek (or something like that) every single issue! I’m talking about the 80’s. It was not the norm for 20 somethings to be doing big stuff like this, so it was pretty notable.