Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Kirk Brooks via 4D_Tech
Robert,
On Tue, Mar 14, 2017 at 2:56 PM, Robert ListMail via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Actually, I’ve looked for years and have never found anything that will do
> this. It’s not impossible to do what needs to be done manually, it’s just a
> royal pain and prone to user errors that could result in data loss. Do you
> have a tool in mind?

​Im afraid not. The only forensic work I've done had to do with financial
data and that was simply (simply!) a matter of working with the actual
pieces of paper or copies - I didn't have to analyze or compare disk files.

Here's the top hit that came up when I googled "forensic programs for
comparing disk files": link
.
​At least gives you an idea of what they are called. I notice they all seem
to be windows based which supports the notion that only nice people or
smart crooks use Macs.

-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Robert ListMail via 4D_Tech
I’m not looking to identify all duplicates. I want to know what unique data 
might be on a disk labeled “backup"…. To determine this the software (rsync?) 
must query an index of ALL specified drives where the original pathname may be 
very different for each an every file. Can rsync perform the equivalent of a 
Finder query for each and every file on the source drive (the drive labeled 
“Backup”)?  The goal is to not recycle a disk unless it is confirmed that all 
files are represented elsewhere. Does that clear things up?  I’m not aware of 
any utility that offers this feature. 

Robert

> On Mar 14, 2017, at 5:33 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> for simply synchronising two directories possibly on a separate volume,
> rsync has been around for quite some time.
> 
> https://en.wikipedia.org/wiki/Rsync
> 
> but I may be getting wrong the "this" in "anything that will do this".
> 
>> 2017/03/15 6:56、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> のメール:
>> Actually, I’ve looked for years and have never found anything that will do 
>> this. It’s not impossible to do what needs to be done manually, it’s just a 
>> royal pain and prone to user errors that could result in data loss. Do you 
>> have a tool in mind?  I’m not looking to reinvent the wheel.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Chip Scheide via 4D_Tech
You can try this link :
http://download.cnet.com/s/duplicate-file-finder/mac/

> I guess Git does a pretty decent job at tracking changes and 
> movements in a designated directory,
> but if you feel 4D give you the strength and flexibility to do 
> exactly what you want,
> I have nothing against it.
> 
>> 2017/03/15 8:46、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> 
>> のメール:
>> Chip, thanks for your input but no traditional rsync or clone tools 
>> or backup software is up to the task…. Since the pathnames are 
>> guaranteed to be different…
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

Hell is other people 
 Jean-Paul Sartre
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Chip Scheide via 4D_Tech
I came across a tool :
zsDuplicateHunter

I haven't used it for a long time - so not clue as to how (or if) it is has 
been updated



> Hi Kirk!
> 
>> On Mar 14, 2017, at 11:23 AM, Kirk Brooks via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> Robert,
>> It sounds like you are doing some really interesting stuff.
> 
> Why yes, is there any other way?  :)
> 
>> kinds of files where surreptitious data are easily hidden. Then we get to
>> the thousands of .dll files on a typical windows machine.
> 
> The requirement will be for Mac only and would exclude system files…
> . I’m mostly interested in media files… ProRes, Quicktime, TIFF, 
> etc.
> 
>> These are the sorts of things already worked out and tools built to do
>> them. I think it would be a large wheel to reinvent within 4D.
> 
> Actually, I’ve looked for years and have never found anything that 
> will do this. It’s not impossible to do what needs to be done 
> manually, it’s just a royal pain and prone to user errors that could 
> result in data loss. Do you have a tool in mind?  I’m not looking to 
> reinvent the wheel.
> 
> R
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

Hell is other people 
 Jean-Paul Sartre
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Select & Create Document

2017-03-14 Thread Chip Scheide via 4D_Tech
THANKS!

I didn't realize this got populated before the file was created.

