Recent Notes

Displaying keyword search results 11 - 19
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 Dr. Xi on May 05, 2009 19:59:21    Last update: May 05, 2009 19:59:21
Delete a single file: >>> import os >>> file = 'myfile' >>> os.rem... Delete a directory and contents: >>> import shutil >>> dir(shutil) ['Error', ...
Created by Dr. Xi on November 17, 2008 03:33:28    Last update: November 17, 2008 03:33:28
The __file__ attribute of a module tells you where a module come from: >>> import pkg_resources >>> pkg_resources.__fi...
Created by Dr. Xi on October 14, 2008 23:02:29    Last update: October 14, 2008 23:03:50
Wrap JWhich in a servlet: Implement the servlet: package com.example; import*; ... Add this to web.xml : <servlet> <servlet-name>jwhich</servlet... Request the path for a class or properties file:
Created by Dr. Xi on September 25, 2008 02:58:27    Last update: October 14, 2008 22:49:32
This following code came from a JavaWorld tip, with some minor modifications. public class JWhich { /** * Retu...
Created by Dr. Xi on September 25, 2008 23:43:35    Last update: September 25, 2008 23:43:54
@INC is a list of directories Perl uses to find modules to load. You can add directories to @INC by use lib... , or set the PERLLIB environment variable: # using default @INC use Net::Socket::NonBl...
Created by Dr. Xi on December 12, 2007 20:30:01    Last update: December 12, 2007 20:32:23
This is a script to tail a log file through the web browser. It uses AJAX, apache web server, mod_python, UNIX utilities tail (requires the --lines switch) and wc . The log file may reside on the web server or any other host accessible from the web server through SSH. Although it's written in python, it should be easy to port to other languages such as Perl. Apache httpd.conf : LoadModule python_module modules/ ... Python script: import time, os from os.path import basename ...
Created by Dr. Xi on May 01, 2007 02:52:21    Last update: May 01, 2007 02:52:21
To make a tar file out of all the Java sources under ./path/to/directory/: find ./path/to/directory/ -name '*.java' | tar...
Created by Dr. Xi on May 01, 2007 02:43:31    Last update: May 01, 2007 02:43:31
On UNIX, you can user the which command to find out the full path of an executable. For example, which perl will display the full path to the Perl executable on your machine.
Previous  1 2 Next