Tuesday, December 30, 2008

Forming amide bonds

The carboxylic acid needs to be activated by certain carbodiimide such as EDC. More often than not, NHS is added to form semi-stable reactive intermediate.
A typic recipe is as follows:
PBS buffer solution, containing 0.2 M EDC and 0.05 M NHS.

References:
1. http://en.wikipedia.org/wiki/Carbodiimide
2. http://www.piercenet.com/Objects/View.cfm?type=ProductFamily&ID=02030312

Chemical terms

carbonyl: C=O
carboxyl: COOH
carboxylic acid: COOH
amide(pronunciation i:): O=C-NR(R')
amine(pronunciation i:): NRR'R''
ammonia: NH3

imide: O=C-N-C=O
carbodiimide: N=C=N
amino acid: R-N-C-COOH

Saturday, December 27, 2008

Stream Desktop with VLC

On the server computer, lauch VLC. Go to Media->streaming.
Go to Capture tag, select Desktop for Capture mode; pick up a right number for the frame rate.
Click Stream.
On the Stream Output page, check RTP, fill Address with the IP of the client computer.
In the Profile section, check MPEG-TS on Encapsulation tag; check video, select MPEG-4 ( or other codes, which have been installed on your computer) for Codec on Video codec tag; check Audio, select MP3 for Codec on Audio codec; click stream.

However, you cannot watch good video played on the desktop because the stream is produced in real time with compromised quality.

Stream Video with VLC

The procedure is the exactly same as MP3 except one point: in the Stream Output window, in the profile section, you need to select MPEG-TS.
If you can only hear the sound, try to select MPEG-4 from the Video Codec tag in the profile section.
Because of the big size of video files, wireless internet connection leads to choppy video and is thus not recommended. Use network cable.

Stream MP3 with VLC

1. Download VLC 0.9.8a from http://www.videolan.org/. It can be used as both a server and a client.

2. On the server computer, lauch VLC. Go to Media->streaming.

  • Pick up a MP3 file. It can contain Chinese characters.
  • On the Stream Output page, check RTP in the Outputs section; fill address with the IP of the client computer
  • Click Stream button at the bottom right.

3. On the client computer, lauch VLC. Go to Media->Open Network; select RTP for Protocol, fill Address with the IP of the client computer; click Play at the bottom right.

Note: WMA files cannot be streamed in this way.

Sunday, December 21, 2008

View or Disable Programs Running at Startup

"Windows Defender lets you view the list of programs running at Windows startup. You can also disable or permanently remove unneeded entries.
1. From Windows Defender, click the "Tools" button.
2. Select "Software Explorer".
3. Next to "Category" make sure "Startup Programs" is selected.
4. Windows Defender will now go through each startup program and try to verify that it is legitimate against a database of known programs.
5. To view details on a particular startup entry just click the entry. Information you may see will include:
* File Name* Display Name* Description* Publisher* Digitally Signed By* File Type* Startup Value* File Path* File Size* File Version* Date Installed* Startup Type* Location* Classification* Ships with Operating System
6. If you want to remove an entry from your startup list, consider disabling it first. This way you can easily re-enable it later if you find out the startup entry was useful.
To temporarily disable an entry, click the entry and then click the "Disable" button.
7. To remove an entry from the startup list, click the entry and then the "Remove" button."

Thursday, December 18, 2008

Cannot open hard drive by double clicks

From TechTalkz.com by bakuryu:

"1. Run Task Manager and go to the Process Tab.

2. Stop wscript.exe process if available by highlighting the process name and clicking End Process.

3. Then terminate explorer.exe process.

4. In Task Manager, click on File -> New Task (Run…).

5. Type cmd and click OK.

6. Type the following command one by one :

del c:\autorun.* /f /s /q /a
del d:\autorun.* /f /s /q /a
del e:\autorun.* /f /s /q /a
del f:\autorun.* /f /s /q /a
del g:\autorun.* /f /s /q /a
del h:\autorun.* /f /s /q /a

7. Again in Task Manager, click on File -> New Task (Run…).

8. Type regedit into the Open text box and click OK.

9. Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
and check the value of this key : Userinit.
The correct value of this key will be :C:\WINDOWS\system32\userinit.exe,
assuming your Windows is installed on the C drive. If the value is incorrect correct it to value mentioned. Note the trailing comma is necessary.

10. Close registry editor and cmd. Then go to : Task Manager, click on File -> New Task (Run…), type in explorer. It will restart the explorer process. Now try opening your drives."

Thursday, December 4, 2008

AVG 8 - Invalid Update Control CTF File

I'm using Windows Vista 64-bit, so the location of the *.ctf files is different from that mentioned by others.
  1. Go to “C:\ProgramData\avg8\update\download” directory.
  2. Deleted all *.ctf files.
  3. Launch update.

Note: you've got to choose "show the hidden folders and files" to see this path.

Saturday, November 29, 2008

Install Diablo on Virtual PC

  1. Install Virtual PC 2007.
  2. Create a Windows XP guest OS through your Virtual PC: 256 MB memory, 5 GB hard disk.
  3. Create ISO image files for all the applications you are about to install.
  4. Install Windows XP via "CD->capture ISO image".
  5. "Action->install or update Virtual Machine Additions".
  6. Install Diablo II via "CD->capture ISO image".
  7. Install Diablo LOD via "CD->capture ISO image".
  8. Download LODPatch_112a from Blizzard Support.
  9. Enjoy!

Note: The host computer must use network cable to make the virtual PC network function.

Auto Logon to Windows XP

Found it from www.microsoft.com by Doug Knox:

"You can configure Windows XP to automate the logon process if your computer is not part of a domain.

1. Click Start, click Run, and type control userpasswords2.
2. Clear the Users must enter a username and password to use this computer check box.
3. Click Apply.
4. Enter the user name and password you wish to automatically log on with, and then click OK.
5. Click OK again and you're all done.


This feature allows other users to start your computer and use the account that you establish to automatically log on. Enabling auto logon makes your computer more convenient to use, but can pose a security risk."

Run Diablo in multiple windows by Virtual Machine (zz)

Found this in Baron's Bazaar written by FeastForCrows:

" I was messing around with virtual machines using Windows Virtual PC 2007, so I thought I would see if I could run D2 in a virtual PC session. That worked, so I tried another installation in another virtual machine ( I have 2 full sets of the D2 CDs) which then allowed me to concurrently run two D2 sessions at once on one computer.If you are not familiar with virtual machines, it is like each running virtual machine is its own computer with its own memory, hard drive, etc. which is totally separate from host system. Therefore each D2 session running inside a virtual machine does not see any other D2 session, so they coexist happily.Both sessions are displayed simultaneously on the same computer screen, and you just slide your cursor between them to control each session. You do not have to iconify one to see the other as with running two D2 sessions within the same windows session.

From the screenshot above you can see the two sessions. My screen size on my laptop is not quite big enough to show 2 800x600 windows so there is a bit of overlap on the two sessions. With an external monitor this is not an issue.Another thing that makes it convenient is that you can save the running state of the virtual PC so that you have an extremely rapid start up of your D2 session. It takes about 6 or 7 seconds to get back onto Battlenet when you click on a dormant session.

technical info:
Host OS: Windows Vista business
Guest OSs: 2 X Windows XP (256Mb RAM, 5Gb Hard drive, 800x600 resolution)
Host PC: Dell latitude (notebook) D620, 2 Gb RAM "

Friday, November 28, 2008

Ways avoiding Blizzard ban

  1. Don't use D2loader.
  2. As you are using mindigo, turn off the dropping notifier.

Run Diablo in multiple windows by FastSwitch users(zz)

Found it from d2jsp forum written by JMH:

"I found a way to have more than one Diablo II up at once This method uses no editing of files and no other program whatsoever (like hex editors and d2loader). This method requires you to have the Diablo II cd in your CD-ROM, and requires legit cdkeys installed in order to work properly.

You have to have 1 complete installation on Diablo II for each window you want to run. For example if you want to run 3 Diablo II's you must have 3 Diablo II's installed in different directories on your hard drive. (It does not matter what you named the directory or the location of them, just make sure they are in different folders) The cdkeys you use must be the default ones you installed in your Diablo II installation directory. You will not be able to use any cdkey.mpq files that you made with Onlyers's cdkey changer.

Assuming you use Windows XP, go to your control panel. Click on User Accounts. Make separate user accounts for each Diablo II window you want to have loaded. For example my User Accounts are JMH, JMH2, JMH3 on my computer. This allows me to have 3 D2's active at once. If I wanted to have 4 up at once all I would have to do is create another user account and install a fourth Diablo II on my hard drive.

Once you created all the accounts, click on change the way users log on or off. Make sure you have the Use the Welcome Screen and Use Fast User Switching boxes both checked. Then close the user accounts screen and your control panel screen.Start one Diablo II game then alt tab out of it, click on start menu, then click log off, then select switch user, then click on whatever user you want to load. (The first time you switch to a different user account it will take a minute to load each one, after it has loaded once already it is a very quick process) Then start another Diablo II game that is loacated in a different directory with a different cdkey as the default. Repeat this process for however many games you want active at once.

This method is 100% legit. It does not alter any D2 files or use any other programs that Blizzard doesnt like us using. There is NO way that blizz can do anything about it. You did not alter their files or use any 3rd party programs. Now we can have as many D2 windows up at once and not have to worry if blizz will do anything about it No more worries about droping due to timeout (except for the usual ones that blizz gives you every once and a while becasue of server lag).With hex editors and d2loader you run the possibilty of Blizz banning you because it viloates the EULA we all agreed to when we created our BNET accounts. (Hex editors alter Diablo II files and thus is in violation of EULA, and d2loader disables the cdkey check which is a copywright violation) As i said earlier, I did not discover this method, this guide is based off a method that was posted by Inokis on mousepad's forums.Moderators Please sticky and pin this post.
"

Wednesday, November 26, 2008

Let RedVex work with your Diablo II server

You can test your RedVex plugin on your own server.
However, Redvex and the server cannot be installed on the same computer due to port conflict.
The configuration of RedVex is as follows.
  1. Launch RedVex.
  2. Go to “setting”, click “option”, in “server setting”, change “Name” to your D2GS IP; make sure “chat” 6112, “realm” 6113, “game” 4000.

Note: You can also add the new Realm name through RedVex besides Battle.net (TM) Gateway editor. Go to setting”, click “realm”, add or modify realm as you want.

Install Diablo server

I’ll show you how to set up Diablo II server (closed realm) on windows XP for Diablo II & LOD, up to v1.12a.

1. Software needed

a. Player Vs. Player Gaming Network Server (PvPGN)
It is a battle.net server emulation. Supporting Blizzard games, such as StarCraft, Diablo II, and Warcraft III.
Go to download page, click on “more files”. Pick up one from the “pvpgn(stable)” list. Strings such as odbc, SQLite, MySQL stand for the database you may use to support the software. For simple use, you don’t have to worry about them except SQLite.
I’m using “PvPGN-1.8.2-0-Win32-MySQL-5.0.45-BIN.zip”.
Scroll down to the “support files”, download “pvpgn-support-1.2.zip”.

b. Diablo II Game Server (D2GS)
It is the key part to turn PvPGN into a Diablo server. I’m using “D2GS-112a(1).rar”.

2. Set up file structure

a) Extract “PvPGN-1.8.2-0-Win32-MySQL-5.0.45-BIN.zip” to a directory called “PvPGN”.
b) Extract “pvpgn-support-1.2.zip” to “PvPGN\files”.
c) Create a folder called “D2GS” in “PvPGN”.
d) Extract “D2GS-112a(1).rar” file to “PvPGN\D2GS”.
e) Copy the following files from the installation directory of Diablo II LOD to “PvPGN\D2GS”.
d2data.mpq
d2exp.mpq
d2sfx.mpq
d2speech.mpq
Patch_D2.mpq
D2Client.dll
D2CMP.dll
D2Common.dll
D2Game.dll
D2gfx.dll
D2Lang.dll
D2MCPClient.dll
D2Net.dll
D2sound.dll
D2Win.dll
Fog.dll
ijl11.dll
Storm.dll

