How to share session state

http://www.codeproject.com/KB/session/sharedsession.aspx

http://blogs.msdn.com/toddca/archive/2007/01/25/sharing-asp-net-session-state-across-applications.aspx

http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx

http://msdn.microsoft.com/en-us/library/aa479313.aspx

By rying on 2010/09/30 | ASP.NET

Find broadcast ip address

netstat -nr | grep -i default | awk ‘{print $2}’

ifconfig lan0

By rying on 2010/09/27 | Network

IIS stop response with error Connections_Refused

http://support.microsoft.com/kb/934878

non-page memory less than 20mb.  There could be a memory leak some where.

http://blogs.msdn.com/b/david.wang/archive/2005/09/21/howto-diagnose-iis6-failing-to-accept-connections-due-to-connections-refused.aspx

By rying on | WebServer

Difference Between Index Rebuild and Index Reorganize

Index Rebuild : This process drops the existing Index and Recreates the index.
USE AdventureWorks;
GO
ALTER INDEX ALL ON Production.Product REBUILD
GO

Index Reorganize : This process physically reorganizes the leaf nodes of the index.
USE AdventureWorks;
GO
ALTER INDEX ALL ON Production.Product REORGANIZE
GO

Recommendation: Index should be rebuild when index fragmentation is great than 40%. Index should be reorganized when index fragmentation is between 10% to 40%. Index rebuilding process uses more CPU and it locks the database resources. SQL Server development version and Enterprise version has option ONLINE, which can be turned on when Index is rebuilt. ONLINE option will keep index available during the rebuilding.

By rying on 2010/09/09 | Admin, SQL

Vitural machine disk incompatible problem

http://www.desktop-virtualization.com/2008/02/07/convert-vmware-server-20-vms-into-server-104/

By rying on 2010/08/20 | VMWare

Start Shutdown oracle database

sqlplus / as sysdba
startup
shutdown immediate

lsnrctl start

By rying on | Oracle

Ruby ssh problem

Got an error during using Net/SSH module

Net::SSH::HostKeyMismatch: fingerprint 0d:8c:4f:3e:3c:8e:52:17:f8:d5:45:b0:c1:66:cd:f6 does not match for “xxxx”

The problem is ruby cache the key and the host get rebuild so the key changed.

Solution is remove the known_hosts under $HOME/.ssh folder.

On windows will be C:\Documents and Settings\[username]\.ssh

By rying on 2010/04/29 | Ruby

Extend VMWare virtual disk

  1. vmware-vdiskmanager.exe -x 40Gb [diskfile]
  2. Mount disk file into another virtual machine.
  3. ide0:1.present = “TRUE”
    ide0:1.fileName = “WDevD1.vmdk”
    ide0:1.mode = “persistent”
    ide0:1.deviceType = “disk”
    ide0:1.redo = “”

  4. Start virtual machine.
  5. Using diskpart command
  6. list volume
    select [volume 2]
    extend

  7. Mount the disk back to original vm
By rying on | VMWare

Blackberry JDE preprocess

Edit project file add

Options=-quiet -define=JDE_4_7_BELOW;PREPROCESSOR

In the .java file

Add this line to beginning of the file

//#preprocess

//#ifdef JDE_4_7_BELOW
import net.rim.device.api.ui.UiEngineInstance;
//#else
import net.rim.device.api.ui.UiEngineInstance;
//#endif

By rying on 2010/04/14 | Blackberry Dev

Configuring SSL Host Headers (IIS 6.0)

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/596b9108-b1a7-494d-885d-f8941b07554c.mspx?mfr=true

Configuring Server Bindings for SSL Host Headers (IIS 6.0)

cscript.exe adsutil.vbs set /w3svc/<site identifier>/SecureBindings “:443:<host header>

By admin on 2010/04/09 | Security

Admin
ASP.NET
Blackberry Dev
Network
Oracle
Ruby
Security
SQL