<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2germanfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>SUCKUP.de: Mein IT-Blog</title><link>http://suckup.de</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/voku-online" /><description>Mein IT-Blog, in welchem ich über Linux, Windows, Programmierung und dem Web 2.0 schreibe, halt alles was ich selber nicht vergessen möchte.</description><language>de-DE-lite</language><lastBuildDate>Tue, 22 May 2012 04:50:35 PDT</lastBuildDate><generator>http://wordpress.org/?v=3.4-beta4-20841</generator><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/voku-online" /><feedburner:info uri="voku-online" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/content?lg=de&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://us.i1.yimg.com/us.yimg.com/i/de/my/addtomyyahoo4.gif">Subscribe with Mein Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/voku-online" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fvoku-online" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item><title>Scrollen via jQuery</title><link>http://feedproxy.google.com/~r/voku-online/~3/XVmJmZiGZ0Y/</link><category>jQuery</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Tue, 22 May 2012 04:50:35 PDT</pubDate><guid isPermaLink="false">http://suckup.de/?p=5298</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Hier ein kurzes Beispiel, wie man via jQuery die Position eines Elements herausfindet und automatisch an diese Stelle scrollen kann. Wer sich noch nicht so gut mit jQuery- / CSS-Selektoren auskennt, sollte sich einmal folgenden Beitrag durchlesen. -&gt; <a href="http://suckup.de/howto/jquery/crashkurs-jquery-selektoren/">http://suckup.de/howto/jquery/crashkurs-jquery-selektoren/</a></p>
<p>&nbsp;</p>
<p>.scrollTop() -&gt; gibt die Scrollbar Position eines bestimmten Elements zur&uuml;ck </p>
<p>.scroll() -&gt; wird ausgef&uuml;hrt, wenn gescrollt wird (event handler)</p>
<p>.animate() -&gt; erzeugt animations Effekte via numerischer CSS-Einstellungen</p>
<p>.offset() -&gt; gibt die Koordinaten (x,y) eines Elements zur&uuml;ck </p>
<p>.height() -&gt; gibt die H&ouml;he eines Elements zur&uuml;ck</p>
<p>&nbsp;</p>
<p><strong>Beispiel:</strong> <a title="jQuery_scroll.html - Beispiel" href="http://suckup.de/jQuery_scroll.html" target="_blank">jQuery_scroll.html</a></p>
<p>&nbsp;</p>
<p>onClick="$('#box').show(); $('html,body').stop(true,true); var target = $('#box'); var bottom = target.offset().top+target.height()-250; $('html,body').animate({scrollTop: bottom}, 500); return false;"</p>
<p>&nbsp;</p>
<p>-&gt; bei "Klick" [onClick] </p>
<p>    -&gt; zeige das Element mit der ID "box" [#box] an</p>
<p>        -&gt; halte alle Animationen an [stop(true,true)]</p>
<p>          -&gt; die H&ouml;he des Elements auf den x-Koordinate daraufrechnen [offset().top+target.height()]</p>
<p>            -&gt; zu der neuen Koordinate des Elements scrollen [animate({scrollTop: bottom}, 500)]</p>
<p>&nbsp;</p><h2  class="related_post_title">Ähnliche Blog-Einträge:</h2><ul class="related_post"><li>30. January 2010 -- <a href="http://suckup.de/linux/ubuntu/naechstes-lts-ubuntu/" title="Nächstes LTS-Ubuntu heißt 10.04">Nächstes LTS-Ubuntu heißt 10.04</a></li><li>31. January 2010 -- <a href="http://suckup.de/linux/ubuntu/sources-list-tool/" title="Sources-list Tool">Sources-list Tool</a></li><li>31. January 2010 -- <a href="http://suckup.de/linux/finde-dein-linux/" title="Finde dein Linux">Finde dein Linux</a></li><li>30. January 2010 -- <a href="http://suckup.de/windows/microsofts-kostenlose-online-festplatte/" title="Microsofts kostenlose Online-Festplatte">Microsofts kostenlose Online-Festplatte</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/XVmJmZiGZ0Y" height="1" width="1"/>]]></content:encoded><description>Hier ein kurzes Beispiel, wie man via jQuery die Position eines Elements herausfindet und automatisch an diese Stelle scrollen kann. Wer sich noch nicht so gut mit jQuery- / CSS-Selektoren auskennt, sollte sich einmal folgenden Beitrag durchlesen.  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/howto/jquery/scrollen-via-jquery/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://suckup.de/howto/jquery/scrollen-via-jquery/</feedburner:origLink></item><item><title>MySQL: Zahl in Datum umwandeln</title><link>http://feedproxy.google.com/~r/voku-online/~3/Y_V4UW8VQwo/</link><category>MySQL</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Tue, 22 May 2012 04:12:49 PDT</pubDate><guid isPermaLink="false">http://suckup.de/?p=5295</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Falls jemand mal z.B. einen Int-Wert in ein Datum umwandeln muss, kann "CONVERT" bzw. "CAST" weiterhelfen. Auch wenn man eigentlich die Datenbank im Vorhinein so gestalten sollte, dass "date" / "datetime" / ... / als Datentyp verwendet wird. <img src='http://suckup.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p><strong>Beispiel-Datenbank:</strong><br /><code>CREATE TABLE `lall` (<br /> `Id` int(11) NOT NULL AUTO_INCREMENT,<br /> `IntDate` int(11) NOT NULL DEFAULT '0',<br /> PRIMARY KEY (`Id`)<br /> ) ENGINE=MyISAM DEFAULT CHARSET=utf8;</code></p>
<p><code>INSERT INTO `lall` VALUES (1,201001);<br /> INSERT INTO `lall` VALUES (2,201002);<br /> INSERT INTO `lall` VALUES (3,201003);<br /> INSERT INTO `lall` VALUES (4,0);<br /> INSERT INTO `lall` VALUES (5,201011);<br /> INSERT INTO `lall` VALUES (6,201012);<br /> INSERT INTO `lall` VALUES (7,201205);</code></p>
<p><strong>SQL:</strong><br /><code>SELECT * FROM lall<br /> WHERE ((CONVERT(CONCAT(IntDate, '01'), datetime))&gt;NOW() - INTERVAL 12 MONTH OR IntDate=0)<br /> </code></p>
<p>&lt; - dieses SELECT-Statement zeigt alle Datens&auml;tze an, welche nicht &auml;lter als 12 Monate sind oder als (int) Datum "0" eingetragen haben.</p>
<p>CONVERT -&gt; <a title="mysql.com - convert" href="http://dev.mysql.com/doc/refman/5.1/de/charset-convert.html" target="_blank">http://dev.mysql.com/doc/refman/5.1/de/charset-convert.html</a><br /> CONCAT -&gt; <a title="mysql.com - string-functions" href="http://dev.mysql.com/doc/refman/5.1/de/string-functions.html#id571625" target="_blank">http://dev.mysql.com/doc/refman/5.1/de/string-functions.html#id571625</a><br /> NOW -&gt; <a title="mysql.com - date-and-time-functions" href="http://dev.mysql.com/doc/refman/5.1/de/date-and-time-functions.html#id586485" target="_blank">http://dev.mysql.com/doc/refman/5.1/de/date-and-time-functions.html#id586485</a></p><h2  class="related_post_title">Ähnliche Blog-Einträge:</h2><ul class="related_post"><li>14. February 2010 -- <a href="http://suckup.de/linux/ubuntu/die-naechste-ubuntu-lts-release-version-lucid/" title="Die nächste Ubuntu LTS Release Version &#8211; Lucid">Die nächste Ubuntu LTS Release Version &#8211; Lucid</a></li><li>14. October 2010 -- <a href="http://suckup.de/allgemein/die-besten-filme/" title="Die besten Filme&#8230;">Die besten Filme&#8230;</a></li><li>5. December 2010 -- <a href="http://suckup.de/allgemein/das-soziale-netz-und-die-digitale-zukunft/" title="Das Soziale-Netz und die digitale Zukunft">Das Soziale-Netz und die digitale Zukunft</a></li><li>15. February 2010 -- <a href="http://suckup.de/browser/firefox/firefox-fuer-handys-fennec-1-0-rc-veroeffentlicht/" title="Firefox für Handys &#8211; Fennec &#8211; 1.0 RC veröffentlicht">Firefox für Handys &#8211; Fennec &#8211; 1.0 RC veröffentlicht</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/Y_V4UW8VQwo" height="1" width="1"/>]]></content:encoded><description>Falls jemand mal z.B. einen Int-Wert in ein Datum umwandeln muss, kann "CONVERT" bzw. "CAST" weiterhelfen. Auch wenn man eigentlich die Datenbank im Vorhinein so gestalten sollte, dass "date" / "datetime" / ... / als Datentyp verwendet wird.  
&amp;#160;
Beispiel-Datenbank:CREATE TABLE `lall` ( `Id`  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/howto/mysql-howto/mysql-zahl-in-datum-umwandeln/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://suckup.de/howto/mysql-howto/mysql-zahl-in-datum-umwandeln/</feedburner:origLink></item><item><title>Cross-Compiling Android Kernel – Samsung GalaxyS2</title><link>http://feedproxy.google.com/~r/voku-online/~3/yAPsZ_erpQo/</link><category>Android</category><category>HowTo</category><category>ubuntuusers.de</category><category>Android 4.0.4</category><category>CM9</category><category>Galaxy S2</category><category>GalaxyS2</category><category>Samsung</category><category>SGS2</category><category>SiyahKernel</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Wed, 11 Apr 2012 13:13:10 PDT</pubDate><guid isPermaLink="false">http://suckup.de/?p=5280</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Das GalaxyS2 l&auml;uft ziemlich gut mit dem neuen <a title="SGS2 Nightly Builds CM9 | Android 4" href="http://download.cyanogenmod.com/?device=galaxys2" target="_blank">nightly-builds von CM9</a> (Android 4.0.4) &amp; den neusten <a title="die nueste Google Apps | Android" href="http://goo.im/gapps" target="_blank">Google-Apps</a> &amp; dem <a title="gokhanmoral.com" href="http://www.gokhanmoral.com/" target="_blank">SiyahKernel</a>.</p>
<p>Ich m&ouml;chte hier kurz erkl&auml;ren, wie du einen Kernel f&uuml;r das Samsung S2 (CM9) auf Basis vom <a title="SiyahKernel for SGS2 | CM9" href="http://www.gokhanmoral.com/" target="_blank">SiyahKernel</a> kompilierst. <img src='http://suckup.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>&nbsp;</p>
<h3><strong>1.) Installiere Linux + <a title="Cross-Compiler - Wiki" href="http://de.wikipedia.org/wiki/Cross-Compiler" target="_blank">Cross-Compiler</a></strong><strong> </strong></h3>
<p>Als erstes solltest du Linux bereits installiert haben (z.B. <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>, <a href="http://www.debian.org/" target="_blank">Debian</a> ...) ggf. einfach auf einen virtuellen PC z.B. via <a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a>. F&uuml;r Ubuntu gibt es bereits ab Werk <a title="Ubuntu - Ergebnisse der Debian-Paketsuche - gcc arm" href="http://packages.ubuntu.com/search?suite=default&amp;section=all&amp;arch=any&amp;lang=de&amp;searchon=names&amp;keywords=gcc+arm" target="_blank">GCC f&uuml;r ARM</a>, bei Debian habe ich bisher folgende Paket-Quellen ( /etc/apt/sources.list ) mit aufgenommen und anschlie&szlig;end gcc-4.6-arm installiert, jedoch bisher nur mit Debian *sid* getestet.</p>
<p><code>deb http://www.emdebian.org/debian/ unstable main</code></p>
<p>Install:</p>
<p><code>sudo apt-get install build-essential git gcc-4.5-arm-linux-gnueabi wget libncurses5-dev</code></p>
<p>&nbsp;</p>
<h3><strong>2.) Download der Quellen via github</strong></h3>
<p><a title="Fork - github.com" href="http://help.github.com/fork-a-repo/" target="_blank">Fork</a> via github die <a title="gokhanmoral | github | sgs2" href="https://github.com/gokhanmoral" target="_blank">Quellen</a> welche du kompilieren m&ouml;chtest und lade deine eigenen "Sources" herunter, um sp&auml;ter ggf. "Pull Requests" zu stellen. Daher musst du bei den folgenden Befehlen "voku" durch deinen eigenen User-Namen bei github ersetzen.</p>
<p><code> mkdir -p ~/sgs2/kernel/</code></p>
<p><code>cd ~/sgs2/kernel/</code></p>
<p><code>git clone https://github.com/voku/siyahkernel3</code></p>
<p><code>git clone https://github.com/voku/initramfs3</code></p>
<p>PS: "~" (tilde) = home-Verzeichnis -> <a title="Linux - Info" href="http://www.unixguide.net/linux/linuxshortcuts.shtml" target="_blank">info</a></p>
<p>Falls du nun einen anderen Cross-Compiler installiert hast als ich, musst du in der Datei (<a title="git - siyahkernel3" href="https://github.com/voku/siyahkernel3/blob/master/build_kernel.sh" target="_blank">build_kernel.sh</a>) die CROSS_COMPILE Variable anpassen. (whereis - locate the binary, source, and manual page files for a command)</p>
<p><code>cd ~/sgs2/kernel/siyahkernel3</code></p>
<p><code>./build_kernel.sh</code></p>
<p>&nbsp;</p>
<p>Sobald der Kernel kompiliert wurde findest du folgende Datei "zImage", welche wiederum der Kernel selber ist. <img src='http://suckup.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>PS: hier meine Version kompiliert mit gcc-4.6 &amp; <a title="gcc 4.6" href="http://gcc.gnu.org/gcc-4.6/changes.html" target="_blank">-Ofast</a> &amp; neuem Tweak-Script ->  <a href="http://samdroid.voku-online.de/index.php?action=list&amp;dir=SGS2&amp;order=name&amp;srt=yes">http://samdroid.voku-online.de/index.php?action=list&amp;dir=SGS2&amp;order=name&amp;srt=yes</a></p>
<p>&nbsp;</p>
<p><strong>Tipps:</strong> </p>
<p>- CyanogenMod 9 Flashen -> <a title="AOSP 4.0.4 Cyanogen (mod) 9 Flash Anleitung" href="http://www.android-hilfe.de/custom-roms-fuer-samsung-galaxy-s2/220145-rom-imm76d-aosp-4-0-4-cyanogen-mod-9-flash-anleitung-faq-11-04-2012-a.html" target="_blank">AOSP 4.0.4 Cyanogen (mod) 9 Flash Anleitung</a></p>
<p>- keine Angst vor git -> man braucht meistens nur ein paar Befehle -> "git pull" &amp; "git  push" &amp; "git add --all" </p>
<p>- git? -> <a title="Git - HowTo - deutsch" href="http://rogerdudler.github.com/git-guide/index.de.html" target="_blank">http://rogerdudler.github.com/git-guide/index.de.html </a></p>
<p>- Kernel-Config -> ~/sgs2/kernel/siyahkernel3/arch/arm/configs/siyah_defconfig </p>
<p>- Tweak Skript ->  <a title="Tweak SGS2" href="https://github.com/voku/initramfs3/blob/master/sbin/ext/thunderbolt.sh" target="_blank">~/sgs2/kernel/initramfs3/sbin/ext/thunderbolt.sh</a></p>
<p>- Makefile ->  ~/sgs2/kernel/siyahkernel3/Makefile </p>
<h2  class="related_post_title">Ähnliche Blog-Einträge:</h2><ul class="related_post"><li>31. January 2010 -- <a href="http://suckup.de/howto/bash-programmierung-schleifen/" title="Bash-Programmierung: Schleifen">Bash-Programmierung: Schleifen</a></li><li>1. March 2011 -- <a href="http://suckup.de/allgemein/yahoo-pipes-und-andere-informationsquellen/" title="&#8220;Yahoo Pipes&#8221; und andere Informationsquellen">&#8220;Yahoo Pipes&#8221; und andere Informationsquellen</a></li><li>8. February 2010 -- <a href="http://suckup.de/linux/ubuntu/install-pidgin-2-6-5-ubuntu/" title="Install Pidgin 2.6.5 &#8211; Ubuntu">Install Pidgin 2.6.5 &#8211; Ubuntu</a></li><li>26. October 2010 -- <a href="http://suckup.de/linux/c-programm-steuerzeichen/" title="C-Programm – Steuerzeichen">C-Programm – Steuerzeichen</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/yAPsZ_erpQo" height="1" width="1"/>]]></content:encoded><description>Das GalaxyS2 l&amp;#228;uft ziemlich gut mit dem neuen nightly-builds von CM9 (Android 4.0.4) &amp;#38; den neusten Google-Apps &amp;#38; dem SiyahKernel.
Ich m&amp;#246;chte hier kurz erkl&amp;#228;ren, wie du einen Kernel f&amp;#252;r das Samsung S2 (CM9) auf Basis vom SiyahKernel kompilierst.   
&amp;#160;
1.) Installiere Linux + Cross-Compiler 
Als  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/howto/cross-compiling-android-kernel-samsung-galaxys2/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments><feedburner:origLink>http://suckup.de/howto/cross-compiling-android-kernel-samsung-galaxys2/</feedburner:origLink></item><item><title>C-Programm &amp; Cflags</title><link>http://feedproxy.google.com/~r/voku-online/~3/3QxwxO75bfU/</link><category>C</category><category>Linux</category><category>c programm</category><category>C-Flag</category><category>CFlags</category><category>Geschwindigkeit</category><category>SPEED</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Sun, 12 Feb 2012 05:48:04 PST</pubDate><guid isPermaLink="false">http://suckup.de/?p=5224</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Ich habe vor einiger Zeit das Prinzip von Makefiles anhand eines kleines Beispiels gezeigt -&gt; <a href="http://suckup.de/howto/c/c-programm-primzahlen-makefiles/">http://suckup.de/howto/c/c-programm-primzahlen-makefiles/</a> &lt;- den selben Quelltext kompilieren wir heute mit verschiedenen C-Flags und 1000000 Schleifendurchl&auml;ufen ...</p>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>1.)  ohne C-Flags</strong></span></p>
<pre lang="bash">gcc -lm primzahlen.c -o primzahlen_slow</pre>
<p>&nbsp;</p>
<p>Output: time ./primzahlen_slow</p>
<pre lang="bash">[...]