3. Configuration

a. D2GS configuration
Go to D2GS folder, RIGHT-CLICK "d2gs.reg", and left-click "Edit".
Find "D2CSIP"="192.168.1.1" & "D2DBSIP"="192.168.1.1", and change the pre-configured IP to the IP of the server computer.
Run the "install.bat" in D2GS folder.
Click "yes" when prompted "Are you sure you want to add the information in....to the registry"
(NOTE: D2GS has been registered as a service which will begin automatically, the next time your computer restarts).
This will import the registry information to “HKEY_LOCAL_MACHINE\SOFTWARE\D2Server”, and install “D2GSSVC.exe” as a server.
Go to registry to double check it.

b. D2CS configuration
Go to “PvPGN\conf”.
Open "d2cs.conf" in a text editor.
Find and change the following lines:
realmname = D2CS to realmname = "[Realm Name You Want]"
(NOTE: ADD quotes!!! Or else you Will have a problem if your realm name has any spaces in it)Edit the following lines to match the IP of your server:
servaddrs = [IP OF YOUR SERVER]:6113
gameservlist = [IP OF YOUR SERVER]
bnetdaddr = [IP OF YOUR SERVER]:6112
Save & Close "d2cs.conf"

c. D2DBS configuration
Go to “PvPGN\conf”.
Open "d2dbs.conf" in a text editor. Find and change the following lines:
servaddrs = [IP OF YOUR SERVER]:6114
gameservlist = [IP OF YOUR SERVER]
Save & Close "d2dbs.conf"

