Related Posts
[SOLVED] Java7 SMTP Issue (Caused by: sun.security.pkcs11.wrapper.PKCS11Exception)
So you had your little program that would use AWS to send emails, and all of a sudden after a Java 7 update you get a stack trace like this: [java] javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 465; nested exception is: javax.net.ssl.SSLException: Server key at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1962) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) at javax.mail.Service.connect(Service.java:295) at javax.mail.Service.connect(Service.java:176) […]
Python Script to Update WordPress in One Step
During the past week, I think I had to update all my wordpress instances twice, and it’s become really annoying doing this manually. I’ve written a python script which I’ll share with you. How I keep my wordpress updated by hand I tend to keep my wp-content folder outside of my wordpress installation for 2 […]
[CODE] Detecting if a VPN connection is active programmatically (Jan/2017)
This method of programatic detection works as of January 24, 2017 with the latest versions of Express VPN and PIA (Private Internet Access) On Mac OSX/ This works for Mac OSX 10.2.2. The trick is to request your ip routing table and examine through which network interface your default traffic is going through. (To do […]