Jump to content
Ketarin forum

shawn

Moderators
  • Posts

    1,181
  • Joined

  • Last visited

Everything posted by shawn

  1. Try the edited version above. It uses Google search (MS download search is now extremely flaky) and parses the new data from the current structure. Let me know if you have repeatable errors with anything specific.
  2. HSTS is still a draft. Not that it's not an important step forward, it's just not a standard. All the same, you can force SSL with any client using: RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  3. Sweet. We should be able to wrap this thru wget or something now to obtain file groups.
  4. It's not on the Wiki because the Wiki is relatively new, and edited by users here (that have the time to do so). To create a custom variable (of any kind) edit any app profile, click the "variables" button on the "Application" tab, click the "+" button in the bottom left, type "version" (or whatever you want to use as the variable name), click OK, and then use the features on that window to configure how the new variable is populated.
  5. No, I totally relate to this. Ketarin already has several event handlers - though they're called "Commands" in Ketarin terminology. Ketarin currently handles the following situations with custom commands: "before download", "after download", "global before updating an application", "global after updating an application", "global after updating all applications". What Martin is asking for is to add a couple more: "after download failure", "global after update failure".
  6. For FileHippo, the version is collected as {version}. You MUST NOT have your own variable of the same name declared, however, or it will not be available.
  7. It's related to the User-Agent header sent by Ketarin. Replace that setting in the app profile with the UA header from whatever browser you're using and you should see much closer results.
  8. That's one of the reasons I want to write a POST handler on one of my sites to process the data and then store it for display and processing. I haven't had the time yet, but this would essentially require setting up a variable within the app profile for the actual changelog data ({changelog}) and another as an activator ({pushed}). Then you setup your "after update" routine to "echo {pushed}", which effectively causes that variable to be populated. The {pushed} variable exists as a start/end request that has this as it's URL source: http://example.com/ketarinstuff/changes/?cat={category}&app={appname}&version={version}&changelog={urlencode:schangelog} The server would then populate that data into a database along with the timestamp, and return ONLY an "ok" or "oops" as the content of the response, enabling you to look in the echo logs for issues. It's on my "todo" list for "sooner" rather than "later". Thanks for the recommendations on N++, but I ALWAYS have it open (I do a lot of coding directly into it, and store my clients time there, too) so it would risk changing my own behavior -- and I don't like that kind of thing.
  9. This is why I store the changelog URL within the app profile and export that, as well as the app name, version and download URL, to my recent changes txt. This is what I use in my global "after updating an application" setting: echo {category} /// {appname} {version} /// {snotes} /// {schangelog} /// {swebsite}>> "Updates.txt" And this is what I use in my "after updating all applications" global setting: IF "%ProgramFiles(x86)%"=="" "%ProgramFiles%\Notepad++\notepad++.exe" "Updates.txt" IF NOT "%ProgramFiles(x86)%"=="" "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "Updates.txt" That makes sure that regardless of which system I use (32 bit or 64 bit), NPP opens up my "updates.txt" file with the recent changes listed.
  10. Batch won't work, since it's unescaped data. You'd have to pass it thru an escaping process to ensure that it's capable of being passed on a command line, and even then, if the length of the string + the full path to the current working directory exceeds 248 characters you get very inconsistent results. You'll be better off using an alternative method, such as C# to database, or storing the data itself as another variable within the app profile (and checking it out via an export of the app profile OR by directly thru db manipulation).
  11. It helps to know exactly what you're wanting to capture, but the flaw in your logic is an assumption of sequence. RegEx doesn't have explicit exclusion for a character sequence, only for distinct characters. So if you're trying to exclude the string "jre" you can't use [^jre] as this will only exclude the letters j OR r OR e. Adding the + after it will exclude any combination of those three for any length. Further, if you have "greedy" captures (the default) on either side of it, then it just has to capture any single letter at the beginning, then any NON-"jre" character, then any length of other characters. It's best, where possible, to use an explicit string sequence you WANT that will always appear in a true match between normal greedy captures. As so: [^"'=]+i-want-this[^"']+\.md5 Now that I've actually looked at the code for the JDK page I sent you in the other thread, you might want to use a capture for a portion of the javascript instead. There's some very distinct code in there that REALLY looks beneficial, as so: document.getElementById("winOffline64JDK").href = "/download/jdk6/6u27/promoted/b01/binaries/jdk-6u27-ea-bin-b01-windows-amd64-18_may_2011.exe"; I'd match that (assuming I wanted the "winOffline64JDK" version) with: "winOffline64JDK"\)\.href = "([^'"]+)" That'll extract this portion: /download/jdk6/6u27/promoted/b01/binaries/jdk-6u27-ea-bin-b01-windows-amd64-18_may_2011.exe Then in your "download" box you just need to build it as so: http://jdk6.java.net{myvariablename} ...assuming you captured the variable above as "myvariablename".
  12. Ooh, good idea, Tomorrow. Setting up an ext column now.
  13. Thanks for the heads up.
  14. And the easiest way is to parse for the complete md5 URL, and replace the extension with exe (assuming you want an executable installer).
  15. Too well. I spent over $1k this last month on tech specifically to address spam, and expect another $600 next month when I replace an outdated mailserver with another (far more "spamless") version. Not looking forward to the expenses, but am VERY happy with the results so far.
  16. Me, too -- as long as the site is actually intended to distribute files. If they're a "mom and pop" or a very small biz then it's likely it'll fail completely.
  17. Yes, I agree. And Flo, the new filters are making a HUGE difference. THANK YOU!
  18. It's best to start a new thread when you're asking about a different application.
  19. Actually, there are other changes as well. Sometimes the download/release appear before the slug, and sometimes there is a tag name that appears after the slug (like a brief subtitle). I had been trying to find a consistent method for pulling the info to be able to consistently parse it, but got distracted with that paid work stuff. As soon as I have a few hours to dig around with the Codeplex site I'll make it work the way it should.
  20. Necrox, have you opened a command prompt, switched to the Ketarin folder and run the command directly? I know on newer OSes (XP/Vista/7) the "start" command pushes the working directory to the default path - so that could be your issue. Just removing Start from your command could fix it. It could also be due to where it's happening (within a Ketarin event), but I would think that wouldn't be an issue with the SQLite locking fix implemented in the 1.6 branch.
  21. Hi, Flo! I notice you released 1.6 this week thru the Ketarin site...do you have a changelog anywhere, or is this it?
×
×
  • 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.