d. Realm configuration
Go to “PvPGN\conf”.
Open "realm.conf" in a text editor. Find and change the following lines:
#"D2CS" "PvPGN Closed Realm" 1.2.3.4:6113
Remove the preceding “#”;
change “D2CS” to match the realm name in d2cs.conf;
change “1.2.3.4” to your server IP.Save & Close "realm.conf"

e. Channel configuration (optional)
Go to “PvPGN\conf”.
Open "realm.conf" in a text editor.
Delete everything starting from the line of “westwood online channels”.Note: By doing this, you can remove the error message showing in the PvPGN server window.

4. Starting server

a. Run "install.bat" in “PvPGN” directory. This will install the PvPGN programs as services, including d2csConsole.exe, d2dbsConsole.exe and PvPGNConsole.exe.
b. Run “D2GS.exe” in “D2GS” folder.
c. Restart your computer. Go to: Start Menu -> Settings -> Control Panel -> Administrative Tools, and run "Services". All four services should automatically start. (The forth one is Diablo II close realm server).
d. Turn off any internet security software and windows firewall.
e. Go to:Start Menu -> Runtype, "cmd" then press enter to get to command promtIn command promt,
type: "telnet [IP OF D2GS SERVER] 8888"
Return will be: "password: _"
Type, "abcd123" as password
(NOTE: Once in Administrative Console, you can type "help" for a list of commands)
type, "maxgame [ANY VALUE HIGHER THAN 0] (example: "maxgame 50")
This will allow you to create the specified number of parallel Diablo games.

5. Playing on Diablo II server

a. Download a Battle.net (TM) Gateway editor.
b. Run the Battle.net (TM) Server Editor program.
Choose the “Diablo” tag at bottom.Add in your server name, IP address, zone (actually timezone referenced to GMT).
c. Start Diablo II, choose the created gateway.

6. Internet security software and windows firewall

a. If everything works fine so far, turn back on your Internet security software and windows firewall.
b. Create exceptions for the server programs and certain ports.