<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Patrick Tulskie &#187; Comedy</title>
	<atom:link href="http://www.patricktulskie.com/category/comedy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patricktulskie.com</link>
	<description>Building a Better Internet</description>
	<lastBuildDate>Wed, 16 Jun 2010 19:12:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>libxml-ruby vs nokogiri vs hpricot</title>
		<link>http://www.patricktulskie.com/2009/03/libxml-ruby-vs-nokogiri-vs-hpricot/</link>
		<comments>http://www.patricktulskie.com/2009/03/libxml-ruby-vs-nokogiri-vs-hpricot/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 05:05:26 +0000</pubDate>
		<dc:creator>Patrick Tulskie</dc:creator>
				<category><![CDATA[Comedy]]></category>
		<category><![CDATA[New Stuff]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[hpricot]]></category>
		<category><![CDATA[libxml]]></category>
		<category><![CDATA[libxml-ruby]]></category>
		<category><![CDATA[nokogiri]]></category>
		<category><![CDATA[parsing]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.patricktulskie.com/?p=115</guid>
		<description><![CDATA[Patrick talks about Ruby XML parser testing with libxml-ruby, nokogiri, hpricot, and rexml.  New test results using the test suite written by Tenderlove (Aaron Patterson) and modified to satisfy some of Why the Lucky Stiff's complaints about the tests.]]></description>
			<content:encoded><![CDATA[<p><em><strong>Update: Aaron told me that he is going to be re-running the benchmarks this weekend so we&#8217;ll get a more complete set of data from the machine that originally ran the tests.</strong></em></p>
<p>If you&#8217;re into parsing XML or HTML with ruby then chances are you&#8217;re familiar with the various gems out there for getting the job done.  Lately, there have been a lot of things flying around about which is the fastest and to settle it, Aaron Patterson (author of Nokogiri and Mechanize) wrote a test suite.</p>
<p>After it&#8217;s release, RubyInside posted about how the tests showed how fast Nokogiri was compared to Hpricot in this article here: <a title="Ruby XML Performance Shootout: Nokogiri vs LibXML vs Hpricot vs REXML - RubyInside" href="http://www.rubyinside.com/ruby-xml-performance-benchmarks-1641.html">Ruby XML Performance Shootout: Nokogiri vs LibXML vs Hpricot vs REXML</a>.  Later in the day, I saw Why&#8217;s posting about the release of Hpricot here: <a title="hpricot 0.7" href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/331411">hpricot 0.7</a> and decided to modify Aaron&#8217;s tests to use Hpricot.XML and here are the results:<br />
<span id="more-115"></span></p>
<pre><code>Tests were run at N=5 to get a clearer picture of the differences between the various gems.  At N=2, tests were pretty close, which indicated that a larger sample was needed.

test_IO_parsing(XmlTruth::DOM::XML::LargeDocumentParsingTest) N=5
user     system      total        real   kBps
null          0.690000   0.070000   0.760000 (  0.768641) 46343.68
nokogiri      2.790000   0.130000   2.920000 (  3.015303) 11813.62
libxml-ruby   2.970000   0.140000   3.110000 (  3.130175) 11380.08
hpricot      13.660000   0.370000  14.030000 ( 14.088780) 2528.37
.
test_in_memory_parsing(XmlTruth::DOM::XML::LargeDocumentParsingTest) N=5
user     system      total        real   kBps
null          1.240000   0.010000   1.250000 (  1.260841) 28252.30
nokogiri      4.360000   0.060000   4.420000 (  4.444468) 8014.83
libxml-ruby   4.570000   0.050000   4.620000 (  4.641338) 7674.87
hpricot      13.750000   0.210000  13.960000 ( 14.045647) 2536.13
.
test_simple_xpath(XmlTruth::DOM::XML::LargeDocumentXPathSearchTest) N=5
user     system      total        real   kBps
nokogiri     44.430000   0.300000  44.730000 ( 44.972003) 792.09
libxml-ruby  40.950000   0.210000  41.160000 ( 41.300780) 862.49
hpricot      18.410000   0.090000  18.500000 ( 18.540239) 1921.32
.
test_IO_parsing(XmlTruth::DOM::XML::SmallDocumentParsingTest) N=1944
user     system      total        real   kBps
null          8.150000   0.130000   8.280000 (  8.326070) 4278.17
nokogiri     17.850000   0.100000  17.950000 ( 17.950534) 1984.36
libxml-ruby  19.010000   0.260000  19.270000 ( 19.370769) 1838.87
hpricot      25.320000   0.460000  25.780000 ( 25.827516) 1379.16
.
test_in_memory_parsing(XmlTruth::DOM::XML::SmallDocumentParsingTest) N=1944
user     system      total        real   kBps
null          3.960000   0.030000   3.990000 (  4.005522) 8892.82
nokogiri     18.140000   0.200000  18.340000 ( 18.403396) 1935.53
libxml-ruby  19.760000   0.230000  19.990000 ( 19.999905) 1781.03
hpricot      15.980000   0.150000  16.130000 ( 16.133157) 2207.90
.
Finished in 426.233021 seconds.

5 tests, 0 assertions, 0 failures, 0 errors</code></pre>
<p>You can find my fork of the test suite on github here: <a title="Patrick Tulskie's fork of XMLTruth on Github" href="http://github.com/PatrickTulskie/xml_truth/tree/master">Patrick Tulskie&#8217;s Fork of XMLTruth</a></p>
<p>From this small sample of tests, it appears as though Nokogiri and libxml-ruby are similar in performance for most items.  This makes sense though since Nokogiri utilizes the native libxml of the current operating environment.  Nokogiri clearly excels at parsing larger documents while Hpricot appears to handle smaller, in-memory documents rather quickly.</p>
<p>In real-world scenarios, one might expect Nokogiri to be the ideal solution to parsing large XML or HTML documents from the disk into a database, whereas Hpricot might be a more ideal gem for use in a web crawler where it is rare that a page&#8217;s DOM is more than a 1MB.</p>
<p>Please post any other thoughts you might have in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patricktulskie.com/2009/03/libxml-ruby-vs-nokogiri-vs-hpricot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Chinese Government is Stealing my Birth Name Part II</title>
		<link>http://www.patricktulskie.com/2008/07/the-chinese-government-is-stealing-my-birth-name-part-ii/</link>
		<comments>http://www.patricktulskie.com/2008/07/the-chinese-government-is-stealing-my-birth-name-part-ii/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 17:05:00 +0000</pubDate>
		<dc:creator>Patrick Tulskie</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[Comedy]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[Chinese]]></category>
		<category><![CDATA[chinese internet]]></category>
		<category><![CDATA[Chinese registrar]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[emails]]></category>
		<category><![CDATA[internet registrar]]></category>
		<category><![CDATA[scam]]></category>

		<guid isPermaLink="false">http://www.patricktulskie.com/?p=10</guid>
		<description><![CDATA[Welcome back to the saga of Patrick&#8217;s battle with the Chinese.  When we left our hero, he thought he had battled off the Chinese internet registrar and the government in a few short emails.  Alas, he was wrong.  Carol had one more thing to attempt to sell to him.  Sensing that this was a scam [...]]]></description>
			<content:encoded><![CDATA[<p><em>Welcome back to the saga of Patrick&#8217;s battle with the Chinese.  When we left our hero, he thought he had battled off the Chinese internet registrar and the government in a few short emails.  Alas, he was wrong.  Carol had one more thing to attempt to sell to him.  Sensing that this was a scam of some sort, and not really caring about who looks at his lowly blog in China, he decided it would be fun to start messing with them.</em></p>
<p>If you haven&#8217;t read the previous posting about this nonsense then you should probably do so.  Basically a Chinese company contacted me with some nonsense about someone wanting to buy my name in China and wanted to know if I would allow this.  I said no, and they started trying to convince me to register the names with them&#8230; and then this happened&#8230;</p>
<p><span id="more-10"></span></p>
<p>So I recieved this response back from Carol:</p>
<blockquote><p>Dear Patrick,</p>
<p>Each company has their own idea,All we can do is to respect your decision.Do you also give up the &#8220;Internet brand name&#8221; ?Internet brand name is the extension of trademark and brand in the internet world. It decides the stability and activity of keyword in the world of internet.it affect the rank of this keyword in google search engine.After the successful registration, Government will award an electronic certificate, which will prove the validity of using this keyword in the internet.</p>
<p>Best Regards</p>
<p>Carol</p></blockquote>
<p>At this point I think one should notice that her typing is getting increasingly worse and worse.  Completely unacceptable for someone who audits stuff, and is employed by an organization that is sort of in partnership with the government.  Something stunk.  I decided to look up this internet keyword nonsense and determined it&#8217;s a Chinese internet only sort of thing.  It&#8217;s similar to AOL&#8217;s keyword stuff that they had, except you can buy these and often at a huge premium.  Now if some company wants to buy it and hold onto it at their expense then go ahead.  If you really want to find me you can search for me on the internet and I really don&#8217;t need a keyword to help with that.</p>
<p>With my new found knowledge, I decided to play dumb and sent this as a response:</p>
<blockquote><p>Hello Carol,</p>
<p>I do not give up the &#8220;Internet Brand Name.&#8221;  What is the Government you speak of?  Is this the Chinese government or is this something else?  It is impossible for me to give up the name &#8220;Patrick Tulskie&#8221; since it is the name given to me at birth.  I can&#8217;t suddenly call myself by something else.<br />
Patrick Tulskie<br />
http://www.PatrickTulskie.com</p></blockquote>
<p>For the sake of space time, I&#8217;ll tell you that a few short emails were exchanged where she basically said if I want to protect myself then I&#8217;d better purchase this internet keyword.  At this point her typing skills have blown my brain right out the top of my skull with horror.  Not a good way to convince me to seperate from my money.</p>
<p>After I asked her how to protect myself, she replied with this:</p>
<blockquote><p>Dear Patrick,</p>
<p>Attached dispute application form, pls check.Hope you could fill in it prudently. In order to arrange the work better, you&#8217;d better fill in the form and return to us in time.I can always help you in the whole process of the registration.</p>
<p>Following is the procedures:<br />
1. We send the dispute application form to you.<br />
2. You fill in the dispute application form and return it via email (scaned) or fax.<br />
3. We will dispute their application and protect Internet brand name for your company.<br />
4. We&#8217;ll send the invoice of payment to you.<br />
5. We will register this Internet brand name after getting the payment proof and award you the electronic certificate.</p>
<p>If you have any questions, contact me freely.</p>
<p>Best Regards</p></blockquote>
<p>The form that was attached had another company&#8217;s name entered into it already and it had some random holding company&#8217;s header on it.  It was a radically different company than had even been mentioned in conversation.  Since she basically blew her cover as a reputable company that was trying to help me protect myself from a Chinese internet STD, I decided it was time to get even more <span style="text-decoration: line-through;">silly </span>serious.</p>
<blockquote><p>Hello Carol,</p>
<p>As I&#8217;m sure you well know it&#8217;s the 3rd of July here in the US and it&#8217;s the day before independence day so most people are on vacation.  I cannot send you the dispute form right now since my secretary is on vacation and will not be back until Monday.  I would fill it out myself, but I have a disorder where I can only write backwards.  If you can read backwards handwriting then I will do it for you, but I don&#8217;t think that&#8217;s appropriate for an official document.</p>
<p>I do have a question though &#8211; how much is it going to cost to buy the name that my parent&#8217;s freely gave to me when I was born?  Many would regard me as a great person, and I am big in every way, but I do not think my name has significant monetary value to anyone else.  It is after all my name.  I mean how would you feel if your name was &#8220;Carol Burger&#8221; and some company comes along and tries to buy the name &#8220;Carol Burger&#8221; when that is your name that your parents gave to you when you were born?  I&#8217;m pretty sure you&#8217;d do a barrel roll.<br />
Patrick Tulskie<br />
http://www.PatrickTulskie.com</p></blockquote>
<p>And I never got a response, despite all of my questions.  As of today I see that all of the domains she mentioned in the first email have yet to be taken.  If someone wants to buy them, have at it.  I&#8217;m not sure what good the name Patrick Tulskie will be to you, but if you really want them then have at it.</p>
<p>There IS a chance none of the people at this phoney company have seen my blog posts about them and so I might try sending in the form, written in the appropriate fashion just to see what happens.  Comment or hit me on Twitter if you think I should do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patricktulskie.com/2008/07/the-chinese-government-is-stealing-my-birth-name-part-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Chinese Government is Stealing my Birth Name Part I [reposted]</title>
		<link>http://www.patricktulskie.com/2008/07/the-chinese-government-is-stealing-my-birth-name-part-i/</link>
		<comments>http://www.patricktulskie.com/2008/07/the-chinese-government-is-stealing-my-birth-name-part-i/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 05:42:53 +0000</pubDate>
		<dc:creator>Patrick Tulskie</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[Comedy]]></category>
		<category><![CDATA[New Stuff]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[Chinese]]></category>
		<category><![CDATA[chinese internet]]></category>
		<category><![CDATA[Chinese registrar]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[extortion]]></category>
		<category><![CDATA[internet registrar]]></category>
		<category><![CDATA[PatrickTulskie]]></category>
		<category><![CDATA[scam]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[stolen identity]]></category>

		<guid isPermaLink="false">http://www.patricktulskie.com/?p=9</guid>
		<description><![CDATA[A holdings company claiming to be a representative of the Chinese government tries to take a bunch of money from me in exchange for me retaining my birth name on the internet.]]></description>
			<content:encoded><![CDATA[<p><em>UPDATE: I had taken this down since I didn&#8217;t want to blow my cover but it looks like they realized I was onto their game.  I believe this company that has contacted me is actually just trying to screw people in other countries out of money by threatening them with fake companies.  If that&#8217;s not the case and they are reading this then I&#8217;d like to see some proof otherwise.  The rest of the emails will come shortly when I have time.</em></p>
<p>I know.  I know.  There are plenty of questions going through your head right now upon reading the title of this&#8230; How could this possibly happen?  Why do they want some Irish/Polish mixed name?  Don&#8217;t they have enough to do with the Olympics this year?  How many licks does it take to get to the center of a Tootsie pop?</p>
<p>Well, I&#8217;m as bewildered as you are.  Let me start at the beginning since it was only this morning and I am pretty sure I can re-count it.</p>
<p>I woke up to my blackberry going off next to me for an emergency email.  No one sends me emergency emails, with the exception of the Chinese government, so naturally I had a look see.  I skimmed it quickly and determined it could wait until morning because they did not say anything about me needing to wake up immediately and get dressed.</p>
<blockquote><p><span id="more-9"></span>Dear principal,</p>
<p>We are a domain name registration service company in asia,which mainly deal with international company&#8217;s in Asia.We have something important need to confirm with you company.On the July 01th, 2008, we received an application formally.One company named &#8220;Makerc International Holdings Ltd&#8221; wanted to register following domain names:<br />
patricktulskie.asia<br />
patricktulskie.cn<br />
patricktulskie.com.cn<br />
patricktulskie.hk<br />
patricktulskie.info<br />
patricktulskie.net<br />
patricktulskie.net.cn<br />
patricktulskie.org.cn<br />
patricktulskie.tw<br />
and Internet brand name:<br />
Patricktulskie<br />
through our body.<br />
During our auditing procedure we find out that the alleged &#8220;Makerc International Holdings Ltd&#8221; has no trade mark, Intellectual property, nor patent even similar to that word.  we found that the keywords and domain names applied for registration are as same as your company&#8217;s name and trademark. one point need you to confirm: whether this alleged &#8220;Makerc International Holdings Ltd&#8221; is your business partner or distributor in ASIA. if so, we will complete their registration. These days we are dealing with it.<br />
If you are not in charge of this please transfer this email to appropriate dept.In order to deal with this issue better,please let someone who is responsible for trademark or domain name contact me as soon as possible.</p>
<p>Best Regards,</p>
<p>Carol<br />
Auditing Department<br />
______________________________________________________________________________________________________________________________________________________________________________________<br />
Hong Kong Office:<br />
Tel: 00852 8122 6293  (Direct)<br />
Tel: 00852 3059 3057  (Office)<br />
Fax: 00852 3059 3080</p>
<p>Email: Carol@skasia.hk.cn<br />
Web: http://www.skholdingscompanyltd.asia</p>
<p>Confidentiality Notice. This is a letter for confirmation. If the mentioned third party is your business partner or distributor in ASIA please DO NOT reply. We will automatically confirm application from your business partner after this audit procedure. we have to notify you, and our registration organization are not responsible for any dispute questions about trade mark, intellectual property nor patent after they succeed in registration. hope you can understand. thank you.</p></blockquote>
<p>My initial thoughts were &#8220;Hot damn, I&#8217;m a principal now.&#8221;  Then I went to GoDaddy and bought PatrickTulskie.org and PatrickTulskie.net.  I sat back in my chair and thought to myself &#8220;Damn you&#8217;re slick aren&#8217;t you Patrick?  Yeah you are.&#8221;</p>
<p>At this point you probably think it&#8217;s unfair that I say the Chinese government was responsible for this but it&#8217;s more fun to blame them for it.  Besides, at a later point I was lead to believe that this Carol person was a representative for the Chinese government.  I did not yet realize what they were trying to do, so I replied with this:</p>
<blockquote><p>Carol,</p>
<p>Thank you for notifying me of this.  PatrickTulskie is my name and my business name.  Please do not permit this to go through as it would inflict damage on my reputation, and business in addition to confusion for people who view those pages.  I&#8217;ve had other companies attempt to register my name as domains in an attempt to do &#8220;domain squatting&#8221; and advertising under my name without my consent.</p>
<p>They are not my business partner nor are they my distributor in Asia.  Furthermore, to my knowledge I am the only Patrick Tulskie in the entire world.  Please do not permit this transaction.  Thank you very much Carol.</p>
<p>Patrick Tulskie<br />
http://www.PatrickTulskie.com</p></blockquote>
<p>Almost immediately I got a response back that said:</p>
<blockquote><p>Dear Patrick,</p>
<p>Thanks for your prompt reply.We are a government authorized domain registration organization,During the auditing process, we have found that Makerc International Holdings Ltd is not the owner of &#8220;patricktulskie&#8221;.We also do not know that company&#8217;s detail information,So we ask you to confirm the relationship between you and that company.</p>
<p>If you have no relationship with them. According to our working experience, there are two possibilities:1.Makerc International Holdings Ltd is a domain name investment company, they want to register these names before you and sell back to you to gain profits.2.Makerc International Holdings Ltd is consigned by your competitor to register, let your customers feel confusion.</p>
<p>You know domain name takes open registration, this is international domain name registration principle. So Makerc International Holdings Ltd has right to register it.I think you must know some cases about the domain names grabbed by the third party,we also won&#8217;t want to see things happen like this.</p>
<p>As the owner of &#8220;patricktulskie&#8221;,you will get the priority to register these domain names and keyword.If you think these domian names are important for your company.we can send you a dispute application form and help you to register these domains within dispute period.This is the only way to prevent domain name grab. But If you don&#8217;t think their application will affect your company, you can give up.Each company has their own idea,Hope you can give me your decision ASAP.so that we can handle the next step.</p>
<p>Best Regards</p>
<p>Carol</p></blockquote>
<p>Ah!  So I see!  She&#8217;s from the government and she&#8217;s looking out for my best interest!  How sweet of her and the Chinese government to be looking out for my ass.  Well, at this point I just kinda want her to go away because it was my last work day of the week and I wanted to get some real work done, so I sent her this:</p>
<blockquote><p>Hello Carol,</p>
<p>I have no relationship with that company.  I have already registered PatrickTulskie.net and PatrickTulskie.org in addition to my flagship PatrickTulskie.com.</p>
<p>They can go ahead and buy whatever is left out there.  I am not interested in them and I do not feel that they would be a threat to my business.</p>
<p>Thank you for the notification.<br />
Patrick Tulskie<br />
http://www.PatrickTulskie.com</p></blockquote>
<p>&#8230;and I thought that would be sufficient enough to make her go away.  Alas, no I was wrong.  I didn&#8217;t realize she still needed to fill her quota for the month and she wasn&#8217;t going to let me go yet.</p>
<p>I&#8217;m tired now though and I believe I&#8217;ll have to continue the saga tomorrow.  I have more emails to/from her that I need to sift through and pick apart.  Check back soon for the continuation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patricktulskie.com/2008/07/the-chinese-government-is-stealing-my-birth-name-part-i/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
