floele Posted February 14, 2009 Report Share Posted February 14, 2009 +Execute command before updating +Option to download a file exclusively +Added automatic backups (keeps up to 6 old copies of your database) *Moved "Show groups" to the "View" menu !Deleting multiple applications did not update the interface correctly !Fixed a bug that occurred when changing the download path !Fixed wrong (too high) timeout values for many web requests !Fixed FileHippo beta status not being detected correctly (anymore) v2 +Function "regex" (takes arguments "regular expression" and "index of match group" optionally) +Export command line option +Show database path in about screen +Post-update command *{url:*} is no longer replaced if the actual values cannot be determined correctly http://ketarin.canneverbe.com/downloads/Ketarin/Ketarin-1.0.2.zip Link to comment Share on other sites More sharing options...
FranciscoR Posted February 15, 2009 Report Share Posted February 15, 2009 (edited) +Execute command before updating+Added automatic backups (keeps up to 6 old copies of your database) Excellent !!! =D !Fixed a bug that occurred when changing the download path I'm having an issue with target display on GUI, path is {target}\{category}\{url:basefile}_{version}.{url:ext}, file name is correct, iclview_26.6.2006.zip, but display is not, iclview_26.6.2006_26.6.2006.zip. Previous version had this same problem, I have updated to the new a few moments ago. Edited February 15, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
floele Posted February 15, 2009 Author Report Share Posted February 15, 2009 Yep, this is a limitation I cannot work around. If appyface would have posted in this forum (:-p)... this is not really a bug actually, at least not one that I could possibly fix. When the value is displayed in the target column, it does not know of course what the actual download URL will be (because Ketarin would have to perform a slow web request for that). So instead of using "url:basefile" it uses "file:basefile" as variable content which will lead to the duplicated name. (This is the price you have to pay for wanting all that complexity with variable content resolution in that column :-p ) Link to comment Share on other sites More sharing options...
CybTekSol Posted February 15, 2009 Report Share Posted February 15, 2009 Lookin' good so far Flo... I haven't had the time to test the 'Execute command before updating' feature you implemented for me as of yet, but... THANK YOU in advance! Link to comment Share on other sites More sharing options...
FranciscoR Posted February 15, 2009 Report Share Posted February 15, 2009 Yep, this is a limitation I cannot work around. If appyface would have posted in this forum (:-p)... Ah, thanks a lot, I was not aware that issue. But for me this is random, it occurs in 1/10 jobs (for the moment). Link to comment Share on other sites More sharing options...
Stalker Posted February 15, 2009 Report Share Posted February 15, 2009 +Added automatic backups (keeps up to 6 old copies of your database) And here was me, about to request that feature. Thanks Flo ! Link to comment Share on other sites More sharing options...
appyface Posted February 16, 2009 Report Share Posted February 16, 2009 Yep, this is a limitation I cannot work around. If appyface would have posted in this forum (:-p)... Hey I saw that!!!! LOL I still think that one day, you'll fix that... just not today... Link to comment Share on other sites More sharing options...
appyface Posted February 16, 2009 Report Share Posted February 16, 2009 @Flo How does the the new automatic backup feature work? The first time I launched Ketarin 1.0.2, it created this file: jobs.db_2009-02-16.bak Since then I have made new app entries, edited apps, run updates, quit and relaunched, but still this is the only file, and it has not been updated since creation. More info please? Thanks, --appyface Link to comment Share on other sites More sharing options...
floele Posted February 16, 2009 Author Report Share Posted February 16, 2009 6 backups, one per day. Link to comment Share on other sites More sharing options...
appyface Posted February 16, 2009 Report Share Posted February 16, 2009 Thanks for explanation. Link to comment Share on other sites More sharing options...
floele Posted February 18, 2009 Author Report Share Posted February 18, 2009 I made another update to 1.0.2 now. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 18, 2009 Report Share Posted February 18, 2009 +Function "regex" (takes arguments "regular expression" and "index of match group" optionally) You rock ! P.S. Not sure if I understand how to use "index of match group". A small example would help. *{url:*} is no longer replaced if the actual values cannot be determined correctly Nothing is diplayed on my Target column anymore. All I see is {url:basefile} & {url:ext}, even after update. Link to comment Share on other sites More sharing options...
floele Posted February 18, 2009 Author Report Share Posted February 18, 2009 1. If you have groups within your regex (like "(Application) (Version)") you can select one of those groups instead of the whole match. 2. That's the way it is intended. The values can be wrong if displayed at this location, so they will simply not be resolved. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 18, 2009 Report Share Posted February 18, 2009 1. If you have groups within your regex (like "(Application) (Version)") you can select one of those groups instead of the whole match. Nice ! =D 2. That's the way it is intended. The values can be wrong if displayed at this location, so they will simply not be resolved. Hm, I understand. Nothing else unusual here. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 18, 2009 Report Share Posted February 18, 2009 This can be A-W-E-S-O-M-E but is syntax something like {app:regex:.*(match1).*?(match2):0} for matchgroup1 {app:regex:.*(match1).*?(match2):1} for matchgroup2 ? Link to comment Share on other sites More sharing options...
CybTekSol Posted February 18, 2009 Report Share Posted February 18, 2009 This can be A-W-E-S-O-M-E but is syntax something like {app:regex:.*(match1).*?(match2):0} for matchgroup1 {app:regex:.*(match1).*?(match2):1} for matchgroup2 ? I was about to ask the same question in order that I can 'give it a spin', so to speak. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 18, 2009 Report Share Posted February 18, 2009 It's not like that: 18-02-2009 23:43:47: Update started with 1 application(s) 18-02-2009 23:43:47: aaa: Replacing {app} in '{app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe)}' with '[url]http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe[/url]' 18-02-2009 23:43:47: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 18-02-2009 23:43:47: aaa: Replacing {app3} in 'http:{app3}' with '' 18-02-2009 23:43:47: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 18-02-2009 23:43:47: aaa: Replacing {app} in '{app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe)}' with '[url]http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe[/url]' 18-02-2009 23:43:47: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 18-02-2009 23:43:47: aaa: Replacing {app3} in 'http:{app3}' with '' 18-02-2009 23:43:47: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 18-02-2009 23:43:48: Update finished 18-02-2009 23:46:24: Update started with 1 application(s) 18-02-2009 23:46:24: aaa: Replacing {app} in '{app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe):1}' with '[url]http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe[/url]' 18-02-2009 23:46:24: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 18-02-2009 23:46:24: aaa: Replacing {app3} in 'http:{app3}' with '' 18-02-2009 23:46:24: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 18-02-2009 23:46:24: aaa: Replacing {app} in '{app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe):1}' with '[url]http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe[/url]' 18-02-2009 23:46:24: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 18-02-2009 23:46:24: aaa: Replacing {app3} in 'http:{app3}' with '' 18-02-2009 23:46:24: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 18-02-2009 23:46:24: Update finished 18-02-2009 23:47:49: Update started with 1 application(s) 18-02-2009 23:47:49: aaa: Replacing {app} in '{app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe):0}' with '[url]http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe[/url]' 18-02-2009 23:47:49: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 18-02-2009 23:47:49: aaa: Replacing {app3} in 'http:{app3}' with '' 18-02-2009 23:47:49: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 18-02-2009 23:47:49: aaa: Replacing {app} in '{app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe):0}' with '[url]http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe[/url]' 18-02-2009 23:47:49: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 18-02-2009 23:47:49: aaa: Replacing {app3} in 'http:{app3}' with '' 18-02-2009 23:47:49: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 18-02-2009 23:47:49: Update finished But I haven't find the way to crack it either. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 I think I'm waiting for official version tomorrow =D Link to comment Share on other sites More sharing options...
appyface Posted February 19, 2009 Report Share Posted February 19, 2009 In 'standard' regex the ( ) groups are called 'backreferences', and are referred to positionally. The first group is referred to as \1 the second group \2 and so in. This is useful for example in a text editor, where you might have search and replace: Search: (findsomestring)(.*?)(findanotherstring) Replace with: \2\3\1 Before: findsomestring123456findanotherstring After: 123456findanotherstringfindsomestring Flo are you using tradtional backreferences here? Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 Now this is a challenge ! Mistery remains ...=) Link to comment Share on other sites More sharing options...
appyface Posted February 19, 2009 Report Share Posted February 19, 2009 I think I'm waiting for official version tomorrow =D Francisco, would you translate your error box to English, please? Is this the same or similar exception to what I'm experiencing? http://ketarin.canneverbe.com/forum/viewtopic.php?pid=934#p934 Link to comment Share on other sites More sharing options...
CybTekSol Posted February 19, 2009 Report Share Posted February 19, 2009 Francisco, would you translate your error box to English, please?I think it's a different issue (input string of characters with wrong format)... probably while FranciscoR was testing the [+Function "regex" (takes arguments "regular expression" and "index of match group" optionally)] features Flo has implemented. Link to comment Share on other sites More sharing options...
appyface Posted February 19, 2009 Report Share Posted February 19, 2009 (edited) Sounds like it to me too, but I didn't try to type all that in to babelfish, I thought perhaps it could be explained, more easily :-) Edited February 19, 2009 by appyface Link to comment Share on other sites More sharing options...
floele Posted February 19, 2009 Author Report Share Posted February 19, 2009 @FranciscoR: Can you reproduce that? If so, please use http://ketarin.canneverbe.com/downloads/Ketarin/Ketarin-debug.zip and show me the error message again. Regarding the groups: "0" is the full match, "1" is group 1, "2" is group 2 and so on. You'll see if you try. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 (edited) Francisco' date=' would you translate your error box to English, please?[/quote']I think it's a different issue (input string of characters with wrong format)... probably while FranciscoR was testing the [+Function "regex" (takes arguments "regular expression" and "index of match group" optionally)] features Flo has implemented. Yes, it's correct, Ketarin complaints of an ilegal format of regex function. Regarding the groups: "0" is the full match, "1" is group 1, "2" is group 2 and so on. You'll see if you try. That's what I did. 0,1( I didn't bother with 2 as 0,1 didn't work) as argument2, you have errors on my post #17. I am using the same example of the other thread. The first update on that list outputs an error because there's no argument2, right ? Variable app is "http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe" I used {app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe):1} {app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe):0} Log error message is identical, I don't see why {app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe):1} Didn't work, this one correct is it not ? And yes, I can reproduce it. Gimme a minute. I was using something like {app:regex:.*?id=\d\d\d\d.*?(%2F%2F.*?\.exe)%2F%2F.*?\.exe)} Edited February 19, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now