Recent Notes
Displaying keyword search results 1 - 3
Created by nogeek on November 03, 2010 20:52:49
Last update: November 23, 2011 08:54:44
My problem is simple: in my XML data, a timestamp is provided as a long integer (number of milliseconds since the "the epoch"). When I do XSLT, I want to display it as a readable string, such as "Mon Nov 01 18:08:48 CDT 2010". After hours of struggle, I found: It's not so easy to get the job done with JDK 1.6 There are tons of garbage on the web in this space (suggestions, code snippets that simply don't work) Simple Xalan extension functions was the only resource that's somewhat informative. Even there some of the examples don't work. Below is a list of what worked and what didn't. This works:
<xsl:stylesheet version="1.0" xmlns:xsl="h... This does not (providing long value to Date constructor): <xsl:stylesheet version="1.0" xmlns:xsl="h......
Created by Dr. Xi on March 30, 2011 13:43:05
Last update: March 30, 2011 13:45:27
Method 1 - use javap with verbose flag:
$ javap HelloWorld -verbose | head
Compiled fro...
Method 2 - use a utility class:
import java.io.*;
import java.nio.ByteBuffer;
...
According to the VM Spec , a Java class file has this structure:
ClassFile {
u4 magic;
...
Created by Dr. Xi on September 13, 2008 21:16:14
Last update: September 13, 2008 21:47:22
Oracle provides three view to find information about an object: USER_OBJECTS describes all objects owned by the current user. This view does not display the OWNER column. ALL_OBJECTS describes all objects accessible to the current user. DBA_OBJECTS describes all objects in the database. These are the columns: Column Name Description OWNER Owner of the object OBJECT_NAME Name of the object SUBOBJECT_NAME Name of the subobject (for example, partition) OBJECT_ID Dictionary object number of the object DATA_OBJECT_ID Dictionary object number of the segment that contains the object OBJECT_TYPE Type of the object (such as TABLE, INDEX) CREATED Timestamp for the creation of the object LAST_DDL_TIME Timestamp for the last modification of the object resulting from a DDL statement (including grants and revokes) TIMESTAMP Timestamp for the...