joeware - never stop exploring... :)

Information about joeware mixed with wild and crazy opinions...

10/21/2011

WordPress sites working incorrectly with Windows Live Writer (WLW)

by @ 7:06 pm. Filed under tech

As some of you may have noticed over the last few weeks as I found time I was posting test posts to the blog after several of the most recent "real"[1] posts got FUBAR’ed after posting and I wasn’t bright enough to go back and look at the post right away to validate that it had indeed posted properly. This resulted in completely confusing posts that required people to email me to say, hey dude, your blog is all dorked up, you might want to check into that.

Anyway I worked out the problem… finally. Certainly it wasn’t as easy as I thought it should be. Well the fix itself was simple, finding it was another matter entirely. I just didn’t seem to hit on the right combination of search words that didn’t result in post where someone was describing the issue and some bright person was telling them they didn’t know what they were doing.

The issue I was seeing was that HTML tags in Windows Live Writer (WLW) were getting half way sort of stripped. Specifically the opening and closing, ummm brackets? braces? The less than symbol (<) and the greater than symbol (>). The most common issue was the paragraph tag was getting changed from <p> to p and the end paragraph was changing from </p> to /p. Obviously that plays a bit of havoc with the formatting when a browser is trying to render the page.

I wanted to post this so hopefully all of the other people I found out asking the same questions I was asking could get the solution, which is remarkably easy.

So without further adieu… The issue with the partially stripped HTML tags is a bug in libxml2. Specifically using anything less than PHP 5.2.9+ with libxml2 2.7.3+ is susceptible.  The fix is to install a plugin into WordPress called LibXML2 Fix which you can get from your plugins menu or look here -> http://wordpress.org/extend/plugins/libxml2-fix/

 

For more detailed info see http://core.trac.wordpress.org/ticket/7771

 

Oh… How do you know what version of PHP and LibXML2 you are running you ask? Well you can ask your admins or you can look for an info page on your provider’s web site. But, as I found with my provider, they neglected to update their page so I found you can add the following PHP script to your website and just run it by calling it from a browser and it will tell you all about your PHP Installation.

<html>
<head>
<title> PHP Info</title>
</head>
<body>
<?php
phpinfo( );
?>
</body>
</html>

That will give you something that looks like:

image

which will go on and on with info for you. The main things you need to look at are the version of PHP

image

and the version of libxml2.

image

 

As soon as I applied the libxml2 fix plugin I was able to upload posts from Windows Live Writer with no issue.

I hope this helps someone else. 🙂

 

    joe

 

[1] The use of the word real does not in any way shape or form imply quality, suitability, accuracy, or safety to use in any environment whether test, production or otherwise.

Rating 4.00 out of 5

10/19/2011

Test Post

by @ 8:20 pm. Filed under general

This test post is checking to see if using LibXML2 fix plugin.

If the <p> and </p> get changed to p and /p it didn’t work.

 

    joe

Rating 3.00 out of 5

10/13/2011

RIP dmr…

by @ 5:41 pm. Filed under general

Wow, another pioneer of the computer world is gone. Dennis Ritchie who also has had massive impact on people everywhere because of the c language he invented and the UNIX operating system which he was the co-developer for. He wasn’t out there in everyone’s face trying to change the world, his contributions were quiet and in the back, deep core infrastructure that makes it possible for others to properly change the world.

http://www.wired.com/wiredenterprise/2011/10/dennis-ritchie/

All joeware tools were written in c++ which is a derivative of c. So if you use a joeware utility or pretty much anything on a computer anywhere, you owe a debt to Dennis.

Goodbye Dennis and good luck on your next project. 🙂

joe

p.s. Thanks to all of the people who emailed me and let me know about this. I have, unfortunately, been dealing with some medical issues with my dad the last few days and I haven’t really been paying much attention to the rest of the world. Thankfully the Dr’s and nurses were able to sort it out and he appears to be doing much better now.

Rating 4.33 out of 5

10/5/2011

RIP Steve Jobs…

by @ 8:32 pm. Filed under general

Dear Steve,

You truly changed the world in an immeasurable but definitively positive way, not many people can make and substantiate that claim.

http://www.apple.com/stevejobs/

