Recent Notes

Displaying keyword search results 91 - 100
Created by Dr. Xi on March 08, 2009 21:35:25    Last update: March 08, 2009 21:35:25
This tip is from http://developers.sun.com/global/technology/standards/reference/faqs/determining-file-encoding.html , which also suggested Solaris's auto_ef utility. Open the file in Mozilla Firefox Make sure the file is displayed properly Look at Character Encoding from the View menu.
Created by Dr. Xi on February 15, 2009 23:43:38    Last update: February 15, 2009 23:43:38
[mysqld] # You can write your other MySQL ser... Full information is available from official MySQL web site.
Created by woolf on January 24, 2009 04:01:26    Last update: January 24, 2009 04:01:26
Command Meaning ./configure configure the package for your system make compile the package make install install the programs and man pages make clean remove the program binaries and object files make distclean make clean, but also remove the files that 'configure' created
Created by Dr. Xi on April 22, 2007 21:58:45    Last update: January 19, 2009 20:26:12
Your code will be syntax highlighted when you specify the language of your code with the BBcode code tag: [code=lang] Your code here [/code] where "lang" is the language of your code. For example, the following Perl code #!/usr/bin/perl print "Hello World!\n"; is rendered with: [code=perl] #!/usr/bin/perl print "Hel... The following are supported languages and their corresponding names for BBcode: Apache conf: apacheconf, aconf, apache Bash... The full list is available from http://pygments.org/ , which is our backend engine for syntax highlight rendering.
Created by woolf on January 15, 2009 05:05:19    Last update: January 19, 2009 05:07:49
MinGW is "Minimalist GNU for Windows" - a collection of freely available and freely distributable Windows specific header files and import libraries that allows you to build Windows native executables with GCC. MSYS is a minimal system that provides a POSIX compatible shell and utilities so that you can run the normal set of GNU build tools (such as configure, make). You can download MinGW and MSYS from sourceforge.net: http://sourceforge.net/project/showfiles.php?group_id=2435 . The set of files is overwhelming and installation is confusing sometimes. But here's what I did in order to build ffmpeg on Windows XP: Download "Automated MinGW Installer" (MinGW 5.1.4) Install MinGW 5.1.4. Select "Candidate". Check g++, but leave other options unchecked Finish installation of MinGW Install MSYS DTK 1.0 in C:\msys\1.0. Download "MSYS...
Created by Dr. Xi on October 27, 2008 03:41:59    Last update: October 27, 2008 03:44:27
Syntax: qr/STRING/msixpo For example: $rex = qr/my.STRING/is; s/$rex/foo/; ... Since Perl may compile the pattern at the moment of execution of qr() operator, using qr() may have speed advantages in some situations, notably if the result of qr() is used standalone: sub match { my $patterns = shift; ... Options are: m Treat string as multiple lines. s Treat s...
Created by Dr. Xi on October 23, 2008 03:54:04    Last update: October 23, 2008 03:57:44
Add validator plugin in struts-config.xml <struts-config> . . . ... Set validate="true" on action form <struts-config> <!-- ========== Form Bean De... Add validation rules in validation.xml <?xml version='1.0' encoding='windows-1252'?> <... If you override validate , make sure super.validate is called. package com.example; import javax.servlet.h... Read the documentation: http://struts.apache.org/1.2.4/userGuide/dev_validator.html
Created by Dr. Xi on October 18, 2008 03:16:24    Last update: October 18, 2008 03:17:21
Normally the browser opens a page if it knows how to. For example, text files are usually displayed in the browser window. You can set the Content-Type and Content-Disposition headers in the HTTP response to force the browser to popup the download dialog. Python example: def download_log(req, app = None, file = None): ... Java example: public void service(HttpServletRequest req, Ht...
Created by Dr. Xi on October 16, 2008 20:27:33    Last update: October 16, 2008 20:31:04
Whereas in Perl you initialize a hash like this: %food_color = ( "Apple" => "red", ... In Java, you usually do this: Map<String, String> fruitColors = new HashMap<... Using an initializer block you can make it more or less like the Perl syntax, although still not as clean: Map<String, String> fruitColors = new HashMap<... This may become handy when you pass a Map as a parameter to a method call and need to initialize the Map in place.
Created by Dr. Xi on October 04, 2008 03:29:55    Last update: October 04, 2008 04:26:40
<html> <body> <script language="JavaScript" ...
Previous  3 4 5 6 7 8 9 10 11 12 Next