<?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>digital bites</title>
	<atom:link href="http://www.cpuidle.de/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.cpuidle.de/blog</link>
	<description>cpuidle's weblog</description>
	<lastBuildDate>Wed, 01 Aug 2012 09:06:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>cpuidle.de hacked</title>
		<link>http://www.cpuidle.de/blog/?p=66</link>
		<comments>http://www.cpuidle.de/blog/?p=66#comments</comments>
		<pubDate>Wed, 01 Aug 2012 09:06:16 +0000</pubDate>
		<dc:creator>andig</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=66</guid>
		<description><![CDATA[Dear all, I was notified yesterday by my provider that my site had been hacked and was distributing malware. I do hope that I was able to not only fix the malware issue but also identify and close the entry door. If you notice anything strange please send me an email or comment here. Kind [...]]]></description>
				<content:encoded><![CDATA[<p>Dear all,</p>
<p>I was notified yesterday by my provider that my site had been hacked and was distributing malware. I do hope that I was able to not only fix the malware issue but also identify and close the entry door.</p>
<p>If you notice anything strange please send me an email or comment here.</p>
<p>Kind regards,<br />
Andreas</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=66</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using CodeIgniter&#8217;s ActiveRecord implementation standalone</title>
		<link>http://www.cpuidle.de/blog/?p=62</link>
		<comments>http://www.cpuidle.de/blog/?p=62#comments</comments>
		<pubDate>Fri, 12 Feb 2010 14:18:21 +0000</pubDate>
		<dc:creator>andig</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=62</guid>
		<description><![CDATA[I&#8217;ve recently been looking into PHP ORM frameworks. One framework that scored highly was CodeIgniter&#8217;s implementation of the ActiveRecord pattern. Unfortunately, the code cannot be used in standalone projects- you&#8217;re tied to using the full CodeIgniter MVC approach. Looking for standalone versions of CI&#8217;s database classes I found several attempts, though none very successful or [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve recently been looking into PHP ORM frameworks. One framework that scored highly was <a href="http://codeigniter.com">CodeIgniter&#8217;s</a> implementation of the ActiveRecord pattern.<br />
<span id="more-62"></span> Unfortunately, the code cannot be used in standalone projects- you&#8217;re tied to using the full CodeIgniter MVC approach.<br />
Looking for standalone versions of CI&#8217;s database classes I found several attempts, though none very successful or limited to mySQL as only database.<br />
I&#8217;ve therefore developed my own adaption. The code is based on latest CodeIgniter 1.7.2 and consists of the largely unmodified CI classes and some additional bridge code.</p>
<p>The small library provided is straightforward to use:</p>
<pre>// include bridge functionality
require_once('./CodeIgniterBridge/Bridge.php');

$config = array('username'=&gt; 'root',
'password'=&gt; '',
'database'=&gt; 'test.db3',
'dbdriver'=&gt; 'sqlite');

// include CodeIgniter DB
require_once(BASEPATH.'database/DB.php');
$db = DB($config);

// custom factory class to instantiate DB_Forge
require_once(BRIDGE.'DBForgeFactory.php');
$dbforge = DBForgeFactory::Factory($db);

// CodeIgniter - create DB
$dbforge-&gt;create_database('test');
$dbforge-&gt;add_field(array('title' =&gt; array('type' =&gt; 'VARCHAR')));
$dbforge-&gt;create_table('test');

// CodeIgniter - create and show data
$db-&gt;insert('test', array('title' =&gt; 'A'));
$db-&gt;insert('test', array('title' =&gt; 'B'));
var_dump($db-&gt;select('title')-&gt;from('test')-&gt;where('title LIKE', 'A%')-&gt;get()-&gt;result_array());

$db-&gt;close();
</pre>
<p>Download: <a title="download" href="http://cpuidle.de/codeigniter_activerecord_172.zip">codeigniter_activerecord_172.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=62</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse Timeline &#8211; Reloaded</title>
		<link>http://www.cpuidle.de/blog/?p=59</link>
		<comments>http://www.cpuidle.de/blog/?p=59#comments</comments>
		<pubDate>Wed, 15 Jul 2009 11:12:00 +0000</pubDate>
		<dc:creator>andig</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=59</guid>
		<description><![CDATA[In 2008, Chen released an Eclipse plugin called &#8220;Eclipse Timeline&#8221;, allowing to display time-based events using an ajax widget inside an Eclipse view. Unfortunately, while the plugin was released under a BSD-style license, he never released the sources. I&#8217;ve taken the time an revamped the plugin based on current Eclipse 3.5 and Mylyn 3.2 APIs. [...]]]></description>
				<content:encoded><![CDATA[<p>In 2008, Chen <a title="original site" href="http://code.google.com/p/eclipsetimeline/">released</a> an Eclipse plugin called &#8220;Eclipse Timeline&#8221;, allowing to display time-based events using an ajax widget inside an Eclipse view. Unfortunately, while the plugin was released under a BSD-style license, he never released the sources.</p>
<p>I&#8217;ve taken the time an revamped the plugin based on current Eclipse 3.5 and Mylyn 3.2 APIs.</p>
<p>To install the current version, you can use the Eclipse Timeline <a title="Eclipse Timeline Update Site" href="http://www.cpuidle.de/eclipse/site.xml">update site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=59</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FireFox 3 extension security</title>
		<link>http://www.cpuidle.de/blog/?p=55</link>
		<comments>http://www.cpuidle.de/blog/?p=55#comments</comments>
		<pubDate>Thu, 22 Nov 2007 08:56:03 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FireFox]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=55</guid>
		<description><![CDATA[As FireFox 3 (FF3) is now available as first public beta version at http://www.mozilla.com/en-US/firefox/all-beta.html, many users will realize that their add-ons don&#8217;t work any longer. One possible cause is that the extension is provided through &#8220;insecure&#8221; update sites, i.e. not using HTTPS as transport protocol. To enable FireFox 3 loading updates from such sites, follow [...]]]></description>
				<content:encoded><![CDATA[<p>As FireFox 3 (FF3) is now available as first public beta version at <a href="http://www.mozilla.com/en-US/firefox/all-beta.html">http://www.mozilla.com/en-US/firefox/all-beta.html</a>, many users will realize that their add-ons don&#8217;t work any longer.<br />
One possible cause is that the extension is provided through &#8220;insecure&#8221; update sites, i.e. not using HTTPS as transport protocol. To enable FireFox 3 loading updates from such sites, follow these steps:</p>
<ol>
<li>open about:config</li>
<li>create new boolean value extensions.checkUpdateSecurity=false</li>
<li>restart</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=55</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HTTPS requests via proxy with Perl</title>
		<link>http://www.cpuidle.de/blog/?p=54</link>
		<comments>http://www.cpuidle.de/blog/?p=54#comments</comments>
		<pubDate>Thu, 20 Sep 2007 18:13:33 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=54</guid>
		<description><![CDATA[A common problem with not so many solutions on the web is submitting HTTPS requests using Perl&#8217;s LWP module. This works fine as long as no proxy is involved. When the request needs to pass a proxy, you find out quickly, that LWP is not able to handle proxies for HTTPS traffic. Instead, the underlying [...]]]></description>
				<content:encoded><![CDATA[<p>A common problem with not so many solutions on the web is submitting HTTPS requests using Perl&#8217;s LWP module. This works fine as long as no proxy is involved. When the request needs to pass a proxy, you find out quickly, that LWP is not able to handle proxies for HTTPS traffic. Instead, the underlying SSLeay library must be used to tunnel the traffic transparently.</p>
<p>The following code shows how to:</p>
<p><code><br />
$proxy = 'http://user:pass@server';<br />
$ua->proxy(['http'], $proxy);</p>
<p>$proxy = 'http://server';<br />
$ENV{HTTPS_PROXY}		= $proxy;<br />
$ENV{HTTPS_PROXY_USERNAME}	= user;<br />
$ENV{HTTPS_PROXY_PASSWORD}	= pass;</p>
<p># working, http &#038; https<br />
my $req = HTTP::Request->new(GET => 'http(s)://site/');<br />
my $res = $ua->request($req);<br />
if ($res->is_success){<br />
	print $res->as_string;<br />
}<br />
</code></p>
<p>The tricky part is that lwp will still needs the http_proxy to handle http requests correctly, but not https_proxy as it needs to pass down the requests to SSLeay. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CpuIdle for Vista (Beta)</title>
		<link>http://www.cpuidle.de/blog/?p=53</link>
		<comments>http://www.cpuidle.de/blog/?p=53#comments</comments>
		<pubDate>Sat, 09 Jun 2007 14:22:52 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[CpuIdle]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=53</guid>
		<description><![CDATA[We&#8217;ve just released a CpuIdle test version supported on Windows Vista. Please download here and let us know of any issues. Also added was support for SpeedFan temperature monitoring software. Motherboard Monitor continues to be supported as well.]]></description>
				<content:encoded><![CDATA[<p>We&#8217;ve just released a CpuIdle test version supported on Windows Vista. Please download <a href="../download/beta/cpuidleextreme.zip">here</a> and let us know of any issues.<br />
Also added was support for <a href="http://www.almico.com/speedfan.php">SpeedFan</a> temperature monitoring software. Motherboard Monitor continues to be supported as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=53</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>WP-Cache 2.1.0 on Windows</title>
		<link>http://www.cpuidle.de/blog/?p=51</link>
		<comments>http://www.cpuidle.de/blog/?p=51#comments</comments>
		<pubDate>Fri, 16 Mar 2007 13:23:56 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=51</guid>
		<description><![CDATA[As written in this post, WP-Cache needs several modifications in order to run on Windows and/or IIS. Provided below is an updated version of latest WP-Cache 2.1.0 with all Windows/IIS fixes included. WP-Cache 2.1.0 for Windows/IIS]]></description>
				<content:encoded><![CDATA[<p>As written in this <a href="http://www.cpuidle.de/blog/?p=30">post</a>, WP-Cache needs several modifications in order to run on Windows and/or IIS. Provided below is an updated version of latest WP-Cache 2.1.0 with all Windows/IIS fixes included.<br />
<a href='http://www.cpuidle.de/blog/wp-content/wp-cache210.zip' title='WP-Cache 2.1.0 for Windows/IIS'>WP-Cache 2.1.0 for Windows/IIS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=51</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Eclipse Common Navigator Framework in RCP Applications</title>
		<link>http://www.cpuidle.de/blog/?p=48</link>
		<comments>http://www.cpuidle.de/blog/?p=48#comments</comments>
		<pubDate>Thu, 30 Nov 2006 08:59:07 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=48</guid>
		<description><![CDATA[Eclipse is- amongst being an IDE and almost everything else- a powerful development environment for cross-platform rich client applications (RCP). One particular feature of the Eclipse IDE is the framework for working with resource, more specifically the workspace resources. Michael Elder documented the Common Navigator Framework (CNF) in a series of articles in his blog. [...]]]></description>
				<content:encoded><![CDATA[<p>Eclipse is- amongst being an IDE and almost everything else- a powerful development environment for cross-platform rich client applications (RCP).</p>
<p>One particular feature of the Eclipse IDE is the framework for working with resource, more specifically the workspace resources. Michael Elder documented the Common Navigator Framework (CNF) in a series of articles in his <a href="http://scribbledideas.blogspot.com/2006/05/building-common-navigator-based-viewer.html">blog</a>.</p>
<p><span id="more-48"></span>Unfortunately, at the time of writing, CNF does not easily lend itself to use in RCP applications. A number of <a href="http://www.eclipsezone.com/eclipse/forums/t79254.html?start=0">usenet postings</a> and <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=145233">Eclipse bugs</a> describes this problem. While a number of things still needs to be done to externalize the CNF API from the Eclipse IDE to allow clean use in RCP apps, a working solution exists today.</p>
<p>The following solution is derived from the sources mentioned above, full credit given:</p>
<ol>
<li>ApplicationWorkbenchAdvisor<br />
<code><br />
public void initialize(IWorkbenchConfigurer configurer) {<br />
configurer.setSaveAndRestore(true);<br />
declareWorkbenchImages();<br />
}</p>
<p>@Override<br />
public IAdaptable getDefaultPageInput() {<br />
return new NavigatorRoot();<br />
}</p>
<p>public void preStartup() {<br />
WorkbenchAdapterBuilder.registerAdapters();<br />
}<br />
</code><br />
The code for declareWorkbenchImages() including declareWorkbenchImage() is copied from org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.</li>
<li>New NavigatorRoot class.
<p>The new NavigatorRoot implements IPersistableElement. This ensures that the class can be persisted when saving the workbench state. Otherwise, the navigator root element is not read when restoring the workbench state.<br />
<code><br />
public class NavigatorRoot implements IAdaptable, IPersistableElement, IElementFactory {<br />
public NavigatorRoot() {<br />
}</p>
<p>public Object getAdapter(Class adapter) {<br />
if (adapter == IPersistableElement.class)<br />
return this;<br />
if (adapter == IWorkbenchAdapter.class)<br />
return ResourcesPlugin.getWorkspace().getRoot().getAdapter(adapter);<br />
return null;<br />
}</p>
<p>public String getFactoryId() {<br />
return this.getClass().getCanonicalName();<br />
}</p>
<p>public void saveState(IMemento memento) {<br />
// TODO Auto-generated method stub<br />
return;<br />
}</p>
<p>public IAdaptable createElement(IMemento memento) {<br />
return ResourcesPlugin.getWorkspace().getRoot();<br />
}<br />
}</code>
</li>
<li>ElementsFactory Extension.
<p>To be sure the NavigatorRoot class can be instantiated when reading the workbench state, it&#8217;s createElement() method must be available. This is achieved in the previous chapter by implementing IElementFactory and now registering it in the elementsFactory extension in plugin.xml:<br />
<code>     	extension          point="org.eclipse.ui.elementFactories"<br />
factory             class="rcpCNF.NavigatorRoot"             id="rcpCNF.NavigatorRoot"</code></p>
<p>At this point the navigator is already fully functional- but does not yet show any data/projects or actions to act on the data.</li>
<li>Configure the Navigator
<p>To use the new navigator, the navigator must be configured and content needs to be added. This is done by using the <strong>org.eclipse.ui.navigator.viewer</strong><span class="m"> </span><span class="m" />extension.<br />
Using this extension, we declare:</p>
<ol>
<li>Which viewer we&#8217;d like to configure (<span class="t">viewer</span><span class="t" />).</li>
<li>Which content we&#8217;d like the viewer to display (<span class="t">viewerContentBinding</span><span class="t" />).</li>
<li>And which actions to expose to the user (<span class="t">viewerActionBinding</span><span class="t">).</span></li>
</ol>
</li>
</ol>
<p>A working example with full source code is available here in this <a title="RCP Navigator Example (updated)" rel="attachment" id="p50" href="http://www.cpuidle.de/blog/?attachment_id=50">RCP Navigator Example (updated)</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=48</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>WP-Cache on Windows (2.0.19)</title>
		<link>http://www.cpuidle.de/blog/?p=47</link>
		<comments>http://www.cpuidle.de/blog/?p=47#comments</comments>
		<pubDate>Fri, 10 Nov 2006 10:17:42 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=47</guid>
		<description><![CDATA[After writing the tutorial on how to get WP-Cache running on Windows, I&#8217;ve realized I could just make it a bit easier. Together with the latest WP-Cache release 2.0.19, I&#8217;ve build a preconfigured package. Download wp-cache_2.0.19_win.zip.]]></description>
				<content:encoded><![CDATA[<p>After writing the <a href="http://www.cpuidle.de/blog/?p=30">tutorial</a> on how to get WP-Cache running on Windows, I&#8217;ve realized I could just make it a bit easier. Together with the latest WP-Cache release 2.0.19, I&#8217;ve build a preconfigured package.</p>
<p>Download <a href="http://www.cpuidle.de/wp-cache_2.0.19_win.zip">wp-cache_2.0.19_win.zip</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=47</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>CpuIdle on Windows Vista</title>
		<link>http://www.cpuidle.de/blog/?p=46</link>
		<comments>http://www.cpuidle.de/blog/?p=46#comments</comments>
		<pubDate>Thu, 06 Jul 2006 14:28:22 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.cpuidle.de/blog/?p=46</guid>
		<description><![CDATA[We&#8217;ve recently analyzed if CpuIdle can be supported on Windows Vista. The good news is: yes it can! However, due to changes Microsoft implemente in Vista, the are currently some constraints. Due to user account control (UAC), CpuIdle is no longer able to access the registry keys required to allow CpuIdle to add itself to [...]]]></description>
				<content:encoded><![CDATA[<p>We&#8217;ve recently analyzed if CpuIdle can be supported on Windows Vista. The good news is: yes it can! However, due to changes Microsoft implemente in Vista, the are currently some constraints.</p>
<p>Due to user account control (UAC), CpuIdle is no longer able to access the registry keys required to allow CpuIdle to add itself to the programs run when Windows starts. No error message will be displayed, but CpuIdle also won&#8217;t start automatically. To work around this issue, the following options exist:</p>
<ul>
<li>manually add CpuIdle to the AutoStart group</li>
<li>disable UAC in the Windows policies (this might cause security issues)</li>
</ul>
<p>The third possible option would be to run CpuIdle with administrator rights (Right-click, Run As Administrator or use the compatibility options). The downside of this is that Windows does from now on display a security warning when starting CpuIdle.</p>
<p>Since Microsoft received a lot of criticism regarding UAC in Vista Beta2, we&#8217;re currently not rolling out an updated version with Vista support but will wait for Beta 3 and changes in UAC to be released.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpuidle.de/blog/?feed=rss2&#038;p=46</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.327 seconds -->
