Recent Notes

Displaying keyword search results 11 - 17
Created by magnum on December 03, 2010 08:53:18    Last update: December 03, 2010 08:54:23
You can use the ntfsresize utility on Linux to shrink or expand an NTFS partition (boot, for example, with the DRBL live cd). To shrink an NTFS partition: shrink NTFS (the file system) with ntfsresize. re-create a smaller partition to hold the shrinked file system with FDisk. To expand an NTFS partition: Recreate a partition that's bigger than the previous one. expand NTFS to the full size of the new partition. The following are from excerpts from ntfsresize FAQ (Frequently Asked Questions) : ntfsresize help: [tinker:root]:(~)# ntfsresize -h ntfsresize v1.... ntfsresize example session: [tinker:root]:(~)# ntfsresize -s11000M /dev/hd... Fdisk example session: [tinker:root]:(~)# fdisk /dev/hdc ...
Created by voodoo on January 17, 2010 00:15:47    Last update: January 17, 2010 00:15:47
A runlevel is used to group the daemons (services) to start. For the Fedora/Redhat based Linux systems, the primary runlevels are: runlevel 1: Single-User Mode runlevel 2: Multi-User Mode runlevel 3: Multi-User Mode with Networking runlevel 5: X11 (runlevel 3 + X Window System) The typical workstation runs in runlevel 5. Servers without X-server runs in runlevel 3. To determine what runlevel you are using: # /sbin/runlevel To determine what runlevel your system will boot with: # cat /etc/inittab | grep :initdefault: id:5:in... To switch runlevels (replace RUNLEVEL with appropriate number): # /sbin/init RUNLEVEL When you switch runlevel, be sure that you are at a text console so that you don't accidentally kill your session when X-server is killed.
Created by Fang on August 26, 2009 02:50:20    Last update: January 10, 2010 00:22:44
You can use the Maven archetype plugin to quickly start a new Maven project from scratch: C:\work\maven>mvn archetype:generate [INFO] S...
Created by Dr. Xi on September 10, 2008 15:51:42    Last update: November 26, 2008 21:14:46
Variable Description SET AUTO [COMMIT] {ON | OFF | IMM [EDIATE] | n} Controls when Oracle Database commits pending changes to the database. SET CMDS [EP] {; | c | ON | OFF} Sets the non-alphanumeric character used to separate multiple SQL*Plus commands entered on one line to c. SET CON [CAT] {. | c | ON | OFF} Sets the character you can use to terminate a substitution variable reference if you wish to immediately follow the variable with a character that SQL*Plus would otherwise interpret as a part of the substitution variable name. SET ECHO {ON | OFF} Controls whether the START (@) command lists each command in a script as the command is executed. SET EDITF [ILE] file_name[.ext] Sets the default filename...
Created by Dr. Xi on October 15, 2008 23:27:57    Last update: October 15, 2008 23:28:31
http://www.garykessler.net/library/file_sigs.html lists file signatures for a large number of file types. In particular, PDF files start with %PDF Excel files contain 09 08 10 00 00 06 05 00 (hex) after the first 512 bytes. MS office application files (DOC, DOT, PPS, PPT, XLA, XLS, WIZ) start with D0 CF 11 E0 A1 B1 1A E1 ( ÐÏ.ࡱ.á )
Created by Dr. Xi on September 29, 2008 23:03:40    Last update: September 29, 2008 23:04:08
Variables set automatically by shell: Variable Description $# Number of command-line arguments. $- Options currently in effect (arguments supplied to sh or to set). $? Exit value of last executed command. $$ Process number of current process. $! Process number of last background command. $0 First word; that is, command name. $n Individual arguments on command line (positional parameters). The Bourne shell allows only nine parameters to be referenced directly (n = 1-9); the Korn shell allows n to be greater than 9 if specified as ${n}. $* All arguments on command line ("$1 $2..."). $@ All arguments on command line, individually quoted ("$1" "$2" ...). Variables set automatically by Korn shell: Variable Description ERRNO Error number of last system call that failed. LINENO Current...
Created by Dr. Xi on September 10, 2008 19:52:55    Last update: September 10, 2008 19:52:55
A substitution variable is preceded by one or two ampersands (&). When you run a SQL command with substitution variables, you'll be prompted for the value of each variable. The one ampersand version prompts for a value and use it for the current query. The two ampersands version uses the value for the current query and remembers it. Just like you did a DEFINE myvar 'The Value' , so you won't be prompted again for subsequent queries using the same variable. To enter a literal ampersand, you need to SET ESC on and use the escape character before the ampersand (&). You can also use substitution variables with a script, but you follow the ampersand by a number instead of a name. When you call...
Previous  1 2 Next