Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Jim Self
Bhaskar wrote: >Code specific to each MUMPS implementation should belong in the kernel, >isolated from the applications. > >GT.M doesn't provide a function to stat a file. The two approaches >would be to use ZSYstem to call a program like ls, stat or file, or to >call a standard C library function

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread JohnLeoZimmer
Joseph Dal Molin wrote: "Problem-based Learning: PBL is any learning environment in which the problem drives the learning. That is, before students learn some knowledge they are given a problem. The problem is posed so that the students discover that they need to learn some new knowledge befo

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread Joseph Dal Molin
Here are a couple of good links: "Problem-based Learning: PBL is any learning environment in which the problem drives the learning. That is, before students learn some knowledge they are given a problem. The problem is posed so that the students discover that they need to learn some new knowle

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread Nancy Anthracite
Personally, I find the curiosity factor directly proportional to sleep and indirectly proportional to my work load. On Friday 13 January 2006 07:32 pm, Richard G. DAVIS wrote: The journey of Don Juan under the pen of Carlos Castaneda will illuminate the path you describe, and the two main branc

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread Richard G. DAVIS
The journey of Don Juan under the pen of Carlos Castaneda will illuminate the path you describe, and the two main branches. You won't get an answer to your question--I don't think there is one--but it will give you the opportunity to make peace with the division of humans into these two groups. M

Re: [Hardhats-members] Fileman SEARCH frustration

2006-01-13 Thread Jim Self
Kevin wrote: >I am frustrated. I have been doing my best to understand the functionality >of the ^DIS routines (FILEMAN interactive SEARCH functionality). My goal is >to provide a silent brute-force search API. Kevin, I admire your tenacity. I may be able to help. Tell me more about your desire

[Hardhats-members] Re: Fileman SEARCH frustration

2006-01-13 Thread Kevin Toppenberg
Let me ask a question that someone might be able to answer instead of whining in my milk.In the Search code (DIS.m), I find an entry point:ENS^DIS -- "ENTRY POINT FOR RE-DOING SEARCH USING AN EXISTING SORT TEMPLATE" Does anyone know how to redo a sort using an existing sort template?  I find that a

Re: [Hardhats-members] Needed Kernel Functions: HFS Directory functions

2006-01-13 Thread Kevin Toppenberg
Cameron,I have the html Kernel programmer's guide, so I was aware of these functions.  I did learn something new however about the $DEFDIR function that will deal with the "/" "\" issue between OSs. So Thanks!KevinOn 1/13/06, Cameron Schlehuber <[EMAIL PROTECTED]> wrote: The list of %ZISH functions

Re: [Hardhats-members] Done: Interlinked html site of office notes

2006-01-13 Thread Kevin Toppenberg
On 1/13/06, Jim Self <[EMAIL PROTECTED]> wrote: ... Very good. Once you have M2Web running, it should take very little additional effort to make it so that these reports can be generated live on demand. One of these days, I am going to sit down and work on getting Apache up and running etc and sett

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread Greg Woodhouse
--- James Gray <[EMAIL PROTECTED]> wrote: > > I am not sure what this idea is. Are you referring to aggregation, > procedural abstraction, or sater invariants. Sorry for the confusing prose. The idea I was referring to was "[The idea] that...by beginning to ponder...these very impractical soun

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread James Gray
- Original Message - From: "Greg Woodhouse" <[EMAIL PROTECTED]> To: "Hardhats" Sent: Friday, January 13, 2006 11:38 AM Subject: [Hardhats-members] Teaching and Learning Well, I caught myself saying something this morning that I'm not at all sure I believe. True enough, one of my per

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Chris Richardson
Greg; That is true on the VA machines, but you have your own machine and can add code anywhere you like on that machine. If you screw it up, then you just reload it from a previous copy. If you come up with something really cool, then you bring it here and let others play with it and add feat

Re: [Hardhats-members] Done: Interlinked html site of office notes

2006-01-13 Thread Jim Self
Kevin wrote: >I mentioned this earlier, but I have completed what I think is a cool >project. >My function takes a search/sort template that contains a list of record >numbers (as would be generated by a fileman search etc.) in the TIU DOCUMENT >file (i.e. progress notes etc.). I then creates a we

RE: [Hardhats-members] Needed Kernel Functions: HFS Directory functions

2006-01-13 Thread Cameron Schlehuber
The list of %ZISH functions: COMPONENT/ENTRY POINT: CLOSE COMPONENT DESCRIPTION: Close host file opened by OPEN^%ZISH. COMPONENT/ENTRY POINT: $$DEL COMPONENT DESCRIPTION: Delete host file. COMPONENT/ENTRY POINT: $$FTG COMPONENT DESCRIPTION: Copy lines from a host file into a global.

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Greg Woodhouse
--- "Bhaskar, KS" <[EMAIL PROTECTED]> wrote: > Code specific to each MUMPS implementation should belong in the > kernel, > isolated from the applications. That's right, but Kevin can't add code to the Kernel (and neither can I). === Gregory Woodhouse <[EMAIL PROTECTED]> "If you give someone For

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Bhaskar, KS
Code specific to each MUMPS implementation should belong in the kernel, isolated from the applications. GT.M doesn't provide a function to stat a file. The two approaches would be to use ZSYstem to call a program like ls, stat or file, or to call a standard C library function to get the answer.

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Greg Woodhouse
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > I've decided to put such code into TMGKERNL, and if someone wants the > code > later it will all be in one place. > > Kevin > That sounds like a good idea to me. === Gregory Woodhouse <[EMAIL PROTECTED]> "If you give someone Fortran, he has Fo

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread Greg Woodhouse
--- Joseph Dal Molin <[EMAIL PROTECTED]> wrote: > Greg, > > You might want to explore the "problem based" learning model > pioneered > by the McMaster University School of Medicineit is I think > ideally > suited to the challenges we face. > > Joseph I'm not familiar with it. Do you have