999961
999979
999983

real 0m1.760s
user 0m1.420s
sys 0m0.164s</pre>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>2.)  ohne C-Flags &amp; ohne "math.h" (sqrt)</strong></span></p>
<pre lang="bash">gcc primzahlen.c -o primzahlen_slow</pre>
<p>&nbsp;</p>
<p>Output: time ./primzahlen_slow</p>
<pre lang="bash">[...]

999961
999979
999983

real 0m1.407s
user 0m0.988s
sys 0m0.192s</pre>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>3.)  -O2 &amp; ohne "math.h" (sqrt)</strong></span></p>
<pre lang="bash">gcc -O2 primzahlen.c -o primzahlen_2</pre>
<p>&nbsp;</p>
<p>Output: time ./primzahlen_slow</p>
<pre lang="bash">[...]

999961
999979
999983

real 0m1.405s
user 0m0.976s
sys 0m0.188s</pre>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>4.) -Ofast (<a href="http://gcc.gnu.org/gcc-4.6/changes.html">http://gcc.gnu.org/gcc-4.6/changes.html</a>) &amp; ohne "math.h" (sqrt)</strong></span></p>
<pre lang="bash">gcc -Ofast primzahlen.c -o primzahlen_fast</pre>
<p>&nbsp;</p>
<p>Output: time ./primzahlen_fast</p>
<pre lang="bash">[...]

999961
999979
999983

real 0m1.377s
user 0m0.980s
sys 0m0.180s</pre>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>5.) -Ofast + amdfam10 (<a href="http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#Athlon_X2_7x50.2C_Phenom_X3.2FX4.2C_Phenom_II.2C_Athlon_II_X2.2FX3.2FX4">http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#Athlon_X2_7x50.2C_Phenom_X3.2FX4.2C_Phenom_II.2C_Athlon_II_X2.2FX3.2FX4</a>) </strong></span></p>
<p>Ein paar CFlags f&uuml;r speziell f&uuml;r meine CPU. (cat /proc/cpuinfo)</p>
<pre lang="bash">gcc -Ofast -funsafe-math-optimizations -funsafe-loop-optimizations -m64 -mtune=amdfam10 -mabm -msse4a -floop-parallelize-all -ftree-parallelize-loops=4 -floop-strip-mine -floop-block -funroll-all-loops -fbranch-target-load-optimize -lm primzahlen.c -o primzahlen_fast</pre>
<p>&nbsp;</p>
<p>Output: time ./primzahlen_fast</p>
<pre lang="bash">[...]

999961
999979
999983

real 0m1.327s
user 0m0.944s
sys 0m0.172s</pre>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>Fazit: </strong></span></p>
<p>Sobald ich -O1, -O2, -O3 oder -Ofast bei diesem kleinen Beispiel nutze ist der Geschwindigkeitsunterschied minimal und es ist egal, ob vorgefertigte mathematische Funktionen genutzt werden oder nicht.</p><h2  class="related_post_title">Ähnliche Blog-Einträge</h2><ul class="related_post"><li>10. March 2011 -- <a href="http://suckup.de/linux/android/tweak-skript-fuer-android-spica/" title="Tweak-Skript für Android / Spica">Tweak-Skript für Android / Spica</a></li><li>3. March 2011 -- <a href="http://suckup.de/howto/c/c-programm-string-char-kopieren/" title="C-Programm – String (char) kopieren">C-Programm – String (char) kopieren</a></li><li>3. March 2011 -- <a href="http://suckup.de/linux/c-programm-check_mem-fuer-nagios/" title="C-Programm – check_mem für Nagios ">C-Programm – check_mem für Nagios </a></li><li>28. February 2011 -- <a href="http://suckup.de/howto/c/c-programm-neueste-datei-eines-verzeichnisses-linux/" title="C-Programm – neueste Datei eines Verzeichnisses (Linux)">C-Programm – neueste Datei eines Verzeichnisses (Linux)</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/3QxwxO75bfU" height="1" width="1"/>]]></content:encoded><description>Ich habe vor einiger Zeit das Prinzip von Makefiles anhand eines kleines Beispiels gezeigt -&amp;#62; http://suckup.de/howto/c/c-programm-primzahlen-makefiles/ &amp;#60;- den selben Quelltext kompilieren wir heute mit verschiedenen C-Flags und 1000000 Schleifendurchl&amp;#228;ufen ...
&amp;#160;
1.)  ohne C-Flags
gcc -lm  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/linux/c-programm-und-cflags/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments><feedburner:origLink>http://suckup.de/linux/c-programm-und-cflags/</feedburner:origLink></item><item><title>Google Chrome App für Android 4</title><link>http://feedproxy.google.com/~r/voku-online/~3/t-aXt4U8mv8/</link><category>Android</category><category>Browser</category><category>Chrome .apk Android</category><category>Chrome App</category><category>Google App Chrome</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Tue, 07 Feb 2012 12:44:59 PST</pubDate><guid isPermaLink="false">http://suckup.de/?p=5196</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Gerade bei Twitter gelesen: "Google ver&ouml;ffentlicht <a title="Chrome Beta .apk Market" href="https://market.android.com/details?id=com.android.chrome">Chrome f&uuml;r Android</a>". Leider ist die neue Google Chrome App nur f&uuml;r Android 4.0 "Ice Cream Sandwich" und f&uuml;r <a title="&Uuml;berpr&uuml;fen Sie, ob Chrome f&uuml;r Android Beta f&uuml;r Ihr Ger&auml;t und Ihren Standort verf&uuml;gbar ist." href="https://support.google.com/chrome/bin/answer.py?hl=de&amp;answer=2393487&amp;p=mktg_mobile_countries">bestimmte L&auml;nder</a> verf&uuml;gbar... aber da ich seit einigen Wochen ein Galaxy S2 mit CyanogenMod9 nutze, ist das kein Problem f&uuml;r mich. <img src='http://suckup.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />    </p>
<div id="attachment_5198" class="wp-caption alignleft" style="width: 210px"><a href="http://www.heise.de/mobil/meldung/Google-veroeffentlicht-Chrome-fuer-Android-1430179.html"><img class="size-medium wp-image-5198 " title="Google ver&ouml;ffentlicht Chrome f&uuml;r Android" src="http://suckup.de/wp-content/uploads//2012/02/Twitter_Chrome_App1-300x230.png" alt="Google ver&ouml;ffentlicht Chrome f&uuml;r Android" width="200" height="153" /></a><p class="wp-caption-text">Google ver&ouml;ffentlicht Chrome f&uuml;r Android</p></div> <div id="attachment_5197" class="wp-caption alignleft" style="width: 210px"><a href="http://winfuture.de/news,68002.html"><img class="size-medium wp-image-5197 " title="Google Chrome f&uuml;r Android Beta ist da - Alle Infos" src="http://suckup.de/wp-content/uploads//2012/02/Twitter_Chrome_App-300x211.png" alt="Google Chrome f&uuml;r Android Beta ist da - Alle Infos" width="200" height="141" /></a><p class="wp-caption-text">Google Chrome f&uuml;r Android Beta ist da - Alle Infos</p></div><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Tabs: </strong>ge&ouml;ffnete Tabs vom PC k&ouml;nnen auf's Smartphone &uuml;bertragen werden, zudem kann man zwischen den Tabs sehr einfach Navigieren und bereits ge&ouml;ffnete Tabs werden auf Chrome-Startseite angezeigt</p>
<div id="attachment_5201" class="wp-caption aligncenter" style="width: 190px"><a href="http://suckup.de/wp-content/uploads//2012/02/07.02.12-3.png"><img class="size-medium wp-image-5201" title="Google_Chrome_Tabs" src="http://suckup.de/wp-content/uploads//2012/02/07.02.12-3-180x300.png" alt="Google_Chrome_Tabs" width="180" height="300" /></a><p class="wp-caption-text">Google_Chrome_Tabs</p></div><p>&nbsp;</p>
<p><strong>Chrome + Google Suche: </strong>nat&uuml;rlich ist die Google Suche direkt in der URL integriert </p>
<div id="attachment_5199" class="wp-caption aligncenter" style="width: 190px"><a href="http://suckup.de/wp-content/uploads//2012/02/07.02.12-5.png"><img class="size-medium wp-image-5199" title="Chrome_Google" src="http://suckup.de/wp-content/uploads//2012/02/07.02.12-5-180x300.png" alt="Chrome_Google" width="180" height="300" /></a><p class="wp-caption-text">Chrome_Google</p></div><p>&nbsp;</p>
<p><strong>Synchronisieren: </strong>Lesezeichen synchronisieren, an Google Diensten (z.B. Google Mail) automatisch anmelden, automatisch Formular Vervollst&auml;ndigung ... </p>
<div id="attachment_5202" class="wp-caption aligncenter" style="width: 190px"><a href="http://suckup.de/wp-content/uploads//2012/02/07.02.12-2.png"><img class="size-medium wp-image-5202" title="Chrome_Google_Synchronisieren" src="http://suckup.de/wp-content/uploads//2012/02/07.02.12-2-180x300.png" alt="Chrome_Google_Synchronisieren" width="180" height="300" /></a><p class="wp-caption-text">Chrome_Google_Synchronisieren</p></div><p>&nbsp;</p>
<p><strong>Entwickler:</strong> via adb kann man die Webseite direkt vom Computer aufrufen und so anzeigen lassen, wie diese auch auf dem Smartphone angezeigt wird. Wer nicht wei&szlig; was "adb" ist, kann dies hier nachlesen -&gt; <a href="http://suckup.de/windows/android-debug-bridge-adb-howto/">http://suckup.de/windows/android-debug-bridge-adb-howto/</a></p>
<div id="attachment_5203" class="wp-caption aligncenter" style="width: 190px"><a href="http://suckup.de/wp-content/uploads//2012/02/07.02.12-1.png"><img class="size-medium wp-image-5203" title="Chrome_App_Develop" src="http://suckup.de/wp-content/uploads//2012/02/07.02.12-1-180x300.png" alt="Chrome_App_Develop" width="180" height="300" /></a><p class="wp-caption-text">Chrome_App_Develop</p></div><p>&nbsp;</p>
<p>mehr Infos: <a href="http://www.google.com/intl/de/chrome/android/features.html">http://www.google.com/intl/de/chrome/android/features.html</a></p>
<p><iframe frameborder="0" height="315" src="http://www.youtube.com/embed/lVjw7n_U37A" width="560"></iframe></p><h2  class="related_post_title">Ähnliche Blog-Einträge:</h2><ul class="related_post"><li>12. March 2010 -- <a href="http://suckup.de/linux/ubuntu/nautilus-flickr-uploader/" title="Nautilus Flickr &#8211; Uploader">Nautilus Flickr &#8211; Uploader</a></li><li>28. July 2010 -- <a href="http://suckup.de/linux/android/free-android-app-sammlung/" title="Free Android-App Sammlung ">Free Android-App Sammlung </a></li><li>7. February 2010 -- <a href="http://suckup.de/linux/build-your-distro/" title="Build your Distro">Build your Distro</a></li><li>8. February 2010 -- <a href="http://suckup.de/allgemein/geforce-3d-treiber/" title="GeForce-3D Treiber">GeForce-3D Treiber</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/t-aXt4U8mv8" height="1" width="1"/>]]></content:encoded><description>Gerade bei Twitter gelesen: "Google ver&amp;#246;ffentlicht Chrome f&amp;#252;r Android". Leider ist die neue Google Chrome App nur f&amp;#252;r Android 4.0 "Ice Cream Sandwich" und f&amp;#252;r bestimmte L&amp;#228;nder verf&amp;#252;gbar... aber da ich seit einigen Wochen ein Galaxy S2 mit CyanogenMod9 nutze, ist das kein Problem f&amp;#252;r mich.     
  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/browser/google-chrome-app-fuer-android-4/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">6</slash:comments><feedburner:origLink>http://suckup.de/browser/google-chrome-app-fuer-android-4/</feedburner:origLink></item><item><title>PHP-Sicherheit erhöhen</title><link>http://feedproxy.google.com/~r/voku-online/~3/DMxW37B6dTQ/</link><category>Debian</category><category>PHP</category><category>Ubuntu</category><category>ubuntuusers.de</category><category>Apache</category><category>php-sicherheit</category><category>suexec + fcgid</category><category>suhosin</category><category>suPHP</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Mon, 16 Jan 2012 07:05:34 PST</pubDate><guid isPermaLink="false">http://suckup.de/?p=5178</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p> Jeder Server welcher PHP-Skripte verarbeitet, sollte zumindest zwei Sicherheitsschl&ouml;sser eingebaut haben, so dass man nicht jedem T&uuml;r &amp; Tor &ouml;ffnet. </p>
