I rode in one of the cars they are testing the different seating layouts in.
I have been having a problem with Picasa not finding new files. It should be seeing the files and adding them, the directories they are in are marked in the Folder Manager as Always Watch. However for some reason Picasa was not picking them up…
Luckily I figured out the reason it was not finding them! When Picasa went from version 2.0 to 2.5 it add a change to Folder Manager. Folder Manager no longer looks at files inside any folders named “Originals” and I had been saving all my files in a date based file tree with all of the original files stored in folders all “Originals”.
So that seems to be the problem. Now I need an easy way to rename about 1000 folders!!
So work on my Pocket Post has been slowly progressing, right now I am just hunting down annoying bugs. Most of them I didn’t created, and I am stuck Googling for them. To help others out, I thought I would describe the problem and give the solution.
- Problem: I keep getting the error: “Could not establish trust relationship with remote server” when trying to connect to a server using SSL. The server in question was the Blogger server.Solution: I tried just typing in the address “https://www.blogger.com/atom” into the browser and it turns out that blogger’s certificate is bad. Since you are accessing blogger programatically, the warning never pops up and instead the request fails. The workaround is to add your own certificate processing routine that will accept any certificate, even if it is not valid. I found a great bit of code here that does just that: CODE. Problem solved!
- Problem: After adding this code, I kept getting a weird build error from Visual Studio saying it was having trouble finding a resource: “The “GenerateResource” task failed unexpectedly. System.Runtime.InteropServices.COMException (0×8000000A): The data necessary to complete this operation is not yet available.” Solution: Turns out I wasn’t the only one having this problem. Unfortunately no one, not even Microsoft had an idea of what exactly was causing it, luckily they had a solution that involves changing the Project file. Unfortunately there solution has a small bug, it should be: true They are missing a “/”. Anyhow this seemed it fix it for me.
- Problem: The Atom API for blogger seems to be giving errors for some posts and not other.
Solution: Turns out the problem was that I was sending non-escaped charecters: !, &, <, > without properly packaging them. To fix this I placed the Title string and the Post Content string in CDATA tags. Now it looks like this: "" and things work much better!