|
Page 1 of 1
|
[ 12 posts ] |
|
since 1.30 beta: no back up files any more?
Author |
Message |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 since 1.30 beta: no back up files any more?
hi,
since I updated from 1.10 to 1.30 beta (->2 ->4) there are no back up files generated any more.
This is poor, because if a file has been changed by a couple of faulty commands during developing and/or some lines have been deleted, and then F5 or F7 have been pressed, the correct old version is overwritten and can't be restored...
where can the backup feature be reinstalled?
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Mon Jun 02, 2008 5:32 pm |
|
 |
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 616
|
1.30 and above has a different scheme for storing backups.
There is a boolean flag in the preferences to indicate when rewriting a file, whether it should be really deleted or whether it should be stored in the trash / recycle bin.
So you can recover your file by pulling it out of the trash. If you've done multiple saves, you will find multiple copies of the file in the trash.
|
Wed Jun 04, 2008 4:17 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
hi,
thx, but what is the recycle bin? The Windows trash basket?
Anyway, it would be great if the back up files had been physically stored in the current directory (e.g. the best way was, if the file name was myfile.c, then the backups would get the extensions myfile~1.c, myfile~2.c, myfile~3.c and so on...)
And it would be even greater if there was a file... submenu with an option "delete old stuff"... 
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Wed Jun 04, 2008 4:37 am |
|
 |
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 616
|
The "best" solution is to allow "undo" even for the saved files. Currently, "undo" information is lost every time file is save and the file is saved every time there's a compile.
Your suggestion is also good. I'd probably delete them when ROBOTC is closed to prevent cluttering up your directory with lots of copies of the file. And I would also probably limit to "N" (N being a small number) the number of versions that are saved.
PS. Regarding your struct bugts. Some are fixed in 1.36/1.37. If I had your email address I'd of sent you a message. You can contact me at dickswan@sbcglobal.net.
|
Wed Jun 04, 2008 4:46 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
that would be fine.
the files maybe could be renamed circle-wise (?) (I want to say, if a new one is generated and exceeds the limt of the maxCount, it gets the maxCount as an extension, and each of the former ones get a decreased number - the oldest (lowest) would be deleted.)
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
Last edited by Ford Prefect on Wed Jun 04, 2008 5:16 am, edited 1 time in total.
|
Wed Jun 04, 2008 5:06 am |
|
 |
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 616
|
I already have code somewhere that appends a numeric to a filename and auto-increments the numeric. And I have some code that matches the number of files in this format. So rather than a circular buffer, "NNN" would probably simply increment from existing number (if it exists). This way it is easy to tell vintage by simply looking at file name. And "NNN" gets reset to "000" if the temporary files are erased when ROBOTC exits.
|
Wed Jun 04, 2008 5:14 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
ok, perfect ! 
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Wed Jun 04, 2008 5:16 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
in 1.38 there are still no backup files at all - are they?
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Sun Jun 15, 2008 4:34 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
Ford,
You're just going to have to stop making mistakes. It's the only real solution!
Regards,
Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Sun Jun 15, 2008 9:29 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
Huuh-huuh -
anyone out there?
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Wed Jun 18, 2008 2:54 pm |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
@dick swan, @tfriez,
could you plz give a statement to these problems?
how is this with the 1.40?
thx in advance!
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Tue Jul 08, 2008 2:43 am |
|
 |
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 620
|
In 1.40, the files are moved to the Windows Recycling bin every time the program is compiled or saved. We are still working on adding the increment addition to the file name.
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
Wed Jul 09, 2008 10:50 am |
|
|
|
Page 1 of 1
|
[ 12 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|