Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Thanks, Jim. I have this working now, basically doing what you described. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 15, 2018, at 3:36 AM, jim.dorrance--- via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I think there is an example of that on my w

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Hi Arnaud, Thanks for those. I ended up doing it in a pretty simple way. Basically, in the list box On Mouse Move event: GET MOUSE($lMouseX;$lMouseY;$lMouseButton) LISTBOX GET CELL POSITION(lbRanchMetrics;$lMouseX;$lMouseY;$lCol;$lRow) If ($lRow>0) LISTBOX GET CELL COORDINATES(lbRanchMe

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Hi Arnaud, No, I’m manipulating the picture directly inside the list box. Not as efficient as I like and I haven’t tried Miyako’s latest suggestion which might be more efficient, but the whole process only takes 1-2 milliseconds interpreted, so fast enough. Here is more of the code (I’ve left

Re: Creating Windows Taskbar Icons with 4D Version Numbers

2018-08-16 Thread Cannon Smith via 4D_Tech
Thank, Tim. This is a great tip! In fact, it would make a good Tech Tip. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 15, 2018, at 8:47 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Shortcuts for all the pinned taskbar items are in

Re: Longing IDs or UUIDs as primary key?

2018-10-24 Thread Cannon Smith via 4D_Tech
I've heard lots of comments over the years talking about how hard it is to work with UUIDs. I’d like to offer a different perspective. I switched to UUIDs from longints for primary keys 7 or 8 years ago. It took some careful programming to migrate the datafiles in place, but it was _so_ worth it

Re: Current time (*) incorrect today on v17?

2018-11-05 Thread Cannon Smith via 4D_Tech
All of our customers also had to relaunch their servers yesterday. They are all on v16r6. Must be a new bug as I don’t remember this happening in the past. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Nov 4, 2018, at 12:01 PM, Jeffrey Kain via 4D_Tech <

Mojave

2018-11-30 Thread Cannon Smith via 4D_Tech
I don’t believe 4D has released a version that is fully compatible with Mojave, unless I missed an announcement. But I’m getting outside pressure to upgrade from Sierra to Mojave and may have to do it anyway. From what I’ve heard, v17 seems to work good enough for development at least in Mojave,

Re: Mojave

2018-11-30 Thread Cannon Smith via 4D_Tech
Thanks John and Kirk. I appreciate the feedback. If anyone else has more information, feel free to chime in. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Nov 30, 2018, at 9:59 AM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: Mojave

2018-12-03 Thread Cannon Smith via 4D_Tech
Hi Jim, Do you have more specific information about this issue? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 3, 2018, at 2:54 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote: > > We had a problem with SVG graphics in v17.0 on Mojave

Re: Mojave

2018-12-04 Thread Cannon Smith via 4D_Tech
Thanks for the list, Miyako. Very helpful. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 3, 2018, at 5:16 PM, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > ACI0098799On macOS 10.14.x (Mojave), unexpected white vertical line is > di

Re: Mojave

2018-12-04 Thread Cannon Smith via 4D_Tech
Hi Jim, Thank you very much. That gives me some direction on what I’ll need to look for. Much obliged! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 4, 2018, at 8:26 AM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Good graphics - 32 bit

LEP and Python Script

2017-02-15 Thread Cannon Smith via 4D_Tech
I’ve been given a python script which takes JSON and returns JSON with all the keys alphabetized which is helpful for comparing revisions in version control. However, I can’t figure out how to use LAUNCH EXTERNAL PROCESS and pass some JSON to it and get the result back. If anyone here knows how

Re: LEP and Python Script

2017-02-15 Thread Cannon Smith via 4D_Tech
Thanks to everyone who responded about this. James gets the prize. Once I set the original script to be executable it worked as expected. Thanks again! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Feb 15, 2017, at 2:37 PM, James Crate via 4D_Tech <4d_t

iNUG List "From" Change

2017-02-17 Thread Cannon Smith via 4D_Tech
Has anyone else noticed a change in the list? When I view messages coming from the list in Mail, the From field is always “4D iNUG Technical”, making it difficult to see who actually sent the message. All messages since the one sent by Jeff Kain on February 13 at 2:50 PM (subject “Re: Error Mess

Re: iNUG List "From" Change

2017-02-17 Thread Cannon Smith via 4D_Tech
I’m using Apple Mail. I uploaded a screenshot showing what what I’m seeing: -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 ** 4D Int

Re: iNUG List "From" Change

2017-02-17 Thread Cannon Smith via 4D_Tech
Canada 403-626-3236 > On Feb 17, 2017, at 10:02 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I’m using Apple Mail. I uploaded a screenshot showing what what I’m seeing: > > <http://files.syne

Re: iNUG List "From" Change

2017-02-17 Thread Cannon Smith via 4D_Tech
I’d like to thank Tim for helping with this. I never would have thought it was a contact that needed to be deleted! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Feb 17, 2017, at 12:22 PM, Timothy Penner via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >

Detecting if 4D is Frontmost App

2017-02-17 Thread Cannon Smith via 4D_Tech
Is there a way to detect whether 4D is the frontmost application? I have a small status window that I show/hide from time to time and am finding that if 4D is hidden, when I call SHOW WINDOW, 4D comes becomes the frontmost application which is really annoying. I’m thinking that if I can detect w

Re: Detecting if 4D is Frontmost App

2017-02-17 Thread Cannon Smith via 4D_Tech
Thanks to everyone who replied. I just remembered that 4D has an On System Event database method that fires whenever the application moves to the front or back. I think I’ll just track the changes here. Thanks again for all the ideas! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB

Re: Old doesn't work with object fields

2017-02-22 Thread Cannon Smith via 4D_Tech
Hi Jeff, > If ((JSON Stringify($fieldPtr->))#(JSON Stringify(Old($fieldPtr-> This only works if the order of the keys in the object stays the same which may not be true depending on how you change the object. I’ve pasted in a method below that you can use to compare two objects which don’t

Re: Old doesn't work with object fields

2017-02-23 Thread Cannon Smith via 4D_Tech
Hi Arnaud, > On Feb 22, 2017, at 2:25 PM, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >> : ($atFirstProperty{$x}#$atSecondProperty{$x}) //Check property name > > About the comparison above, json properties are case sensitive. > Things like: > :(Position(atFirstProperty{$x

Re: DebugLogReader

2017-03-06 Thread Cannon Smith via 4D_Tech
Hi Alex, I just wanted to say thank you for providing this tool. I haven’t had a need to use it since you released it, but I have had need of such a thing many times in the past and expect it will be very useful in the future. Thanks much! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Sprin

Server Mirroring

2017-03-20 Thread Cannon Smith via 4D_Tech
I’m looking into the idea of setting up a mirrored server. One one hand I want to be pretty aggressive about sending log files to the mirror—probably every couple of minutes. On the other hand, I don’t want to use “New log file” and then send the log file if nothing has changed. Has anyone done

Re: Server Mirroring

2017-03-21 Thread Cannon Smith via 4D_Tech
Hi Paul, I’m just working out how to do this theoretically at the moment. But, no, they won’t be on the same local network. I want them geographically diverse. And I think I want an additional place (FTP site) that is away from both of them to keep a copy of each log file in case the mirror can

Journaling Not Working

2017-03-21 Thread Cannon Smith via 4D_Tech
I have a structure where I just realized that every table was set to NOT be included in the journal file. Oops! So I selected all tables and checked the “Include in Log File” option in the structure Inspector. So far so good. Next I created some records and expected them to show up in the journa

Re: Server Mirroring

2017-03-21 Thread Cannon Smith via 4D_Tech
Hi Jody, Good to hear from you! It doesn’t sound like you are very retired. :-) Thanks for sharing your experiences. I know mirroring changed significantly in v14, but I’ll definitely be working directly on the server’s drives and then transporting them after the writing is done. Thanks. -- C

Re: Journaling Not Working

2017-03-21 Thread Cannon Smith via 4D_Tech
017, at 3:29 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a structure where I just realized that every table was set to NOT be > included in the journal file. Oops! So I selected all tables and checked the > “Include in Log File” option in the struct

Re: Server Mirroring

2017-03-22 Thread Cannon Smith via 4D_Tech
Hi Jeff, Thanks for the advice. I appreciate it! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Mar 22, 2017, at 8:31 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > We run a mirror here -- soon to be several mirrors. Overall it works g

Converting Little Endian Byte Representation To a String

2017-04-17 Thread Cannon Smith via 4D_Tech
I have a little problem I’m hoping someone can help me solve. First, a bit of background. Our application deals with RFID tags for animals. These are always 15 digit numbers like 124000123456789. Even though they are numbers, I never have to deal with them as numbers. Instead, I always treat the

Re: Converting Little Endian Byte Representation To a String

2017-04-17 Thread Cannon Smith via 4D_Tech
Hi Julio, Not a stupid question at all! The hex string representation is simply the way this reader has decided to encode and transfer the RFID number. The actual RFID number has to be interoperable with other systems that expect it in the “regular” format. Also, users will sometimes hand enter

Re: Converting Little Endian Byte Representation To a String

2017-04-17 Thread Cannon Smith via 4D_Tech
Thanks, Tim! I’ll try that library out tomorrow and see how it goes. Much appreciated. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 17, 2017, at 5:03 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > There is a code library on 4D Foru

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Cannon Smith via 4D_Tech
Thanks, Miyako! That does indeed work and is plenty fast as well. I really appreciate the code! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 18, 2017, at 12:43 AM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I think this will do

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Cannon Smith via 4D_Tech
Thanks again, Miyako! This is even more useful! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 18, 2017, at 3:39 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I think there was a bug in the carry-over logic, > I've uploaded a cle

Re: Converting Little Endian Byte Representation To a String

2017-04-21 Thread Cannon Smith via 4D_Tech
Hi Arnaud, Interesting idea. In all actuality, even though we call the tag a “number", it is always treated as a string. This algorithm I needed help with was the first time in 10 years I needed to think of it as a number, and that was only a temporary step for the way the algorithm worked. Th

Re: "Placeholder" in property list

2017-04-22 Thread Cannon Smith via 4D_Tech
Yep, it's a very welcome feature. And you can set it programmatically! :-) -- Cannon Smith > On Apr 22, 2017, at 7:37 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Has anyone noticed that in 15.4 (HF2... maybe others) there's a new property > for fields and variables called

Re: Components and custom constants files

2017-04-22 Thread Cannon Smith via 4D_Tech
Hi David, I can see from your component naming that you used to live in Hawaii! :-) -- Cannon Smith > On Apr 22, 2017, at 12:12 AM, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > DaKine.4dbase ** 4D Internet User

Re: Components: How do you reuse utility code?

2017-04-22 Thread Cannon Smith via 4D_Tech
James, I think you’ve expressed very well why more code in the 4D community isn’t shared. I know there have been many times when I wanted to share a bit of code that I thought would be helpful or in response to a question someone had. And then I realized how many “core” methods I would have to s

Re: 4D World Tour - Denver

2017-05-04 Thread Cannon Smith via 4D_Tech
I also just got back from the World Tour. It was great to see some of you again and the information was very helpful. Add had some great demos and JPR shared a lot of great information. One thing JPR helped me understand better is that a worker is basically just a process ready to do things. Yo

Re: 4D World Tour - Denver

2017-05-04 Thread Cannon Smith via 4D_Tech
Well, I thought I was talking about workers in general, but that was under the assumption that all processes have some kind of execution cycle. Are you saying that a non-UI process (ex. pre-emptive thread) won’t have an execution cycle? In either case, the only place I can think of where this mi

Re: v13 - how to create a 'folder' in Explorer

2017-05-10 Thread Cannon Smith via 4D_Tech
Click the “+” button at the bottom of the Explorer and choose “New Folder”. Or right-click on an existing folder (or empty area in the Explorer) and choose New—>Folder to created a folder inside a folder. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Ma

Re: How to clear a webpage from a web area?

2017-05-10 Thread Cannon Smith via 4D_Tech
Hi Keith, No sure about using the variable, but I do this when I need to get a blank web area: WA OPEN URL(*;"vtWebArea";"about:blank") Maybe something similar for you? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 10, 2017, at 4:25 PM, K

Re: Option drag and drop vs Sierra

2017-05-15 Thread Cannon Smith via 4D_Tech
I just tried in v16.1 with Sierra 10.12.4. Options dragging some text around in the method editor copied the text to the new position just as I would expect. Regular drag and drop within the method editor also worked. FWIW. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-6

Include in Log File Scan

2017-05-19 Thread Cannon Smith via 4D_Tech
I’d like to programmatically loop through all the tables in a database and see whether they have the “Include in Log File” property set. Does anyone know of a way to do this? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Include in Log File Scan

2017-05-19 Thread Cannon Smith via 4D_Tech
Hi Arnaud, That works like a charm! Thank you very much. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 19, 2017, at 2:44 PM, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > See here: >

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Cannon Smith via 4D_Tech
One of my favorite new techniques is to use an object array as a hidden column in a listbox array. In the old days (before v15 r something or the other) I often had array based list boxes which had a bunch of hidden columns to store data that I wanted to do something with when the row was select

Get table fragmentation

2017-05-29 Thread Cannon Smith via 4D_Tech
I’m working on some server health reporting. I can get the percentage of table fragmentation using "Get table fragmentation” for each table. I’m not quite sure what to do with it, though. I’d like to get a report when the overall fragmentation reaches some threshold where it might be worth compa

Web Areas On Form Page >1

2017-05-29 Thread Cannon Smith via 4D_Tech
Is there something different about web areas when they are on a form page > 1? I’ve used lots of web areas before and never run into my current problem and the only thing I can think of that is different is that it is on form page 3. Here is roughly what happens: FORM GOTO PAGE(3) //Set up the

Re: Web Areas On Form Page >1

2017-05-29 Thread Cannon Smith via 4D_Tech
Hi Kirk, It’s interesting that this works correctly for Steve. I’m wondering if it’s because I’ve only tried on the Mac so far and he’s using Windows. Do you know if you’ve tried it on both platforms? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 >

Re: Web Areas On Form Page >1

2017-05-29 Thread Cannon Smith via 4D_Tech
Hi Ingo, This is basically the workaround I’m using right now. Do you know if this is necessary on both Mac and Windows? I haven’t tested Windows yet, but I’m curious. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 29, 2017, at 1:33 PM, Ing

Re: Get table fragmentation

2017-05-29 Thread Cannon Smith via 4D_Tech
Hi David, Thanks for chiming in on this. Your examples are exactly the kinds of things I’m checking for. I’m glad I’m not the only one who isn’t sure how to calculate a meaningful fragmentation threshold value. :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Web Areas On Form Page >1

2017-05-30 Thread Cannon Smith via 4D_Tech
Thanks, Ingo. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 29, 2017, at 4:09 PM, Ingo Wolf via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > This is needed and works on both Mac and Windows. **

Re: Web Areas On Form Page >1

2017-05-30 Thread Cannon Smith via 4D_Tech
Thanks, Kirk. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 29, 2017, at 7:52 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I know my solution works on both platforms but since I develop on a Mac I > don't know if it even showed up

Re: Get table fragmentation

2017-05-30 Thread Cannon Smith via 4D_Tech
Hi Chuck, That’s a good question. I can remember hearing both ways on this at Summits. Definitely less of an issue with SSDs, but I think it still can be in some circumstances? Makes me wonder if there are any tech notes on this. I’ll have to take a look. Thanks. -- Cannon.Smith Synergy Farm

Re: Get table fragmentation

2017-05-30 Thread Cannon Smith via 4D_Tech
Hi Doug, Thanks for the information. I can see that there probably isn’t an easy way to algorithmically have a server tell me when it needs to be compacted. I guess I’ll just have it report information to me, similar to what you are doing, and use my brain. Thanks! -- Cannon.Smith Synergy Far

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Cannon Smith via 4D_Tech
Not when you have a bunch of Find In Design windows open, several deeply nested Explorer folders expanded, and several non-developer related windows in some state that takes time to reproduce. Relaunching 4D then is a hassle. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Cannon Smith via 4D_Tech
> Define(Theme;Label;Value) // Value can be Long, String, Real, or Boolean BTW, one nice thing about creating constants directly in code, if we had a 4D command to do it, is that it would be easier to give away code. For example, I’ve started to use constants extensively in the last year or two,

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Cannon Smith via 4D_Tech
Hi Chip, That brings up a good question. A “static” variable doesn’t seem very much different from a constant on the surface. The only differences I can think of are (1) a constant is compiled into the raw binary and (2) because of that, a constant is the same across all instances of an app, wh

4d_tech@lists.4d.com

2017-06-06 Thread Cannon Smith via 4D_Tech
I’m passing a local boolean as the fifth parameter to PROCESS 4D TAGS (well, seventh, actually, but the fifth one that the HTML will see). In the HTML document I’m trying to do something like this:

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Never mind. All I had to do was post and then I figured it out. Just a typo. :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 6, 2017, at 11:10 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I’m passing a lo

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Hi Add, I have it working now, although I haven’t tried compiled yet. Are you referring to compiled only? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 6, 2017, at 11:19 AM, Add Komoncharoensiri via 4D_Tech > <4d_tech@lists.4d.com> wrote:

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Hi Add, I just got done testing compiled and it works there as well. This is in v16.1. I hope it is just a documentation issue as I really want it to work! :-) Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 6, 2017, at 11:44 AM, Add Komoncha

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Thanks, Add. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 6, 2017, at 11:52 AM, Add Komoncharoensiri via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I confirmed that it works in compiled mode as well. I¹ll report this to > our team. **

Re: Generating Random Numbers

2017-06-26 Thread Cannon Smith via 4D_Tech
I can’t agree more with what David has said about passwords. Here is another article about it including a comic that I like: -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Best way to stash an object array into an object field

2017-07-08 Thread Cannon Smith via 4D_Tech
Hi David, I haven’t tried storing an object array as the top level in a field, but have done it a lot one level down. For example: C_OBJECT($oInfo) ARRAY OBJECT($aoFacts;0) //...Create facts and append them to $aoFacts... OBJ_Set_Array($oInfo;”Facts”;->$aoFacts) [Table] ObjectField:=$oInfo SAV

Re: revelation! - Choose

2017-07-10 Thread Cannon Smith via 4D_Tech
Hi Chip, You may want to vote for this feature request: -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jul 10, 2017, at 8:22 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: >

Getting Computer and OS Info

2017-07-13 Thread Cannon Smith via 4D_Tech
I’d like to programmatically get two pieces of system information from within 4D. 1. Model name. Ex. "MacBook Pro" or "Inspiron 24 3000". 2. OS Version. Ex. "Windows 7.1 SP2" or "macOS 10.12.5" It needs to work for both platforms. Does anyone have some code to do this they wouldn’t mind sharing

Re: Getting Computer and OS Info

2017-07-15 Thread Cannon Smith via 4D_Tech
Hi Jeremy, Thanks for the code. I started out using system_profiler but found it was too slow for my purposes. I ended up using sysctl and sw_vers on the Mac side which got me what I wanted and it very fast. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-323

Re: Thinking through object/text fields: Findings summarized, advice solicited

2017-07-15 Thread Cannon Smith via 4D_Tech
Although I use object extensively in code, I don’t use them in very many fields. I do have several “settings” fields and find object type fields very useful here. Being able to add settings in the future without changing the structure is great and it seems like less work to have an extensive, bu

OBJ Module Update

2017-07-19 Thread Cannon Smith via 4D_Tech
I had a suggestion from Douglas von Roeder to add a method that returns the size of an array inside an object to the OBJ Module. I’ve done this. If anyone is interested, the method added is named OBJ_Get_ArraySize and the updated module can be found here:

Rotating Pictures

2017-08-08 Thread Cannon Smith via 4D_Tech
I was surprised that the TRANSFORM PICTURE doesn’t have the ability to rotate a picture. I have the need to programmatically rotate a picture before displaying it on a form based on the EXIF rotation data. I’d like to do this natively, if possible, and it needs to work on both Mac and Windows. D

Re: Rotating Pictures

2017-08-08 Thread Cannon Smith via 4D_Tech
I should mention that the pictures are JPEGs, if it matters. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 8, 2017, at 5:01 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I was surprised that the TRANSFORM PICTUR

Re: JSON Tools Was: Re: C-objects and memory use

2017-08-09 Thread Cannon Smith via 4D_Tech
I can! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 9, 2017, at 1:34 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Sorry, I don't have a Forum link to the right request, bu

Re: What happens if 4D attempts to use a Web Service with an expired cert?

2017-08-17 Thread Cannon Smith via 4D_Tech
Hi Tony, Do you mean with HTTP Get or HTTP Request? I ran into this a few weeks ago because my own cert hadn’t updated like I thought it did. It turns out that the HTTP Get/HTTP Request commands will simply hang. Forever. I probably should have filed a bug, but at the time I was _way_ more conc

Re: What happens if 4D attempts to use a Web Service with an expired cert?

2017-08-17 Thread Cannon Smith via 4D_Tech
Ah, never mind then. Unless 4D uses the same underlying code for the SSL stuff. No idea, though. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 17, 2017, at 1:22 PM, Tony Ringsmuth wrote: > > This is using 4D's WEB SERVICE CALL command, not an HTTP

TEXT TO DOCUMENT With Special Characters

2017-08-30 Thread Cannon Smith via 4D_Tech
I’m having trouble with saving Unicode characters to a file. For example, the following code saves a file to disk: C_TEXT($tText;$tFilepath) $tText:=“©” //Copyright symbol $tFilepath:=System folder(Desktop)+"test.txt" TEXT TO DOCUMENT($tFilepath;$tText;UTF8 text without length) When I open the

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Cannon Smith via 4D_Tech
Thanks to everyone who responded. My first problem was using the UTF8 text without length constant instead of “UTF-8”. Who knew they would be different! Thanks for pointing that out, Justin. The main reason I didn’t want to have a BOM character was that JSON Parse chokes on such documents. I’ll

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Cannon Smith via 4D_Tech
ow the existence of a BOM could be > such a big problem. > > 2017/08/31 23:25、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> のメッセージ: > > The main reason I didn’t want to have a BOM character was that

Re: TEXT TO DOCUMENT With Special Characters

2017-09-01 Thread Cannon Smith via 4D_Tech
I just tried receiving it as an object, but that didn’t work either. It’s okay, I have a workaround created now. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 31, 2017, at 5:07 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: >

Server Process "Frozen"-ish

2017-09-08 Thread Cannon Smith via 4D_Tech
I’ve seen something odd since upgrading our customers to v16.1 a few months ago. This is on 64-bit server, both platforms. There are a few background processes that continually run on the servers, waking up every few seconds to see if there is work to be done. This has worked without problem for

Re: Server Process "Frozen"-ish

2017-09-08 Thread Cannon Smith via 4D_Tech
I jumped from v15.x where it was working fine to v16.1. Since you’re at v15 r5, maybe it was something that was introduced in one of the v15 R releases. I haven’t posted anything before because I don’t have much that is concrete, but it has happened enough to know something is going on. Thanks.

Re: Server Process "Frozen"-ish

2017-09-08 Thread Cannon Smith via 4D_Tech
Hi David, How about timing? Just once every two-three months per server like us? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Sep 8, 2017, at 3:19 PM, BTB-David via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > We started seeing the same proble

Re: Server Process "Frozen"-ish

2017-09-08 Thread Cannon Smith via 4D_Tech
Okay. I guess it’s nice to know I’m not the only one seeing this. Sorry for you guys, though! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Sep 8, 2017, at 3:33 PM, BTB-David wrote: > > I would say about that yes. We have several server processes

Re: Server Process "Frozen"-ish

2017-09-09 Thread Cannon Smith via 4D_Tech
Hi Milan, Thanks for the idea, but no, I’m not using GRAPH anywhere. It isn’t just one particular process that does this, either. I’ve seen three different processes do it—all three different code paths. One just updates a bunch of records, one checks with a web service for a small piece of in

Re: Server Process "Frozen"-ish

2017-09-11 Thread Cannon Smith via 4D_Tech
Old network layer on the Windows platform. That’s where most of it is happening. There is about 35 servers involved. New network layer on the Mac platform (different product). Just one server—it’s just an in house database. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-

Re: Server Process "Frozen"-ish

2017-09-13 Thread Cannon Smith via 4D_Tech
Hi Nigel, Thanks for the idea. I did try that before to see if I could jumpstart the process, but unfortunately it doesn’t work. 4D thinks the process is already there. And it it there. It just doesn’t seem to be executing. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-

Re: Denver Area Developers

2019-02-22 Thread Cannon Smith via 4D_Tech
I’m even closer that Steve in Alberta. I had no idea Denver was so big! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Feb 22, 2019, at 1:49 PM, Stephen J. Orth via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > If you count Madison, WI as part of Denver, then yes there a

Re: 4D Server v17.1 and time change

2019-03-11 Thread Cannon Smith via 4D_Tech
Hi Jeff, We had to relaunch all our servers for them to get the time update, but they are still on v16r6. I thought the daylight saving bug had been fixed in v17.1 so I’m curious to know what you find if you get more information. Good luck. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB

Re: 4D Server v17.1 and time change

2019-03-11 Thread Cannon Smith via 4D_Tech
Thanks. Good to know it has been solid otherwise. P.S. Have you seen the delayed process not waking up issue since moving to v17.1? -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 11, 2019, at 4:47 PM, Jeffrey Kain wrote: > > Nobody else has responded... so I guess it

Re: 4D Server v17.1 and time change

2019-03-11 Thread Cannon Smith via 4D_Tech
Thanks, Jeff. I’ll be sending out 1 v17.1 build next month and hope to see the same thing. I still have the issue several times a week in v16r6. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 11, 2019, at 5:19 PM, Jeffrey Kain wrote: > > No, not at all since

Delay Worker Process

2019-03-13 Thread Cannon Smith via 4D_Tech
Hi Everyone, I’m trying to do some quick and dirty logging to track down an issue at a customer’s site. As part of that I need to log some information to a file, always on the server. I figured the simplest would be to call a method each time I need to log some information and pass the info to

Re: Delay Worker Process

2019-03-14 Thread Cannon Smith via 4D_Tech
Hi Gabriel, Part of what gets logged isn’t know at the time I know something needs to be logged. The code is easiest if I can say, “Hey, please log this situation” and have the actual logging happen a few seconds later. As I said, this is a quick a dirty injection of some logging code to track

Apple Notary Service

2019-03-15 Thread Cannon Smith via 4D_Tech
Has anyone tried to notarize a built 4D application with Apple yet? Is it possible with 4D? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.

Re: Apple Notary Service

2019-03-15 Thread Cannon Smith via 4D_Tech
Hi David, Thanks! I’m glad to know that it works. I wouldn’t be surprised if we need it this fall. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 15, 2019, at 12:39 PM, David Ringsmuth wrote: > > I helped my client do this. > ***

Re: Apple Notary Service

2019-03-15 Thread Cannon Smith via 4D_Tech
Hi Jeff, That’s a pretty safe statement to make! :-) I’ll take a look. Thanks much. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 15, 2019, at 12:57 PM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I think Miyako has something on his github account..

Re: Apple Notary Service

2019-03-16 Thread Cannon Smith via 4D_Tech
Hi Miyako, I do have the yearly membership and find it important to get our application to behave as closely as possible to what users expect. I often don’t have any contact with someone who downloads our software and if they see any kind of warning that looks fishy they won’t even try it out a

Auto Updating 4D Not Working

2019-04-04 Thread Cannon Smith via 4D_Tech
I’m having trouble with one particular app auto updating. When it should be quitting, it just hangs forever. 4D v17.1HF1, macOS only. (It works fine on Windows). I’m using essentially the same code as in several other applications, also on v17.1HF1, but this is the only application that doesn’t

Re: Auto Updating 4D Not Working

2019-04-05 Thread Cannon Smith via 4D_Tech
Hi Lutz, Thanks for replying. I’ve been using this mechanism in several applications for a few years now. No problems with any of them except this specific instance. I can’t see that I’m doing anything different in my code than with the other applications. Wondering if you can remember more det

Re: Auto Updating 4D Not Working

2019-04-08 Thread Cannon Smith via 4D_Tech
Hi John, Thanks for the suggestion. I actually use a temporary folder to place the “new” version before calling SET UPDATE FOLDER. But I use the same one for all my applications and it works for all the rest, so I doubt security issues on the folder is the issue. Thanks anyway. -- Cannon.Smit

Checking If Methods Are Preemptive Ready

2019-04-11 Thread Cannon Smith via 4D_Tech
Does anyone know if there is a way to get a list of methods that are (or are not) preemptive ready? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada ** 4D Internet Users Group (4D iNUG) Archive: http://l

Re: Checking If Methods Are Preemptive Ready

2019-04-11 Thread Cannon Smith via 4D_Tech
Hi Vincent, Perfect. Thank you very much! -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Apr 11, 2019, at 11:10 AM, Vincent de Lachaux via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > If you activate the generation of the symbol file in the compilation > preferences, comp

<    1   2   3   >