<?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; New Stuff</title>
	<atom:link href="http://www.patricktulskie.com/category/new-stuff/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>PatrickTulskie &#8211; Now More Mobile!</title>
		<link>http://www.patricktulskie.com/2008/08/patricktulskie-now-more-mobile/</link>
		<comments>http://www.patricktulskie.com/2008/08/patricktulskie-now-more-mobile/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 17:11:11 +0000</pubDate>
		<dc:creator>Patrick Tulskie</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[New Stuff]]></category>

		<guid isPermaLink="false">http://www.patricktulskie.com/?p=48</guid>
		<description><![CDATA[If you read my site from your Blackberry or iPhone then try pointing your browser at http://m.patricktulskie.com
This is powered by Mobi which basically takes the RSS feed from my site and parses it into a normally readable page.  This works pretty good on iPhones and Blackberries but I would imagine that it will be just [...]]]></description>
			<content:encoded><![CDATA[<p>If you read my site from your Blackberry or iPhone then try pointing your browser at <a title="http://m.patricktulskie.com" href="http://m.patricktulskie.com">http://m.patricktulskie.com</a></p>
<p>This is powered by Mobi which basically takes the RSS feed from my site and parses it into a normally readable page.  This works pretty good on iPhones and Blackberries but I would imagine that it will be just fine on even your normal cellphone.  It took me like 1 minute to setup my site so if you&#8217;ve always wanted the m.yourdomain.com then here is an easy way for you to do it.</p>
<p>I think I might need to write some logic in the back end to redirect viewers to the mobile site if I detect they are browsing from a mobile browser.  Hmm.  That&#8217;s a post for another time I suppose.</p>
<p><em>Please note: I am not affiliated with this service at all.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patricktulskie.com/2008/08/patricktulskie-now-more-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated Blog to Wordpress 2.6 and Changed Theme</title>
		<link>http://www.patricktulskie.com/2008/07/updated-blog-to-wordpress-26-and-changed-theme/</link>
		<comments>http://www.patricktulskie.com/2008/07/updated-blog-to-wordpress-26-and-changed-theme/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 06:11:20 +0000</pubDate>
		<dc:creator>Patrick Tulskie</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[New Stuff]]></category>

		<guid isPermaLink="false">http://www.patricktulskie.com/?p=12</guid>
		<description><![CDATA[Well I had a smooth upgrade to Wordpress 2.6.  No problems.  I also changed themes at the same time.  Not entirely sure if I like this or not.  The Hemmingway stuff from the previous one was pretty awesome.  Maybe I&#8217;ll try to combine to two into a super theme of sorts.  For now this one [...]]]></description>
			<content:encoded><![CDATA[<p>Well I had a smooth upgrade to Wordpress 2.6.  No problems.  I also changed themes at the same time.  Not entirely sure if I like this or not.  The Hemmingway stuff from the previous one was pretty awesome.  Maybe I&#8217;ll try to combine to two into a super theme of sorts.  For now this one will stay though because it feels more readable and comfortable.</p>
<p>Like it?  Loathe it?  Tell me.</p>
<p><em>Update 7/15/2008:<br />
I was informed today by James Januszka (http://twitter.com/jamesjanuszka) that if you were not logged into the site and you tried to view a full article that it would not work properly.  I apologize for that and spent some quality time with the theme working out what was going on.  Apparently there was a missing close div tag.  The author of the theme still denies that there was a bug and insists it is a conflict with plugins in Wordpress.  If anyone is looking to use &#8220;Hello :D&#8221; and needs the fix, let me know.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patricktulskie.com/2008/07/updated-blog-to-wordpress-26-and-changed-theme/feed/</wfw:commentRss>
		<slash:comments>2</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>
