browse by category or date

Yesterday I was editing the data of Complete Ferry Schedule using JSON Table Editor in Chrome. Immediately I found that the “Output to JSON” button is no longer works. I opened JSON Table Editor in other browsers (Firefox, Microsoft Edge, Opera) but found that the button works fine.

Looking into Chrome’s Developer Tools, I found why the button was not working.

json.table.security.error

Alas, it’s an Uncaught Security Exception. This is the offending line:

if (opener && opener.JSONTableEditor)
{
	// ... Snipped ...
}

This part of the code was supposed to check if the current window is actually a child of previous instance of JSON Table Editor (this happens when you edit a cell which has value of a complex JavaScript object). If it does, it will update the cell value in the parent window. If it doesn’t, it will show the formatted JSON on the bottom of the page.

The obvious work around would be putting this checking inside a try-catch:

var checkedOpener;
try {
   if (opener && opener.JSONTableEditor)
      checkedOpener = opener;
}
catch (ex) {
   //Nothing to do here
}
if (checkedOpener)
{
	// ... Snipped ...
}

Problem solved!

Final Thoughts

The error is unique to Google Chrome. This bug is already reported to Chromium team on Feb 2015. Unfortunately, until today the bug’s is not yet resolved.

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

About seven months ago, John Oliver, the Mega Reverend and CEO of the -now defunct- Our Lady of Perpetual Exemption (Be praise, be praise) warned USA about the dire state of the country’s infrastructures.

But alas, nobody heed to his call. And now they have this:

us.floods.2015

This reminds me of what my father used to say, “Prepare your umbrella before it rains”. But in this case, “prepare your dams before it rains heavily”.

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

Today, I decided to test an old in-ear headphones that has been gathering dust in my table to see if it’s still working. Unfortunately, I found that left speaker is not as loud as the right speaker. Using it to listen any music will give me a disorienting effect. I was half-way from throwing this headphones into the rubbish bin. Suddenly, I remember that we can actually adjust the volume balance in Windows.

Here’s how I did it in my Windows 10 Professional:

  • STEP 1: Right click on the Volume Icon in the System Tray. It will pop up something like below, then click Sounds
    volume-tray

    But if you you have something like below, click “Open Sound Settings”. A new page will open, on the right side of that page, click “Sound Control Panel”. Skip step 2, go straight to step 3.

  • STEP 2: A new window will pop up like below

    volume-sounds

  • STEP 3:Click Playback tab.

    volume-playback

    Once above window show up, select the active device, then click Properties.

  • STEP 4:Now the Speaker’s window will pop like below.

    volume-speakers

    Click the Levels tab.

  • STEP 5:In the Levels tab, click the Balance button, as shown below.

    volume-levels

  • STEP 6:Now the Balance window will pop up.
    volume-balance
    With this we can now adjust the balance between left and right speaker. The best way to adjust is while listening to music. This way we know immediately the best balance setting for the headphones.

** Update 20 July 2020

Based on Melanie’s suggestion:

  • FIRST: Right-click Volume Icon in the System Tray. Click Volume Mixer.
  • THEN: Click the speaker
  • Now you’re at Step 4 of the original steps

That’s all. I hope it helps.

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant: