Jump to content
Ketarin forum

dutchclimber

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by dutchclimber

  1. As always, good job. Please include any of the stuff which was discussed here. I will leave the pdf on its current location for a couple more weeks. If any of you would like to have the originating word document, just drop me a line. Despite my well meant intentions, I have not been able to update the start of 'my' 'tutorial' recently as I have accepted a new job and spend most of my time in Dubai now. It just makes more sense to me if the tutorial is handled by someone more regular then I am. So long and thanks for all the fish, R
  2. Hi all, Swamped in work :-( so had no time to work on the manual. will get back asap. Take care R
  3. Thanks for the feedback all... I'll make a new version. Will take a couple of days as I will be travelling back to the lowlands this week. R
  4. Hi all, After using MadDog's mini tutorial on functions I wanted to know what other functions there are so I checked the sourcefile UrlVariable.cs and within the function ReplaceFunction I find a case statement with the following 'cases': empty regexreplace regex ext directory filename toupper tolower split trim trimend trimstart replace formatfilesize Can somebody comment if these indeed are the functions and all of them? If so, I will describe them in the tutorial/manual. R
  5. FranciscoR What do you mean with the red arrows? Are they meant as 'references to'?.. R
  6. Yep, I agree! Wiki seems to be the thing, word and pdf are just so 90's . I wanted to discuss it with you anyway on how to get this more webbased so if wiki is possible, then it's great. Let me know if you figured something out. It's still a bit of a moving target as I keep shoving things left, right up an down in the document. I am trying to keep it lean as well. I mean; we can't end up with a manual with more lines in it than flo has written codelines! As for the content, all please comment if I miss anything or if it's not clear/true what I write. The intro for instance is all based on my view on the problem Ketarin tackles, but the rest of us might see it differently. And again I would like to state that a lot of example are either directly 'borrowed' from what I found on the forum or at least derived from the examples. It's barely doable to keep track of who wrote or inspired what. Just hope that's understood. R
  7. Dank je Herrie :-D Bump for the topic as I have updated the manual (v 0.2)
  8. If you want a snowy wallpaper use this one (which is acutally my wallpaper) :-D
  9. After three days of rain here, it's finally sunny again and then you guys give me tons of homework!! Thanks nonetheless. First a good hike into the snowy altitudes, a BBQ afterwards and hopefully this evening some studying ;-) Cheers, R
  10. Hi all, Can someone please explain to me the post data mechanism as available in the variables window? When to use? How to use? I have been trying! I really did :-D Cheers! R
  11. Thanks for the feedback. Floele's gave some feedback as well and referred to kb/20 as well. and the 'kb-structure' made me think: work on this document until it is 'finished' and then turn every paragraph into an online page (ketarin kb-article). With a proper index it would read as a manual, but it could also be referenced by the posters on the forum when a newbie asks a question (i say this with modesty as I am new as well ) R off topic but to answer your question. It's not my website (I wrote the backend and am allowed to 'host' the odd file there). I'll pass on the feedback; i agree with you that she makes superb photos. There is one photo on there which is actually made by me: http://www.dutchorange.com/show.asp?action=image&item=2228
  12. Hi all, I have been playing with some ideas that I would like to share with you: I normally populate the necessary fields in the edit window mainly as follows: appplication name = a TEXT category = a TEXT the URL = {VARIABLE} save to file = a FORMULA (combination of variables with/without text my defaults for URL and save to file are ('stole them from the forum') 1) URL_download 2) target}\{category}\{appname:regexreplace:(\w+[\s]?\w+)(\s\(\w+\))?:$1}\{appname:replace: :_}_v{version:replace: :_}.{url:ext} which means I have to enter the appname (obviously), the category and then go to the variables window and start hacking away there to create version and URL_download. I assume most of us do it that way. My question is: why not combine the two windows like http://www.dutchorange.com/uploadmap/KetarinVariableForm.jpg[/img]? It is basically the edit window.. Just a bit bigger (as the variable window now is). Tabs 'advance settings' and 'commands' stay the same The application tab has the three NECESSARY fields (appname, url, destination) they are greenish here. the destination field is smart: ends on a '\', it's a folder, if not, it's a file the rest of the fields is defined by the user as we know it. Different fields have different needs as we already know: When in the current version you select a variable you have to select either: content from URL, Content from URL (regular expression) or Textual content I have drawn that in a red box Why not turn those radiobuttons into a dropdownbox so we can have the following 'types' and in analogy to the way it works now, if it changes, then the possible input fields change. 1) Content from URL 2) Content from URL (regular expression) 3) Textual content 4) Download site (which would result in two fields below; the site which is a Ketarin populated dropdownlist (e.g. filehippo) and the identifier (e.g. CDBurnerXP) 5) Dropdown placeholder (as discussed here) I left out global vars to keep it plain, but those could fit in as well R
  13. Despite the clear quick start http://cdburnerxp.se/help/kb/20 I still found it quite an experience getting to know Ketarin. The forum is brilliant and helps a lot but a lot of answers are scattered and often targeted at solving a specific issue and just briefly touching upon the underlying fundamentals. I created several examples for myself that might be of use for others as well and am considering making it public. I checked with floele and he is supporting this so my question to is: Who would like to have a peek and give feedback/comments or CONTRIBUTE? You can find it here R
  14. Hi all, Not sure if this is a bug or that I just get it wrong, but I tried the use of PAD files, as follows: Application name: CDburnerXP Download source URL: http://cdburnerxp.se/rss/padfile.xml Save in folder: c:\ketarin\download Advanced settings: Enabled is true Beta is default Rest is empty/unchecked It DOES download the file, but I still get a timeout Any ideas? R
  15. Try the regular expression stuff, then the fun can really begin :-P
  16. I am a twit... Floele has written it http://cdburnerxp.se/help/kb/20 already. R
  17. Narok, Welcome! 1st stab at it (blunt and straight forward): 1) press add application 2) press button variables 3) add variable (press the + button at the bottom left hand side 4) give the variable a name (i normally use 'version') 5) add ' http://www.internetinspiration.co.uk/roguefix.htm ' in the 'contents from URL link and press the 'Load' button 6) enter ' (current version' in the 'search within contents' field and press the find button the cursor will now be at the line which starts with <b>a)</b> Roguefix.bat (current version 2.243 updated 23rd April 09) <b><a href="downloads/roguefix_2.243.bat">download</a> 7) select the 'current version ' (mind the space at the end) part and press 'use selection as start' 8) select ' updated' and press the 'use selection as end' both selected parts should turn blue, the version should be in red now 9) press ok 10) in download URL enter http://www.internetinspiration.co.uk/downloads/roguefix_2.243.bat ' 11) replace the '2.243' by '{version} the result should be http://www.internetinspiration.co.uk/downloads/roguefix_{version}.bat 12) enter a location to save the file to in the save to file/save to folder field 13) press ok 14) update and be amazed! [EDIT] explanation (for the crucial steps you are probably looking for): step 5 enables the rule to load a particular page where it can 'scrape' the version information from in step 6 we tell the rule to look for 2 particular strings on that page. If a match is found, the text in between those 'anchors' is stored in a variable we have named 'version'. in step 10 and 11 we take the hardcoded URL and we soften it up by replacing the version number by the reference to the variable (in this case {version}. Therefor every time the developer updates the website with the latests version, you'll get it! Pitfalls... a) If they decide to change the text preceding the version number or after it. It will break. So choose your anchors carefully. the link is hardcoded and might change as well. There are more sophisticated ways to do this but it's a good way to get started [/EDIT] R
  18. At the risk of stating the obvious, but for a newbie (like me) it might save time.... Just realised that the category field takes the '\' character. It enables the use of 'subcategories' if you need that in your file/folder structure. I (ab)use the category variable for this. Example internet\browser e.g. firefox internet\ftp e.g. filezilla tools\system e.g. ketarin That way I can use it for the 'save file to' as a folder designator example Z:\{category}\program_v1.exe R
  19. 1: bunch of chars, maybe one or more whitespaces followed by a bunch of chars 2: whitespace, a '(', bunch of chars, ')' and all this on a 'maybe' basis I get it ! Thanks! R
  20. Just so I understand.... (.*) grabs (just about) anything in a 'greedy' fashion; parenthesis make it available as $1 \s is 'space \( is ( \w+ is one or more word characters \) is ) last 4 are within () so available as $2 ? Makes the preceding item $2 optional. Greedy, so the optional item is included in the match if possible. doesn't the first (.*) grab everything and ignore the rest? i tested this in Expresso and it seems to produce IN OUT TeamViewer (EN) TeamViewer (EN) Team Viewer (DE) Team Viewer (DE) TeamViewer TeamViewer Team Viewer Team Viewer So I just get what I started with. In that case a (.*) would have sufficed I suppose ;-) Sorry for turning this forum into a regex newbie school but it's just so damn promising once I get it.... Thanks for the patience. R
  21. we'll actually.... One of the reasons for me to look for something like Ketarin is the fact that I download most stuff from the original websites (as it seems safest to me). But it's a lot of work to stay updated with all these individual sites. As much as I like the idea of 1 or 2 central 'repositories' I am always a bit wary that these download sites put in extra stuff (in zip files etc....) and I am not 100% sure what their source is. (might just be my lack of research on this topic) R
  22. Situation 1: {AppName} = "TeamViewer (EN)" Situation 2: {AppName} = "Team Viewer (DE)" Situation 3: {AppName} = "TeamViewer" Situation 4: {AppName} = "Team Viewer" Now I would like to use {appname:regexreplace: :} To ged rid of the trailing " (xx)" with the result "TeamViewer" (as in 1 or 3) or "Team Viewer" (as in 2 or 4). I was hoping a {appname:regexreplace:(.*)(\s\(.*\)):$1} would suffice but that only works for 1 and 2 Any suggestions? R
  23. well thanks! Can't speak for FransiscoR, but I am impressed! The wife asked what the cursing was good for yesterday evening .... Reason is I have been studying your regeex thoroughly. Don't understand everything (yet) but the generic structure I've got in my fingers now (dutch expression) (more or less). Even figured out the anchor thing you mentioned. ... and meanwhile have adapted it for most of my downloads :-D. Thanks for pointing out Expresso... (anotherone to add to Ketarin!) R
  24. @ CybTekSol Errrrr. As a novice regex-er I would not call that easier! But it's good study material. Maybe the word 'elegant' is more appropriate. @FransiscoR Indeed the direction of my thoughts. Thank you both R
  25. Hi all, I am a frequent user of Personal Backup. http://personal-backup.rathlev-home.de/index-e.html One of these home grown hidden gems (backup)... Obviously I want to integrate this in Ketarin. Grabbed the version of the homepage (actually a framepage) (http)://personal-backup.rathlev-home.de/persback-e.html and currently the version comes out like this: 4.3.4.8 The file location is on (http)://personal-backup.rathlev-home.de/download/pb-setup-4.3.0408.exe So thanks to MadDog's post about functions I have come up with this: (http)://personal-backup.rathlev-home.de/download/pb-setup-{version:split:.:0}.{version:split:.:1}.{version:split:.:2}{version:split:.:3}.exe That however doesn't work because the version number 4.3.4.8 is represented as 4.3.0408 in the file's direct link. Now I could hardcode those 0-s in but I know this developer. He WILL go into double digits at some point. My first idea was to use regex-replace (because being new to and amazed by regex I think we might even solve worldpeace with it but I have no clue how. Question 1) can I integrate regex into functions? (documentation seems to suggest it) Question 2) can somebody help me solve this puzzle...? Cheers! R
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.