[E-devel] Backup function in Edje_Editor?

2008-12-06 Thread Andreas Volz
Hello,

I'm really down, because I lost two hours of Edje design, because
Edje_Editor corrupted my file. :-(

I simply created a new text part. It comes up without states and after
saving and reopening, the Edje_File was corrupted. Even I couldn't
decompile it with edje_decc.

I know Edje_Editor is in a development state. But may it be possible to
add a automatic backup for saving? So if Edje_Editor corrupts the file
than I could switch back to the myedje.edj.bak file. Currently
Edje_Editor is to dangerous for me to use it.

I mostly use Edje_Editor to create some layout and effects. Then I
decompile it, learn from the source or copy&paste it into my real edc
file.

But anyway it's good work, even if not yet stable!

regards
Andreas

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Backup function in Edje_Editor?

2008-12-06 Thread Andreas Volz
Am Sat, 6 Dec 2008 13:28:26 +0100 schrieb Andreas Volz:

> Hello,
> 
> I'm really down, because I lost two hours of Edje design, because
> Edje_Editor corrupted my file. :-(
> 
> I simply created a new text part. It comes up without states and after
> saving and reopening, the Edje_File was corrupted. Even I couldn't
> decompile it with edje_decc.
> 
> I know Edje_Editor is in a development state. But may it be possible
> to add a automatic backup for saving? So if Edje_Editor corrupts the
> file than I could switch back to the myedje.edj.bak file. Currently
> Edje_Editor is to dangerous for me to use it.

Ok, while searching in the source code I found out that Edje_Editor
creates temporary files in /tmp. I was able to bring my file back. :-)

regards
Andreas

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Backup function in Edje_Editor?

2008-12-06 Thread Dave Andreoli

- "Andreas Volz" <[EMAIL PROTECTED]> ha scritto:

> Hello,
> 
> I'm really down, because I lost two hours of Edje design, because
> Edje_Editor corrupted my file. :-(
> 
> I simply created a new text part. It comes up without states and
> after
> saving and reopening, the Edje_File was corrupted. Even I couldn't
> decompile it with edje_decc.

The textpart you created was a normal text or a textblock? it's stange
that it was created without the default state.


> 
> I know Edje_Editor is in a development state. But may it be possible
> to
> add a automatic backup for saving? So if Edje_Editor corrupts the
> file
> than I could switch back to the myedje.edj.bak file. Currently
> Edje_Editor is to dangerous for me to use it.

The editor used to make a .bak in the past, don't remember when I lost that
function :P  I will reimplement it.

Do you think a single .bak is enought ?? or it's better to do a .bak1 .bak2 
.bak3 etc ??

Thanks for reporting!

> 
> I mostly use Edje_Editor to create some layout and effects. Then I
> decompile it, learn from the source or copy&paste it into my real edc
> file.
> 
> But anyway it's good work, even if not yet stable!
> 
> regards
> Andreas
> 
> --
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to
> help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Backup function in Edje_Editor?

2008-12-06 Thread Andreas Volz
Am Sat, 6 Dec 2008 20:19:24 +0100 (CET) schrieb Dave Andreoli:

> 
> - "Andreas Volz" <[EMAIL PROTECTED]> ha scritto:
> 
> > Hello,
> > 
> > I'm really down, because I lost two hours of Edje design, because
> > Edje_Editor corrupted my file. :-(
> > 
> > I simply created a new text part. It comes up without states and
> > after
> > saving and reopening, the Edje_File was corrupted. Even I couldn't
> > decompile it with edje_decc.
> 
> The textpart you created was a normal text or a textblock? it's stange
> that it was created without the default state.

A normal text. Do you like to have the corrupted file? Does that help?

What I did this time is to use group_swallow. Before I had no problems.

> > 
> > I know Edje_Editor is in a development state. But may it be possible
> > to
> > add a automatic backup for saving? So if Edje_Editor corrupts the
> > file
> > than I could switch back to the myedje.edj.bak file. Currently
> > Edje_Editor is to dangerous for me to use it.
> 
> The editor used to make a .bak in the past, don't remember when I
> lost that function :P  I will reimplement it.
> 
> Do you think a single .bak is enought ?? or it's better to do
> a .bak1 .bak2 .bak3 etc ??

My idea was this logic:

-> at open time => myedje.bak.load
-> at save time 1 => myedje.bak.1
-> at save time 2 => myedje.bak.2
-> at save time 3 => myedje.bak.3

Then cyclic overwrite bak.1 to bak.3. The bak.load is problematic as it
creates a file without saving. Maybe write that file to /tmp. I think
it's only a feature that needs to be as long as edje_editor isn't
stable.

regards
Andreas

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Backup function in Edje_Editor?

2008-12-06 Thread Gustavo Sverzut Barbieri
On Sat, Dec 6, 2008 at 6:41 PM, Andreas Volz <[EMAIL PROTECTED]> wrote:
> Am Sat, 6 Dec 2008 20:19:24 +0100 (CET) schrieb Dave Andreoli:
>
>>
>> - "Andreas Volz" <[EMAIL PROTECTED]> ha scritto:
>>
>> > Hello,
>> >
>> > I'm really down, because I lost two hours of Edje design, because
>> > Edje_Editor corrupted my file. :-(
>> >
>> > I simply created a new text part. It comes up without states and
>> > after
>> > saving and reopening, the Edje_File was corrupted. Even I couldn't
>> > decompile it with edje_decc.
>>
>> The textpart you created was a normal text or a textblock? it's stange
>> that it was created without the default state.
>
> A normal text. Do you like to have the corrupted file? Does that help?
>
> What I did this time is to use group_swallow. Before I had no problems.
>
>> >
>> > I know Edje_Editor is in a development state. But may it be possible
>> > to
>> > add a automatic backup for saving? So if Edje_Editor corrupts the
>> > file
>> > than I could switch back to the myedje.edj.bak file. Currently
>> > Edje_Editor is to dangerous for me to use it.
>>
>> The editor used to make a .bak in the past, don't remember when I
>> lost that function :P  I will reimplement it.
>>
>> Do you think a single .bak is enought ?? or it's better to do
>> a .bak1 .bak2 .bak3 etc ??
>
> My idea was this logic:
>
> -> at open time => myedje.bak.load
> -> at save time 1 => myedje.bak.1
> -> at save time 2 => myedje.bak.2
> -> at save time 3 => myedje.bak.3
>
> Then cyclic overwrite bak.1 to bak.3. The bak.load is problematic as it
> creates a file without saving. Maybe write that file to /tmp. I think
> it's only a feature that needs to be as long as edje_editor isn't
> stable.


disk space is cheap this days, so save them all, just make an option
to save backups or not and be happy, every save increments the backup
number. don't bother with too much information, user can use
mtime/ctime to order them later.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: [EMAIL PROTECTED]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Backup function in Edje_Editor?

2008-12-06 Thread Dave Andreoli

- "Gustavo Sverzut Barbieri" <[EMAIL PROTECTED]> ha scritto:

> On Sat, Dec 6, 2008 at 6:41 PM, Andreas Volz <[EMAIL PROTECTED]>
> wrote:
> > Am Sat, 6 Dec 2008 20:19:24 +0100 (CET) schrieb Dave Andreoli:
> >
> >>
> >> - "Andreas Volz" <[EMAIL PROTECTED]> ha scritto:
> >>
> >> > Hello,
> >> >
> >> > I'm really down, because I lost two hours of Edje design,
> because
> >> > Edje_Editor corrupted my file. :-(
> >> >
> >> > I simply created a new text part. It comes up without states and
> >> > after
> >> > saving and reopening, the Edje_File was corrupted. Even I
> couldn't
> >> > decompile it with edje_decc.
> >>
> >> The textpart you created was a normal text or a textblock? it's
> stange
> >> that it was created without the default state.
> >
> > A normal text. Do you like to have the corrupted file? Does that
> help?
> >
> > What I did this time is to use group_swallow. Before I had no
> problems.
> >
> >> >
> >> > I know Edje_Editor is in a development state. But may it be
> possible
> >> > to
> >> > add a automatic backup for saving? So if Edje_Editor corrupts
> the
> >> > file
> >> > than I could switch back to the myedje.edj.bak file. Currently
> >> > Edje_Editor is to dangerous for me to use it.
> >>
> >> The editor used to make a .bak in the past, don't remember when I
> >> lost that function :P  I will reimplement it.
> >>
> >> Do you think a single .bak is enought ?? or it's better to do
> >> a .bak1 .bak2 .bak3 etc ??
> >
> > My idea was this logic:
> >
> > -> at open time => myedje.bak.load
> > -> at save time 1 => myedje.bak.1
> > -> at save time 2 => myedje.bak.2
> > -> at save time 3 => myedje.bak.3
> >
> > Then cyclic overwrite bak.1 to bak.3. The bak.load is problematic as
> it
> > creates a file without saving. Maybe write that file to /tmp. I
> think
> > it's only a feature that needs to be as long as edje_editor isn't
> > stable.
> 
> 
> disk space is cheap this days, so save them all, just make an option
> to save backups or not and be happy, every save increments the backup
> number. don't bother with too much information, user can use
> mtime/ctime to order them later.

Ok, I will make it do a backup on each save.
The editor for now don't have any sort of configuration system, I like 
this, so the bak generation will be always on :P

Dave 


> 
> -- 
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --
> MSN: [EMAIL PROTECTED]
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
> 
> --
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to
> help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Backup function in Edje_Editor?

2008-12-06 Thread The Rasterman
On Sat, 6 Dec 2008 20:19:24 +0100 (CET) Dave Andreoli <[EMAIL PROTECTED]>
babbled:

> 
> - "Andreas Volz" <[EMAIL PROTECTED]> ha scritto:
> 
> > Hello,
> > 
> > I'm really down, because I lost two hours of Edje design, because
> > Edje_Editor corrupted my file. :-(
> > 
> > I simply created a new text part. It comes up without states and
> > after
> > saving and reopening, the Edje_File was corrupted. Even I couldn't
> > decompile it with edje_decc.
> 
> The textpart you created was a normal text or a textblock? it's stange
> that it was created without the default state.
> 
> 
> > 
> > I know Edje_Editor is in a development state. But may it be possible
> > to
> > add a automatic backup for saving? So if Edje_Editor corrupts the
> > file
> > than I could switch back to the myedje.edj.bak file. Currently
> > Edje_Editor is to dangerous for me to use it.
> 
> The editor used to make a .bak in the past, don't remember when I lost that
> function :P  I will reimplement it.
> 
> Do you think a single .bak is enought ?? or it's better to do
> a .bak1 .bak2 .bak3 etc ??

maybe put .baks in ~/.edje_editor/backups/

and keep up to N backups (so you can roll back features) or up to N backups per
session or up to the last N hours of work. add an auto-save every N minutes? :)
in the case of software still with bugs like this... this could help a lot!

> Thanks for reporting!
> 
> > 
> > I mostly use Edje_Editor to create some layout and effects. Then I
> > decompile it, learn from the source or copy&paste it into my real edc
> > file.
> > 
> > But anyway it's good work, even if not yet stable!
> > 
> > regards
> > Andreas
> > 
> > --
> > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> > Nevada.
> > The future of the web can't happen without you.  Join us at MIX09 to
> > help
> > pave the way to the Next Web now. Learn more and register at
> > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 
> --
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel