<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hans Rasmussen &#187; WordPress</title>
	<atom:link href="http://www.hansrasmussen.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hansrasmussen.com</link>
	<description>info@hansrasmussen.com, +46 (0)723 207008</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:59:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Customizing WordPress WYSIWYG editor TinyMCE</title>
		<link>http://www.hansrasmussen.com/2012/01/customizing-wordpress-wysiwyg-editor-tinymce/</link>
		<comments>http://www.hansrasmussen.com/2012/01/customizing-wordpress-wysiwyg-editor-tinymce/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 20:09:54 +0000</pubDate>
		<dc:creator>Hans Rasmussen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.hansrasmussen.com/?p=798</guid>
		<description><![CDATA[Since WordPress 3.0 there is a function to apply editor styles to the default WYSIWYG editor TinyMCE. By using the function add_editor_style(); you can define the stylesheet where you have your editor styles defined. Typically you put the call in your theme&#8217;s functions.php file. Default the function looks in your themes root folder for the [...]]]></description>
			<content:encoded><![CDATA[<p>Since WordPress 3.0 there is a function to apply editor styles to the default WYSIWYG editor TinyMCE. By using the function <span style="color: #3366ff;">add_editor_style();</span> you can define the stylesheet where you have your editor styles defined. Typically you put the call in your theme&#8217;s <span style="color: #3366ff;">functions.php</span> file. Default the function looks in your themes root folder for the file <span style="color: #3366ff;">editor-style.css</span> and if you want to, you can specify a location and stylesheet name yourself. Location starts with the themes root folder; <span style="color: #3366ff;">add_editor_style(&#8216;css/editorstyles.css&#8217;);</span></p>
<p>Notice that you should of course not copy all your template stylesheet styles to the editor stylesheet. Only the ones necessary, typically the styles that is used for styling your posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hansrasmussen.com/2012/01/customizing-wordpress-wysiwyg-editor-tinymce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Live Writer with WordPress</title>
		<link>http://www.hansrasmussen.com/2010/03/windows-live-writer-with-wordpress/</link>
		<comments>http://www.hansrasmussen.com/2010/03/windows-live-writer-with-wordpress/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 00:27:18 +0000</pubDate>
		<dc:creator>Hans Rasmussen</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Windows Live Writer]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.hansrasmussen.com/2010/03/windows-live-writer-with-wordpress/</guid>
		<description><![CDATA[I use WordPress as a blogging tool. Instead of logging into the administration system I can easily create my blog entries in a desktop program and publish my entry if XML-RPC and Atom Publishing Protocol settings are enabled in your WordPress blog (Settings –&#62; Writing) I use Windows Live Writer and my blog is in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hansrasmussen.com/wp-content/uploads/2010/03/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="image" border="0" alt="image" align="left" src="http://www.hansrasmussen.com/wp-content/uploads/2010/03/image_thumb.png" width="244" height="221" /></a> </p>
<p>I use WordPress as a blogging tool. Instead of logging into the administration system I can easily create my blog entries in a desktop program and publish my entry if XML-RPC and Atom Publishing Protocol settings are enabled in your WordPress blog (Settings –&gt; Writing)</p>
<p>I use Windows Live Writer and my blog is in a hosted environment and therefore I can not configure server myself since configuration is shared among all users.</p>
<p>I noticed using WordPress 2.9.2 that I could not use any desktop program to remotely publish correctly formatted posts anymore. &lt;&gt; and &amp; characters were removed from my posts and therefore rendered incorrectly. I found out that it is was caused by an incorrect usage of a library, LibXML2, associated with PHP (the scripting engine WordPress use). </p>
<p>To correct this problem in a hosted environment you can download a plug-in that will help you take care of this problem. <a title="http://core.trac.wordpress.org/ticket/7771" href="http://core.trac.wordpress.org/ticket/7771">http://core.trac.wordpress.org/ticket/7771</a></p>
<p>The plugin can be located here <a title="http://josephscott.org/code/wordpress/plugin-libxml2-fix/" href="http://josephscott.org/code/wordpress/plugin-libxml2-fix/">http://josephscott.org/code/wordpress/plugin-libxml2-fix/</a></p>
<p>If you still have problems (which I had), you can try to downgrade the library one version further by editing the plugin file libxml2-fix.php</p>
<p>Replace:</p>
<p>if (    <br />&#160;&#160;&#160; LIBXML_DOTTED_VERSION == &#8217;2.6.27&#8242; </p>
<p>With: </p>
<p>if (    <br />&#160;&#160;&#160; LIBXML_DOTTED_VERSION ==<strong> &#8217;2.6.26&#8242;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hansrasmussen.com/2010/03/windows-live-writer-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing LAMP (easy way)</title>
		<link>http://www.hansrasmussen.com/2010/02/installing-lamp-easy-way/</link>
		<comments>http://www.hansrasmussen.com/2010/02/installing-lamp-easy-way/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 23:41:39 +0000</pubDate>
		<dc:creator>Hans Rasmussen</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.hansrasmussen.com/?p=41</guid>
		<description><![CDATA[I previously wrote about how to install WordPress on Ubuntu with some information on how to setup Apache, mySQL, PHP. A faster way (if you do not care about selecting and configuring manually) sudo tasksel install lamp-server]]></description>
			<content:encoded><![CDATA[<p>I previously wrote about how to install WordPress on Ubuntu with some information on how to setup Apache, mySQL, PHP.</p>
<p>A faster way (if you do not care about selecting and configuring manually)</p>
<p>sudo tasksel install lamp-server</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hansrasmussen.com/2010/02/installing-lamp-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up WordPress on Ubuntu</title>
		<link>http://www.hansrasmussen.com/2010/02/setting-up-wordpress-on-ubuntu/</link>
		<comments>http://www.hansrasmussen.com/2010/02/setting-up-wordpress-on-ubuntu/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 23:39:57 +0000</pubDate>
		<dc:creator>Hans Rasmussen</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.hansrasmussen.com/?p=38</guid>
		<description><![CDATA[There are a few good blogs so I decided to install/configure WordPress on Ubuntu 7.1 workstation to see what is was all about. Since I wasn&#8217;t using any packaging tools I tried to make it through a terminal window. That wasn&#8217;t that easy as I thought so I thought I&#8217;d give some documentation about the steps. Most [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few good blogs so I decided to install/configure WordPress on Ubuntu 7.1 workstation to see what is was all about.</p>
<p>Since I wasn&#8217;t using any packaging tools I tried to make it through a terminal window. That wasn&#8217;t that easy as I thought so I thought I&#8217;d give some documentation about the steps. Most of if was found through &#8220;Google&#8221;, but some also by reading further into different documentation on each of the websites for each technology.</p>
<p>Installing Ubuntu 7.10 was easy. Inserted the CD booted my laptop answered a few questions and in 20 min I was running my Ubuntu 7.10 workstation. Even gave it a running on the software updates and it was all ready in a few minutes.</p>
<p>First you need to install Apache2 so in a terminal window you need to type</p>
<p><strong>sudo apt-get install apache2</strong></p>
<p>Now when Apache is installed you want to install PHP and other necessary libraries for Apache</p>
<p><strong>sudo apt-get install php5</strong></p>
<p>sudo apt-get install libapache2-mod-php5</p>
<p>sudo /etc/init.d/apache2 restart</p>
<p>When PHP is installed you want to install MySQL and other necessary libraries so that PHP, Apache and MySQL integrates. Notice when you install you will be requested to create a password for user &#8216;root&#8217;. Please remember this password. It is needed later on.</p>
<p><strong>sudo apt-get install mysql-server</strong></p>
<p>sudo apt-get install mysql-client</p>
<p>sudo apt-get install php5-mysql</p>
<p>sudo apt-get install libapache2-mod-auth-mysql</p>
<p>WordPress also supports URL-rewriting (a technique that enables friendly URLs instead of cryptic mypage.php?id=298)</p>
<p><strong>sudo a2enmod rewrite</strong></p>
<p>sudo gedit /etc/apache2/sites-enabled/000-default</p>
<p>Change AllowOverride None to AllowOverride All</p>
<p>sudo /etc/init.d/apache2 restart</p>
<p>Now when everything is installed you need to create a database and a database user for WordPress in order to complete the instructions on WordPress website. Notice that when you create a user (with the grant usage command) that you need to do this 3 times (once for localhost, once for IP for localhost and once for the hostname of your computer)</p>
<p><strong>mysql -u root -p&#8217;YourpasswordFromInstall&#8217;</strong>(you are now logged in)</p>
<p><strong>CREATE DATABASE wordpress;</strong> <strong>&#8216;wordpressuser&#8217;@'yourcomputername&#8217;</strong><strong>;</strong>(you have now created users and given users privileges to wordpress database so you can now try to logon with newly created user)</p>
<p>grant usage on *.* to &#8216;wordpressuser&#8217;@'localhost&#8217; identified by &#8216;wordpresspassword&#8217;;</p>
<p>grant usage on *.* to &#8216;wordpressuser&#8217;@&#8217;127.0.0.1&#8242; identified by &#8216;wordpresspassword&#8217;;</p>
<p>grant usage on *.* to &#8216;wordpressuser&#8217;@'yourcomputername&#8217; identified by &#8216;wordpresspassword&#8217;;</p>
<p>grant all privileges on wordpress.* to &#8216;wordpressuser&#8217;@'localhost&#8217;;</p>
<p>grant all privileges on wordpress.* to &#8216;wordpressuser&#8217;@&#8217;127.0.0.1&#8242;;</p>
<p>grant all privileges on wordpress.* to</p>
<p>exit;</p>
<p><strong>mysql -u wordpressuser -p&#8217;wordpresspassword&#8217; wordpress</strong>(if everything has gone alright, you should now be logged in)</p>
<p>Now your Ubuntu should be ready for the instructions given at WordPress own website</p>
<p><a href="http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install">http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install</a></p>
<p>A tip is that the root for Apache is in folder /var/www and if you wish to use WordPress as a subdirectory you should copy wordpress directory to here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hansrasmussen.com/2010/02/setting-up-wordpress-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

