topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday November 26, 2025, 8:06 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 16 17 18 19 20 [21] 22 23 24 25 26 ... 222next
501
Finished Programs / Re: DONE: Extracting All Image Links from a Booru Website
« Last post by skwire on August 06, 2017, 06:51 AM »
But unfortunately, Its sooooooo slow. It leeched 2MB in 2 minutes!

This is going to be due to your location and ISP speed since I was able to grab 30+ megs of images in two minutes even with just that single-threaded code.  Here's a modification that simply creates a text file of image links.  As Ath mentioned, you can comment out line 17 for a tiny speedup but I don't think it's going to make a noticeable difference.

Code: Autohotkey [Select]
  1. ;http://mspabooru.com/index.php?page=post&s=view&id=166035
  2. sSourceURL := "http://mspabooru.com/index.php?page=post&s=view&id="
  3. nPageStart := 1
  4. nPageEnd   := 161151
  5.  
  6. FileCreateDir, % A_ScriptDir . "\images"
  7.  
  8. Loop, % nPageEnd
  9. {
  10.     If ( A_Index < ( nPageStart - 1 ) )
  11.     {
  12.         Continue
  13.     }
  14.     Else
  15.     {
  16.         ; Update tray icon tooltip.
  17.         Menu, Tray, Tip, % "Processing URL number: " . A_Index
  18.  
  19.         ; Download HTML page.
  20.         URLDownloadToFile, % sSourceURL . A_Index, % A_ScriptDir . "\temp.html"
  21.  
  22.         ; Read in HTML source.
  23.         FileRead, myData, % A_ScriptDir . "\temp.html"
  24.  
  25.         ; Parse HTML source for image URLs.
  26.         Loop, Parse, myData, `n, `r
  27.         {
  28.             ; Match image URLs.
  29.             If ( RegExMatch( A_LoopField, "(https?:\/\/.*\.(?:png|jpg|jpeg|gif))", Match ) )
  30.             {
  31.                 ; Crack the URL into its parts.
  32.                 SplitPath, % Match1, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
  33.  
  34.                 ; Skip any images with "thumbnail" in the filename.
  35.                 If ! ( InStr( Match1, "thumbnail" ) OR Instr( Match1, "width" ) )
  36.                 {
  37.                     ; Download the image.
  38.                     ; URLDownloadToFile, % Match1, % A_ScriptDir . "\images\" . OutFileName
  39.  
  40.                     ; Create a list of links.
  41.                     FileAppend, % Match1 . "`r`n", % A_ScriptDir . "\ImageLinks.txt"
  42.                 }
  43.             }
  44.         }
  45.     }
  46. }
  47. MsgBox, Done!
502
Finished Programs / Re: DONE: Extracting All Image Links from a Booru Website
« Last post by skwire on August 05, 2017, 05:12 PM »
Here's an AutoHotkey example showing how to download all the images from the example site you gave:

Code: Autohotkey [Select]
  1. ;http://mspabooru.com/index.php?page=post&s=view&id=166035
  2. sSourceURL := "http://mspabooru.com/index.php?page=post&s=view&id="
  3. nPageStart := 1
  4. nPageEnd   := 161151
  5.  
  6. ; Create directory to dump images to.
  7. FileCreateDir, % A_ScriptDir . "\images"
  8.  
  9. Loop, % nPageEnd
  10. {
  11.     If ( A_Index < ( nPageStart - 1 ) )
  12.     {
  13.         Continue
  14.     }
  15.     Else
  16.     {
  17.         ; Update tray icon tooltip.
  18.         Menu, Tray, Tip, % "Processing URL number: " . A_Index
  19.        
  20.         ; Download HTML page.
  21.         URLDownloadToFile, % sSourceURL . A_Index, % A_ScriptDir . "\temp.html"
  22.        
  23.         ; Read in HTML source.
  24.         FileRead, myData, % A_ScriptDir . "\temp.html"
  25.        
  26.         ; Parse HTML source for image URLs.
  27.         Loop, Parse, myData, `n, `r
  28.         {
  29.             ; Match image URLs.  
  30.             If ( RegExMatch( A_LoopField, "(https?:\/\/.*\.(?:png|jpg|jpeg|gif))", Match ) )
  31.             {
  32.                 ; Crack the URL into its parts.
  33.                 SplitPath, % Match1, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
  34.                
  35.                 ; Skip any images with "thumbnail" in the filename.
  36.                 If ! InStr( Match1, "thumbnail" )
  37.                 {
  38.                     ; Download the image.
  39.                     URLDownloadToFile, % Match1, % A_ScriptDir . "\images\" . OutFileName
  40.                 }
  41.             }
  42.         }
  43.     }
  44. }
  45. MsgBox, Done!
503
Post New Requests Here / Re: Auto print Email Attachment
« Last post by skwire on August 05, 2017, 07:27 AM »
I downloaded getmail from the link you supplied, but immediately, Windoes Defender said it malicious and not to run it?  Any ideas if it is dodgy?

