Recent Notes

Displaying keyword search results 91 - 100
Created by Dr. Xi on December 04, 2009 04:33:05    Last update: December 04, 2009 04:33:05
Variable Meaning $_ The default or implicit variable. @_ Within a subroutine the array @_ contains the parameters passed to that subroutine. $a, $b Special package variables when using sort() $<digit> Contains the subpattern from the corresponding set of capturing parentheses from the last pattern match, not counting patterns matched in nested blocks that have been exited already. $. Current line number for the last filehandle accessed. $/ The input record separator, newline by default. $| If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0 (regardless of whether the channel is really buffered by the system or not; $| tells you only whether you've asked Perl explicitly to flush after...
Created by Dr. Xi on July 28, 2009 19:00:55    Last update: July 28, 2009 19:03:57
When you install Apache with mod_ssl, an executable file openssl (or openssl.exe for Windows) is installed in /usr/local/ssl/bin (or %APACHE_HOME%/bin ). This utility is used to generate private key and certificate request: Generate private key: openssl genrsa -out server.key 1024 # or wi... Generate certificate request: openssl req -new -key server.key -out server.csr ... Self-Sign Certificate: openssl x509 -req -days 3650 -in server.csr -signk... Apache configuration: Listen 443 <VirtualHost *:443> ServerNam... In some configurations SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unc... is used to work around MSIE bugs. See http://httpd.apache.org/docs/2.2/ssl/ssl_faq.html#msie for details.
Created by Dr. Xi on June 26, 2009 23:34:54    Last update: July 03, 2009 02:27:31
This registry key determines the number of bytes a sender may transmit without receiving an acknowledgment. If left unset, the default size is 8760 (2238 hex). For reliable networks, this size is almost always too small. I increased it to 65535 (FFFF hex) and my download speed for a big file increased from about 450Kbps to about 8Mbps! Windows Registry Editor Version 5.00 [HKEY_... Note: This hack doesn't work for Windows Vista.
Created by Dr. Xi on May 22, 2009 18:58:41    Last update: May 22, 2009 18:58:41
import javax.crypto.Cipher; import javax.crypto...
Created by Dr. Xi on May 02, 2009 21:25:35    Last update: May 02, 2009 22:07:40
Use the built-in dict function: >>> dict([(1,2), (3,4), (5,6)]) {1: 2, 3: 4, 5:... Or, if you have a list with even number of elements and want to use the odd numbered elements for key and even numbered elements for value: >>> a = [ 'a', 1, 'b', 2, 'c', 3 ] >>> dict([(a...
Created by Dr. Xi on April 30, 2009 23:26:13    Last update: May 01, 2009 17:08:49
ApplicationResources.properties contains these keys: test.key.1 = Test Key One test.key.2 = Test Key... Struts (struts-el): <%@ page contentType="text/html;charset=UTF-8" lan... JSTL <%@ page contentType="text/html;charset=UTF-8" lan... However, the values for one and two must be passed in from pageScope , requestScope , sessionScope , etc. Values defined by struts bean:define are not interpreted. Important: JSTL tags work with servlet spec 2.4 only. So your web.xml must start with this: <?xml version = '1.0' encoding = 'windows-1252'?> ... Not this: <?xml version = '1.0' encoding = 'windows-1252'?> ... However, the latter does work with struts-el tags.
Created by Dr. Xi on March 24, 2009 23:40:51    Last update: March 24, 2009 23:41:34
The DECODE function is used to decode a key to a value , returning the default value if one is provided. It returns null if there's no match for keys and no default value is provided. select DECODE(&quarter_id, '1', 'Spring', '2',...
Created by Dr. Xi on March 16, 2009 22:10:29    Last update: March 16, 2009 22:12:35
Generate the keys $ ssh-keygen -t rsa Generating public/private r... Copy id_rsa.pub to the remote server. scp .ssh/id_rsa.pub jmann@sleepy:/home/jmann/.ssh/ Logon to the remote host, append id_rsa.pub to authorized_keys . Make sure authorized_keys is writable only by owner. $ cd ~/.ssh $ cat id_rsa.pub >>authorized_keys ... For putty, you need to convert the private key to putty format using puttygen : and tell it to use the private key:
Created by Dr. Xi on February 23, 2009 21:04:08    Last update: February 23, 2009 21:04:08
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" ...
Created by woolf on February 10, 2009 21:05:54    Last update: February 10, 2009 21:05:54
Press the "Windows" key Press R to bring up the Run dialog Enter tasks and hit Return.
Previous  3 4 5 6 7 8 9 10 11 12 Next