From: Giovanni Ughi on
why you said: "just moved to the recycle bin, pretty useless"

in my case (winXP and Matlab 2009b) when the file is deleted from matlab is just deleted, I do not have anything in the recycle bin.

It may depend on the system settings? (in my case also on different pc it is the same)
From: Walter Roberson on
Sean wrote:

> Also, that was way more checks than you need for the whole thing. It
> could all be done with this condition:
> %%%
> if all([c(1)>=2011 c(2) >= 5 && c(3) > 5]) disp('license expired');
> delete myfun.p
> end
> %%%

if now >= 734628


(By the way, the datenum for May 5, 2011 is prime, if someone is looking for a
cryptographic obscuration of the above.)
From: Sean on
"Giovanni Ughi" <giovanni.ughi(a)gmail.com> wrote in message <i2v52r$njt$1(a)fred.mathworks.com>...
> why you said: "just moved to the recycle bin, pretty useless"
>
> in my case (winXP and Matlab 2009b) when the file is deleted from matlab is just deleted, I do not have anything in the recycle bin.
>
> It may depend on the system settings? (in my case also on different pc it is the same)

Point taken; on my Macintosh with 2009b it just moves it to the trash. I'd still say overwriting it would be more secure.
From: Andy on
Walter Roberson <roberson(a)hushmail.com> wrote in message <i2v5cd$82r$1(a)canopus.cc.umanitoba.ca>...
> Sean wrote:
>
> > Also, that was way more checks than you need for the whole thing. It
> > could all be done with this condition:
> > %%%
> > if all([c(1)>=2011 c(2) >= 5 && c(3) > 5]) disp('license expired');
> > delete myfun.p
> > end
> > %%%
>
> if now >= 734628
>
>
> (By the way, the datenum for May 5, 2011 is prime, if someone is looking for a
> cryptographic obscuration of the above.)

What? 734628 is not prime.
From: Walter Roberson on
Giovanni Ughi wrote:
> why you said: "just moved to the recycle bin, pretty useless"
>
> in my case (winXP and Matlab 2009b) when the file is deleted from matlab
> is just deleted, I do not have anything in the recycle bin.
>
> It may depend on the system settings? (in my case also on different pc
> it is the same)

Oh gee, somehow the write permissions on the directory disappeared!

Oh gee, and somehow the ownership of the directory got changed so that the
permissions couldn't be changed!

Oh gee, look here, someone overrode the delete function, too...


The world is littered with the bankrupt remains of software companies who
thought they had developed "unbreakable" license schemes.


I have only heard of _one_ unbreakable license scheme: it involves quantum
entanglement and quantum "action at a distance" to create a data stream that
is unforgeable and unsnoopable (seriously.)