-
Launch and Run Java Programs on the Raspberry Pi Without a Persistent Command Window
Desktop shortcut file contents (Example: Launch Program.desktop) should look similar to the following: [Desktop Entry]Name=Launch ProgramComment=Launch programIcon=icon.pngExec=bash “/srv/Examples/Linux/Scripts/Launch Program.sh”Type=ApplicationEncoding=UTF-8Terminal=trueCategories=None; Launch program script executed by desktop shortcut should look similar to the following: # Launch Programnohup java -jar “/srv/Examples/Program.jar” & # Sleep for 3 seconds to ensure program has time to launch.# If this is not…
-
C/C++
C++ Templates, Specialization, and SFINAE There are C++ Template programmers…and then there are all the other programmers. Unfortunately, template programming can seem like a whole ‘nuther world…with its very own language. Here is yet another stab at making sense of it all: C++ Templates, Specialization, and SFINAE The Curious Thing About Duplicate Definitions in Header…
-
File Creation Time
Retrieving the creation date of a file and displaying it should be a simple task. Yeah, right. The Java documentation has page after page regarding time and dates. Some examples on the web suggest using: String timeStamp = attr.creationTime().toString(); This returns a date string in Zulu time such as: 2009-02-13T23:31:30.123Z Attempting to reformat this to…
-
Model-View-Controller ~ Implementation for Java
There are many different variations on the implementation of the Model-View-Controller (MVC) theme. Some programmers have even declared it obsolete or have moved on to new variations such as Model-View-ViewModel (MVVM). Regardless, the main benefit of the various schemes is separation and encapsulation. This text details an implementation of MVC useful for Java. It provides…
-
Version Control / Source Code Management using Git
placeholder
-
The Art
Good programming is like beautiful art. You know it when you see it. A good starting point is to read Code Complete by Steve McConnell. It’s a big book. Tough it out. Even simple things like using consistent variable and method naming can be a big improvement. A professional programmer once asked me, “why bother…