Recent Notes
Displaying keyword search results 1 - 10
Created by Dr. Xi on February 06, 2012 12:14:11
Last update: February 07, 2012 15:39:35
Oracle sqlplus command line tools does not support command line editing out-of-the-box. But on Linux there's a handy utility that enables command line editing with any command line tool: rlwrap - readline wrapper.
Install rlwrap:
$ sudo apt-get install rlwrap
Create a keywords file .sql.dict (optional, but convenient):
false null true
access add as asc begin by chec...
It would be nice to add the tables names also.
Create an alias for sqlplus (put it in .bashrc ):
alias sqlplus='rlwrap -f $HOME/.sql.dict sqlplus'
Created by James on February 02, 2012 09:20:22
Last update: February 02, 2012 09:20:22
This example came from the jQuery validation documentation. The required rule can be used to validate a required selection box when you set the value of the first option to empty.
<!DOCTYPE HTML>
<html>
<head>
<scrip...
The error message is the title since no error message is specified. A more fully defined validation check would look like this:
$('#my-form').validate({
errorElement: "p",
...
Created by voodoo on August 08, 2011 12:28:16
Last update: August 08, 2011 12:28:16
$ sudo yum whatprovides pcre-devel
Loaded plugi...
Created by freyo on May 09, 2011 12:50:52
Last update: May 09, 2011 12:51:54
You can use the android.os.StatFs class to check for available space on the sd card.
Example code:
// import android.os.Environment;
// import...
Created by freyo on May 06, 2011 14:28:21
Last update: May 06, 2011 14:29:03
I got this error while building Android. It meant that I was missing the libhistory.a static library.
# yum whatprovides */libhistory.a
Loaded plugin...
# yum install readline-static-6.1-2.fc14.i386
...
Created by voodoo on March 07, 2011 15:24:26
Last update: March 07, 2011 15:24:26
# yum install mysql-server
Loaded plugins: pres...
Created by voodoo on March 04, 2011 12:20:34
Last update: March 04, 2011 12:20:34
# yum whatprovides libmpfr.so.1
Loaded plugins:...
Created by voodoo on March 04, 2011 12:16:52
Last update: March 04, 2011 12:16:52
# yum whatprovides libgmp
Loaded plugins: prest...
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 freyo on August 26, 2010 20:55:44
Last update: August 26, 2010 20:56:39
Android adb failed to start after I installed the SDK. Running adb from the command line reveals the error:
/lib/ld-linux.so.2: bad ELF interpreter: No such f...
I'm running 64-bit Fedora but Android adb is looking for 32-bit Linux loader. This is resolved by installing the 32-bit libraries.
# yum whatprovides ld-linux.so.2
Loaded plugins...
I did the same for libncurses.so.5 and libstdc++.so.6 to resolve all dependencies.