Need to mount an old Iomega ZIP drive with a Parallel cable on Ubuntu? Here’s how – I only needed to add the ppa driver to /etc/modules and I was all set:
Wildfly CLI on OpenShift
SSH into server using ‘rhc ssh appname’, then:
jboss-cli.sh -c --controller=$OPENSHIFT_WILDFLY_IP:$OPENSHIFT_WILDFLY_MANAGEMENT_HTTP_PORT
Then you can cd to the service that you want to inspect, eg:
cd /subsystem=messaging/hornetq-server=default/jms-queue=exampleQueue
and from there, ls will list all the properties available.
SSLProtocolException in SE7 & SE8: “handshake alert: unrecognized_name”
Caused by: com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle (URLConnectionClientHandler.java:151) at com.sun.jersey.api.client.Client.handle(Client.java:648) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:5 68)
This exception is from an SSL check in SE7 and above that checks that your SSL certificate matches your domain name. For development, if you’re using a self-signed SSL certificate for testing which does not match your domain name, you can turn off the check and ignore the error with:
-Djsse.enableSNIExtension=false
WordPress Permalink formats
Having just moved my WordPress blog to OpenShift, it’s amazing how many settings apparently I had tweaked and customized on my previous site. I just followed a Google search link to one of my own posts and got a 404, and realized that the link format to my posts had changed.
I used to have links like /year/month/day/postname and now only URLs that looked like ?p=number. The first format is one of the Permalink formats. You can customize this in Settings/Permalinks. More info here.