Recent Notes

Displaying keyword search results 1 - 10
Created by Fang on December 05, 2011 14:56:47    Last update: December 05, 2011 14:57:09
This works for Tomcat. It may or may not work for other servlet containers. As far as I know it's not in the standards spec. In web.xml: <context-param> <param-name>env</param-name> ... If you start Tomcat without defining env , then #{initParam['env']} is ${env} . If you start Tomcat with -Denv=dev in JAVA_OPTS , then #{initParam['env']} is dev
Created by mee2 on November 20, 2011 21:00:58    Last update: November 20, 2011 21:10:22
Alfresco community-4.0.b has only 64-bit installer for Linux. These are the steps to manually install it on 32-bit Ubuntu Linux. Download alfresco-community-4.0.b.zip from http://wiki.alfresco.com/wiki/Download_and_Install_Alfresco . Install dependencies: $ sudo apt-get install imagemagick swftools postgr... Note: swftools was not available as a package for Ubuntu 11.10, I installed it with source . Create alfresco database: $ sudo bash [sudo] password for alfresco: ... Copy everything from the Alfresco web-server folder to Tomcat: $ cp -R alfresco-community-4.0.b/web-server/* apac... Edit $TOMCAT_HOME/conf/catalina.properties , change shared.loader to: shared.loader=${catalina.base}/shared/classes,${ca... Edit Tomcat conf file conf/server.xml , add URIEncoding="UTF-8" : <Connector port="8080" protocol="HTTP/1.1" ... Customize alfresco-global.properties : $ mv shared/classes/alfresco-global.properties.sam... Edit shared/classes/alfresco-global.properties : ############################### ## Common A... Copy keystore files from alfresco.war : expand alfresco.war , grab the whole keystore directory from...
Created by nogeek on November 16, 2011 20:47:33    Last update: November 16, 2011 20:47:33
VMWare Tools must be installed in the guest OS for shared folders to work. Configure the shared folder: Virtual Machine -> Virtual Machine Settings -> Options -> Shared Folders . Click the Add button to add a share. The share maps a host path to a name in the guest. If the guest system is Linux, the shared folder is available under /mnt/hgfs . If the guest system is Windows, the shared folder is available as \\.host\Shared Folders\<share_name>
Created by Dr. Xi on November 11, 2011 10:05:22    Last update: November 11, 2011 10:12:01
This is an HTML image tag filter using Java regex. It takes a string, finds the img tags, replaces the src attribute with one provided by the filter, then adds a class name to the class attribute. import java.util.regex.*; import java.io.*; ... Test file: <div id="HTML snippet"> <img src="img/big/txt-m...
Created by Fang on November 10, 2011 09:26:12    Last update: November 10, 2011 09:26:12
Syntax highlighted XML schema for JSF 2.0 Application Configuration Resource File ( faces-config.xml ). Almost 3000 lines! <?xml version="1.0" encoding="UTF-8"?> <xsd:sch...
Created by Fang on January 23, 2011 19:28:35    Last update: October 28, 2011 12:10:07
Maven repositories are a central part of the Maven build system. Maven resolves dependencies through repositories. There are two types of repositories: local and remote . The local repository stores local build artifacts (when you do mvn install ) and caches artifacts from remote repositories. It is usually located on the local file system at $USER_HOME/.m2/repository . Remote repositories are located on the network and accessed by URLs ( http:// or file:// etc). The central Maven repository is: repo1.maven.org . The Java EE repositories are located at: http://download.java.net/maven/2/ and http://download.java.net/maven/1/ . Remote repositories can also be set up on the company intranet within a company's firewall. The central repository is automatically configured after installation. You can add additional repositories in settings.xml , for example: <?xml version="1.0" encoding="UTF-8"?> <setting......
Created by magnum on September 16, 2011 16:04:05    Last update: September 16, 2011 16:05:06
Linux distros come with PPTP client bundled. This is how to configure Linux as PPTP client: Click System->Preferences->Network Connections: Select the VPN tab, click Add : Select PPTP from the list and click Create... : To connecto to the PPTP VPN: click the Network icon on the launch Panel and select the VPN name just created.
Created by freyo on September 15, 2011 08:49:41    Last update: September 15, 2011 08:59:34
There's no UI for setting proxy for Android browser. You set a proxy by directly manipulating the settings db: $ android-sdk-linux_86/platform-tools/adb shell ... where wifi_http_proxy is the proxy host name and wifi_http_proxy is the proxy port number.
Created by freyo on September 14, 2011 16:30:03    Last update: September 14, 2011 16:30:03
Select from the system table: $ android-sdk-linux_86/platform-tools/adb shell ... Other useful commands: sqlite> .databases seq name file ...
Created by freyo on August 01, 2011 16:06:40    Last update: August 03, 2011 08:32:01
To list all installed packages: # pm list packages To list all disabled packages: # pm list packages -d pm help: # pm usage: pm [list|path|install|uninstall] ...
Previous  1 2 3 4 5 6 7 Next