Posts

Showing posts from October, 2017

Keep the APEX builder tab and application tab in the same Firefox window

Image
A long while ago, I switched to using Google Chrome, and I use Firefox usually only to test some feature so I literally have not run the APEX builder in Firefox since version 3.2. However, recently I heard about Firefox having a neat new feature which is called "Containers" and is part of their Test Pilot program, where you can have a set of tabs each with their own cookie/storage/session space - you can read more about the technology here -  https://testpilot.firefox.com/experiments/containers/ . This is good news, because it would allow be to be logged in with different user account simultaneously and thus speeding up testing time. However, much to my surprise, unlike it Chrome when you run the application, it opens the application in a new tab, Firefox opens the application in a new window! I don't particularly like this behaviour, so after some digging I firstly found there is a preference to open new windows in a new tab instead. The bad news is, this seeme

ES6 with SQLcl / JDK9

In JDK 8, the Nashorn engine was still on ES5. With the latest release (JDK9), they have included optional support for ES6, which can be enabled by way of an argument. So, to test out this functionality I will be trying with a new variable/constant construct called `const`. Before developing my script for SQLcl, I sometimes like to use jjs to verify everything. jjs is an interactive shell that invokes the Nashorn engine. So by defualt it uses ES5, so we can write a script like so: jjs> var a = Math.floor(Math.random()*100) * 55 jjs> print (a) 990 jjs> With JDK9, we can invoke this tool with ES6 support via an optional argument `--language` where we can specifiy either es5 or es6. $ jjs --language=es6 jjs> const a = Math.floor(Math.random()*100) * 55 jjs> a = 2 <shell>:1 TypeError: Assignment to constant "a" jjs> print (a); 2695 jjs> The above snippet shows I can use the new `const` construct that is a part of the ES6 spec within the Nas