<p>&nbsp;</p>
<p><strong>1.) <a title="suphp - Home" href="http://www.suphp.org/Home.html" target="_blank">suPHP</a> oder <a title="Apache2 mit PHP5 als suExec/ Fcgid Variante" href="http://wiki.hetzner.de/index.php/Apache_PHP5_fcgi_und_SuExec" target="_blank">suexec + fcgid</a></strong></p>
<p>Wir sollten PHP-Skript nicht alle mit dem selben User-Berechtigungen (z.B. apache) laufen lassen, daher empfiehlt es sich auf kleinen Webservern suPHP und auf Webseiten mit mehr Traffic "Fast CGI" zu installieren. Alternativ kann man PHP mit "<a title="Was ist PHP-FPM?" href="http://php-fpm.org/wiki/Was_ist_PHP-FPM" target="_blank">PHP-FPM</a>" (FastCGI Process Manager) auch jeweils als eigenst&auml;ndigen Prozess laufen lassen. </p>
<p><strong>2.) <a title="suhosin" href="http://www.hardened-php.net/suhosin.127.html">Suhosin</a></strong></p>
<p>Da einige PHP-Projekte nicht wirklich f&uuml;r Ihre Sicherheit bekannt sind, empfiehlt es sich zudem die "Suhosin" Erweiterung f&uuml;r PHP zu installieren. "Es wurde entworfen, um den Server und die Benutzer vor bekannten und unbekannten Fehlern in PHP-Anwendungen und im PHP-Kern zu sch&uuml;tzen." - <a title="PHP" href="http://de.wikipedia.org/wiki/PHP#Schutzsysteme_f.C3.BCr_PHP-Installationen" target="_blank">Wiki</a></p>
<p>PS: auf der Webseite -&gt; <a href="http://www.dotdeb.org/">http://www.dotdeb.org</a> &lt;- findet man einfach zu installierende .deb-Pakete f&uuml;r Debian / Ubuntu in welchen die Suhosin-Erweiterung bereits integriert ist und liegt zudem als "php5-fpm" Version zur Verf&uuml;gung. ;) </p>
<p>&nbsp;</p>
<p>mehr Sicherheit:</p>
<p>- <a href="http://www.admin-magazin.de/Online-Artikel/Application-Level-Firewall-mit-Mod-Security-und-Apache" target="_blank">Mod-Security und Apache</a></p>
<p>- <a href="http://suckup.de/linux/debian/spammerhacker-fernhalten-apache2/" target="_blank">Mod-Spamhaus und Apache</a></p>
<p>- <a title="WordPress Sicherheit erh&ouml;hen" href="http://suckup.de/cms/wordpress-cms-allgemein/wordpress-sicherheit-erhoehen/" target="_blank">WordPress Sicherheit erh&ouml;hen</a></p>
<p>- <a title="die PHP.ini - PHP gegen Angriffe absichern" href="http://www.phpbuddy.eu/php-sicherheit/server-sicherheit-php-ini.html" target="_blank">php.ini</a> / <a title="php.net - security" href="http://www.php.net/manual/de/security.php" target="_blank">php.net</a></p>
<p>- <a title="howtoforge" href="http://www.howtoforge.com/howtos/programming/php" target="_blank">www.howtoforge.com | viele gute HowTo's </a></p><h2  class="related_post_title">Ähnliche Blog-Einträge</h2><ul class="related_post"><li>28. August 2010 -- <a href="http://suckup.de/howto/dienste-unter-debian-ubuntu-deaktivieren/" title="Dienste unter Debian / Ubuntu deaktivieren">Dienste unter Debian / Ubuntu deaktivieren</a></li><li>26. July 2010 -- <a href="http://suckup.de/linux/webserver-beschleunigen/" title="Webserver beschleunigen">Webserver beschleunigen</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/DMxW37B6dTQ" height="1" width="1"/>]]></content:encoded><description> Jeder Server welcher PHP-Skripte verarbeitet, sollte zumindest zwei Sicherheitsschl&amp;#246;sser eingebaut haben, so dass man nicht jedem T&amp;#252;r &amp;#38; Tor &amp;#246;ffnet. 
&amp;#160;
1.) suPHP oder suexec + fcgid
Wir sollten PHP-Skript nicht alle mit dem selben User-Berechtigungen (z.B. apache) laufen lassen, daher empfiehlt  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/linux/ubuntu/sicherheit-von-php-erhoehen/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">9</slash:comments><feedburner:origLink>http://suckup.de/linux/ubuntu/sicherheit-von-php-erhoehen/</feedburner:origLink></item><item><title>Monatsnamen / Wochentagsnamen in deutsch via PHP</title><link>http://feedproxy.google.com/~r/voku-online/~3/5EhyDq8bJWg/</link><category>PHP</category><category>php-date in deutsch</category><category>strftime</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Thu, 15 Dec 2011 04:21:03 PST</pubDate><guid isPermaLink="false">http://suckup.de/?p=5126</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>"Gibt einen String zur&uuml;ck, der den angegebenen Formatierungs-Merkmalen entspricht. Dabei wird der gegebene <em><tt>Timestamp</tt></em>/ Zeitstempel oder - falls dieser fehlt - die momentane lokale Zeit benutzt. Der Monats- und Wochentagsname wird entsprechend des per <a href="http://www.php.net/manual/de/function.setlocale.php">setlocale()</a> eingestellten Wertes gesetzt." - <a href="http://php.net/manual/de/function.strftime.php">php.net/manual/de/function.strftime.php</a></p>
<p>&nbsp;</p>
<pre lang="php">setlocale(LC_TIME, &quot;de_DE&quot;);
echo strftime(&quot;%A&quot;); // Wochentagsname
echo strftime(&quot;%B&quot;); // Monatsname</pre><h2  class="related_post_title">Ähnliche Blog-Einträge:</h2><ul class="related_post"><li>8. February 2010 -- <a href="http://suckup.de/howto/install-opera-10/" title="Install Opera 10">Install Opera 10</a></li><li>31. January 2010 -- <a href="http://suckup.de/howto/adobe-flash-plugin-10-32bit-64bit/" title="Adobe Flash Plugin 10 &#8211; 32bit &#038; 64bit">Adobe Flash Plugin 10 &#8211; 32bit &#038; 64bit</a></li><li>12. March 2010 -- <a href="http://suckup.de/linux/ubuntu/nautilus-flickr-uploader/" title="Nautilus Flickr &#8211; Uploader">Nautilus Flickr &#8211; Uploader</a></li><li>24. November 2010 -- <a href="http://suckup.de/allgemein/medienkompetenz-nur-mit-freier-software/" title="Medienkompetenz? &#8211; Nur mit freier Software">Medienkompetenz? &#8211; Nur mit freier Software</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/5EhyDq8bJWg" height="1" width="1"/>]]></content:encoded><description>"Gibt einen String zur&amp;#252;ck, der den angegebenen Formatierungs-Merkmalen entspricht. Dabei wird der gegebene Timestamp/ Zeitstempel oder - falls dieser fehlt - die momentane lokale Zeit benutzt. Der Monats- und Wochentagsname wird entsprechend des per setlocale() eingestellten Wertes gesetzt."  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/howto/php-howto/monatsnamen-wochentagsnamen-in-deutsch-via-php/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments><feedburner:origLink>http://suckup.de/howto/php-howto/monatsnamen-wochentagsnamen-in-deutsch-via-php/</feedburner:origLink></item><item><title>Aero Shake deaktivieren</title><link>http://feedproxy.google.com/~r/voku-online/~3/vt3UwigAevI/</link><category>Windows 7</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Thu, 15 Dec 2011 02:47:42 PST</pubDate><guid isPermaLink="false">http://suckup.de/?p=5123</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>"Als 'Sch&uuml;tteln' definiert die Windows 7-Shell eine mindestens dreimalige Bewegung eines aktiven Fensters in ann&auml;hernd gegengesetzte Richtung - etwa "Rechts - Links - Rechts" oder "Oben - Unten - Oben" in kurzem Zeitabstand" - <a href="http://www.pcwelt.de/ratgeber/Windows-7-Funktion-Aero-Shake-schuettelt-die-Windows-7-Fenster-weg-471514.html">www.pcwelt.de</a> </p>
<p>&nbsp;</p>
<p>... ich habe das sch&uuml;tteln der Fenster (Aero Shake) irgendwie noch nicht ganz verstanden, da ich diese Funktion manchmal unbeabsichtigt ausf&uuml;hre. <img src='http://suckup.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p><strong>Download:</strong></p>
<p><a title="DisableAeroShake.reg" href="http://suckup.de/DisableAeroShake.reg" target="_blank"> DisableAeroShake.reg</a></p>
<p><a title="EnableAeroShake.reg" href="http://suckup.de/EnableAeroShake.reg" target="_blank"> EnableAeroShake.reg</a></p><h2  class="related_post_title">Ähnliche Blog-Einträge:</h2><ul class="related_post"><li>26. July 2010 -- <a href="http://suckup.de/linux/webseiten-beschleunigen/" title="Webseiten beschleunigen &#8211; Übersicht">Webseiten beschleunigen &#8211; Übersicht</a></li><li>16. February 2010 -- <a href="http://suckup.de/fun/make-me-a-sandwich/" title="make me a sandwich">make me a sandwich</a></li><li>13. February 2010 -- <a href="http://suckup.de/browser/firefox/view-archives/" title="View Archives">View Archives</a></li><li>14. February 2010 -- <a href="http://suckup.de/browser/if-your-browser-were-a-women/" title="If your browser were a women">If your browser were a women</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/vt3UwigAevI" height="1" width="1"/>]]></content:encoded><description>"Als 'Sch&amp;#252;tteln' definiert die Windows 7-Shell eine mindestens dreimalige Bewegung eines aktiven Fensters in ann&amp;#228;hernd gegengesetzte Richtung - etwa "Rechts - Links - Rechts" oder "Oben - Unten - Oben" in kurzem Zeitabstand" - www.pcwelt.de 
&amp;#160;
... ich habe das sch&amp;#252;tteln der Fenster (Aero Shake)  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/windows/windows-7/aero-shake-deaktivieren/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://suckup.de/windows/windows-7/aero-shake-deaktivieren/</feedburner:origLink></item><item><title>perror – Explain Error Codes für MySQL in der Shell</title><link>http://feedproxy.google.com/~r/voku-online/~3/yD7uepD3ifw/</link><category>Linux</category><category>MySQL</category><category>Shell / Bash</category><category>Error-Code</category><category>mysql</category><category>mysqld</category><category>perror</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Tue, 13 Dec 2011 05:12:36 PST</pubDate><guid isPermaLink="false">http://suckup.de/?p=5120</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<pre lang="shell">for i in `seq 1 180`; do perror ${i}; done | less</pre>
<p>Info: <a href="http://dev.mysql.com/doc/refman/5.0/en/perror.html">http://dev.mysql.com/doc/refman/5.0/en/perror.html</a></p>
<p>&nbsp;</p>
<p>Ausgabe:</p>
<pre lang="shell">OS error code   1:  Operation not permitted
OS error code   2:  No such file or directory
OS error code   3:  No such process
OS error code   4:  Interrupted system call
OS error code   5:  Input/output error
OS error code   6:  No such device or address
OS error code   7:  Argument list too long
OS error code   8:  Exec format error
OS error code   9:  Bad file descriptor
OS error code  10:  No child processes
OS error code  11:  Resource temporarily unavailable
OS error code  12:  Cannot allocate memory
OS error code  13:  Permission denied
OS error code  14:  Bad address
OS error code  15:  Block device required
OS error code  16:  Device or resource busy
OS error code  17:  File exists
OS error code  18:  Invalid cross-device link
OS error code  19:  No such device
OS error code  20:  Not a directory
OS error code  21:  Is a directory
OS error code  22:  Invalid argument
OS error code  23:  Too many open files in system
OS error code  24:  Too many open files
OS error code  25:  Inappropriate ioctl for device
OS error code  26:  Text file busy
OS error code  27:  File too large
OS error code  28:  No space left on device
OS error code  29:  Illegal seek
OS error code  30:  Read-only file system
OS error code  31:  Too many links
OS error code  32:  Broken pipe
OS error code  33:  Numerical argument out of domain
OS error code  34:  Numerical result out of range
OS error code  35:  Resource deadlock avoided
OS error code  36:  File name too long
OS error code  37:  No locks available
OS error code  38:  Function not implemented
OS error code  39:  Directory not empty
OS error code  40:  Too many levels of symbolic links
OS error code  42:  No message of desired type
OS error code  43:  Identifier removed
OS error code  44:  Channel number out of range
OS error code  45:  Level 2 not synchronized
OS error code  46:  Level 3 halted
OS error code  47:  Level 3 reset
OS error code  48:  Link number out of range
OS error code  49:  Protocol driver not attached
OS error code  50:  No CSI structure available
OS error code  51:  Level 2 halted
OS error code  52:  Invalid exchange
OS error code  53:  Invalid request descriptor
OS error code  54:  Exchange full
OS error code  55:  No anode
OS error code  56:  Invalid request code
OS error code  57:  Invalid slot
OS error code  59:  Bad font file format
OS error code  60:  Device not a stream
OS error code  61:  No data available
OS error code  62:  Timer expired
OS error code  63:  Out of streams resources
OS error code  64:  Machine is not on the network
OS error code  65:  Package not installed
OS error code  66:  Object is remote
OS error code  67:  Link has been severed
OS error code  68:  Advertise error
OS error code  69:  Srmount error
OS error code  70:  Communication error on send
OS error code  71:  Protocol error
OS error code  72:  Multihop attempted
OS error code  73:  RFS specific error
OS error code  74:  Bad message
OS error code  75:  Value too large for defined data type
OS error code  76:  Name not unique on network
OS error code  77:  File descriptor in bad state
OS error code  78:  Remote address changed
OS error code  79:  Can not access a needed shared library
OS error code  80:  Accessing a corrupted shared library
OS error code  81:  .lib section in a.out corrupted
OS error code  82:  Attempting to link in too many shared libraries
OS error code  83:  Cannot exec a shared library directly
OS error code  84:  Invalid or incomplete multibyte or wide character
OS error code  85:  Interrupted system call should be restarted
OS error code  86:  Streams pipe error
OS error code  87:  Too many users
OS error code  88:  Socket operation on non-socket
OS error code  89:  Destination address required
OS error code  90:  Message too long
OS error code  91:  Protocol wrong type for socket
OS error code  92:  Protocol not available
OS error code  93:  Protocol not supported
OS error code  94:  Socket type not supported
OS error code  95:  Operation not supported
OS error code  96:  Protocol family not supported
OS error code  97:  Address family not supported by protocol
OS error code  98:  Address already in use
OS error code  99:  Cannot assign requested address
OS error code 100:  Network is down
OS error code 101:  Network is unreachable
OS error code 102:  Network dropped connection on reset
OS error code 103:  Software caused connection abort
OS error code 104:  Connection reset by peer
OS error code 105:  No buffer space available
OS error code 106:  Transport endpoint is already connected
OS error code 107:  Transport endpoint is not connected
OS error code 108:  Cannot send after transport endpoint shutdown
OS error code 109:  Too many references: cannot splice
OS error code 110:  Connection timed out
OS error code 111:  Connection refused
OS error code 112:  Host is down
OS error code 113:  No route to host
OS error code 114:  Operation already in progress
OS error code 115:  Operation now in progress
OS error code 116:  Stale NFS file handle
OS error code 117:  Structure needs cleaning
OS error code 118:  Not a XENIX named type file
OS error code 119:  No XENIX semaphores available
OS error code 120:  Is a named type file
MySQL error code 120: Didn&#039;t find key on read or update
OS error code 121:  Remote I/O error
MySQL error code 121: Duplicate key on write or update
OS error code 122:  Disk quota exceeded
OS error code 123:  No medium found
MySQL error code 123: Someone has changed the row since it was read (while the table was locked to prevent it)
OS error code 124:  Wrong medium type
MySQL error code 124: Wrong index given to function
OS error code 125:  Operation canceled
MySQL error code 125: Undefined handler error 125
OS error code 126:  Required key not available
MySQL error code 126: Index file is crashed
OS error code 127:  Key has expired
MySQL error code 127: Record file is crashed
OS error code 128:  Key has been revoked
MySQL error code 128: Out of memory in engine
OS error code 129:  Key was rejected by service
MySQL error code 129: Undefined handler error 129
OS error code 130:  Owner died
MySQL error code 130: Incorrect file format
OS error code 131:  State not recoverable
MySQL error code 131: Command not supported by database
MySQL error code 132: Old database file
MySQL error code 133: No record read before update
MySQL error code 134: Record was already deleted (or record file crashed)
MySQL error code 135: No more room in record file
MySQL error code 136: No more room in index file
MySQL error code 137: No more records (read after end of file)
MySQL error code 138: Unsupported extension used for table
MySQL error code 139: Too big row
MySQL error code 140: Wrong create options
MySQL error code 141: Duplicate unique key or constraint on write or update
MySQL error code 142: Unknown character set used in table
MySQL error code 143: Conflicting table definitions in sub-tables of MERGE table
MySQL error code 144: Table is crashed and last repair failed
MySQL error code 145: Table was marked as crashed and should be repaired
MySQL error code 146: Lock timed out; Retry transaction
MySQL error code 147: Lock table is full;  Restart program with a larger locktable
MySQL error code 148: Updates are not allowed under a read only transactions
MySQL error code 149: Lock deadlock; Retry transaction
MySQL error code 150: Foreign key constraint is incorrectly formed
MySQL error code 151: Cannot add a child row
MySQL error code 152: Cannot delete a parent row
MySQL error code 153: No savepoint with that name
MySQL error code 154: Non unique key block size
MySQL error code 155: The table does not exist in engine
MySQL error code 156: The table already existed in storage engine
MySQL error code 157: Could not connect to storage engine
MySQL error code 158: Unexpected null pointer found when using spatial index
MySQL error code 159: The table changed in storage engine
MySQL error code 160: There&#039;s no partition in table for the given value
MySQL error code 161: Row-based binlogging of row failed
MySQL error code 162: Index needed in foreign key constraint
MySQL error code 163: Upholding foreign key constraints would lead to a duplicate key error in some other table
MySQL error code 164: Table needs to be upgraded before it can be used
MySQL error code 165: Table is read only
MySQL error code 166: Failed to get next auto increment value
MySQL error code 167: Failed to set row auto increment value
MySQL error code 168: Unknown (generic) error from engine
MySQL error code 169: Record is the same
MySQL error code 170: It is not possible to log this statement
MySQL error code 171: The event was corrupt, leading to illegal data being read
MySQL error code 172: The table is of a new format not supported by this version
MySQL error code 173: The event could not be processed no other hanlder error happened
MySQL error code 174: Got a fatal error during initialzaction of handler
MySQL error code 175: File to short; Expected more data in file
MySQL error code 176: Read page with wrong checksum
MySQL error code 177: Too many active concurrent transactions
MySQL error code 178: Index column length exceeds limit
MySQL error code 179: Index corrupted
MySQL error code 180: Undo record too big
</pre><h2  class="related_post_title">Ähnliche Blog-Einträge</h2><ul class="related_post"><li>6. March 2011 -- <a href="http://suckup.de/howto/optimized-android-apps-mit-linux-erstellen/" title="Optimized Android-Apps mit Linux erstellen">Optimized Android-Apps mit Linux erstellen</a></li><li>1. March 2011 -- <a href="http://suckup.de/allgemein/yahoo-pipes-und-andere-informationsquellen/" title="&#8220;Yahoo Pipes&#8221; und andere Informationsquellen">&#8220;Yahoo Pipes&#8221; und andere Informationsquellen</a></li><li>26. February 2011 -- <a href="http://suckup.de/linux/erste-schritte-in-der-shell/" title="Erste Schritte in der Shell">Erste Schritte in der Shell</a></li><li>30. January 2011 -- <a href="http://suckup.de/linux/ostereier-obwohl-es-nicht-ostern-ist/" title="Ostereier obwohl es nicht Ostern ist">Ostereier obwohl es nicht Ostern ist</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/yD7uepD3ifw" height="1" width="1"/>]]></content:encoded><description>for i in `seq 1 180`; do perror ${i}; done &amp;#124; less
Info: http://dev.mysql.com/doc/refman/5.0/en/perror.html
&amp;#160;
Ausgabe:
OS error code   1:  Operation not permitted
OS error code   2:  No such file or directory
OS error code   3:  No such process
OS error code   4:  Interrupted system call
OS  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/linux/perror-explain-error-codes-fuer-mysql-in-der-shell/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://suckup.de/linux/perror-explain-error-codes-fuer-mysql-in-der-shell/</feedburner:origLink></item><item><title>C-Programm – einfacher Taschenrechner</title><link>http://feedproxy.google.com/~r/voku-online/~3/Nja_Xj-4WlE/</link><category>C</category><category>C-Programm Taschenrechner</category><category>PAP mit Linux</category><category>Programmablaufplan via Dia (Gnome)</category><category>Pseudocode</category><category>Struktogramm mit Linux</category><category>Struktogramm via Structorizer</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">voku</dc:creator><pubDate>Wed, 09 Nov 2011 18:54:51 PST</pubDate><guid isPermaLink="false">http://suckup.de/?p=5057</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Hier mal wieder ein einfaches Beispiel in C mit "Struktogramm" &amp; "Programmablaufplan" &amp; "Pseudocode" ...</p>

