View unanswered posts | View active topics It is currently Wed Oct 01, 2014 8:22 pm






Reply to topic  [ 12 posts ] 
since 1.30 beta: no back up files any more? 
Author Message
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 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... :cry:

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
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
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
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
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"... :wink:

_________________
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
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
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
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
Dick Swan wrote:
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.

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
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
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
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
ok, perfect ! 8)

_________________
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
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
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
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post 
Ford Prefect wrote:
in 1.38 there are still no backup files at all - are they?

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
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
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
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
@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
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 610
Post 
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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.