Rechercher

Question
· Déc 5, 2016

Login

Hi all,

         How to set username while take telnet from particular ip in cache 16?

Thanks,

Sansa.

2 Comments
Discussion (2)0
Connectez-vous ou inscrivez-vous pour continuer
Article
· Nov 29, 2016 18m de lecture

InterSystems Data Platforms and performance – Part 9 InterSystems IRIS VMware Best Practice Guide

This post provides guidelines for configuration, system sizing and capacity planning when deploying Caché 2015 and later on a VMware ESXi 5.5 and later environment.

1 Comment
Discussion (1)1
Connectez-vous ou inscrivez-vous pour continuer
Article
· Nov 21, 2016 5m de lecture

Caché Localization Manager or i18N in InterSystems Caché

Caché Localization Manager

CLM  is a tool for localization/internationalization/adding multi-language support to a project based on InterSystems Caché.

Imagine that you have a ready project where all the content is in Russian, and you need to add an English localization to it. You wrap all your strings into resources, translate them into English and call the necessary resource for Russian or English when necessary. Nothing tricky, if you think about it. But what if there are lots of strings and there are mistakes in Russian (or English)? What if you need to localize in more than one language – say, ten? This is exactly the kind of project where you should use CLM. It will help you localize the entire content of your project into the necessary language and retain the possibility to correct entries.

CLM allows you to do the following:

  • Add a new localization.
  • Delete a localization.
  • Export a localization.
  • Import a localization.
  • View two tables at a time.
  • Conveniently switch between spaces.
  • Check spelling.

 

Let’s “look under the hood” now

 

Caché has a standard approach to implementing I11N using the $$$TEXT macros:

      $$$TEXT("Text", "Domain", "Language")

where:

Text — the text to be used for localization in the future.
Domain — modules in your applications.
Language — the language of "Text".

 

 

If you use $$$TEXT in COS code, data is added to the ^CacheMsg global during class compilation. And this is the global that CLM works with.

In ^CacheMsg, everything is identical to $$$TEXT, you just add "ID" as the text hash.

 

 ^CacheMsg("Domain", "Language", "ID") = "Text"

 

 

If you are using CSP, then the use of $$$TEXT in CSP will look as follows:

<csp:text id="14218931" domain="HOLEFOODS">Date Of Sale</csp:text>

 

Installation

 

First of all, you need to download the Installed class from GitHub and import it to any convenient space in Caché. I will use the USER space. Once done, open the terminal and switch to the USER space. To start the installation, enter the following command in the terminal:

      USER> do ##class(CLM.Installer).setup()

 

Installation process:

 

You can make sure the application is installed correctly by following this link: http://localhost:57772/csp/clm/index.csp (localhost:57772 — the path to your server).

 

Settings

 

CLM uses Yandex to perform the translation. You will now need to obtain a Yandex API key to let it work. It's free, but needs registration.

 

Let’s now deal with spellchecking. CLM uses Caché Native Access for SpellCheck implementation. CNA was written for calling external functions from dynamic libraries, such as .dll or .so. SpellCheck works with the Hunspell library and needs two files for spellchecking. The first file is a dictionary containing words, the second one contains affixes and defines the meaning of special marks (flags) in the dictionary.

How words are checked:

 

All words are packed from CLM and sent to Hunspell via CNA, where CNA converts them into a language that Hunspell understands. Hunspell checks every word, finds the root form and all possible variations, and returns the result. But where do we get all these dictionaries and libraries?

 

— CNA: use an available release or build it on your own.

— Hunspell: same thing, use an available version or download sources for making your own build.

— We will also need a standard C language library. In Windows, it is located here: C:\Windows\System32\msvcrt.dll.

— Dictionaries can be downloaded here.

 

At the moment, 51 languages are supported:

  • Albanian          Czech              German           Latin                Romanian       Vietnamese
  • Arabian            Chinese           Greek              Latvian            Russian
  • Armenian         Danish             Hebrew           Lithuanian       Spanish
  • Azeri                Dutch              Hungarian       Macedonian     Serbian
  • Belarusian        English            Icelandic         Malay              Slovak
  • Bosnian            Estonian          Indonesian       Maltese           Slovenian
  • Basque             Esperanto         Italian              Norwegian      Swedish
  • Bulgarian         Finnish             Japanese         Polish              Thai
  • Catalan            French              Kazan              Portuguese      Turkish
  • Croatian          Georgian           Korean            Brazil              Ukrainian

The entire configuration process boils down to entering the paths to everything you got before. Open CLM in a browser. There is a “Set Paths” button in the upper right corner. Click it and you’ll see the next window. Use it to enter the required paths.

Here’s what I got:

 

Demonstration of a registration form localization

 

Link to demonstration. Password and login: demo.

 

Your critique, comments and suggestion are very welcome.

 

The source code and instructions are available on github under an MIT license.

4 Comments
Discussion (4)3
Connectez-vous ou inscrivez-vous pour continuer
Article
· Nov 12, 2016 5m de lecture

InterSystems Data Platforms Capacity Planning and Performance Series Index

Index

This is a list of all the posts in the Data Platforms’ capacity planning and performance series in order. Also a general list of my other posts. I will update as new posts in the series are added.


You will notice that I wrote some posts before IRIS was released and refer to Caché. I will revisit the posts over time, but in the meantime, Generally, the advice for configuration is the same for Caché and IRIS. Some command names may have changed; the most obvious example is that anywhere you see the ^pButtons command, you can replace it with ^SystemPerformance.


While some posts are updated to preserve links, others will be marked as strikethrough to indicate that the post is legacy. Generally, I will say, "See: some other post" if it is appropriate.


Capacity Planning and Performance Series

Generally, posts build on previous ones, but you can also just dive into subjects that look interesting.


Discussion (0)10
Connectez-vous ou inscrivez-vous pour continuer
Question
· Nov 9, 2016

audit login failures, how to trace?

Thanks for all replies in advance.  In monitoring our audit log we are getting the error below.  We have 4 different servers running CACHE  2014.1.1 and this is happening on all 4 of them.  I have not been able to find what process is trying to logon but it is happening every 30 minutes.  We have no user processes that are running so this has to be a CACHE process.  Does anyone have an Ideal what could be running to cause this?  What kind of trace can I run to determine what process is running it?

2 2016-11-09 15:17:15.997 %System %Login LoginFailure 7748    

%Service_SuperServer login failure

1 Comment
Discussion (1)0
Connectez-vous ou inscrivez-vous pour continuer