Igor's Blog

I've noticed today that my version of JD-GUI started crashing whenever I tried to open a jar file to decompile. I was on macOS Sierra and had version 0.3.3 of JD-GUI installed. This was the kind of error and crash report I was getting...

Process: jd-gui [13650]
Path: /Applications/JD-GUI.app/Contents/MacOS/jd-gui
Identifier: jd.jd-gui
Version: ???
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: jd-gui [13650]
User ID: 501
Date/Time: 2017-02-21 12:06:45.436 +1000
OS Version: Mac OS X 10.12.3 (16D32)
Report Version: 12
Anonymous UUID: FD4C197F-34C0-7E0B-A88A-B0BDD3397DD7
Sleep/Wake UUID: F6E62B43-7C66-4E90-8968-E92535403845
Time Awake Since Boot: 700000 seconds
Time Since Wake: 320000 seconds
System Integrity Protection: enabled
Crashed Thread: Unknown
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000241499f5
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

Fortunately there was a way to fix it! The latest version (1.4.0 at the time of writing) from the download page fixed the problem.

[Read More and Comment]  

, , ,

It's getting close to Easter time which means assembling more electronic bunnies and for that I need new PCBs. This time around I decided to place and order with Seeed Studio Fusion (that's 3 Es) instead of any of the other PCB Fab I've used in the past. Overall I have to say they have a much better quality than Shenzhen2U, service is fast but shipping is a little pricey, though still much cheaper than Oshpark.

It took just 7 days to have my PCBs fabricated and then they were in my mailbox 3 days after that. That's quite impressive!

Something that I really liked was the ability to preview your Gerbers before submitting the order. This is a definite plus over some of the other budget fabs.

The actual ordering process is very similar to many others, just a single page form where you can choose all your PCB options. Coloured PCBs do not cost any extra from Seeed Fusion, so I went for red instead of the default green.

In terms of shipping options, their page said that EMS and USPS were available, but when my order came up, these did not show. The standard post option was a very similar price to couriers so I skipped that and went for quicker delivery with DHL.

[Read More and Comment]  

, , , ,

If you've been playing Gravity Falls on the 3DS chances are you've been trying to find all of the lost items in the game. I've managed to find all of them but this particular item, Robbie's lost lyrics, has eluded me for the longest time. It's found in the Lake level of the game.

Like in most of the levels, in the Lake level you can walk backwards (to the left of the screen) but it requires a bit more effort because there's a cliff right where you start. Luckily if you walk to the right there will be a box that can be dropped down and then pushed all the way back to the start of the level.

WVW69kFSbyIJp2ovpc.jpeg WVW69kFScEMj7OXhhs.jpeg

Once the box is right against the cliff you can jump up on it and then on top of the cliff.

WVW69kFScrMbZfjyZZ.jpeg WVW69kFSdNco2PieLw.jpeg

The lost item is just a bit further to the left.

Good luck finding the rest of the items!


, , ,

Printing a page with JavaScript is easy but if you want to print the contents of a specific DIV, it gets a little trickier. If you want to do something more complex like intercept the page print request and then print only certain contents of that page there's even more work involved. This article will show you how I did just that over at travelblog.ws.

To give an example, I had a pop-up fixed sized dialog that showed the trip itinerary. I wanted to be able to print out just the itinerary without any of the header, footer, etc. You can see in the screenshot below this working in action.

To achieve the above first create a DIV with that will hold all of the content that you wish printed and set its class to printcontent.
<div class="printcontent">Printable content here</div>

Then you need to add a JavaScript listener for the window.matchMedia event looking for the 'print' media change. That event will be fired every time the page media changes. If the media matches it means we're printing, if it doesn't we're back to displaying the HTML page as normal. I used jQuery in some of the code below but it could be done just as easily with plain JavaScript.

Two functions are called on these event changes, beforePrint() and afterPrint() - these are shown below.
if (window.matchMedia) {
var mediaQueryList = window.matchMedia('print');
mediaQueryList.addListener(function(mql) {
if (mql.matches) {
else {

[Read More and Comment]  

, , ,
Programming, DIY, Games, Hacks, Tech and more.
Follow me on...
Current and Past Projects
See my Resume


RSS Feed

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
StrFunc() Online
300 George St Blogumentary
Guru JSON-RPC Tester
Extrudifier Object Designer

Recent Blog Posts

Older versions of JD-GUI crashing on macOS Sierra

How does Seeed Fusion stack up as a low budget PCB fab

Where to find the last item (Robbie's lost lyrics) in GravityFalls Lake level

Detecting print requests to print contents of a DIV with JavaScript

Using Google DFP with AdSense on responsive pages

How to change the email subject line in Gmail

Force PHP GD library to load JPEG images that have invalid data

How to uninstall Samsung Smart Switch from your Mac

Facebook adds weather forecasts but forgets to adjust them to your time zone

No sound or microphone when answering calls on an iPhone

Recent Galleries

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

Good Friday Electronics fun Easter Bunny LED PCB Kit IBEABU-01.0

Top Categories

Blogs I follow

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth


RAWS Parts Online
Alpha Dimensions Hosting
Kristensen Photography
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Follow me on... 
...or subscribe for updates!

Don't show this again