Recent Notes

Displaying keyword search results 1 - 10
Created by voodoo on September 25, 2012 19:33:02    Last update: June 05, 2013 20:22:50
This a step-by-step example of how to create the files for GNU automake. Put the C source file in directory src ( cat src/hello.c ): #include <config.h> #include <stdio.h> ... Run autoscan to generate configure.scan . Rename configure.scan : mv configure.scan configure.ac Edit autoscan.ac . Update this line: AC_INIT([FULL-PACKAGE-NAME], [VERSION] , [BUG-REP... Add this line after AC_INIT : AM_INIT_AUTOMAKE([foreign -Wall -Werror]) Add this line before AC_OUTPUT : AC_CONFIG_FILES([Makefile src/Makefile]) Create file Makefile.am ( cat Makefile.am ): SUBDIRS = src Create file src/Makefile.am ( cat src/Makefile.am ): bin_PROGRAMS = hello hello_SOURCES = hello.c Run these commands: $ aclocal $ autoheader $ automake --add-miss... The file configure is generated after autoconf is run. Build with: $ ./configure $ make Create tarball for distribution with: $ make dist...
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 Dr. Xi on March 21, 2013 19:47:46    Last update: March 22, 2013 12:30:27
It's normal practice to import types from an external xsd file in WSDL like this: <wsdl:types> <xsd:schema xmlns:xsd="htt... When you use <dynamic-wsdl> and have Commons XMLSchema on the class path, Spring-WS inlines the xsd in the wsdl. But that doesn't happen when you use <static-wsdl> . You can define a SimpleXsdSchema bean to expose the xsd: <?xml version="1.0" encoding="UTF-8"?> <beans x... where the bean id "hello" should match the schemaLocation attribute in the WSDL (without the .xsd suffix). But note that the SimpleXsdSchema does not inline the xsd. It only makes the xsd available via an HTTP URL. Alternatively, you can simply put the xsd file under the content directory of the webapp (just link any CSS or JavaScript). Anyway, that's a lot of manual...
Created by Dr. Xi on March 21, 2013 20:29:14    Last update: March 22, 2013 08:58:08
Spring-WS documentation says you can use a Jaxb object as parameter or return type, provided that it is annotated with javax.xml.bind.annotation.XmlRootElement , or is an instance of javax.xml.bind.JAXBElement . But that's a lot easier said than done! For example, if sayHelloResponse is defined as: <xs:element name="sayHelloResponse" type="tns:sayH... then the JAXB generated class is not annotated with XmlRootElement , therefore, unusable for Spring-WS. You have to define the type as: <xs:element name="sayHelloResponse"> <xs:compl... in order to generate a type annotated with XmlRootElement . But that is not always possible. Alternatively, you can use the Maven plugin maven-jaxb2-plugin with the jaxb2-basics-annotate plugin (yes, plugin inside plugin) to inject the XmlRootElement annotation into the generated JAXB class. This is the pom: <project xmlns="http://maven.apache.org/POM/4.0.0"... and the binding file: <?xml version="1.0" encoding="UTF-8" standalone="y......
Created by Dr. Xi on March 21, 2013 20:33:18    Last update: March 21, 2013 20:33:18
This is a jaxb binding file that generates java.util.Calendar for xs:dateTime : <?xml version="1.0" encoding="UTF-8" standalone="y...
Created by Dr. Xi on March 07, 2013 20:26:23    Last update: March 07, 2013 20:26:23
Create a jax-ws web service with Spring, Apache CXF and Maven. Create the pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0"... Create the web service interface ( src/main/java/jaxws/JaxwsHello.java ): package jaxws; import javax.jws.WebService;... Implement the web service ( src/main/java/jaxws/JaxwsHelloImpl.java ): package jaxws; import javax.jws.WebService;... Create src/main/webapp/WEB-INF/cxf-servlet.xml : <?xml version="1.0" encoding="UTF-8"?> <beans x... Register the CXF servlet in src/main/webapp/WEB-INF/web.xml : <?xml version="1.0" encoding="UTF-8"?> <web-app... Build: mvn package The resulting WAR file can be deployed to any servlet container (for example, Tomcat).
Created by magnum on March 03, 2013 13:27:54    Last update: March 03, 2013 13:27:54
Suppose you have a very large log file and it's hard to load the whole file into an editor. But you know the range of lines you are interested in. You can use sed to extract the range of lines to a smaller file: $ sed -n 2737172,2743667p proxy.log > proxy-short.... The switch -n means 'quiet', suppress automatic printing of pattern space . You can also use regex to mark the start and end lines instead of absolute line numbers.
Created by Dr. Xi on February 27, 2013 10:01:21    Last update: February 27, 2013 10:01:21
The SVN property svn:mergeinfo holds the history of merges made to a file or directory. To display mergeinfo in plain text: $ svn propget svn:mergeinfo . If you dig XML: $ svn propget svn:mergeinfo --recursive --xml
Created by freyo on February 05, 2013 20:10:35    Last update: February 05, 2013 20:29:51
Have to remount /system as read-write: mount -o rw,remount -t yaffs2 /dev/block/mtdblock3... Maybe this is safer: mount -o rw,remount /system
Created by voodoo on January 11, 2013 09:36:27    Last update: January 11, 2013 09:39:03
Redsocks is a transparent socks/proxy redirector. You use iptables to redirect TCP traffic to redsocks, redsocks will forward to upstream SOCKS4, SOCKS5 or HTTPS proxy server. Once set up, the redirection is system wide, so you don't have to set up proxy for each individual application. It is useful when you have to use a SOCKS or proxy server to make the connection but the application does not support proxy settings (for example, the Android browser). Linux/iptables, OpenBSD/pf and FreeBSD/ipfw are supported. Sample configuration file : base { log_debug = off; log_info = off; ... According to the project home page , redsocks is used by ProxyDroid to provide system-wide proxy on rooted Android devices.
Previous  1 2 3 4 5 6 7 8 9 10 Next