<?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>Vresh.net</title>
	<atom:link href="http://www.vresh.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vresh.net</link>
	<description>Der Vresheste Blog im Web</description>
	<lastBuildDate>Thu, 19 Aug 2010 21:22:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>[Sonstiges] Ein paar Zeilen&#8230;</title>
		<link>http://www.vresh.net/2010/08/19/293-sonstiges-ein-paar-zeilen/</link>
		<comments>http://www.vresh.net/2010/08/19/293-sonstiges-ein-paar-zeilen/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 21:22:55 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Sinnlos]]></category>
		<category><![CDATA[deutschrap]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=293</guid>
		<description><![CDATA[Ich dachte mir ich poste hier mal ein paar meiner Deutschrap-Zeilen, die ich mal beim Kacken oder so erfunden hab. Mir fällt grad nichts besseres für einen Blogeintrag ein. Ich denke ich werde aber demnächst einen sinnvollen Eintrag schreiben über eine Android App von mir. In einer Woche, oder zwei oder so. Eh naja zurück [...]]]></description>
			<content:encoded><![CDATA[<p>Ich dachte mir ich poste hier mal ein paar meiner Deutschrap-Zeilen, die ich mal beim Kacken oder so erfunden hab. Mir fällt grad nichts besseres für einen Blogeintrag ein.</p>
<p>Ich denke ich werde aber demnächst einen sinnvollen Eintrag schreiben über eine Android App von mir. In einer Woche, oder zwei oder so.</p>
<p>Eh naja zurück zum Thema, manche sind gut und manche schlecht halt xD</p>
<p><span id="more-293"></span></p>
<p style="padding-left: 30px;">komme grad vom training, ich hab den jesus style, du aber auch,<br />
ich mache kreuzheben und du hast n loch im bauch,<br />
wirst du genagelt, ziehst du n scheiss gesicht,<br />
ich hab mir mit nem wertvollen tuch schweiß ausm gesicht gewischt</p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">ich ficke bitches etwas unter 18 und etwas über 18,<br />
wie viele es am tag sind? etwas über 18,<br />
doch du bezweifelst, dass dieser text wahrheit hat,<br />
denn du hast die tage &#8211; wie ein kalenderblatt,</p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">
dein freundeskreis ist wie ein putztuchschrank &#8211; er besteht nur aus lappen<br />
um das zu ändern greife ich zum waffenschrank - hörst du das klacken?</p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">du beim rappen bist wie ein pazifistischer türsteher &#8211; haust nicht viel raus,<br />
deine mutter ist wie ein architekt &#8211; weil sie mir einen baut,</p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">ich hock hier im keller, fick bitches mit meinem komplizen Josef,<br />
ficke sie hart, ficke sie schneller, schicke sie heim wenn er sie loslässt<br />
danach wird eine geraucht, dabei lass ich dampf ab<br />
anstatt dich zu überfahren, mit meinem dicken panzer</p>
<p style="padding-left: 30px;">ladys reißen sich um mich wie deine sippe um eine süß-sauer-ente<br />
du würdest gern in meiner haut stecken wie rot braune farbpigmente</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/08/19/293-sonstiges-ein-paar-zeilen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meine Erste iPad App</title>
		<link>http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/</link>
		<comments>http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 23:47:48 +0000</pubDate>
		<dc:creator>Frido</dc:creator>
				<category><![CDATA[ObjectiveC]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[iOS & co.]]></category>
		<category><![CDATA[360-Live]]></category>
		<category><![CDATA[gamescom]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[PS3M]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=253</guid>
		<description><![CDATA[Nach 2 Wochen harter Arbeit ist meine erste iPad App Fertig. Die App gibt&#8217;s leider nur auf der Gamescom zu sehen und nicht im Store Die App wird am Stand der Spielefachmagazine PS3M und 360-Live zu finden sein. In jener App können die Besucher des Messestandes ein Abo bestellen, Das Aktuelle Heft lesen, Die Community [...]]]></description>
			<content:encoded><![CDATA[<p>Nach 2 Wochen harter Arbeit ist meine erste iPad App Fertig. Die App gibt&#8217;s leider nur auf der Gamescom zu sehen und nicht im Store <img src='http://www.vresh.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Die App wird am Stand der Spielefachmagazine PS3M und 360-Live zu finden sein. In jener App können die Besucher des Messestandes ein Abo bestellen, Das Aktuelle Heft lesen, Die Community mit einer Kurznachricht von 160 Zeichen grüßen, sich für den Newsletter eintragen oder auch News von der Webseite lesen. Hier gibts noch ein paar Screenshots von der App <img src='http://www.vresh.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-35-25/' title='Screenshot 2010.08.15 01.35.25'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.35.25-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.35.25" title="Screenshot 2010.08.15 01.35.25" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-31-07/' title='Screenshot 2010.08.15 01.31.07'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.31.07-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.31.07" title="Screenshot 2010.08.15 01.31.07" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-30-58/' title='Screenshot 2010.08.15 01.30.58'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.30.58-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.30.58" title="Screenshot 2010.08.15 01.30.58" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-30-48/' title='Screenshot 2010.08.15 01.30.48'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.30.48-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.30.48" title="Screenshot 2010.08.15 01.30.48" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-30-42/' title='Screenshot 2010.08.15 01.30.42'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.30.42-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.30.42" title="Screenshot 2010.08.15 01.30.42" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-30-26/' title='Screenshot 2010.08.15 01.30.26'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.30.26-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.30.26" title="Screenshot 2010.08.15 01.30.26" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-30-18/' title='Screenshot 2010.08.15 01.30.18'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.30.18-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.30.18" title="Screenshot 2010.08.15 01.30.18" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-29-59/' title='Screenshot 2010.08.15 01.29.59'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.29.59-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.29.59" title="Screenshot 2010.08.15 01.29.59" /></a>
<a href='http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/screenshot-2010-08-15-01-29-55/' title='Screenshot 2010.08.15 01.29.55'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.29.55-150x150.png" class="attachment-thumbnail" alt="Screenshot 2010.08.15 01.29.55" title="Screenshot 2010.08.15 01.29.55" /></a>

<p><a href="http://www.vresh.net/wp-content/uploads/2010/08/Screenshot-2010.08.15-01.31.07.png"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/08/15/253-meine-erste-ipad-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Einfache Mehrsprachigkeit in PHP</title>
		<link>http://www.vresh.net/2010/08/15/229-einfache-mehrsprachigkeit-in-php/</link>
		<comments>http://www.vresh.net/2010/08/15/229-einfache-mehrsprachigkeit-in-php/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 23:09:59 +0000</pubDate>
		<dc:creator>Frido</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Wissenschaft]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=229</guid>
		<description><![CDATA[Soll eine Webanwendung erfolgreich sein muss sie Heute vor allem Global Funktionieren sprich jeder auf der Welt soll sie Verstehen. Hierfür gibt es natürlich wie immer viele Wege. Am einfachsten ist es alle Sprachvariablen in ein Array zu schreiben auf das man dann zugreift z.B gibt man dann einfach echo $lang['download_success'] aus um den Benutzer [...]]]></description>
			<content:encoded><![CDATA[<p>Soll eine Webanwendung erfolgreich sein muss sie Heute vor allem Global Funktionieren sprich jeder auf der Welt soll sie Verstehen. Hierfür gibt es natürlich wie immer viele Wege.</p>
<p>Am einfachsten ist es alle Sprachvariablen in ein Array zu schreiben auf das man dann zugreift z.B gibt man dann einfach <em>echo $lang['download_success']</em> aus um den Benutzer in seiner Sprach mitzuteilen das ein Download erfolgreich war usw. Jeder der so schon mal gearbeitet hat wird schnell feststellen das dieses System ein entschiedenen Nachteil hat. Will man dem Benutzer jetzt beispielsweise begrüßen mit Meldungen wie &#8220;Hallo <em>Name</em>, schön das du wieder da bist&#8221; taucht ein erstes Problem auf wie bekomme ich den Namen in den String die wohl einfachste aber zugleich umständlichste Methode wäre es die Sprachvariable in zwei Teile zu zerlegen. Sprich</p>
<p><em>$lang[welcome_1] = „Hallo“;</em></p>
<p><em>$lang[welcome_2]= „, schön das du wieder da bist“;</em></p>
<p><em>Echo $lang[welcome_1] . $sUsername . $lang[welcome_2];</em></p>
<p>Das ist eine Lösung die bei größeren Projekten total versagt da sie meiner Meinung nach vieeel zu umständlich ist. Viel Sinnvoller ist es doch in die Sprachstrings Variablen reinzuschreiben und diese dann zu ersetzen. Das sähe dann z.B. so aus:</p>
<p>$<em>lang[welcome] = „Hallo %name%, schön das du wieder da bist“;</em></p>
<p><em>Echo str_replace(‚%name‘ , $sUsername , $lang[‚welcome‘];</em></p>
<p>Vom Grundsatz her ist das schon mal ganz gut aber immer noch nicht sehr produktiv.</p>
<p>Ich habe das Problem letztlich so gelöst:</p>
<p>Die Sprachvariablen stehen in einer INI-Datei nach dem Schema</p>
<p><em>Name_der_Variable=“Hallo ich bin der Sprach String %s &lt;- das ist eine Variable in der Sprachvariable“</em></p>
<p>Der Konstruktor der Klasse lädt die Sprachvariablen in ein assoziatives Array. Um auf eine Variable zuzugreifen habe ich die Methode <em>lang($name , $values… ) </em> definiert. $name ist der Name der Sprachvariable $values… sind die Werte mit denen die Variablen in den Sprachstrings ersetzt werden sollen (vgl. printf ).</p>
<p>Teil 2 folgt noch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/08/15/229-einfache-mehrsprachigkeit-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nützliche Android-Apps</title>
		<link>http://www.vresh.net/2010/06/03/226-nutzliche-android-apps/</link>
		<comments>http://www.vresh.net/2010/06/03/226-nutzliche-android-apps/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 20:12:24 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[nützlich]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=226</guid>
		<description><![CDATA[Wer sich fragt, welche Apps er noch für sein Android-Gerät gebrauchen könnte, kann ja mal hier in meine kleine Liste der für mich wichtigsten Apps gucken. ASTRO &#8211; Datei Manager mit vielen Funktionen. Braucht man einfach. Ist kostenlos. AudioManager &#8211; erlaubt es die verschiedenen Lautstärkelevels von z.B. Alarm, Medien, Rufton etc. zu ändern. Kann man [...]]]></description>
			<content:encoded><![CDATA[<p>Wer sich fragt, welche Apps er noch für sein Android-Gerät gebrauchen könnte, kann ja mal hier in meine kleine Liste der für mich wichtigsten Apps gucken.</p>
<p><strong>ASTRO</strong> &#8211; Datei Manager mit vielen Funktionen. Braucht man einfach. Ist kostenlos.</p>
<p><strong>AudioManager</strong> &#8211; erlaubt es die verschiedenen Lautstärkelevels von z.B. Alarm, Medien, Rufton etc. zu ändern. Kann man dann auch als Widget auf den Homescreen einfügen. Perfekt, wenn man in der Schule sicher gehen will, dass das Handy auf jeden Fall leise ist, auch bei Spielen. In der Lite-Version kostenlos.</p>
<p><strong>Handcent SMS </strong>- Ersatz für die SMS App. Bietet viel mehr Funktionen und Einstellungsmöglichkeiten als die original SMS-Anwendung. Kostenlos.</p>
<p><strong>SwiFTP </strong>- Erlaubt das starten eines FTP-Servers auf dem Handy. So kann man über W-Lan, aber auch über 3G, falls erwünscht, Dateien vom PC auf das Handy senden. Kostenlos.</p>
<p><strong>CoPilot Live </strong>- Offline Navigationssoftware. Gibt es nicht viel zu sagen. Gibt viel Kartenmaterial dafür und funktioniert. Mit DACH-Karten: 29,99€ ( <a href="http://www.alk.eu.com/de/">http://www.alk.eu.com/de/</a> )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/06/03/226-nutzliche-android-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mimetypes als Defines?</title>
		<link>http://www.vresh.net/2010/05/17/205-mimetypes-als-defines/</link>
		<comments>http://www.vresh.net/2010/05/17/205-mimetypes-als-defines/#comments</comments>
		<pubDate>Mon, 17 May 2010 21:42:08 +0000</pubDate>
		<dc:creator>Frido</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[define]]></category>
		<category><![CDATA[defines]]></category>
		<category><![CDATA[Mime]]></category>
		<category><![CDATA[Mime Types]]></category>
		<category><![CDATA[Mime-Typen]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=205</guid>
		<description><![CDATA[Du brauchst einige Mime-Typen als C/C++ Defines? Dann bist du hier genau richtig //text #define MIME_HTML &#34;text/html&#34; #define MIME_MATHML &#34;text/mathml&#34; #define MIME_CSS &#34;text/css&#34; #define MIME_CSV &#34;text/csv&#34; #define MIME_JAVASCRIPT &#34;text/javascript&#34; #define MIME_PLAIN &#34;text/plain&#34; #define MIME_XML &#34;text/xml&#34; //application #define MIME_XML &#34;application/xml&#34; #define MIME_XHTML &#34;application/xhtml+xm&#34; #define MIME_RSS &#34;application/rss+xml&#34; #define MIME_DTD &#34;application/xml-dtd&#34; #define MIME_PDF &#34;application/pdf&#34; #define MIME_ZIP &#34;application/zip&#34; #define [...]]]></description>
			<content:encoded><![CDATA[<p>Du brauchst einige Mime-Typen als C/C++ Defines? Dann bist du hier genau richtig <img src='http://www.vresh.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  <span id="more-205"></span></p>
<pre class="brush: cpp">
//text

#define MIME_HTML &quot;text/html&quot;
#define MIME_MATHML &quot;text/mathml&quot;
#define MIME_CSS &quot;text/css&quot;
#define MIME_CSV &quot;text/csv&quot;
#define MIME_JAVASCRIPT &quot;text/javascript&quot;
#define MIME_PLAIN &quot;text/plain&quot;
#define MIME_XML &quot;text/xml&quot;

//application

#define MIME_XML &quot;application/xml&quot;
#define MIME_XHTML &quot;application/xhtml+xm&quot;
#define MIME_RSS &quot;application/rss+xml&quot;
#define MIME_DTD &quot;application/xml-dtd&quot;
#define MIME_PDF &quot;application/pdf&quot;
#define MIME_ZIP &quot;application/zip&quot;
#define MIME_JSON &quot;application/json&quot;
#define MIME_ATOM &quot;application/atom+xml&quot;

#define MIME_OPEN_DOCUMENT_TEXT &quot;application/vnd.oasis.opendocument.text&quot;
#define MIME_OPEN_DOCUMENT_SPREADSHEET &quot;application/vnd.oasis.opendocument.spreadsheet&quot;
#define MIME_OPEN_DOCUMENT_PRESENTATION &quot;application/vnd.oasis.opendocument.presentation&quot;
#define MIME_OPEN_DOCUMENT_GRAPHICS &quot;application/vnd.oasis.opendocument.graphics&quot;
#define MIME_MSEXCEL &quot;application/vnd.ms-excel&quot;
#define MIME_MSEXCEL2007 &quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&quot;
#define MIME_MSPOWERPOINT &quot;application/vnd.ms-powerpoint&quot;
#define MIME_MSWORD &quot;application/msword&quot;
#define MIME_MSWORD2007 &quot;application/vnd.openxmlformats-officedocument.wordprocessingml.document&quot;
#define MIME_MOZILLA_XUL &quot;application/vnd.mozilla.xul+xml&quot;

#define MIME_SWF &quot;application/x-shockwave-flash&quot;
#define MIME_FLASH &quot;application/x-shockwave-flash&quot;

#define MIME_RAR &quot;application/x-rar-compressed&quot;

//images

#define MIME_SVG &quot;image/svg+xml&quot;
#define MIME_JPG &quot;image/jpeg&quot;
#define MIME_JPEG &quot;image/jpeg&quot;
#define MIME_PNG &quot;image/png&quot;
#define MIME_GIF &quot;image/gif&quot;
#define MIME_WBMP &quot;image/vnd.wap.wbmp&quot;
#define MIME_ICO &quot;image/vnd.microsoft.icon&quot;
#define MIME_TIFF &quot;image/tiff&quot;

//video

#define MIME_VIDEO_MPEG &quot;video/mpeg&quot;
#define MIME_VIDEO_MP4 &quot;video/mp4&quot;
#define MIME_VIDEO_OGG &quot;video/ogg&quot;
#define MIME_QUICKTIME &quot;video/quicktime&quot;

//audio

#define MIME_BASIC &quot;audio/basic&quot;
#define MIME_AUDIO_MP4 &quot;audio/mp4&quot;
#define MIME_AUDIO_MPEG &quot;audio/mpeg&quot;
#define MIME_MP3 &quot;audio/mpeg&quot;
#define MIME_AUDIO_OGG &quot;audio/ogg&quot;
#define MIME_VORBIS &quot;audio/vorbis&quot;
</pre>
<p> <img src='http://www.vresh.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/05/17/205-mimetypes-als-defines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Status Codes als Defines</title>
		<link>http://www.vresh.net/2010/05/17/203-http-status-codes-als-defines/</link>
		<comments>http://www.vresh.net/2010/05/17/203-http-status-codes-als-defines/#comments</comments>
		<pubDate>Mon, 17 May 2010 17:27:38 +0000</pubDate>
		<dc:creator>Frido</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[defines]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP Status]]></category>
		<category><![CDATA[HTTP Status Codes]]></category>
		<category><![CDATA[Statuscodes]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=203</guid>
		<description><![CDATA[Für ein Aktuelles Projekt hab ich mir alle HTTP-Status Codes in defines geschrieben. Mich nervt so was immer ungemein daher stelle ich sie mal hier zur Verfügung für alle denen es ähnlich geht //1xx Informal #define HTTP_STATUS_CONTINUE &#34;100 Continue&#34; #define HTTP_STATUS_SWITCHING_PROTOCOLS &#34;101 Switching Protocols&#34; //2xx Sucess #define HTTP_STATUS_OK &#34;200 OK&#34; #define HTTP_STATUS_CREATED &#34;201 Created&#34; #define [...]]]></description>
			<content:encoded><![CDATA[<p>Für ein Aktuelles Projekt hab ich mir alle HTTP-Status Codes in defines geschrieben. Mich nervt so was immer ungemein daher stelle ich sie mal hier zur Verfügung für alle denen es ähnlich geht <img src='http://www.vresh.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<pre class="brush: cpp">
//1xx Informal

#define HTTP_STATUS_CONTINUE &quot;100 Continue&quot;
#define HTTP_STATUS_SWITCHING_PROTOCOLS &quot;101 Switching Protocols&quot;

//2xx Sucess

#define HTTP_STATUS_OK &quot;200 OK&quot;
#define HTTP_STATUS_CREATED &quot;201 Created&quot;
#define HTTP_STATUS_ACCEPTED &quot;202 Accepted&quot;
#define HTTP_STATUS_NO_CONTENT &quot;204 No Content&quot;
#define HTTP_STATUS_RESET_CONTENT &quot;205 Reset Content&quot;
#define HTTP_STATUS_PARTIAL_CONTENT &quot;206 Partial Content&quot;

//3xx Redirection

#define HTTP_STATUS_MULTIPLE_CHOICES &quot;300 Multiple Choices&quot;
#define HTTP_STATUS_MOVED_PERMANENTLY &quot;301 Moved Permanently&quot;
#define HTTP_STATUS_FOUND &quot;302 Found&quot;
#define HTTP_STATUS_SEE OTHER &quot;303 See Other&quot;
#define HTTP_STATUS_NOT_MODIFIED &quot;304 Not Modified&quot;
#define HTTP_STATUS_USE_PROXY &quot;305 Use Proxy&quot;
#define HTTP_STATUS_TEMPORARY_REDIRECT &quot;307 Temporary Redirect&quot;

//4xx Client Error

#define HTTP_STATUS_BAD_REQUEST &quot;400 Bad Request&quot;
#define HTTP_STATUS_UNAUTHORIZED &quot;401 Unauthorized&quot;
#define HTTP_STATUS_PAYMENT_REQUIRED &quot;402 Payment Required&quot; //no used
#define HTTP_STATUS_FORBIDDEN &quot;403 Forbidden&quot;
#define HTTP_STATUS_NOT_FOUND &quot;404 Not Found&quot;
#define HTTP_STATUS_METHOD_NOT_ALLOWED &quot;405 Method Not Allowed&quot;
#define HTTP_STATUS_NOT_ACCEPTABLE &quot;406 Not Acceptable&quot;
#define HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED &quot;407 Proxy Authentication Required&quot;
#define HTTP_STATUS_REQUEST_TIMEOUT &quot;408 Request Timeout&quot;
#define HTTP_STATUS_CONFLICT &quot;409 Conflict&quot;
#define HTTP_STATUS_GONE &quot;410 Gone&quot;
#define HTTP_STATUS_LENGTH_REQUIRED &quot;411 Length Required&quot;
#define HTTP_STATUS_PRECONDITION_FAILED &quot;412 Precondition Failed&quot;
#define HTTP_STATUS_REQUEST ENTITY_TOO_LARGE &quot;413 Request Entity Too Large&quot;
#define HTTP_STATUS_REQUEST-URI_TOO_LONG &quot;414 Request-URI Too Long&quot;
#define HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE &quot;415 Unsupported Media Type&quot;
#define HTTP_STATUS_REQUESTED RANGE_NOT_SATISFIABLE &quot;416 Requested Range Not Satisfiable&quot;
#define HTTP_STATUS_EXPECTATION_FAILED &quot;417 Expectation Failed&quot;
#define HTTP_STATUS_TOO_MANY_CONNECTIONS_FROM_YOUR_INTERNET_ADDRESS &quot;421 There are too many connections from your internet address&quot;

//5xx Server Error

#define HTTP_STATUS_INTERNAL_SERVER_ERROR &quot;500 Internal Server Error&quot;
#define HTTP_STATUS_NOT_IMPLEMENTED &quot;501 Not Implemented&quot;
#define HTTP_STATUS_BAD_GATEWAY &quot;502 Bad Gateway&quot;
#define HTTP_STATUS_SERVICE_UNAVAILABLE &quot;503 Service Unavailable&quot;
#define HTTP_STATUS_GATEWAY_TIMEOUT &quot;504 Gateway Timeout&quot;
#define HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED &quot;505 HTTP Version Not Supported&quot;
</pre>
<p>Ich hoffe ich habe jemanden etwas Zeit und Arbeit erspart <img src='http://www.vresh.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/05/17/203-http-status-codes-als-defines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Die Vresh Android App</title>
		<link>http://www.vresh.net/2010/05/10/194-die-vresh-android-app/</link>
		<comments>http://www.vresh.net/2010/05/10/194-die-vresh-android-app/#comments</comments>
		<pubDate>Sun, 09 May 2010 22:06:06 +0000</pubDate>
		<dc:creator>Frido</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Handy]]></category>
		<category><![CDATA[Mobil]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Vresh]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=194</guid>
		<description><![CDATA[Also ich muss schon sagen Android Handys und Android an sich ist ne tolle Sache. Als ich mich vor ein paar Wochen dafür entschieden hatte mir ein HTC Desire zu kaufen dachte ich mir kurzerhand ich könnte mir ja schon mal das SDK anschauen. Eigentlich wollte ich nur bisschen &#8220;rumspielen&#8221; aber letztendlich wurde die &#8220;VreshApp&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Also ich muss schon sagen <strong>Android Handys</strong> und <strong>Android </strong>an sich ist ne tolle Sache. Als ich mich vor ein paar Wochen dafür entschieden hatte mir ein <strong>HTC Desire</strong> zu kaufen dachte ich mir kurzerhand ich könnte mir ja schon mal das <strong><a href="http://developer.android.com/sdk/index.html" target="_blank">SDK</a></strong> anschauen. Eigentlich wollte ich nur bisschen &#8220;rumspielen&#8221; aber letztendlich wurde die &#8220;<strong>VreshApp</strong>&#8221; daraus. Nun ja die Funktionsweise ist simpel : Man loggt sich auf seinen <strong>Android Handy</strong> ein und erhält dann Zugang zu geheimen<strong> Vresh</strong>-Funktionen *gg*. Bis jetzt ist aber auch nur der Login fertig <img src='http://www.vresh.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Naja hier sind einige Screenshots :
<a href='http://www.vresh.net/2010/05/10/194-die-vresh-android-app/vreshapp_1/' title='vreshapp_1'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/05/vreshapp_1-150x150.png" class="attachment-thumbnail" alt="vreshapp_1" title="vreshapp_1" /></a>
<a href='http://www.vresh.net/2010/05/10/194-die-vresh-android-app/vreshapp_2/' title='vreshapp_2'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/05/vreshapp_2-150x150.png" class="attachment-thumbnail" alt="vreshapp_2" title="vreshapp_2" /></a>
<a href='http://www.vresh.net/2010/05/10/194-die-vresh-android-app/vreshapp_3/' title='vreshapp_3'><img width="150" height="150" src="http://www.vresh.net/wp-content/uploads/2010/05/vreshapp_3-150x150.png" class="attachment-thumbnail" alt="vreshapp_3" title="vreshapp_3" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/05/10/194-die-vresh-android-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP-Array mit allen Virtual Key Codes</title>
		<link>http://www.vresh.net/2010/03/15/151-php-array-mit-allen-virtual-key-codes/</link>
		<comments>http://www.vresh.net/2010/03/15/151-php-array-mit-allen-virtual-key-codes/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 22:03:12 +0000</pubDate>
		<dc:creator>Frido</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Wissenschaft]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Virtual Key Codes]]></category>
		<category><![CDATA[VK]]></category>
		<category><![CDATA[WINAPI]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=151</guid>
		<description><![CDATA[Nach 20min nervigen tippen hab ich es dann mal hingekommen alle Virtual Key Codes in ein PHP-Array zu Tippen und weil ich weiß wie nervig derartige Arbeit ist stelle ich das Ergebnis hier mal jeden zur Verfügung. $vk_keys = array( &#34;0xC1&#34; =&#62; &#34;Abnt C1&#34;, &#34;0xC2&#34; =&#62; &#34;Abnt C2&#34;, &#34;0x6B&#34; =&#62; &#34;Numpad +&#34;, &#34;0xF6&#34; =&#62; &#34;Attn&#34;, [...]]]></description>
			<content:encoded><![CDATA[<p>Nach 20min nervigen tippen hab ich es dann mal hingekommen alle Virtual Key Codes in ein PHP-Array zu Tippen und weil ich weiß wie nervig derartige Arbeit ist stelle ich das Ergebnis hier mal jeden zur Verfügung.</p>
<pre class="brush: php">$vk_keys = array(
&quot;0xC1&quot; =&gt; &quot;Abnt C1&quot;,
&quot;0xC2&quot; =&gt; &quot;Abnt C2&quot;,
&quot;0x6B&quot; =&gt; &quot;Numpad +&quot;,
&quot;0xF6&quot; =&gt; &quot;Attn&quot;,
&quot;0x08&quot; =&gt; &quot;Backspace&quot;,
&quot;0x03&quot; =&gt; &quot;Break&quot;,
&quot;0x0C&quot; =&gt; &quot;Clear&quot;,
&quot;0xF7&quot; =&gt; &quot;Cr Sel&quot;,
&quot;0x6E&quot; =&gt; &quot;Numpad .&quot;,
&quot;0x6F&quot; =&gt; &quot;Numpad /&quot;,
&quot;0xF9&quot; =&gt; &quot;Er Eof&quot;,
&quot;0x1B&quot; =&gt; &quot;Esc&quot;,
&quot;0x2B&quot; =&gt; &quot;Execute&quot;,
&quot;0xF8&quot; =&gt; &quot;Ex Sel&quot;,
&quot;0xE6&quot; =&gt; &quot;IcoClr&quot;,
&quot;0xE3&quot; =&gt; &quot;IcoHlp&quot;,
&quot;0x30&quot; =&gt; &quot;0&quot;,
&quot;0x31&quot; =&gt; &quot;1&quot;,
&quot;0x32&quot; =&gt; &quot;2&quot;,
&quot;0x33&quot; =&gt; &quot;3&quot;,
&quot;0x34&quot; =&gt; &quot;4&quot;,
&quot;0x35&quot; =&gt; &quot;5&quot;,
&quot;0x36&quot; =&gt; &quot;6&quot;,
&quot;0x37&quot; =&gt; &quot;7&quot;,
&quot;0x38&quot; =&gt; &quot;8&quot;,
&quot;0x39&quot; =&gt; &quot;9&quot;,
&quot;0x41&quot; =&gt; &quot;A&quot;,
&quot;0x42&quot; =&gt; &quot;B&quot;,
&quot;0x43&quot; =&gt; &quot;C&quot;,
&quot;0x44&quot; =&gt; &quot;D&quot;,
&quot;0x45&quot; =&gt; &quot;E&quot;,
&quot;0x46&quot; =&gt; &quot;F&quot;,
&quot;0x47&quot; =&gt; &quot;G&quot;,
&quot;0x48&quot; =&gt; &quot;H&quot;,
&quot;0x49&quot; =&gt; &quot;I&quot;,
&quot;0x4A&quot; =&gt; &quot;J&quot;,
&quot;0x4B&quot; =&gt; &quot;K&quot;,
&quot;0x4C&quot; =&gt; &quot;L&quot;,
&quot;0x4D&quot; =&gt; &quot;M&quot;,
&quot;0x4E&quot; =&gt; &quot;N&quot;,
&quot;0x4F&quot; =&gt; &quot;O&quot;,
&quot;0x50&quot; =&gt; &quot;P&quot;,
&quot;0x51&quot; =&gt; &quot;Q&quot;,
&quot;0x52&quot; =&gt; &quot;R&quot;,
&quot;0x53&quot; =&gt; &quot;S&quot;,
&quot;0x54&quot; =&gt; &quot;T&quot;,
&quot;0x55&quot; =&gt; &quot;U&quot;,
&quot;0x56&quot; =&gt; &quot;V&quot;,
&quot;0x57&quot; =&gt; &quot;W&quot;,
&quot;0x58&quot; =&gt; &quot;X&quot;,
&quot;0x59&quot; =&gt; &quot;Y&quot;,
&quot;0x5A&quot; =&gt; &quot;Z&quot;,
&quot;0x6A&quot; =&gt; &quot;Numpad *&quot;,
&quot;0xFC&quot; =&gt; &quot;NoName&quot;,
&quot;0x60&quot; =&gt; &quot;Numpad 0&quot;,
&quot;0x61&quot; =&gt; &quot;Numpad 1&quot;,
&quot;0x62&quot; =&gt; &quot;Numpad 2&quot;,
&quot;0x63&quot; =&gt; &quot;Numpad 3&quot;,
&quot;0x64&quot; =&gt; &quot;Numpad 4&quot;,
&quot;0x65&quot; =&gt; &quot;Numpad 5&quot;,
&quot;0x66&quot; =&gt; &quot;Numpad 6&quot;,
&quot;0x67&quot; =&gt; &quot;Numpad 7&quot;,
&quot;0x68&quot; =&gt; &quot;Numpad 8&quot;,
&quot;0x69&quot; =&gt; &quot;Numpad 9&quot;,
&quot;0xBA&quot; =&gt; &quot;OEM_1 ( : ; )&quot;,
&quot;0xE2&quot; =&gt; &quot;OEM_102 (&gt; &lt;)&quot;,
&quot;0xBF&quot; =&gt; &quot;OEM_2 (? /)&quot;,
&quot;0xC0&quot; =&gt; &quot;OEM_3 (~ `)&quot;,
&quot;0xDB&quot; =&gt; &quot;OEM_4 ({ [)&quot;,
&quot;0xDC&quot; =&gt; &quot;OEM_5 (| \)&quot;,
&quot;0xDD&quot; =&gt; &quot;OEM_6 (} ])&quot;,
&quot;0xDE&quot; =&gt; &quot;OEM_7 (\&quot; &#039;)&quot;,
&quot;0xDF&quot; =&gt; &quot;OEM_8 (§ !)&quot;,
&quot;0xF0&quot; =&gt; &quot;Oem Attn&quot;,
&quot;0xF3&quot; =&gt; &quot;Auto&quot;,
&quot;0xE1&quot; =&gt; &quot;Ax&quot;,
&quot;0xF5&quot; =&gt; &quot;Back Tab&quot;,
&quot;0xFE&quot; =&gt; &quot;OemClr&quot;,
&quot;0xBC&quot; =&gt; &quot;OEM_COMMA (&lt; ,)&quot;,
&quot;0xF2&quot; =&gt; &quot;Copy&quot;,
&quot;0xEF&quot; =&gt; &quot;Cu Sel&quot;,
&quot;0xF4&quot; =&gt; &quot;Enlw&quot;,
&quot;0xF1&quot; =&gt; &quot;Finish&quot;,
&quot;0x95&quot; =&gt; &quot;Loya&quot;,
&quot;0x93&quot; =&gt; &quot;Mashu&quot;,
&quot;0x96&quot; =&gt; &quot;Roya&quot;,
&quot;0x94&quot; =&gt; &quot;Touroku&quot;,
&quot;0xEA&quot; =&gt; &quot;Jump&quot;,
&quot;0xBD&quot; =&gt; &quot;OEM_MINUS (_ -)&quot;,
&quot;0xEB&quot; =&gt; &quot;OemPa1&quot;,
&quot;0xEC&quot; =&gt; &quot;OemPa2&quot;,
&quot;0xED&quot; =&gt; &quot;OemPa3&quot;,
&quot;0xBE&quot; =&gt; &quot;OEM_PERIOD (&gt; .)&quot;,
&quot;0xBB&quot; =&gt; &quot;OEM_PLUS (+ =)&quot;,
&quot;0xE9&quot; =&gt; &quot;Reset&quot;,
&quot;0xEE&quot; =&gt; &quot;WsCtrl&quot;,
&quot;0xFD&quot; =&gt; &quot;Pa1&quot;,
&quot;0xE7&quot; =&gt; &quot;Packet&quot;,
&quot;0xFA&quot; =&gt; &quot;Play&quot;,
&quot;0xE5&quot; =&gt; &quot;Process&quot;,
&quot;0x0D&quot; =&gt; &quot;Enter&quot;,
&quot;0x29&quot; =&gt; &quot;Select&quot;,
&quot;0x6C&quot; =&gt; &quot;Separator&quot;,
&quot;0x20&quot; =&gt; &quot;Space&quot;,
&quot;0x6D&quot; =&gt; &quot;Num -&quot;,
&quot;0x09&quot; =&gt; &quot;Tab&quot;,
&quot;0xFB&quot; =&gt; &quot;Zoom&quot;,
&quot;0xFF&quot; =&gt; &quot;no VK mapping&quot;,
&quot;0x1E&quot; =&gt; &quot;Accept&quot;,
&quot;0x5D&quot; =&gt; &quot;Context Menu&quot;,
&quot;0xA6&quot; =&gt; &quot;Browser Back&quot;,
&quot;0xAB&quot; =&gt; &quot;Browser Favorites&quot;,
&quot;0xA7&quot; =&gt; &quot;Browser Forward&quot;,
&quot;0xAC&quot; =&gt; &quot;Browser Home&quot;,
&quot;0xA8&quot; =&gt; &quot;Browser Refresh&quot;,
&quot;0xAA&quot; =&gt; &quot;Browser Search&quot;,
&quot;0xA9&quot; =&gt; &quot;Browser Stop&quot;,
&quot;0x14&quot; =&gt; &quot;Caps Lock&quot;,
&quot;0x1C&quot; =&gt; &quot;Convert&quot;,
&quot;0x2E&quot; =&gt; &quot;Delete&quot;,
&quot;0x28&quot; =&gt; &quot;Arrow Down&quot;,
&quot;0x23&quot; =&gt; &quot;End&quot;,
&quot;0x70&quot; =&gt; &quot;F1&quot;,
&quot;0x79&quot; =&gt; &quot;F10&quot;,
&quot;0x7A&quot; =&gt; &quot;F11&quot;,
&quot;0x7B&quot; =&gt; &quot;F12&quot;,
&quot;0x7C&quot; =&gt; &quot;F13&quot;,
&quot;0x7D&quot; =&gt; &quot;F14&quot;,
&quot;0x7E&quot; =&gt; &quot;F15&quot;,
&quot;0x7F&quot; =&gt; &quot;F16&quot;,
&quot;0x80&quot; =&gt; &quot;F17&quot;,
&quot;0x81&quot; =&gt; &quot;F18&quot;,
&quot;0x82&quot; =&gt; &quot;F19&quot;,
&quot;0x71&quot; =&gt; &quot;F2&quot;,
&quot;0x83&quot; =&gt; &quot;F20&quot;,
&quot;0x84&quot; =&gt; &quot;F21&quot;,
&quot;0x85&quot; =&gt; &quot;F22&quot;,
&quot;0x86&quot; =&gt; &quot;F23&quot;,
&quot;0x87&quot; =&gt; &quot;F24&quot;,
&quot;0x72&quot; =&gt; &quot;F3&quot;,
&quot;0x73&quot; =&gt; &quot;F4&quot;,
&quot;0x74&quot; =&gt; &quot;F5&quot;,
&quot;0x75&quot; =&gt; &quot;F6&quot;,
&quot;0x76&quot; =&gt; &quot;F7&quot;,
&quot;0x77&quot; =&gt; &quot;F8&quot;,
&quot;0x78&quot; =&gt; &quot;F9&quot;,
&quot;0x18&quot; =&gt; &quot;Final&quot;,
&quot;0x2F&quot; =&gt; &quot;Help&quot;,
&quot;0x24&quot; =&gt; &quot;Home&quot;,
&quot;0xE4&quot; =&gt; &quot;Ico00 *&quot;,
&quot;0x2D&quot; =&gt; &quot;Insert&quot;,
&quot;0x17&quot; =&gt; &quot;Junja&quot;,
&quot;0x15&quot; =&gt; &quot;Kana&quot;,
&quot;0x19&quot; =&gt; &quot;Kanji&quot;,
&quot;0xB6&quot; =&gt; &quot;App1&quot;,
&quot;0xB7&quot; =&gt; &quot;App2&quot;,
&quot;0xB4&quot; =&gt; &quot;Mail&quot;,
&quot;0xB5&quot; =&gt; &quot;Media&quot;,
&quot;0x01&quot; =&gt; &quot;Left Button **&quot;,
&quot;0xA2&quot; =&gt; &quot;Left Ctrl&quot;,
&quot;0x25&quot; =&gt; &quot;Arrow Left&quot;,
&quot;0xA4&quot; =&gt; &quot;Left Alt&quot;,
&quot;0xA0&quot; =&gt; &quot;Left Shift&quot;,
&quot;0x5B&quot; =&gt; &quot;Left Win&quot;,
&quot;0x04&quot; =&gt; &quot;Middle Button **&quot;,
&quot;0xB0&quot; =&gt; &quot;Next Track&quot;,
&quot;0xB3&quot; =&gt; &quot;Play / Pause&quot;,
&quot;0xB1&quot; =&gt; &quot;Previous Track&quot;,
&quot;0xB2&quot; =&gt; &quot;Stop&quot;,
&quot;0x1F&quot; =&gt; &quot;Mode Change&quot;,
&quot;0x22&quot; =&gt; &quot;Page Down&quot;,
&quot;0x1D&quot; =&gt; &quot;Non Convert&quot;,
&quot;0x90&quot; =&gt; &quot;Num Lock&quot;,
&quot;0x92&quot; =&gt; &quot;Jisho&quot;,
&quot;0x13&quot; =&gt; &quot;Pause&quot;,
&quot;0x2A&quot; =&gt; &quot;Print&quot;,
&quot;0x21&quot; =&gt; &quot;Page Up&quot;,
&quot;0x02&quot; =&gt; &quot;Right Button **&quot;,
&quot;0xA3&quot; =&gt; &quot;Right Ctrl&quot;,
&quot;0x27&quot; =&gt; &quot;Arrow Right&quot;,
&quot;0xA5&quot; =&gt; &quot;Right Alt&quot;,
&quot;0xA1&quot; =&gt; &quot;Right Shift&quot;,
&quot;0x5C&quot; =&gt; &quot;Right Win&quot;,
&quot;0x91&quot; =&gt; &quot;Scrol Lock&quot;,
&quot;0x5F&quot; =&gt; &quot;Sleep&quot;,
&quot;0x2C&quot; =&gt; &quot;Print Screen&quot;,
&quot;0x26&quot; =&gt; &quot;Arrow Up&quot;,
&quot;0xAE&quot; =&gt; &quot;Volume Down&quot;,
&quot;0xAD&quot; =&gt; &quot;Volume Mute&quot;,
&quot;0xAF&quot; =&gt; &quot;Volume Up&quot;,
&quot;0x05&quot; =&gt; &quot;X Button 1 **&quot;
);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2010/03/15/151-php-array-mit-allen-virtual-key-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Script-System 1.0</title>
		<link>http://www.vresh.net/2009/08/30/129-php-script-system-1-0/</link>
		<comments>http://www.vresh.net/2009/08/30/129-php-script-system-1-0/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 20:01:19 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Sinnlos]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Wissenschaft]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=129</guid>
		<description><![CDATA[Aufgrund von Langeweile habe ich in den letzten 45 Minuten an einem PHP-Script gearbeitet. Der Name ist: PHP Script-System. Was macht es? Es vereinfacht das erstellen von kleinen Scripts (z.B. zum Berechnen von physikalischen Werten etc.), indem es einem die Arbeit abnimmt, Formulare zu erstellen. So muss man sich nur noch um die Berechnungen kümmern [...]]]></description>
			<content:encoded><![CDATA[<p>Aufgrund von Langeweile habe ich in den letzten 45 Minuten an einem PHP-Script gearbeitet. Der Name ist: PHP Script-System. Was macht es? Es vereinfacht das erstellen von kleinen Scripts (z.B. zum Berechnen von physikalischen Werten etc.), indem es einem die Arbeit abnimmt, Formulare zu erstellen. So muss man sich nur noch um die Berechnungen kümmern und nicht mehr um das Formular, das auslesen der Formulareingaben, das wieder Ausgeben der Formulareingaben und um den HTML Code allgemein.</p>
<p>Das Script benutzt die Smarty Template Engine, so dass man das Design leicht anpassen kann. Standardmäßig ist nur ein schlichtes Schwarz auf weiß &#8211; Design vorhanden. Außerdem sind drei Beispielscripts vorhanden.</p>
<p><span style="background-color: #ffffff;">Zum herunterladen <a title="PHP Script-System 1.0 Download" href="http://www.vresh.net/php_script_system_1.0.rar" target="_self">HIER</a> klicken.</span> Anleitung ist in der _read.txt zu finden.</p>
<p>Hier ein Beispielscript &#8211; example2.phpsys.php:</p>
<pre class="brush: php">&lt;?php
 	// Example 2. Calculate C = Q / U (Capacity = charge / voltage) (i dont know if charge is the right english word for &quot;elektrische Ladung&quot; xD
    $script = new ScriptParser();
	$script-&gt;init(&#039;POST&#039;);
	$script-&gt;setNote(&#039;You have to define 2 of the variables. The one you want to calculate has to be 0 or left out&#039;);
	$script-&gt;initVar(&#039;C&#039;, &#039;Capacity&#039;, &#039;&#039;, &#039;C/V or F&#039;);
	$script-&gt;initVar(&#039;Q&#039;, &#039;Charge&#039;, 50, &#039;C&#039;);
	$script-&gt;initVar(&#039;U&#039;, &#039;Voltage&#039;, 25, &#039;V&#039;);

	if($script-&gt;vars[&#039;C&#039;] &amp;amp;&amp;amp; $script-&gt;vars[&#039;Q&#039;] &amp;amp;&amp;amp; $script-&gt;vars[&#039;U&#039;])
		$script-&gt;addOutput(&#039;You have to define exactly 2 variables, not more, not less.&#039;);
	else
	{
		if(!$script-&gt;vars[&#039;C&#039;])
		{
			if(!$script-&gt;vars[&#039;Q&#039;] || !$script-&gt;vars[&#039;U&#039;])
				$script-&gt;addOutput(&#039;You have to define exactly 2 variables, not more, not less.&#039;);
			else
			{
				$script-&gt;addOutput(&#039;Capacity - C = &#039;. $script-&gt;vars[&#039;Q&#039;]/$script-&gt;vars[&#039;U&#039;] .&#039; Farad&#039;);
				$script-&gt;addNLandOutput(&#039; [  C=Q/U  ] &#039;);
			}
		}

		if(!$script-&gt;vars[&#039;Q&#039;])
		{
			if(!$script-&gt;vars[&#039;C&#039;] || !$script-&gt;vars[&#039;U&#039;])
				$script-&gt;addOutput(&#039;You have to define exactly 2 variables, not more, not less.&#039;);
			else
			{
				$script-&gt;addOutput(&#039;Charge Q = &#039;. $script-&gt;vars[&#039;C&#039;]*$script-&gt;vars[&#039;U&#039;] .&#039; Q&#039;);
				$script-&gt;addNLandOutput(&#039; [  Q=C*U  ] &#039;);
			}
		}
		if(!$script-&gt;vars[&#039;U&#039;])
		{
			if(!$script-&gt;vars[&#039;C&#039;] || !$script-&gt;vars[&#039;Q&#039;])
				$script-&gt;addOutput(&#039;You have to define exactly 2 variables, not more, not less.&#039;);
			else
			{
				$script-&gt;addOutput(&#039;Charge U = &#039;. $script-&gt;vars[&#039;Q&#039;]/$script-&gt;vars[&#039;C&#039;] .&#039; V&#039;);
				$script-&gt;addNLandOutput(&#039; [  U=Q/C  ] &#039;);
			}
		}
	}

	$script-&gt;Run();
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2009/08/30/129-php-script-system-1-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wbb2 externer Login</title>
		<link>http://www.vresh.net/2009/08/05/105-wbb2-externer-login/</link>
		<comments>http://www.vresh.net/2009/08/05/105-wbb2-externer-login/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:45:45 +0000</pubDate>
		<dc:creator>Frido</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Datenbank]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Session]]></category>
		<category><![CDATA[Userlogin]]></category>
		<category><![CDATA[wbb2]]></category>
		<category><![CDATA[woltab]]></category>
		<category><![CDATA[woltlab burning board 2]]></category>

		<guid isPermaLink="false">http://www.vresh.net/?p=105</guid>
		<description><![CDATA[Vor kurzen war ich mit dem Problem konfrontiert einen Externen Login für das wbb2 zu bauen ,also eine Loginbox auf der Hauptseite.Man sollte nach dem Login natürlich nicht im Forum landen sonder wieder auf der Seite auf der man sich ursprünglich eingeloggt hatte. Diese Tatsache machte meinen ersten Lösungsansatz, einfach die entsprechenden POST-Daten dann die [...]]]></description>
			<content:encoded><![CDATA[<p>Vor kurzen war ich mit dem Problem konfrontiert einen <strong>Externen Login</strong> für das <strong>wbb2</strong> zu bauen ,also eine Loginbox auf der Hauptseite.Man sollte nach dem Login natürlich nicht im Forum landen sonder wieder auf der Seite auf der man sich ursprünglich eingeloggt hatte. Diese Tatsache machte meinen ersten Lösungsansatz, einfach die entsprechenden POST-Daten dann die <em>login.php</em> des Forums zu senden, hinfällig. Also sah ich mir mit <a title="Firefox Add-on Tamper Data" href="https://addons.mozilla.org/en-US/firefox/addon/966" target="_self">Tampa Data</a> die gesendeten Cookies an. Und siehe da drei Cookies <em>wbb2_userid,wbb2_userpassword,wbb2_lastvist. </em>Also hier die erste Funktion zu Login.</p>
<pre class="brush: php">
function LoginUser($username, $password)
{
		global $db;
	  //db ist ein mysqli-Objekt siehe hierfür http://de3.php.net/manual/de/book.mysqli.php
		$sql = &quot;SELECT userid FROM bb1_users WHERE username = &#039;&quot;.mysql_escape_string($username).&quot;&#039; AND password = &#039;&quot; . md5($password) . &quot;&#039;&quot;;
    if ($result=$db-&gt;query($sql))
		{
		  $row = $result-&gt;fetch_assoc();
		  //gibt es das Feld userid im Array sind die Login-Daten gültig
			if($row[&#039;userid&#039;])
			{
					setcookie(&quot;wbb2_userid&quot;, $row[&#039;userid&#039;], time()+3600*24*356, &quot;/&quot;, &quot;.example.com&quot;);
					setcookie(&quot;wbb2_userpassword&quot;, md5($password), time()+3600*24*356, &quot;/&quot;, &quot;.example.com&quot;);
					setcookie(&quot;wbb2_lastvist&quot;, //name des Cookies
                     time(), // Wert in diesen fall der aktuelle Timestamp
                     time()+3600*24*356, //Ablaufdatum des Cookies
                     &quot;/&quot;, // mit / wird der Cookies für alle Unterverzeichnise der Domain verfügbar gemacht
                     &quot;.example.com&quot; // .domain.tld machen wir den Cookies für alle Subdomains verfügbar für den fall dass das Forum sich auf einer Subdomain befindet.);
					//true zurückgeben
					return true;
			}
	}
	//Im falle eines Datenbankfehlers oder üngültigen Login-Daten wird false zurückgegeben
	return false;
}
</pre>
<p>Jetzt wollen wir aber auch wissen ob der User eingeloggt ist. Dafür reicht es aber leider nich einfach zu prüfen ob der Cookie gesetzt ist oder nicht, da bei einer Anmeldung im Forum nur eine Session gesetzt wird. Hier wieder meine Funktion</p>
<pre class="brush: php">
function IsUserLoggedIn($get_data=false)
{
  global $db;
    //wenn ein Cookie gesetzt ist
		if(isset($_COOKIE[&#039;wbb2_userid&#039;]))
		{
		  //und der Cookie wbb2_userid eine Zahl ist
			if (is_numeric($_COOKIE[&#039;wbb2_userid&#039;]))
			{
				$sql = &quot;SELECT userid, username FROM bb1_users WHERE userid = &#039;&quot;.mysql_escape_string($_COOKIE[&#039;wbb2_userid&#039;]).&quot;&#039; AND password = &#039;&quot;.mysql_escape_string($_COOKIE[&#039;wbb2_userpassword&#039;]).&quot;&#039;;&quot;;
				$result = $db-&gt;query($sql);
				$row = $result-&gt;fetch_assoc();
        //Dann Checken wir wieder obs den User gibt und ob seine Passwort stimmt
				if($row[&#039;userid&#039;])
				{
				  //wenn der Parameter $get_data gesetzt ist geben wir den namen un die id in einen array zurück
					if($get_data)
						return array(&quot;userid&quot; =&gt; $row[&#039;userid&#039;], &quot;username&quot; =&gt; $row[&#039;username&#039;]);
					//ansonsten nur true
					else
						return true;
				}
				//false zurückgeben wenns den user nich gibt
				else
				{
					return false;
				}
			}
		}
		//Wenn jetzt also kein Cookie gesetzt ist checken wir die Session
		else
		{
		  //hier fragen wir einfach ab ob für den Aktuellen besucher (ip) eine Session existiert
			$sql=&quot;SELECT userid FROM bb1_sessions WHERE ipaddress = &#039;&quot;.$_SERVER[&#039;REMOTE_ADDR&#039;].&quot;&#039; ORDER BY userid DESC&quot;;
			if($result=$db-&gt;query($sql))
			{
				$row = $result-&gt;fetch_assoc();
				//Da nicht eingeloggte user die userid 0 bekommen muss die id größer 0 sein
				if($row[&#039;userid&#039;] &gt; 0)
				{
					$sql = &quot;SELECT userid, username FROM bb1_users WHERE userid = &#039;&quot;.mysql_escape_string($row[&#039;userid&#039;]).&quot;&#039;;&quot;;
					$result = $db-&gt;query($sql);
					$row = $result-&gt;fetch_assoc();
					//siehe oben
					if($row[&#039;userid&#039;])
					{
						if($get_data)
							return array(&quot;userid&quot; =&gt; $row[&#039;userid&#039;], &quot;username&quot; =&gt; $row[&#039;username&#039;]);
						else
							return true;
					}
				}
			}
		}
		//für alle anderen fälle wird false zurückgegeben
		return false;
	}
</pre>
<p>Zum Schluss noch der Logout, wie oben reicht es nicht einfach nur die Cookies zu löschen auch die Session muss weg.</p>
<pre class="brush: php">
	function LogoutUser()
	{
		global $db;
		$user=IsUserLoggedIn(true);
		//unsere funktion von oben
		if(is_array($user))
		{
      //die wbb2 Session-Daten des eingeloggen User löschen
			$db-&gt;query(&quot;DELETE FROM bb1_sessions WHERE userid = &#039;&quot;.mysql_escape_string($user[&#039;userid&#039;]).&quot;&#039;&quot;);
			//und die PHP session löschen
			session_destroy();
		}
		//dann noch die Cookies löschen
		setcookie(&quot;wbb2_userid&quot;, -1, time()-3600, &quot;/&quot;, &quot;.example.com&quot;);
		setcookie(&quot;wbb2_userpassword&quot;, -1, time()-3600, &quot;/&quot;, &quot;.example.com&quot;);
		setcookie(&quot;wbb2_lastvist&quot;, -1, time()-3600, &quot;/&quot;, &quot;.example.com&quot;);
	}
</pre>
<p>So ich hoffe mal dass das Ganze einigermaßen verständlich war und ich jemanden damit Helfen konnte <img src='http://www.vresh.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . Fragen, Anregungen und Kritik sind erwünscht.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vresh.net/2009/08/05/105-wbb2-externer-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
