Posts

Domain squatting for auto linking of Java properties files

Image
To no surprise, these days are mostly spent supporting the open source (but commercially backed) QZ Tray printing plugin . As part of our support offering, we're in constant communication with customers regarding technical matters, and in our case, modifying a Java properties file for various settings in the software, is just par for the course. In our case specifically, we call our file qz-tray.properties . What was a surprise is that through a series of email exchanges with end-users, this above filename "qz-tray.properties" had become an automatic-hyperlink between email exchanges. Upon investigation, this TLD (top level domain) of ".properties" was approved way back in 2014 (at time of writing, 10 years ago!), predominantly to fulfill the demand of online namespace for real estate companies. To put this in context, if someone were curious/inquiring and tried to quickly search " qz-tray.properties " from a browser address bar, it would result in a

Parallels 16.3.0 Apple Silicon Windows 10 Screen Refresh Issues

Image
Parallels  Version 16.3.0 (50385) Technical Preview  was released today and it is capable of running Linux and Windows VMs, but with certain caveats.  I cannot find a list of known issues for this software so I'm documenting my own. Ubuntu 20.04 Desktop for ARM64  ISO not locatable, installer wants VHDX only it seems.  Selecting "All Files" allows selection, but then the user is presented with an error suggesting the ISO is Intel (it's not). If you choose to create the VM without a boot CD, the ISO can be mounted manually.  Installation succeeds without issue. Once booted, the VM works well however Parallels Tools are not yet available.  Attempt to run via command line wi will state "Aarch64 is not supported". Windows 10 Pro Insider Preview Installation is done using the VHDX image from Microsoft and it is completely seamless.  VM installs and boots up fine with Parallels Tools installed and working.  On my M1 Mac Pro, rebooting the VM causes the screen to s

ld: framework not found JavaVM

ld: framework not found JavaVM XCode 12 and higher no longer can use -framework JavaVM when building using Clang/gcc. See also this change in JNA PR RFC: Enable building jna for Darwin arm64: https://github.com/java-native-access/jna/commit/32c8915d3eb1c670c7d7fde4ca220f35d7be8bda#diff-d6a038c176b5df3cfcf2b1512ef7a63f57c7a207176bbbc6b3acc05acf75733aL413 Quoting Florian Kistner : "Apple does not ship a JavaVM framework anymore starting from Big Sur."  

Printing to a raw printer using DOSBox

Working article is here:  https://gist.github.com/tresf/48183217173cdaef580b2cb1797a052c Although DOSBox offers printing support, the documentation is sparse and most articles refer to printing on a Windows host. Using Ubuntu 20.04 and a fork of DOSBox called DOSBox-X, printing can be configured as follows: Install DOSBox-X Configure DOSBox-X to write to a physical file Write a script which listens on the physical file Install DOSBox-X Installing DOSBox-X on Linux is as simple as installing the snap:  https://snapcraft.io/dosbox-x .  This can be launched with Ubuntu Software center. Note: For Windows, MacOS or RPM users, DOXBox-X can be downloaded directly from the official site . Configure DOSBox-X to write to a physical file Although the recommendation for most tutorials is to configure DOSBox to print to a physical printer, I was unable to get this working on Ubuntu 20.04.  Instead, I had to manually configure DOSBox to print to a file. Start DOSBox-X for t

QZ Tray 2.1.0 + MacOS 10.7 "Lion"

Image
Oracle's website makes claim that Java 8 is supported on macOS 10.7 or higher however this information is not correct for Java 8u122 and higher. https://stackoverflow.com/a/49678695/3196753 dyld: lazy symbol binding failed: Symbol not found: _CTFontCopyDefaultCascadeListForLanguages   Referenced from: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/libawt_lwawt.dylib   Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices Warning: There are security implications running outdated versions of macOS There are security implications running outdated version of Java 8 Continue at your own risk! Solution: Uninstall Java 8u241 using our guide here: https://qz.io/wiki/upgrading-java#macos Visit  https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html Search the page for: jre-8u121-macosx-x64.dmg Click the download link. Accept the Oracle License Agreement (popup) Login with

15 years later: OpenWorkbench with AdopOpenJDK

Image
A question came in over on AdoptOpenJDK Slack channel about how to get OpenWorkbench -- a 2005 app written in C++ but uses a custom Niku-authored C++ to Java bridge for talking to the JVM -- working with AdopOpenJDK. Turns out it does work (at least it starts up!).  Here's how: It must be the 32-bit version (x86) of AdoptOpenJDK8 It must be the JRE ( NOT the JDK) Direct Link:   https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jre_x86-32_windows_hotspot_8u242b08.msi You must click the checkbox for JavaSoft ( NOT JAVA_HOME) That's it, OpenWorkbench will startup with AdopOpenJDK with the above steps. Keywords: openworkbench no JRE at startup Cannot start or find the Java JRE (4) the JRE may not have been installed or the registry may be incorrect.

HiDPI Ubuntu 18.04 Parallels

Ubuntu 18.04 running in Parallels using Retina will be either blurry or too small. The setting to enable 200% in Ubuntu settings is missing.  Force it by doing the following: (whole numbers only) gsettings set org.gnome.desktop.interface scaling-factor 2 Then reboot. If you have a similar problem but don't have a Retina display, you may be interested in the following experimental feature: gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" This allows fractional scaling in Ubuntu 18.04.