Displaying keyword search results 1 - 12
Created by Dr. Xi on May 25, 2012 15:47:34 Last update: May 25, 2012 15:49:33
Steps to configure SSL for Apache HTTPD server on Windows: In Apache2.2/conf/httpd.conf , load mod_ssl and include httpd-ssl.conf :
LoadModule ssl_module modules/mod_ssl.so ...In Apache2.2/conf/extra/httpd-ssl.conf , make sure the paths for the cert files point to the cert and key you want to use:
# Server Certificate: # Point SSLCertificat...Start up Apache. If it fails, use the command line to see what the error is. There won't be any log in error.log if there are errors in the conf files:
C:\Program Files (x86)\Apache Software Foundation\...I corrected the previous error by using the alternative line for SSLSessionCache :
# Inter-Process Session Cache: # Configure ...
Created by nogeek on August 08, 2010 23:38:04 Last update: August 08, 2010 23:38:04
Especially, the ethernet0.virtualDev = "e1000" line should be absent in order for networking to work.
#!/usr/bin/vmplayer # Filename: Win2000.vmx...
Created by Dr. Xi on June 11, 2010 19:04:18 Last update: June 11, 2010 19:06:35
The caret ^ is DOS command line escape character. Example 1: echo < and > as is, not interpreting them as input/output redirect.
@rem sign an XML file. Requires Java class utils.x...Example 2: treat & literally, not as the special character to combine two commands.
@rem search "dos command line" in Google. curl ...Add switch -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:22.214.171.124) Gecko/20061204 Firefox/126.96.36.199" to make curl look like Firefox.
Created by Dr. Xi on November 19, 2008 00:22:27 Last update: January 07, 2010 23:00:36
There is a open source project named [ini4j] for processing Windows .ini configuration files. However, I found it an overkill for my purposes. So here is my simple implementation of a .ini parser. It mimics the standard java.util.Properties class with enhancements to get and set properties by section name. There are only a few simple rules: Leading and trailing spaces are trimmed from section names, property names and property values. Section names are enclosed between [ and ] . Properties following a section header belong to that section Properties defined before the appearance of any section headers are considered global properties and should be set and get with no section names. You can use either equal sign ( = ) or colon ( : )...
Created by Dr. Xi on December 05, 2009 20:12:16 Last update: December 05, 2009 20:46:45
It's quite easy for Perl to open a pipe and read from it:
$file = "nospace.txt"; open(IN, "cat $file |") ...But the code breaks when the file name contains a space:
# This does not work! $file = "yes space.txt"; ...On Windows, these don't work either:
# This does not work! $file = "yes space.txt"; ...You need to use a technique called Safe Pipe Opens :
$file = "yes space.txt"; $prog = "cat"; ...
Created by Dr. Xi on October 14, 2008 23:26:09 Last update: October 14, 2008 23:27:31
Use the icacls command to display or modify discretionary access control lists (DACLs) on specified files. To save the DACLs for all files in the C:\Windows directory and its subdirectories to the ACLFile file, type:
icacls c:\windows\* /save aclfile /tTo restore the DACLs for every file within ACLFile that exists in the C:\Windows directory and its subdirectories, type:
icacls c:\windows\ /restore aclfileTo grant the user User1 Delete and Write DAC permissions to a file named Test1 , type:
icacls test1 /grant User1:(d,wdac)To grant the user defined by SID S-1-1-0 Delete and Write DAC permissions to a file named Test2 , type:
icacls test2 /grant *S-1-1-0:(d,wdac)The icacls command line utility is a partial replacement for cacls .
Created by Dr. Xi on October 09, 2008 22:53:14 Last update: October 09, 2008 22:54:28
Sometimes you can't access a file because you don't have the right permissions. But if you are an administrator, you can take ownership of the file first then change the permissions to grant yourself access. From the command line, use takeown :
@rem take ownership of a single file takeow...
Created by Dr. Xi on June 03, 2008 03:22:59 Last update: June 03, 2008 03:29:44
Right click the C: drive and view properties. Vista tells me that I'm using about 40GB of my hard drive. Since this is a new computer and I don't have a lot of media files, this doesn't sound right. So I added up the numbers from the folders under C:, it came up to about 18GB. Where did the rest of the used storage go? After some research, I found that there's a new thing called "System Restore and Shadow Copies" that can potentially use up a lot of disk space. And indeed it did.
C:\Windows\system32>vssadmin List ShadowStorage ...Running the "Disk Cleanup" tool brought the usage down to about 2G. Considering that the paging file used about 2G and giving some space for file...
Created by Dr. Xi on December 11, 2007 19:42:17 Last update: December 11, 2007 19:44:06
In .vimrc, or _vimrc on Windows, add line:
" will try to open file in dos, unix, or mac forma...
Created by Dr. Xi on August 26, 2007 23:22:30 Last update: August 27, 2007 02:00:18
If you want to add security to your wireless network, you almost never want to use WEP . WPA is an improved encryption algorithm that avoids many of the WEP vulnerabilities. However, FC4 (Fedora Core) doesn't support WPA out of the box. I have to install wpa_supplicant in order to access my wireless AP with WPA encryption. Since my Airlink wireless card only shipped with Windows drivers, I also needed ndiswrapper to make it work under Linux. This is my experience setting up wpa_supplicant with ndiswrapper. 1. Download wpa_supplicant 0.5.8 from http://hostap.epitest.fi/wpa_supplicant/ . Extract files to a working directory. 2. Create a .config file that contains:
CONFIG_DRIVER_NDISWRAPPER=y CONFIG_CTRL_IFACE=yThe first line initially read CONFIG_DRIVER_WEXT=y following the ndiswrapper documentation, but that didn't work for me. 3....
Created by Dr. Xi on August 16, 2007 20:54:04 Last update: August 16, 2007 20:54:04
PuTTY is a free telnet/ssh client. Even though its release number is still less than 1.0, it's actually pretty stable (I've used 0.6 and prior versions on Windows). For Windows binaries, you download each utility individually: PuTTY (the Telnet and SSH client itself) PSCP (an SCP client, i.e. command-line secure file copy) PSFTP (an SFTP client, i.e. general file transfer sessions much like FTP) PuTTYtel (a Telnet-only client) Plink (a command-line interface to the PuTTY back ends) Pageant (an SSH authentication agent for PuTTY, PSCP and Plink) PuTTYgen (an RSA and DSA key generation utility).
Created by Dr. Xi on May 05, 2007 19:23:39 Last update: May 05, 2007 19:25:11
DOS files end a line with <CR><NL>, Unix files end a line with <NL> only, Mac files end a line with <CR>. When you edit a DOS file on Unix, you see the annoying ^M's at the end of each line. If you edit a Mac file on Windows, there'll be no line breaks - all lines are displayed as one line! You can use the "e" command to specify the file format:
:e ++ff=doswhich interpretes the line ending acording to the file format specified but does not alter the file. If you want to change a UNIX file to a DOS file, use this instead:
:set ff=doswhich would change all \n to \r\n.