Warning: include_once(/home/leozc/leozc.com/wp_new/wp-content/plugins/antisp/antisp.php): failed to open stream: Permission denied in /home/leozc/leozc.com/wp_new/wp-settings.php on line 305

Warning: include_once(): Failed opening '/home/leozc/leozc.com/wp_new/wp-content/plugins/antisp/antisp.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/leozc/leozc.com/wp_new/wp-settings.php on line 305

Warning: include_once(/home/leozc/leozc.com/wp_new/wp-content/plugins/injectbody/injectbody.php): failed to open stream: Permission denied in /home/leozc/leozc.com/wp_new/wp-settings.php on line 305

Warning: include_once(): Failed opening '/home/leozc/leozc.com/wp_new/wp-content/plugins/injectbody/injectbody.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/leozc/leozc.com/wp_new/wp-settings.php on line 305
Bubble Can » leozc


Author Archive

How to install Nginx, APC, Redis, etc on Elastic Beanstalk, here is the answer!

April 27th, 2013 Comments off

I have been working on this same problem in Mixerbox, and here is my answer:


Again many thanks to https://github.com/carboncoders/elasticbeanstalk-nginx-php and https://github.com/arielscarpinelli/elastic-beanstalk-php-5.4-fpm-nginx-non-legacy !

Categories: AWS Tags:

S3 Bucketname & CName Mapping Chaos

October 25th, 2012 Comments off

In S3, there are two ways to access a resource, namely




A bucketname can mixed with upper and lower case, so when the bucketname becomes part of the domain name (which naturally case insensitive), what happened?

Read more…

Categories: AWS, Random Talk Tags:

Google App Engine Tuning Note

June 1st, 2012 Comments off

This post documents some of my experience and thoughts on tuning Google App Engine for production( Push Queue in more specific), and explains some of the performance characteristics and catches I’ve learnt. Read more…

Categories: Performance Tags:

How to monitor/trace Windows Network Activity

October 18th, 2010 Comments off

Sometimes you really need to know what is going on under the hook of windows network stack, why DNS is not resolving, why you always get 404 etc. Windows actually provides a very powerful infrastructure to allow trace through

What you need: Read more…

Categories: Random Talk, Tech, windbg Tags:

Safely locate & load resource in ASP.MVC view

June 9th, 2010 Comments off

In the context of ASP.MVC, a view can usually be used in different routes and hence loading resources(javascripts/images etc) using relative path may not work.

For example, a view index.aspx can be used in


And assume the resource is located in the root http://localhost/myweb/, IMHO there is no easy way to refer to the resources… trouble trouble…

That is why I have my little routine as an extension method of HtmlHelper

public static string ResolveResource(this HtmlHelper html,string url)
 return html.ViewContext.RequestContext.HttpContext.Request.ApplicationPath + "/" + url;

To use it, just do these in your view:

<script src="<%=Html.ResolveResource("/Content/media/js/jquery-1.3.2.min.js") %>"  type="text/javascript"></script>

Categories: ADO.Net, C#, Tech Tags:

Windows 7 RTM Auto Login Setup

December 24th, 2009 Comments off

I am not sure why there are so many WRONG post about setting auto login, but here the correct one.

I tested this one in RTM windows 7.

1. Use Win+R and put in "netplwiz".

2. In the user account window, uncheck the box as below:


That is it.

Categories: Random Talk Tags:

Diplomatic incident —This is a true story from the Japanese Embassy in U.S.A. !!!

July 11th, 2009 Comments off
Diplomatic incident —This is a true story from the Japanese Embassy in U.S.A. !!!
A few days ago, Prime Minister Mori was given some Basic English conversation training before he visits Washington and meets president Barack Obama… The instructor told Mori Prime Minister, when you shake hand with President Obama, please say “how r u”. Then Mr. Obama should say, “I am fine, and you?”
…Now you should say “me too”.. Afterwards we, translators, will do the work for you.”

It looks quite simple, but the truth is…

When Mori met Obama , he mistakenly said “who r u?” (Instead of “How r u?”.)

Mr. Obama was a bit shocked but still managed to react with humor:
“Well, I’m Michelle’s husband, ha-ha…”

Then Mori replied “me too, ha-ha.. .”.
Then there was a long silence in the meeting

Categories: Random Talk Tags:

The Secret of ASP View Data

July 1st, 2009 Comments off

Are you wondering why your ASP app is always slower than what you think?

It is a must read, like as follow here.

Categories: ASP Tags:

ADO.Net Entity framework Table Per Type mapping

June 29th, 2009 Comments off

Good reading from here

Categories: ADO.Net, Random Talk Tags:

A good read on hybrid ASP.Net technologies

June 26th, 2009 Comments off

Want to mix MVC+Service+Entities framework+Linq+ Dynamic data in your project?

Here is the read.

Categories: Random Talk Tags: