<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Funny on Marcello Barnaba</title>
    <link>https://sindro.me/it/tags/funny/</link>
    <description>Recent content in Funny on Marcello Barnaba</description>
    <generator>Hugo</generator>
    <language>it</language>
    <lastBuildDate>Thu, 16 Sep 2010 20:00:00 +0000</lastBuildDate>
    <atom:link href="https://sindro.me/it/tags/funny/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Scoprire le culture del mondo tramite l&#39;autocompletamento di Google</title>
      <link>https://sindro.me/it/posts/2010-09-16-learning-about-world-cultures-via-google-autocomplete/</link>
      <pubDate>Thu, 16 Sep 2010 20:00:00 +0000</pubDate>
      <guid>https://sindro.me/it/posts/2010-09-16-learning-about-world-cultures-via-google-autocomplete/</guid>
      <description>&lt;p&gt;Per curiosità, stavo guardando come un browser interagisce col backend di Google&#xA;Instant. Mentre osservavo gli scambi HTTP con Firebug, prima mi sono chiesto&#xA;perché codificano HTML e JS con sequenze di escape &lt;code&gt;\xYY&lt;/code&gt;, poi perché le&#xA;stessissime funzioni JS vengono mandate avanti e indietro ad ogni richiesta, e&#xA;poi mi sono imbattuto nel servizio JSONp &lt;code&gt;google.com/s?q=QUERY&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Dagli una query, e ti restituirà le frasi suggerite correlate che vengono usate&#xA;per costruire il menu sotto la barra di ricerca quando usi i suggerimenti e/o&#xA;Instant (non ho scavato troppo in tutti gli altri parametri).&lt;/p&gt;&#xA;&lt;p&gt;Ad ogni modo, la cosa interessante è che, ovviamente, i suggerimenti sono&#xA;personalizzati per paese. Per mostrare le differenze in modo esplicito,&#xA;chiediamo al servizio la query più semplice possibile, &lt;code&gt;a&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;Per l&amp;rsquo;Italia otterrai:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ curl http://www.google.it/s?q=a&#xA;window.google.ac.h([&amp;#34;a&amp;#34;,[[&amp;#34;ansa&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;0&amp;#34;],&#xA;[&amp;#34;alice&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;1&amp;#34;],[&amp;#34;alitalia&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;2&amp;#34;],[&amp;#34;alice mail&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;3&amp;#34;],&#xA;[&amp;#34;apple&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;4&amp;#34;],[&amp;#34;agenzia delle entrate&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;5&amp;#34;],&#xA;[&amp;#34;audi&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;6&amp;#34;],[&amp;#34;aci&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;7&amp;#34;],[&amp;#34;autoscout&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;8&amp;#34;],&#xA;[&amp;#34;atm&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;9&amp;#34;]],&amp;#34;&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;&amp;#34;,&amp;#34;&amp;#34;,{}])&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;hmm, togliamo il JSONp e i parametri:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ curl -s http://www.google.it/s?q=a | ruby -rjson -ne &amp;#39;puts JSON($_[19..-2])[1].map(&amp;amp;:first).join(&amp;#34;, &amp;#34;)&amp;#39;            &#xA;ansa, alice, alitalia, alice mail, apple, agenzia delle entrate, audi, aci, autoscout, atm&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Per gli USA otterrai:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;amazon, aol, att, apple, american airlines, abc, ask.com, amtrak, addicting games, aim&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Regno Unito:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;argos, amazon, asda, asos, autotrader, aa route planner, aol, apple, amazon uk, aqa&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Irlanda:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;aer lingus, aib, argos, amazon.co.uk, argos.ie, asos, aa route planner, amazon, aldi, aib internet banking&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Infine, perché ci sono stato di recente ed è stata un&amp;rsquo;esperienza profonda, Cuba:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;asus, antonio maceo, amor, amigos, ain, antivirus, avira, alba, aduana, as&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Sono sicuro che @nhaima sta sorridendo nel vedere queste parole, perché caspita,&#xA;laggiù cercano davvero un sacco software antivirus (avira è uno di quelli)&#xA;perché è un mondo senza Internet, quindi senza software libero: sei condannato&#xA;a usare roba Windows, e hai quello per cui paghi. Antonio Maceo è stato un eroe&#xA;della rivoluzione del XIX secolo, ed è nel cuore del popolo cubano. Amor,&#xA;Amigos! :-)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Avviso a tutti i dipendenti</title>
      <link>https://sindro.me/it/posts/2009-03-02-notice-to-all-employees/</link>
      <pubDate>Tue, 24 Feb 2009 13:06:14 -0500</pubDate>
      <guid>https://sindro.me/it/posts/2009-03-02-notice-to-all-employees/</guid>
      <description>&lt;p&gt;(Letto su &lt;a href=&#34;http://lists.grok.org.uk/pipermail/full-disclosure/2009-February/068153.html&#34; target=&#34;_blank&#34;&gt;full-disclosure&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Subject: Notice to all employees&#xA;Date: Tue, 24 Feb 2009 13:06:14 -0500&#xA;&#xA;Dear employees,&#xA;&#xA;Due to the current financial situation caused by the slowdown&#xA;of the economy, Management has decided to implement a scheme&#xA;to put workers of 40 years of age and above on early retirement.&#xA;&#xA;This scheme will be known as RAPE (Retire Aged People Early).&#xA;&#xA;Persons selected to be RAPED can apply to management to be eligible&#xA;for the SHAFT scheme (Special Help After Forced Termination).&#xA;Persons who have been RAPED and SHAFTED will be reviewed under the&#xA;SCREW programme (Scheme Covering Retired Early Workers). A person&#xA;may be RAPED once, SHAFTED twice and SCREWED as many times as&#xA;Management deems appropriate.&#xA;&#xA;Persons who have been RAPED can only get AIDS (Additional Income&#xA;for Dependents &amp;amp; Spouse) or HERPES (Half Earnings for Retired&#xA;Personnel Early Severance).&#xA;&#xA;Obviously, persons who have AIDS or HERPES will not be SHAFTED or&#xA;SCREWED any further by Management.&#xA;&#xA;Persons who are not RAPED and are staying on will receive as much&#xA;SHIT (Special High-Intensity Training) as possible. Management&#xA;has always prided itself on the amount of SHIT it gives employees.&#xA;&#xA;Sincerely,&#xA;The Management&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;(Spero vi siate divertiti :D C&amp;rsquo;e&amp;rsquo; anche una &lt;a href=&#34;http://seclists.org/fulldisclosure/2009/Mar/1&#34; target=&#34;_blank&#34;&gt;versione USAF&lt;/a&gt; del 1997).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Chuck Norris in Ruby</title>
      <link>https://sindro.me/it/posts/2008-06-13-chuck-norris-in-ruby/</link>
      <pubDate>Fri, 13 Jun 2008 12:00:00 +0000</pubDate>
      <guid>https://sindro.me/it/posts/2008-06-13-chuck-norris-in-ruby/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://tempe.st/&#34; target=&#34;_blank&#34;&gt;intinig&lt;/a&gt; ha portato il potere del calcio rotante di&#xA;&lt;a href=&#34;http://uncyclopedia.wikia.com/wiki/Chuck_Norris&#34; target=&#34;_blank&#34;&gt;Chuck&lt;/a&gt; in Ruby! Dategli&#xA;un&amp;rsquo;occhiata&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/intinig/chuck_norris/tree/master/chuck_norris.rb&#34; target=&#34;_blank&#34;&gt;https://github.com/intinig/chuck_norris/tree/master/chuck_norris.rb&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;E&amp;rsquo; un proof-of-concept, ovviamente :).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Orinatoi ad Amsterdam</title>
      <link>https://sindro.me/it/posts/2008-05-05-urinals-in-amsterdam/</link>
      <pubDate>Mon, 05 May 2008 00:00:00 +0000</pubDate>
      <guid>https://sindro.me/it/posts/2008-05-05-urinals-in-amsterdam/</guid>
      <description>&lt;p&gt;Via &lt;a href=&#34;http://www.reddit.com/r/pics/comments/6hwlj/urinals_in_amsterdam_pic/&#34; target=&#34;_blank&#34;&gt;reddit&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://sindro.me/posts/2008-05-05-urinals-in-amsterdam/schipol_fly.jpg&#34; alt=&#34;Orinatoio di Schiphol con la mosca&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Google Maps (parte I de &#34;Il Googling&#34;)</title>
      <link>https://sindro.me/it/posts/2008-02-14-google-maps-part-i-of-the-googling/</link>
      <pubDate>Thu, 14 Feb 2008 00:00:00 +0000</pubDate>
      <guid>https://sindro.me/it/posts/2008-02-14-google-maps-part-i-of-the-googling/</guid>
      <description>&lt;p&gt;Ti sei mai preoccupato di Google Maps e di quanto quell&amp;rsquo;app riesca a vedere&#xA;della tua casa, della tua auto, dei tuoi vicini e&amp;hellip; forse&amp;hellip; di te stesso?!?&lt;/p&gt;&#xA;&lt;p&gt;Beh, forse hai ragione! Dai un&amp;rsquo;occhiata a questo video dei &lt;a href=&#34;http://www.youtube.com/user/thevacationeers&#34; target=&#34;_blank&#34;&gt;the&#xA;vacationeers&lt;/a&gt;&amp;hellip;&lt;/p&gt;&#xA;&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;&#xA;      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/fPgV6-gnQaE?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;&#xA;    &lt;/div&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;;D&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ruby 1.9 conosce la risposta alla vita, all&#39;universo e a tutto quanto</title>
      <link>https://sindro.me/it/posts/2007-12-22-ruby-1-9-has-got-the-answer-to-life-universe-and-everything/</link>
      <pubDate>Sat, 22 Dec 2007 22:00:00 +0000</pubDate>
      <guid>https://sindro.me/it/posts/2007-12-22-ruby-1-9-has-got-the-answer-to-life-universe-and-everything/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-ruby&#34; data-lang=&#34;ruby&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;22&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;33&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;24&lt;/span&gt; vjt@voyager&lt;span style=&#34;color:#e6db74&#34;&gt;:~&lt;/span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;$&lt;/span&gt; irb19 &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;f&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;irb(main):&lt;span style=&#34;color:#ae81ff&#34;&gt;001&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;Symbol&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;all_symbols&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;grep &lt;span style=&#34;color:#e6db74&#34;&gt;/^the/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;:the_answer_to_life_the_universe_and_everything&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;sfortunatamente, la risposta non è 42:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-ruby&#34; data-lang=&#34;ruby&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;irb(main):&lt;span style=&#34;color:#ae81ff&#34;&gt;002&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; _&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;first&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;object_id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;5048&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;:\&lt;/p&gt;&#xA;&lt;p&gt;Grazie per questa strana scoperta, &lt;a href=&#34;https://deref.blogspot.com&#34; target=&#34;_blank&#34;&gt;nextie&lt;/a&gt;! :D&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
