<?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>Computer Solutions Blog &#187; China Related</title>
	<atom:link href="http://www.computersolutions.cn/blog/category/china-related/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computersolutions.cn/blog</link>
	<description>Whats happening at Computer Solutions</description>
	<lastBuildDate>Fri, 13 Jan 2012 02:32:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Product Integration &#8211; eBuddy, ZoneMinder and me.</title>
		<link>http://www.computersolutions.cn/blog/2011/12/product-integration-ebuddy-zoneminder-and-me/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=product-integration-ebuddy-zoneminder-and-me</link>
		<comments>http://www.computersolutions.cn/blog/2011/12/product-integration-ebuddy-zoneminder-and-me/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 04:08:26 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[Cool Hunting]]></category>
		<category><![CDATA[Tao Bao]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=814</guid>
		<description><![CDATA[Once again, random browsing on Taobao brought the need for me to shop for random crap^Hstuff. This time, I bought a USB eBuddy (for a grand total of 60RMB including shipping) The eBuddy is a small MSN / QQ physical avatar that performs certain actions based on its software &#8211; e.g. flashing lights, moving its [...]]]></description>
			<content:encoded><![CDATA[<p>Once again, random browsing on Taobao brought the need for me to shop for random crap^Hstuff.</p>
<p>This time, I bought a USB eBuddy (for a grand total of 60RMB including shipping)</p>
<p><a href="http://www.flickr.com/photos/sheedl/6456511375/" title="e-Buddy by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7159/6456511375_49a60fe145.jpg" width="500" height="500" alt="e-Buddy"></a></p>
<p><a href="http://www.flickr.com/photos/sheedl/6456655347/" title="eBuddy by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7009/6456655347_1b5a20ef5f.jpg" width="500" height="500" alt="eBuddy"></a></p>
<p>The eBuddy is a small MSN / QQ physical avatar that performs certain actions based on its software &#8211; e.g. flashing lights, moving its wings, shaking left or right etc.</p>
<p>It looks like a little white angel with MSN color wings.</p>
<p><a href="http://www.flickr.com/photos/sheedl/6456668803/" title="eBuddy by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7156/6456668803_397da87895.jpg" width="500" height="500" alt="eBuddy"></a></p>
<p>For a cheap toy, its actually quite cool.  Cute too, but cool also.</p>
<p>Out of the box, its aimed squarely at Windows users.  As I don&#8217;t actually run the devil&#8217;s OS, I hooked it up to a Debian box instead.<br />
I was hoping for a little bit of fun integrating it with things, but that was not to be.<br />
There is already a perfectly fine library written in Python that works beautifully to make it dance and sing* <a href="http://code.google.com/p/pybuddy-dx">here</a></p>
<p>*Dancing and singing void where prohibited.</p>
<p>The python library is already set to run as a daemon on port 8888, and sits waiting for action out of the box.<br />
The settings below snarfed from the code give an idea of what actions can be given:</p>
<p>Commands:</p>
<pre class="wp-code-highlight prettyprint">
# GLADNESS =        00
# FEAR =            01
# FIZZ =            02
# PLEASANTSURPRISE =03
# GRIEF = 		04
# FURY = 		05
# QUELL = 		06
# REDHEAD = 		07
# GREENHEAD = 		08
# BLUEHEAD = 		09
# YELLOWHEAD =		10
# BLAME = 		11
# BLUEGREENHEAD =	12
# WHITEHEAD = 		13
# HEART = 		14
# WINGS = 		15
# BODY = 		16
# NOEFFECT = 		17
# ONLINE = 		18
# BUSY = 		19
# DAZE = 		20
# BACKSOON = 		21
# AWAY = 		22
# PHONE = 		23
# LUNCH = 		24
# OFFLINE = 		25
</pre>
<p>Mostly they consist of flashing various LED&#8217;s within the eBuddy on/off and optionally moving the wings or shaking the eBuddy left right.<br />
Simple, but effective.</p>
<p>I use Zoneminder in the office on my Debian based ZFS NAS (HP Proliant Microserver), so thought one fun way would be to integrate the eBuddy to Zoneminder.  This also proved to be too easy sadly.</p>
<p>Zoneminder has a wiki entry which gives 99% of whats needed <a href="http://www.zoneminder.com/wiki/index.php/FAQ#How_can_I_use_ZoneMinder_to_trigger_something_else_when_there_is_an_alarm.3F">here</a></p>
<p>I literally had to write 1 line of code to integrate the eBuddy with Zoneminder.</p>
<pre class="wp-code-highlight prettyprint">
#!/usr/bin/perl -w

use strict;

use ZoneMinder;

$| = 1;

zmDbgInit( &quot;myscript&quot;, level=&gt;0, to_log=&gt;0, to_syslog=&gt;0, to_term=&gt;1 );

my $dbh = DBI-&gt;connect( &quot;DBI:mysql:database=&quot;.ZM_DB_NAME.&quot;;host=&quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );

my $sql = &quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != 'None' group by (M.Id)&quot;;
my $sth = $dbh-&gt;prepare_cached( $sql ) or die( &quot;Can't prepare '$sql': &quot;.$dbh-&gt;errstr() );

my $res = $sth-&gt;execute() or die( &quot;Can't execute '$sql': &quot;.$sth-&gt;errstr() );
my @monitors;
while ( my $monitor = $sth-&gt;fetchrow_hashref() )
{
    push( @monitors, $monitor );
}

while( 1 )
{
    foreach my $monitor ( @monitors )
    {
        next if ( !zmMemVerify( $monitor ) );

        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&gt;{LastEventId} ) )
        {
            $monitor-&gt;{LastEventId} = $last_event_id;
            print( &quot;Monitor &quot;.$monitor-&gt;{Name}.&quot; has alarmed\n&quot; );
	    #The Single Line of Code - it sends a flash green signal to the Python Daemon
            system (&quot;echo 8 | nc -q0 -u localhost 8888&quot;);
	    #
            # Do your stuff here
            #
        }
    }
    sleep( 1 );
}
</pre>
<p>I think I&#8217;ll be getting a couple more of these, as the integration is easy.<br />
Next up, server load monitoring &#8211; I can have a couple of these on the top of my desk for each server, and hopefully address each one separately for load purposes &#8211; e.g. flash yellow, red on load average, and shake if queue&#8217;s are large.<br />
Gimmicky, but useful.</p>
<p>Here are a couple of shots of the current incumbent in situ -</p>
<p><a href="http://www.flickr.com/photos/sheedl/6456694399/" title="eBuddy by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7008/6456694399_a277521e75.jpg" width="500" height="500" alt="eBuddy"></a></p>
<p>&#8230;and one of it actually working.<br />
(It flashes green if someone comes up the stairs and zone minder triggers.)</p>
<p><a href="http://www.flickr.com/photos/sheedl/6463884749/" title="eBuddy by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7002/6463884749_1f56a47238.jpg" width="500" height="500" alt="eBuddy"></a></p>
<p>I&#8217;m quite happy I spent the 60rmb, although I would have enjoyed more hacking.  I literally spent 5 minutes getting things running.<br />
Thats not a bad thing, but I was hoping for something a little deeper!</p>
<p>Going to order a few more now.<br />
I got mine here &#8211; <a href="http://item.taobao.com/item.htm?id=1799393549">http://item.taobao.com/item.htm?id=1799393549</a></p>
<p>Recommended.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2011/12/product-integration-ebuddy-zoneminder-and-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Art for arts sake&#8230; &#8211; Mao goes Dotty.</title>
		<link>http://www.computersolutions.cn/blog/2011/12/art-for-arts-sake-mao-goes-dotty/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=art-for-arts-sake-mao-goes-dotty</link>
		<comments>http://www.computersolutions.cn/blog/2011/12/art-for-arts-sake-mao-goes-dotty/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 04:13:53 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[Cool Hunting]]></category>
		<category><![CDATA[Tao Bao]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[mao]]></category>
		<category><![CDATA[poster]]></category>
		<category><![CDATA[shopping]]></category>
		<category><![CDATA[taobao]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=808</guid>
		<description><![CDATA[As its been a long while since I&#8217;ve done a non computer related post, its now time for something completely different. Anyone who has visited our office has noticed that we receive a bazillion packages daily from my various shopping exploits on Taobao, slayer of money. I just bought a new house back home, which [...]]]></description>
			<content:encoded><![CDATA[<p>As its been a long while since I&#8217;ve done a non computer related post, its now time for something completely different.</p>
<p>Anyone who has visited our office has noticed that we receive a bazillion packages daily from my various shopping exploits on Taobao, slayer of money.</p>
<p>I just bought a new house back home, which has started competing with Taobao on the where do I spend my spare change, and I&#8217;ve been interested in decorating it with some &#8220;art&#8221;.<br />
Yes, I know that one persons art is another persons &#8216;meh &#8211; you like that?  icky&#8217;, but each to his own.</p>
<p>I found a gorgeous looking <a href="http://www.image1000.cn/item.htm?spm=1103PYoj.3-37*to.h-1MfDN_&#038;id=8988995475&#038;frm=&#038;"> hi-res map of Shanghai</a> for sale at one quite nicely designed store ( <a href="http://www.image1000.cn/">http://www.image1000.cn/</a> ), and contacted the seller.</p>
<p><a href="http://www.computersolutions.cn/blog/wp-content/uploads/2011/12/T2lalOXeRaXXXXXXXX_12840958.jpg"><img src="http://www.computersolutions.cn/blog/wp-content/uploads/2011/12/T2lalOXeRaXXXXXXXX_12840958-300x160.jpg" alt="" title="T2lalOXeRaXXXXXXXX_!!12840958" width="300" height="160" class="aligncenter size-medium wp-image-809" /></a></p>
<p>Unfortunately he couldn&#8217;t sell the canvas image on a roll, as I needed for easy shipping back home, and could only sell pre-framed.  </p>
<p>Roll on two weeks later, and I was still thinking about having that in my lounge back home, so decided on making a test order to check out the packaging, and its survivability vs Shanghai kuaidi (delivery) companies.</p>
<p>I picked a minimalist dot version of Mao for 100RMB including shipping, and ordered.<br />
Two days later, Mao arrived.</p>
<p>Unpacking below:</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439618171/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7017/6439618171_b334f28a42.jpg" width="500" height="500" alt="Mao"></a><br />
Fresh from the Kuaidi company!</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439619527/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7147/6439619527_4940b34d7b.jpg" width="500" height="500" alt="Mao"></a><br />
Nice packaging touches.</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439621125/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7146/6439621125_8239fe15d9.jpg" width="500" height="500" alt="Mao"></a><br />
Uh oh!</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439627441/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7025/6439627441_c494412557.jpg" width="500" height="500" alt="Mao"></a><br />
Still well packed.</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439629353/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7141/6439629353_5e67b95944.jpg" width="500" height="500" alt="Mao"></a><br />
Kuaidi vs Packaging, who will win?</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439640051/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7143/6439640051_881bdeb415.jpg" width="500" height="500" alt="Mao"></a><br />
More uh-oh..</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439643337/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7141/6439643337_6fd64d2f16.jpg" width="500" height="500" alt="Mao"></a><br />
Packaging wins (although it was a close call).</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439632593/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7142/6439632593_7027d99bc5.jpg" width="500" height="500" alt="Mao"></a><br />
Phew, looks ok.</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439639081/" title="Untitled by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7005/6439639081_0cd65138c4.jpg" width="500" height="500" alt=""></a><br />
Inside packaging (really really well packaged!)</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439646029/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7175/6439646029_d7d1e0b52a.jpg" width="500" height="500" alt="Mao"></a><br />
Even comes with the hanging equipment, which is a nice touch.</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439647251/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7008/6439647251_2ac567b8a5.jpg" width="500" height="500" alt="Mao"></a><br />
So much attention to detail (plastic cover strip for acrylic front frame &#8220;glass&#8221;)</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439651899/" title="Twister^H Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7145/6439651899_65bf4f8a32.jpg" width="500" height="500" alt="Twister^H Mao"></a><br />
Its Twister!</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439654761/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7019/6439654761_ea7478b711.jpg" width="500" height="500" alt="Mao"></a><br />
Oh wait, no, its Mao <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.flickr.com/photos/sheedl/6439662399/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7033/6439662399_4c0b038aff.jpg" width="500" height="500" alt="Mao"></a><br />
Amjellybaby models the artwork.</p>
<p><a href="http://www.flickr.com/photos/sheedl/6439690529/" title="Mao by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7035/6439690529_922f3c1c87.jpg" width="500" height="500" alt="Mao"></a><br />
Finally, in situ!</p>
<p>Overall, reasonably happy with this.  Price is reasonable, and it (barely) survived the shipping company, so I think there would be a chance that a slightly better packaged version (i.e. adding a few layers of bubble wrap on the outside) will survive.</p>
<p>So, looks like I&#8217;ll be springing the 900rmb odd for the large canvas map version.</p>
<p>Wish me luck!</p>
<hr />
<p>Addendum </p>
<p>Ordered the large triptych and crossed my fingers that it would survive Emirates.<br />
It made the journey in better shape than the Mao print above did across Shanghai.  No dents and zero issues.</p>
<p>Here they are in my new house, awaiting hanging&#8230;</p>
<p><a href="http://www.flickr.com/photos/sheedl/6594259945/" title="Shanghai triptych by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7141/6594259945_cee902c23a.jpg" width="500" height="500" alt="Shanghai triptych"></a></p>
<p><a href="http://www.flickr.com/photos/sheedl/6594260349/" title="Shanghai triptych by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7153/6594260349_51ec11ffa0.jpg" width="500" height="500" alt="Shanghai triptych"></a></p>
<p>Pricey at 900rmb, but worth it.  Now I can point at locations on the satellite image and tell people I was here when they come visit the house!</p>
<p>2nd Addendum &#8211; final shot of this in place, finally on the wall after 2 weeks of sitting on the floor&#8230;  </p>
<p><a href="http://www.flickr.com/photos/sheedl/6685774499/" title="Untitled by sheedl, on Flickr"><img src="http://farm8.staticflickr.com/7143/6685774499_5a47e6870c.jpg" width="500" height="500" alt=""></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2011/12/art-for-arts-sake-mao-goes-dotty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Train Safety</title>
		<link>http://www.computersolutions.cn/blog/2011/07/train-safety/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=train-safety</link>
		<comments>http://www.computersolutions.cn/blog/2011/07/train-safety/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 06:37:50 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[General Talk]]></category>
		<category><![CDATA[atc]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[ertms]]></category>
		<category><![CDATA[ptc]]></category>
		<category><![CDATA[safety systems]]></category>
		<category><![CDATA[train]]></category>
		<category><![CDATA[wenzhou]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=717</guid>
		<description><![CDATA[The recent accident in Wenzhou has highlighted some of the issues that are present in train systems today. The facts &#8211; One high-speed rail train D301 from Beijing was headed for Fuzhou, this train was followed by train D3115 from Hangzhou to Fuzhou. At 20:34 or so, the train D3115 was hit by thunder, subsequently [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.computersolutions.cn/blog/wp-content/uploads/2011/07/r-CHINA-BULLET-TRAIN-large570.jpg"><img src="http://www.computersolutions.cn/blog/wp-content/uploads/2011/07/r-CHINA-BULLET-TRAIN-large570.jpg" alt="" title="r-CHINA-BULLET-TRAIN-large570" width="570" height="238" class="alignright size-full wp-image-723" /></a></p>
<p>The recent accident in Wenzhou has highlighted some of the issues that are present in train systems today.</p>
<p>The facts &#8211; </p>
<blockquote><p>
One high-speed rail train D301 from Beijing was headed for Fuzhou, this train was followed by train D3115 from Hangzhou to Fuzhou. At 20:34 or so, the train D3115 was hit by thunder, subsequently lost power and stopped.<br />
Train D301 did not, and crashed into train D3115.<br />
Two cars from train D3115 as well as four cars from D301 derailed, some falling off of a bridge.</p>
<p>The trains are from different manufacturers &#8211;<br />
D301 &#8211;  CRH1 (Bombardier Regina, Swedish)<br />
D3115 &#8211; CRH2 (Shinkansen E2, Japanese)
</p></blockquote>
<p><span id="more-717"></span><br />
First &#8211; a quick overview of technology.</p>
<p>The 2 trains used come from different design ethos &#8211;<br />
The Japanese design trains to travel fast, and light.  The trains are fuel efficient.<br />
They don&#8217;t design for crash safety, as the Japanese train system is designed explicitly with the idea that no train can crash into another;  signalling and train positioning systems are used to ensure this.<br />
This has been quite successful in Japan, and other countries where Japans system can be implemented.<br />
This does mean that in the event of a collision, Japanese trains are more prone to derailment, as can be seen in this instance.</p>
<p>The Europeans design trains based on the idea that crashes or derailments happen.<br />
This is mainly historical due to the mixture of systems in place throughout the European network, and track size, grade plus other issues not present in other rail systems.<br />
This means european trains are heavier, require more power/fuel to run, but that derailment occurs less.  European &#8216;safety&#8217; standards (more on this later) ensure that European trains can withstand much higher impacts<br />
than a Japanese train can.</p>
<p>In this case, the heavier European train crashed into the lighter Japanese train, and caused a derailment, with cars falling off the viaduct.</p>
<p>As far as I can tell, the news reports state that the driver of the D301 train manually activated braking, but it was too late to prevent the accident.</p>
<p>What could have been done to prevent this tragedy?</p>
<p>Lets take another look at the Japanese ethos &#8211; don&#8217;t crash.</p>
<p>The Japanese have an enviable safety record for their train systems, and for good reason, they track their trains carefully.  Tracking doesn&#8217;t save lives though, stopping does.  In most systems signals tell drivers to stop in case of emergency, but humans are fallable, and after some bad accidents due to human error in the 60&#8242;s, they took the human out of equation, and introduced automated stopping systems to avoid issues due to human error (ATS)</p>
<p>In the train industry there are two main implementations for arranging train movement &#8211; Moving Block, and Fixed block.</p>
<p>These both use similar idea&#8217;s &#8211; that two trains cannot occupy the same track at a given time.<br />
To do this, they use signal systems on track to tell the driver to slow down or stop as appropriate.<br />
This method of visual signaling has been around since the beginning of trains, and automated systems date back to the 1800&#8242;s.</p>
<p>Fixed block signaling works by breaking track into segments.  If a train is on segment B, then a train in segment A cannot proceed until the other train has moved onto segment C.</p>
<p>Moving block signaling works by adding a virtual buffer zone around a train of a few hundred meters.  If a train is on Segment B, then another train can proceed from A to B as long as the two trains are separated by the safe buffer zone difference.</p>
<p>Moving block signaling allows train companies to run trains closer together, but increases the danger risk.</p>
<p>With the invention of GPS, there is a another safety system coming into place called PTC (Positional Tracking Control)</p>
<p>With positional tracking control, each train gets fitted with a GPS device that tells relevant parties where the train is.</p>
<p>Those familiar with Onstar or other vehicle tracking systems will recognize the concept.</p>
<p>Essentially each train reports back its location to a central location, and this gets updated in some kind of tracking control system.</p>
<p><a href="http://www.computersolutions.cn/blog/wp-content/uploads/2011/07/loadBinary.aspx_.gif"><img src="http://www.computersolutions.cn/blog/wp-content/uploads/2011/07/loadBinary.aspx_.gif" alt="" title="loadBinary.aspx" width="560" height="338" class="aligncenter size-full wp-image-718" /></a></p>
<p>This can be added to existing systems to warn about crash collisions.  Positional tracking control is known as Positive Track Control in the train world (PTC).</p>
<p>Given that there are a number of safety systems in place, and some countries have been using them successfully for many years, what is in use in China?</p>
<p>China unsurprisingly, does have safety systems in place, as one would expect given the major train network here, and the amount of train traffic on those networks.  Anyone who has noted the <em>immense</em> amount of train travel during Chinese New Year will know this.</p>
<p>China has a reasonably good train safety record despite its traffic volume, so what happened here?</p>
<p>According to early reports the PTC system failed in this instance.  China uses the European PTC system, known as ERTMS. While its too early to know what exactly happened, this isn&#8217;t looking very good for the Europeans, as their system failed, and failed badly.</p>
<p>References:</p>
<p><a href="http://www.jrtr.net/jrtr21/F44_Technology.html">http://www.jrtr.net/jrtr21/F44_Technology.html</a><br />
<a href="http://www.railjournal.com/this-month/yet-more-ertms-challenges-ahead.html">http://www.railjournal.com/this-month/yet-more-ertms-challenges-ahead.html</a><br />
<a href="http://www.accessscience.com/content/Positive%20train%20control/YB110191">http://www.accessscience.com/content/Positive%20train%20control/YB110191</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2011/07/train-safety/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dog Licensing Rules for Shanghai 2011</title>
		<link>http://www.computersolutions.cn/blog/2011/05/dog-licensing-rules-for-shanghai-2011/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dog-licensing-rules-for-shanghai-2011</link>
		<comments>http://www.computersolutions.cn/blog/2011/05/dog-licensing-rules-for-shanghai-2011/#comments</comments>
		<pubDate>Fri, 27 May 2011 03:58:29 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[legislation]]></category>
		<category><![CDATA[requirements]]></category>
		<category><![CDATA[Useful Info]]></category>
		<category><![CDATA[Dog]]></category>
		<category><![CDATA[licence]]></category>
		<category><![CDATA[License]]></category>
		<category><![CDATA[shanghai]]></category>
		<category><![CDATA[Vaccination]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=706</guid>
		<description><![CDATA[As the law has changed regarding pet dogs in Shanghai (again), here are the steps to get your dog licensed. The new rules state that people can only own 1 pet per household from now on. The only exception to this is where you had more pets previously licensed in your household; you can continue [...]]]></description>
			<content:encoded><![CDATA[<p>As the law has changed regarding pet dogs in Shanghai (again), here are the steps to get your dog licensed.</p>
<p>The new rules state that people can only own 1 pet per household from now on.<br />
The only exception to this is where you had more pets previously licensed in your household; you can continue to renew their licenses, but not add new dogs.</p>
<p>Note that the instructions below are for Xu Hui District, but are similar for other districts.</p>
<p>I suggest buy a plastic file, and keep all related paperwork together.<br />
To succeed in this mission, you&#8217;ll need patience, some cash, and some kind of canine.</p>
<h3>Ouch that hurt! aka vaccinations</h3>
<p><strong>Bring</strong><br />
Dog<br />
Money (few hundred rmb).</p>
<p>In Xu Hui district (also would be ok for other districts), this is the large pet hospital at 2451 Xie Tu Lu<br />
带狗去斜土路2451号打疫苗</p>
<p>You&#8217;ll need to ask for a &#8220;gou yi miao ban zheng&#8221;  办理狗证续证</p>
<p>The dog will get a vaccination shot,  price for this varies depending on which vet you visit, but should be less than 100rmb.<br />
You&#8217;ll also get a piece of paper.  This is called a da zhen ping zheng.  This is important, don&#8217;t lose it!</p>
<p>If your dog has never been licenced before, you will also need to get an id implanted too.<br />
This is a small rfid tag that gets injected somewhere around the neck area.  </p>
<p>This will also cost somewhere in the less than 100rmb range.<br />
You&#8217;ll also get a piece of paper for that, again, don&#8217;t lose it.</p>
<p>If you don&#8217;t have the magic piece of paper, have the vet make another one for you.  China runs on small bits of paper that are easily lost, so make sure that you have anything you possibly may need in a folder.  </p>
<p>Lastly, don&#8217;t forget to get an official fapiao for the above, and keep that together with everything else.</p>
<h3>The Joy of Paperwork! (at your local neighborhood police station)</h3>
<p><strong>Bring</strong><br />
The rental contract for where you live (or a property ownership book if you own your apartment).<br />
Your Passport (with your work permit / residence permit inside).<br />
The 2 or 3 papers from the vet that you got in step 1.<br />
Your dog.<br />
More money (500rmb)</p>
<p>In Chinese that looks like this &#8211; 带上狗证，房产证，护照去徐汇区湖南派出所登记<br />
Take all of the above to your local police station.<br />
(Not all do licenses, but they&#8217;ll be able to point you to which one in your district is responsible for doing dog licenses)</p>
<p>In Xu Hui district this is on Xiang Yang Lu, near Fuxing road (opposite the fake electronics mall)</p>
<p>     电话：23037446<br />
     办公时间：8：30am－5：00pm<br />
     地址：襄阳南路203号靠近复兴中路( Xiangyang Nanlu 203#(Near fuxingzhonglu)</p>
<p>Give them all the paperwork you have so far, and 500RMB.<br />
They should give you another slip of paper with a receipt, and a date to come back.<br />
<strong>OR</strong>  they&#8217;ll do it all there and then.<br />
This depends on your districts setup.  </p>
<h3>Success!</h3>
<p>Whichever of the above, at some point you&#8217;ll collect a pack of goodies!</p>
<p>This will include a dated sticker (this should be stuck on your door)<br />
A Dog licence photo id card (this should be carried whenever you walk your dog).<br />
A dog tag (which you should put on your dogs collar).<br />
Plus some other assorted bits and pieces depending on which dog food company is sponsoring the gifts (last year was a bowl and some dog food).</p>
<p>I usually make copies of everything, and put into that file I told you to make in step one, and throw it into a safe place.</p>
<p>Currently you don&#8217;t need to bring photo&#8217;s, but from the 15th of June 2011, you&#8217;ll need to bring photos.<br />
One side view, and one front view of your dog, in passport photo sized (1&#215;3&#8243;) shots.<br />
This was immense fun last time I tried to do this, as my dog doesn&#8217;t want to sit still for photo&#8217;s, and it took a while to get that done.</p>
<p>At time of writing this is all currently correct, but rules change (eg the we&#8217;re not sure about the photo&#8217;s thing yet), so have a chinese person call, and confirm first.  Make sure that they ask for a clear answer that you understand, as its not unknown for people in China to forget to tell you about some essential item you need to bring, so ask clearly for what exactly is needed, and have them repeat it out to you.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2011/05/dog-licensing-rules-for-shanghai-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hardware Hacker (Arduino, Robotics&#8230;) lab in Shanghai</title>
		<link>http://www.computersolutions.cn/blog/2011/01/hardware-hacker-arduino-robotics-lab-in-shanghai/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hardware-hacker-arduino-robotics-lab-in-shanghai</link>
		<comments>http://www.computersolutions.cn/blog/2011/01/hardware-hacker-arduino-robotics-lab-in-shanghai/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 18:36:11 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[Cool Hunting]]></category>
		<category><![CDATA[bus pirate]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[seeed]]></category>
		<category><![CDATA[shanghai]]></category>
		<category><![CDATA[xinchejian]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=658</guid>
		<description><![CDATA[As I&#8217;ve been doing a bit more hardware stuff recently, I thought I&#8217;d get some more tools. Yes, Taobao is wonderful I already have a scope &#8211; the eminently hackable Rigol DS1052e 50mhz (now running at 100mhz cough). I already have a bench PSU. I also have a JTAG device (although its a chinese clone, [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve been doing a bit more hardware stuff recently, I thought I&#8217;d get some more tools.</p>
<p>Yes, Taobao is wonderful <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I already have a scope &#8211; the eminently hackable Rigol DS1052e 50mhz (now running at 100mhz cough).<br />
I already have a bench PSU.<br />
I also have a JTAG device (although its a chinese clone, but hey, it works).<br />
&#8230; and I also have a whole bunch of ttl -> rs232 adaptors (as they fry when you&#8217;re not careful).<br />
I also have a 3d printer <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I also have a few Arduino bits and bobs, as well as some much more capable ARM dev kits (which I prefer).</p>
<p>What more could I want?</p>
<p>Well, a bus-pirate &#8211; but Seeeeeeeeeeed studio still haven&#8217;t gotten their sh*t together, and I can&#8217;t seem to order from them.<br />
Grumble.  Tried again today, but my credit card is rejected as usual.  Works on every other site, but theirs..<br />
Still, whilst checking out Seeed Studio&#8217;s blog I noted that they mentioned Shanghai (finally!).</p>
<p>Apparently, there&#8217;s a hardware hacker dev lab *right* by where I used to live.<br />
They&#8217;re up on 50 Yong Jia Lu  / website is &#8211; <a href="http://xinchejian.com/">http://xinchejian.com/</a>.<br />
I still can&#8217;t believe I hadn&#8217;t heard about them.  </p>
<p>Also slightly annoyed that I missed the last few open days they had.  </p>
<p>Going to have to go visit after CNY, and make some friends there <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Lawrence.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2011/01/hardware-hacker-arduino-robotics-lab-in-shanghai/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Apple Store Opening in Shanghai</title>
		<link>http://www.computersolutions.cn/blog/2010/07/apple-store-opening-in-shanghai/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apple-store-opening-in-shanghai</link>
		<comments>http://www.computersolutions.cn/blog/2010/07/apple-store-opening-in-shanghai/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 11:03:35 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[China Related]]></category>
		<category><![CDATA[ifc]]></category>
		<category><![CDATA[pudong]]></category>
		<category><![CDATA[store opening]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=572</guid>
		<description><![CDATA[Although I was supposed to be on a plane today heading home, I did something silly and got the dates wrong. So, after a nice scenic trip yesterday evening to the airport and back, I get to do it all over again tonight. Although that was a total pain, I did get to spend another [...]]]></description>
			<content:encoded><![CDATA[<p>Although I was supposed to be on a plane today heading home, I did something silly and got the dates wrong.<br />
So, after a nice scenic trip yesterday evening to the airport and back, I get to do it all over again tonight.<br />
Although that was a total pain, I did get to spend another day in Shanghai, and luckily enough, it coincided with the new Apple Store opening in the IFC center over in Pudong.</p>
<p>Overall impression &#8211; this is good!<br />
I spoke with a number of the staff, and talked about the usual issues here (service, service, service&#8230;), and they were all quite understanding, and Apple&#8217;s genuinely trying to improve on things &#8211; hence their own store, and support in Shanghai (finally).</p>
<p>Shanghai has the biggest Genius bar in the world now.  Unfortunately the store is a bit lacking compared to others in Shanghai &#8211; no iPad, no iPhone (other than the official one), but they do carry software and iMac&#8217;s / Laptops in lots of configurations.<br />
I know where my next iMac is coming from <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Downsides of the store &#8211; the moat outside is going to claim lots of victims.  Its so subtle that you miss is &#8211; who&#8217;s idea was that?<br />
We already saw unhappy victims with wet feet while we were leaving.  I expect that to be changed in the near future, or the store will have to provide a shoe drying facility!</p>
<p>I also had the only iPad in the store (and possibly China at that point) that could play flash.   Ok, there were only 2 iPad&#8217;s in the store, but still.. <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Photo&#8217;s of the store on flickr, which I would upload, but China is being finicky again. Grrr<br />
Should be on the sidebar though.  </p>
<p><a href="http://www.flickr.com/photos/sheedl/sets/72157624448891934/">http://www.flickr.com/photos/sheedl/sets/72157624448891934/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2010/07/apple-store-opening-in-shanghai/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>When DNS goes bad &#8211; China&#8217;s Firewall goes global.. crossing.</title>
		<link>http://www.computersolutions.cn/blog/2010/03/when-dns-goes-bad-chinas-firewall-goes-global-crossing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=when-dns-goes-bad-chinas-firewall-goes-global-crossing</link>
		<comments>http://www.computersolutions.cn/blog/2010/03/when-dns-goes-bad-chinas-firewall-goes-global-crossing/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 20:22:54 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[Technical Mumbo Jumbo]]></category>
		<category><![CDATA[anycast]]></category>
		<category><![CDATA[AS]]></category>
		<category><![CDATA[autonomica]]></category>
		<category><![CDATA[BGP]]></category>
		<category><![CDATA[china]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[global crossing]]></category>
		<category><![CDATA[netnod]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[root servers]]></category>
		<category><![CDATA[tld]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=416</guid>
		<description><![CDATA[When DNS goes bad This year someone in China misconfigured something which effectively exported China&#8217;s main method of implementing blocks (man in the middle DNS spoofing) semi globally over the Global Crossing backbone for the last few weeks. Effectively, China&#8217;s blocking, went global (for certain providers). This is a little technical, so bear with me [...]]]></description>
			<content:encoded><![CDATA[<p><strong>When DNS goes bad</strong></p>
<p>This year someone in China misconfigured something which effectively exported China&#8217;s main method of implementing blocks (man in the middle DNS spoofing) semi globally over the Global Crossing backbone for the last few weeks.</p>
<p>Effectively, China&#8217;s blocking, went global (for certain providers).</p>
<p><span id="more-416"></span></p>
<p>This is a little technical, so bear with me while I try to put in into laymans terms!</p>
<p>When you ask for www.somesite.com, a query is sent to your ISP&#8217;s DNS servers asking for the i.p. address.  If those DNS servers don&#8217;t know, they in turn who then ask their upstream DNS servers (if they exist) and so on, until one of them will then ask the root servers who is responsible for that domain.<br />
These root level servers are based geographically, and are the arbiters of whether a domain is resolvable or not.<br />
If they don&#8217;t know about a domain, then essentially that domain doesn&#8217;t exist, as they are the servers that other servers rely on.<br />
If for instance a root level server suddenly decided it didn&#8217;t know who it should send CN names to, then that entire section of the net would be unresolvable for anyone who used those root servers.</p>
<p>This has actually happened at least once already; Swedish .se domains dropped off the internet completely for a few hours to a day (dependent on caching) due to a misplaced full stop in October 2009.</p>
<p>This is not what was happened with this instance, but hey, its the _same_ company (different division) again with another DNS issue.</p>
<p>I&#8217;ll start with the infrastructure -</p>
<p>Swedish company NetNod (aka Autonomica)  has a DNS root server* here in China  &#8211; I.ROOT-SERVERS.NET / 192.36.148.17</p>
<p>*Server in this case actually refers to many servers providing a DNS service as i.root-servers.net<br />
i.root-servers.net servers are geographically located all over Asia (and other places).</p>
<p>(See below for a map)</p>
<p><a href="http://www.computersolutions.cn/blog/wp-content/uploads/2010/03/rootserver.gif"><img class="alignnone size-full wp-image-417" title="rootserver" src="http://www.computersolutions.cn/blog/wp-content/uploads/2010/03/rootserver.gif" alt="" width="600" height="482" /></a></p>
<p>A root server as stated, is almost the final arbiter of any DNS lookup.  It knows which servers service top level domains (TLD&#8217;s). So its the one that gets to tell your DNS server where .com, .net,  .cn, .hk, queries should be sent to.<br />
All these root servers also provide caching, so if (as is probable), someone else asks for that domain again, it knows how to answer.</p>
<p>Netnod, like other companies that provide root level servers, use a mechanism called anycast to deliver users to the best destination server for the DNS query.</p>
<p>[ From Wikipedia - In anycast, there is a one-to-many association between network addresses and network endpoints: each destination address identifies a set of receiver endpoints, but only one of them is chosen at any given time to receive information from any given sender. ]</p>
<p>Anycast operates over BGP to delegate best routing to a destination based on AS  (automated system) rules.<br />
Anycast by design, is inherently insecure,  as anyone at the right stage of the chain can intercept packets for the anycast address.  This is really able to be done by routers at the BGP level of routing, so AS owners rely on each other not to mess around.<br />
Essentially, if you are trusted enough to have an AS, you are trusted enough not to screw up.</p>
<p>[ From Wikipedia - On the Internet, anycast is usually implemented by using BGP to simultaneously announce the same destination IP address range from many different places on the Internet. This results in packets addressed to destination addresses in this range being routed to the "nearest" point on the net announcing the given destination IP address.</p>
<p>AS - An autonomous system (AS) is a collection of connected IP routing prefixes under the control of one or more network operator that presents a common, clearly defined routing policy to the Internet (cf. RFC 1930, Section 3.]</p>
<p>Ok, so now you have a pseudo glossed over idea about BGP, AS, and Anycast, I can continue <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Computers in other countries (mostly on Global Crossing networks, as noted above) were starting to get spurious DNS results.</p>
<p>If you remember above, the NetNod root server based in China, uses AnyCast via BGP to talk to things asking about DNS.  If we look at the BGP routing for the  I.ROOT-SERVERS.NET, we can get an idea of how things are laid out from a network perspective</p>
<p>I.ROOT-SERVERS.NET sits in AS29216<br />
Robtex (which is unfortunately blocked in China), shows the connectivity for that block here -<br />
<a href="http://www.robtex.com/as/as29216.html#graph">http://www.robtex.com/as/as29216.html#graph</a></p>
<p>AS29216 apparently only links to AS8674 (NETNOD-IX).<br />
That AS block talks to quite a few others, including one named AS24151.<br />
AS24151 is controlled by CNNIC.</p>
<p>CNNIC is a China government run .cn domain management organization*<br />
<em>(*In practice. They may or may not be government owned in what passes for &#8220;reality&#8221; here).</em></p>
<p>What happened (allegedly, as I haven&#8217;t read up completely about this on the dns-operations list), is that another DNS server upstream of AS8674 (most probably on AS2151) came along and said hey!  I&#8217;m a root level server.</p>
<p>This &#8220;rogue&#8221; root server sat in the anycast block in use by I.ROOT-SERVERS.NET, and advertised themselves as a root node, randomly intercepting traffic (as by design this is supposed to happen in Anycast).  This shouldn&#8217;t happen, but as AS2151 is trusted by the other AS&#8217;s they accepted its announcement about having a root node server, and the other nodes started caching its queries.</p>
<p>This started causing all sorts of sporadic mischief, as other servers started caching those &#8220;bad&#8221; (China firewalled) results from the I.ROOT-SERVERS.NET rogue server.</p>
<p>Normally this would be a regional issue, but as BGP is not best distance based, but AS based, other AS&#8217;s close (from a network perspective)  that also use Anycast via BGP would take answers from that node for queries too.</p>
<p>This &#8220;rogue&#8221; root node was configured to do its DNS in standard China Firewall style, and null route/  block servers &#8211; eg Youtube, Facebook, Twitter…</p>
<p>As it was responding to DNS queries via Anycast in the Root level server AS, other secondary DNS servers and upward were querying it, caching the bad responses, and then null routing those major US based internet services within their own regions.</p>
<p>This started happening intermittently over Global Crossing nodes until the problem was spotted and resolved.</p>
<p>Users locations as far away as California, Chile, and China (although admittedly here its broken by design) were getting DNS results &#8220;China style&#8221;.</p>
<p>Lots of finger pointing went on until the people running NetNod/Autonomica eventually twigged that this was happening, and stopped accepting BGP / Anycast routes from AS2151 at AS29216, which meant that things would get back to normal after caching expired.</p>
<p>Its quite possible this was just a screwup on someones part here within CNNIC, but the tin foil hat wearing brigade may think otherwise.  Personally I put this down to either testing purposes, or user error.  Understanding the intricacies of implementation and its implications is harder than it first appears, and its easy to screw up.  That said, it did take a lot of coincidence for this to happen like that, and acting like a root server would put a noticeable amount of additional load on the server(s) doing the replies, so it would be noticed as least on that level.</p>
<p>This isn&#8217;t the first time this *exact* issue has happened on a global scale either. Network operators in Pakistan did a similar thing in 2008 which affected Youtube globally, with users getting similar bad routing as far away as UK.</p>
<p>What does this mean for the future?</p>
<p>Trust is a delicate issue, and it looks like people will eventually no longer implicitly trust upstream or downstream providers on BGP to do the right thing.</p>
<p>Ironically Autonomica / NetNod are some of the people involved with making sure this kind of thing *doesn&#8217;t* happen again!</p>
<p>Autonomica are involved quite heavily in something called DNSSEC.</p>
<p>DNS queries don&#8217;t mandate security, so a query can be resolved by a server in the right place, at the wrong time (as seen above).  With DNSSEC, the queried server will be the one that answers you using a signed key, so any rogue server in place should not be able to work as it doesn&#8217;t have the correct credentials.  It also means that a rogue server would be more easily spotted as the keys can be readily identified for a given server.</p>
<p>DNSSEC is in the process of being rolled out, and it looks like things like this will only mandate the rollout goes faster.</p>
<p>Unsuprisingly China is not quite convinced this is a solution, mostly I suspect, as this will break their DNS firewalling methods..</p>
<p>DNSSec rollout map, and a rather excellent talk about this and other DNS issues by Paul Wouter is here:</p>
<p><a href="http://www.xelerance.com/dnssec/">http://www.xelerance.com/dnssec/</a></p>
<p><a href="http://www.xelerance.com/talks/sector/Sector2007DNSSEC.pdf">http://www.xelerance.com/talks/sector/Sector2007DNSSEC.pdf</a></p>
<p>China is also not without its own DNS issues (other than the deliberately implemented ones) as anyone who lives here has experienced.</p>
<p>Last year May saw most of China&#8217;s DNS completely collapse for a day as provider DNSPOD was subject to an inadvertent DoS attack via queries against Baofeng.com. Good PDF on that here by China Telecom Guangzhou staff Ziqian Liu &#8211; <a href="https://www.dns-oarc.net/files/workshop-200911/Ziqian_Liu.pdf">https://www.dns-oarc.net/files/workshop-200911/Ziqian_Liu.pdf</a></p>
<hr width=400>
<p>Further reading and research materials below:</p>
<p><a href="http://www.sciencedirect.com/science?_ob=ArticleURL&amp;_udi=B6VNT-4S807WG-G&amp;_user=10&amp;_coverDate=04%2F30%2F2008&amp;_rdoc=1&amp;_fmt=high&amp;_orig=browse&amp;_sort=d&amp;view=c&amp;_acct=C000050221&amp;_version=1&amp;_urlVersion=0&amp;_userid=10&amp;md5=ccc0471388f3fb33fcecdd3409f4f9cc">http://www.sciencedirect.com/science?_ob=ArticleURL&amp;_udi=B6VNT-4S807WG-G&amp;_user=10&amp;_coverDate=04%2F30%2F2008&amp;_rdoc=1&amp;_fmt=high&amp;_orig=browse&amp;_sort=d&amp;view=c&amp;_acct=C000050221&amp;_version=1&amp;_urlVersion=0&amp;_userid=10&amp;md5=ccc0471388f3fb33fcecdd3409f4f9cc</a> Pakistan DNS security weakness</p>
<p><a href="http://en.wikipedia.org/wiki/DNSSEC">http://en.wikipedia.org/wiki/DNSSEC</a> DNS Security</p>
<p><a href="http://royal.pingdom.com/2009/10/13/sweden%25E2%2580%2599s-internet-broken-by-dns-mistake/">http://royal.pingdom.com/2009/10/13/sweden%25E2%2580%2599s-internet-broken-by-dns-mistake/</a> Sweden disappears from the net</p>
<p><a href="http://www.netnod.se/dns_root_nameserver.shtml">http://www.netnod.se/dns_root_nameserver.shtml</a> &#8211; NetNod&#8217;s website</p>
<p><a href="http://www.isoc.org/briefings/020/">http://www.isoc.org/briefings/020/</a> &#8211; DNS Root server FAQ&#8217;s</p>
<p><a href="http://blogs.csoonline.com/1179/chile_nic_explains_great_firewall_incident">http://blogs.csoonline.com/1179/chile_nic_explains_great_firewall_incident</a></p>
<p><a href="https://lists.dns-oarc.net/pipermail/dns-operations/2010-March/005267.html">https://lists.dns-oarc.net/pipermail/dns-operations/2010-March/005267.html</a> &#8211; DNS issue list where this was noted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2010/03/when-dns-goes-bad-chinas-firewall-goes-global-crossing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dell Mini 3i / OPhone Hacking thoughts / notes</title>
		<link>http://www.computersolutions.cn/blog/2010/03/dell-mini-3i-ophone-hacking-thoughts-notes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dell-mini-3i-ophone-hacking-thoughts-notes</link>
		<comments>http://www.computersolutions.cn/blog/2010/03/dell-mini-3i-ophone-hacking-thoughts-notes/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 20:48:16 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[Technical Mumbo Jumbo]]></category>
		<category><![CDATA[dell mini3i]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[mini3i]]></category>
		<category><![CDATA[ophone]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=370</guid>
		<description><![CDATA[Currently I have an iPhone (ancient 2G), and have just bought a Dell Mini3i (600RMB with an 18month contract @ China Telecom), as I donated my 3G iPhone to one of the extended family back home. The Mini3i runs an Android variant called OPhone. The 3i is a little underwhelming software wise. Its quite crap [...]]]></description>
			<content:encoded><![CDATA[<p>Currently I have an iPhone (ancient 2G), and have just bought a Dell Mini3i (600RMB with an 18month contract @ China Telecom), as I donated my 3G iPhone to one of the extended family back home.</p>
<p>The Mini3i runs an Android variant called OPhone.</p>
<p>The 3i is a little underwhelming software wise.</p>
<p>Its quite crap at the moment as its sitting on Android 1.0 (OPhone 1.0), but for all intents and purposes Android = Ophone its pretty much the same underneath.</p>
<p>There are a bunch of similar phones to this &#8211; the Lenovo O1, LG GW880, Motorola something or other (can&#8217;t be hassled to go look) etc.</p>
<p>While I haven&#8217;t rooted mine just yet, I have been playing around, and reading the Chinese forums.</p>
<p>Boot loader appears to be similar on all the devices &#8211; its made by BORQ&#8217;s in Beijing, and appears to be quite basic.</p>
<p>Motorola and O1 seem to have the best support for now, the main problem in the Chinese forums is people bitching about being stuck on older versions.</p>
<p>Some are running 1.6, most on 1.5, and the unlucky few 1.0 &#8220;Ophone&#8221;<br />
2.0 and 2.1 has yet to hit the mainstream here.</p>
<p>There are people with N1/G5&#8242;s (Nexus 1 / HTC G5) on 2.1 though (yes, thats you in Beijing Tom!), pretty much any phone is available, although anything with wifi is essentially grey import from overseas (HK mostly)</p>
<p>Back to the phone -</p>
<p>Thankfully you can install any apps as apk&#8217;s, no need to hack for that  &#8211; so its fairly easy to get info on the innards.</p>
<p>RootExplorer is your friend <img src='http://www.computersolutions.cn/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>RootExplorer also allows you to remount partitions r/w, so root access is fairly easy too.  There are precompiled su binaries for 1.5 out there, although I&#8217;ve yet to do my phone.</p>
<p>The Dell mini3 is running on a Marvell Tabor.  Fast chip, nice touchscreen, decent resolution, just crap on 1.0.  </p>
<p>Firmware files for most of the &#8220;ophones&#8221; (except motorola) are mff files.</p>
<p>The mff files appear to just be compressed images with instructions for how to write the various partitions out.</p>
<p>eg the Lenovo O1 mff has this in the &#8220;mff&#8221; zip </p>
<p>2010/02/25  10:53       147,111,936 factory_CHERRY.fbf<br />
2010/02/25  10:53               249 factory_CHERRY.mff.mlt<br />
2010/02/25  10:53               364 JADE_EVB_RawNANDx16.ini<br />
2010/02/25  10:53               327 magic_fbf.ini<br />
2010/02/25  10:53             2,692 magic_fbf_inner.ini<br />
2010/02/25  10:53        10,236,719 mfw.pac<br />
2010/02/25  10:53            54,180 MHLV_NTDKB_h.bin<br />
2010/02/25  10:53               176 MHLV_NTDKB_TIM.bin<br />
2010/02/25  10:53               858 NTIM_td.ini</p>
<p>magic_fbf_inner.ini has the layout</p>
<p>[INTEL_FLASH_DEVICE_INPUT_FILE]<br />
Number_of_Images=24</p>
<p>[IMAGE_HEADER_0]<br />
Start_Address=0&#215;240000<br />
Image_Length=0&#215;40000<br />
EraseBlocks=1<br />
WriteImage=0<br />
VerifyWrite=0</p>
<p>[IMAGE_HEADER_1]<br />
Start_Address=0&#215;6900000<br />
Image_Length=0xf00000<br />
EraseBlocks=1<br />
WriteImage=0<br />
VerifyWrite=0</p>
<p>(etc)</p>
<p>Different phones have different firmware writing software, the Motorola&#8217;s are using RSDLite, LG &#8211; SML_OMS, CTHall, others something homegrown called Firebolt, which is written by BORQS.  I have all the firmware tools already, despite the Ophone8 forums lack of courtesy in sharing, grrr.</p>
<p>Most firmware tools appear similar though functionality wise.<br />
Haven&#8217;t played around inside the phone yet to see if its easy to get jtag access, although that was mostly because i couldn&#8217;t work out how to remove the top part without breaking it.</p>
<p>If anyone wants more info, or a firmware dump let me know.</p>
<p>Hopefully there is some interest out there in the English speaking world for these!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2010/03/dell-mini-3i-ophone-hacking-thoughts-notes/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Difference between China and the UAE in Blocking</title>
		<link>http://www.computersolutions.cn/blog/2010/02/difference-between-china-and-the-uae-in-blocking/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=difference-between-china-and-the-uae-in-blocking</link>
		<comments>http://www.computersolutions.cn/blog/2010/02/difference-between-china-and-the-uae-in-blocking/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 03:22:16 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[Things that will get me censored]]></category>
		<category><![CDATA[censorship]]></category>
		<category><![CDATA[china]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[secrecy]]></category>
		<category><![CDATA[transparency]]></category>
		<category><![CDATA[uae]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=346</guid>
		<description><![CDATA[As I&#8217;m currently in the airport, waiting for a flight back to the UAE, I thought I&#8217;d share this small snippet of transparency vs secrecy. As most China users will know, there is no official agency that &#8220;blocks&#8221; websites. In fact, most of the time, the government states that sites are not blocked, despite fairly [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;m currently in the airport, waiting for a flight back to the UAE, I thought I&#8217;d share this small snippet of transparency vs secrecy.</p>
<p>As most China users will know, there is no official agency that &#8220;blocks&#8221; websites.  In fact, most of the time, the government states that sites are not blocked, despite fairly obvious proof to the contrary.</p>
<p>China typically asserts that &#8220;connection resets&#8221; to sites like Facebook and Youtube are just network issues, despite those network issues solely appearing at the ip addresses associated with the government firewalls at the gateway routers to overseas.</p>
<p>Here in the UAE (Dubai), the government still blocks, but at least they&#8217;re upfront about it:<br />
See below for an example of a blocked site</p>
<p><img src="http://www.computersolutions.cn/blog/wp-content/uploads/2010/02/uae-content-block.jpg" alt="" title="uae content block" width="625" height="437" class="aligncenter size-full wp-image-347" /></p>
<p>Why is this important?</p>
<p>Transparency is a big problem for western entities doing business in China.  As with the recent Google PR stunt/debacle, most companies have no real mechanism for dealing with arbitrary judgements for / against things that affect their business.</p>
<p>A clear and transparent mechanism for dealing with why sites are blocked, coupled with a delisting mechanism would be a good place to start.  It would also help to defuse the detractors against censorship &#8211; although most countries censor,  China is one of the usual scapegoats picked on.</p>
<p>Maybe if China implemented a what (was blocked) / why (it was blocked) / how (to get unblocked) system, detractors would have less to complain about.</p>
<p>Lawrence.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2010/02/difference-between-china-and-the-uae-in-blocking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electric [Bike/Bicycle/Moped/Scooter] Licence Laws in Shanghai + China</title>
		<link>http://www.computersolutions.cn/blog/2009/10/electric-bikebicyclemopedscooter-licence-laws-in-shanghai-china/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=electric-bikebicyclemopedscooter-licence-laws-in-shanghai-china</link>
		<comments>http://www.computersolutions.cn/blog/2009/10/electric-bikebicyclemopedscooter-licence-laws-in-shanghai-china/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 06:10:28 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[China Related]]></category>
		<category><![CDATA[Useful Info]]></category>
		<category><![CDATA[electric bike]]></category>
		<category><![CDATA[electric moped]]></category>
		<category><![CDATA[electric scooter]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[licence]]></category>
		<category><![CDATA[shanghai]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=276</guid>
		<description><![CDATA[One of the (not so) fun things about China is that almost everything needs to be licenced. As part of the China bureaucracy plan, all forms of wheeled transport in Shanghai require a licence (yes, even bicycles!). Riding motorized transport without one is not recommended, as this can lead to fines, deportation, and jail in [...]]]></description>
			<content:encoded><![CDATA[<p>One of the (not so) fun things about China is that almost everything needs to be licenced.<br />
As part of the China bureaucracy plan, all forms of wheeled transport in Shanghai require a licence (yes, even bicycles!).</p>
<p>Riding motorized transport without one is not recommended, as this can lead to fines, deportation, and jail in worst case scenario&#8217;s.<br />
This has been documented enough times by those unfortunate enough to knowingly break the law.</p>
<p>Electric Bikes/ Scooters are not exempt from requiring a licence, despite what the nice man at the shop selling you the bike, or others might say.</p>
<p>To be street legal in Shanghai, you need a plate.</p>
<p>1) Only bikes purchased in Shanghai can get a Shanghai plate.<br />
Keep your official receipt (fapiao) when you buy the bike, as it needs to be used to get your licence.</p>
<p>2) As of a law passed in April 2008, Shanghai Electric bikes have to be:</p>
<p>* Under 40kg.<br />
* Not capable of speeds faster than 20km/hr.<br />
Effectively this means only bikes < 36v.<br />
* Listed in the allowed vehicle database for Shanghai.<br />
Legal bikes have a 15 digit unicode (like a car VIN) which is unique. Manufacturers have to apply for a production licence for this, and not all have done so.</p>
<p>A list of licenced manufacturers is available here:<br />
<a href="http://www.shbicycle.com/Article/ShowArticle.asp?ArticleID=6230">http://www.shbicycle.com/Article/ShowArticle.asp?ArticleID=6230</a></p>
<p>If you own a bike that is older than that date that does not conform to the above, and you had a legal licence at that time, then it can be renewed each year, and its still legal.</p>
<p>3) To licence an electric bike/scooter/moped you need to visit the police station for your district.</p>
<p>You will need to bring:</p>
<p>* &#8211; The fapiao for the bike<br />
* &#8211; Valid form of ID (Passport for foreigners)<br />
* &#8211; The bike<br />
* &#8211; Money to pay for the licence (11rmb currently)</p>
<p>&#8212;&#8211;</p>
<p>FAQ&#8217;s:</p>
<p><strong>Can I use a legal plate from another province?</strong><br />
eg Jiangsu&#8230;<br />
Possibly No, with some caveats -<br />
It is not legal to ride with an out of town plate unless it is a weekend, or public holiday. You can be fined 200RMB if caught riding outside of these times, although this is unlikely. This is a grey area though, so police attitude to this may vary/change. While having a plate is better than not having a plate, it may not help if you have an accident.</p>
<p><strong>Can I carry a passenger?</strong><br />
According to the law, no.</p>
<p><strong>Is is illegal to drive without a plate?</strong><br />
Yes. Being a foreigner does not exclude you from following the law.</p>
<p><strong>Do I need a driving licence for an electric bike/moped/scooter?</strong><br />
No.</p>
<p><strong>Is there an official list of legal bikes?</strong><br />
There are 2 official sites where you can check if a bike is legal &#8211; <a href="http://www.shbicycle.com">http://www.shbicycle.com</a> and <a href="http:/www.shjtaq.com">http:/www.shjtaq.com</a></p>
<p>A current list of legal bikes with photo&#8217;s is here:<br />
<a href="http://www.shbicycle.com/Photo/ShowClass.asp?ClassID=84">http://www.shbicycle.com/Photo/ShowClass.asp?ClassID=84</a></p>
<p>You will need Chinese reading abilities to read either site.</p>
<p>Instructions below for non illiterate:</p>
<p>市民在购买电动自行车时，可以通过上海市自行车行业协会网站上（<a href="HTTP://WWW.SHBICYCLE.COM">HTTP://WWW.SHBICYCLE.COM</a>），或上海交通安全信息网（网址： <a href="HTTP://WWW.SHJTAQ.COM">HTTP://WWW.SHJTAQ.COM</a>，点击首页右上方的 “车/牌/证公告”栏目中的“上海电动自行车—上牌备案登记表”）查询该目录。</p>
<p><strong>Are the cool Vespa lookalikes legal?</strong><br />
No.<br />
The Vespa lookalikes / Spicy Motors bikes are not street legal for various reasons &#8211; weight, voltage, speed (unless you have a 2008 model licenced prior to 8/2008).<br />
Additionally, they are not listed in the police database of allowed models. </p>
<p><strong>&#8230;but XXX / Bike shop / my friend etc says its legal?</strong><br />
In short: They&#8217;re lying.</p>
<p>Caveats:<br />
If you are in living a city other than Shanghai this may be ok.<br />
Different cities, different rules.<br />
If the bike is 2nd hand, and has an existing legal Shanghai licence, and it has been renewed each year, then it is also ok (albeit extremely unlikely).<br />
Otherwise, see the short answer.</p>
<p><strong>What about repair / warranty?</strong><br />
By Law, bikes have a &#8220;三包&#8221; (threefold warranty).</p>
<p>If you have issues within 7 days the seller is legally obligated to give your money back if you so wish.<br />
Within 2 weeks, you are guaranteed a replacement bike.<br />
Within 1 year, if you have more than 2 of the same type of failure, they have to replace, or you can get your money back less depreciation.<br />
Consumables such as lights are not covered by this, nor are collisions..</p>
<p>Parts have the following warranties (by law):<br />
Motor: 2 years<br />
Frame, Fork, Charger, Controller, Battery: 1 year</p>
<p>*For batteries, failure is deemed as holding < 60% of original charge.</p>
<p>More details here:<br />
<a href="http://www.shbicycle.com/news/ShowArticle.asp?ArticleID=43">http://www.shbicycle.com/news/ShowArticle.asp?ArticleID=43</a></p>
<p>Note that it is while it is illegal for shops to sell bikes that cannot be licensed, many still do.</p>
<p><strong>Where can I licence my electric [bike/scooter/moped]?</strong></p>
<p>Addresses for each district:</p>
<p><strong>Bao Shan</strong><br />
宝山区 凇兴西路长征新村23号 56672872</p>
<p><strong>Chang Ning District:</strong><br />
长宁区<br />
天山路11弄12号<br />
62747031</p>
<p>No 12, Lane 11, Tian Shan Lu</p>
<p><strong>Hong Kou:</strong><br />
上海市丰镇路118号/上海市水电路1656号<br />
上午8：30—11：30；下午13：30—17：00 周五下午不<br />
受理 65161561</p>
<p>Feng Zhen lu / 1656 Shui Dian Lu<br />
Closed Friday morning.</p>
<p><strong>Huang Pu District:</strong><br />
黄浦区<br />
山东南路49号<br />
63289464</p>
<p>49 South Shan Dong rd</p>
<p><strong>Jing An</strong><br />
静安区<br />
昌平路372号<br />
62539361</p>
<p>372 Chang Ping road (off Shaanxi road)</p>
<p><strong>Lu Wan District:</strong><br />
思南路、香山路 交界拐角处－－卢湾区非机动车管理处<br />
卢湾区 思南路46号 63275000<br />
46 Si Nan lu / Xiang Shan lu</p>
<p><strong>Min Hang District:</strong><br />
上海市沪闵路4888号（莘庄镇靠近颛桥）<br />
上午8：00—11：00；下午13：00—16：30<br />
6489 1010-3015</p>
<p>4888 Hu Min lu</p>
<p><strong>Nan Hui District:</strong><br />
南汇非机动车管理所：</p>
<p>上海市南汇川南奉公路6116号<br />
上午8：30—11：30；下午13：00—17：00<br />
电话58021896</p>
<p><strong>Nan Shi District (Southern parts of City?):</strong><br />
南市区 中山南一路161弄5号 63138859</p>
<p><strong>Pu Dong District:</strong><br />
浦东非机动车管理所：<br />
上海市浦东新区杨高中路1500号上午：9：00—11：30；下午13：30—16：30 周五下午不受理电话28946594<br />
or<br />
浦东新区 浦东南路3640号 58394097</p>
<p>1500 Yang Gao Middle Road<br />
or<br />
3640 Pudong South Road</p>
<p><strong>Putuo District:</strong><br />
普陀区<br />
芦定路325号 52811677</p>
<p><strong>Xu Hui District:</strong><br />
龙吴路2388号，徐浦大桥下面<br />
2388/2138 Long Wu Lu, underneath Xu Pu bridge</p>
<p>徐汇区 龙吴路2138号（徐浦大桥） 64340579</p>
<p><strong>Yang Pu District:</strong><br />
杨浦区<br />
双阳路357号<br />
65433020</p>
<p><strong>Zhabei:</strong><br />
闸北非机所<br />
上海市天目中路707号<br />
上午8：30—11：30；下午13：30—17：00 周五下午不<br />
受理 63172110</p>
<p>Also 闸北区 共和新路1985号 56650065</p>
<p>707 Tian Mu Middle Road</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2009/10/electric-bikebicyclemopedscooter-licence-laws-in-shanghai-china/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

