Recent Notes

Displaying notes 91 - 100
Created by Dr. Xi on September 23, 2013 09:00:22    Last update: September 23, 2013 09:17:55
Tsung is an open-source multi-protocol distributed load testing tool. It's written in Erlang , but don't let that dissuade you. Here are some simple steps to get started. Install Tsung. On Ubuntu, this is simply: sudo apt-get install tsung . Create a config file ( tsung.xml ): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYP... Beware of the dumptraffic attribute. You might want to set it to false for a real load test. Run the test: $ tsung -f tsung.xml start Starting Tsung "L... Generate the reports: $ cd /home/drxi/.tsung/log/20130923-1031 $ /usr... Open the report file in your browser: file:///home/drxi/.tsung/log/20130923-1031/report.html . For HTTPS testing change the server line to: <servers> <server host="" port="...
Created by woolf on September 22, 2013 09:39:58    Last update: September 22, 2013 09:39:58
To mount jffs: # mount -t jffs2 /dev/mtdblock3 /root
Created by Dr. Xi on September 22, 2013 09:14:44    Last update: September 22, 2013 09:14:44
Download JDK 1.7 (jdk-7u40-linux-i586.tar.gz) from Oracle:‎ sudo bash , then cd /usr tar -xzf /usr/home/xyz/jdk-7u40-linux-i586.tar.gz (whereever the downloaded gz file is) ln -s jdk1.7.0_40 java Add /usr/java/bin to PATH
Created by Dr. Xi on September 22, 2013 09:07:10    Last update: September 22, 2013 09:07:10
I want to prepend /usr/java/bin to $PATH , if /usr/java/bin is not prepended already. There's no harm if you prepend /usr/java/bin multiple times, but $PATH looks ugly. $ PATH=/usr/java/bin:${PATH#/usr/java/bin:} ...
Created by freyo on September 22, 2013 08:07:46    Last update: September 22, 2013 08:07:46
From Android developer site: If you're developing on Windows , you need to install a USB drive r for adb. If you're developing on Mac OS X , it just works . Skip this step. If you're developing on Ubuntu Linux , you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property. For a list of vendor IDs for Ubuntu, see USB Vendor IDs on the Android developer site . For an installation guide and links to OEM drivers on Windows, see the OEM USB Drivers document on the Android developer
Created by Dr. Xi on September 20, 2013 11:58:32    Last update: September 20, 2013 11:58:32
Some tools for debugging under Android mobile browser. Firebug : I can install firebug in Firefox for Android, but there doesn't seem to be a way to invoke it. Firebug Lite might be a better choice. Crossfire seems to enable remote debugging through FIrebug, but it seemed like in early stage (stalled?). Google's remote debugging tool for Chrome remote debugging tool. Need to inject some JavaScript into the page being debugged.
Created by Dr. Xi on September 20, 2013 10:19:06    Last update: September 20, 2013 10:19:06
My first attempt to create a mobile friendly web page with jQuery Mobile failed drastically: the page rendered just like it did on a desktop. By trial and error, I found that a single line in <head> made all the difference: <meta name="viewport" content="width=device-width,... Then I learned concepts such as " CSS Media Queries " and " Responsive web design ". References: jQuery Mobile: Going Responsive "Mobifying" Your HTML5 Site Bootstrap: Sleek, intuitive, and powerful mobile first front-end framework Building A Better Responsive Website
Created by Dr. Xi on September 20, 2013 09:16:28    Last update: September 20, 2013 09:16:28
Oracle JDBC extension provides two types of statement caching : implicit and explicit. Allocate Insert Into Cache Retrieve From Cache Implicit prepareStatement() prepareCall() close() prepareStatement() prepareCall() Explicit createStatement() prepareStatement() prepareCall() closeWithKey() getStatementWithKey() getCallWithKey()
Created by Dr. Xi on September 18, 2013 19:54:58    Last update: September 18, 2013 19:54:58
You can define a JDBC datasource in $CATALINA_BASE/conf/server.xml under <GlobalNamingResources> like this: <GlobalNamingResources> <Resource name="jd... But you will not be able to lookup the datasource in your webapp, unless you define a link in your per-web-application JNDI context (for example, META-INF/context.xml ): <?xml version="1.0"?> <Context> <Resourc... By tomcat documentation : The GlobalNamingResources element defines the global JNDI resources for the Server. These resources are listed in the server's global JNDI resource context. This context is distinct from the per-web-application JNDI contexts described in the JNDI Resources HOW-TO . The resources defined in this element are not visible in the per-web-application contexts unless you explicitly link them with <ResourceLink> elements.
Created by Dr. Xi on November 21, 2009 02:07:07    Last update: September 10, 2013 18:51:14
This is from Oracle 10g documentation . Data Lock Conversion Versus Lock Escalation A transaction holds exclusive row locks for all rows inserted, updated, or deleted within the transaction. Because row locks are acquired at the highest degree of restrictiveness, no lock conversion is required or performed. Oracle automatically converts a table lock of lower restrictiveness to one of higher restrictiveness as appropriate. For example, assume that a transaction uses a SELECT statement with the FOR UPDATE clause to lock rows of a table. As a result, it acquires the exclusive row locks and a row share table lock for the table. If the transaction later updates one or more of the locked rows, the row share table lock is automatically converted to a row...
Previous  5 6 7 8 9 10 11 12 13 14 Next