Friday, September 22, 2017

Livescribe 3 pressure sensor

The Livescribe 3 is a nice piece of engineering as I found out today. The pressure sensor hadn't been working properly for a long time and was either working flawlessly as before or required some wiggling and testing before I could be sure it was registering my handwriting at all. In other words, it became almost completely useless and offline writing couldn't be depended on. It was out of warranty and the only support Livescribe offered was to buy a new one.

It turns out that, with some trial and error, you can take the pen apart and wiggle the pressure sensor back into place for reliable and flawless operation. I didn't find any guides to do so and if this little news doesn't solve your pressure sensor problem I'll post a guide on how to take it apart and reach the pressure sensor.

Monday, December 7, 2015

Let's Encrypt, tomcat7 and Java 6 issues

Yay, let's encrypt is live!

A few issues I came across to get an A-score on the ssllabs test
  • Here's a link to turn your shiny new certificate into a keystore to get it working with Tomcat, the parent post works also, but then you end up with an Incomplete Chain issue. That post fixes it.
  • Java 6 and below don't let you provide a) Strong DH parameters and, b) TLSv1.2 which is needed for HSTS. Overdue on upgrading to Java 7? Now's the time to get those Let's Encrypt goodies :)

Wednesday, February 18, 2015

Dutch subtitles for Citizenfour

Like the title says it all.
Dutch/Nederlands subtitles for the leaked Citizenfour screener.
Here is the link.

Sunday, March 30, 2014

Brightness settings for the Thunderbolt Display

It happened a few times that the brightness slider for my thunderbolt display was gone. I tried unplugging it, I tried rebooting, I tried resetting pram and nvram, I tried a lot. Nothing worked.

Then, instead of unplugging the display from the wall, I kept it plugged in, but I disconnected the power cable from the display. The screen was also disconnected from my macbook. Then I reconnected the power cable to the display and plugged the screen back in. This method has worked reliably for me a couple of times so far. I hope it does for you, if so, leave a comment.

Saturday, March 15, 2014

HeidiSQL - SQL Error (2003) in statement #0: Can't connect to MySQL server on '' (10061)

Frustrating error. One thing you may want to try is to open a command prompt and try the plink command manually

    • plink.exe -ssh -L
It seems that when your host changes, or some other issue that requires a confirmation in plink to accept the key and the finger print, HeidiSQL cannot yet report on that issue and returns that generic error from the title. It's worthwhile to test this as 80% of the cases where HeidiSQL would not connect was due to this.

Thursday, February 27, 2014

Youtube: An error occured, please try again later

I use a number of plugins to increase security, NoScript, Adblock plus, https-everywhere, and enable-rc4. I suspected all of them to be the culprit of my youtube error that I could not seem to resolve, except for enable rc4.

It seems Google prefers a stream cipher for its huge content, makes sense too, but it took me way too long to figure out. So disable that add-on on youtube pages and you should be fine. Hope this helps you.

Friday, August 30, 2013

Adblocking and the free web

Recently I was made aware of HeidiSQL, and besides being an awesome program, it had an even awesomer way to tackle adblockers. With your adblocker off, you see ads, with your adblocker on, it displays a message explaining how free things are powered by ads. I loved it, and asked the creator to tell me how, here's my version of his code.

  1. Find the DOM id of your ad, for me, that was 'aswift_0'
  2. insert a div before the ad
       <div id = "senseReplace" style="width:728px;" top="50%"> </div>  
  3. I also put a div around the ad that I resize to make space for the replacement message.
  4. Ad the following javascript (to your head):
     <script type="text/javascript">  
       function sensePage() {  
         if (!document.getElementById('aswift_0')) {  
           s = '<center><p class="senseText" style="border: 1px solid red; background: #cf9; padding: 1em; margin: 0; text-align:left; font-style:italic;">'+  
           'Adblocker activated? No problem. But please note that <b></b> balances its '+  
           'expenses with ads. Perhaps you can consider making an exception for this site <b>or</b> <a href="/gameServer/donations">donate</a> instead?'+ '</p>'+ '</center>';   
           document.getElementById('senseReplace').innerHTML = s;  
           document.getElementById('bannerAd').setAttribute("style","width:1px; height:1px;");  
         } else {  
           document.getElementById('senseReplace').setAttribute("style","width:1px; height:1px;");  
           document.getElementById('bannerAd').setAttribute("style","width:728px; height:90px;");  
  5. I call my javascript function after the ad placement, but was told to call it with the  "window.onload" or "body.onload" event
Happy coding!