Displaying keyword search results 101 - 110
Created by alfa on May 24, 2011 15:59:41 Last update: May 24, 2011 15:59:41
Java reflection with Apache beanutils example.
import org.apache.commons.beanutils.MethodUtils; ...
Created by James on May 19, 2011 16:02:40 Last update: May 19, 2011 16:05:05
Finally, MathJax makes showing math equations in the browser a reality! Here are some simple demos. A simple example:
<!doctype html> <html> <head> <title>Math...Add HTML styling for Firefox:
<!doctype html> <html> <head> <title>Math...
Created by James on March 27, 2009 03:20:58 Last update: May 08, 2011 12:32:31
Use show create table <tablename> :
mysql> show create table my_test_table; +------...Select from information_schema.table_constraints and information_schema.key_column_usage
mysql> select * from information_schema.table_cons...
Created by freyo on May 06, 2011 16:07:33 Last update: May 06, 2011 16:08:36
-----BEGIN PRIVATE KEY----- MIIEvAIBADANBgkqhki...Certificate:
-----BEGIN CERTIFICATE----- MIIEqDCCA5CgAwIBAgI...Import the key pair to the debug keystore:
$ cat platform.pem platform.x509.pem >platform-key...
Created by Dr. Xi on May 03, 2011 14:27:15 Last update: May 03, 2011 14:28:06
The XML schema for a contact might look like this:
<?xml version="1.0" encoding="UTF-8"?> <schema ...With XML digital signatures , a Signature element is inserted inside the contact element after the contact file is signed. Like this:
<?xml version="1.0" encoding="UTF-8" standalone="n...which no longer validates with the original schema. The schema should be updated to (with the addition of digital signature namespace, schema import and Signature ref ):
<?xml version="1.0" encoding="UTF-8"?> <schema ...
Created by jinx on May 03, 2011 12:11:35 Last update: May 03, 2011 12:12:27
The PHP function is_resource returns TRUE if a variable is a resource. This may come in handy when a function you are calling returns mixed type. For example mysql_query returns TRUE or FALSE for INSERT , UPDATE , DELETE etc., but returns resource or FALSE for SELECT , SHOW , or DESCRIBE .
<?php $rows = array(); if ($res = mysql_quer...
Created by jinx on May 03, 2011 11:43:26 Last update: May 03, 2011 11:43:26
The PHP function strval returns the string value of a variable. It does the same thing as casting a variable to string, or automatic conversion where string is expected. Conversion rules: Type String Value Boolean TRUE '1' Boolean FALSE '' (empty string) integer of float string representing the number Array The string 'Array' Object Result of __toString() if defined, error otherwise Resource 'Resource id #n' , where n is a number assigned to the resource. NULL '' (empty string) Example:
<?php set_error_handler(function($errno, $errst...Results:
bool(true) --------------------- strval: '1'...
Created by James on May 01, 2011 21:57:33 Last update: May 01, 2011 21:57:33
Both visibility:hidden and display:none hides an element in the DOM. But elements with visibility:hidden still takes up space, while display:none does not. Example (click the divs to hide or show):
<!doctype html> <html> <head> <style t...
Created by James on May 01, 2011 21:40:35 Last update: May 01, 2011 21:47:18
<!doctype html> <html> <head> <script ...Note that there's still a possibility that both clicks and double clicks fired at the same time. This is because the timer used above may not be identical to the double click timer configured at the OS level. It's impossible to fix this problem in application code since each user may...
Created by James on April 30, 2011 21:28:06 Last update: May 01, 2011 13:00:35
This script moves a paragraph inside a div and then move it out.
<!doctype html> <html> <head> <title>M...