Guys,
Can you please guide me to create a RESTful API in our cache with JSON response.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Guys,
Can you please guide me to create a RESTful API in our cache with JSON response.
Caché will not change the cryptographic settings in an existing TLS configuration when you upgrade. This means that unless you've updated them yourself, you're still using the values from the very first version you started using SSL in.
If you've upgraded since creating your TLS configurations, take a moment to look at the enabled protocols and ciphersuites to make sure you've enabled all the versions you want, and disabled the old versions you don't want.
Dear community!
I'm currently working on MessagePack implementation by using Cache ObjectScript.
I try to choose suitable representation for binary array.
Should I use $lb or $c or smth else for it?
I have an application in Cache 2013 (No Ensemble) which need to consume a REST web API over internet.
Can somebody please help me by pointing out the documentation or provide me code sample for consuming the REST API from a routine/class.
I am using Cache 2008 (No Ensemble) .
Hello!
Suppose I have a package with classes which I want to rename. All these classes are persistent and they already have a lot of data stored.
The best I can think of to do is the following:
5. finishes successfully.Hello.
We're about to implement an application that could use WebSockets intensely so before we head to that direction we need to figure out about how some few things work. That being said, anyone care to give me some enlightenment?

This is (the end) of a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
This is the 25th and last challenge of the 2016 series of Advent of Code.
In this challenge, you have to send a signal out, using the assembunny code interpreter that we had to make in earlier challenges.
There is one extra instruction added to the assembunny language, which outputs a value (out x).
Using the instructions as input (see http://adventofcode.com/2016/day/25 for the
Is there any way to specify in which order indices are built during:
So far I think they are built by name order.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today, you need to find your way through a maze (again). There are 8 points of interest in the maze, and you have to visit them all, starting with point 0.
You may visit some points more than once, in random order. The challenge is to find the shortest path through the maze while visiting all points.
The maze looks a bit like this :
###############################################################
Dear community!
I have problem with index NULL value. Unique index doesn't work for this case. If I use insert and one of parameter is "NULL". Message of constraint doesn't appear and row is inserted into table successfully. How Can I use index with NULL?
Class TestClassIndx Extends %Persistent
{
Property name As %String [ Private ];
Property age As %String [ Private ];
Property country As %String [ Private ];
Index IndextestUniq On (name, age, country) [ Unique ];
}
INSERT INTO TestClassIndx (name,age,country) VALUES ('1','2',NULL)
Best Regards
Hi everyone!
I'm restoring big database (1.8 Tb) from full backup to another host.
This host is weak (4Cpu 4GB RAM), so ^DBREST already works for 50 hours.
Is it possible to view restore process progres? I would like to know what time it will take to complete?
Hi Guys,
Can you please guide me on how to develop the machine learning concepts like as Chatbots, voice recognition, etc...
If any lead would be appreciate.
Thanks in Advance.
Thanks and Regards,
Arun Kumar Durairaj.
I ran the below query in three different modes. Coordinated Universal Time is 5 hours ahead of Eastern Time so there is difference in value from column 1 and column 2 in ODBC, Display mode, but not in Logical Mode. By default the query executes in ODBC mode when we query the data from outside world(via ODBC connection).
I don't know why query 2 and query 3 outputs different from query 1.
Query 1. Ran in Logical mode, DATEPART() took in memory stored timestamp data(stored in UTC)
'Hour ' returned are same for both the columns
Query 2. Ran in ODBC mode, DATEPART() took in memory stored timestamp
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Remember the assembunny language we had to code on day 12 (https://community.intersystems.com/post/advent-code-2016-day12-leonardo…)?
There is a new instruction we have to implement which toggles an instruction x lines away (further or back).
inc becomes dec, and all other one-argument instructions become inc.jnz becomes cpyDear community!
What do you think about webinar "Declarative programming on COS"? I want to do such one.
I am going to tell about main points of declarative programming and how you can implement it in your real projects.
Please feel free to write your opinion here.
Please if you wish to become a member of such webinar write me a message to atygaev.mi@gmail.com with subject "webinar".
I am in Atelier editing a Class.
I want to look at the window or pane that shows my Properties,
I get to the tab that show Properties and their Value as shown below.
Now, how do I get the properties from my Class into the image below?

This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The goal of today's challenge is to copy data from one disk to another, problem is that the disks are not directly connected. Luckily they are in a huge grid, and you have to find a way to copy the data through adjacents disks, while honoring the disk usage (you cannot copy to a disk where data is already stored).
The input is a df-like disk usage listing.
The first challenge is to calculate a
Hello, this is going to be a stupid question, yea I know, there are no stupid questions.
Say, I have an Object Property, Name or Count or Title, or whatever.
How can I get a list, or find out all the different ways it can be expressed?
Example:
-Property Name As %Name;
-Property Name As %String="me"
-Property Name As %String [ Required];
But what other parameters, keywords, restrictions, lists, etc. that I can apply to this Property?
I have been search the I/S documentation and so far at least, I cannot find that sort of information, or in one place.
I could search all the I/S classes, but that takes
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The challenge of day 21 is about scrambling passwords.
There are a few functions you need to implement that will do operations on a string :
- swap position X with position Y : means that the letters at indexes X and Y (counting from 0) should be swapped. - swap letter X with letter Y : means that the letters X and Y should be swapped (regardless of where they appear in the string). - rotate
Hi there,
The problem is, that I need use the property value of datacombo in other datacombo with parameter.
The follow a example code:
<dataCombo id="Grupo_Producto" name="Grupo_Producto" dataBinding="bdGrupo" size="40"
label="(*) Grupo" dropdownWidth="400" dropdownHeight="100" loadingMessage="Cargando..."
columnHeaders="Codigo, Nombre"
queryClass="Innova.CL.Core.BD.Configuracion.Operacional.Grupo" queryName="obtieneGrupoProd"
sqlLookup="SELECT Nombre FROM Innova_CL_Core_BD_Configuracion_Operacional.Grupo Where ID = ?"
>
</dataCombo>
<dataCombo id="Linea_Producto" name="Linea_Producto" dataBindin
Hello Community,
I have a simple question but somehow hard to find the solution:
this is a property in my class:
Property RelationAID As ZenCrm.Relationtypes;
this is my method to save:
ClassMethod PopulateMatrix(tvar1, tvar2) As %Status
{
set RelationMatrix=##class(ZenCrm.RelationMatrix).%New()
set RelationMatrix.RelationAID= tvar1
set RelationMatrix.RelationAType= tvar2
do RelationMatrix.%Save()
quit $$$OK
}
However the 'set' line does not work for the 'related properties.
I have tried: set RelationMatrix.Relationtypes.RelationAID but this failed.
Any suggestion? thanks!
Application Performance Monitoring
Back in August in preparation for Global Summit I published a brief explanation of Application Performance Management (APM). To follow up on that I have written and will be publishing over the coming weeks a series of articles on APM.
One major element of APM is the construction of a historic record of application activity, performance and resource usage.Crucially for APM the measurement starts with the application and what users are doing with the application.
We have an web application accessed using https, that uses CSP technology with frames.
The initial 'login' is via a single CSP page, which then redirects to another CSP page which creates the frames (4 in all) and loads a CSP page in each of those. For the most part the frames load without error, but sometimes when logging in and sometimes while using the system ' 5916 Illegal CSP Request ' errors occur.
I say 'login' in inverted commas as a Cache login is not performed just an application login, I don't know if that's relevant so thought I'd mention it.
I presume the errors are connected to
Does anyone know how to return the sys.process table with the corresponding configname item for each process? Also, is there a key for the Job Type field?
I have restored one database from backup, but when I query from some of tables, prompt error :
this error remain after restart Caché service
I can skip this error with %nolock in select query.
My question is:
1. why there were locks after restart service?
2. Can I release/rollback these locks by sql so I can query without %nolock?
I have a query that I am attempting to run, but inner query is being rolled up into the overall query - per the optimizer (and jobexam observation). While I know that if the inner query runs first, I will eliminate a number of records (making the result set smaller, and return quicker).
Just an example of what I am attempting to do:
select Account.Name, Account.State, Transaction.Amt, Transaction.Date, Transaction.Service
from Transaction
left join Account
on Account.Id = Transaction.Account
where Account.Id in (
Select Account.Name
from Account
where Account.Type is not null
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
We are almost there : after this challenge, only 5 days left till the end of this advent of code (I cannot wait to get my life back !) .
The challenge of day 20 is about a list of integer ranges. Some ranges overlap, but there are also values that are outside any range.
You have to find out what is the lowest integer that is outside any range.
More explanation (there is not much more to say)
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today's challenge is a variation on the White Elephant gift exchange (https://en.wikipedia.org/wiki/White_elephant_gift_exchange), in this case, by a bunch of Elves where only one can have all gifts.
Each Elf brings a present.They all sit in a circle, numbered starting with position 1.Then, starting with the first Elf, they take turns stealing all the presents from the Elf to their left.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
You walk into a room, step on a tile and hear a loud click...
Traps !
The challenge is about avoiding traps.
You can recognise if a tile is a trap by following scheme :
The first row is a given : a safe tile is shown as . and a trap is shown as ^
For the next rows, the state of a tile is calculated related to the tiles in the previous row (same position, tile left and tile right).
If the tile is
#########
#S| | | #
#-#-#-#-#
# | | | #
#-#-#-#-#
# | | | #
#-#-#-#-#
# | | |
####### V
<!--break-->
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The challenge today is again a-maze-ing (as a wellknown president would say).
The maze has a bunch of doors ( | and - on the drawing), but they can be locked depending on a hash that you need to calculate every step.