Recent Notes
Displaying keyword search results 81 - 90
Created by Dr. Xi on April 06, 2010 22:55:13
Last update: April 06, 2010 22:56:38
These are the steps to diagnose the "javax.jms.Destination found at the specified destination-location" error an MDB in the Oracle application server (oc4j) environment. The data source is correctly configured and connection can be successfully established. Test this from the Oracle AS em console. The destination queue exists and is started. If you are using PL/SQL Developer, you can check this by right clicking on the queue name and make sure that "Enqueue Enabled" and "Dequeue Enabled" are checked. Deployment descriptors are correctly set up. The database user used for the JDBC connection pool has the proper privileges to enqueue and dequeue. Usually this means that the database user is assigned the AQ_USER_ROLE . The ultimate test is to run some PL/SQL code in the oc4j...
Created by Fang on April 03, 2010 20:21:15
Last update: April 04, 2010 03:30:22
The tags <c:out> The <c:out> tag evaluates an expression and outputs the result on the page. The syntax is:
<c:out value="value" [escapeXml="{true|false}"] ... where escapeXml defaults to true and default defaults to empty string "". <c:out value="${expr}" escapeXml="false"/> is equivalent to ${expr} . If a variable is set in multiple scopes, the lower scope wins. In the following example code, attribute1 is set in request, session, and application scopes; attribute2 is set in session and application scopes; attribute3 is set in the application scope. The results are: <c:out value="${attribute1}"/> : Attribute1 request scope <c:out value="${attribute2}"/> : Attribute2 session scope <c:out value="${attribute3}"/> : Attribute3 application scope To access values in higher scopes, you have to specify the scope explicitly, like this: <c:out value="${sessionScope.attribute1}"/> : Attribute1 session...
Created by Dr. Xi on September 18, 2008 21:38:27
Last update: February 06, 2010 21:55:26
Editing
Shortcut Meaning
Ctrl+C Copy
Ctrl+V Paste
Ctrl+X Cut
Ctrl+Z Undo
Ctrl+F Find
Ctrl+G Find Again
Viewing
Shortcut Meaning
Esc Stop
Ctrl+R Reload
Mozilla/NS: Ctrl+Shift+R, IE: Ctrl-F5 Force reload (not from cache)
Home Go to top of page
End Go to end of page
Page Up Scroll up one page
Page Down Scroll down one page
Ctrl+- (minus sign) Make fonts smaller
Ctrl++ (plus sign) Make fonts bigger
Ctrl+0 Restore default font size
Tools
Shortcut Meaning
Alt Toggle menu bar (IE7 only)
Ctrl+T Open new tab
Ctrl+N Open new window
Ctrl+P Print
Ctrl+I, Ctrl+B Bookmarks
Ctrl+H History
Ctrl+U View page source
Ctrl+W Close Window or tab if more than one tab is open
Ctrl+L Go to location box
Ctrl+E Go to search box
Created by woolf on February 03, 2010 04:39:18
Last update: February 03, 2010 04:39:18
Ways to use JavaScript date function:
// current time
new Date();
new Date(0);...
Created by Dr. Xi on September 02, 2008 18:55:18
Last update: January 18, 2010 22:36:24
Remember the times when you googled for solutions to your technical problems? How much time did you spend on wading through the zillions of links to find the ones that are of interest to you? Wouldn't you hope that you can find the answer right away the second time around? How many times were you forced to peruse hundreds of pages of documentation for a very specific need? Did you ever need to experiment with various alternatives because the documentation was vague? Wouldn't you prefer that a shortcut is available when the same thing is needed again? Xinotes is here to record your technical findings so that you won't have to go through the same process again when the problem reappears. Experience has taught us...
Created by Dr. Xi on January 04, 2010 05:04:10
Last update: January 07, 2010 15:59:25
This is the error:
>>> import urllib2
>>> f = urllib2.urlopen('htt...
Reason: SSL is not supported in Python installation.
>>> import httplib
>>> hasattr(httplib, 'HTTPS'...
Solution: recompile Python with SSL on
Steps:
Download and install OpenSSL , if you don't have it already.
Download Python source and rebuild Python (the usual steps of configure, make and make install). Python's configure script should be able to pick up your existing SSL libraries automatically and build a shared library _ssl.so.
Some web sites suggest editing the file Modules/setup.dist , uncomment the lines starting with _ssl , and making changes to the SSL path. This would link the SSL library statically to Python.
# Socket module helper for socket(2)
#_socket s...
Created by Dr. Xi on August 15, 2009 19:10:52
Last update: August 15, 2009 19:17:30
I have a PL/SQL package which uses DBMS_AQADM to create a queue. Oracle gave " PLS-00201 identifier 'DBMS_AQADM' must be declared " error when I tried to create the package. This happened even after I gave the user AQ_ADMINISTRATOR_ROLE , which has EXECUTE privilege on DBMS_AQADM, as can be confirmed with this query:
select * from role_tab_privs where role= 'AQ_ADMIN... I have to grant EXECUTE right to the user directly to make it work. It turned out that roles are disabled in any named PL/SQL block ! The following comes from Oracle9i Database Concepts doc: PL/SQL Blocks and Roles The use of roles in a PL/SQL block depends on whether it is an anonymous block or a named block (stored procedure, function, or trigger), and...
Created by James on July 19, 2009 23:29:42
Last update: July 19, 2009 23:33:24
Existing techniques use background images to make round corners. I present a technique here that uses four foreground images: .
I think this technique is easier to understand and use. The only requirements are:
Add position: relative to the CSS for the box to be rounded
Matching border and color between the box to be rounded and the corner images
Here's the HTML with static elements:
<!doctype html public '-//W3C//DTD HTML 4.01//EN' ...
The markup is even easier if we use jQuery to add the corners dynamically:
<!doctype html public '-//W3C//DTD HTML 4.01//EN' ...
This is the result:
Created by Dr. Xi on May 07, 2009 23:38:36
Last update: May 07, 2009 23:38:36
Use the re.I flag to make a Python regex match or search case insensitive:
>>> re.match('a', 'abc')
<_sre.SRE_Match object...
Created by Dr. Xi on March 16, 2009 22:10:29
Last update: March 16, 2009 22:12:35
Generate the keys
$ ssh-keygen -t rsa
Generating public/private r...
Copy id_rsa.pub to the remote server.
scp .ssh/id_rsa.pub jmann@sleepy:/home/jmann/.ssh/
Logon to the remote host, append id_rsa.pub to authorized_keys . Make sure authorized_keys is writable
only by owner.
$ cd ~/.ssh
$ cat id_rsa.pub >>authorized_keys
...
For putty, you need to convert the private key to putty format using puttygen :
and tell it to use the private key: