Displaying notes 101 - 110
Created by voodoo on September 01, 2013 20:39:37 Last update: September 01, 2013 20:39:37
Use: the -0 option for HTTP/1.0 the -H 'Host:' option to omit the "Host" header.
$ curl --dump-header - -0 -H 'Host:' www.google.co...
Created by Fang on August 28, 2013 20:37:17 Last update: August 28, 2013 20:37:17
The default extension for JSF facelet files is .xhtml, which looks so out-of-date these days. I wanted to change the extension from .xhtml to .html, to make it look more modern, even though I still use JSF xhtml in reality. This didn't work ( web.xml ):
<servlet-mapping> <servlet-name>Faces Ser...Using the servlet-mapping config without the context-param works, given that the actual file extensions are still .xhtml . But the caveat is, if you request the .xhtml file directly, it will be sent to the browser unprocessed. This worked:
<servlet-mapping> <servlet-name>Faces Ser...I'm using myfaces 2.1.11.
Created by freyo on August 19, 2013 15:23:20 Last update: August 19, 2013 15:23:20
The route command was so hard to figure out. Here's how I did it by trial and error. Delete the existing gateway:
# ip route del allrepeat it if there's more than one line is displayed via " ip route show ". Add new route:
# ip route add default via 192.168.80.160 dev eth0Show the new route:
# ip route showOf course you need root to do this.
Created by Chankey on July 31, 2013 04:03:27 Last update: July 31, 2013 04:03:27
Samsung How to
Created by woolf on June 09, 2013 10:28:46 Last update: June 09, 2013 10:28:46
Running iwlist scan results in "iwlist not found". Use iw instead:
iw dev <interface name> (e.g., wlan0) scan
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.
Hibernate NullPointerException at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus(JtaStatusHelper.java: 73)
Created by Dr. Xi on May 01, 2013 20:53:45 Last update: May 01, 2013 20:57:39
This is the stack trace:
java.lang.NullPointerException at org....Root Cause: Hibernate cannot join JTA transaction. Hibernate configuration specified jta-data-source but transaction manager was org.springframework.orm.jpa.JpaTransactionManager . Solution: When using jta-data-source , the transaction manager should be org.springframework.transaction.jta.JtaTransactionManager . Or, change datasource to non-jta-data-source . Reference: Spring entityManagerFactory in jta and non-jta modes
Created by Dr. Xi on April 29, 2013 09:00:48 Last update: April 29, 2013 09:00:48
In the case proposed by Diony , signing multiple elements by id, simply change the newSignedInfo to:
// Create the SignedInfo final List transforms0...I must admit that I don't understand transformations, so take my example code with a grain of salt. Also, signing a doc fragment by PATH does not work, simply because there's no way to identify the fragment with a URI without referring to it by id. Reference ode from org.jcp.xml.dsig.internal.dom.DOMURIDereferencer :
// Check if same-document URI and register...
Spring MVC 3.2 JSON @ResponseBody produces status 406 "not acceptable according to the request accept headers"
Created by Fang on April 17, 2013 08:50:04 Last update: April 17, 2013 08:50:04
I got HTTP status 406 even with explicit Accept header like this:
curl -x localhost:8088 -H 'Accept: application/jso...The root cause was that I forgot to include Jackson JSON lib in the dependencies. Solution: add this to pom.xml