Monday, January 19, 2009

Firefox asks for VPU connection randomly

Firefox (or Thunderbird) in Windows XP may randomly ask for a VPN (Virtual Private Networks) connection once that is defined. In many case, the VPN is needed for accessing a private subnetwork such as campus or intranetwork, but not randomly. The popping up connection request windows bothers. How to fix the problem not to ask the VPN connection automatically?

Answer
You should access the settings by typing 'about:config' in the address bar, and search for 'network.autodial-helper.enabled'. Set this option to 'false' and then restart the browser.

Tuesday, December 16, 2008

How to Display RTS/CTS Packet Type in NS2 New Trace Format

There are several posts on NS2 user mailing list explaining how to display RTS/CTS packet type in NS2 trace file. However, I failed to adopt them in NS 2.26 with new trace format. Here is my solution which just uses code written for old trace format. You only need to modify ns-2.26/trace/cmu-trace.cc in the following way and I think this solution can also work for NS versions later than 2.26.

void CMUTrace::format_mac(Packet *p, const char *why, int offset)
{
struct hdr_cmn *ch = HDR_CMN(p);
......

} else if (newtrace_) {
sprintf(pt_->buffer() + offset,"-Ma %x -Md %x -Ms %x -Mt %s ",
mh->dh_duration,ETHER_ADDR(mh->dh_ra),ETHER_ADDR(mh->dh_ta),
((ch->ptype() == PT_MAC) ? (
(mh->dh_fc.fc_subtype == MAC_Subtype_RTS) ? "RTS" :
(mh->dh_fc.fc_subtype == MAC_Subtype_CTS) ? "CTS" :
(mh->dh_fc.fc_subtype == MAC_Subtype_ACK) ? "ACK" :
"UNKN"
) : packet_info.name(ch->ptype())));
} else {
...

Here is an exmaple NS2 trace file which displays the RTS/CTS/ACK information of MAC layer frame.

r -t 0.003583515 -Hs 0 -Hd -2 ... -Nl MAC -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt ACK
s -t 0.003853348 -Hs 8 -Hd -2 ...-Nl MAC -Nw --- -Ma 2ff -Md 0 -Ms 8 -Mt RTS
r -t 0.004125515 -Hs 0 -Hd -2 ... -Nl MAC -Nw --- -Ma 2ff -Md 0 -Ms 8 -Mt RTS
s -t 0.004135515 -Hs 0 -Hd -2 ... -Nl MAC -Nw --- -Ma 1fd -Md 8 -Ms 0 -Mt CTS
r -t 0.004383682 -Hs 8 -Hd -2 ... -Nl MAC -Nw --- -Ma 1fd -Md 8 -Ms 0 -Mt CTS


Sourced from http://www.cse.msu.edu/~wangbo1/ns2/nshowto7.html

Tuesday, December 9, 2008

Icons have all changed into generic icons.

My Desktop icons have all changed into generic icons. How can I get the original icons back?

Answer:
You can try resetting the icon cache by making a change to the cache and then changing it back. Here's how:
  1. Right click an empty area of your Desktop
  2. Select Properties
  3. Select the Appearance tab
  4. Choose the Advanced button
  5. In the "Item:" drop down menu, click the entry titled 'Icon'
  6. Using the up or down arrows, change the number displayed
  7. Click OK
  8. Using the above instructions, change the value of step #6 back to its original position.

Saturday, November 15, 2008

Narjin Recording Draft


  1. Amazing Grace.mp3

  2. Colors of The Wind.mp3

  3. Moon River.mp3

  4. My Prayer .mp3

  5. On My Own.mp3

  6. Reflection.mp3

  7. Your Lord.mp3

Friday, October 3, 2008

Concurrent remote desktop on XP

Step-by-Step Guide
  1. First of all, you must delete, or rename, an existing dynamic link library (termsrv.dll) that is a daemon program serving the remote desktop request. The library may exists in several directories such as
    • $windir\system32\dllcache\
    • $windir\system32\
    where $windir must be substituted with Windows system directory.
  2. Copy a new termsrv.dll to $windir\system32
  3. Change registry either using regedit program or by double-clicking ts_concurrent_session_path.reg
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\Licensing Core]
    "EnableConcurrentSessions"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "EnableConcurrentSessions"=dword:00000001
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "AllowMultipleTSSessions"=dword:00000001

  4. Open the Group Policy Editor by running Start Menu > Run > 'gpedit.msc'. Navigate to Computer Configuration > Administrative Templates > Windows Components > Terminal Services. Enable 'Limit Number of Connections' and set the number of connections to 3 (or more).
  5. Restart the computer.

Friday, July 18, 2008

101 Reasons of Slices
슬라이스가 나는 101 이유

실제 슬라이스가 생기는 궁극적인 이유는 단 한가지입니다. 즉, 헤드의 진행 방향과 헤드면이 직각이 아닐 경우, 즉 타격 순간 스퀘어가 이루어지지 않았을 때 생깁니다. 그러나 슬라이스를 교정하기 위해서는 헤드가 아니라 본인이 무엇이 잘못하는 지를 파악할 필요가 있다고 봅니다.

  1. 타격 순간에 오른팔꿈치가 굽었다.
  2. 왼팔의 속도가 빠르다.
  3. 클럽을 너무 꽉 잡는다.
  4. 백스윙면이 세워져 있다.
  5. 타격후 왼팔꿈치가 빨리 접힌다.
  6. 백스윙이 너무 크다.
  7. 백스윙시 왼팔꿈치가 굽었다.

Tiger's iron shot