Java : Process MP3 Tags
Update and fix. Add detect big artwork.
Latest updates of useful code examples for Java, Javascript, Powerbuilder and VBScript
Update and fix. Add detect big artwork.
Turn off all the screens with this poowershell one-liner.
You can use Apache POI HSSF to create an XLS file or Apache POI XSSF for an XLSX file.
Run legacy Java Applets on modern browsers without a Java plugin or a Java installation
Many ways to display numbers with leading zeroes
Display currency using Java Money or NumberFormat
HTML UL style provides only filled square as bullet. Use this simple CSS, to have a empty square (like a checkbox) instead.
We connect to a publicly accessible time server on the internet and parse the result. Using a Gregorian Calendar or new way using java.time
Solution with APache Text StringSubstitutor is added
The generate() method produces a password using some rules and the validate() method validates a password against the same rules. Also an Apache Commons solution is provided to generate a random string.
Support for regular expression in Powerscript is minimal, you need to use an external COM object like VBScript.RegExp to do something useful.
2 ways to count files in directory and subdirectories
A CMD file to launch an executable, resize its window and position it on the screen.
This HowTo launch an executable using the Win API ShellExecuteEx and retrieve the handle of the launched executable. This handle can be used later to interact with it. Like, for example, if we want to terminate it form Powerbuilder.
One missing thing is that Powerbuilder provides no direct API to display information in the console to display processing or debugging information.
Enable the java-logging mechanism for HttpURLConnection/UrlConnection by setting a special property when starting the JVM
Try these properties to enable logging with JAX-WS (javax.ws.*)
Check if a file, the classic way ou the NIO way
Get the running JVM Path, JDK9 and pre-JDK9 solution
Kill a process with its PID, one solution is using taskkill.exe (Windows-only) and the other is pure Java (JDK9)
Retrieve the PIDs, one solution is using WMIC (Windows-only) and the other is pure JAva (JDK9)