Johnny Five is alive!
July 27th, 2007 by
Dor
Posted in Hebrew Posts | No Comments » | ![]() |
Dor
Posted in Hebrew Posts | No Comments » | ![]() |
Dor Posted in Hebrew Posts | 1 Comment » | ![]() |
Dor 1. The Problem
I was unable to write using this cool application for a while now. The reason was this annoying error:
Invalid Server Response - The response to the blogger.getUsersBlogs method received from the weblog server was invalid.
So I did some research and found this post about changing the .htaccess file. Unfortunently it didn’t solve the problem.
Then I installed Fiddler 2, the wonderful HTTP proxy application. I started Windows Live Writer again and let it reconnect to my blog. I analyzed the response from XMLRPC.PHP after receiving the error again, and found this response from the server:
XML-RPC server accepts POST requests only.
I searched for this error and got to this post about the problem, which was close but didn’t solve it either. However, a link from the post to the support page on the PHP bug tracker showed me a different command to put in the XMLRPC.PHP file.
And it worked! Thanks Will! ![]()
So now I’m writing this post using Windows Live Writer… finally!
P.S. Lovely link for troubleshooting WordPress and Windows Live Writer.
2. The New Stuff
So now I can do all sorts of nice things. First, I can embed videos - which I couldn’t using the WordPress default rich text editor. Also, I installed some add-ins for WLW:
In summary - maybe now I’ll start writing more ![]()
Dor.
Posted in English Posts | 2 Comments » | ![]() |
Dor ככה: (מתוך אתר 5min המגניב)
Posted in Hebrew Posts | No Comments » | ![]() |
Dor In WSS 3.0, it is now possible to update a list item (SPListItem) without changing the contents of the Modified or Editor fields.
This wonderful method is called SPListItem.SystemUpdate (has two overloads).
This solves the annoying problem where people would see some system user account that is responsible for the last update, and the time was also some strange time in which the system account did its actions.
So here’s the code sample:
SPSite site = new SPSite(“http://server/sites/someSite”); SPWeb web = site.OpenWeb(); SPList list = web.Lists[“ListNameHere”]; // Create new item SPListItem item = list.Items.Add(); item[“Title”] = “New Item Title”; item[“Modified”] = new DateTime(2000, 1, 1); item[“Created”] = new DateTime(2000, 1, 1); item[“Author”] = web.Users.GetByEmail(“author@mydomain.com”); item.SystemUpdate(); // Update an item // (Using some item ID from a pre-populated list) SPListItem itemu = list.Items.GetItemById(2); itemu[“Title”] = “An updated item title”; itemu[“Author”] = web.Users.GetByEmail(“author@mydomain.com”); itemu.SystemUpdate();
Posted in English Posts, WSSv3 | No Comments » | ![]() |