Problem This is a sort-of-useless “utility” I wrote to learn my way around shell programming better. My concerns are: Is […]
Tag: portability
Vertical-align in Nested Column
Problem Requirements: There are two columns. The left column is fixed width. The height of two Column should be the […]
Pseudoportable C script pattern
Problem (See the next iteration.) From time to time, while working with a command line in *nix family of operating […]
Restricting user to one open tab in browser
Problem I had a requirement to restrict my web site’s users to just one open tab in the browser. I […]
Unix shell function for adding directories to PATH
Problem Adding a directory to the PATH in Unix/Linux is a very common task. However, what if the directory is […]
Guessing the JDK home directory
Problem My project is using a specific version of JDK which is jdk-6 and the default JDK_HOME path will vary […]
Pseudoportable C script pattern – follow-up
Problem See the initial/previous iteration. I have rewritten the script following the answer of @200_success. Now it looks like this: […]
Creating a Compatibility Shim for ExampleClass to be targeted both to .net framework and .net core 2.0
Problem Intro: Before showing the actual code for review, let me show you an ExampleClass to create a shim for. […]
Guessing the JDK home directory
Problem My project is using a specific version of JDK which is jdk-6 and the default JDK_HOME path will vary […]
Modular exponentiation without range restriction
Problem A typical modular exponentiation may be coded using the following algorithm. powmod(x, expo, m) { x = x mod […]
- 1
- 2