> After the call to Select document, the system variable Document 
> contains the full path to the document selected.
> 
> John
> 
> 
>> On Mar 14, 2017, at 11:21 AM, Chip Scheide via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> I have the following (code excerpt) attempt to create a document on 
>> disk.
>> The Select Document dialog is fine, and shows the desired directory 
>> (default saved to #5)
>> I can enter a file name, no problem.
>> 
>> However...
>> $File_Path-> after accepting the file destination and file name 
>> contains ONLY the file name.
>> So that the following code actually creating the document fails to 
>> create the file in the desired location. Effectively Create DOcument 
>> has on a file name, and so creates the the file in the default 4D 
>> folder, in this case in the (Mac OS) User: library: Caches: 4D: 
>> 
>> 
>> any idea on how to get the USer selected path??
>> 
>> 
>> excerpted code
>> $File_Path->:=Select document(5;$Extension;$User_Msg;32+16)
>> 
>> If ($File_Path->#"")  //file opened/file name entered
>> $Doc_Ref->:=Create document($File_Path->)  //create disk file
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing 
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

Hell is other people 
 Jean-Paul Sartre
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Keisuke Miyako via 4D_Tech
I guess Git does a pretty decent job at tracking changes and movements in a 
designated directory,
but if you feel 4D give you the strength and flexibility to do exactly what you 
want,
I have nothing against it.

> 2017/03/15 8:46、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> のメール:
> Chip, thanks for your input but no traditional rsync or clone tools or backup 
> software is up to the task…. Since the pathnames are guaranteed to be 
> different…




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Backup files - restoring backup

2017-03-14 Thread Pat Bensky via 4D_Tech
Hi Kirk,
They eventually found the backup files :)

On 14 March 2017 at 16:05, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Pat,
> I also see this happen when I'm developing and the log file or the datafile
> gets replaced. Before everyone starts thinking I'm being incredibly sloppy
> it happens when I pull a copy of the datafile off the server to open on my
> developer machine. If I forget to trash the existing log file that's the
> error that comes up.
>
> Perhaps your client was doing some housekeeping on the server and
> inadvertently moved a file - like the log file?
>
> Since they don't think they are doing backups and if they are sure the
> datafile is correct you can just trash the log file.
>
> Or copy the datafile folder, trash the log file and restart.
>
>
> On Mon, Mar 13, 2017 at 7:50 AM, Pat Bensky via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > A client is getting the message:
> >
> > "An error occured during the log file integration, it is recommended to
> > restore the last backup of this database in order to attempt the
> > integration of this log file""
> >
> > I've told them how to restore the backup file manually but they say they
> do
> > not have any files with the .4BK extension. Surely, if they didn't have
> any
> > backup files, this message wouldn't even appear? If the database was
> > damaged, they'd just get a "damaged database" error instead, if no backup
> > had been set up? Right?
> >
> > (They are using 4D v13.6, server).
> >
> > I think the .bk files must be there somewhere - they just can't find
> them.
> >
> > Pat
> >
> > --
> > *
> > CatBase - The Database Publishing Solution
> > tel: +44 (0) 207 118 7889
> > w: http://www.catbase.com
> > skype: pat.bensky
> > *
> > **
> > 4D Internet Users Group (4D iNUG)
> > FAQ:  http://lists.4d.com/faqnug.html
> > Archive:  http://lists.4d.com/archives.html
> > Options: http://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
>
>
>
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
*
CatBase - The Database Publishing Solution
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Robert ListMail via 4D_Tech
Chip, thanks for your input but no traditional rsync or clone tools or backup 
software is up to the task….  Since the pathnames are guaranteed to be 
different…

R

> On Mar 14, 2017, at 5:33 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> for simply synchronising two directories possibly on a separate volume,
> rsync has been around for quite some time.
> 
> https://en.wikipedia.org/wiki/Rsync
> 
> but I may be getting wrong the "this" in "anything that will do this".
> 
>> 2017/03/15 6:56、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> のメール:
>> Actually, I’ve looked for years and have never found anything that will do 
>> this. It’s not impossible to do what needs to be done manually, it’s just a 
>> royal pain and prone to user errors that could result in data loss. Do you 
>> have a tool in mind?  I’m not looking to reinvent the wheel.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v16 and Canvas

2017-03-14 Thread Pat Bensky via 4D_Tech
So I got an update for the plugin form Rob at Pluggers and now it works
fine.

On 9 March 2017 at 21:24, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote:

> 16 beta 1 - yeah - I was surprised it's that old.  That's how often I get
> to work with it I guess.  :(
>
>
> On Thu, Mar 9, 2017 at 12:49 PM, Jeffrey Kain via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > On Mar 9, 2017, at 12:40 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com>
> > wrote:
> >
> > > v16 beta 1 32 bit
> >
> > That's probably why you're crashing. :)  Why such an old (and beta)
> > version, since v16 has been out of beta for quite a long time (and 16.0
> HF1
> > is also available)?
> > **
> > 4D Internet Users Group (4D iNUG)
> > FAQ:  http://lists.4d.com/faqnug.html
> > Archive:  http://lists.4d.com/archives.html
> > Options: http://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
> >
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
*
CatBase - The Database Publishing Solution
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Select & Create Document

2017-03-14 Thread Jeremy French via 4D_Tech
Hi Chip,

The command "Select document” returns (as a function) only the document name.

To get the actual path, add the fifth optional parameter which is an array. The 
first element of the array will have the full path to the saved document.

Using your code:
--
$File_Path->:=Select document(5;$Extension;$User_Msg;32+16)
--

add the optional fifth parameter (which I’ve named “$selected_path_at”.)
--
C_TEXT($document_name_t)
ARRAY TEXT($selected_path_at;0) 
$document_name_t:=Select document(5;$Extension;$User_Msg;32+16; 
$selected_path_at)
—

To get the actual path to the saved document, do this:
--
$File_Path->:=$selected_path_at{1}
--

- Jeremy French


> On Mar 14, 2017, at 5:21 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> any idea on how to get the USer selected path??
> 
> 
> excerpted code
> $File_Path->:=Select document(5;$Extension;$User_Msg;32+16)

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Force the execution of an object method

2017-03-14 Thread Foucauld Perotin via 4D_Tech
Thanks David, thanks Jim and thank Chip for your replies. And sorry that I 
didn’t post earlier.

It’is for reasons of organization of my software that I wanted to do that part 
in an object method (actually, I have to create recursive links, so doing the 
research in another process is the best for me. I have to do the same stuff in 
a lot of fields or variables. I do it with a single (project) method called by 
the object method, and so in the context of the object method.

Finally, I did use my not so satisfying idea : in the project method (called by 
CALL FORM) I set some process variables, then I do a GOTO OBJECT, and in the 
object method context I get the event On Getting Focus, with a control by one 
of my process variables. It seems to work. If I have problems, I’ll move to a 
project method On Outside Call, as Chip suggests 

Thanks,

FP 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Keisuke Miyako via 4D_Tech
for simply synchronising two directories possibly on a separate volume,
rsync has been around for quite some time.

https://en.wikipedia.org/wiki/Rsync

but I may be getting wrong the "this" in "anything that will do this".

> 2017/03/15 6:56、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> のメール:
> Actually, I’ve looked for years and have never found anything that will do 
> this. It’s not impossible to do what needs to be done manually, it’s just a 
> royal pain and prone to user errors that could result in data loss. Do you 
> have a tool in mind?  I’m not looking to reinvent the wheel.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Select & Create Document

2017-03-14 Thread Keisuke Miyako via 4D_Tech
and for multiple files, there is an optional array parameter to receive all 
paths.

> 2017/03/15 6:36、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール:
> After the call to Select document, the system variable Document contains the 
> full path to the document selected.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Robert ListMail via 4D_Tech
Thanks Tim, I’ll have a look.

R

> On Mar 14, 2017, at 2:56 PM, Timothy Penner via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> It's been a few years since I looked at it but I think the "HASH Examples in 
> 4D" tech note includes a sample database that had as a proof of concept the 
> ability to "find duplicate files on a hard drive"
> http://kb.4d.com/assetid=76130 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Robert ListMail via 4D_Tech
Hi Kirk!

> On Mar 14, 2017, at 11:23 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> Robert,
> It sounds like you are doing some really interesting stuff.

Why yes, is there any other way?  :)

> kinds of files where surreptitious data are easily hidden. Then we get to
> the thousands of .dll files on a typical windows machine.

The requirement will be for Mac only and would exclude system files…. I’m 
mostly interested in media files… ProRes, Quicktime, TIFF, etc.

> These are the sorts of things already worked out and tools built to do
> them. I think it would be a large wheel to reinvent within 4D.

Actually, I’ve looked for years and have never found anything that will do 
this. It’s not impossible to do what needs to be done manually, it’s just a 
royal pain and prone to user errors that could result in data loss. Do you have 
a tool in mind?  I’m not looking to reinvent the wheel.

R
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Select & Create Document

2017-03-14 Thread John Baughman via 4D_Tech
After the call to Select document, the system variable Document contains the 
full path to the document selected.

John


> On Mar 14, 2017, at 11:21 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have the following (code excerpt) attempt to create a document on 
> disk.
> The Select Document dialog is fine, and shows the desired directory 
> (default saved to #5)
> I can enter a file name, no problem.
> 
> However...
> $File_Path-> after accepting the file destination and file name 
> contains ONLY the file name.
> So that the following code actually creating the document fails to 
> create the file in the desired location. Effectively Create DOcument 
> has on a file name, and so creates the the file in the default 4D 
> folder, in this case in the (Mac OS) User: library: Caches: 4D: 
> 
> 
> any idea on how to get the USer selected path??
> 
> 
> excerpted code
> $File_Path->:=Select document(5;$Extension;$User_Msg;32+16)
> 
> If ($File_Path->#"")  //file opened/file name entered
> $Doc_Ref->:=Create document($File_Path->)  //create disk file
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

v13 - Select & Create Document

2017-03-14 Thread Chip Scheide via 4D_Tech
I have the following (code excerpt) attempt to create a document on 
disk.
The Select Document dialog is fine, and shows the desired directory 
(default saved to #5)
I can enter a file name, no problem.

However...
$File_Path-> after accepting the file destination and file name 
contains ONLY the file name.
So that the following code actually creating the document fails to 
create the file in the desired location. Effectively Create DOcument 
has on a file name, and so creates the the file in the default 4D 
folder, in this case in the (Mac OS) User: library: Caches: 4D: 


any idea on how to get the USer selected path??


excerpted code
$File_Path->:=Select document(5;$Extension;$User_Msg;32+16)

If ($File_Path->#"")  //file opened/file name entered
$Doc_Ref->:=Create document($File_Path->)  //create disk file
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Unique Files Verification Software (Mac)

2017-03-14 Thread Timothy Penner via 4D_Tech
It's been a few years since I looked at it but I think the "HASH Examples in 
4D" tech note includes a sample database that had as a proof of concept the 
ability to "find duplicate files on a hard drive"
http://kb.4d.com/assetid=76130

Tech Note: Hash Examples in 4D
PRODUCT: 4D | VERSION: 12 | PLATFORM: Mac & Win
Published On: July 16, 2010
This Technical Note discusses hash functions including some of their common 
uses; the concept of salt is also discussed. Included with the Technical Note 
is a sample database that demonstrates using hash functions for encrypting 
passwords, file integrity, file fingerprinting, and finding duplicate files on 
a hard drive.


-Tim



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Online Documentation with Right Click on command

2017-03-14 Thread Chip Scheide via 4D_Tech
The language documentation, PDF - click on the [very tiny] PDF icon 
next to the title - is on an FTP server.  I have had issues with FTP 
and Mac OS in the past, where the Mac OS tries to mount the FTP 
directory directly on the desktop. You can try copying the link and 
using something like Fetch, or any other FTP client to grab the file.

However, 10.6.8 (so an OLD browser and OS) loads the pdf into the 
browser window with an option to save, round icon with a 
monitor/computer.


On Tue, 14 Mar 2017 11:35:19 -0600, G-Mail via 4D_Tech wrote:
> Thanks Doug and Chip:
> 
> The download link for downloading 15R4 documentation, or 16 is not 
> doing anything for me in any of my browsers.
> 
> I played around with the Web link and got rid of the ‘r’ that was 
> after the 15 and then the web documentation for the command comes up 
> for v15.4. That will get me through most of my days. I will refer to 
> the update documentation for R5 that I have for those special 
> commands. Once the developer working on all windows Client Server 
> tests with v16 we will move to that version for our development.
> 
> Thanks guys!
> 
> Jody
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Online Documentation with Right Click on command

2017-03-14 Thread G-Mail via 4D_Tech
Thanks Doug and Chip:

The download link for downloading 15R4 documentation, or 16 is not doing 
anything for me in any of my browsers.

I played around with the Web link and got rid of the ‘r’ that was after the 15 
and then the web documentation for the command comes up for v15.4. That will 
get me through most of my days. I will refer to the update documentation for R5 
that I have for those special commands. Once the developer working on all 
windows Client Server tests with v16 we will move to that version for our 
development.

Thanks guys!

Jody

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP random errors

2017-03-14 Thread Paul Dennis via 4D_Tech
I have not managed to solve this problem of running 2 copies of 4D on same
machine both calling php. I have them running on reports 8002 and 8010 with
5 processes and also I tried this

auto_prepend_file = "E:/V15 R5 Compare
Client/Resources/php/Windows/_4D_Execute_PHP.php"
session.save_path = "E:/V15 R5 Compare Client/clientlocal/WebFolder"

I'm not sure which php.ini I'm supposed to be editing the one local to the
database of one local to the 4D application. It works fine  with a single
copy running.

Has anyone managed to solve this. Windows V15 r5.
Thanks
Paul



--
View this message in context: 
http://4d.1045681.n5.nabble.com/PHP-random-errors-tp5747969p5750765.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Users & Groups (What is "proper access privileges"?)

2017-03-14 Thread Kirk Brooks via 4D_Tech
Hi Jeremy,
A little over a year ago I transitioned one of my primary project from my
'roll my own' user system to using the 4D system. Primarily I wanted to get
out of the password security business as well as take advantage of some of
the native 4D security features. All of that gave me reason to learn to
work with the commands you cite and I offer all this exposition just to let
you know where I'm coming from.

First off, any of the commands can be executed in code as Designer unless
the method the command is in is limited. This is what make using BLOB TO
USERS and USERS TO BLOB useful. I ship a database with no users except for
Designer and Admin. On server startup I look for the blob of stored users
and import it to restore the local user scheme. An on server shutdown I
export the user blob. Works great.

I leave creating users to the Administrator but it can be done
programmatically as well in which case you have the option to indicate
whether the 4D user is created under the auspices of Designer or
Administrator. Obviously you want to use the Admin.

That command can be called by any method. So if you want to control user
creation you want to protect the method it's called in. This is the case
with setting group properties and such. Protect the method that calls those
commands.

The ones that get those properties aren't so sensitive generally.

The thing to remember about creating users and groups with Designer or
Admin is :

- Designer created users/groups aren't exported to blob and can't be edited
or changed by anyone except a Designer. They are permanent parts of the
structure.
- Admin created users/groups are exported to blob and are dynamic, specific
additions to the structure.

So anything you always want to be there you make with Designer. Anything
that's under end-user purview let them build with Admin.

This obviously makes a case for controlling how much of the 4D command
language you expose and suggests it would be smart to filter any scripts
you allow to run under something like Footrunner.

I think I at least touched on your questions in here - hope it helps.

BTW - my ultimate user management system uses a combination of the 4D
scheme and my internal one. As I said I let 4D manage 'the wall' (to borrow
popular American nomenclature) and bind each 4D user to my own internal
user. The internal user's record is where fine-grained business logic
permissions are handled. Any number of people can have access to the
internal record but only the 4D Admin can create 4D users.


On Mon, Mar 13, 2017 at 12:21 PM, Jeremy French via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> What is meant by "proper access privileges" in Users and Groups? Is there
> a definiton somewere?
>
> 3-commands mention "Designer" and "Administrator", who can execute the
> command. Those commands are:
>   1)  BLOB TO USERS
>   2)  DELETE Users
>   3)  USERS TO BLOB
>
>
> But many other commands do not identify who is a privileged user. In the
> Error Management section, the documentation simply says these commands
> return an error when "you do not have the proper access privileges".
>
> Who has proper access privileges for the following commands?
> • GET GROUP LIST
> • GET GROUP PROPERTIES
> • GET USER LIST
> • GET USER PROPERTIES
> • Is user deleted
> • Set group properties
> • Set user properties
>
>
> QUESTIONS:
> 1)  What is meant by "proper access privileges"?
> 2)  Which users have "propert access privileges" when the documentation
> doesn't identify the privileged users?
> 3)  What am I missing here?
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D v15.4: Internet commands *SOLVED*