joe

Rating 4.00 out of 5

10/3/2011

Re-Awarded Microsoft MVP – Year 10.

by @ 6:13 pm. Filed under general

I am very proud to announce that I have been awarded the Microsoft MVP award for 2011. This is my tenth year as an MVP. Very cool. 🙂

Dear joe,
Congratulations! We are pleased to present you with the 2011 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in Directory Services technical communities during the past year.

The Microsoft MVP Award provides us the unique opportunity to celebrate and honor your significant contributions and say “Thank you for your technical leadership.”

joe

Rating 4.71 out of 5

9/26/2011

Quake 2 Source Code Review

by @ 3:50 pm. Filed under tech

This is kind of interesting if you are into that sort of thing.

http://fabiensanglard.net/quake2/index.php

Rating 3.00 out of 5

9/20/2011

C# coding

by @ 4:36 pm. Filed under tech

So I had to write another C# program recently for work and my thoughts on C# is that it is growing on me, it reminds me very much of PERL actually. However I wish C# could be compiled directly to native machine code. If it could be compiled directly to native machine code, I would be very close to jumping to it from C++. Perhaps though I am only saying this as I am in the process of switching from C++ Builder to Visual Studio and I haven’t yet ported all of my libraries and utility code which do a lot for me that is done in C#, especially around string handling etc.

Anyway, what did I write? Unfortunately not something I can share on my website as it was for work. It is a command line tool for performing some list functions in MOSS 2007. Specifically it will enumerate the sites on a MOSS Server, then it will enumerate the#160; lists for a given site, then it will list the views of a given list and finally it will retrieve the data for a given list/view to a TAB delimited file.

I used to get that data from a list/view via the XML FEED format of the list web page, however I found a case where MOSS breaks and won’t output *any* information at all based on a certain field type and if you add that field to a view, bam you go from getting data to getting nothing. I had a PERL script that would pull that page and parse the XML and generate the TAB file in less than a minute. The new C# utility takes several minutes. Mostly I think that time is sucked up in the MOSS 2007 Web Services that have to be used to get the data. Thankfully my use of the tool is just to run it once a day to check for updates.

joe

Rating 3.00 out of 5

9/6/2011

Awesome Google Doodle – Happy Birthday Freddie.

by @ 10:29 am. Filed under general
Rating 4.00 out of 5

9/5/2011

Happy Labor Day!

by @ 4:09 pm. Filed under general

To all of the US readers, Happy Labor Day… Summer is unofficially over now and I will start losing the weather to work on outside projects and have to start working on serious work type stuff again. That is good, I need to wrap up some changes I had to make to AdFind for some bugs and get that released. And continue working on the port to Visual Studio so I can start producing x64 binaries along with the x86 binaries.

It actually feels like summer is over here in SE Michigan right now… 61 degrees as of 4PM and very windy… Of course just a couple of days ago it was nearly 100. Supposed to be 80 again by next weekend. That’s Michigan if you haven’t ever visited. Smile

Have a great day!

  joe

 

P.S. I was in Chicago this last weekend, it was absolutely beautiful there. But man, how do you deal with the sheer number of people and all of that traffic (and I didn’t drive much at all, mostly was on the North Line Train and walking). 

Rating 3.00 out of 5

8/22/2011

Wow – HP Touchpad sales blowing up online retailer web sites all over the internet!

by @ 3:53 pm. Filed under tech

So we have, I think, established that people didn’t think the HP TouchPad sucked… It was just priced a bit high. Now that the TouchPad fire sale is in full effect all of the main websites you could buy it through at the discounted price are either broken or out of stock.

If they had had a big time sale up front, perhaps they would have built up some decent market share and developer base and groundswell, and also perhaps the decision tree that led to the cancelling of the product would have been different. It was a bit arrogant to try and put out an unknown quantity pad into the market at the same price levels as the current market leader and expect to take market share. Especially in this economy[1].

   joe

 

[1] This tagline “…in this economy” is starting to sound to me like “…in the Longhorn timeframe” that we used to hear all of the time out of Microsoft. Winking smile

Rating 3.00 out of 5

[joeware – never stop exploring… :) is proudly powered by WordPress.]