Yes) Timur already answered. This snippet is not very general "read from file" snippet - but snippet to parse "russian-like" csvs) But every time when I work with text files line by line I use it.
- Log in to post comments
Yes) Timur already answered. This snippet is not very general "read from file" snippet - but snippet to parse "russian-like" csvs) But every time when I work with text files line by line I use it.
Didn't get it. You mean I should change the description for the snippet?
Or to change the snippet to make it less "csv" specific?
Agreed. Will fix it. Anyway, you are very welcome to add your version of the simplest ever file management snippet ;)
Oh, thanks for this! I think it worth to make a separate snippet posting how to use the record mapper. Haven't found it in the documentation.
Blaize, thank you!
Would you please upload it to Github?
TIA!
Ed, what macros $$$START and $$$END do?
One more optimisation. This:
Set list = $ListFromString(string,",")
Set pointer = 0
While $ListNext(list,pointer,piece)
{ //Do something with piece...
}Can be changed to:
Set list = $ListFromString(string,",")
Set pointer = 0
For {
quit:'$ListNext(list,pointer,piece)
//Do something with piece...
}Which is faster, as 'for' is generally faster than 'while'.
Took from Russian Caché forum
Mike, if you don't like it - you don't use it.
You'll not miss any DC content if you just subscribe for every post and comment in subscription settings.
DC Twitter is intended to increase the audience for DC highlights.
Write valuable topic and it will be tweeted on DC Twitter.
Thank you, Mark, good to know.
Thank you Alex! That is exactly I'm looking for!
What Caché version starts supporting this?
If you want just 2012, exclude 2011 from the filter - it will still show the percentage for 2012 related to 2011.
Or maybe I didn't get what pivot do you want?
Oh. I wanted to use this for Combined Cubes to have shared Date dimension with all the dates. It seems it will not help me, though maybe helpful thing in a lot of other cases. Is there any kind of setting in Architect to introduce all the dates in Dimension>
Unless I should create entries in fact table for all the days even there were no facts in this days for both cubes. Right?
Hi, Petr!
I can advise you to pass through InterSystems Getting Started online courses.
Also Caché Programming Orientation guide can be useful.
A lot of people also find useful Caché ObjectScript Quick Reference
And you can buy any book about InterSystems Caché, or just ask Mike - he is the author of two books about InterSystems Caché.
No, you don't need gulp to use it. Gulp is used to make releases.
To use it on your server do following:
Install MDX2JSON first.
Run in terminal (import namespace) under user with %All role:
Do ##class(MDX2JSON.Installer).setup()It will create MDX2JSON Namespace, will create /MDX2JSON webapp, make MDX2JSON package mapping to %All.
Check server:port/MDX2JSON/Test that installation was successful.
Then download the recent DSWeb release and install it.
How to install: download installer. Import it to any Namespace (f.e. User).
Run:
d ##class(DSW.Installer).setup()It will create webapp, folder and will install the client.
To update DSW, run:
d ##class(DSW.Installer).update()I've added couple updates to the dashboard - so it now supports click filter for the counties too. Click on the county to see it's data in the indicator widget on the right.
Added Healthshare tag. Thank you John.
Hi, Rob! What are the benefits of using ewd-document-store abstraction?
Alexander Koblov, thank you for such interesting problem for the Contest Final. Your variant? ;)
Proof in gist?
Or, let's open and share proofs tomorrow!
And would you please provide "readable" version too just to see the algorithm better? TIA!
Personally, I think looking at different ways of doing the same thing are a great learning lesson. Judging based on the length of the code, simply encourages bad programming.
Agreed. So I think is good to provide two versions: readable and the shortest.
Hi, Joe!
Thanks for the article!
Is it possible to use one Listing Group for several cubes?
Thank you for this great tool, Tony!
One question: is it possible instead of importing into %SYS, import to OTHERNAMESPACE and map the package to %All?
Hi, Dan!
Have you seen this conversation?
There is USA map in DeepSee Web which shows how you can tie any data to polygons and color it according to the data value.
Joe! Would you please describe how can the Listing Groups be deployed?
One more variant from Russian forum:
p(t)
{ s R="" f %=1:1:$l(t) f N=0:1:3 s n=$f("adgjmptw ",$c($a($e(t,%))-N)) s:n n=n#10,R=R_$e(" ",$e(R,*)=n)_$e(n*1111,1,N+1),N=9
}132 symbols.
Good news, thanks!
My question was because importing smth to %SYS needs temporary write permission to CACHELIB database to be turned on and everything installed in %SYS will be erased with the next Caché update.
Luca, thank you! And thanks for the following and retweeting!
Hi, Asaf!
Yes, you are right - Compound Cubes!
In any case, I believe that giving the option (in Architect and Studio), to mark a date dimension to include all dates (or a range of years), would be a good enhancement to DeepSee.
That would be great!