<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2enclosuresfull.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/1.5.1.2" --><rss 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:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Ben Crox on Blog</title>
	<link>http://blog.bencrox.info</link>
	<description>neuron on neurons</description>
	<pubDate>Tue, 19 Aug 2008 09:26:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>
	<language>en</language>

		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/BenCroxOnBlog" type="application/rss+xml" /><feedburner:browserFriendly>Hello fellow, this is a XML feed from blog.bencrox.info. You may read this if you can read Unicode (UTF-8) with Trad - Chinese Character. Good Luck!</feedburner:browserFriendly><item>
		<title>dot-HK crisis</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/368893070/</link>
		<comments>http://blog.bencrox.info/2008/08/19/dot-hk-crisis/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 09:26:35 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>Read News</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/08/19/dot-hk-crisis/</guid>
		<description><![CDATA[	Friends just point me to read David Webb&#8217;s Post on HKIRC governance dispute, which I strongly recommend to all dot-hk domain owners, all HK bloggers / entities who had thought about owning one dot-hk domain. 
	In short, our government has never been efficient, never after the handover. It CANNOT BE TRUSTED to protect freedom of [...]]]></description>
			<content:encoded><![CDATA[	<p>Friends just point me to read <a href="http://www.webb-site.com/aboutus.htm#bio">David Webb&#8217;s</a> Post on <a href="http://www.webb-site.com/articles/hkirc.htm">HKIRC governance dispute</a>, which I strongly recommend to all dot-hk domain owners, all HK bloggers / entities who had thought about owning one dot-hk domain. </p>
	<p>In short, our government has never been efficient, never after the handover. It CANNOT BE TRUSTED to protect freedom of speech. It blocks foreigners for naive political concern. It dreams to be CCP hounds and no more.</p>
	<p>But I just don&#8217;t know who can be trusted. Will Mr Webb take part to serve us citizens in the IT field? At least, can anyone tell me who are the best persons to direct HKIRC ? Sorry, but I have to say, the government may not be too bad a choice than other No-Names / Way-too-Busy-Big-Heads. </p>
	<p>I have some dot-hk domains, but I&#8217;ve avoided to reg / recommend any one to reg more dot-hk s. HKDNR has reformed a little bit, yes, a little is still something. But I hate how it treats old customers. The fees, the service and the procedure set up in the old days are just VERY TERRIBLE. It hurts old birds too much, but HKDNR just keep all terms for it clumsy policy. </p>
	<p>I don&#8217;t think entrance fee for dot-hk is high. But the service in return just does not match standards. </p>
	<p>What else do people be aware of dot-hk sites then possibly mal-ware hosts ?</p>
	<p>I don&#8217;t know. To me, dot-info has been a nightmare. Everytime I leave comment on blogs from other BSP, I am discouraged to set my link ref to this blog, because of dot-info &#8217;s bad reputation. Akismet, what wordpress.com and many BSP uses, just drop all comments from people pointing to dot-info sites. I am quite sure that dot-hk would attain this state very soon, leading all owners, especially local students/teachers, bloggers to a dead alley. </p>
	<p>Say something, <a href="http://www.charlesmok.hk/">Charles</a> / <a href="http://www.samsontam.hk/">Samson</a>. I would not vote any of you. But it is your DUTY to respond, dot-hk dudes!
</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/368893070" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/08/19/dot-hk-crisis/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/08/19/dot-hk-crisis/</feedburner:origLink></item>
		<item>
		<title>UPD echo test</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/355337464/</link>
		<comments>http://blog.bencrox.info/2008/08/04/upd-echo-test/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 13:33:57 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>System &amp; Nethood</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/08/04/upd-echo-test/</guid>
		<description><![CDATA[	I hate Microsoft.
	I just want to do a VERY SIMPLE udp echo test in a XP without compilers.
Guess what? ttcp.exe is AGAIN NOT FIND.
	I don&#8217;t have the XP SP2 disc at my hand. 
	 - MSDN doesn&#8217;t help
 - Google doesn&#8217;t help
 - PCAUSA dump me a nice 404
 - Many of my bookmarked missing [...]]]></description>
			<content:encoded><![CDATA[	<p><b>I hate Microsoft.</b></p>
	<p>I just want to do a VERY SIMPLE udp <a href="http://technet.microsoft.com/en-us/library/bb727023.aspx">echo test</a> in a XP without compilers.<br />
Guess what? <a href="http://ftp.arl.mil/~mike/ttcp.html">ttcp.exe</a> is AGAIN NOT FIND.</p>
	<p>I don&#8217;t have the XP SP2 disc at my hand. </p>
	<p> - MSDN doesn&#8217;t help<br />
 - <a href="http://www.google.com.hk/search?q=ttcp">Google</a> doesn&#8217;t help<br />
 - <a href="http://www.pcausa.com/Utilities/pcattcp.htm">PCAUSA</a> dump me a nice 404<br />
 - Many of my bookmarked missing file providers VANISHED.</p>
	<p>I just want a light weight compiled tool to do some udp echo tests. What the hell is searching for UDP echo server client ?<br />
SOURCE , SOURCE , SOURCE , OUTDATED SOURCE, NON-USABLE EXEC, SERVER BUT NO CLIENT,<br />
LINUX, LINUX, LINUX, PERL SCRIPT, CYGWIN&#8230;.<br />
<b>DAMN!</b></p>
	<p>There is one mighty <a href="http://bansky.net/echotool/">echotool.exe</a> wildly available for download.<br />
But if you are the generous author of EchoTool, please let me tell you that your great tool comsumes <b>100% CPU</b> in listener mode, HOLY!</p>
	<p>I don&#8217;t know what happened to all those nice and safe Win32 UDP echo test executables ONCE available everywhere. They are missed in first 20 pages / top 200 results from my bunch of searches. HOLY Google, well done.</p>
	<p>I&#8217;ve managed to ask a friend with SP2 disk to send me <a href="http://www.bencrox.info/port/TTCP.zip" title="Send me a warning letter, I'll remove it as you like, if you are the copyright owners">ttcp.exe</a> two hours later. What a waste of time.</p>
	<p>&#8211;<br />
To show up my anger, allow me to add a link to my visitors&#8217; favorite  <a href="http://blog.bencrox.info/2006/10/10/vista-%E4%B8%8A%E7%94%A8-telnet/">Vista Telnet</a> post.
</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/355337464" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/08/04/upd-echo-test/feed/</wfw:commentRSS>
	<enclosure url="http://www.bencrox.info/port/TTCP.zip" length="27451" type="application/zip" /><media:content url="http://www.bencrox.info/port/TTCP.zip" fileSize="27451" type="application/zip" /><feedburner:origLink>http://blog.bencrox.info/2008/08/04/upd-echo-test/</feedburner:origLink></item>
		<item>
		<title>Closed trackbacks too….</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/350361079/</link>
		<comments>http://blog.bencrox.info/2008/07/30/closed-trackbacks-too/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 10:25:50 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>System &amp; Nethood</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/30/closed-trackbacks-too/</guid>
		<description><![CDATA[	I have set up a honeypot to see how actually this blog is getting spam.
Within 6 hours, some 392 trackbacks have been fall into the pot.
I have listed the unique spammer ips here. 
	Hmm&#8230; 392 x 24/6 x 356 = 558208
It seems 50% of the mentioned spams are from trackback pings.

]]></description>
			<content:encoded><![CDATA[	<p>I have set up a honeypot to see how actually this blog is getting spam.<br />
Within 6 hours, some 392 trackbacks have been fall into the pot.<br />
I have listed the unique spammer <a href="http://www.bencrox.info/pub/spammers.txt">ips here</a>. </p>
	<p>Hmm&#8230; 392 x 24/6 x 356 = 558208<br />
It seems <a href="http://blog.bencrox.info/2008/07/30/why-i-have-to-close-comments/">50% of the mentioned spams</a> are from trackback pings.
</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/350361079" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/30/closed-trackbacks-too/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/30/closed-trackbacks-too/</feedburner:origLink></item>
		<item>
		<title>Why I have to close comments…</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/349658904/</link>
		<comments>http://blog.bencrox.info/2008/07/30/why-i-have-to-close-comments/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 17:58:11 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/30/why-i-have-to-close-comments/</guid>
		<description><![CDATA[	mysql> delete from wp_comments where comment_approved=&#8217;spam&#8217;;
Query OK, 1121292 rows affected (88.5 sec)
	Other 30k comments are NOT filtered as spam , I&#8217;ve just approve 8 of them.
Other 29.992k comments where deleted by a huge bunch of SQL operation.
	&#8211;
My bad, this old version of WP does not close comments for old post , in contrast to  [...]]]></description>
			<content:encoded><![CDATA[	<p>mysql> delete from wp_comments where comment_approved=&#8217;spam&#8217;;<br />
Query OK, 1121292 rows affected (88.5 sec)</p>
	<p>Other 30k comments are NOT filtered as spam , I&#8217;ve just approve 8 of them.<br />
Other 29.992k comments where deleted by a huge bunch of SQL operation.</p>
	<p>&#8211;<br />
My bad, this old version of WP does not close comments for old post , in contrast to  what I&#8217;ve expected.<br />
SQL is always the real place to do admin&#8230;.</p>
	<p>( Why I&#8217;ve stopped to approve comments ? Imagine that after a holiday, you have some 1K comments waiting approval&#8230;<br />
and WP show 1K of them at once in the admin page, no pagination, 99.9% spam &#8230; That was what I find after not adding new rules for spam fighting for a month. </p>
	<p>1 year later, I have got such 30K pending and 1M filtered spam. Poor server, sorry guys&#8230;.)
</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/349658904" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/30/why-i-have-to-close-comments/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/30/why-i-have-to-close-comments/</feedburner:origLink></item>
		<item>
		<title>A better user script for HKEJ.com</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/349449300/</link>
		<comments>http://blog.bencrox.info/2008/07/29/a-better-user-script-for-hkejcom/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 13:34:55 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>System &amp; Nethood</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/29/a-better-user-script-for-hkejcom/</guid>
		<description><![CDATA[	Last time I have shown a very simple/stupid user script to auto login hkej.com ( 信報財經新聞網站 ）
	In fact, what it does is not auto log in, but check if you are checked out and try to log-in once. It does not safe you ( me ) from cookie expires. Although it does re-log and so [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="http://blog.bencrox.info/2008/07/25/keep-logged-in-to-hkejcom/">Last time</a> I have shown a very simple/stupid user script to auto login <a href="http://www.hkej.com/">hkej.com</a> ( 信報財經新聞網站 ）</p>
	<p>In fact, what it does is not auto log in, but check if you are checked out and try to log-in once. It does not safe you ( me ) from cookie expires. Although it does re-log and so user can go back and click on the link to escape. </p>
	<p>I find no way to manipulate cookie with GreaseMonkey directly. This is <a href="http://userscripts.org/forums/3/topics/704">not too bad in terms of security</a>.  I don&#8217;t have to steal cookies. I just want to revive them.</p>
	<p>1) The simplist trick is to reload the page:</p>
	<blockquote><p><code>	window.setTimeout(window.location.reload,29min_later);<br />
</code></p></blockquote>
	<p>It works. But what if the user left some valuable words in forms ?<br />
All such data will be vanished.</p>
	<p>2) Do some minimal ajax load<br />
I cannot sure why, but it does not work. It seems the ajax load within Greasemonkey is bounded by some shields.</p>
	<p>3) Load some data into an iframe, and reload the iframe from time to time.<br />
It works. Rather than expected, I can hide those iframe without anyharm.</p>
	<p>So I rewrite the code a little bit. This time, I have also taken reference from <a href="http://userscripts.org/scripts/review/16341">a famous user script</a> to handle username and password. </p>
	<p>Wondering if I shall submit it to <a href="http://userscripts.org/">userscripts.org</a> &#8230;.<br />
Would do so if anyone interested.</p>
	<blockquote>
	<pre><code>
// ==UserScript==
// @name Hacks on HKEJ
// @namespace info.bencrox
// @description Make life easier with hkej.com
// @include http://*.hkej.com/*
// @exclude http://*.hkej.com/*/adv/*
// @exclude http://*.hkej.com/*/login.jsp
// ==/UserScript==
	
// ! Private Credentials, BEWARE !
LOGIN_EMAIL = GM_getValue('ejregem','');
LOGIN_PASS = GM_getValue('ejregpw','');
	
// Note : lots FIXME
// by : lxb [at] hkday [dot] net
// ver : 0.1.013 [ 2008 Jul 25 20:00:04 ]
// ! Change Log !
// 0.1.000 [ 2008 Jul 25 18:01:12 ] : base GM + jQ ref htt://www.joanpiedra.com/jquery/greasemonkey
// 0.1.001 [ 2008 Jul 25 18:13:02 ] : add checkLogin() , use Google hosted jQuery
// 0.1.002 [ 2008 Jul 25 18:13:02 ] : checkLogin() add fail handling
// 0.1.003 [ 2008 Jul 27 19:02:13 ] : add excludes
// 0.1.004 [ 2008 Jul 27 22:04:20] : test window.location.reload  and GM Menu
// 0.1.005 [ 2008 Jul 27 22:07:56] : test with partial ajax reload, failed
// 0.1.006 [ 2008 Jul 27 22:13:28] : test with iframes, worked
// 0.1.007 [ 2008 Jul 28 17:35:44] : reload iframes in hidden div by setTimeout
// 0.1.008 [ 2008 Jul 29 21:50:13] : test with GM_setValue / getValue
// 0.1.009 [ 2008 Jul 30 16:02:32] : fixed GM_setValue by not using jQuery
// 0.1.010 [ 2008 Jul 30 16:04:58] : allow manual reset un/pw , blank pw  , ref : http://userscripts.org/scripts/review/16341
// 0.1.011 [ 2008 Jul 30 16:56:16]: fix re-bake loop by adding excludes and choosing better dummy pages
// 0.1.012 [ 2008 Jul 30 17:15:21]: test with extra styling / manual items
// 0.1.013 [ 2008 Jul 30 20:00:04]: clean up test codes
	
// - Change Log -
	
// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);
	
// Check if jQuery's loaded
function GM_wait() {
if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_wait();
	
//renewCookie by fetch the smallest pieces.
//FIXME: they are not quite small... seems idiot method...
    function renewCookie() {
	$('#webifm').attr('src','http://web.hkej.com/template/registration/jsp/login.jsp');
	$('#wwwifm').attr('src','http://www.hkej.com/template/registration/jsp/login.jsp');
    }
	
//call renew cookies every 25mins
    function cookieTimeout() {
	renewCookie();
	window.setTimeout(cookieTimeout,1500000);
    }
	
//provide some way to reset Creds stored in firefox
//FIXME: tell me if I can encrypt things ... -_-
    function resetCredentials(){
		if ((LOGIN_EMAIL = prompt('Registered Email:')) != null){
			GM_setValue('ejregem',LOGIN_EMAIL);
		} else return;
		if ((LOGIN_PASS = prompt('Password (leave blank to prompt every time):')) != null){
			GM_setValue('ejregpw',LOGIN_PASS);
		}
    }
	
// Provide a button to reset Creds if login failed
    function checkLogOK(){
// FIXME: Yes, this must lead to faults afterwards
	ts = document.getElementsByTagName('b')
      if(ts.len){
// FIXME: Cannot use jQuery (GM_setValue within unsafeWindow ) here,
	resetp = document.createElement('button');
	resetp.innerHTML='Reset';
	resetp.addEventListener('click',resetCredentials,true);
	ts[0].appendChild(resetp);
      }
    }
	
// Extract the Log in Operation for manual use
    function AutoLog() {
	if (LOGIN_EMAIL == '') resetCredentials;
	if (LOGIN_PASS == '') LOGIN_PASS = prompt('Password :');
	
// FIXME : this must fail afterward, yes, yes...
	$('#wrapper table:first td:eq(1)')
	  .load('/template/registration/jsp/_login_prg.jsp #regWrap b',
		{login:LOGIN_EMAIL,password:LOGIN_PASS},checkLogOK);
	
    }
	
// Check login
function checkLogin() {
// FIXME : it may not work if hkej update itself
	var login = $('img#Reg_Log').attr('src').indexOf('logout') + 1;
	if (!login) AutoLog();
	cookieTimeout();
}
	
// Hide the cookie ovens
    function Addiframe(){
	$('&lt;div id= &quot;hid&quot;&gt;&lt;/div&gt;').appendTo('body');
	$('&lt;iframe name=&quot;webifm&quot; id=&quot;webifm&quot;&gt;&lt;/iframe&gt;').appendTo('#hid');
	$('&lt;iframe name=&quot;wwwifm&quot; id=&quot;wwwifm&quot;&gt;&lt;/iframe&gt;').appendTo('#hid');
	$('#hid').hide();
    }
	
// All your GM code must be inside this function
function letsJQuery() {
	Addiframe();
	checkLogin();
}
	
GM_registerMenuCommand('Login', AutoLog);
GM_registerMenuCommand('Reset ID',resetCredentials);
	
</code></pre>
	</blockquote>
	<p>Have fun!</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/349449300" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/29/a-better-user-script-for-hkejcom/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/29/a-better-user-script-for-hkejcom/</feedburner:origLink></item>
		<item>
		<title>Firecookie is good, localize ‘Expires’ can be better</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/349206164/</link>
		<comments>http://blog.bencrox.info/2008/07/29/firecookie-is-good-localize-expires-can-be-better/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 07:30:27 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>System &amp; Nethood</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/29/firecookie-is-good-localize-expires-can-be-better/</guid>
		<description><![CDATA[	The &#8217;session expires&#8217; problem kicks me ass again. Thus I open firebug to check how can I extend life.  
	Adding Firecookie save my time for this task. Yet, up to version 0.6 firecookie shows expire time in GMT only.
I think not much people lives / syncs with GMT. Adding options for proper localized timezone [...]]]></description>
			<content:encoded><![CDATA[	<p>The &#8217;session expires&#8217; problem kicks me ass again. Thus I open <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">firebug</a> to check how can I extend life.  </p>
	<p><a href="https://addons.mozilla.org/en-US/firefox/addon/6683">Adding Firecookie</a> save my time for this task. Yet, up to version 0.6 firecookie shows expire time in GMT only.<br />
I think not much people lives / syncs with GMT. Adding options for proper localized timezone would be nice. </p>
	<p>Thus, I <a href="http://code.google.com/p/firecookie/issues/detail?id=6">filed an issue</a> for <a href="http://www.softwareishard.com/blog/firecookie/">the developer</a>. </p>
	<p>For those who don&#8217;t want to wait, please locate your own &#8216;firecookie.js&#8217; and s/<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Date:toGMTString">toGMTString</a>/<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Date:toLocaleString">toLocateString</a>/g .<br />
I don&#8217;t think this is a considerate hack. Bear your own risk if you are as lazy as I am. </p>
	<p>&#8211;<br />
Notes:<br />
XPI can be upzipped&#8230; Tell you, I have not hack things for a long time. I googled decompile xpi &#8230; how stupid am i &#8230;<br />
&#8211;<br />
Notes 2:<br />
Is that GreaseMonkey does not touch cookies anymore ?<br />
I find that extracting content with jQuery ajax load into a div does not help, but adding a visible iframe does.
</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/349206164" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/29/firecookie-is-good-localize-expires-can-be-better/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/29/firecookie-is-good-localize-expires-can-be-better/</feedburner:origLink></item>
		<item>
		<title>Keep logged in to HKEJ.com</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/345544535/</link>
		<comments>http://blog.bencrox.info/2008/07/25/keep-logged-in-to-hkejcom/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 10:41:03 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>Tutorial</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/25/keep-logged-in-to-hkejcom/</guid>
		<description><![CDATA[	This is an extremely stupid and simple script, using GreaseMonkey and jQuery, to auto login in hkej.com ( 信報財經新聞網站 ）
	I am very annoyed by the site&#8217;s super duper session handler that 
	1. expire very soon
2. non working redirection
3. separated session handler for its forum and newspaper content
4. no ssl ( OK, I cannot help, but [...]]]></description>
			<content:encoded><![CDATA[	<p>This is an extremely stupid and simple script, using <a href="http://www.greasespot.net/">GreaseMonkey</a> and <a href="http://jquery.com/">jQuery</a>, to auto login in <a href="http://www.hkej.com/">hkej.com</a> ( 信報財經新聞網站 ）</p>
	<p>I am very annoyed by the site&#8217;s super duper session handler that </p>
	<p>1. expire very soon<br />
2. non working redirection<br />
3. separated session handler for its forum and newspaper content<br />
4. no ssl ( OK, I cannot help, but this means leaving credentials in GreaseMonkey will only degrade security slightly. )</p>
	<p>Here we go :</p>
	<blockquote><p><code><br />
// ==UserScript==<br />
// @name           Hacks on HKEJ<br />
// @namespace      hkej<br />
// @description    Make life easier with hkej.com<br />
// @include        http://*.hkej.com/*<br />
// @exclude        http://*.hkej.com/*/adv/*<br />
// ==/UserScript==</p>
	<p>// ! Private Credentials, BEWARE !<br />
var LOGIN_EMAIL = 'nonsense@hkej.com';<br />
var LOGIN_PASS = 'kickmyasshere';<br />
// ! Please fill in for your own sake !</p>
	<p>// Note : 2 FIXME<br />
// by : lxb [at] hkday [dot] net<br />
// ver : 0.1.003 [ 2008 Jul 25 19:08:00 ]<br />
// ! Change Log !<br />
// 0.1.000 [ 2008 Jul 25 18:01:12 ] : base GM + jQ ref htt://www.joanpiedra.com/jquery/greasemonkey<br />
// 0.1.001 [ 2008 Jul 25 18:06:56 ] : add checkLogin() , use Google hosted jQuery<br />
// 0.1.002 [ 2008 Jul 25 18:13:02 ] : checkLogin() add fail handling<br />
// 0.1.003 [ 2008 Jul 25 19:08:00 ] : add @exclude<br />
// - Change Log -</p>
	<p>// Add jQuery<br />
    var GM_JQ = document.createElement('script');<br />
    GM_JQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js';<br />
    GM_JQ.type = 'text/javascript';<br />
    document.getElementsByTagName('head')[0].appendChild(GM_JQ);</p>
	<p>// Check if jQuery's loaded<br />
    function GM_wait() {<br />
        if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }<br />
    else { $ = unsafeWindow.jQuery; letsJQuery(); }<br />
    }<br />
    GM_wait();</p>
	<p>// Check login<br />
    function checkLogin() {</p>
	<p>// FIXME : it may not work if hkej update itself<br />
	var login_ok = $('img#Reg_Log').attr('src').indexOf('logout') + 1;<br />
	if (!login_ok) {<br />
// fail handling : it will show the bold message when login failed. FIXME : same as above<br />
	 $('#wrapper table:first td:eq(1)')<br />
	  .load('/template/registration/jsp/_login_prg.jsp #regWrap b',<br />
		{login:LOGIN_EMAIL,password:LOGIN_PASS});<br />
	}<br />
    }</p>
	<p>// All your GM code must be inside this function<br />
    function letsJQuery() {<br />
	checkLogin();<br />
    }</p>
	<p></code></p></blockquote>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/345544535" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/25/keep-logged-in-to-hkejcom/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/25/keep-logged-in-to-hkejcom/</feedburner:origLink></item>
		<item>
		<title>User Experience, Game interface for enterprise</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/336987258/</link>
		<comments>http://blog.bencrox.info/2008/07/16/user-experience-game-interface-for-enterprise/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 11:19:49 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>System &amp; Nethood</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/16/user-experience-game-interface-for-enterprise/</guid>
		<description><![CDATA[	This is nothing new. When the major corporate software solution vendors stress on user experience, shut their mouth with game designs. 
	And this is why game designers, especially 2D flash / web base / multi-user online experts SHOULD consider pitching the corps. 
	Ask the bosses, How much does their company spend on software solution last [...]]]></description>
			<content:encoded><![CDATA[	<p>This is nothing new. When the major corporate software solution vendors stress on user experience, shut their mouth with game designs. </p>
	<p>And this is why game designers, especially 2D flash / web base / multi-user online experts SHOULD consider pitching the corps. </p>
	<p>Ask the bosses, How much does their company spend on software solution last year ?</p>
	<p>How much is your design team earn ? </p>
	<p>If the numbers match, show what have you done for User Interface / User eXperience / User InterActions.</p>
	<p>It is time to mix up work and game play. Believe me, the major vendors HAVE open their back doors for you. And don&#8217;t forget to compare your game server&#8217;s uptime with the corps. </p>
	<p>All in, take it all!
</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/336987258" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/16/user-experience-game-interface-for-enterprise/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/16/user-experience-game-interface-for-enterprise/</feedburner:origLink></item>
		<item>
		<title>Friend Feed imported. Comment OK~</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/333982327/</link>
		<comments>http://blog.bencrox.info/2008/07/13/friend-feed-imported-comment-ok/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 03:25:53 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/13/friend-feed-imported-comment-ok/</guid>
		<description><![CDATA[	http://friendfeed.com/bencrox 
	Bravo ~!
Dont comment on my blog.bencrox.info, comment on friendfeed instead.

]]></description>
			<content:encoded><![CDATA[	<p><a href="http://friendfeed.com/bencrox">http://friendfeed.com/bencrox </a></p>
	<p>Bravo ~!<br />
Dont comment on my blog.bencrox.info, comment on friendfeed instead.
</p>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/333982327" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/13/friend-feed-imported-comment-ok/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/13/friend-feed-imported-comment-ok/</feedburner:origLink></item>
		<item>
		<title>Some surprise in Microsoft MIX essentials 2008 HK</title>
		<link>http://feeds.feedburner.com/~r/BenCroxOnBlog/~3/332587322/</link>
		<comments>http://blog.bencrox.info/2008/07/11/some-surprise-in-microsoft-mix-essentials-2008-hk/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 10:43:34 +0000</pubDate>
		<dc:creator>bencrox</dc:creator>
		
	<category>System &amp; Nethood</category>
		<guid isPermaLink="false">http://blog.bencrox.info/2008/07/11/some-surprise-in-microsoft-mix-essentials-2008-hk/</guid>
		<description><![CDATA[	I am no friend of windows, but can be still considered as neutral towards microsoft.
So, today&#8217;s MUST topic is iphone 3G , be practical, go to check PK Chan&#8217;s chart.
	I have no luck in HTHK&#8217;s lucky draw. Even worse, I was appointed to attend Microsoft HK&#8217;s MIX essentials 2008.
	That&#8217;s done?
	No.
	MS&#8217;s web technology lag is still [...]]]></description>
			<content:encoded><![CDATA[	<p>I am no friend of windows, but can be still considered as neutral towards microsoft.<br />
So, today&#8217;s MUST topic is iphone 3G , be practical, go to check <a href="http://www.editgrid.com/grid/widget/publish/quickview/region/17207313/?mode=sort&#038;width=1152&#038;height=720">PK Chan&#8217;s chart</a>.</p>
	<p>I have no luck in HTHK&#8217;s lucky draw. Even worse, I was appointed to attend Microsoft HK&#8217;s MIX essentials 2008.</p>
	<p>That&#8217;s done?</p>
	<p>No.</p>
	<p>MS&#8217;s web technology lag is still there, MS HK has even more jet lag. Since I do not subscribe news from MSDN, my lag makes the previous mentioned negligible.</p>
	<p>1. Windows Live ID can be used as a <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=24195B4E-6335-4844-A71D-7D395D20E67B&#038;displaylang=en">SSO passport</a> ( nothing new ) , for FREE ( really ? )  </p>
	<p>2. After the merger of UWANTS and DISCUSS.COM.HK , the local forum giant is migrating their back end from Linux to Windows 2008 , says Oscar ( of UWANTS ) , with charts about performance and stability  gain. ( WTF ??? ) </p>
	<p> - rational 1 - there are more Certs MS engineers, while not much hard core linux guys.<br />
Ben consider this is TRUE<br />
 - rational 2 - their new h/w cannot be driven to max power by linux, because of driver issue.<br />
Ben has a little doubt&#8230;. but it can be TRUE<br />
 - rational 3 - MSWS 2008 serves more PV per machine<br />
Hey&#8230; you deploy those MSWS 2008 with NEW h/w, not right ? Is the comparison fair ???<br />
 - rational 4 - MSWS 2008 does not hang so far ( after half year of prod. deploy )<br />
OK, MS does a good job<br />
 - rational 5 - MSWS 2008 supports PHP and fastcgi<br />
Ben: WTH your linux + apache guys NOT deploying fastcgi ( or memcached and blah blah blah ) ?????</p>
	<p>3. The HKGOLDEN guys ( in fact from Fevaworks ) show new feature for IE 8 users<br />
Ben: they are misleading on what is RSS. they are not using Microformats, hey !</p>
	<p>4. With silverlight and expression and blah blah blah, 蘇絲黃 &#8217;s new site <a href="http://www.07807.com">07807.com</a> has been a flashy showcase.</p>
	<p>Done.</p>
	<p>( and MS gives out pipes of Silverlight books and MIX shirts )<br />
<div id="friendnewsmenu" style="height: 0;position: absolute;width: 0;overflow: hidden">My News: News Blogs: <a href="http://rings52.com">Rington</a> <a href="http://evening-dress52.com">Evening dress</a> <a href="http://maraphonbet.ru">Sport Betting</a> <a href="http://top-medpills.com">Phentermine No Prescription</a> <a href="http://theringtoneco.com">Best Ringtones</a> <a href="http://ornaments52.com">Ornaments</a> <a href="http://mobiles52.com">Mobiles</a> <a href="http://xringtonex.com">Free Ringtones</a> <a href="http://top-iauto.com">Top auto-moto</a> <a href="http://boots52.com">Boots</a> <a href="http://cars52.com">Cars</a> <a href="http://theringtoneonline.com">mp3 music for mobile</a> <a href="http://top-icasino.com">Top casino</a> <a href="http://timezero.biz">Download Ringtones</a> <a href="http://ja.by">ya.by</a> <a href="http://autos52.com">Autos</a> <a href="http://furniture52.com">furniture</a> <a href="http://suits52.com">Suits</a> <a href="http://tramadol52.com">Tramadol online</a> <a href="http://cigarettes52.com">Cigarettes</a> <a href="http://fioricet52.com">Fioricet online</a> <a href="http://ambien52.com">Ambien online</a> <a href="http://medicines52.com">Medical tests</a> <a href="http://blogse.net">Blog Search the Web</a> <a href="http://tables52.com">�ables</a> <a href="http://xautox.net">Sale Auto</a> <a href="http://creditcard52.com">Credit</a> <a href="http://trousers52.com">Trousers</a> <a href="http://top-free-ringtone.com">Free Ringtones</a> <a href="http://dating52.com">Dating</a> <a href="http://cases52.com">Cases</a> <a href="http://free-ringtones52.com">Free mp3 ringtones</a> <a href="http://necklace52.com">Necklace</a> <a href="http://xloansx.com">Loan Online</a> <a href="http://onlines52.com">Online notebook shop</a> <a href="http://pills52.com">Pills, Compare pills, Reviews pills</a> <a href="http://xrolex.com">Replica Rolex</a> <a href="http://building-materials52.com">Building materials</a> <a href="http://hydrocodone52.com">Hydrocodone online</a> <a href="http://phentermine52.com">Phentermine online</a> <a href="http://adipex52.com">Adipex online</a> <a href="http://balans52.com">Balans</a> <a href="http://medics52.com">Medicine news</a> <a href="http://yachts52.com">Yachts</a> <a href="http://pharmacy52.com">FDA Approved Pharmacy</a> <a href="http://ringtones52.com">Get ringtones online</a> <a href="http://intimategoods52.com">Intimate goods</a> <a href="http://sportswear52.com">Sportswear</a> <a href="http://xanax52.com">Xanax online</a> <a href="http://cialis52.com">Cialis online</a> <a href="http://ladies-handbag52.com">Ladies handbag</a> <a href="http://chairs52.com">Chairs</a> <a href="http://fashions52.com">Fashions</a> <a href="http://googlus.com">Green Card Information</a> <a href="http://valium52.com">Valium online</a> <a href="http://r1.by">auto-moto</a> <a href="http://soma52.com">Soma online</a> <a href="http://chronometer52.com">Chronometer</a> <a href="http://boats52.com">Boats</a> <a href="http://credits52.com">Credits</a> </div>
<img src="http://feeds.feedburner.com/~r/BenCroxOnBlog/~4/332587322" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRSS>http://blog.bencrox.info/2008/07/11/some-surprise-in-microsoft-mix-essentials-2008-hk/feed/</wfw:commentRSS>
	<feedburner:origLink>http://blog.bencrox.info/2008/07/11/some-surprise-in-microsoft-mix-essentials-2008-hk/</feedburner:origLink></item>
	<media:rating>nonadult</media:rating></channel>
</rss>
