Jump to content
Ketarin forum

shawn

Moderators
  • Posts

    1,181
  • Joined

  • Last visited

Everything posted by shawn

  1. This particular template assumes you have a global variable named "root-soft" that's setup as the path where you want all your downloads to be stored. If that variable isn't assigned, it should be placing the files relative to (in the same folder or child folders of) wherever you have the Ketarin application running from.
  2. This should work: "http://sourceforge.net/projects/{sftag}/files/([vV]?[\d\.]+)/
  3. I can only get this to preserve formatting in copy & paste from a code block - and retain formatting (specifically, carriage returns and indentation) - in firefox and chrome, but have to manually select the entire code block first. Note to site visitors: IE is not your friend with copying code from these shared templates!
  4. I don't know what's up with the template, but the way it's selecting the filename is wrong. Each of those errors are not because your IP is banned, but because they're trying to download a folder (not the "/" at the end of the URL). SF url's can be obtained from the project homepage or the project "files" directory - which is a recursive request (one for the version, another for the file), but in any case, whatever this template is using to grab the value is wrong. For 7zcracker, this would be grabbing the version from here: http://sourceforge.net/projects/sevenzcracker/files/ Then getting the most recent filename from here: http://sourceforge.net/projects/sevenzcracker/files/V0.01/ The second URL is based on the first. While there are ways to get the SF promoted download on other pages, that pattern isn't always trustworthy as it's based on browser detection, so it really shouldn't be trusted alone.
  5. Is there a way to enable one-click copy for code to preserve formatting on here like happens with some other sites? Here's an example page with code on it (scroll down a bit and you'll find some sample HTML). Float over the code block and you'll get the action icons in the top right - the second one will copy the code and preserve formatting (line breaks + spacing). This type of behavior is critical for this forum.
  6. Which (code) file is this in? I'll look at the code and try to create a situation where it would apply, and if it doesn't happen, it can be ignored.
  7. I suspect it's because Ninite is designed to automatically disable any toolbars or other monetization from installing along with the app, so it kills 100% of any "potential" profit.
  8. Now I remember what I wanted to post here today! This from Ninite: http://blog.ninite.com/post/11703553766/piriform"Piriform’s CEO asked us to remove their apps, we’re working on fixing it. Sorry for any inconvenience. We’ll keep you updated here. Thanks!" One more reason why a distributed system like Ketarin is better than a packaged system like Ninite: as profiles are truly user-controlled and user-centric, we're not limited to situations like this.
  9. Mine works fine for me with over 40 apps. Sadly, for this behavior to work (automatic template update), the app profile has to have been created with a template that used a Guid value (see my Sourceforge.net template for an example). As long as it has a Guid attribute ON THE TEMPLATE when you import it, it'll prompt you to update any other templates based on that template the next time you import it if a change is detected.
  10. 403 is "forbidden", so it's likely either the referer (change this under "advanced settings" to "http://sourceforge.net/"), or the useragent (change this under "advanced settings" to "pycurl/7.18.2"), or your IP address was banned from the host you're connecting to. Make these two changes and you'll know for sure if it's just you, or if it's the settings.
  11. Thanks to the 2gb download fix in Ketarin 1.6.1 beta 2, it's now possible to download these large ISO's via Ketarin. The most current image - October 2011 - is 3.7gb, so expect the download to take some time. <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="048268d4-00ef-43c9-a13d-51ed3475b1b7"> <Category>Updates</Category> <WebsiteUrl /> <UserAgent /> <UserNotes /> <LastFileSize>0</LastFileSize> <LastFileDate xsi:nil="true" /> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>true</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>schangelog</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://support.microsoft.com/kb/913086</TextualContent> <Name>schangelog</Name> </UrlVariable> </value> </item> <item> <key> <string>swebsite</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://support.microsoft.com/kb/913086</TextualContent> <Name>swebsite</Name> </UrlVariable> </value> </item> <item> <key> <string>snotes</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent /> <Name>snotes</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>Windows-KB913086-([\d]+)\.iso</Regex> <Url>http://go.microsoft.com/fwlink/?LinkID=79879</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>sdownload</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>['"](http[^'"]+Windows-KB913086-{version}\.iso)['"]</Regex> <Url>http://go.microsoft.com/fwlink/?LinkID=79879</Url> <Name>sdownload</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <SourceType>FixedUrl</SourceType> <PreviousLocation /> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated xsi:nil="true" /> <TargetPath>C:\ISO\Windows Updates\{appname:regexreplace:([\s\t\r\n\-\\&\/]+):_}-{version}.{url:ext}</TargetPath> <FixedDownloadUrl>{sdownload}</FixedDownloadUrl> <Name>Microsoft Update ISO</Name> </ApplicationJob> </Jobs>
  12. This isn't a capturing regex: (?<!(version%20))(?<! )\d\.\d\.\d\.\d It's "matching" the text (blue) but it isn't CAPTURING the match that's desired (red). That requires a couple more para's, as so: (?<!(version%20))(?<! )(\d\.\d\.\d\.\d) Flo, I anticipate that change would likely cause problems, as it's not really how regex is intended. A "capture" isn't the same as a "match" and I don't think the difference should be muddled. If people are capable enough to use the system with regex, they should be encouraged to use a capture, not provide a lazy out for them - as that will almost assuredly result in more support requests trying to see why something that shouldnt match, is.
  13. Is anyone else having issues copying templates from code blocks? Here's an example template: https://ketarin.org/forum/topic/426-testing-a-new-cnet-downloadcom-template/ The carriage returns are being stripped out, so I can't simply copy & paste into Notepad, Notepad++ or other editors.
  14. Sweet. Several of my suggestions are here to play with! Thanks, Flo!
  15. Very, very nifty. Looks great. I can't believe I haven't visited the forum since the 9th!
  16. Appy, POST is NOT required for this scenario: http://neosmart.net/download.php?download&id=1 Thus, trying to force it into using POST is an exercise in futility. Further, even *IF* it were required, the current version of Ketarin doesn't have the ability to POST for the download URL. This is simply not an option, so no matter of munging THIS FORM would enable you to both POST the content AND download the file. It just isn't necessary, and it isn't even possible. The POST capabilities within Ketarin are necessary for other situations, however, such as obtaining download server names, obtaining a specific download key ot gathering other information which is USUALLY used in a GET (normal URL) operation. In some situations (again, NOT THIS ONE), the actual download link is a POST operation. Ketarin simply doesn't, yet, have the ability to address these situations, so a third party service like the one used in my Codeplex template is necessary.
  17. This is wrong: (?<=<div class="prose userinput".*?>).+?(?=\<\/div\>) The classes have changed to "desc prose", and I would also personally recommend changing it to this to be simpler and also trim unnecessary whitespace: <div class="desc prose".*?>\s*(.+?)\s*</div> And if you don't mind me saying so, this is another perfect example of where using a template would be ideal. The template would make updates to all 32 profiles to replace this simple regex, while also making it extremely easy to add another addon to your monitoring list. As far as the delays you'rs experiencing, I'm just not seeing it. HOWEVER, I did notice that this profile is using SSL, and I've seen about a dozen reports in forums, security blogs and from clients with SSL-related slowdowns/crashes over the last 3 days, and I suspect this is the case with you, as well. I personally haven't had any problems, but I use OpenDNS on all my hardware (love it!), and that's protected me from a number of different MITM attacks such as these DNS poisoning situations. Give it a shot and see if that resolves your problems. You MAY have to reboot for Ketarin to fully purge the DNS resolver cache (IE9+ does).
  18. The problem, Appy, is that while using POST is an option available, it's not always the *best* option available and it does NOT work when the download itself is behind the POST form. This is the reason why the Codeplex template I posted relies on a third party service for POST/GET conversion. Without that, they simply don't work at all.
  19. Many of the MS update ISO's are over 2gb. August 2011 is 3gb and April 2011 is 4gb. http://support.microsoft.com/kb/913086
  20. I've been logging my updates to a text file in the "after updating an application" command for something close to as long as I've been using Ketarin. One of my continued issues is that any command that included an ampersand (&) didn't actually take effect. And it's a security risk. I had no idea that the shell had an escape code for ampersands, but I discovered one just tonight and was able to use it in my commands to bypass this problem. YAY! The escape character is a caret (^), and can be used as so: echo {category:replace:&:^&} - {appname:replace:&:^&} {version:replace:&:^&}>updates.txt
  21. Sadly, this is the default bahavior for intelligent selection boxes. The easiest fix is to 'search' for the specific text you want to prefix, which will automatically select it for you. Alternatively, you can use SHIFT+arrows to expand or reduce the selection character by character, or CTRL+SHIFT+arrows to expand or reduce the selection word by word.
  22. This problem has essentially gone away over the last week or so. Around the 14th I was getting a dozen errors each time I ran an update. Sometime last week that went to one or two. Then it just stopped erring at all mid-week last week.
  23. This is pretty much what I used to test - a generic download URL to a consistent file. Ketarin is NOT sending the ETag or If-Modified-Since headers, so it's NOT receiving a 3xx response, but a 200 with the Content-Length and Last-Modified values that enable Ketarin to check it's db and discontinue the download if it's the same as what's coming down the wire. Simplest terms: while storing and sending the ETag or IMS would definitely be "best behavior", Ketarin is not doing that (see Updater.cs @ DoDownload), so it's not getting a 3xx response.
×
×
  • 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.