Recent Notes

Displaying keyword search results 1 - 5
Created by James on October 16, 2013 09:14:24    Last update: October 16, 2013 09:14:24
The initial attempt was to compile the bunch of LESS files with: lessc less/* But then I got errors like: NameError: variable @line-height-computed is undef... The order of LESS files listed is important. Variables are defined in variables.less , so it should be listed first. For Bootstrap, the ordering is defined in bootstrap.less . So all you have to do is ( this is the right way ): lessc bootstrap.less bootstrap-compiled.css Just for the reference, this is the content of bpptstrap.css : /*! * Bootstrap v3.0.0 * * Copyright 2...
Created by Dr. Xi on April 20, 2011 21:44:15    Last update: May 02, 2011 20:56:58
The String.format() method provides versatile formatting capabilities. This tutorial tries to present these capabilities in a accessible manner. The format string A format string can contain zero, one, or more format specifiers . The general form of a format specifier is: %[argument_index$] [flags] [width] [.precision]co... where things in square brackets are optional, and conversion is a character indicating the conversion to be applied to the corresponding variable value. The only required characters in the format specifier is the percent sign % and the conversion character. A simple example: public static void simpleFormat() { System.out... The Argument index The argument index is specified by a number, terminated by the dollar sign $ . The same argument may be repeated multiple times in a format string. Unindexed...
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 July 29, 2009 20:58:51    Last update: July 29, 2009 20:58:51
You need to set several system variables in order to run a SQL script to update a column with JavaScript code: SQLT: set sqlt off The default SQLT (SQL terminator) is semicolon, which is used in JavaScript as statement terminator. Blank lines: set sqlblanklines on Blank lines are abundant in JavaScript. Don't let them terminate your SQL statement No variable substitution: set define off The ampersand is a JavaScript operator, which is also used by SQL*Plus for variable substitution. You should turn variable substitution off to preserve the JavaScript code. Finally, use slash (/) on a blank line to terminate your SQL code. Example: UPDATE events set JSCODE = 'var a = 1; var ...
Created by Dr. Xi on November 12, 2008 22:56:00    Last update: November 12, 2008 22:56:00
Set the PAGESIZE system variable to 0 to suppress headings in SELECT results. This is helpful when retrieving source code for packages or stored procedures: SQL> set pagesize 0 SQL> show pages pagesize...