topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday December 12, 2025, 4:41 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 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 101next
376
DC Member Programs and Projects / Re: GDPR Blocking (PHP Edition)
« Last post by Tuxman on April 06, 2019, 11:13 AM »
In fact, the PHP manual is more descriptive than I could be, especially with its comments section.
377
DC Member Programs and Projects / Re: GDPR Blocking (PHP Edition)
« Last post by Tuxman on April 06, 2019, 09:49 AM »
"I'll write a README directly into the code so everyone knows what to do."
- Developers (inexperienced).
378
General Software Discussion / Re: youtube downloader?
« Last post by Tuxman on March 18, 2019, 03:04 PM »
^

Download a YouTube video from any web page.

I can't even.  :huh:
379
General Software Discussion / Re: youtube downloader?
« Last post by Tuxman on March 18, 2019, 02:22 PM »
youtube-dl and no browser window.
380
Living Room / Re: Is there any compact portable browser?
« Last post by Tuxman on March 04, 2019, 04:32 PM »
Was there more than 1?
381
Living Room / Re: Is there any compact portable browser?
« Last post by Tuxman on March 04, 2019, 03:38 PM »
Netsurf is fine.
382
General Software Discussion / Re: Password manager apps for browser and android
« Last post by Tuxman on February 21, 2019, 12:29 PM »
Keepass2Android (Smartphone), Kee (Firefox), KeePass (Windows).
383
DC Website Help and Extras / Re: Is DC attacked again?
« Last post by Tuxman on February 07, 2019, 02:20 PM »
You suck.
384
Don't you have a WordPress?  :-[
385
Here's the source code.  :)
386
Did you know that (some) mobile browsers support a new(ish) API to integrate your mobile operating system's sharing functions via JavaScript?

Well, here you go.

Screenshot_20190128-225056__01.jpg

Admin page:

fxWgN3K.png

Tested on Chrome on Android, Firefox won't work just yet. Enjoy or whatever.
Probably won't be hosted on WordPress.org (they require the shitty GPL license). Probably will be a NANY 2020 project.

The plug-in website may or may not stop being 404 some time.  :-[

Instructions:
1. Unzip the zip file into wp-content/plugins/.
2. Activate the plugin.
3. Donate 1 Million USD to me because I need it.

Good luck, have fun, whatever.
387
Version 2.0.0 is in the review queue, tracking this week's FOAAS updates.
Meanwhile, the add-on was moved to Mozilla's new Thunderbird add-on domain...

https://addons.thund.../qfo-quick-fuck-off/
388
I added a clarification above.  :D

was completely at odds with every other rename program I've used  ;D

I had not tested most of them, I guess. Sorry for breaking your habits?
389
OK, so if I've got this right, maybe, the full path is split into two parts only to be acted upon:

  • \test\test2\One\two\three\ozorroee\
  • ofile.text

?

Starting with the current version, more or less.

With -dr, the whole path is seen as one string (with or without the file's extension  ;)), regex_replace() is applied to it.
Without -dr, only the second part (= the file name, with or without the file's extension  ;)) will be processed. In fact, the regex_search() function will not even see the parent path anymore.

Code: C++ [Select]
  1. if (bRenameDirectories) {
  2.     // If the user has decided to not rename directories, why would we
  3.     // want to rename paths on the way?
  4.     out_path_stream << parent_path_stream.str();
  5. }

(Stop modifying your postings while I reply to them.  :mad: :-[)
390
Yup, "processed" is a new output in 1.3.0, it means that the rename_file() function had created the target directory already.  :)
(Because if I would just count that as "exists", it'd fail.)

Ha!
391
You and your cheeky test cases.
The expected outcome should be a simulation (-n).  :P

Your flags suggest that

\test\test2\One\two\three\ozorroee\ofile.text

should be renamed to

\test\test2\One\twd\three\ozorroee\ofile.txtxt

Or something.  :huh:

Surprise me: Which one have I forgot to log this time?
392
I fixed the somewhat anti-logical behavior of the -d flag with version 1.3.0. It should match the README now less badly.
393
I fixed the -E flag with version 1.2.2. That was a really dumb error.
394
The full path is handled as a string (and split between path and filename and, optionally, extension during processing). I admit that some features can be confusing even to me.  ;D

So here's how it is intended to work:

  • remv "a" "b":
    The current directory is processed, all sub-directories are ignored. Folders won't be touched at all.
  • remv -r "a" "b":
    The current directory and all of its sub-directories are processed. If a path matches, it will be renamed.
    - a.txt will be renamed to b.txt
    - a\some.txt will be renamed to b\some.txt fixed with 1.3.0
    - However, a\ alone won't be renamed to b\ if no files match.
  • remv -dr "a" "b":
    The current directory and all of its sub-directories are processed. If a path matches, it will be renamed.
    - a.txt will be renamed to b.txt
    - a\some.txt will be renamed to b\some.txt
    - a\ alone will also be renamed to b\ if no files match.

 :-[
395
Yes, it does - so you can match subfolders.  :)

I don't know if you noticed but it was suggesting directory name changes even though I hadn't specified the -d parameter.

If they are a part of the path to a regular file, yes. You cannot rename a whole directory without a file in it though.
I could make the non-d call skip subfolders, but then -d would be the same thing as not using -r, or am I mistaken?
396
General Software Discussion / Re: Microsoft to buy GitHub in $7.5B all-stock deal
« Last post by Tuxman on January 12, 2019, 12:07 PM »
Years after everyone who needed that had already joined the superior Bitbucket.  :)
397
Nice. I haven't really done much with the PowerShell yet.  :Thmbsup:
398
Hmm, that might be fixed with a simple call to create_directories before renaming, so the target directories will be created even if the original directories didn't match your regex. But that would lead to empty folders when the files from them have been moved.

I'm currently experimenting a bit:

> .\a.exe -Erv "remv" "romv"
 Renaming       '.\remv.hpp' to '.\romv.hpp' ...
   error [rn]: operation not permitted
 Renaming       '.\remv.cpp' to '.\romv.cpp' ...
   error [rn]: operation not permitted
 [STATS] Renamed 0 files (2 failed, 4 skipped).

> .\a.exe -rv "remv" "romv"
 Renaming       '.\remv.hpp' to '.\romv.hpp' ...
 Renaming       '.\remv.cpp' to '.\romv.cpp' ...
 [STATS] Renamed 2 files (0 failed, 4 skipped).

Something about the -E flag is fishy.  :huh:
I'll look into it tomorrow or on Monday (I'm visiting friends over the weekend). Attaching version 1.2.1 with a broken -E flag above for the time being.
399
"-vv" shows more stats indeed. This is intended. :)
OK, the newline is ugly, granted...
400
Version 1.2.0 should recurse backwards.  :-[
Pages: prev1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 101next