Re: File Size

2018-01-15 Thread Keith Culotta via 4D_Tech
Today I saw that somewhere around 1997 the answer to this 6÷2(1+2) changed from 
1 to 9, also because of techno-cultural influences.

Keith - CDI

> On Jan 15, 2018, at 2:10 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> On Jan 15, 2018, at 2:00 PM, Wayne Stewart wrote:
> 
>> I'm trying to create a method that will return a file size as a string,
>> similar to how the Finder does.
>> 
>> Although I get "a result" it's not the "same result" as reported in the
>> Finder :(
>> 
>> It turns out that in the Finder KB are 1000 bytes, MB are 1000 KB etc.
>> 
>> I wasted a fair bit of time on this !
> 
> 
> Yes, a kilobyte is 1,024 bytes and it used to be if you saw “K” that was a 
> kilobyte. I guess now the standard is a “K” is 1,000. I remember learning 
> this in college back in the 80’s. And a MB was 1,024 * 1,024 back then too.
> 
> Didn’t this also have something to do with how hard drive manufacturers were 
> reporting drive sizes. People thought they were getting ripped off for some 
> bytes when it was really just a terminology issue. Then Apple decided to 
> change to match what the hard drive people were doing. Does anyone else 
> remember it like this?
> 
> https://discussions.apple.com/thread/3071175
> 
> Tim
>   
> Tim Nevels 
> timnev...@mac.com 
> Innovative Solutions
> 785-749-3444
> 
> 
> **
> 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: File Size

2018-01-15 Thread Tim Nevels via 4D_Tech
On Jan 15, 2018, at 2:00 PM, Wayne Stewart wrote:

> I'm trying to create a method that will return a file size as a string,
> similar to how the Finder does.
> 
> Although I get "a result" it's not the "same result" as reported in the
> Finder :(
> 
> It turns out that in the Finder KB are 1000 bytes, MB are 1000 KB etc.
> 
> I wasted a fair bit of time on this !


Yes, a kilobyte is 1,024 bytes and it used to be if you saw “K” that was a 
kilobyte. I guess now the standard is a “K” is 1,000. I remember learning this 
in college back in the 80’s. And a MB was 1,024 * 1,024 back then too.

Didn’t this also have something to do with how hard drive manufacturers were 
reporting drive sizes. People thought they were getting ripped off for some 
bytes when it was really just a terminology issue. Then Apple decided to change 
to match what the hard drive people were doing. Does anyone else remember it 
like this?

https://discussions.apple.com/thread/3071175

Tim

Tim Nevels 
timnev...@mac.com 
Innovative Solutions
785-749-3444


**
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
**

Tip: SVG internal error Trace

2018-01-15 Thread Keith Culotta via 4D_Tech
In case I am not the last one to know...  

When an internal SVG error message pops up on the screen, the Trace button is 
disabled in the dialog, but Trace is still available to display the offending 
line of code.  You can use the option-command-click and select from the pop-up 
menu while the error dialog is being displayed to begin tracing the process 
code  ... in 16R5 at least.

Keith - CDI
**
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
**

[OFF] Metodika - developers

2018-01-15 Thread Rikard Sagnér via 4D_Tech
Hi,

Metodika is looking for a 4D developer that can work in our office in 
Stockholm, Sweden.

If you are interested, or know someone that might be, please send me a private 
email on rik...@metodika.com 

More information about Metodika and what we do can be found here: 
https://www.metodika.com 

Best,

Rikard
**
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: File Size

2018-01-15 Thread Chip Scheide via 4D_Tech
file size should be real - due to the fact that files (and/or folders) can be 
far larger then max longing


> 
>> Le 15 janv. 2018 à 08:15, Arnaud de Montard via 4D_Tech 
>> <4d_tech@lists.4d.com> a écrit :
>> 
>> I use this (french "octet" stands for "byte")
> 
> unit tests… 
> 
> ASSERT(Num_bytesToStr (MAXLONG^2)="4611,7 Po")
> ASSERT(Num_bytesToStr (MAXLONG*1000)="2,1 To")
> ASSERT(Num_bytesToStr (MAXLONG)="2,1 Go")
> ASSERT(Num_bytesToStr (512110190592)="512,1 Go")
> ASSERT(Num_bytesToStr (436867119528)="436,9 Go")
> ASSERT(Num_bytesToStr (MAXINT)="32,8 Ko")
> ASSERT(Num_bytesToStr (1550)="1,6 Ko")
> ASSERT(Num_bytesToStr (2^8)="256 o")

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
**