As everyday, today morning I started my work timely and also having a chat with one of my colleague(shhh... this is secret). Within our chat, one question popped out from my mind is, "Why would we use a Singleton over a Static, and vice versa?".
In this kind of circumstances, my friend Google always comes first for help. This time also provided me with some interesting discussions and topics written on this subject. After reading some of those, I was kind of satisfied how "BitchWhoCodes" discussed with some examples about this topic.
Techlog
Thursday, October 25, 2007
Monday, June 18, 2007
Failed to access IIS metabase
If you have both ASP.NET 1.1 and 2.0 on the same machine (along with the associated Visual Studio 2003 and 2005 products), may encounter this issue. When running the website you may encounter the error page that reports:
Failed to access IIS metabase
If so, you may have installed IIS after installing the .NET framework. If that's the case, try running to repair your ASP.NET installation and set up all of the appropriate ISAPI extension mappings.
aspnet_regiis -i
Try this command from the command prompt. However, the directory it is located in was not included a system path previously, so just note that you may have to run this from the "WINDOWS\Microsoft.NET\Framework\vX.X.XXXXX" directory (with the X's being your version number).
This actually worked for me....
Failed to access IIS metabase
If so, you may have installed IIS after installing the .NET framework. If that's the case, try running to repair your ASP.NET installation and set up all of the appropriate ISAPI extension mappings.
aspnet_regiis -i
Try this command from the command prompt. However, the directory it is located in was not included a system path previously, so just note that you may have to run this from the "WINDOWS\Microsoft.NET\Framework\vX.X.XXXXX" directory (with the X's being your version number).
This actually worked for me....
Thursday, December 14, 2006
Java memory leaks
There are huge discussions about java memory leakage. Here is a thread regarding this matter.
http://forum.java.sun.com/thread.jspa?threadID=456545&messageID=2086418
http://forum.java.sun.com/thread.jspa?threadID=456545&messageID=2086418
Sunday, June 18, 2006
Springs RequestContext in freemarker view
If you want request-specific state, like current web application context, current locale, current theme, and potential binding errors or easy access to localized messages and Errors instances in freemarker views then just do the following :
first add
<property name="exposeSpringMacroHelpers">
<value>true</value>
</property>
to your freemarker view resolver bean configuration. this will expose a RequestContext(org.springframework.web.servlet.support.RequestContext) for use by Spring's macro library, under the name "springMacroRequestContext".
thats it.
Now you can use something like ${springMacroRequestContext.contextPath}
first add
<property name="exposeSpringMacroHelpers">
<value>true</value>
</property>
to your freemarker view resolver bean configuration. this will expose a RequestContext(org.springframework.web.servlet.support.RequestContext) for use by Spring's macro library, under the name "springMacroRequestContext".
thats it.
Now you can use something like ${springMacroRequestContext.contextPath}
Tuesday, June 13, 2006
Technology VS Technology
PHP vs. Java - which is better?
I think this is a very interesting topic among the web application devolopers. The title says what it is...
I think this is a very interesting topic among the web application devolopers. The title says what it is...
Tuesday, June 06, 2006
Some useful Spring discussion
Bind an empty collection: http://forum.springframework.org/showthread.php?t=15992
Subscribe to:
Posts (Atom)