2017-03-14 Thread Two Way Communications via 4D_Tech
In 4D starting with v14, 4D no longer limits the lines to 60 chars when you do 
BASE64_Encode. (it used to do that in v13)
As a result, some email servers reject the message (but not always).

After I split the lines in the Base64 encoded blob into 60 chars each (by only 
using a line feed), the mail was delivered correctly.

Interestingly, Gmail put this mail in the spam before, after the correction it 
doesn’t.


Regards,

Rudy Mortier
Two Way Communications bvba  -



> On 09 Mar 2017, at 17:23, Two Way Communications via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Hi guys,
> 
> Since my customer is using 4D v15.4 (2 weeks now), he is experiencing 
> frequent issues while sending e-mails.
> 
> I did have to change SMTP_SetPrefs from (0;1;0) to (1;8;0), but 95% of the 
> emails are sent correctly.
> 
> For the other 5%, they get an error mail from the provider’s email stating 
> that the e-mail could not be delivered.
> 
> it says:
> 
> Status: 5.1.1
> Diagnostic-Code: smtp; 501 5.5.4 Syntax error in BODY parameter
> 
> 
> Has 4D something changed in the headers of outgoing mail messages? What is it 
> doing different in v15.4?
> 
> 
> Regards,
> 
> Rudy Mortier
> Two Way Communications bvba  -
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Full text document indexation

