<?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>andreas.heigl.org</title>
	<atom:link href="http://andreas.heigl.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://andreas.heigl.org</link>
	<description></description>
	<lastBuildDate>Tue, 26 Mar 2013 12:51:12 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>&#8220;Update&#8221; Cached User-Information from Apples OpenDirectory</title>
		<link>http://andreas.heigl.org/2013/03/26/update-cached-user-information-from-apples-opendirectory/</link>
		<comments>http://andreas.heigl.org/2013/03/26/update-cached-user-information-from-apples-opendirectory/#comments</comments>
		<pubDate>Tue, 26 Mar 2013 12:51:12 +0000</pubDate>
		<dc:creator>Andreas Heigl</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://andreas.heigl.org/?p=235</guid>
		<description><![CDATA[TLDR There is no way of Updating Cached informations. You have to delete the cached User and recreate it. The Story The other day we had a problem with an OpenDirectory-User that was working on a mobile account on a laptop running MacOS 10.7. The user got a new laptop and to configure everything for [...]]]></description>
				<content:encoded><![CDATA[<h2>TLDR</h2>
<p>There is no way of Updating Cached informations. You have to delete the cached User and recreate it.</p>
<h2>The Story</h2>
<p>The other day we had a problem with an OpenDirectory-User that was working on a mobile account on a laptop running MacOS 10.7. The user got a new laptop and to configure everything for the user we had to change the password to one we knew. So the password was changed in the OpenDirectory. We configured everything and the user changed his password back to a new one.</p>
<p>Everything fine &#8211; we thought.</p>
<p>Until the user went back home with his shiny new laptop, opened it up and tried to log in with the new password. the login-dialog shook and denied access. So the user was clever and tried the intermediate password we also knew. And voila &#8211; access was granted.<br />
<span id="more-235"></span></p>
<h2>What happened?</h2>
<p>The OpenDirectory cached the users password locally. And as we did not change the password on the laptop but on a different machine the laptops cache has not been informed that there is new password information. So the old password was still lurking around there.</p>
<p>The situation was not dramatic, as it was clear, when to use what password, but nice is different.</p>
<h2>So what to do?</h2>
<p>There seems to be no mechanism to tell the Mac Client that the cached information is no longer valid other than to delete the information. So we had to delete the user while keeping the users homedirectory.</p>
<p>Nothing easier than that. Fire up your terminal and run the following command:</p>
<pre class="brush: plain; title: ; notranslate">sudo dscl . -remove /Users/[username]</pre>
<p>This will remove the user <strong>[username]</strong> from the userlist but keeps the homedirectory as it is. </p>
<p><strong>Note: You should only do so with a cached mobile user!!!!</strong> To find out about your cached users run this snippet: </p>
<pre class="brush: plain; title: ; notranslate">dscl . -list /Users AuthenticationAuthority | grep LocalCachedUser | awk '{print $1}'</pre>
<p>.<br />
This will only output users that are cached. <strong>Do not touch other users as long as you do not know exactly what you are doing!!!!</strong></p>
<p>After removing the users entry connect to the network and login as [username]. You will be prompted whether you want to create a mobile user or not. When you select &#8220;yes&#8221; the user will again be created as cached user. This time with the correct password!</p>
<p>Oh and don&#8217;t worry about the homedirectory. Everything stays as it is. The machine realizes that the directory already exists and simply synchronizes the content with the server.</p>
<p>Kudos to <a href="http://blog.infusiontechsolutions.com/how-to-reset-the-password-for-an-os-x-open-directory-mobile-account/">infusiontechsolutions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreas.heigl.org/2013/03/26/update-cached-user-information-from-apples-opendirectory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A great job well done</title>
		<link>http://andreas.heigl.org/2012/09/06/a-great-job-well-done/</link>
		<comments>http://andreas.heigl.org/2012/09/06/a-great-job-well-done/#comments</comments>
		<pubDate>Thu, 06 Sep 2012 04:41:18 +0000</pubDate>
		<dc:creator>Andreas Heigl</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Php zf2]]></category>

		<guid isPermaLink="false">http://andreas.heigl.org/?p=226</guid>
		<description><![CDATA[Thanks to the great work of a great number of developers Zend Framework 2 has been declared stable today. Have a look at http://bit.ly/zf2stable for more information.]]></description>
				<content:encoded><![CDATA[<p>Thanks to the great work of a great number of developers Zend Framework 2 has been declared stable today. Have a look at <a href="http://bit.ly/zf2stable">http://bit.ly/zf2stable</a> for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreas.heigl.org/2012/09/06/a-great-job-well-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert eclipse into a real Mac-App</title>
		<link>http://andreas.heigl.org/2012/06/20/convert-eclipse-into-a-real-mac-app/</link>
		<comments>http://andreas.heigl.org/2012/06/20/convert-eclipse-into-a-real-mac-app/#comments</comments>
		<pubDate>Wed, 20 Jun 2012 13:46:32 +0000</pubDate>
		<dc:creator>Andreas Heigl</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://andreas.heigl.org/?p=215</guid>
		<description><![CDATA[I&#8217;m using Eclipse for a while now. In the good old days Eclipse has been delivered as a &#8220;proper&#8221; Mac-App with all libraries contained inside the Application. But for some time now that is not the case any more. Now an Eclipse for the Mac comes as a folder containing the Application (called Eclipse.app) and [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m using Eclipse for a while now. In the <em>good old days</em> Eclipse has been delivered as a &#8220;proper&#8221; Mac-App with all libraries contained inside the Application.</p>
<p>But for some time now that is not the case any more. Now an Eclipse for the Mac comes as a folder containing the Application (called Eclipse.app) and a lot of other clutter that i&#8217;m not interested in. But when I drag the  Eclipse.app into my Application folder and try to start it nothing happens (apart from that nice little Error-Message).</p>
<p>I simply accepted that.</p>
<p>Until today.<br />
<span id="more-215"></span></p>
<h2>Solution</h2>
<h3>Step one</h3>
<p>I opened the Eclipse.app-package by right clicking onto it and selecting &#8216;Open Package&#8217;. That opened a new Finder-Window showing a single folder <strong>Contents</strong>. Go inside!</p>
<p>There we have
<ul>
<li>a file <strong>Info.plist</strong> &#8211; don&#8217;t touch</li>
<li>a folder <strong>MacOS</strong> &#8211; we come to that later</li>
<li>a folder <strong>Resources</strong> &#8211; leave it as it is</li>
</ul>
<p>The next thing was to move all the clutter from the folder containing the Eclipse.app (except for the Eclipse.app) into this folder <strong>Contents</strong>. </p>
<p>Now the folder <strong>Contents</strong> should look somewhat like this: <div id="attachment_216" class="wp-caption alignnone" style="width: 310px"><a href="http://andreas.heigl.org/wp/wp-content/uploads/2012/06/Bildschirmfoto-2012-06-20-um-15.28.23.png"><img src="http://andreas.heigl.org/wp/wp-content/uploads/2012/06/Bildschirmfoto-2012-06-20-um-15.28.23-300x202.png" alt="Content of Contents " title="Eclipse.app.content.png" width="300" height="202" class="size-medium wp-image-216" /></a><p class="wp-caption-text">The content of the folder Eclipse.app/Contents</p></div></p>
<h3>Step two</h3>
<p>Now I had to edit the file <strong>MacOS/eclipse.ini</strong></p>
<p>Somewhere there are two lines containing something like
<pre class="brush: plain; title: ; notranslate">
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504
</pre>
<p> By simply removing two of the three <strong>../</strong> I thought everything was fine. But no. </p>
<p>There also have to be two lines like</p>
<pre class="brush: plain; title: ; notranslate">
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
</pre>
<p> Remove two of the three <strong>../</strong> and be happy. If the line is missing, add it.</p>
<p>So in the End the file should contain four lines like these:</p>
<pre class="brush: plain; title: ; notranslate">
-startup
../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504
</pre>
<p>. The exact version-number varies from &#8211; well obviously &#8211; version to version.</p>
<p>When you are in that file you can also change some Memory values for the Java-VM like the values for <strong>-Xms</strong> and <strong>-Xmx</strong>. For more details on that <em>(java heap space memory)</em> ask your favourite search-Engine <img src='http://andreas.heigl.org/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>That done, you should have a <em>real</em> Mac-Application containing all the stuff needed inside the <strong>Eclipse.app</strong>. </p>
]]></content:encoded>
			<wfw:commentRss>http://andreas.heigl.org/2012/06/20/convert-eclipse-into-a-real-mac-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Certified Engineer</title>
		<link>http://andreas.heigl.org/2012/06/20/zend-certified-engineer/</link>
		<comments>http://andreas.heigl.org/2012/06/20/zend-certified-engineer/#comments</comments>
		<pubDate>Wed, 20 Jun 2012 11:11:49 +0000</pubDate>
		<dc:creator>Andreas Heigl</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://andreas.heigl.org/?p=208</guid>
		<description><![CDATA[Just a quick note. Yesterday I passed my ZendCertifiedEngineer 5.3 exam. It doesn&#8217;t change anything besides the fact that there is still a lot to learn about PHP.]]></description>
				<content:encoded><![CDATA[<p>Just a quick note. Yesterday I passed my ZendCertifiedEngineer 5.3 exam.</p>
<p>It doesn&#8217;t change anything besides the fact that there is still a lot to learn about PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreas.heigl.org/2012/06/20/zend-certified-engineer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Obfuscate Mail-Address and keep Usability</title>
		<link>http://andreas.heigl.org/2012/03/06/obfuscate-mail-address-and-keep-usability/</link>
		<comments>http://andreas.heigl.org/2012/03/06/obfuscate-mail-address-and-keep-usability/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 13:35:17 +0000</pubDate>
		<dc:creator>Andreas Heigl</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://andreas.heigl.org/?p=166</guid>
		<description><![CDATA[Today a friend pointed me to an old Blog-Post that talks about obfuscating mail-addresses. Cool stuff I thought at once. Especially simply using the code-direction to obfuscate the mail caught my eye. But on the second glance, there was one major drawback. Try to bring such an eMail-address to your mail-client by copy and pasting. [...]]]></description>
				<content:encoded><![CDATA[<p>Today a friend pointed me to an old <a href="http://techblog.tilllate.com/2008/07/20/ten-methods-to-obfuscate-e-mail-addresses-compared/ " title="Blog-post">Blog-Post</a> that talks about obfuscating mail-addresses. </p>
<p>Cool stuff I thought at once.</p>
<p>Especially simply using the code-direction to obfuscate the mail caught my eye.</p>
<p>But on the second glance, there was one major drawback. Try to bring such an eMail-address to your mail-client by copy and pasting. The nice and shiny address <strong>foo@example.com</strong> suddenly transforms into an ugly <strong>moc.elpmaxe@oof</strong>.<br />
<span id="more-166"></span><br />
But hey, the user wants to click onto the mail-address anyway. So no Problem there. Simply add a mailto-Link to the obfuscated eMail-address and thats it. </p>
<p>Oh, wait! Major drawback there. </p>
<ul>
<li>Either I have to use the plaintext eMail-Address &#8211; Why go through the hassle of obfuscating the address in the first place?</li>
<li>Or I need some way of translating the reversed address into a plain one without someone noticing.</li>
</ul>
<p>So I fiddled around a bit and came up with a simple server-side script that not only allows you to use obfuscated mail-addresses, but also gives you the possibility to add some informations to the mail, the user is about to write.</p>
<p>PHP to the rescue. Assume that the link looks like that</p>
<pre class="brush: php; title: ; notranslate">&lt;a style=&quot;unicode-bidi:bidi-override; direction: rtl;&quot; 
    href=&quot;redirect.php?mail=moc.elpmaxe@oof&quot;&gt;
    moc.elpmaxe@oof
&lt;/a&gt;</pre>
<p>Then you simply need a server side script that look something allong these lines (here an example in PHP)</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
header('Location: mailto:'
        . strrev($_REQUEST['mail'])
        . '?subject=my%20Subject');
</pre>
<p>Thats all!</p>
<p>Nothing more!!</p>
<p>Simply reverse the string and send a Location-Header that instantly redirects the browser to a mailto-URI. That causes the browser to fire up the users default mail-client, create a new Mail, address it to foo@example.com and also set the subject to &#8220;my Subject&#8221;.</p>
<p><strong>Update</strong><br />
There is a module for ZendFramework2 for that at <a href="https://github.com/heiglandreas/OrgHeiglMailproxy">https://github.com/heiglandreas/OrgHeiglMailproxy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://andreas.heigl.org/2012/03/06/obfuscate-mail-address-and-keep-usability/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