This is a false positive.  Anti-virus programs often flag email-related (especially commandline) programs as malicious as they are seen as potential spamming tools.  This particular program has been around forever and I've used it, along with Tim Charron's (same author) Grep, for many many years.
504
You're very welcome.  Please let us know if you need further help.   :Thmbsup:
505
At any rate, here's an AHK snippet demonstrating how to do it with process names.  This can be easily adapted to work with window titles instead.

Code: Autohotkey [Select]
  1.  
  2. sProgram1 := "notepad.exe"
  3. sProgram2 := "calc.exe"
  4. nSeconds  := 1
  5. SetTimer, Timer, % nSeconds * 1000
  6. Return
  7.  
  8. Timer:
  9. {
  10.     Process, Exist, % sProgram1
  11.     myProgram1PID := ErrorLevel
  12.     Process, Exist, % sProgram2
  13.     myProgram2PID := ErrorLevel
  14.    
  15.     If ( myProgram2PID )
  16.     {
  17.         Process, Close, % myProgram1PID
  18.     }
  19.     Else
  20.     {
  21.         If ( ! myProgram1PID )
  22.         {
  23.             Run, % sProgram1
  24.         }
  25.     }
  26. }
  27. Return
506
How did you want to match the program(s)?  Process name?  Window title?
507
Any hint?

From the emails I've received, it doesn't work with Windows Server 2012 so it's probably not too surprising that it doesn't work with Windows Server 2016, either.
508
Skwire Empire / Re: Release: sWeather (tray-based weather app)
« Last post by skwire on July 22, 2017, 04:22 PM »
I'm glad you find it useful, Contro.   :)

Santa Cruz de Tenerife

Beautiful part of the world.  =]   :Thmbsup:
509
Skwire Empire / Re: Release: sWeather (tray-based weather app)
« Last post by skwire on July 20, 2017, 04:15 PM »
Yeah, don't take me wrong.. i love the program.. it's great.. i am just sad that Yahoo is normally wrong on my area..
-NunoEspadinha (July 20, 2017, 04:13 PM)

No offense taken whatsoever.   :D  I'm sorry the data for your area is incorrect.   :mad:
510
Skwire Empire / Re: Release: sWeather (tray-based weather app)
« Last post by skwire on July 20, 2017, 12:44 PM »
but the last couple of months the service is quite stable and the forecasts are reasonably accurate.

Agreed.  Inaccuracies aside, it has been more stable in recent months.
511
Living Room / Re: Skype conversation window position
« Last post by skwire on July 19, 2017, 02:35 PM »
To start with, I'd make sure all the settings in the View menu are identical between the two of you.  It would also be helpful if you could provide screenshots of both.
512
Living Room / Re: Skype conversation window position
« Last post by skwire on July 19, 2017, 02:19 PM »
I struggle to find how to display conversations at the right of the camera view in Skype.
Mine is at the right, but my friend's is at the bottom! And I cannot seem to be able to find how to change it.

Details, details, details...

  • Skype on what platform, exactly?  PC?  Android?  iOS? 
  • If you're on the same platform as your friend, are you both running the exact same version?
513
Finished Programs / Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Last post by skwire on July 10, 2017, 09:45 AM »
I am hoping to skwire's solution working too.

In this case, I assume you mean Skrommel, right?
514
Post New Requests Here / Re: Code to add a ViewType in Kodi Krypton
« Last post by skwire on July 09, 2017, 11:31 PM »
There's this tutorial in Kodi. I'm too much of a noob to follow it though :P

The tutorial shows how to write an XML file which tells Kodi how to display the view described in the XML file.  The problem is that the XML is not code, per se.  It's a markup language.  That is, that XML file is not going to determine what Kodi displays when you press the back button.  That's handled within the actual codebase that powers Kodi .  In other words, you would need to either modify the Kodi codebase to do what you want or find a setting within Kodi that enables the behaviour you seek.  Does that make sense?

Now, that being said, I use Kodi and navigating back through various folders, etc, brings me back to the previously selected folder.  Of course, I might be misunderstanding you.
515
Living Room / Re: external hard drive backups
« Last post by skwire on July 09, 2017, 04:27 PM »
This is called a backup strategy. To execute such a backup strategy takes quite a lot of work and (self-)discipline.

Agreed.  FWIW, here's my current backup strategy:

  • Seven Windows computers comprising three desktop PCs, three laptops, and one server.  The server functions as a do-everything type of server: file, media, mail, FTP, etc.  Also, one ESXi server hosting all manner of VMs (mostly work-related but not all).
  • Four users: myself, my wife, and my two daughters.
  • Each of the desktop and laptop PCs have a mapped drive to the server.  Each user has their own user folder on the server to store important stuff.  Homework, photos, etc.
  • All, yes, all, files on the server are duplicated across at least two physical drives in the storage pool.  I use StableBit Drive Pool to pool the storage drives and handle the duplication.
  • Each of the seven Windows computers use the free Veeam Endpoint Backup software for nightly differential image backups to the server's storage pool.  Yes, even the server backs up its boot drive to the server's storage pool.  I keep the last five days of images for each computer.  These images are triple-duplicated within the pool.  Veeam makes it painless to browse any of the backups to restore files.  Veeam can also do a bare-metal and volume-level restores from any of the images.
  • Each of the seven Windows computers also use CrashPlan to back up their files to the cloud.  I have been a user of the CrashPlan Family Plan for years.  It's $150 per year and allows unlimited storage for up to ten computers.  It's also easy to browse and restore files from CrashPlan, albeit slower than local file restores from a Veeam image.

