Tuesday, September 10, 2013

weblog; java, html, vim

Vim

How to select between brackets (or quotes or …) in vim?

http://stackoverflow.com/questions/1061933/how-to-select-between-brackets-or-quotes-or-in-vim/1062001#1062001 http://vimdoc.sourceforge.net/htmldoc/motion.html#object-select

To select between the single quotes I usually do a vi' (select inner single quotes).

Inside a parenthesis block, I use vib (select inner block)

Inside a curly braces block you can use viB (capital B)

To make the selections "inclusive" (select also the quotes, parenthesis or braces) you can use a instead of i.

You can read more about the Text object selections on the manual.

http://stackoverflow.com/questions/1061933/how-to-select-between-brackets-or-quotes-or-in-vim/1062001#1062001

Java

JAXBElement Response from WebServices

https://www.java.net//node/694561
Method m = item.getClass().getMethod("getFirstName");
JAXBElement firstName = (JAXBElement)m.invoke(item);
System.out.println(firstName.getValue());

m = item.getClass().getMethod("getLastName");
JAXBElement lastName = (JAXBElement)m.invoke(item);
System.out.println(lastName.getValue());

How do I prevent JAXBElement from being generated in a CXF Web Service client?

http://stackoverflow.com/questions/4413281/how-do-i-prevent-jaxbelementstring-from-being-generated-in-a-cxf-web-service-c http://stackoverflow.com/questions/18573468/wsdl2java-cxf-generating-jaxbelement-list-instead-of-fields
<jaxb:bindings version="2.1" 
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" 
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" 
xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
   <jaxb:globalBindings generateElementProperty="false"/> 
</jaxb:bindings> 
<jaxb:globalBindings generateElementProperty="false" fixedAttributeAsConstantProperty="true" choiceContentProperty="true">

Html

Href attribute for JavaScript links: “#” or “javascript:void(0)”?

http://stackoverflow.com/questions/134845/href-attribute-for-javascript-links-or-javascriptvoid0
javascript:void(0)

No comments:

Post a Comment