2017-03-14 Thread Daniel N. Solenthaler via 4D_Tech
Hi everyone,

for our 4D based DMS, we currently store the documents outside of the database 
and have them full-text indexed by Spotlight (the server is macOS). Then we use 
Rob Lavaux' awesome PlugIn to access the Spotlight index and - voilà - we have 
a powerful full text document indexation available for our end users.

Now we need to use a Windows server. Does anyone know how to implement a full 
text document indexation for documents on a windows server?

Thanks
Daniel


Daniel Nestor Solenthaler
eMail: dan...@solenthaler.com


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Online Documentation with Right Click on command

2017-03-14 Thread Chip Scheide via 4D_Tech
Doc.4d.com for the files to download

as a note:
if you know the command and type it and the left parenthesis the 
parameters show up in the 'status bar'(bottom of the window)

ex: 
Save Record(


Save Record {(aTable)}

On Tue, 14 Mar 2017 10:28:21 -0600, G-Mail via 4D_Tech wrote:
> I have got addicted to using the right click on a command to view 
> that commands documentation. A few weeks ago this stopped working for 
> me, and for the other programmer in another country.
> 
> I believe the settings are located in the 4D Preferences - 
> Documentation Location.
> 
> The Web site setting is:  http://doc.4d.com/4dv15r/help/command/en/ 
> 
> 
> My browser will always launch and look but come back with not found. 
> Any ideas to help out this formerly retired 4Der? When I click on the 
> ‘World’ icon beside the website setting it looks for:
> 
> http://doc.4d.com/4Dv15R5/4D/15-R5/4D-SVG-Component.100-3014973.en.html 
> 
> 
> This comes up with the anticipated ‘Safari Can’t Open the Page notice.
> 
> 
> 
> While I am asking this a related question would be where would I 
> download the HTML so I can have it stored locally? Then when my 
> internet connection is down I can still have it. My internet goes 
> down weekly. Sometimes for 10 minutes, sometimes for a few days. So 
> this would be a good thing to have.
> 
> Thanks in advance for your ideas on this.
> It seems the three years off I forgot the exact parameters, names of 
> commands etc. I just know they should be there.
> 
> Jody
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Online Documentation with Right Click on command

2017-03-14 Thread Douglas von Roeder via 4D_Tech
Jody:

This link will will take you to the docs for V16:

http://doc.4d.com/4Dv16/index.en.html

If you click on the link "4D Language Reference", you'll end up here:

http://doc.4d.com/4Dv16/4D/16/4D-Language-Reference.100-3035671.en.html

On the right side are the headings Properties, Index, Article Usage, and
Download.

HTH.


And, thank you 4D for putting the resources into improving the
documentation section of the site. In the past, I've resorted to having
local copy as well as hosting my own because of intermittent availability
and performance of the doc.4d.com. The site is much improved. In addition
to consistent and improved visuals, the site is very responsive.



--
Douglas von Roeder
949-336-2902

On Tue, Mar 14, 2017 at 9:28 AM, G-Mail via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> I have got addicted to using the right click on a command to view that
> commands documentation. A few weeks ago this stopped working for me, and
> for the other programmer in another country.
>
> I believe the settings are located in the 4D Preferences - Documentation
> Location.
>
> The Web site setting is:  http://doc.4d.com/4dv15r/help/command/en/ <
> http://doc.4d.com/4dv15r/help/command/en/>
>
> My browser will always launch and look but come back with not found. Any
> ideas to help out this formerly retired 4Der? When I click on the ‘World’
> icon beside the website setting it looks for:
>
> http://doc.4d.com/4Dv15R5/4D/15-R5/4D-SVG-Component.100-3014973.en.html <
> http://doc.4d.com/4Dv15R5/4D/15-R5/4D-SVG-Component.100-3014973.en.html>
>
> This comes up with the anticipated ‘Safari Can’t Open the Page notice.
>
>
>
> While I am asking this a related question would be where would I download
> the HTML so I can have it stored locally? Then when my internet connection
> is down I can still have it. My internet goes down weekly. Sometimes for 10
> minutes, sometimes for a few days. So this would be a good thing to have.
>
> Thanks in advance for your ideas on this.
> It seems the three years off I forgot the exact parameters, names of
> commands etc. I just know they should be there.
>
> Jody
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Online Documentation with Right Click on command

2017-03-14 Thread G-Mail via 4D_Tech
I have got addicted to using the right click on a command to view that commands 
documentation. A few weeks ago this stopped working for me, and for the other 
programmer in another country.

I believe the settings are located in the 4D Preferences - Documentation 
Location.

The Web site setting is:  http://doc.4d.com/4dv15r/help/command/en/ 


My browser will always launch and look but come back with not found. Any ideas 
to help out this formerly retired 4Der? When I click on the ‘World’ icon beside 
the website setting it looks for:

http://doc.4d.com/4Dv15R5/4D/15-R5/4D-SVG-Component.100-3014973.en.html 


This comes up with the anticipated ‘Safari Can’t Open the Page notice.



While I am asking this a related question would be where would I download the 
HTML so I can have it stored locally? Then when my internet connection is down 
I can still have it. My internet goes down weekly. Sometimes for 10 minutes, 
sometimes for a few days. So this would be a good thing to have.

Thanks in advance for your ideas on this.
It seems the three years off I forgot the exact parameters, names of commands 
etc. I just know they should be there.

Jody
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Kirk Brooks via 4D_Tech
Robert,
It sounds like you are doing some really interesting stuff. It also sounds
like you might want to be looking for forensic tools already been built for
this sort of work.

Alex is right about hashing the file blob to develop a unique identifier
for exact matches regardless of name but that also means 'exact'. I'm
thinking about an excel spreasheet opened with numbers or googlesheets and
resaved. Copy two may be perfectly fine as far as the programs and anything
else are concerned but not be 'exact' if a single character was replaced,
changed, added or removed anywhere in the file. With image files it's even
easier for something to get shifted or changed and those are precisely the
kinds of files where surreptitious data are easily hidden. Then we get to
the thousands of .dll files on a typical windows machine.

These are the sorts of things already worked out and tools built to do
them. I think it would be a large wheel to reinvent within 4D.

On Mon, Mar 13, 2017 at 11:56 PM, Robert ListMail via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I need a utility that can scan a backup drive (or index) and identify
> what’s unique to the backup volume without expecting identical pathnames on
> the other drives... So, the routine would have to query (effectively a
> Finder Search for each file) all specified drives looking for each file and
> reporting those that are missing... Basically, I need to know which data on
> this given backup drive is truly unique and therefore potentially valuable.
>
> Might there be a 4D solution?  Have you dealt with large directories or
> many directories from the file system? If there is a utility already built
> I’m open to that as well.
>
> Thanks,
>
> Robert
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Backup files - restoring backup

2017-03-14 Thread Kirk Brooks via 4D_Tech
Pat,
I also see this happen when I'm developing and the log file or the datafile
gets replaced. Before everyone starts thinking I'm being incredibly sloppy
it happens when I pull a copy of the datafile off the server to open on my
developer machine. If I forget to trash the existing log file that's the
error that comes up.

Perhaps your client was doing some housekeeping on the server and
inadvertently moved a file - like the log file?

Since they don't think they are doing backups and if they are sure the
datafile is correct you can just trash the log file.

Or copy the datafile folder, trash the log file and restart.


On Mon, Mar 13, 2017 at 7:50 AM, Pat Bensky via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> A client is getting the message:
>
> "An error occured during the log file integration, it is recommended to
> restore the last backup of this database in order to attempt the
> integration of this log file""
>
> I've told them how to restore the backup file manually but they say they do
> not have any files with the .4BK extension. Surely, if they didn't have any
> backup files, this message wouldn't even appear? If the database was
> damaged, they'd just get a "damaged database" error instead, if no backup
> had been set up? Right?
>
> (They are using 4D v13.6, server).
>
> I think the .bk files must be there somewhere - they just can't find them.
>
> Pat
>
> --
> *
> CatBase - The Database Publishing Solution
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Chip Scheide via 4D_Tech
I played with a file management system a long time ago (4D v2 or v3)
I did not do the hash thing  -- sounds like an excellent idea!
but ...
running though a disk, and storing file paths (only) took a long time.
now the hardware was a LOT slower then today's, but the drives were also much 
much SMALLER. ---
There are utilities out there for discovering duplicate files, I believe these 
utilities access the file system directories directly rather then walking the 
directory structure, touching every file.

Depending on the OS, and exactly what is backed up - there could easily (OS X) 
be millions of files (the OSX system is more then a hundred of thousand by 
itself).


> I need a utility that can scan a backup drive (or index) and identify 
> what’s unique to the backup volume without expecting identical 
> pathnames on the other drives... So, the routine would have to query 
> (effectively a Finder Search for each file) all specified drives 
> looking for each file and reporting those that are missing... 
> Basically, I need to know which data on this given backup drive is 
> truly unique and therefore potentially valuable.
> 
> Might there be a 4D solution?  Have you dealt with large directories 
> or many directories from the file system? If there is a utility 
> already built I’m open to that as well.
> 
> Thanks,
> 
> Robert
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

Hell is other people 
 Jean-Paul Sartre
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Herr Alexander Heintz via 4D_Tech
You're welcome.
I need this as we store all attached files of e-mails in our DMS and here we 
find truckloads of duplicates (logos in mail signatures, etc.)
In order to avoid blowing up storage we calculate a hash of every file and only 
store uniques, and then link them to the appropriate source documents.
Of course, when we switched to this system we had to cleanup all the existing 
storage, hence we did somethings similar.
Using the hash has proven to be the best and most secure approach as ist is 
guaranteed to identify identical files no matter what they are named, it even 
finds them if someone mistakenly uses a different suffix (i.e. jpeg instead of 
jpg).

Cheers
Alex

> Am 14.03.2017 um 10:11 schrieb Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com>:
> 
> Alex, thanks for the input. I thought it might be a good task for 4D.  So how 
> or why do you need such a tool?
> 
> Btw: I don't really need the hash comparison if I had other file attributes. 
> I'll look at this again tomorrow. 
> 
> Thanks,
> 
> Robert
> 
> Sent from my iPhone
> 
>> On Mar 14, 2017, at 3:25 AM, Herr Alexander Heintz via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> 
>> I use a similar Algorithm for optimizing document storage.
>> Pretty simple actually:
>> just troll through all directories recursively and store each file in a 
>> record.
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Robert ListMail via 4D_Tech
Alex, thanks for the input. I thought it might be a good task for 4D.  So how 
or why do you need such a tool?

Btw: I don't really need the hash comparison if I had other file attributes. 
I'll look at this again tomorrow. 

Thanks,

Robert

Sent from my iPhone

> On Mar 14, 2017, at 3:25 AM, Herr Alexander Heintz via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 
> I use a similar Algorithm for optimizing document storage.
> Pretty simple actually:
> just troll through all directories recursively and store each file in a 
> record.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Herr Alexander Heintz via 4D_Tech
Hi,

I use a similar Algorithm for optimizing document storage.
Pretty simple actually:
just troll through all directories recursively and store each file in a record.
You just need the path and the file hash which you can create with

DOCUMENT TO BLOB($t_DocPath;$x_Content)
$t_FileHash:=Generate digest($x_Content;MD5 digest)
SET BLOB SIZE($x_Content;0)

Then just check for unique hashes and voila!
Using the hash will also find identical files that have different filenames.
The chances of 2 different files generating the same hash are so close to 0 
they are for all practivcal reasons 0.
Now write something that moves unigue data somewehere else or deletes 
duplicates.

Whole thing is quickly written, I guess some 100 lines of code.
120 with progress bars :-)

As for running it, well that will take some time, don’t do it on you main work 
machine, it might be tied up for a while.

Hope that helped.

Cheers
Alex

> Am 14.03.2017 um 07:56 schrieb Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com>:
> 
> I need a utility that can scan a backup drive (or index) and identify what’s 
> unique to the backup volume without expecting identical pathnames on the 
> other drives... So, the routine would have to query (effectively a Finder 
> Search for each file) all specified drives looking for each file and 
> reporting those that are missing... Basically, I need to know which data on 
> this given backup drive is truly unique and therefore potentially valuable.
> 
> Might there be a 4D solution?  Have you dealt with large directories or many 
> directories from the file system? If there is a utility already built I’m 
> open to that as well.
> 
> Thanks,
> 
> Robert
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**