<?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>Thomas Spycher</title>
	<atom:link href="http://tspycher.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tspycher.com</link>
	<description></description>
	<lastBuildDate>Sat, 07 Jan 2012 15:34:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Performance Test: Python, Perl, PHP, Java, Ruby, Bash and C</title>
		<link>http://tspycher.com/performance-test-python-perl-php-and-c/</link>
		<comments>http://tspycher.com/performance-test-python-perl-php-and-c/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 14:39:08 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Gedanken]]></category>
		<category><![CDATA[Technisches]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=679</guid>
		<description><![CDATA[I&#8217;ve had just some time to do some performance test and compare different languages. I&#8217;ve created scripts in each language which does the following: for 1&#8217;000&#8217;000 lines     &#8220;line&#8221; is empty     for 150 chars         add char &#8220;c&#8221; to the &#8220;line&#8221;     print out the &#8220;line&#8221; Running the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had just some time to do some performance test and compare different languages. I&#8217;ve created scripts in each language which does the following:</p>
<p style="padding-left: 30px;">for 1&#8217;000&#8217;000 lines</p>
<p style="padding-left: 30px;">    &#8220;line&#8221; is empty</p>
<p style="padding-left: 30px;">    for 150 chars</p>
<p style="padding-left: 30px;">        add char &#8220;c&#8221; to the &#8220;line&#8221;</p>
<p style="padding-left: 30px;">    print out the &#8220;line&#8221;</p>
<p>Running the script and pipe the output to a file creates a 145MB file. And the most interesting result is the time each script took to run:</p>
<pre>Shell$ time python createRandomFile.py --rows 1000000 --chars 150 &gt; bigfile.py.txt
real	0m56.207s
user	0m55.348s
sys	0m0.607s</pre>
<pre>Shell$ time perl createRandomFile.pl -r 1000000 -c 150 &gt; bigfile.pl.txt
real	0m37.742s
user	0m37.147s
sys	0m0.488s</pre>
<pre>Shell$ time php createRandomFile.php -r 1000000 -c 150 &gt; bigfile.php.txt
real	1m9.357s
user	1m5.165s
sys	0m3.542s</pre>
<pre>Shell$ time java createRandomFile 1000000 150 &gt; bigfile.java.txt
real	1m18.791s
user	1m0.689s
sys	0m11.133s</pre>
<pre>Shell$ time ruby createRandomFile.rb -r 1000000 -c 150 &gt; bigfile.ruby.txt
real	1m44.118s
user	1m39.672s
sys	0m0.967s</pre>
<pre>Shell$ time ruby createRandomFile.sh 1000000 150 &gt; bigfile.bash.txt
real	<strong>78m46.334s</strong>
user	56m30.018s
sys	3m5.280s</pre>
<pre>Shell$ time ./createRandmonFile -r 1000000 -c 150 &gt; bigfile.c.txt
real	0m2.159s
user	0m1.339s
sys	0m0.425s</pre>
<p><a href="http://tspycher.com/wp-content/upload/2012/01/Screen-Shot-2012-01-06-at-16.43.51-.png" rel="lightbox[679]"><img class="aligncenter size-full wp-image-690" title="Screen Shot 2012-01-06 at 16.43.51" src="http://tspycher.com/wp-content/upload/2012/01/Screen-Shot-2012-01-06-at-16.43.51-.png" alt="" width="388" height="318" /></a></p>
<p>For me personally there are some unexpected new experiences:</p>
<ol>
<li>Python takes &#8220;much&#8221; longer than perl. After performance optimizing the Python script its much faster, but still slower than the perl script. Thats really sad&#8230;</li>
<li>Not a big surprise is the fact, that the C program is the fastest. But that it is so much faster than all others is impressive.</li>
<li>Using echo instead print in the php script gets the script one second faster.</li>
<li>And the fact, java is one of the most slowest language of all competitors used here.</li>
<li>Ruby is damn slow</li>
<li>Finally, Bash IS the slowest&#8230; Damn slow! I mean, SLOOOWWW!!!</li>
</ol>
<p>This are really interesting results!</p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/performance-test-python-perl-php-and-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting in contact with OpenStack</title>
		<link>http://tspycher.com/getting-in-contact-with-openstack/</link>
		<comments>http://tspycher.com/getting-in-contact-with-openstack/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 07:47:05 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Openstack]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Technisches]]></category>
		<category><![CDATA[Virtualisierung]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=673</guid>
		<description><![CDATA[Till now, i was only able to deploy some vm&#8217;s on my MacMini Server with VMware Fusion on it. This worked oukay so far&#8230; Due to the mac mini is reaching its second birthday, it does not power vm&#8217;s very well. Also to keep the vm powered on, i need always stay logged in with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tspycher.com/wp-content/upload/2011/12/openstack-logo512.png" rel="lightbox[673]"><img class="alignleft size-thumbnail wp-image-674" title="openstack-logo512" src="http://tspycher.com/wp-content/upload/2011/12/openstack-logo512-150x150.png" alt="" width="150" height="150" /></a>Till now, i was only able to deploy some vm&#8217;s on my MacMini Server with VMware Fusion on it. This worked oukay so far&#8230; Due to the mac mini is reaching its second birthday, it does not power vm&#8217;s very well. Also to keep the vm powered on, i need always stay logged in with the user and of course the management is only possible trough vnc directly on the server.</p>
<p>That was the reason for me to rent some virtual machines by rackspacecloud.com. Seriously, rackspacecloud is impressive! But keeping two or more vm&#8217;s up and running for more than a month is a really expensive playground! Moving to Amazon&#8217;s EC2 wasn&#8217;t an option too. So i decided to buy a extreme low-end cheap virutalisation capable server. After some research (Hardware should be compatible with ESXi in case of whatever) i&#8217;ve build the following server for me:</p>
<p><strong>Case:</strong> Asus Vintage V8-P8H67E, Intel H67, Socket 1155, USB 3.0 (about 170$)</p>
<p><strong>CPU: </strong>Intel Core i5 2500 BOX, 3.3GHz, LGA 1155, 4C/4T (about 200$)</p>
<p><strong>RAM: </strong>Kingston ValueRAM, 3&#215;4 GB, DDR3-1333, CL9 (about 60$)</p>
<p><strong>Raid (optional):</strong> Adaptec RAID 2405, 4-Channel SAS/SATA, low profile (about 200$)</p>
<p><strong>Additional Network:</strong> Intel PWLA8391GTBLK Pro 1000GT Gigabit Adapter PCI, Bulk (about 30$)</p>
<p><strong>VLAN Gigabit Switch: </strong>HP ProCurve Switch V1810G-8 8 Port 10/100/1000 Mbps, SFP (about 110$)</p>
<p><strong>Harddisk:</strong> got some at home</p>
<p>The Result is a Box with 100% Virtualisation Support (vPro, VT-x, VT-d, 64bit), 12GB RAM and small in form and silent too.</p>
<p>In the past i&#8217;ve landed several times on openstack.org during some research in automating virtualisation infrastructures. Openstack is a framework for building private clouds. Openstack promises an virtualisation ecosystem with all needed components to build a perfect world. The project looks very mature and there are a lot of partners supporting them. Openstack supports also a wide range of Hypervisors though they&#8217;r strongly recommending to use KVM for virtualistion. I will give the project a try&#8230;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/getting-in-contact-with-openstack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari 5.1 does not like https sites</title>
		<link>http://tspycher.com/safari-5-1-does-not-like-https-sites/</link>
		<comments>http://tspycher.com/safari-5-1-does-not-like-https-sites/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 08:53:48 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Application Review]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Technisches]]></category>
		<category><![CDATA[10.7]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=654</guid>
		<description><![CDATA[After the update to OSX 10.7 Lion which ships Safari 5.1 i could no more open any HTTPS Sites with Safari. After googling around i found the Solution. You have just to delete the following file: ~/Library/Preferences/com.apple.security.revocation.plist Thats all&#8230; Since i&#8217;ve updated to 10.7 i&#8217;m faced with several bugs! Huge Bugs, which prevent me from [...]]]></description>
			<content:encoded><![CDATA[<p>After the update to OSX 10.7 Lion which ships Safari 5.1 i could no more open any HTTPS Sites with Safari. After googling around i found the Solution. You have just to delete the following file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Preferences<span style="color: #000000; font-weight: bold;">/</span>com.apple.security.revocation.plist</pre></div></div>

<p>Thats all&#8230;</p>
<p>Since i&#8217;ve updated to 10.7 i&#8217;m faced with several bugs! Huge Bugs, which prevent me from working productive!</p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/safari-5-1-does-not-like-https-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunes sharing over VPN</title>
		<link>http://tspycher.com/itunes-sharing-over-vpn/</link>
		<comments>http://tspycher.com/itunes-sharing-over-vpn/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 09:56:50 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Gedanken]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Netzwerk]]></category>
		<category><![CDATA[Technisches]]></category>
		<category><![CDATA[Beacon]]></category>
		<category><![CDATA[Homesharing]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[Sharing]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=649</guid>
		<description><![CDATA[If your are one of those people who have VPN access to their home IT infrastructure you may have wonder why iTunes sharing does not work while connected the the VPN. This is due to a limitation of VPN which does not forward any broad/multicast messages. But there is help! With the tool Network Beacon [...]]]></description>
			<content:encoded><![CDATA[<p>If your are one of those people who have VPN access to their home IT infrastructure you may have wonder why iTunes sharing does not work while connected the the VPN. This is due to a limitation of VPN which does not forward any broad/multicast messages. But there is help! With the tool <a href="http://www.chaoticsoftware.com/" target="_blank">Network Beacon</a> you are able to send self created beacons over the VPN connection to a remote device. I&#8217;ve tried it, and its working like a charm !<span id="more-649"></span></p>
<p>Use the follwing Settings to set up the Beacon</p>
<p><a href="http://tspycher.com/wp-content/upload/2011/07/Screen-shot-2011-07-19-at-11.46.25.png" rel="lightbox[649]"><img class="aligncenter size-medium wp-image-650" title="Screen shot 2011-07-19 at 11.46.25" src="http://tspycher.com/wp-content/upload/2011/07/Screen-shot-2011-07-19-at-11.46.25-200x168.png" alt="" width="200" height="168" /></a></p>
<p>You just have to replace the proxy settings with your own IP and Hostname.</p>
<p>Next i gonna to do is to figure out the settings for turning on HomeSharing over VPN.</p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/itunes-sharing-over-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Das Ding mit den eBooks</title>
		<link>http://tspycher.com/das-ding-mit-den-ebooks/</link>
		<comments>http://tspycher.com/das-ding-mit-den-ebooks/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 11:05:28 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Bilder]]></category>
		<category><![CDATA[Gedanken]]></category>
		<category><![CDATA[Lustiges]]></category>
		<category><![CDATA[Persönliches]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[eBooks]]></category>
		<category><![CDATA[kindle]]></category>

		<guid isPermaLink="false">http://tspycher.com/das-ding-mit-den-ebooks/</guid>
		<description><![CDATA[Immer wie mehr kaufe ich Bücher, bis jetzt jedoch nur technische, im eBook Format. Ich hab das Buch auf all meinen mobilen Geräten immer dabei, kann nach Stichworten suchen und natürlich auch Abschnitte markieren und kommentieren. Ich bin überzeugt, dass sich mein Bücherregel immer wie mehr vernachlässigt vorkommen wird. Einzig, das Ding mit den Lesezeichen [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tspycher.com/wp-content/upload/2011/06/20110612-125900.jpg" rel="lightbox[646]"><img src="http://tspycher.com/wp-content/upload/2011/06/20110612-125900.jpg" alt="20110612-125900.jpg" class="alignnone size-full" /></a></p>
<p>Immer wie mehr kaufe ich Bücher, bis jetzt jedoch nur technische, im eBook Format. Ich hab das Buch auf all meinen mobilen Geräten immer dabei, kann nach Stichworten suchen und natürlich auch Abschnitte markieren und kommentieren. Ich bin überzeugt, dass sich mein Bücherregel immer wie mehr vernachlässigt vorkommen wird. Einzig, das Ding mit den Lesezeichen hab ich noch nicht so ganz begriffen ;)</p>
<p>Apple hat es leider bis jetzt noch nicht hingekriegt mit dem iBook Store in der Schweiz. Aus diesem Grund schneiden sich meine Finger am virtuellen Papier aus Büchern aus Amazons Kindle Store. Apple wird es nicht leicht haben, wenn sie irgendwann doch noch mit dem iBook Store kommen, da sich Bücher aus dem Kindle Store wohl nicht transferieren lassen werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/das-ding-mit-den-ebooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So schenkt man heute</title>
		<link>http://tspycher.com/so-schenkt-man-heute/</link>
		<comments>http://tspycher.com/so-schenkt-man-heute/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 19:30:06 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Homepage]]></category>
		<category><![CDATA[Persönliches]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Hochzeit]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=642</guid>
		<description><![CDATA[Mein Bruder heiratet demnächst. Aus diesem Grund habe ich für Ihn und seine Verlobte eine Internet Präsenz erstellt (http://corinnastefan.ch) Schnell stellt sich die Frage wie man das Thema Geschenke abhandeln könnte. Ein paar Stunden Arbeit, und ein kleines aber feines WordPress Plugin ist geschrieben. Über eine zentrale Datenbank können Geschenke vom Brautpaar erfasst werden und [...]]]></description>
			<content:encoded><![CDATA[<p>Mein Bruder heiratet demnächst. Aus diesem Grund habe ich für Ihn und seine Verlobte eine Internet Präsenz erstellt (http://corinnastefan.ch) Schnell stellt sich die Frage wie man das Thema Geschenke abhandeln könnte.</p>
<p>Ein paar Stunden Arbeit, und ein kleines aber feines WordPress Plugin ist geschrieben. Über eine zentrale Datenbank können Geschenke vom Brautpaar erfasst werden und die Gäste können sich bequem an Geschenken beteiligen. Sobald ich Zeit finde, werde ich die letzen Kanten und rauen Seiten des Plugins noch bearbeiten und zu wordpress.org als offizielles Plugin hochladen.</p>
<p><a href="http://corinnastefan.ch/wunschliste/" target="_blank">Hier</a> ist das Plugin in Action.</p>
<p><a href="http://tspycher.com/wp-content/upload/2011/06/Screen-shot-2011-06-05-at-21.09.37.png" rel="lightbox[642]"><img class="aligncenter size-medium wp-image-643" title="Screen shot 2011-06-05 at 21.09.37" src="http://tspycher.com/wp-content/upload/2011/06/Screen-shot-2011-06-05-at-21.09.37-169x200.png" alt="" width="169" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/so-schenkt-man-heute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Autoupdate working on WordPress</title>
		<link>http://tspycher.com/getting-autoupdate-working-on-wordpress/</link>
		<comments>http://tspycher.com/getting-autoupdate-working-on-wordpress/#comments</comments>
		<pubDate>Thu, 26 May 2011 08:58:24 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Autoupdate]]></category>
		<category><![CDATA[Dirty]]></category>
		<category><![CDATA[Genotec]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Technisches]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=638</guid>
		<description><![CDATA[The requirements of WordPress are at least a PHP Version of 5.2.4. If you have an older Version you may have troubles getting WordPress Autoupdate working as expected. If spend some hours in getting it working. Finally i&#8217;ve found a way&#8230; I&#8217;ve no clue if this is the only way, but it works for me [...]]]></description>
			<content:encoded><![CDATA[<p>The requirements of WordPress are at least a PHP Version of 5.2.4. If you have an older Version you may have troubles getting WordPress Autoupdate working as expected. If spend some hours in getting it working. Finally i&#8217;ve found a way&#8230; I&#8217;ve no clue if this is the only way, but it works for me and yes its a really dirty hack! So please do it, only if you really know what you&#8217;re doing!</p>
<p>This steps are done with the actual 3.1.3 Release of WordPress</p>
<p>1. Add the following Settings to your wp-config.php and be sure you&#8217;ve removed all other entries beginning with: FTP_* and FS_*</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_BASE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/home/path/to/your/site'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_CONTENT_DIR'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/home/path/to/your/site/wp-content/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_PLUGIN_DIR'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/home/path/to/your/site/wp-content/plugins/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FS_METHOD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'direct'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>2. Comment out line <strong>138</strong> to <strong>141</strong> in /wp-admin/includes/class-wp-upgrader.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$upgrade_files</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$upgrade_files</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$file</span> <span style="color: #009900;">&#41;</span>
          <span style="color: #000088;">$wp_filesystem</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>delete<span style="color: #009900;">&#40;</span><span style="color: #000088;">$upgrade_folder</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To This:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*if ( !empty($upgrade_files) ) {
     foreach ( $upgrade_files as $file )
          $wp_filesystem-&amp;gt;delete($upgrade_folder . $file['name'], true);
}*/</span></pre></div></div>

<p>3. Add the following line after line <strong>144</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$working_dir</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;dirtyhack&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This should finally look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//We need a working directory</span>
<span style="color: #000088;">$working_dir</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$upgrade_folder</span> <span style="color: #339933;">.</span> <span style="color: #990000;">basename</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$package</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'.zip'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$working_dir</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;dirtyhack&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Yes, this really a DIRTY HACK&#8230; If you know a better way, let me know&#8230; It works for me.</p>
<p>If you upgrade WordPress-Core automatically all this changes are lost!</p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/getting-autoupdate-working-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Redmine for Receiving Mails</title>
		<link>http://tspycher.com/enabling-redmine-for-receiving-mails/</link>
		<comments>http://tspycher.com/enabling-redmine-for-receiving-mails/#comments</comments>
		<pubDate>Wed, 25 May 2011 13:44:56 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sourceTube]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[Technisches]]></category>
		<category><![CDATA[zero-one]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=635</guid>
		<description><![CDATA[Today i struggled around getting Redmine pulling Mails from a remote IMAP server and creating issues with its content. Finally i&#8217;v get it working&#8230; There are several rules you should keep in mind: Be carful if you have defined any mandatory additional fields for your Issues If you set unknown_user=create be sure the newly created [...]]]></description>
			<content:encoded><![CDATA[<p>Today i struggled around getting Redmine pulling Mails from a remote IMAP server and creating issues with its content. Finally i&#8217;v get it working&#8230; There are several rules you should keep in mind:</p>
<ul>
<li>Be carful if you have defined any mandatory additional fields for your Issues</li>
<li>If you set unknown_user=create be sure the newly created user has access to the project automatically. If he has no access, the issue will not be created</li>
<li>If you just want to pipe Mails into a Redmine project use unknown_user=accept and o_permission_check=1 and issues are getting created with the anonymous User. Works well for a simple &#8220;one-way&#8221; posting</li>
</ul>
<p>Finally i&#8217;ve created a small bash script to run the import process all 5 minutes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SERVER</span>=host.domain.tld
<span style="color: #007800;">USER</span>=jbauer
<span style="color: #007800;">PASS</span>=ILike24
&nbsp;
rake <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>Redmine<span style="color: #000000; font-weight: bold;">/</span>installation<span style="color: #000000; font-weight: bold;">/</span>Rakefile redmine:email:receive_imap <span style="color: #007800;">RAILS_ENV</span>=<span style="color: #ff0000;">&quot;production&quot;</span> \
<span style="color: #007800;">host</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SERVER</span>&quot;</span> \
<span style="color: #007800;">username</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$USER</span>&quot;</span> \
<span style="color: #007800;">password</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$PASS</span>&quot;</span> \
<span style="color: #007800;">move_on_success</span>=<span style="color: #c20cb9; font-weight: bold;">read</span> \
<span style="color: #007800;">project</span>=sandbox \
<span style="color: #007800;">allow_override</span>=project,tracker,category,priority,status \
<span style="color: #007800;">unknown_user</span>=accept \
<span style="color: #007800;">no_permission_check</span>=<span style="color: #000000;">1</span> \
<span style="color: #007800;">status</span>=New \
<span style="color: #007800;">tracker</span>=Bug \
<span style="color: #007800;">priority</span>=Low
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$?</span></pre></div></div>

<p>For mor detailed information visit the <a href="http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails" target="_blank">Redmine Wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/enabling-redmine-for-receiving-mails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connect to MSSQL Server with PHP on Linux (FreeTDS)</title>
		<link>http://tspycher.com/connect-to-mssql-server-with-php-on-linux-freetds/</link>
		<comments>http://tspycher.com/connect-to-mssql-server-with-php-on-linux-freetds/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 12:14:38 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[FreeTDS]]></category>
		<category><![CDATA[MSSQL]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=626</guid>
		<description><![CDATA[It may be possible, that you need to connect your PHP Script to a MSSQL Datasource. Every good web-hoster should have installed some libraries to connect to MSSQL. Usually there will be the FreeTDS Library installed. There are two steps to be done: 1. Create a connection specific freetds.conf configuration file in the location where [...]]]></description>
			<content:encoded><![CDATA[<p>It may be possible, that you need to connect your PHP Script to a MSSQL Datasource. Every good web-hoster should have installed some libraries to connect to MSSQL. Usually there will be the FreeTDS Library installed.<br />
There are two steps to be done:</p>
<p>1. Create a connection specific freetds.conf configuration file in the location where your other PHP files are:</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>mssqlserver<span style="">&#93;</span></span>
	<span style="color: #000099;">host</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 1.2.3.4</span>
	<span style="color: #000099;">port</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 1433</span>
	tds version <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 8.0 // MSSQL 2008</span>
	#tds version <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 4.2 // older MSSQL Servers</span></pre></div></div>

<p>2. You can use this connection information from your PHP script:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Older FreeTDS installations need the FREETDSCONF Environment variable</span>
<span style="color: #990000;">putenv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FREETDSCONF=/path/to/freetds.conf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// Current release of FreeTDS uses the FREETDS environment variable. So we set both to be sure</span>
<span style="color: #990000;">putenv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FREETDS=/path/to/freetds.conf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mssql</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mssql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mssqlserver'</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mssql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'myDb'</span><span style="color: #339933;">,</span><span style="color: #000088;">$mssql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/connect-to-mssql-server-with-php-on-linux-freetds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redmine and GMail SMTP Server</title>
		<link>http://tspycher.com/redmin-and-gmail-smtp-server/</link>
		<comments>http://tspycher.com/redmin-and-gmail-smtp-server/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 12:51:41 +0000</pubDate>
		<dc:creator>Thomas Spycher</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sourceTube]]></category>
		<category><![CDATA[Actionmailer]]></category>
		<category><![CDATA[GMail]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://tspycher.com/?p=622</guid>
		<description><![CDATA[It&#8217;s kind of tricky to configure redmine to send mails over GMail to project participants. The following configurations works very well for sourceTube.net. Tested with the actual Redmine Version 1.1.2 and ActionMailer 2.3.5. Be careful editing the file. Do not use tabs, just spaces! Just put the following in config/email.yml production: delivery_method: :smtp smtp_settings: tls: [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s kind of tricky to configure redmine to send mails over GMail to project participants. The following configurations works very well for <a href="http://sourcetube.net" target="_blank">sourceTube.net</a>. Tested with the actual Redmine Version 1.1.2 and ActionMailer 2.3.5.</p>
<p>Be careful editing the file. Do not use tabs, just spaces!</p>
<p>Just put the following in config/email.yml</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">production:
  delivery_method: <span style="color:#ff3333; font-weight:bold;">:smtp</span>
  smtp_settings:
    tls: <span style="color:#0000FF; font-weight:bold;">true</span>
    address: <span style="color:#996600;">&quot;smtp.gmail.com&quot;</span>
    port: <span style="color:#006666;">587</span>
    domain: <span style="color:#996600;">&quot;domain.tld&quot;</span>
    authentication: <span style="color:#ff3333; font-weight:bold;">:plain</span>
    user_name: <span style="color:#996600;">&quot;MyEmailAddress@domain.tld&quot;</span>
    password: <span style="color:#996600;">&quot;ThisIs$ecret&quot;</span>
    enable_starttls_auto: <span style="color:#0000FF; font-weight:bold;">true</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://tspycher.com/redmin-and-gmail-smtp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

