Monthly Archives: July 2005

on London bombings and blogging about it

what can I say that would add to the sadness and anger about the bombings in London today. about the fact that every day we here “2 killed in bombing here” “10 killed in bombing there”. The numbers in London will increase as they dig deeper in to the tube system – injured and dead. It’s awful. I keep working but am obviously thinking about it. I noticed Kate’s i.m. display said her sibs that live in London is okay. That some girls from Wally’s community were hurt and one is in bad shape in the hospital. But I didn’t know what I could possible add, then I saw this  post by shelley that I had to point out….

www.acehaid.org

Wasn’t the point of sharepoint to make your life easier?

okay I give up 🙂

You know it’s bad when I do this in my blog. I have tried the newsgroups and googled myself to death and the clock is ticking…

I have been having a problem with getting file objects with SPWeb.GetFile for about a day. No matter what file name/path I pass into GetFile(), I get strange results: SPFile.Exists=false and many operations such as SPFile.Checkout fail. However, SPFile.OpenBinary works just fine. I have had this happen coding this directly into an ASP.NET page as well as when buildling a web service. All of the documentation says “this is the way to do it” but I find nothing that says “but if it doesn’t work…” – you know like when you are working with Beta software. I can’t imagine I am the first person who has had this problem!

To dig further into the problem, I built a test where I iterate through the webs and folders and then files in the folder, I am then taking a string representing the file (either ServerRelativeURL or some flavor of it) and creating a new file from it. Then if I attempt to SPWeb.GetFile(filepath) using the various paths and you can see that still, I consistently get SPFile.Exists=false even when I know the file is there.

Having iterated to a file in a folder with “For Each fileA As SPFile In folder.Files”

fileA.exist : True
fileA.Name: “ABR.XLS”
fileA.URL: “Shared Documents/ABR.XLS”
fileA.ServerRelativeURL: “/mysite/nn/Shared Documents/ABR.XLS”

create new files with spweb.getfile and test file.exists
(ServerRelativeURL) File Exists? ( /mysite/nn/Shared Documents/ABR.XLS ) False
File Exists?? ( mysite/nn/Shared Documents/ABR.XLS ) False
File Exists? ( nn/Shared Documents/ABR.XLS ) False

So, what gives here?



www.acehaid.org

Kathleen Dollard coming to Vermont.NET next week

Many moons ago, when I made the transition from FoxPro to Visual Basic, my first resource I hit up was the newsgroups. There was Kathleen Dollard not only present but answering questions and she was the only woman’s name I saw anywhere in those groups. She was very nice and answered some of my really dopie newbie questions. I emailed her offline and said that i really appreciated her presence there, I didn’t feel like such an alien.

Years and years later, I have now developed a wondeful friendship with Kathleen, but only get to see her at random events like TechEd, DevConnections or the MVP Summit. So I am truly thrilled that she is coming to speak at Vermont.NET on Monday – thanks to the fact that she is an INETA speaker! She will be flying in on Saturday and so we get to play for a few days before the meeting.

She will then be heading up to Montreal to present at GUVSM on Tuesday night – again, courtesy of INETA. If I can get enough work done, I will go up with her and give her a mini tour of that beautiful city.

Kathleen will be presenting on Tracing in VS2003 and VS2005. I am not great at tracing, so when Kathleen says it sucks in VS2003 and has been overhauled and is wonderful in VS2005, I believe it! And I certainly need to get this lesson myself.

We will also have our 2nd .NET NEwbie session on Monday. After Laura Blood’s wonderful job at beginner OOP in .NET in June, Rob Hale from IDX is going to follow up with a presentation on Inheritence and Polymorphism in .NET.



www.acehaid.org

Some clarity on public and private keys and their role in encryption

This is something I have learned is very confusing to people, as it was the most often asked question in my Security Basics for WSE talk. I have learned now to explain it as part of the talk, but thought to put it here as I had the same question asked in an email this morning.

You can encrypt data with either the public or private key.

It depends on your goal.

If your goal is confidentiality (i.e. only the recipient should be able to read/comprehend the message) then you want to encrypt with their public key so taht only their private key is able to decrypt the message.

If your goal is authentication (for example, when encryption is used as the process of digital signatures, the source of the message needs to be authenticated) then you need to encrypt with your private key. The recipient then uses your public key to decrypt and that will ONLY work with a message that was encrypted with the correct private key.

If you encrypt with a private key, you can only decrypt that message with the public key from the pair.

If you encrypt with the public key, you can only decrypt the message with the private key from the pair.

It is definitely confusing when you see some cases (eg: confidentiality) where the public key is used to encrypt and others (eg: digital signatures) where the private key is used to encrypt.

www.acehaid.org

Tablet PC Memory Leak fix (and a little iis woes)

I’v been heads down this morning with major IIS problems on my web server. Something about a windows 2003 server patch, Application Pools mucked up, Service Unavailable on everything. Anyway, I uninstalled and reinstalled IIS and am now updating windows 2003 SP1 again, and had a minute to look at blogs and saw lots of pointers to the Tablet PC Memory Leak fix.

When I solve my server problems, I’ll blog about it. Thanks to Brad Kingsley and Mike Campbell for lots of help with that today.

www.acehaid.org

Great article about my sister’s company

My sister used to sell Sun systems to universities and corporations. She definitely has the sales person gene in my family – my dad, sister and brother have it. She is ballsy and smart and friendly so that was a great formula for success. But after a while she got sick of high tech and decided to start her own business that was about as far from high tech as you can get – dog stuff. It has been a successful venture (personally so far, and hopefully someday financially as well) and I am really proud of her. So I love this article that was written about not just her products, but about her business by one of her vendors.

www.acehaid.org