Recent Notes

Displaying keyword search results 1 - 10
Created by freyo on May 17, 2013 19:52:17    Last update: May 17, 2013 19:52:17
Angie. please look at the related notes "Android unit testing example" and "Android unit testing basics". The examples might be out-of-date since they were from the Froyo era.
Created by angie on May 17, 2013 15:20:39    Last update: May 17, 2013 15:20:39
Thank you Freyo for this explanation & step-by-step instructions. I could follow till point # 7. After that I am lost. 1). Point # 8 mentions "Copy the test suite apk into MyRepository/testcases." Where is this test suite apk located? 2). How do I generate the AndroidTest.apk file. 3). Where do I get the host_config.xml file from? Thank you in advance. Angie.
Created by voodoo on February 02, 2013 12:29:56    Last update: February 02, 2013 12:29:56
I got this error while compiling ucspi-tcp . The solution was to move #include <errno.h> from error.c to error.h . The following also works: echo gcc -O2 -include /usr/include/errno.h > conf-... The reason was explained in http://cr.yp.to/docs/unixport.html#errno
Created by James on January 16, 2013 19:57:11    Last update: January 16, 2013 19:59:26
This is handy for looking at compressed js files: http://jsbeautifier.org/ works pretty well.
Created by James on November 01, 2012 13:51:42    Last update: November 01, 2012 13:51:42
One way to vertically center a line of text in a container div is to set line-height to be the same as the height of the container. But that requires specifying line-height in pixels. This technique avoids that. <!doctype html> <html> <head> <style typ...
Created by James on September 21, 2012 12:18:10    Last update: September 21, 2012 12:23:07
When one element overlaps another, which one gets the event when you click on it? The top one, of course! Not so for IE. If the top element is transparent, the click falls through on areas in the bottom element where there's "content". Try the simple HTML below. When you click on the letter "A", the bottom DIV gets the event in IE. <!doctype html> <html> <head> <style ... There's a CSS property pointer-events which controls click through behavior in case of overlay, but it doesn't have any effect in IE.
Created by James on September 20, 2012 10:22:58    Last update: September 20, 2012 10:22:58
This is a simple jQuery placeholder plugin that can be used on both text and password fields. I've been using the Mathias Bynens plugin for a while and it has been quite useful. I decided to create my own plugin because of two problems: The interaction between the Mathias Bynens plugin and jQuery validation can be quite intricate. Placeholder text is lost once the input field gets focus. This can be a problem when I want to auto-focus on a field, say user id on a log in form. I must mention that although it worked for me, this plugin has not been thoroughly tested. Feel free to provide feedback if you see problems. (function($) { $.fn.placeholder = function(... Since it uses absolute positioning, you...
Created by magnum on August 22, 2012 12:34:49    Last update: August 22, 2012 12:34:49
Add this to head : <link rel="shortcut icon" href="favicon.ico"/>...
Created by Captain on November 22, 2010 04:34:37    Last update: July 22, 2012 20:36:26
HDTV modeline example: 1920x1080 148.5 1920 2008 2052 2200 1080 1084 1088... MythTV modeline database: http://www.mythtv.org/wiki/Modeline_Database <!DOCTYPE html> <html> <head> <style ... Reference: Custom Resolutions on Intel Graphics
Created by Dr. Xi on June 06, 2009 18:31:44    Last update: June 25, 2012 12:37:35
You can use the system call from the os module to execute an external program: >>> import os >>> os.system(the_command_line_st... However, the path to the executable contains a space character, the system call treats the strings after the first space as arguments, causing an error. Python doc recommends the use of the subprocess module: The subprocess module provides more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using this function. For example, using wget to get the google home page: >>> from subprocess import Popen, PIPE >>> (out... or >>> import subprocess >>> subprocess.call(['cur...
Previous  1 2 3 4 5 6 7 8 9 10 Next