Welcome to my blog!

Here you will find my notes on software development, mathematics and miscellaneous topics that piqué my interest.

Please feel free to use any of the code according to the MIT license. However, this information is for educational purposes only! These examples and those found on my Development Examples site or in my GitHub repositories are not production ready widgets. I’m always tweaking and trying new things. Be sure to test each one thoroughly before use.

Original material and content copyright © 1995 – Dedra L. Welch


All software and code examples on this site are Copyright © Dedra L. Welch, MIT licensed:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

http://opensource.org/licenses/mit-license.php

2 comments on “Welcome to my blog!
  1. Oliver Becker says:

    Hi Dedra,

    I found your page about date arithmetic with XSLT and XPath (http://blog.dlwelch.com/?p=25) and I would like to ask you if I may use this code in a customer project that I am doing as a freelance developer. This is a commercial project. I haven’t found a license notice, so I better ask.

    While testing the “DateAdd” template I noted a minor bug/problem. The days in the result are not always zero padded, so adding one day to 20130228 resulted in 2013031.
    I modified the template “EpochToDate” as follows: instead of outputting month and date directly I put them into a variable. Then output the first two characters of the result in the variable, and call the template “FrontPad0″ with the rest (characters 3 and possibly 4).
    There was already a call to “FrontPad0″, but only for the february in leap years – I moved the call after the xsl:choose to do it for all day results.

    The relevant code snippet is:

    If you like I can send the complete template.

    Thanks and best regards,
    Oliver

    • Dedra says:

      Hi Oliver,

      Yes, you can use the template in a commercial app. Just a small mention of my name or site would be nice. :) Glad you found my oversight on zero padding all the days. I’ll fix it, with a credit to you as well, and re-post.

      Good luck with your project!

      Dedra