<?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>Axute</title>
	<atom:link href="http://www.axute.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.axute.de</link>
	<description>Just another IT weblog</description>
	<lastBuildDate>Mon, 28 Feb 2011 21:24:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Save-TV: Premium Account und Server-Wechsel</title>
		<link>http://www.axute.de/2011/02/27/save-tv-premium-account-und-server-wechsel/</link>
		<comments>http://www.axute.de/2011/02/27/save-tv-premium-account-und-server-wechsel/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 11:18:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[save.tv]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[Firefox-Addon]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[Wohnzimmer PC]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=287</guid>
		<description><![CDATA[Sorry Erst ein mal möchte ich mich bei diejenigen entschuldigen, die mich per E-Mail kontaktiert haben bezüglich dem Save-TV Downloadscript. Ich habe seit ca. einem halben Jahr nicht mehr daran entwickelt, Gründe dafür könnte ich hierfür eine Menge nennen, aber viele sind eher Privat. Einer der größten Gründe war, dass save.tv ständig seinen Quellcode geändert [...]]]></description>
			<content:encoded><![CDATA[<h3>Sorry</h3>
<p>Erst ein mal möchte ich mich bei diejenigen entschuldigen, die mich per E-Mail kontaktiert haben bezüglich dem Save-TV Downloadscript. Ich habe seit ca. einem halben Jahr nicht mehr daran entwickelt, Gründe dafür könnte ich hierfür eine Menge nennen, aber viele sind eher Privat.<br />
Einer der größten Gründe war, dass save.tv ständig seinen Quellcode geändert hat, da verliert man die Lust am umprogrammieren.</p>
<p>Das Script funktionierte also vorn und hinten nicht mehr wirklich.</p>
<h3>Was hat sich bei mir geändert</h3>
<p>Ich für meine <strong>Storage</strong> &#8220;Wohnzimmer PC&#8221; das Betriebsystem von <a href="http://www.ubuntu.com/">Ubuntu</a> auf <a href="http://freenas.org/">Freenas</a> gewechselt, da ich mit dem <a href="http://de.wikipedia.org/wiki/Server_Message_Block">Samba</a> konfigurieren unzufrieden war und ich hier noch keine <a href="http://en.wikipedia.org/wiki/ZFS">ZFS</a> Unterstützung zur Verfügung hatte.</p>
<p>Den <strong>Provider</strong> habe ich ebenfalls gewechselt, von Arcor auf Kabel-Deutschland. Da mein bisheriges Script mit fullspeed heruntergeladen hat, hätte es ebenfalls die Leitung zum VOIP-telefonieren dicht gemacht.</p>
<p>Seit Dezember letzten Jahres habe ich dann den <strong>save.tv-Account</strong> auf <strong>Premium</strong> umgestellt, um die neuen Features zu testen.</p>
<h3>Der Lösungsansatz</h3>
<p>Da ich in letzter Zeit jedoch wieder viel aufgenommen habe, und mit dem Downloaden nicht hinter her kam, musste ich mir eine schnelle und unkomplizierte Lösung einfallen lassen.<br />
Ich habe zunächst ein simples Script gebastelt, das den Linux/Unix befehl <a href="http://de.wikipedia.org/wiki/Wget">wget</a> verwendet.<br />
Das simple Download-Tool hat viele Möglichkeiten:</p>
<ul>
<li>Drosseln der Geschwindigkeit</li>
<li>Prozess unabhängig</li>
<li>Viele Parameter, die sich ausbauen lassen um weitere Entwicklung an zu hängen</li>
</ul>
<h3>Die Idee</h3>
<p>Weil man nur schwer an die Download-Links von save.tv heran, so habe ich immer per <a href="https://addons.mozilla.org/en-US/firefox/addon/downthemall/">DownThemAll-Plugin</a> den Download sofort auf Pause geschalten, dann aus den Informationen den Link heraus geholt und in das Script kopiert: <strong>auf Dauer auch lästig!</strong><br />
Meine Suche nach einem Plugin führte mich auf den &#8220;<a href="https://addons.mozilla.org/en-US/firefox/addon/whs-download-manager-client/">WHS Download-Manager-Client</a>&#8220;.<br />
WHS steht für Windows-Home-Server, für den wurde wohl ein Download-Manager entwickelt, und für den wiederum ein Client.<br />
Nun das Addon war sehr simple, man konfiguriert ihm eine Server-URL, klickt beim Download &#8220;WHS-Download-Manager-Client&#8221; an und schon lädt der Server die Datei herunter. Wo war der Haken? WHS-Download-Manager hat eine SOAP-API. Das ist zwar sehr universell und freundlich Programmiert, <strong>aber nicht einfach genug für mich!</strong></p>
<h3>Die Lösung</h3>
<p>Nun nach dem ich mir das Firefox Addon zu WHS angesehen habe, musste ich ein wenig schmunzeln, ein bissl XML und ein bissl Javascript: sieht realistisch aus so etwas um zu basteln <img src='http://www.axute.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<img src="http://www.axute.de/wp-content/uploads/2011/02/axdl_concept.png" alt="" title="axdl_concept" width="400" class="alignnone size-full wp-image-301" /></p>
<p>um dann schließlich noch eins drauf zu setzen und eine Übersicht zu erhalten habe ich diesen Ablauf noch erweitert:<br />
<img src="http://www.axute.de/wp-content/uploads/2011/02/axdl_concept2.png" alt="" title="axdl_concept2" width="400" class="alignnone size-full wp-image-305" /></p>
<p>Alle Scripts und das Addon werde ich noch online stellen, es ist dann hier im Blog zu finden:<br />
<a href="http://www.axute.de/save-tv/">http://www.axute.de/save-tv/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2011/02/27/save-tv-premium-account-und-server-wechsel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sicherer Surfen &#8211; KB SSL Enforcer</title>
		<link>http://www.axute.de/2010/10/19/sicherer-surfen-goolge-chrome-addon-empfehlung/</link>
		<comments>http://www.axute.de/2010/10/19/sicherer-surfen-goolge-chrome-addon-empfehlung/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 17:38:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hintergrundwissen]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Secure]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=269</guid>
		<description><![CDATA[Nun in Sachen Surfen kann man heute nicht vorsichtig genug sein. Aber wer möchte sich schon immer vergewissern ob die Seite auch ein Sicheres Protokoll verwendet? Was ist ein sicheres Protokoll? Wiki (ftw) Fast alle großen Internetportale bieten auch eine gesicherte Verbindung an, wie zum Beispiel Goolge: http://www.google.de, https://www.google.de Facebook: http://www.facebook.com, https://www.facebook.com Ich möchte gerne [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://chrome.google.com/extensions/detail/flcpelgcagfhfoegekianiofphddckof"><img style="float: left; border: 1px solid black; margin-right: 10px; margin-bottom: 10px;" src="https://chrome.google.com/extensions/img/flcpelgcagfhfoegekianiofphddckof/1285281899.67/screenshot/1001" alt="KB SSL Enforcer Screenshot" /></a>Nun in Sachen Surfen kann man heute nicht vorsichtig genug sein.<br />
Aber wer möchte sich schon immer vergewissern ob die Seite auch ein Sicheres Protokoll verwendet?<br />
<span id="more-269"></span><br />
Was ist ein sicheres Protokoll? <a href="http://en.wikipedia.org/wiki/HTTP_Secure">Wiki</a> (ftw)<br />
<br clear="both" /><br />
Fast alle großen Internetportale bieten auch eine gesicherte Verbindung an, wie zum Beispiel<br />
<strong>Goolge:</strong> <a href="http://www.google.de">http://www.google.de</a>, <a href="https://www.google.de">http<font style="color: red">s</font>://www.google.de</a><br />
<strong>Facebook:</strong> <a href="http://www.facebook.com">http://www.facebook.com</a>, <a href="https://www.facebook.com">http<font style="color: red">s</font>://www.facebook.com</a></p>
<p>Ich möchte gerne ein Addon für Google-Chrome vorstellen: <a href="https://chrome.google.com/extensions/detail/flcpelgcagfhfoegekianiofphddckof">KB SSL Enforcer</a><br />
Es ist recht einfach gehalten, es prüft selbstständig ob eine Internetseite auch mit Verschlüsselung zur Verfügung stellt, und ruft stattdessen diese auf.</p>
<p>Zu den Optionen gibts nicht viel zu sagen, außer:<br />
<strong>Whitelist:</strong> (Seiten bei denen SSL vorhanden ist)<br />
<strong>Blacklist:</strong> (Seiten bei denen kein SSL gefunden wurde)</p>
<p>Wenn man eine Seite <strong>nicht verschlüsselt</strong> haben möchte, weil diese Fehler verursacht (zum Beispiel: maps.google.com), kann man diese mit auf die <strong>Blacklist </strong>setzen.</p>
<p>Eine Alternative für Firefox gibt es auch: <a href="https://addons.mozilla.org/en-US/firefox/addon/229918/">HTTPS Everywhere</a>.<br />
Wer den Internet-Explorer verwendet hat schon mal die größte Tür geöffnet und ist nicht mehr zu helfen <img src='http://www.axute.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/10/19/sicherer-surfen-goolge-chrome-addon-empfehlung/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tarif-Retter: DroidStats</title>
		<link>http://www.axute.de/2010/09/01/tarif-retter-droidstats/</link>
		<comments>http://www.axute.de/2010/09/01/tarif-retter-droidstats/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 15:14:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=257</guid>
		<description><![CDATA[Heute möchte ich mal wieder eine sehr nützliche Application für Android vorstellen: DroidStats (by Michael Ludwig) Gesucht habe ich eigentlich nur einen einfachen Counter, da ich im vorletzten Monat mein SMS-Kontingent überschritten habe. Gefunden habe ich eine sehr vernünftige und einfache APP die alles abdeckt: DroidStats. Sehr genial finde ich das man hier nicht nur die [...]]]></description>
			<content:encoded><![CDATA[<p><img style="width: 200px; float: left; margin-right: 10px; border: 1px solid black;" src="http://www.axute.de/wp-content/uploads/2010/09/screenshot.122824_2.jpg" alt="DroidStats" />Heute möchte ich mal wieder eine sehr nützliche Application für Android vorstellen: DroidStats (by Michael Ludwig)<br />
Gesucht habe ich eigentlich nur einen einfachen Counter, da ich im vorletzten Monat mein SMS-Kontingent überschritten habe.<br />
Gefunden habe ich eine sehr vernünftige und einfache APP die alles abdeckt: DroidStats.<br />
<span id="more-257"></span><br />
Sehr genial finde ich das man hier nicht nur die Freiminuten und Frei-SMS eintragen kann, sondern auch die Kosten für jede zusätzliche Minute (inkl. Taktung) und auch die SMS-Kosten.<br />
Die zusätzlich anfallenden Kosten sind glücklicherweise bei meinem Tarif sonst recht konstant (und teuer, sobald das Kontingent überschritten wird).</p>
<p><a href="http://www.androidzoom.com/android_applications/tools/droidstats_ckjc.html">http://www.androidzoom.com/android_applications/tools/droidstats_ckjc.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/09/01/tarif-retter-droidstats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>media-server Probleme</title>
		<link>http://www.axute.de/2010/08/16/media-server-probleme/</link>
		<comments>http://www.axute.de/2010/08/16/media-server-probleme/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 19:15:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[save.tv]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[JFS]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wohnzimmer PC]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=250</guid>
		<description><![CDATA[Sorry das ich zur Zeit nicht mehr an Save.TV Script weiter entwickle, aber ich kämpfe stark an meinen Problemen mit meinem Wohnzimmer-PC. Dort sind all meine Aufnahmen drauf, und ich habe beim Filme ansehen über LAN dermaßen unzumutbare &#8220;Lags&#8221;, das ich nicht mehr weiter weiß. Erst dachte ich: die junge Festplatte gibt den Geist auf, [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry das ich zur Zeit nicht mehr an Save.TV Script weiter entwickle, aber ich kämpfe stark an meinen Problemen mit meinem Wohnzimmer-PC. Dort sind all meine Aufnahmen drauf, und ich habe beim Filme ansehen über LAN dermaßen unzumutbare &#8220;Lags&#8221;, das ich nicht mehr weiter weiß. Erst dachte ich: die junge Festplatte gibt den Geist auf, dem war jedoch nicht so. Um das zu merken habe ich mir eine neue <a href="http://www.samsung.com/global/business/hdd/productmodel.do?group=72&amp;type=94&amp;subtype=98&amp;model_cd=233&amp;tab=fea&amp;ppmi=1219" target="_blank">Samsung 1TB 24/7 F1 (7200 U/min)</a> gekauft, teuer aber richtig flott im Gegensatz zu der <a href="http://www.samsung.com/global/business/hdd/productmodel.do?group=72&amp;type=94&amp;subtype=98&amp;model_cd=441&amp;tab=fea&amp;ppmi=1219" target="_blank">1.5TB</a> (zugegeben, das sind auch nur 5400 U/min).</p>
<p>Zwischendurch lief die Freigabe wieder flüssig, allerdings bisher wieder wie vorher. Im aktuellen Ubuntu-Update sind wieder Samba-Pakete enthalten, ich bin gespannt &#8230; es ist nicht mehr lustig.</p>
<p>Falls jemand zufällig weiß woran das liegen kann, hier meine Systemdaten:</p>
<ul>
<li>Server: Ubuntu 10.04 (32bit)</li>
<li>Clients: Windows 7  (32bit)</li>
</ul>
<p>Server-Filesystems:</p>
<ul>
<li>root (/) ext3</li>
<li>srv (/srv) ext2</li>
<li>filme (/mnt/local/video) jfs(1)</li>
</ul>
<p>Netzwerk:</p>
<ul>
<li>100 M/Bit</li>
<li>Router: LinkSys WRT54GL</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/08/16/media-server-probleme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unterseite für save.tv-Download-Script</title>
		<link>http://www.axute.de/2010/07/15/unterseite-fuer-save-tv-download-script/</link>
		<comments>http://www.axute.de/2010/07/15/unterseite-fuer-save-tv-download-script/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 03:05:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[save.tv]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=239</guid>
		<description><![CDATA[Ich habe in den letzten beiden Wochen mehrere Anfragen bekommen, die bezüglich meines Download-Scripts sind. Da die Nachfrage hier wohl doch größer als gedacht ist, habe ich eine separate Unterseite angelegt. Entweder ihr klickt auf den tollen Link ganz oben im Menü, oder falls ihr diesen Eintrag aus einem RSS-Feeder herauslest könnt ihr auch folgenden Link [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe in den letzten beiden Wochen mehrere Anfragen bekommen, die bezüglich meines Download-Scripts sind. Da die Nachfrage hier wohl doch größer als gedacht ist, habe ich eine separate Unterseite angelegt.<br />
Entweder ihr klickt auf den tollen Link ganz oben im Menü, oder falls ihr diesen Eintrag aus einem RSS-Feeder herauslest könnt ihr auch folgenden Link verwenden:</p>
<p><a title="Save.tv Download-Script" href="http://www.axute.de/save-tv/" target="_self">http://www.axute.de/save-tv/</a></p>
<p><span style="color: #ff0000;">PS: Denkt daran das es seit der Umstellung nicht mehr funktioniert, sobald es die Temperaturen aber zulassen werde ich mein Hobby fortsetzen <img src='http://www.axute.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/07/15/unterseite-fuer-save-tv-download-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem beim Update auf Thunderbird 3.1 Ubuntu 8.10 mit Ubuntuzilla</title>
		<link>http://www.axute.de/2010/06/25/problem-beim-update-auf-thunderbird-3-1-ubuntu-8-10/</link>
		<comments>http://www.axute.de/2010/06/25/problem-beim-update-auf-thunderbird-3-1-ubuntu-8-10/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 07:23:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hintergrundwissen]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Problembehebung]]></category>
		<category><![CDATA[Thunderbird]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntuzilla]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=197</guid>
		<description><![CDATA[Ich habe heute per Ubuntuzilla den Thunderbird auf die Version 3.1 aktualisiert, leider ließ sich der Thunderbird danach nicht mehr starten! Nach dem ich diesen dann noch mal gelöscht und neu installiert hatte, funktionierte es immer noch nicht. Verschieben der Profildaten half dann. Ursache habe ich auch gefunden: xpti.dat Diese Datei einfach löschen, anschließend funktioniert [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe heute per Ubuntuzilla den Thunderbird auf die Version 3.1 aktualisiert, leider ließ sich der Thunderbird danach nicht mehr starten!<br />
Nach dem ich diesen dann noch mal gelöscht und neu installiert hatte, funktionierte es immer noch nicht.<br />
Verschieben der Profildaten half dann. Ursache habe ich auch gefunden:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">xpti.dat</div></div>
<p>Diese Datei einfach <strong>löschen</strong>, anschließend funktioniert wieder alles.</p>
<p>Updatescript für Ubuntuzilla</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
ubuntuzilla.py <span style="color: #660033;">-a</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-p</span> thunderbird</div></div>
<p>Ubuntuzilla gibt es unter: <a href="http://ubuntuzilla.sourceforge.net">http://ubuntuzilla.sourceforge.net</a></p>
<p><strong>UPDATE:</strong><br />
Nach einem Neustart half nicht ein mal mehr das, ich bin wieder auf <strong>Version 3.0.5 umgestiegen.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/06/25/problem-beim-update-auf-thunderbird-3-1-ubuntu-8-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geburtstage + Google Contacts + Android = EboBirthday</title>
		<link>http://www.axute.de/2010/05/13/geburtstage-google-contacts-android-ebobirthday/</link>
		<comments>http://www.axute.de/2010/05/13/geburtstage-google-contacts-android-ebobirthday/#comments</comments>
		<pubDate>Thu, 13 May 2010 12:02:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Handy]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[Birthday]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google Calendar]]></category>
		<category><![CDATA[Google Contacts]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=182</guid>
		<description><![CDATA[Android kann bis heute nicht die Geburtstage mit Synchronisieren, Google Calendar kann bis heute keine Geburtstage im Kalender darstellen. Das Tool von EboMike tuts total, es hat eine Synchronisation mit Google Contacts und sogar ein Widget, das einen die nächsten Geburtstage anzeigt. Man kann natürlich auch die Geburtstage selbst einpflegen, aber dann kann ich sie mir [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.axute.de/wp-content/uploads/2010/05/EboBirthday_1.png" alt="EboBirthday-Widget" style="width: 200px; float: left; margin-right: 10px; border: 1px solid black;" />Android kann bis heute nicht die Geburtstage mit Synchronisieren, Google Calendar kann bis heute keine Geburtstage im Kalender darstellen.<br />
Das Tool von EboMike tuts total, es hat eine Synchronisation mit Google Contacts und sogar ein Widget, das einen die nächsten Geburtstage anzeigt.</p>
<p>Man kann natürlich auch die Geburtstage selbst einpflegen, aber dann kann ich sie mir ja gleich merken und in den G.Calendar eintragen <img src='http://www.axute.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Hier der Link zur APP:</p>
<p><a href="http://www.ebomike.com/android/ebobirthday/" target="_blank">EboMikes Homepage &#8211; EboBirthday</a>.<br />
<br clear="both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/05/13/geburtstage-google-contacts-android-ebobirthday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dateinamen Normalizer</title>
		<link>http://www.axute.de/2010/05/02/dateinamen_normalizer/</link>
		<comments>http://www.axute.de/2010/05/02/dateinamen_normalizer/#comments</comments>
		<pubDate>Sun, 02 May 2010 12:56:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[JFS]]></category>
		<category><![CDATA[Journaled File System]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wohnzimmer PC]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=162</guid>
		<description><![CDATA[Bei meiner neuen Zuordnung von Dateinamen zu Filmen, bin ich schon länger immer wieder über das gleiche Problem gestoßen: Umlaute in Dateinamen. Umlaute sollten eigentlich kein Problem darstellen, allerdings pendelt mein Wohnzimmer PC zwischen 2 Betriebssystemen (Linux / Windows), einem lokalem (Dateisystem jfs) und einem netzwerk (Samba / Windows-Dateifreigabe) Dateiaufruf. Das Problem Das bringt so [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float: left;" src="http://www.axute.de/wp-content/uploads/2010/05/php_search_128.png" alt="PHP Filesearch" title="php_search_128" width="128" height="128" class="size-full wp-image-161" />Bei meiner neuen Zuordnung von Dateinamen zu Filmen, bin ich schon länger immer wieder über das gleiche Problem gestoßen: Umlaute in Dateinamen.<br />
Umlaute sollten eigentlich kein Problem darstellen, allerdings pendelt mein Wohnzimmer PC zwischen 2 Betriebssystemen (Linux / Windows), einem lokalem (Dateisystem jfs) und einem netzwerk (Samba / Windows-Dateifreigabe) Dateiaufruf.<br />
<br clear="both" /><br />
<span id="more-162"></span></p>
<h3>Das Problem</h3>
<p>Das bringt so einige Dateinamen Probleme mit sich. Theoretisch könnte man die Dateinamen alle mit Umlauten auf die Festplatte (jfs) schreiben, Samba kommt damit allerdings nicht so zu recht. Man könnte auch die Dateinamen URL-Encoden, womit ebenfalls das Dateisystem zurecht käme, allerdings hätte ich hier Probleme bei den URL-Aufruf durch den jeweiligen Player, da ich nicht weiß diese nicht auch ein URL-Encoding drin haben und mit einem doppeltem Encoding wären diese dann nicht aufrufbar.</p>
<h3>Der Versuch</h3>
<p>In <a target="_blank" href="http://www.rooftopsolutions.nl/blog/filesystem-encoding-and-php">diesem Artikel</a> wäre auch super besprochen wie man es mit einem URL-Encode ähnlichem Verfahren hin bekommen würde. In meinen Versuch diesen Artikel um zu setzen scheiterte es jedoch an der <a target="_blank" href="http://kr2.php.net/manual/en/class.normalizer.php">Normalizer-Klasse</a>, die bei mir ständig ein &#8220;false&#8221; zurück gibt. Ich habe ca. 15-30 Minuten gekämpft, ohne Erfolg.</p>
<h3>Die Lösung</h3>
<p>Nun der Ansatz ist eigentlich nicht verkehrt, ein <a target="_blank" href="http://de.php.net/manual/en/function.urlencode.php">URL-Encode</a> ähnliches Verfahren zu verwenden.<br />
Das Rad neu erfinden war noch nie meine Intention, also habe ich mir erst ein mal dieses Verfahren zu nutze gemacht.</p>
<p>So wurde zum Beispiel aus <font color="red">Tränen_der_Sonne.avi</font> ein <font color="red">Tr%E4nen_der_Sonne.avi</font>.<br />
Damit dieses Prozent-Zeichen (<font color="red">%</font>) nicht versucht wird erneut zu URL-Encoden oder zu der Dateiname insgesamt nicht versucht wird zu URL-Decoden, habe ich mir ein Zeichen gesucht, das eigentlich im Dateisystem sehr üblich ist: <font color="red">~</font> (tilde)<br />
Schließlich sieht dann also der Dateiname wie folgt aus: <font color="red">Tr~E4nen_der_Sonne.avi</font></p>
<p>Wenn man also das mal in einer Befehlskette zusammenfassen möchte sähe das wie folgt aus:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'~'</span><span style="color: #339933;">,</span><a href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Reverse</span><br />
<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/urldecode"><span style="color: #990000;">urldecode</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'~'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'%'</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<h3>Mein Normalizer</h3>
<p>Nun da der Normalizer von PHP ja komischer Weise nicht funktioniert, habe ich mir selber einen geschrieben mit der oben genannten Lösung. Ich habe auch gleich noch ein paar andere Funktionen eingebunden: strtolower, reparieren von vermurksten Umlauten und das Entfernen von Sonderzeichen.</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000000; font-weight: bold;">class</span> file_safety<br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> static <span style="color: #000000; font-weight: bold;">function</span> normalize<span style="color: #009900;">&#40;</span><span style="color: #000088;">$orginalname</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$newname</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">dec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$orginalname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$newname</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">repair</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$newname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$newname</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">sonderzeichen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$newname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$newname</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$newname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$newname</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">enc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$newname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$newname</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> static <span style="color: #000000; font-weight: bold;">function</span> enc<span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'~'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'%'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> &nbsp; <span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'~'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'%'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> &nbsp; <span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'~'</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> static <span style="color: #000000; font-weight: bold;">function</span> dec<span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <a href="http://www.php.net/urldecode"><span style="color: #990000;">urldecode</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'~'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'%'</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> static <span style="color: #000000; font-weight: bold;">function</span> sonderzeichen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$sonderzeichen</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'!'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'?'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sonderzeichen</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$zeichen</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> &nbsp; <span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$zeichen</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_-_'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> static <span style="color: #000000; font-weight: bold;">function</span> repair<span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$uml</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$x</span><span style="color: #339933;">&lt;</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$x</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$z1</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$z1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">195</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$z2</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span><span style="color: #000088;">$x</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$uml</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$z1</span><span style="color: #339933;">.</span><span style="color: #000088;">$z2</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$x</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$uml</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$search</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> &nbsp; <span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$search</span><span style="color: #339933;">,</span><a href="http://www.php.net/chr"><span style="color: #990000;">chr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">uniord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$search</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> static <span style="color: #000000; font-weight: bold;">function</span> uniord<span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$h</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&lt;=</span> <span style="color: #208080;">0x7F</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$h</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&lt;</span> <span style="color: #208080;">0xC2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&lt;=</span> <span style="color: #208080;">0xDF</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x1F</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">6</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&lt;=</span> <span style="color: #208080;">0xEF</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x0F</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">12</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">6</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&lt;=</span> <span style="color: #208080;">0xF4</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x0F</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">18</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">12</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">6</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<h3>Meine Helfer</h3>
<p>Ich habe natürlich über 700 Filmaufnahmen, wovon ca. 1/3 Umlaute haben die bereits vermurkst sind.<br />
Um mir hier Zeit zu sparen habe ich mir ein Consolen-Script gebastelt, dass mir die Nachträglich Codierung abnimmt:</p>
<h4>Einzelscript in PHP</h4>
<p>In dem <u>aufnahmen.xml</u> befinden sich sämtliche Referenzen zu den Filmen, sofern man das nicht hat, kann man das beruhigt raus löschen.<br />
(<u>Übrigens die Helferklasse file_safety muss unten mit rein kopiert werden, wenn das Script funktionieren soll</u>)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#!/usr/bin/php<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<a href="http://www.php.net/ini_set"><span style="color: #990000;">ini_set</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'display_errors'</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><br />
<a href="http://www.php.net/ini_set"><span style="color: #990000;">ini_set</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'display_startup_errors'</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><br />
<br />
<span style="color: #000088;">$aufnahmenfile</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/srv/www/xml/aufnahmen.xml'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$aufnahmenstring</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$aufnahmenfile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">/*<br />
&nbsp;* Füllt sich selber auf, wie zum beispiel mit &quot;chr(195).chr(164)&quot;;<br />
&nbsp;*/</span><br />
<span style="color: #000088;">$uml</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$debug</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'debug'</span><span style="color: #339933;">,</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_file"><span style="color: #990000;">is_file</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_writable"><span style="color: #990000;">is_writable</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/dirname"><span style="color: #990000;">dirname</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$path</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$new</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$org</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/basename"><span style="color: #990000;">basename</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$new</span> <span style="color: #339933;">=</span> file_safety<span style="color: #339933;">::</span><span style="color: #004000;">normalize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$new</span> <span style="color: #339933;">!==</span> <span style="color: #000088;">$org</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$newpath</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$org</span><span style="color: #339933;">,</span><span style="color: #000088;">$new</span><span style="color: #339933;">,</span><span style="color: #000088;">$path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mv '<span style="color: #006699; font-weight: bold;">{$path}</span>' '<span style="color: #006699; font-weight: bold;">{$newpath}</span>'&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$command</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$debug</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/exec"><span style="color: #990000;">exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$aufnahmenstring</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$org</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Eintrag in Aufnahmen-Datei gefunden<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$aufnahmenstring</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$org</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$new</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">,</span><span style="color: #000088;">$aufnahmenstring</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/file_put_contents"><span style="color: #990000;">file_put_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$aufnahmenfile</span><span style="color: #339933;">,</span><span style="color: #000088;">$aufnahmenstring</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Debug-Mode (no change): <span style="color: #006699; font-weight: bold;">{$org}</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span> &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;No Changes Required: <span style="color: #006699; font-weight: bold;">{$org}</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Um mir die Arbeit in der Console zu erleichtern, habe ich ein Symbolic Link gemacht:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>urlencode.php <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>urlencode</div></div>
<h4>Stapelverarbeitung</h4>
<p>Bei über 700 Dateien wäre die Eingabe jeder einzelner Datei sehr lästig, darum habe ich mir nur ein bash-Script gebastelt, das alle avi-Dateien im aktuellen Verzeichnis durcharbeitet:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #000000; font-weight: bold;">for</span> fname <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>.avi<br />
<span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp; urlencode <span style="color: #007800;">$fname</span><br />
<span style="color: #000000; font-weight: bold;">done</span></div></div>
<p>Und natürlich wieder ein Symbolic Link gemacht:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>urlencodedir.sh <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>urlencodedir</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/05/02/dateinamen_normalizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zwei-Einhalb TeraByte eingerichtet :)</title>
		<link>http://www.axute.de/2010/04/25/zwei-einhalb-terabyte-eingerichtet/</link>
		<comments>http://www.axute.de/2010/04/25/zwei-einhalb-terabyte-eingerichtet/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 10:38:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Systemadministration]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[JFS]]></category>
		<category><![CDATA[Journaled File System]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wohnzimmer PC]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=139</guid>
		<description><![CDATA[Nach dem ich nun ja mal wieder den Wohnzimmer PC aufrüsten musste weil mir der Platz für Aufnahmen fehlte, habe ich die Festplatten gleich mal umstrukturiert. Wohnzimmer PC Der Wohnzimmer PC ist ein alter Rechner Motherboard A7n8x-E Deluxe AMD Barton 2,4 GHz (runtergetaktet auf 650 MHz) 2GB DDR1 (333 MHz) RAM (runtergetaktet auf 100 MHz) [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.axute.de/wp-content/uploads/2010/04/wohnzimmer_partitionierung.png" style="float: left; margin-right: 10px;"><img src="http://www.axute.de/wp-content/uploads/2010/04/wohnzimmer_partitionierung-300x123.png" alt="etc - fstab" title="Wohnzimmer PC Parptionierung" width="300" height="123" class="size-medium wp-image-140" /></a> Nach dem ich nun ja mal wieder den Wohnzimmer PC aufrüsten musste weil mir der Platz für Aufnahmen fehlte, habe ich die Festplatten gleich mal umstrukturiert.<br />
<br clear="both" /><br />
<span id="more-139"></span><br />
<br clear="both" /></p>
<h2>Wohnzimmer PC</h2>
<p><img src="http://p.gzhls.at/34927.jpg" alt="Yeong Yang Cube Server Case YY-0221" title="Yeong Yang Cube Server Case YY-0221" style="float: left; padding-right: 30px;" /><br />
Der Wohnzimmer PC ist ein alter Rechner</p>
<div style="padding: 20px;">
<ul>
<li>Motherboard A7n8x-E Deluxe</li>
<li>AMD Barton 2,4 GHz (runtergetaktet auf 650 MHz)</li>
<li>2GB DDR1 (333 MHz) RAM (runtergetaktet auf 100 MHz)</li>
<li>LG DVD-Brenner</li>
<li>Gehäuse ist ein voll-gedämmtes &#8220;Yeong Yang (YY-B0221)&#8221; <img src='http://www.axute.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
</div>
<p><br clear="both" /></p>
<h2>Umstrukturierung</h2>
<h4>1,5 TB &#8211; 4 Festplatten</h4>
<p>Vorher war alles eher verteilter, was mich schon länger störte:</p>
<ul>
<li>[0160] Boot, System, Services, Files (part1)</li>
<li>[0160] Files (part2)</li>
<li>[0500] Video 1</li>
<li>[0500] Video 2</li>
</ul>
<h4>2,5 TB &#8211; 3 Festplatten</h4>
<p>Nachher:</p>
<ul>
<li>[0500] Boot, System, Services, Files (part1 &#038; part2)</li>
<li>[1500] Video 1.1, Video 1.2</li>
<li>[0500] Video 2.1</li>
</ul>
<p>Die [1500] musste ich leider Teilen, denn ich bin Fan von JFS (siehe Bild) und JFS lässt leider nur Partitionsgrößen von 1000 GB zu. &#8220;Video 1&#8243; ist deshalb zu zwei Partitionen geworden (1.1 und 1.2).</p>
<h2>JFS</h2>
<p>Warum ich JFS gewählt habe, hat mehrere Gründe:</p>
<ul>
<li>Es hat schnelle Löschzeiten (wichtig für Aussortieren von Aufnahmen)</li>
<li>Die Dateisystem Treiber sind sehr Resourcen sparend (braucht wesentlich weniger CPU-Leistung!)</li>
<li>In sämtlichen Performance-Tests liegt JFS stehts im Mittelfeld<br />
Es ist also nirgends das Beste System, trotzdem auch bei den Rangbesten dabei</li>
</ul>
<p>Wünschenswert wäre natürlich <a href="http://de.wikipedia.org/wiki/Journaled_File_System" target="_blank">JFS2</a>, es kann wesentlich mehr allerdings habe ich hier noch keine gute Einbindung in Ubuntu Server gefunden (10.04 hat es anscheinend schon drin &#8211; also die Tools dafür, allerdings is mir das zu &#8220;beta&#8221;).</p>
<h2>FSTAB mit Labels</h2>
<p>Es ist eigentlich das erste mal, das ich in der FSTAB (/etc/fstab) Labels verwende.<br />
Darauf gestoßen bin ich erst durch die Umstrukturierung, denn wenn man mit gParted die Partitionen kopiert, werden auch die UUID mit kopiert &#8230;<br />
<font style="font-size: 120%;color: red; font-weight: bold;">Wer hat sich so nen scheiss ausgedacht !? macht wenig sinn! sind ja dann nicht mehr UNIQUE!</font></p>
<p>Nun ja ich habe mir dann die (einmalige) Mühe gemacht und allen Partitionen Labels verpasst</p>
<ul>
<li>Nimmt in der /etc/fstab weniger Platz weg</li>
<li>Kann man im Gegensatz zur UUID selber ändern</li>
<li>Man hat mehr Überblick im Partitionierungsprogramm</li>
</ul>
<p>So bei Gelegenheit gibt es dann ein Atom-Board, bis dahin muss das genügen <img src='http://www.axute.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/04/25/zwei-einhalb-terabyte-eingerichtet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZendServer mit NCURSES</title>
		<link>http://www.axute.de/2010/02/10/zendserver-mit-ncurses/</link>
		<comments>http://www.axute.de/2010/02/10/zendserver-mit-ncurses/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 22:45:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ncurses]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[PECL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ZendServer]]></category>

		<guid isPermaLink="false">http://www.axute.de/?p=129</guid>
		<description><![CDATA[Seit PHP 5.3 wurde &#8220;ncurses&#8221; aus den Standardmodulen entfernt, verständlich denn die Consolenverschönerung ist eigentlich nur ein nice2have. Da ich allerdings den Background-Downloader vom Filmarchiv damit programmiert habe, und das auch toll finde möchte ich bei NCURSES bleiben. Es war eine schwere Geburt, trotzdem ist aber was bei heraus gekommen, und für alle jene die [...]]]></description>
			<content:encoded><![CDATA[<p>Seit PHP 5.3 wurde &#8220;ncurses&#8221; aus den Standardmodulen entfernt, verständlich denn die Consolenverschönerung ist eigentlich nur ein nice2have.<br />
<span id="more-129"></span><br />
Da ich allerdings den Background-Downloader vom Filmarchiv damit programmiert habe, und das auch toll finde möchte ich bei NCURSES bleiben.</p>
<p>Es war eine schwere Geburt, trotzdem ist aber was bei heraus gekommen, und für alle jene die es auch haben wollen hier nun die schlagkräftigen Zeilen:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">apt-get install</span> <span style="color: #c20cb9; font-weight: bold;">m4</span> <span style="color: #c20cb9; font-weight: bold;">autoconf</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> ncurses-term libncurses5-dbg libncurses5-dev libncursesw5-dbg libncursesw5-dev<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>zend<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pecl channel-update pecl.php.net<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>zend<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pecl <span style="color: #c20cb9; font-weight: bold;">install</span> ncurses</div></div>
<p>Also mit Apt die Pakete &#8220;m4&#8243; und &#8220;autoconf&#8221; installieren, braucht PECL zum konfigurieren, &#8220;gcc&#8221; zum kompilieren (sollte nicht neu sein <img src='http://www.axute.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) und die darauffolgende Pakete werden auch dafür gebraucht.</p>
<p>Anschließend folgt das Channel-Update (da sich das Protokoll geändert hat) und dann die Installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axute.de/2010/02/10/zendserver-mit-ncurses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

