<?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>Weblog Mechanic</title>
	<atom:link href="http://www.weblogmechanic.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weblogmechanic.com</link>
	<description>Always keep tinkering</description>
	<lastBuildDate>Mon, 06 May 2013 09:19:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How-to clean CSS stylesheets fast</title>
		<link>http://www.weblogmechanic.com/2013/05/06/howto-clean-css-stylesheets-fast/</link>
		<comments>http://www.weblogmechanic.com/2013/05/06/howto-clean-css-stylesheets-fast/#comments</comments>
		<pubDate>Mon, 06 May 2013 09:18:45 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=233</guid>
		<description><![CDATA[<p>Just another quick tip but might be useful for you, lazy web developers, out there. Recently I needed to clean CSS stylesheets for one of my projects which has a theme from years ago ( 2007 or 2008 ) and needless to say many changes where done since. I didn&#8217;t want to manually try half [...]</p><p>The post <a href="http://www.weblogmechanic.com/2013/05/06/howto-clean-css-stylesheets-fast/">How-to clean CSS stylesheets fast</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Just another quick tip but might be useful for you, lazy web developers, out there. Recently I needed to clean CSS stylesheets for one of my projects which has a theme from years ago ( 2007 or 2008 ) and needless to say many changes where done since.</p>
<p>I didn&#8217;t want to manually try half of the selectors and see if it would change anything somehow so I started to look for some online tools to do this tasks. There are quite a few but in the end I went for a Firebug extension called &#8216;<a title="Dust me Selectors" href="http://www.brothercake.com/dustmeselectors/" target="_blank"> Dust-me selectors</a>&#8216;.</p>
<p>The way it works is quite inventive. Instead of trying to scan and parse your pages you can simply select &#8216;scan&#8217; and click around your site. Every selector encountered is listed as &#8216;used&#8217; so in the end you end up with a list of unused selectors which you can export to another file.</p>
<p>If you have a very polluted stylesheet you can just replace to old one (backup!) with the new one and start working from there by deleting the UNUSED tags Dust Me creates and rebuilding whatever needed to be done anyway. In my case I just a <a title="Meld" href="http://meldmerge.org/" target="_blank">diff tool</a> to just for differences and work my way through the stylesheet in this matter.</p>
<p><strong>Hint:</strong> If you are scanning your pages be sure to click through every possible page. Especially unfolding menu&#8217;s and selectors like a:hover, a:visited are sometimes &#8216;forgotten&#8217; while being in use.</p>
<h2>Conclusion</h2>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/dust-me-selectors/" target="_blank">Dust-me selectors</a> is not a magic stick which will output very clean CSS just by the click of a button but is a very useful tool to help you in cleaning CSS stylesheets in an organized way.</p>
<p>The post <a href="http://www.weblogmechanic.com/2013/05/06/howto-clean-css-stylesheets-fast/">How-to clean CSS stylesheets fast</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2013/05/06/howto-clean-css-stylesheets-fast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom filter in Feedwordpress Advanced Filters</title>
		<link>http://www.weblogmechanic.com/2013/04/20/custom-filter-in-feedwordpress-advanced-filters/</link>
		<comments>http://www.weblogmechanic.com/2013/04/20/custom-filter-in-feedwordpress-advanced-filters/#comments</comments>
		<pubDate>Sat, 20 Apr 2013 09:00:24 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Feedwordpress Advanced Filters]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom filter]]></category>
		<category><![CDATA[feedwordpress]]></category>
		<category><![CDATA[feedwordpress advanced filters]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=214</guid>
		<description><![CDATA[<p>I already posted earlier that Feedwordpress Advanced Filters now supports the possibility to add your own custom filters. One of the core features of FAF has always been to be able to easily extend the feature set. With the most recent version it&#8217;s easy to drop your own filter into FAF. This post will also [...]</p><p>The post <a href="http://www.weblogmechanic.com/2013/04/20/custom-filter-in-feedwordpress-advanced-filters/">Custom filter in Feedwordpress Advanced Filters</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>I already <a title="Feedwordpress Advanced Filters 0.5.5" href="http://www.weblogmechanic.com/2013/04/19/feedwordpress-advanced-filters-0-5-5/">posted</a> earlier that Feedwordpress Advanced Filters now supports the possibility to add your own custom filters.</p>
<p>One of the core features of FAF has always been to be able to easily extend the feature set. With the most recent version it&#8217;s easy to drop your own filter into FAF. This post will also serve as the beginning of some public documentation. </p>
<p><strong>Warning! After this it will get a bit technical</strong><br />
<span id="more-214"></span></p>
<h3>FAFFilter Class</h3>
<p><code><br />
public static $name = "remove_html";<br />
public static $description = "Remove HTML from post";<br />
public static $context = "posts";<br />
protected static $controls = "search_title, search_excerpt, search_content, html_allow_styles, html_allow_images,html_allow_links,html_allow_custom"; </p>
<p>static void getControls ()<br />
static void setControls ()<br />
fafFilter __construct ( $post,  $args)<br />
void display ()<br />
Array execute ()<br />
</code></p>
<p>This is what a basic filter looks like. </p>
<p>The class properties define name, description (&#8216;nice name&#8217; &#8211; this will be used  in the interface), context (either posts or categories. Will load the filter as an option on one of these Feedwordpress pages ) and a comma-delimited line of required fields. </p>
<p>The <strong>static</strong> functions are used to define your input controls in the interface. Basically it defines which options you want to give the user. </p>
<p>The only required function is &#8216;execute&#8217; which is where you put your actual filter functionality and is called when the filter is invoked on a post during the update process. </p>
<p>The display function is used for an upcoming overview page. The use will be to correctly display plugin options there. </p>
<h3>Interface</h3>
<p>If you want to add a custom field option to your plugin. This is the format of a control. It is fairly straight-forward:<br />
<code>$controls["name of option"] = array(<br />
		"name" => "your field name",<br />
		"desc" => __("you field description"),<br />
		"type" => "text",<br />
		"default" => "",<br />
		"required" => true);<br />
</code><br />
These controls should be defined in the setControls() function of your filter class</p>
<p>The name of option is used for the $controls property in your class. Name is the field name and will be the name of your HTML field and stored in database. This is also the value you query when executing your filter. Desc will be shown to user. </p>
<p>Type is the type of your control. Currently it can be either &#8216;text&#8217; ( input type text ) or &#8216;checkbox&#8217;. Others are not <em>yet</em> supported but will be if need arises. The third option can be a custom name like &#8216;my_field_box&#8217;. This allows you to control custom output for a field in your filter. FAF will search for a function by that name in your plugin class ( e.g you need a function my_field_box(); which outputs desired content ).</p>
<p>Default is the default value when the user adds your filter. For a checkbox to be checked the value should be &#8217;1&#8242;, for text a default string of characters.</p>
<p>When required is set the plugin will not save settings but instead give an error stating this options is required. Obviously this is not smart to do on anything of type checkbox since it would for the user to check it. </p>
<h3>Executing the filter</h3>
<p>The Filter constructor will load two properties in your class: $post and $args. $post is the post_array containing all the fields of the post about to be inserted. $args are all options set, i.e your form fields in an array. </p>
<p><code>$post = $this->post;<br />
$args = $this->args;<br />
$content = $post["post_content"];<br />
$field = $args["your_field_name"];<br />
</code></p>
<p>With this information you can filter the post. <strong>Important!</strong> Your filter should ALWAYS return the updated post array back. If not the whole post will be dropped, only do this if that is the point of your filter. </p>
<p><code><br />
$post["content"] = $my_updated_content;<br />
return $post;<br />
</code></p>
<p><em>Don&#8217;t forget to update the post array and then return it. </em></p>
<h3>Activation</h3>
<p>Drop your filter in the &#8216;/filters/&#8217; subdirectory of the plugin. Everything in this directory with the extention .php will be loaded into FAF. Be sure to test first locally though since bad coding or fatal errors will break, well, everything. Also be sure that your filter &#8216;extends&#8217; the fafFilter abstract class!</p>
<h3>Samples</h3>
<p>Yes this is not for the novice, but it ain&#8217;t that hard either. The best thing to do is just look at the already existing filters. You can copy one of them and start editing to fit your needs. As a reminder: this feature is for experienced coders, use at your own peril. </p>
<h3>Share!</h3>
<p>Feedwordpress Advanced Filters is constantly looking to add new filters to be the best option for Feedwordpress. If you miss a feature and decide to write your own filter please consider sharing it if it would benefit other people as well. </p>
<p>Any questions are welcome in the comments (or <a href="http://wordpress.org/support/plugin/faf" target="_blank">support area</a>). I will try to get back to you best way I can.</p>
<p>The post <a href="http://www.weblogmechanic.com/2013/04/20/custom-filter-in-feedwordpress-advanced-filters/">Custom filter in Feedwordpress Advanced Filters</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2013/04/20/custom-filter-in-feedwordpress-advanced-filters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feedwordpress Advanced Filters 0.5.5</title>
		<link>http://www.weblogmechanic.com/2013/04/19/feedwordpress-advanced-filters-0-5-5/</link>
		<comments>http://www.weblogmechanic.com/2013/04/19/feedwordpress-advanced-filters-0-5-5/#comments</comments>
		<pubDate>Fri, 19 Apr 2013 14:05:55 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Feedwordpress Advanced Filters]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[feedwordpress]]></category>
		<category><![CDATA[feedwordpress advanced filters]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=206</guid>
		<description><![CDATA[<p>Feedwordpress Advanced Filters version 0.5.5 has been released. This is mainly a bug fixing release. Important to know is that the option to add you own custom filter is now enabled. I will write about this new feature in a later post. See the changelog for the bugs fixed. You can get the latest version [...]</p><p>The post <a href="http://www.weblogmechanic.com/2013/04/19/feedwordpress-advanced-filters-0-5-5/">Feedwordpress Advanced Filters 0.5.5</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Feedwordpress Advanced Filters version 0.5.5 has been released. This is mainly a bug fixing release. Important to know is that the option to add you own custom filter is now enabled. I will write about this new feature in a later post. </p>
<p>See the <a href="http://wordpress.org/extend/plugins/faf/changelog/" target="_blank">changelog</a> for the bugs fixed.  </p>
<p>You can get the latest version via the WordPress auto-update or download the plugin from the <a href="http://wordpress.org/extend/plugins/faf/" target="_blank">WordPress site</a>.</p>
<p>For the next version I have a multitude of enhancements and new features on my list:</p>
<ul>
<li>Filter for expiring posts. Posts will be unpublished or deleted after a certain time. </li>
<li>Filter for checking and fixing URL&#8217;s (i.e a www link without http:// resulting in incorrect links ) </li>
<li> A page where you can overview all your filter settings on all feeds</li>
<li>A filter to search for duplicated posts and ignore the new ones based on a certain threshold ( i.e posts who are 99% the same are ignored )</li>
</ul>
<p>Since of course my time is also limited I&#8217;m wondering which of these to do first or maybe concentrate on something totally different ( multi-language support for instance ). You can help me by providing feedback of which features you are dearly waiting for by commenting or contacting me. Or just to say &#8216;yeah&#8217; of course. </p>
<p>The post <a href="http://www.weblogmechanic.com/2013/04/19/feedwordpress-advanced-filters-0-5-5/">Feedwordpress Advanced Filters 0.5.5</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2013/04/19/feedwordpress-advanced-filters-0-5-5/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>FeedWordPress Advanced Filters version 0.5 released!</title>
		<link>http://www.weblogmechanic.com/2013/04/09/feedwordpress-advanced-filters-version-0-5-released/</link>
		<comments>http://www.weblogmechanic.com/2013/04/09/feedwordpress-advanced-filters-version-0-5-released/#comments</comments>
		<pubDate>Tue, 09 Apr 2013 11:13:56 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Feedwordpress Advanced Filters]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[feedwordpress]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=180</guid>
		<description><![CDATA[<p>After my november announcement of the plugin I was working on, I&#8217;m happy to present a decent version of Feedwordpress Advanced Filters. Decent that is with a nice interface, everything working and fairly stable. I have been using the plugin in development for a while already and a few people were interested at testing the [...]</p><p>The post <a href="http://www.weblogmechanic.com/2013/04/09/feedwordpress-advanced-filters-version-0-5-released/">FeedWordPress Advanced Filters version 0.5 released!</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>After my november <a href="http://www.weblogmechanic.com/2012/11/16/feedwordpress-filters-announcement/">announcement</a> of the plugin I was working on, I&#8217;m happy to present a decent version of Feedwordpress Advanced Filters.</p>
<p><img class="alignleft size-medium wp-image-171" alt="feedwordpress_advanced_filters_screen_05" src="http://www.weblogmechanic.com/wp-content/uploads/2013/04/feedwordpress_advanced_filters_screen_05-580x270.png" width="580" height="270" /></p>
<p>Decent that is with a nice interface, everything working and fairly stable. I have been using the plugin in development for a while already and a few people were interested at testing the alpha-versions as well. For me it works like a charm, so I&#8217;m pretty excited about releasing this plugin today.</p>
<p>You can get the plugin and view information about it at the <a title="Feedwordpress Advanced Filters" href="http://www.weblogmechanic.com/plugins/feedwordpress-advanced-filters/">plugin page</a>!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="http://www.weblogmechanic.com/2013/04/09/feedwordpress-advanced-filters-version-0-5-released/">FeedWordPress Advanced Filters version 0.5 released!</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2013/04/09/feedwordpress-advanced-filters-version-0-5-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fotoxx : The IrFanView of Linux?</title>
		<link>http://www.weblogmechanic.com/2013/03/19/fotoxx-the-irfanview-of-linux/</link>
		<comments>http://www.weblogmechanic.com/2013/03/19/fotoxx-the-irfanview-of-linux/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 15:54:27 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Fotoxx]]></category>
		<category><![CDATA[image editor]]></category>
		<category><![CDATA[IrFanView]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[photo]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=153</guid>
		<description><![CDATA[<p>For years I have been telling people that using Linux is great for almost everything, except for quickly editing and uploading a bunch of photos. I have tried many many image programs (Krita, Gtumb, F-spot, Ristretto, ImageMagick, Gimp etc etc) and while a lot of them are useful for lot&#8217;s of things I yet had [...]</p><p>The post <a href="http://www.weblogmechanic.com/2013/03/19/fotoxx-the-irfanview-of-linux/">Fotoxx : The IrFanView of Linux?</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>For years I have been telling people that using Linux is great for almost everything, except for quickly editing and uploading a bunch of photos. I have tried many many image programs (Krita, Gtumb, F-spot, Ristretto, ImageMagick, Gimp etc etc) and while a lot of them are useful for lot&#8217;s of things I yet had to find anything close to <a href="http://en.wikipedia.org/wiki/IrfanView" target="_blank">IrfanView</a> on Windows. My usual method is selecting a picture from the gallery, then crop, resize, sharpen and save the image somewhere else for uploading.</p>
<p>Often I used IrfanView on Wine, but of course that is also suboptimal and not really comfortable. Even apart from some quirks that Wine seems to introduce. Gimp always seems to be a bit &#8216;too much&#8217; when just wanting to quickly edit a bunch of photos.</p>
<p>Today I <a href="http://www.linuxplanet.com/linuxplanet/tutorials/7152/1" target="_blank">ran</a> into <a href="http://www.kornelix.com/fotoxx.html" target="_blank">Fotoxx</a> ( which sounds a little weird ) by accident and I was happily surprised by the amount of features it has while keeping stuff simple. The interface is clunky and takes some time to get used to. Hopefully this will be a matter of attention in future versions to come.</p>
<p style="text-align: center;"><a href="http://www.weblogmechanic.com/wp-content/uploads/2013/03/fotoxx_exampl.jpg" rel="lightbox[153]"><img class="size-full wp-image-154 aligncenter" alt="fotoxx_exampl" src="http://www.weblogmechanic.com/wp-content/uploads/2013/03/fotoxx_exampl.jpg" width="450" height="251" /></a></p>
<p>Features include everything I need for daily life like crop ( called &#8216;trim&#8217; ), resizing, sharpen and everything else you might except from fast, simple photo editing software. There is also a gallery which does what it needs to do, but also suffers from bad design decisions ( like single-click map navigating, why? ).</p>
<p style="text-align: center;"><a href="http://www.weblogmechanic.com/wp-content/uploads/2013/03/fotoxx_gallery.jpg" rel="lightbox[153]"><img class="size-full wp-image-155 aligncenter" alt="fotoxx_gallery" src="http://www.weblogmechanic.com/wp-content/uploads/2013/03/fotoxx_gallery.jpg" width="450" height="244" /></a></p>
<p>Another good thing is that Fotoxx comes with a lot of batch-filter options, in case you need to transform a whole bunch of images. I didn&#8217;t look at this closely but might come in handy if you are stuck with a use load of similar photo editing you have to do.</p>
<p>Concluding, I don&#8217;t think it&#8217;s a perfect solution yet but it certainly is much better than what I have seen so far. In some ironic way it looks like IrFanView since the latter&#8217;s interface is also far from being perfect. Be aware of very old versions that some distributions still seem to carry by default. You can get the latest packages <a href="http://www.kornelix.com/packages.html" target="_blank">here</a>.</p>
<p>If you are aware of better solutions for a good Linux image editor share it in the comments!</p>
<p>The post <a href="http://www.weblogmechanic.com/2013/03/19/fotoxx-the-irfanview-of-linux/">Fotoxx : The IrFanView of Linux?</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2013/03/19/fotoxx-the-irfanview-of-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regular expressions &#8211; test online</title>
		<link>http://www.weblogmechanic.com/2013/01/05/regular-expressions-test-online/</link>
		<comments>http://www.weblogmechanic.com/2013/01/05/regular-expressions-test-online/#comments</comments>
		<pubDate>Sat, 05 Jan 2013 14:44:21 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[pcre]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=146</guid>
		<description><![CDATA[<p>I have been fiddling around with Regular Expressions these days. As most people who ever tried it know that you can do about anything but it is at the same time nearly impossible. Instead of making a test page, altering and refreshing minor changes all day I decided to look around a bit for a [...]</p><p>The post <a href="http://www.weblogmechanic.com/2013/01/05/regular-expressions-test-online/">Regular expressions &#8211; test online</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>I have been fiddling around with Regular Expressions these days. As most people who ever tried it know that you can do about anything but it is at the same time nearly impossible.</p>
<p>Instead of making a test page, altering and refreshing minor changes all day I decided to look around a bit for a handy tool. There are a lot of them out there but I found a nice one. </p>
<p>The cool thing is you can easily switch between modes, modifiers and it automatically refreshed. The only minor point is that it is sometimes hard to see the difference between no match and an expression crash. </p>
<p>Check it out: <a href="http://regex.larsolavtorvik.com/" title="Online regular expression tester">Online regular expressions tester</a> </p>
<p>Let me know if you found a better one!</p>
<p>The post <a href="http://www.weblogmechanic.com/2013/01/05/regular-expressions-test-online/">Regular expressions &#8211; test online</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2013/01/05/regular-expressions-test-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feedwordpress Filters (announcement)</title>
		<link>http://www.weblogmechanic.com/2012/11/16/feedwordpress-filters-announcement/</link>
		<comments>http://www.weblogmechanic.com/2012/11/16/feedwordpress-filters-announcement/#comments</comments>
		<pubDate>Fri, 16 Nov 2012 08:28:23 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[feedwordpress]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[keywords]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=135</guid>
		<description><![CDATA[<p>Update: Feedwordpress Advanced Filters has been released, see this page. Avid readers of this blog (hi mom!) know that I dive a lot into the Feedwordpress plugin. But still some things are not satisfying enough for me. RSS is a great technique to get data, but unfortunately some of the sites I gather my feeds [...]</p><p>The post <a href="http://www.weblogmechanic.com/2012/11/16/feedwordpress-filters-announcement/">Feedwordpress Filters (announcement)</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><strong>Update:  </strong>Feedwordpress Advanced Filters has been released, see this <a title="Feedwordpress Advanced Filters" href="http://www.weblogmechanic.com/plugins/feedwordpress-advanced-filters/">page</a>.</p>
<p>Avid readers of this blog (hi mom!) know that I dive a lot into the <a href="http://feedwordpress.radgeek.com" target="_blank">Feedwordpress</a> plugin. But still some things are not satisfying enough for me.</p>
<p>RSS is a great technique to get data, but unfortunately some of the sites I gather my feeds from are, let&#8217;s say, not very good. A lot of feeds out there need editing and molding to make it decent. This is one of the reasons I need Feedwordpress filters to shape the content a little bit.</p>
<p><span id="more-135"></span></p>
<p>For simply excluding posts there is the quite nice <a href="http://wordpress.org/extend/plugins/ada-feedwordpress-keyword-filters/" target="_blank">ADA Feedwordpress</a> plugin (if hope to use this logic some day, since it&#8217;s good). But I yet couldn&#8217;t find any plugin that let&#8217;s you do what I want.</p>
<h3>Introducing FeedWordpress Advanced Filters</h3>
<p>I wanted a flexible yet easy method to filter content from feeds. So I decided to start my own plugin. I have had some experience writing small plugins ( replacing this or doing that ) and digging around other peoples plugin, but this is my biggest project so far.</p>
<p><strong>Features: </strong></p>
<p>Filter-wise:</p>
<ul>
<li>Filter certain keywords from the feed</li>
<li>Removing HTML from the post</li>
<li>Being to able to add posts to an extra category if a certain keyword is found</li>
<li>Resize images found in feed to standard WordPress sizes (i.e. &#8216;medium&#8217;)</li>
<li>Ability to move images to front or bottom of post</li>
</ul>
<p>General:</p>
<ul>
<li>Well-written and clear code respecting namespaces etc</li>
<li>Easily extendible ( other filters )</li>
<li>Fitting in the Feedwordpress framework</li>
</ul>
<p><strong>So far</strong></p>
<p>By now I&#8217;m testing the plugin on one of my real sites to see if everything is according to wish, squish bugs and improve things that come up.</p>
<p>The idea is to release to code to the WordPress community (of course) but I want to be sure that no really weird things can happen first.</p>
<p><del>What other filters would you like to see for Feedwordpress? If you came to this article because you are looking for similar functionality and you want to have a go with it on a <strong>Test installation</strong> feel free to comment or contact me!</del></p>
<p>The post <a href="http://www.weblogmechanic.com/2012/11/16/feedwordpress-filters-announcement/">Feedwordpress Filters (announcement)</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2012/11/16/feedwordpress-filters-announcement/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP 5.4 and call-time-pass-by-reference</title>
		<link>http://www.weblogmechanic.com/2012/11/14/php-5-4-and-call-time-pass-by-reference/</link>
		<comments>http://www.weblogmechanic.com/2012/11/14/php-5-4-and-call-time-pass-by-reference/#comments</comments>
		<pubDate>Wed, 14 Nov 2012 14:48:23 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[call-time-pass-by-reference]]></category>
		<category><![CDATA[fatal error]]></category>
		<category><![CDATA[php 5.4]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=132</guid>
		<description><![CDATA[<p>A word of warning. I just updated to PHP 5.4 which broke my installation because call-time-pass-by-reference has been removed in this version. See: passing by reference. Along with some other functions you shouldn&#8217;t be using anymore anyway. See the incompatible list. For up-to-date plugins and software this shouldn&#8217;t be a problem since it was deprecated [...]</p><p>The post <a href="http://www.weblogmechanic.com/2012/11/14/php-5-4-and-call-time-pass-by-reference/">PHP 5.4 and call-time-pass-by-reference</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>A word of warning. I just updated to PHP 5.4 which broke my installation because call-time-pass-by-reference has been removed in this version. See: <a href="http://www.php.net/manual/en/language.references.pass.php" target="_blank">passing by reference</a>.</p>
<p>Along with some other functions you shouldn&#8217;t be using anymore anyway. <a href="http://php.net/manual/en/migration54.incompatible.php" target="_blank">See the incompatible list</a>.</p>
<p>For up-to-date plugins and software this shouldn&#8217;t be a problem since it was deprecated for a while already. </p>
<p>For me it notably breaks the <a href="http://feedwordpress.radgeek.com" target="_blank">Feedwordpress</a> plugin in WordPress and gives a fatal error, which is annoying. A simple solution is present but you need to dive into the code and replace a few lines. <a href="http://www.networkpanda.com/ngis/2011/12/how-to-fix-php-5-4-feedwordpress-plugin-error-call-time-pass-by-reference-has-been-removed/" target="_blank">See the solution here</a>. </p>
<p>I fear <a href="https://www.google.com/search?q=call-time-pass-by-reference wordpress plugin" target="_blank">older plugins</a> of various kinds are also vulnerable for this problem, so I advice to check your installation locally against a new php version to see if any problems arise before your host decides to upgrade their installation! </p>
<p>The post <a href="http://www.weblogmechanic.com/2012/11/14/php-5-4-and-call-time-pass-by-reference/">PHP 5.4 and call-time-pass-by-reference</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2012/11/14/php-5-4-and-call-time-pass-by-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Update_option and serialize</title>
		<link>http://www.weblogmechanic.com/2012/11/08/wordpress-update_option-and-serialize/</link>
		<comments>http://www.weblogmechanic.com/2012/11/08/wordpress-update_option-and-serialize/#comments</comments>
		<pubDate>Thu, 08 Nov 2012 09:36:52 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[get_option]]></category>
		<category><![CDATA[serialize]]></category>
		<category><![CDATA[update_option]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=126</guid>
		<description><![CDATA[<p>I ran into this interesting feature yesterday I was not aware of. If you are trying to put options WordPress using Update_option serializing the data before actually causes unexpected behaviour. The catch is that WordPress already serializes data send to the function. When invoking get_option the data will be unserialized. Obviously this causes an error [...]</p><p>The post <a href="http://www.weblogmechanic.com/2012/11/08/wordpress-update_option-and-serialize/">WordPress Update_option and serialize</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>I ran into this interesting feature yesterday I was not aware of. If you are trying to put options WordPress using Update_option serializing the data before actually causes unexpected behaviour.</p>
<p>The catch is that WordPress <b>already</b> serializes data send to the function. When invoking get_option the data will be unserialized. Obviously this causes an error if you try to unserialize the whole thing after that. </p>
<p>In short, just push an unserialized array unto update_option and everything will be fine!  </p>
<p><code> update_option("stuff",array('foo','bar'));<br />
$foobar = get_option("stuff");<br />
</code></p>
<p><a href="http://nacin.com/2010/04/18/wordpress-serializing-data/" target="_blank">See this blog post</a> for more backgrounds. </p>
<p>The post <a href="http://www.weblogmechanic.com/2012/11/08/wordpress-update_option-and-serialize/">WordPress Update_option and serialize</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2012/11/08/wordpress-update_option-and-serialize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 things to think about when starting a new site</title>
		<link>http://www.weblogmechanic.com/2012/11/06/5-things-to-think-about-when-starting-a-new-site/</link>
		<comments>http://www.weblogmechanic.com/2012/11/06/5-things-to-think-about-when-starting-a-new-site/#comments</comments>
		<pubDate>Tue, 06 Nov 2012 11:07:46 +0000</pubDate>
		<dc:creator>Bas Schuiling</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.weblogmechanic.com/?p=119</guid>
		<description><![CDATA[<p>There are zillions of non-updated and dead sites and most sites could have been a lot better with some consideration. I have been talking with lot&#8217;s of not-internet savvy people looking to jump in online with their own site, either personal or for a small business. Five hings to consider first before even starting a [...]</p><p>The post <a href="http://www.weblogmechanic.com/2012/11/06/5-things-to-think-about-when-starting-a-new-site/">5 things to think about when starting a new site</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>There are zillions of non-updated and dead sites and most sites could have been a lot better with some consideration.</p>
<p>I have been talking with lot&#8217;s of not-internet savvy people looking to jump in online with their own site, either personal or for a small business. Five hings to consider first before even starting a new site. </p>
<p><span id="more-119"></span></p>
<h3>1. Do I need a website? </h3>
<p>It seems like a weird question, but this should be the beginning of your journey. And the reason why most websites die within a few weeks. </p>
<p>If you have a small business (or any business) the question will be &#8216;yes&#8217;. No matter how small, your own online presence will be a good thing. </p>
<p>If you want a personal site, the question is probably &#8216;no&#8217;.  I would recommend to first try a free service and see if you can keep up. But most likely after using social media an own site might seem like too much. Be happy with the fact that nobody will visit your website, outside of your family and maybe some friends ( and they will lie about it too! ) .</p>
<h3>2. Which information do I have to offer?</h3>
<p>Closely related to question 1: What kind of information I have to offer that isn&#8217;t already widely available everywhere else? </p>
<p>In case of your business I would keep it simple. What do we do, what products do we offer, where are we located and when are we open?</p>
<p>It&#8217;s incredible that some very small companies will go through the trouble of creating a huge website, online ordering and payments, and forget to mention where in the world they are located and when the real-life counterpart is open. </p>
<h3>3. How ofter can I update? </h3>
<p>That brings you to maybe to most important question. Do you really have time to sit down every few days and update your website? Most websites die in the sea of ambition. Before starting there are a zillion ideas. &#8216;Let&#8217;s maintain this open directory of everything that is happening in my city!&#8217; .</p>
<p>If a site is out-of-date people will click away <b>instantly</b>. </p>
<p>There is nothing wrong with not having a blog if you won&#8217;t write on it. If you only have to offer static information, fine. That&#8217;s a lot better than knowing the special offers of 2008.</p>
<h3>4. Don&#8217;t believe everybody </h3>
<p>When starting out with your online presence it doesn&#8217;t have to be perfect. You don&#8217;t need to have all . It much more important to do a few things good, then a lot of things bad. </p>
<p>There are many companies, people and websites around that will try to convince you of the latter. Especially of course when they smell a lot of work. </p>
<p>This is how most of us work: we just take a stack of paper ( yes, no fancy tools ) and a pencil and just write down a list of must-have content. And then we make a few sketches ( if you are a web 2.0 windbag you can call it mood-boarding ) and see what works and what not.</p>
<h3>5. The critical eye</h3>
<p>Sit down for an evening and settle yourself in front of the computer and start browsing. Learn yourself to consciously think about what you are seeing on other pages. </p>
<p>For instance what do you feel? Chaotic blinking stuff or a sober layout? Nice fonts? Too small or too big? Are the links on the place you&#8217;d expect? Do you find your thoughts drifting off from what you are searching here? Or can you find everything quickly?</p>
<p><a href="http://www.weblogmechanic.com/wp-content/uploads/2012/11/bullshitbingo_web20.jpg" rel="lightbox[119]"><img src="http://www.weblogmechanic.com/wp-content/uploads/2012/11/bullshitbingo_web20.jpg" alt="" title="bullshit bingo" width="444" height="365" class="size-full wp-image-121" /></a></p>
<p><em>Be warned..</em></p>
<p>You can play site-bingo.  Take the subjects from this post and collect sites who do them right or wrong or just a few of them right. This way you will teach yourself. Recognizing good ideas and bad ideas will help you tremendously with your own work.</p>
<p>Stack this with your design on the wall and never forget. </p>
<p>And lastly, (almost) nobody&#8217;s getting millionaire next week from putting a site online. If you know how to do this, you wouldn&#8217;t be reading this. </p>
<p>The post <a href="http://www.weblogmechanic.com/2012/11/06/5-things-to-think-about-when-starting-a-new-site/">5 things to think about when starting a new site</a> appeared first on <a href="http://www.weblogmechanic.com">Weblog Mechanic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.weblogmechanic.com/2012/11/06/5-things-to-think-about-when-starting-a-new-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
