Recent Notes
Displaying keyword search results 91 - 100
Created by James on October 11, 2010 19:01:28
Last update: January 11, 2011 20:38:56
Test page (click the "new window" icon to see the transition):
<!DOCTYPE html>
<html>
<head>
<title>jQu...
Created by James on July 06, 2010 15:27:28
Last update: January 11, 2011 20:20:03
This example shows three jQuery icons with hover effects.
<!DOCTYPE html>
<html>
<head>
<title>jQu...
Hint: mouseover an icon on the ThemeRoller page to get the CSS classname.
Created by James on April 07, 2009 03:29:45
Last update: January 11, 2011 20:04:31
This is a test HTML form with almost all kinds of input types.
It is weird that both IE and Firefox list the fieldset in the forms[0].elements array as an element with undefined name , type and value .
<html>
<body>
<form name="MyTestForm">
...
Created by Dr. Xi on October 26, 2010 04:47:37
Last update: January 11, 2011 20:00:36
The code presented here is a simple implementation of a tab set. It is used to demo how a tab set could be implemented. The code is stand alone and does not depend on any JavaScript libraries. Multiple tab sets within the same page is supported.
The HTML markup is fairly simple:
Tabs sets are contained within a DIV element with class name "tabsContainer".
Define a UL list for the tabs.
Follow the UL list with equal number of DIVs for the tab contents.
The Nifty Corners Cube technique is used to draw the rounded corners (original form, not the enhanced JavaScript form).
HTML, CSS and JavaScript:
<!doctype html>
<html>
<head>
<style typ...
Created by nogeek on December 31, 2010 12:41:05
Last update: December 31, 2010 12:41:05
The JBoss JARStructure class determines whether a deployment, in the form of a file or a directory, represents a packaged or unpackaged JAR archive. If the deployment is a single file then the filename suffix is checked against the following list. If the deployment is a directory then the same check is performed using the directory name. If a match is found in either case, then the deployment is considered a JAR archive. A top level directory is always considered an unpackaged JAR archive, even when the suffix does not match. .zip - a standard archive .jar - a java archive (defined by the Java SE specification) .ear - an enterprise archive (defined by the Java EE specification) .rar - a resource archive (defined by...
Created by nogeek on December 31, 2010 12:30:37
Last update: December 31, 2010 12:30:37
JBoss deployment descriptors are files containing configuration information for deployments. They are detected using the FileStructure class by matching the file suffix or using a FileMatcher . Default file suffixes include:
-beans.xml - contains bean definitions
-aop.xml - contains aspect definitions
-service.xml - contains mbean definitions
-ds.xml - contains JCA datasource definitions
These are defined in $JBOSS_HOME/server/default/conf/bootstrap/deployers.xml :
<!-- File Structure -->
<bean name="FileStr...
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 November 02, 2010 16:07:49
Last update: November 02, 2010 16:11:56
From the command line I can start and stop Windows services with NET START service_name and NET STOP service_name . But the NET command does not give a way to find the service name. You need the sc command to get the service name, below are some examples:
List all running services:
sc query
List all services, running or not running (notice the space after =):
sc query type= service state= all
List all active drivers:
sc query type= driver
Find information about the "Indexing Service" (requires GNU grep):
sc query type= service state= all | grep -i index ...
Start the indexing service:
sc start CiSvc
Stop the indexing service:
sc stop CiSvc
Check the status of the indexing service:
sc query CiSvc
Created by freyo on October 28, 2010 16:26:25
Last update: October 28, 2010 16:26:25
Android emulator needs the name of an AVD (android virtual device) to get started. Use android list avd to see a list of available AVDs.
C:\local\android-sdk-windows>tools\android list av...
Created by James on October 21, 2010 19:48:36
Last update: October 21, 2010 19:50:43
Use the in operator to enumerate over an object's properties:
Use the in operator to list all properties of an object
Call the hasOwnProperty function to determine if the property is a direct attribute of the current object, i.e., not some attribute defined somewhere up the prototype chain.
Test code (copy and paste to the JavaScript Executor ):
function BaseClass() {
this.p1 = 'parent.p1...
Note that intrinsic attributes such as constructor , prototype are not listed by the in operator.