Preload / autoload in IIS

Auto load a method after each application pool restart/recycle It’s useful when using quartz.Net to execute service periodically instead of using Windows service. Otherwise, the application pool will be collected according to the default idle-time and recycle time. http://stackoverflow.com/questions/11140597/iis-app-pool-recycle-quartz-scheduling   Beware about the <serviceAutoStartProviders>, the provider need to use full qualified name <serviceAutoStartProviders> <add name=”PreWarmCache”… Read More »

SVN Server migration

Use svnadmin dump + svndumpfilter Ref.: http://www.petefreitag.com/item/665.cfm SVN Dump Parts of a Repository

PHP cannot exec ping

In httpd error_log, it got icmp open socket: Permission denied It is because the seLinux blocking the httpd for security reason. Two solutions: 1. Disable seLinux (high risk) 2. Build a custom policy to unblock partial permission for httpd To build custom policy, use audit2allow command (may require install) Ref.: http://wiki.centos.org/HowTos/SELinux 1. install audit2allow module… Read More »

Set maven distributionManagement with profile

Set the with ${property}, and override with ref.: http://jira.codehaus.org/browse/MNG-2553 … … http://10.0.0.20:8081/nexus/content/repositories/releases http://10.0.0.20:8081/nexus/content/repositories/snapshots … … snapshots Snapshots ${snapshots.url} releases Releases ${releases.url}

Change SQL Server default date format

Default is US date format : MM/dd/yyyy Also, the login given default language will affect the dateformat. Sounds need to change both of them. SQL server ref.: http://support.microsoft.com/kb/173907 SQL server express ref.: http://www.sqlservercentral.com/Forums/Topic1004359-146-1.aspx#bm1004496 EXEC sp_configure ‘default language’, ’23’ — british_english ? GO RECONFIGURE;