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

ASP.NET

IE block the cookies inside iframe... Here is the workaround for asp.net
HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

Mac address validation failed error:
<input type="hidden" name="__VIEWSTATEENCRYPTED"  id="__VIEWSTATEENCRYPTED" value="" />
Render at the end of form, So if postback before it render will cause this error.
http://blogs.msdn.com/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx

Good article about color transformation.
http://www.c-sharpcorner.com/UploadFile/mahesh/Transformations0512192005050129AM/Transformations05.aspx

Using sql server for session state
http://idunno.org/articles/277.aspx
By rying on | ASP.NET

DNS

Dos trace routine:   tracert

By rying on 2010/04/08 | WebServer

SQL Commands

DBCC DROPCLEANBUFFERS [ WITH NO_INFOMSGS ]

Removes all clean buffers from the buffer pool.

WITH NO_INFOMSGS
Suppresses all informational messages.

Use DBCC DROPCLEANBUFFERS to test queries with a cold buffer cache without shutting down and restarting the server.

To drop clean buffers from the buffer pool, first use CHECKPOINT to produce a cold buffer cache.
This forces all dirty pages for the current database to be written to disk and cleans the buffers.
After you do this, you can issue DBCC DROPCLEANBUFFERS command to remove all buffers from the buffer pool.

By rying on 2010/04/07 | Admin

Nikto Website scanner

Scanner the website…  http://cirt.net/nikto2

By rying on | Security

Admin
ASP.NET
Blackberry Dev
Oracle
Ruby
Security
SQL
VMWare