<a href='http://suckup.de/howto/c/c-programm-einfacher-taschenrechner/attachment/mehrseitige-auswahl/' title='Struktogramm via Structorizer'><img width="150" height="150" src="http://suckup.de/wp-content/uploads//2011/11/Mehrseitige-AUSWAHL-150x150.png" class="attachment-thumbnail" alt="Struktogramm via Structorizer" title="Struktogramm via Structorizer" /></a>
<a href='http://suckup.de/howto/c/c-programm-einfacher-taschenrechner/attachment/mehrseitige_auswahl/' title='Programmablaufplan via Dia (Gnome)'><img width="150" height="150" src="http://suckup.de/wp-content/uploads//2011/11/Mehrseitige_Auswahl-150x150.png" class="attachment-thumbnail" alt="Programmablaufplan via Dia (Gnome)" title="Programmablaufplan via Dia (Gnome)" /></a>

<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Pseudocode:</strong></span></p>
<pre>&lt;strong&gt;begin&lt;/strong&gt;
    Eine &#039;einfache&#039; Rechenaufgabe (z.B. 5+5) eingeben.
    Aufteilung der Eingabe in (drei) Variablen [ein1, ein2, ein3]
    &lt;strong&gt;case&lt;/strong&gt; ein2 &lt;strong&gt;is&lt;/strong&gt;
        &lt;strong&gt;+:&lt;/strong&gt; Addition: &quot;ein1&quot; &amp; &quot;ein3&quot;
        &lt;strong&gt;-:&lt;/strong&gt; Subtraktion: &quot;ein1&quot; &amp; &quot;ein3&quot;
        &lt;strong&gt;*:&lt;/strong&gt; Multiplikation: &quot;ein1&quot; &amp; &quot;ein3&quot;
        &lt;strong&gt;/:&lt;/strong&gt; Division: &quot;ein1&quot; &amp; &quot;ein3&quot;
        &lt;strong&gt;%:&lt;/strong&gt; Modulo: &quot;ein1&quot; &amp; &quot;ein3&quot;
        &lt;strong&gt;otherwise&lt;/strong&gt;: Ausgabe: &quot;Fehler in der Berechnung&quot;
    &lt;strong&gt;end case&lt;/strong&gt;
    Ausgabe: Ergebnis