I'm happy to answer any questions about my setup so feel free to ask.
516
It seems 'Trusted vendor names' (SkipList) does not work with many entries. Try to copy-paste entries from my list (see attachment) & check config. Not sure what's happening. Looks like a bug.  :huh:

That list is currently saved as an INI entry which is typically limited to ~65,535 characters.  Do you really have need for such a long skip list?  If so, I can rework it so that setting uses a text file instead of the INI setting.
517
Here you go.

Website | Download
v1.0.2 - 2017-07-03
    + Added alerting options to up and down events.  (Thanks, webfork)
    * Moved "Enable host checking" option to the "Host" section.


Tray_Host_Checker_2017-07-03_030617[1].png
518
Thanks I have installed the app you specified and it is showing all fields properly.

Great to hear.  =]  Thank you for your patience on this.
519
I am searching for a proper csv file viewer and so my goal may be achieved.

http://www.nirsoft.net/utils/csv_file_view.html
520
Thanks for your suggestions and it is working perfectly and I am able to see file properties like codec, channels,size,length etc., but unable to see others like depth,height,framerate etc., which I don't want and I want mainly size and length, file name, path.

There won't be any data for the depth, height, and framerate fields because those are video specific fields.  You're working with audio files.

I am running Windows 8.1 pro. Upto now I ran with normal privileges and so it has not worked and by launching with administrative privileges it worked perfectly. Is it possible to always run with administrative privileges when I click shortcut in desktop.

Under Windows 7, right-click the EXE and choose Properties.  Go to the Compatibility tab and check the "Run this program as an administrator" box.  I'm assuming Windows 8 is similar.
 Alternatively, you can move the program to a non-UAC-protected folder.

When I export the content to csv file and open the  file in excel date modified column is not displayed properly.

This is almost certainly because Excel is converting the date into whatever date format you have set in Excel.

The path field for some files are not uploaded properly. I am providing the csv file generated as an attachment and so please examine the content especially path column and in that too examine first few rows and middle rows and at last bottom rows. The path field for bottom rows are uploaded properly and for some middle rows not uploaded properly.

Your paths look fine to me but I have nothing to compare them to.  I mean, they're your paths, right?  I don't know exactly what to expect them to look like.  It could be another case of Excel formatting the data.  The best thing to do would be to use a CSV file viewer that won't change the data.  You can use NirSoft's CSVFileView found here: http://www.nirsoft.n...s/csv_file_view.html  You could also simply look at the CSV file directly in a text editor (like Notepad) and see if the data is correct.

The main issue is is it possible to calculate total playback length in the csv file generated I mean sum the total length column. As I have transcoded a directory containing 1562 files to opus is it possible to compare csv files of source and destination directories regarding length column.

What you're asking for is beyond the scope of PlayTime.  That is, PlayTime offers no sort of comparison features like what you're describing.  The CSV export just exports the list contents.  What you do after that is your own business.
521
Hmmm...very strange.  Which operating system are you running?  Also, could you try running PlayTime with administrator rights?
522
Would you please post a screenshot of what you're seeing?
523
@shmuel1:  Thank you for the icons.  I'm glad the application is working for you.   ;)
@techidave: If you do try it out, let us know how you get on with it.   :Thmbsup:
524
Hi, rupeshforu3, and welcome to the DonationCoder site.

In playtime app I am unable to see any entries when I add a folder containing mp3 files but at status at the bottom I am able to see 1000 files loaded.

That's odd.  You should see something like this:

2017-06-25_103630.png

When I add a folder containing opus files I am unable to see anything. I have copied the mediainfo folder to program files which is extracted and added path to system settings.Can you suggest how to configure mediainfo in playtime app.

You need to add the opus extension to the audio extension list like this:

2017-06-25_104009.png
525
DC Gamer Club / Re: Steam Summer Sale 2017 - June 22 through July 5
« Last post by skwire on June 24, 2017, 09:36 PM »
I highly recommend the Sniper Elite series, which is now on sale. DC member Skwire and I have played the last few years of it cooperatively and it has been a hoot.

Man...we've had some times, eh?  LOL.  "Let's go to war..."

Dishonored 2 for $20 is a damn steal, too.  Get that without hesitation.
Pages: prev1 ... 16 17 18 19 20 [21] 22 23 24 25 26 ... 222next