Posts

Showing posts with the label Software Development

Do you want a professional favicon for every browser?

Image
Of course you do! But, today, favicons are ridiculously complex. There are so many options and so many devices to consider and making your icon look professional on every device can be very time consuming. I spent hours trying to get mine just right... For you to get flawless perfection, you're making a large time investment. But, there's another way which I'll get to... So, what is it that you need to consider? There's these components: The historical favicon.ico which you need and can just place in your root website directory and be done with it. But, that looks awful everywhere except on the tabs of a desktop browser. A very large number of each of the different resolutions for many different browsers, tablets, smartphones and other devices to create. A manifest configuration file that defines each of the images that you create for every device. A browserconfig.xml file to configure. meta and link tags (many, not just one) to add to the head html . ...

Configurable Recursive Purge and Retain Data Tool

In this article we'll discuss and demonstrate a very helpful tool for doing a recursive search through directories from a given root directory and all of its children. In this case, the application will decide whether a file should be deleted or retained. It can, through a property file, have different retention policies (i.e. number of days old for a given a path). At the end of this article, there is a link from which you can clone the repository and freely use and modify. C onfigurable H I erachrical R etention and P urge D ata Tool ( chirpd ) This tool consists of: A Bash script - This executes the java jar: chirp-data-tool.jar Three Java Classes - The java classes are the main part of this tool The three Java Classes include: ChirpData - This class is the main class and handles the major processing ChirpDataLogger - Handles logging messages ChirpDataException - The throwable Exception class Now will explain the flow of this tool: The chirpd comma...

Quick Tutorial on Writing a Linux/Unix Bash Script

Getting used to bash is a bit awkward when you come from a background of a verbose programming language (i.e Java , which I love by the way). But,if you do it awhile you get accustomed quickly. On the other hand, if you don't need to write scripts much, remembering the syntax is frustrating. This is a quick tutorial and cheat sheet that I hope you find useful. Even a Java Programmer needs to write Bash scripts sometimes. Start of Script Line one contains the location of your bash command proceeded with !# as shown here: !#/bin/bash Variable Assignments Name variables starting with a-z, A-Z. a-z, A-Z, 0-9 and _ (underscore). Do not put spaces between the variable name and assignment. Valid variables and assigment statements: myVar=1 MyVar="X" my_var="John" Referencing Assigned Variables When referencing assigned variable, precede the variable name with a $ sign and wrap variable in quotes. Example: if [ "$myVar" == "X"...

Starting a New Software Development Project or Task?

Most Software Developers, including myself, want to just dig in and start writing code. You understand the problem and you have a solution (all in your head). Time to write code! Code is written and you've tested the solution and it's working perfectly. You're happy! You set up a meeting with the Quality Assurance person or team... They take notes and test it.  They're satisified and it's working as it should. So, it's deployed to Production. A week later, a bug was uncovered... No problem just fix the code. Now the program has been running flawlessly in Production for a couple of years and still meets the business needs perfectly. You're proud of your efforts and you should be! That's impressive! While most can do a good job in getting the task at hand done in this manner, going back at making code changes to a project that you haven't hardly thought about for a long time, and started this way , is tough! You may even ask yourself, did I w...