Recent Notes
Displaying keyword search results 91 - 100
Created by Fang on September 19, 2009 21:16:52
Last update: March 02, 2010 05:13:04
Before you can build a Java EE project with Maven, you need to add the Java EE dependencies. And you need to tell Maven where to find the repositories for the Java EE artifacts.
For JDK 5 & Java EE 5:
~/.m2/settings.xml :
<?xml version="1.0" encoding="UTF-8"?>
<setting...
pom.xml :
<dependencies>
<dependency>
<group...
For JDK 6 & Java EE 6:
~/.m2/settings.xml :
<?xml version="1.0" encoding="UTF-8"?>
<setting...
pom.xml :
<dependencies>
<dependency>
<group...
Created by Dr. Xi on February 13, 2010 22:52:18
Last update: February 13, 2010 22:52:18
This runtime error happens when the Sun EL implementation is not available. Look for the class com.sun.el.ExpressionFactoryImpl in your deployment package, you probably won't find it, or you'll find a version that can't be loaded in your deployment environment.
If you are using Maven to build, you can add the following repository and dependency in pom.xml :
<!-- Project dependencies -->
<dependencies...
Created by Dr. Xi on February 11, 2010 05:07:48
Last update: February 11, 2010 05:08:20
On Linux, you can use the fuser command to find out who has a file open, or is using a port. For example, if you start Tomcat and get the error "Address already in use: 8080", you want to know which process is already binding to port 8080.
# list processes on port 8080
fuser 8080/tcp
...
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 Dr. Xi on February 04, 2009 16:16:03
Last update: February 06, 2010 21:53:40
Action Shortcut Bring up context menu Shift+F10 Move active window Alt+Space, M Minimize active window Alt+Space, N Move cursor to web browser address bar and select the text Alt+D Minimizes all open windows and displays the desktop Windows Logo+D Restore minimized windows Repeat Windows Logo+D Open windows explorer Windows Logo+E Navigate through tabs in browser Ctrl+TAB Close tab in browser Ctrl+W Page Back Alt + LeftArrow Page Forward Alt + RightArrow Reload Page F5 Reload Page Override Cache Ctrl+F5 Find computer CTRL+Windows Logo+F Open Run dialog box Windows Logo+R Display Start menu CTRL+ESC (same as the Windows Logo key) Move the focus on the taskbar so you can TAB to the Quick Launch tool bar, the Taskbar etc. CTRL+ESC,ESC Quick Launch shortcuts in Windows Vista...
Created by voodoo on February 06, 2010 17:37:38
Last update: February 06, 2010 17:37:38
While hotmail and Yahoo mail have "traditional" anti-virus scans for attachments, it's a disappoint to find that Gmail blocks attachments by extension!
I simply cannot understand how can the genius minds at Google consider this an effective "solution": genuinely good behaving executables are blocked simply because they are honestly named, while rogue agents can pass the inspection by simply changing their file extensions!
References:
Gmail Help - Zipped Attachments
Trick Gmail Antivirus Scanner: Send Any File Type with Gmail. (.exe, .dll, .com, .bat)
Created by Dr. Xi on February 03, 2010 17:44:14
Last update: February 03, 2010 17:44:14
When you start sqlplus withoud SID, Oracle says that you connect to the default database you created during installation. What if I installed multiple databases and I forgot which one is default? Is there a way to find out which is the current default? I wasn't able to find an answer. But there are a couple of ways to change the default by setting a couple of environment variables. The bad news is: the variables are different depending on which platform you are on. Unix If you are on Unix and the database is local, set these two variables:
export ORACLE_HOME=/app/oracle/product/10.2.0/db_1... If the database is remote, set TWO_TASK : export TWO_TASK=orcl Windows If you are on Windows, set LOCAL : set LOCAL=orcl Of course,...
Created by Dr. Xi on January 25, 2010 16:29:04
Last update: January 25, 2010 16:29:04
Thanks for the IDE tips. I wrote this tool out of a specific need: debugging errors at deployment time or issues in a production environment.
Created by google.P3SY7GMD on January 25, 2010 16:11:01
Last update: January 25, 2010 16:11:01
Simple have your project in eclipse, and your jars in the build path.
Type CTRL-SHIFT-T... Just entre the name of the class and eclipse show from where it come from.
Created by voodoo on January 24, 2010 06:29:11
Last update: January 24, 2010 19:31:22
SIKULI is Jython. AutoPy is Python. Both use bitmaps to find areas of interest. It seems that SIKULI comes with an IDE but AutoPy doesn't.
A sample SIKULI script captured from the project site:
A sample AutoPy script from the project site:
import autopy
def where_is_the_monkey_i_say():
...