In S3, there are two ways to access a resource, namely
s3.amazonws.com/bucketname/key
OR
bucketname.s3.amazonws.com/key
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…
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…
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…
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
http://localhost/myweb/r1
http://localhost/myweb/
http://localhost/myweb/r1/subr1
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>
December 24th, 2009
leozc
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.
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
Are you wondering why your ASP app is always slower than what you think?
It is a must read, like as follow here.
Want to mix MVC+Service+Entities framework+Linq+ Dynamic data in your project?
Here is the read.