&lt;strong&gt;end&lt;/strong&gt;
</pre>
<p>&nbsp;</p>
<p><strong>Programmiersprache C:</strong></p>
<pre lang="c">#include &lt;stdio.h&gt; 
#define MAXLENGTHSTR 255

int main(void)
{
  /* Deklaration der Variablen */
  int ein1, ein3, aus;
  char ein2;
  char s1[MAXLENGTHSTR];

  printf(&quot;z.B.: \&quot;1 + 2\&quot; oder \&quot;5 + 5\&quot; eingeben!!!&quot;); 
  /* Usereingabe */
  printf(&quot;Eingabe: &quot;);
  /* flushall(); gets(s1); */
  gets(s1);

  /* Interne Verarbeitung des Input */
  sscanf(s1, &quot;%d %c %d&quot;, &amp;ein1, &amp;ein2, &amp;ein3);
  aus = 0;

  /* Berechnung */
  switch(ein2)
  {
    case &#039;+&#039;: aus = ein1 + ein3; break; /* Addition */
    case &#039;-&#039;: aus = ein1 - ein3; break; /* Subtraktion */
    case &#039;*&#039;: aus = ein1 * ein3; break; /* Multiplikation */
    case &#039;/&#039;: aus = ein1 / ein3; break; /* Division */
    case &#039;%&#039;: aus = ein1 % ein3; break; /* Modulo */
    default: printf(&quot;   Input error!\n&quot;); break;
  }
 
  /* Ausgabe */
  printf(&quot;Ergebnis: %d\n&quot;, aus);

  /* Ende */
  return 0;
}
</pre><h2  class="related_post_title">Ähnliche Blog-Einträge:</h2><ul class="related_post"><li>14. February 2010 -- <a href="http://suckup.de/browser/if-your-browser-were-a-women/" title="If your browser were a women">If your browser were a women</a></li><li>8. October 2010 -- <a href="http://suckup.de/ubuntuusers-de/planet-ubuntuusers-de/" title="Planet.ubuntuusers.de">Planet.ubuntuusers.de</a></li><li>12. April 2010 -- <a href="http://suckup.de/cms/404-seo-plugin-optimieren/" title="404 SEO Plugin &#8211; optimieren">404 SEO Plugin &#8211; optimieren</a></li><li>14. February 2010 -- <a href="http://suckup.de/allgemein/google-hacks-und-tricks/" title="Google Hacks und Tricks">Google Hacks und Tricks</a></li></ul><img src="http://feeds.feedburner.com/~r/voku-online/~4/Nja_Xj-4WlE" height="1" width="1"/>]]></content:encoded><description>Hier mal wieder ein einfaches Beispiel in C mit "Struktogramm" &amp;#38; "Programmablaufplan" &amp;#38; "Pseudocode" ...

&amp;#160;
Pseudocode:
&amp;#60;strong&amp;#62;begin&amp;#60;/strong&amp;#62;
    Eine &amp;#039;einfache&amp;#039; Rechenaufgabe (z.B. 5+5) eingeben.
    Aufteilung der Eingabe in (drei) Variablen [ein1, ein2, ein3]
    &amp;#60;strong&amp;#62;case&amp;#60;/strong&amp;#62;  [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://suckup.de/howto/c/c-programm-einfacher-taschenrechner/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">3</slash:comments><feedburner:origLink>http://suckup.de/howto/c/c-programm-einfacher-taschenrechner/</feedburner:origLink></item></channel></rss>

