Are you ready for the next Advent of Code this year?
Just a few days left, the first puzzles will unlock on December 1st at midnight Eastern Time.
Pieces of experience in InterSystems Technology which solve some particular problem in elegant or unusual way.
Are you ready for the next Advent of Code this year?
Just a few days left, the first puzzles will unlock on December 1st at midnight Eastern Time.
Caché mirroring is a reliable, inexpensive, and easy to implement high availability and disaster recovery solution for Caché and Ensemble-b
The goal of this “DeepSee Troubleshooting Guide” is to help you track down and fix problems in your DeepSee project.
In this post I show strategies for backing up Caché using External Backup with examples of integrating with snapshot based solutions.
EnsLib.HL7.Message.cls provides many API methods for manipulating an HL7 message. RemoveSegmentAt(), for example, can be used to remove a segment by path or index, but only one segment at a time.
This article will provide tips and tricks on customizing Ensemble business hosts with configurable settings.
Hi all,
I'm pleased to announce this personal project to convert a number to text, in spanish, english and catalan.
the aim of this function is to convert numbers into text. It allows a maximum number of 15 digits.
This code snippet determines the day of the week associated with a date. The class method "test" takes a date as a string in "mm/dd/yyyy" format, and returns an integer corresponding to a day of the week:
Class cartertiernan.getDayfromDate Extends %RegisteredObject
{
classmethod test(date) as %Integer {
//Set date = $ZDATE(date) // Looks like: mm/dd/yyyy
Set monthList = $LISTBUILD(0,3,3,6,1,4,6,2,5,0,3,5) // (Jan,Feb,Mar,Apr,...)
Set centuryList = $LISTBUILD(6,4,2,0) // first two digits divisiable by 4, then subsequent centuries. EX (2000, 2100, 2200, 2300)
Set dayList = $LISTBUILD("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") // Index goes from 0-6
Set day = $PIECE(date,"/",2) // get the day
Set monthVal = $LIST(monthList,($PIECE( date,"/",1 ))) // get the month value
Set first2DigsYear = $PIECE( date,"/",3 ) \ 100 // get the last 2 digits of the year
Set last2DigsYear = $PIECE( date,"/",3 ) # 100 // get the first 2 digits of the year
// Used for DEBUG perpouses
/*write !,"day: ",day
write !,"Month: ",monthVal
write !,"last2: ",last2DigsYear
write !,"first2: ",first2DigsYear
write !,"cen Val: ",$LIST(centuryList,(first2DigsYear # 4) + 1),!!*/
// Look here for formula explination (its the "Basic method for mental calculation")
// http://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week
Set dayOfWeekVal = ( day + monthVal + last2DigsYear + (last2DigsYear\4) + $LIST(centuryList,(first2DigsYear # 4) + 1 ) ) # 7
Quit dayOfWeekVal
}
}
Here's a link to the code on GitHub
(originally posted to CODE by Carter Tiernan, 6/18/14)
Hello community,
I am pleased to announce version 1.1 of this project. Now Russian
In this series of articles, I'd like to present and discuss several possible approaches toward software development with InterSystems technologies and GitLab. I will cover such topics as:
Hi everyone!
I want to share four functions with you. I hope that you can use it at some time.
Hi all,
I've created a method to calculate the age of a person, or the age of a process, contract or other stuff as you want.
Hi!
It is often necessary to run some external command such as a python program or a shell script from inside Caché/Ensemble. There are three ways of doing this:
Zen report can create PDF document (https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY
Here is a snippet that I learned yesterday
You can define an index on a collection property but when I tried to use it, I failed. I was using
Does anyone NOT use a debugger? I can't remember the last time I did. It's not because I don't dislike them, I just don't need to use them.
Hello everyone,
From now till the 25th of december each day 2 programming problems to sharpen your programming skills.
Caché will not change the cryptographic settings in an existing TLS configuration when you upgrade.
This small function is of great need sometimes. My solution is straightforward:
Sometimes you can face the situation when you did update the web app on Caché server but you cannot get the newest version of the app in a browser.
It was my answer to the question appeared in GoogleGroups. And when I answered there I figured out that it might worth to post an article and to add some light on how Unicode is stored in Caché.
We have a large number of processes and operations being applied to outbound HL7 messages from our PAS.
To leave a comment or answer to post please log in
Please log in