My static website generator using poole https://www.xythobuz.de
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2013_05_09_itunes.html 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Blog (#) xythobuz.de</title>
  6. <meta name="description" content="Electronics &amp; Software Projects" />
  7. <meta name="keywords" content="xythobuz" />
  8. <link rel="author" href="/xythobuz@xythobuz.de">
  9. <link rel="shortcut icon" href="/img/favicon.ico">
  10. <script type="text/javascript" src="/js/sh_main.js"></script>
  11. <link type="text/css" rel="stylesheet" href="/css/sh_bright.min.css" />
  12. <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
  13. <link rel="alternate" type="application/rss+xml" title="Blog" href="/rss.xml">
  14. <link rel="stylesheet" href="/css/gh-fork-ribbon.css" />
  15. <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
  16. </head>
  17. <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
  18. <div id="header">
  19. <h1>xythobuz.de</h1>
  20. <p><a href="http://xythobuz.de/lastmusic">♫</a></p>
  21. <h2>Blog</h2>
  22. </div>
  23. <div class="colmask leftmenu"><div class="colleft">
  24. <div class="content">
  25. <h2>Musikgeschmack</h2>
  26. <p><em>Posted at May 09, 2013.</em></p>
  27. <p>Ich könnte mir ja jetzt irgend ne seltsame, künstlerisch anmutende Begründung ausdenken, um das zu rechtfertigen. Eigentlich war mir aber nur ein bisschen langweilig. Und außerdem, wofür hat man denn heutzutage so viel Rechenleistung überall.</p>
  28. <p>In diesem Sinne kann man sich jetzt anschauen, <a href="http://xythobuz.de/lastmusic">welche Musik ich gerade höre</a>. Erreichbar ist die Seite auch über den Notenschlüssel oben neben der Überschrift.</p>
  29. <p>Und wie funktioniert das ganze? Auf meinem Rechner laufen, dank <a href="http://projects.tynsoe.org/en/geektool/">GeekTool</a>, einige AppleScripts um unter anderem Song-Informationen auf dem Desktop zu haben. Eines davon ruft jetzt ein Shell Script auf, was ungefähr wie folgt ausschaut:</p>
  30. <pre class="sh_sh">
  31. #!/bin/sh
  32. lasttrack=`cat /Users/thomas/.lasttrack`
  33. host=`hostname`
  34. if [ "$1" != "$lasttrack" ]; then
  35. if [ "$1" != "" ]; then
  36. ssh zaphod "echo \"&lt;html&gt;&lt;head&gt;&lt;meta charset="utf-8" /&gt;&lt;title&gt;Last Song&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;pre&gt;\" &gt; /var/www/lastmusic; echo \"Last song played on &lt;b&gt;${host}&lt;/b&gt; iTunes:\" &gt;&gt; /var/www/lastmusic; echo &gt;&gt; /var/www/lastmusic; echo \"&lt;b&gt;$1&lt;/b&gt; by &lt;b&gt;$2&lt;/b&gt; on the Album &lt;b&gt;$3&lt;/b&gt;\" &gt;&gt; /var/www/lastmusic; echo &gt;&gt; /var/www/lastmusic; echo `date` &gt;&gt; /var/www/lastmusic; echo \"&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;\" &gt;&gt; /var/www/lastmusic"
  37. echo $1 &gt; /Users/thomas/.lasttrack
  38. fi
  39. fi
  40. </pre>
  41. <p>Es kriegt also den Songnamen, Interpreten und Albumtitel als Parameter und schreibt per SSH die Seite auf meinem Server neu. Nicht hübsch, funktioniert aber... :D</p>
  42. <div id="disqus_thread"></div>
  43. <script type="text/javascript">
  44. var disqus_shortname = "xythobuz";
  45. (function() {
  46. var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;
  47. dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";
  48. (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
  49. })();
  50. </script>
  51. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  52. <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  53. </div>
  54. <div class="nav">
  55. <h3>Thomas Buck</h3>
  56. <div id="logo"><img id="logoImg" src="http://www.gravatar.com/avatar/8d18fec40a74782052fb4c007d212475?s=180" alt="Avatar"></div>
  57. <p id="bio">
  58. I'm a 19 year old Information Engineering student from Germany, mostly building cool stuff with AVR microcontrollers. All of my projects are released as <a href="http://www.gnu.org/philosophy/free-sw.html">Free Software</a> on my <a href="https://github.com/xythobuz">GitHub Profile</a>. It would be nice if you could use this <a href="http://www.amazon.de/?_encoding=UTF8&amp;camp=1638&amp;creative=19454&amp;linkCode=ur2&amp;site-redirect=de&amp;tag=xythobuzorg-21">Amazon.de Affiliate Link</a>.
  59. </p>
  60. <ul id="menuList">
  61. <li><a href="/index.html">Home</a></li>
  62. <li><a href="/blog.html">Blog</a></li>
  63. <li><a href="/contact.html">Contact</a></li>
  64. <li>&nbsp;</li>
  65. <li><a href="/ledcube.html">8x8x8 LED Cube</a></li>
  66. <li><a href="/yasab.html">YASAB AVR Bootloader</a></li>
  67. <li><a href="/avrnetstack.html">avrNetStack</a></li>
  68. <li><a href="/xycontrol.html">xyControl</a></li>
  69. <li><a href="/avrserial.html">AVR Serial Library</a></li>
  70. <li><a href="/serialdebug.html">Serial Debug</a></li>
  71. <li><a href="/ledmatrix.html">LED Matrix</a></li>
  72. <li><a href="/ssop28.html">SSOP28 - DIL Adapter</a></li>
  73. <li><a href="/xyrobot.html">xyRobot</a></li>
  74. <li><a href="/bluetooth.html">Bluetooth UART (BTM-222)</a></li>
  75. <li><a href="/k6x4008.html">K6x4008 SRAM</a></li>
  76. <li><a href="/xyrobotremote.html">xyRobotRemote</a></li>
  77. <li><a href="/rremote.html">rRemote</a></li>
  78. <li>&nbsp;</li>
  79. <li><a href="/c250.html">Mio C250 Unlock</a></li>
  80. <li><a href="/nas.html">IB-NAS6210 Linux</a></li>
  81. <li><a href="/ultimatenotifier.html">Ultimate Notifier Script</a></li>
  82. <li><a href="/serialhelper.html">Serial Helper</a></li>
  83. </ul>
  84. <div id="recent">
  85. Recent blog posts:
  86. <ul id="recentList">
  87. <li class="recentList"><a href="/2013_05_28_pid.html">Regelschwingungen</a></li><li class="recentDate">2013-05-28</li>
  88. <li class="recentList"><a href="/2013_05_20_just_cause.html">Just Cause 2 Capture</a></li><li class="recentDate">2013-05-20</li>
  89. <li class="recentList"><a href="/2013_05_17_itunes.html">Musik Script History</a></li><li class="recentDate">2013-05-17</li>
  90. <li class="recentList"><a href="/2013_05_09_itunes.html">Musikgeschmack</a></li><li class="recentDate">2013-05-09</li>
  91. <li class="recentList"><a href="/2013_05_05_debian.html">Debian Update</a></li><li class="recentDate">2013-05-05</li>
  92. </ul>
  93. </div>
  94. </div>
  95. </div></div>
  96. <img id="dude" alt="The Dude abides..." src="/img/dude.png">
  97. <img id="walter" alt="Mark it zero!" src="/img/walter.png">
  98. <div id="footer">
  99. Built with <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  100. &middot;
  101. Licensed as <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  102. &middot;
  103. <a href="http://validator.w3.org/check?uri=referer">Validate HTML</a>
  104. &middot;
  105. <a href="http://jigsaw.w3.org/css-validator/validator?uri=xythobuz.de%2Fstyle.css&amp;profile=css3">Validate CSS</a>
  106. &middot;
  107. <a href="http://feed1.w3.org/check.cgi?url=http://www.xythobuz.de/rss.xml">Validate RSS</a>
  108. &middot;
  109. <a href="http://www.validome.org/google/validate?url=http://www.xythobuz.de&amp;googleTyp=SITEMAP">Validate Sitemap</a>
  110. </div>
  111. <img src="/stats/count.php?img" alt="Analytics">
  112. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  113. <script type="text/javascript">
  114. var _gaq = _gaq || [];
  115. _gaq.push(['_setAccount', 'UA-39163591-1']);
  116. _gaq.push(['_setDomainName', 'xythobuz.org']);
  117. _gaq.push(['_setAllowLinker', true]);
  118. _gaq.push(['_trackPageview']);
  119. setTimeout("_gaq.push(['_trackEvent', '30_seconds', 'read'])", 30000);
  120. (function() {
  121. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  122. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  123. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  124. })();
  125. </script>
  126. </body>
  127. </html>