Re: [Hardhats-members] Adding Patients

2006-01-13 Thread Kevin Toppenberg
Check this out, and let me know if that doesn't help.http://openforum.worldvista.org/~forum/index.php?title=Register_a_Patient The menu option you are talking about attempts to contact the master patient index (MPI) in austin and hangs, I believe.KevinOn 1/13/06, Marc Krawitz <[EMAIL PROTECTED]> w

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Kevin Toppenberg
I've decided to put such code into TMGKERNL, and if someone wants the code later it will all be in one place.KevinOn 1/13/06, Kevin Toppenberg <[EMAIL PROTECTED]> wrote:Very cool.  That works. Any chance of getting such functionality into Kernel?  I feel bad writing GT.M specific code.Kevin

[Hardhats-members] Adding Patients

2006-01-13 Thread Marc Krawitz
What is the best way to add a new patient?  I read that I can give a user the "DG Registration Menu" and then use the "Load/Edit Patient Data" option.  Is this the typical approach?  Can patients be created at scheduling time?   Thanks,   Marc

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Kevin Toppenberg
Very cool.  That works.Any chance of getting such functionality into Kernel?  I feel bad writing GT.M specific code.KevinOn 1/13/06, Greg Woodhouse <[EMAIL PROTECTED]> wrote: --- Kevin Toppenberg <[EMAIL PROTECTED]> wrote:>> My point is that I need a solution that is not GT.M specific.>> Kevin>Rig

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread Joseph Dal Molin
Greg, You might want to explore the "problem based" learning model pioneered by the McMaster University School of Medicineit is I think ideally suited to the challenges we face. Joseph Kevin Toppenberg wrote: On 1/13/06, *Greg Woodhouse* <[EMAIL PROTECTED] >

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Greg Woodhouse
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > > My point is that I need a solution that is not GT.M specific. > > Kevin > Right, bif such functionality were included in Kernel, it would need to be implemented in GT.M. If you want a Unix command, try ls -1F The 1 places one file on a line

Re: [Hardhats-members] Teaching and Learning

2006-01-13 Thread Kevin Toppenberg
On 1/13/06, Greg Woodhouse <[EMAIL PROTECTED]> wrote: And that brings me to the question I have for th group. Is there anyway to teach this idea? Any way to teach curiosity? To teach people notto be so worried about "practical" matters and simply enjoy trying to develop a deeper understanding of th

Re: [Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Kevin Toppenberg
I'll let Bhaskar answer, but from past responses I feel confident that GT.M doesn't try to replicate the functionality of the OS.  It would expect one to do a ZSYSTEM function and let bash do it for GT.M.  I can do this without too much trouble. My point is that I need a solution that is not GT.M s

[Hardhats-members] Fileman SEARCH frustration

2006-01-13 Thread Kevin Toppenberg
I am frustrated.  I have been doing my best to understand the functionality of the ^DIS routines (FILEMAN interactive SEARCH functionality).  My goal is to provide a silent brute-force search API.So I have "uncompiled" all the dense code into a one-line-per-action format.  And I have stepped throug

[Hardhats-members] So...how do you stat a file?

2006-01-13 Thread Greg Woodhouse
Is there a call in GT.M to stat a file? Perhaps something comparable to the -d test in bash? === Gregory Woodhouse <[EMAIL PROTECTED]> "If you give someone Fortran, he has Fortran. If you give someone Lisp, he has any language he pleases." --Guy L. Steele, Jr.  -

Re: [Hardhats-members] Needed Kernel Functions: HFS Directory functions

2006-01-13 Thread Greg Woodhouse
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > Nope. Doesn't return (on GT.M) any information to indicate whether > an entry > is a file or a directory. > > Kevin In Unix (including Linux) directories are just files. What is perhaps needed is a method of getting file characteristics. Under

[Hardhats-members] Teaching and Learning

2006-01-13 Thread Greg Woodhouse
Well, I caught myself saying something this morning that I'm not at all sure I believe. True enough, one of my perennial concerns with VistA is the amount of knowledge it seems to require to get it up and running. Does it really have to be so hard? But the very way that I pose this question is tell

Re: [Hardhats-members] Needed Kernel Functions: HFS Directory functions

2006-01-13 Thread Kevin Toppenberg
Nope.  Doesn't return (on GT.M) any information to indicate whether an entry is a file or a directory.KevinGTM>set SRCH("*")=""GTM>w $$LIST^%ZISH("/tmp/","SRCH","OUT") 1GTM>zwr OUT(*)OUT("XMLInst_DebugLog.tmp")="" OUT("demographics.csv")=""OUT("gtmlog.txt")="" OUT("index.htm")="" OUT("intro.htm")="

Re: [Hardhats-members] Needed Kernel Functions: HFS Directory functions

2006-01-13 Thread Greg Woodhouse
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > My understanding is that Kernel functions serve as an interface > between > implementation specific details on various OSs, to provide a common > interface. If this is true, there are several functions that I would > like > to see added, or perhap

[Hardhats-members] Needed Kernel Functions: HFS Directory functions

2006-01-13 Thread Kevin Toppenberg
My understanding is that Kernel functions serve as an interface between implementation specific details on various OSs, to provide a common interface.  If this is true, there are several functions that I would like to see added, or perhaps someone can tell me how this functionality is already prese