 <?xml-stylesheet type="text/css" href="https://old.dandandin.net/Data/style/rss1.css" ?> <?xml-stylesheet type="text/xsl" href="https://old.dandandin.net/Data/style/rss1.xsl" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
  <channel>
    <title>Dandandin.net - Blog</title>
    <link>https://old.dandandin.net/home.aspx</link>
    <description />
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>mojoPortal Blog Module</generator>
    <language>en-US</language>
    <ttl>60</ttl>
    <atom:link href="https://old.dandandin.net/Blog/RSS.aspx?p=1~2~30&amp;r=e8cbb273-489a-430c-9eaa-e4c82b7a6b69" rel="self" type="application/rss+xml" />
    <itunes:owner />
    <itunes:explicit>no</itunes:explicit>
    <item>
      <title>Japanese colors for BlackBerry</title>
      <description><![CDATA[<p><img width="233" height="396" alt="" src="http://static.serverland.it/dandandin.it/img/blog/2012/bbjapnames.jpg" style="float: right;" />For my upcoming japanese course, I created an app for memorizing the most common japanese colors.</p>
<p><a href="https://twitter.com/#!/dandandin/status/177163277397266432"><img alt="" src="http://static.serverland.it/dandandin.it/img/blog/2012/eccola.png" style="width: 370px; height: 103px;" /></a></p>
<p><cite>(Tweet says: Who has a BlackBerry? There's an app for you!)</cite></p>
<p><a href="https://twitter.com/#!/marcwan/status/177190917680267265"><img width="342" height="84" alt="" src="http://static.serverland.it/dandandin.it/img/blog/2012/nessuno.png" /></a></p>
<p><em>(Tweet says: BlackBerry? Nobody ^_~)</em></p>
<p><img alt="" src="http://static.serverland.it/dandandin.it/img/smiley/13.gif" style="width: 24px; height: 24px;" title="" /></p>
<p>The app is not available on App World, due to some bugs, it's in private beta, just <a href="http://www.dandandin.net/info.aspx">contact me</a> to have it.</p>
<p>Fun facts:</p>
<ul>
    <li>It was working on BB OS 6, crashed on BB OS 5</li>
    <li>Edited to work BB OS 5, crashes on BB OS 6</li>
    <li>The back button does not work (<a href="http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Back-button-in-BB-OS-5/td-p/1605985">possible fix</a>)</li>
    <li>Japanese words had to be romanized because BlackBerry OS does not support asian characters... <img width="24" height="24" alt="" src="http://static.serverland.it/dandandin.it/img/smiley/27.gif" /></li>
    <li>I used an "iPhoney" style for the user interface, because the default one looks so 2006...</li>
</ul><br /><a href='https://old.dandandin.net/japanese-colors-for-blackberry'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/japanese-colors-for-blackberry'>...</a>]]></description>
      <link>https://old.dandandin.net/japanese-colors-for-blackberry</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/japanese-colors-for-blackberry</comments>
      <guid isPermaLink="true">https://old.dandandin.net/japanese-colors-for-blackberry</guid>
      <pubDate>Wed, 07 Mar 2012 09:17:00 GMT</pubDate>
    </item>
    <item>
      <title>How to show the new softkeys in the Ice Cream Sandwich emulator</title>
      <description><![CDATA[<p>For some reason, the Ice Cream Sandwich emulator does not show the new softkeys that will replace the home back and menu hard keys on new Android handsets. How to enable it?</p>
<p><img alt="" style="float: right; width: 390px; height: 104px; " src="http://static.serverland.it/dandandin.it/img/blog/2012/ics-soft.png" />Just go to the AVD Manager (the program that manages the emulator virtual images), select the Android 4 image, then add the property "Hardware Back/Home keys" and set it to "no"</p>
<p>&#160;</p>
<p>And this is the final result:</p>
<p style="text-align: center; "><img alt="" style="width: 320px; height: 480px; " src="http://static.serverland.it/dandandin.it/img/blog/2012/device-2012-02-12-140515.png" /></p><br /><a href='https://old.dandandin.net/how-to-show-the-new-softkeys-in-the-ice-cream-sandwich-emulator'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/how-to-show-the-new-softkeys-in-the-ice-cream-sandwich-emulator'>...</a>]]></description>
      <link>https://old.dandandin.net/how-to-show-the-new-softkeys-in-the-ice-cream-sandwich-emulator</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/how-to-show-the-new-softkeys-in-the-ice-cream-sandwich-emulator</comments>
      <guid isPermaLink="true">https://old.dandandin.net/how-to-show-the-new-softkeys-in-the-ice-cream-sandwich-emulator</guid>
      <pubDate>Sun, 12 Feb 2012 13:22:00 GMT</pubDate>
    </item>
    <item>
      <title>The Android tutorials doesn't work?</title>
      <description><![CDATA[<p>Have you ever tried to follow the Android programming tutorials at <a href="http://developer.android.com/resources/browser.html?tag=tutorial">developer.android.com</a>?</p>
<p>The writer gives too much for granted, many examples do not work as written if you copy them with a simple copy&amp;paste. To permit a simplified view of the code, the header is omitted and the overall vision of how methods and classes are placed is not very clear.</p>
<p>You might end up with errors as:</p>
<p><samp>array cannot be resolved or is not a field</samp></p>
<p>or</p>
<p><samp>The method setOnItemClickListener(AdapterView.OnItemClickListener) in  the type AdapterView&lt;ListAdapter&gt; is not applicable for the  arguments (new OnItemClickListener(){})</samp></p>
<p>etcetera.</p>
<p>So, I created a <a href="http://bitbucket.org/Magnetic_dud/android-examples">public Bitbucket repository</a> where beginners can go and compare the code.</p><br /><a href='https://old.dandandin.net/the-android-tutorials-doesnt-work'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/the-android-tutorials-doesnt-work'>...</a>]]></description>
      <link>https://old.dandandin.net/the-android-tutorials-doesnt-work</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/the-android-tutorials-doesnt-work</comments>
      <guid isPermaLink="true">https://old.dandandin.net/the-android-tutorials-doesnt-work</guid>
      <pubDate>Fri, 27 Jan 2012 15:48:00 GMT</pubDate>
    </item>
    <item>
      <title>Doraemon in HTML5</title>
      <description><![CDATA[<p>While I was searching some tips about web design, I found this <a href="http://hotsteal.info/blog/doraemon-html5.html">japanese designer</a>.</p>
<p>He shows how you can let your browser draw Doraemon using SVG and HTML5</p>
<p>Here it is:</p>
<p><svg height="300px" width="400px">     <circle fill="#000000" r="100" cy="150" cx="200"></circle>     <circle fill="#5ccff0" r="98" cy="150" cx="200"></circle>     <circle fill="#ffffff" r="80" cy="168" cx="200"></circle>     <circle fill="#000000" r="20" cy="90" cx="180"></circle>     <circle fill="#000000" r="20" cy="90" cx="220"></circle>     <circle fill="#FFFFFF" r="19" cy="90" cx="180"></circle>     <circle fill="#FFFFFF" r="19" cy="90" cx="220"></circle>     <circle fill="#000000" r="5" cy="92" cx="190"></circle>     <circle fill="#000000" r="5" cy="92" cx="210"></circle>     <circle fill="#000000" r="14" cy="110" cx="200"></circle>     <circle fill="#ff0000" r="13" cy="110" cx="200"></circle>     <circle fill="#ff0000" r="58" cy="182" cx="200"></circle>     <rect fill="#ffffff" height="58" width="120" y="124" x="140"></rect>     <rect fill="#000000" height="58" width="1" y="124" x="199"></rect>     <rect fill="#000000" height="1" width="40" y="130" x="210"></rect>     <rect fill="#000000" height="1" width="40" y="130" x="152"></rect>     <rect fill="#000000" height="1" width="50" y="150" x="210"></rect>     <rect fill="#000000" height="1" width="50" y="150" x="142"></rect>     <rect fill="#000000" height="1" width="60" y="170" x="210"></rect>     <rect fill="#000000" height="1" width="60" y="170" x="132"></rect>   </svg></p>
<p>And this is the code behind:</p>
<blockquote>
<p>&lt;div&gt;<br />
&lt;svg height="300px" width="400px"&gt;<br />
&lt;circle cx="200" cy="150" r="100" fill="#000000"&gt;&lt;/circle&gt;<br />
&lt;circle cx="200" cy="150" r="98" fill="#5ccff0"&gt;&lt;/circle&gt;<br />
&lt;circle cx="200" cy="168" r="80" fill="#ffffff"&gt;&lt;/circle&gt;<br />
&lt;circle cx="180" cy="90" r="20" fill="#000000"&gt;&lt;/circle&gt;<br />
&lt;circle cx="220" cy="90" r="20" fill="#000000"&gt;&lt;/circle&gt;<br />
&lt;circle cx="180" cy="90" r="19" fill="#FFFFFF"&gt;&lt;/circle&gt;<br />
&lt;circle cx="220" cy="90" r="19" fill="#FFFFFF"&gt;&lt;/circle&gt;<br />
&lt;circle cx="190" cy="92" r="5" fill="#000000"&gt;&lt;/circle&gt;<br />
&lt;circle cx="210" cy="92" r="5" fill="#000000"&gt;&lt;/circle&gt;<br />
&lt;circle cx="200" cy="110" r="14" fill="#000000"&gt;&lt;/circle&gt;<br />
&lt;circle cx="200" cy="110" r="13" fill="#ff0000"&gt;&lt;/circle&gt;<br />
&lt;circle cx="200" cy="182" r="58" fill="#ff0000"&gt;&lt;/circle&gt;<br />
&lt;rect x="140" y="124" width="120" height="58" fill="#ffffff"&gt;&lt;/rect&gt;<br />
&lt;rect x="199" y="124" width="1" height="58" fill="#000000"&gt;&lt;/rect&gt;<br />
&lt;rect x="210" y="130" width="40" height="1" fill="#000000"&gt;&lt;/rect&gt;<br />
&lt;rect x="152" y="130" width="40" height="1" fill="#000000"&gt;&lt;/rect&gt;<br />
&lt;rect x="210" y="150" width="50" height="1" fill="#000000"&gt;&lt;/rect&gt;<br />
&lt;rect x="142" y="150" width="50" height="1" fill="#000000"&gt;&lt;/rect&gt;<br />
&lt;rect x="210" y="170" width="60" height="1" fill="#000000"&gt;&lt;/rect&gt;<br />
&lt;rect x="132" y="170" width="60" height="1" fill="#000000"&gt;&lt;/rect&gt;<br />
&lt;/svg&gt;<br />
&lt;/div&gt;</p>
</blockquote>
<p>The explanation: first he creates a new layer (&lt;div&gt; ...&lt;/ div&gt;), then puts in a tag that tells the browser to interprete the following instructions as an svg design (&lt;svg&gt; ...&lt;/ svg&gt; ). Inside the svg tag he has specified the height and width of the drawing, and then there are the instructions for drawing circles and rectangles to make the face, eyes, whiskers, etc., and here it seems pretty obvious: <i>rect</i> is for rectangles, <i>circle</i> is for cirles, <i>xy</i> the relative position, <i>width, height</i>, is width and height (want to draw a linge? Set the height to 1 pixel) and<i> fill</i> designates a color to fill, in 8bit RGB hexadecimal.</p>
<p>The main advantages of using this technique instead of placing an image are two:</p>
<ol>
    <li>takes up much less space and so is faster to load</li>
    <li>you can enlarge the image indefinitely without losing quality or making it look pixelated</li>
</ol><br /><a href='https://old.dandandin.net/doraemon-in-html5'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/doraemon-in-html5'>...</a>]]></description>
      <link>https://old.dandandin.net/doraemon-in-html5</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/doraemon-in-html5</comments>
      <guid isPermaLink="true">https://old.dandandin.net/doraemon-in-html5</guid>
      <pubDate>Fri, 20 Jan 2012 10:54:00 GMT</pubDate>
    </item>
    <item>
      <title>Reverse DNS lookup (rDNS)</title>
      <description><![CDATA[<p>Have you ever wanted to know which URL belongs to an ip address? For example, what is the URL of the Google public DNS service, 8.8.8.8?<br />
<br />
To overcome to this problem I wrote a program to do the reverse DNS lookup (rDNS), of a given IP address, here it is:</p>
<p style="text-align: center;"><iframe width="450" height="180" frameborder="0" src="http://dev.serverland.it/rdnse.aspx"></iframe></p>
<p>For example, looking 8.8.8.8, you get google-public-dns-a.google.com</p><br /><a href='https://old.dandandin.net/reverse-dns-lookup-rdns'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/reverse-dns-lookup-rdns'>...</a>]]></description>
      <link>https://old.dandandin.net/reverse-dns-lookup-rdns</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/reverse-dns-lookup-rdns</comments>
      <guid isPermaLink="true">https://old.dandandin.net/reverse-dns-lookup-rdns</guid>
      <pubDate>Sat, 14 Jan 2012 19:35:00 GMT</pubDate>
    </item>
  </channel>
</rss>