Comments for NicJ.net https://nicj.net Home to Nic Jansma, a software developer at Akamai building high-performance websites, apps and open-source tools. Thu, 28 Mar 2024 04:05:02 +0000 hourly 1 https://wordpress.org/?v=5.5.3 Comment on MySQL: Converting an incorrect latin1 column to utf8 by DrFriendless https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1253386 Thu, 28 Mar 2024 04:05:02 +0000 http://nicj.net/?p=960#comment-1253386 Oh goodness, thank you from the future! My problem is that our LONGTEXT column uses latin1, but we ut UTF-8 into it. Every other mention of this problem on the internet swears that it’s not a thing, but it absolutely is. I need to do this:

ALTER TABLE thing MODIFY description BLOB(999999);
ALTER TABLE thing MODIFY description LONGTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Pendo Seven https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1252130 Sat, 12 Aug 2023 21:14:18 +0000 http://nicj.net/?p=1175#comment-1252130 Not sure what happened to my comment/question that I posted (as it’s now missing), but I’ve found a solution to it myself so you don’t have to answer unless you want to. FYI, my solution was to include the grouping number is “{” and “}”, e.g. instead of “$1000$2.jpg”, it would instead be “${1}000${2}.jpg” (the second pair isn’t required, but I used it this way to be consistent).

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Pendo Seven https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1252121 Sat, 12 Aug 2023 09:07:55 +0000 http://nicj.net/?p=1175#comment-1252121 Hi, I love this little app, and use it often, but have found an annoying situation I hope you have a solution for.

When using the command: k:\apps\rr.exe * “(\D+)(\d)\.jpg” “$1000$2.jpg”

To pad the filename with numbers to 4 digits with zeros, I’ve found that this works ok except when the placing the $1 at the start of any replacement filename.

I’ve tried many possible combinations of placing “^” and “$” and in the search filename text with no joy.

The below shows an example:

pic_1.jpg -> $10001.jpg
pic_2.jpg -> $10002.jpg
pic_3.jpg -> $10003.jpg
pic_4.jpg -> $10004.jpg
pic_5.jpg -> $10005.jpg
pic_6.jpg -> $10006.jpg
pic_7.jpg -> $10007.jpg
pic_8.jpg -> $10008.jpg
pic_9.jpg -> $10009.jpg

Is there a way to overcome this apparent bug?

]]>
Comment on Side Effects of Boomerang’s JavaScript Error Tracking by Nic https://nicj.net/side-effects-of-boomerangs-javascript-error-tracking/comment-page-1/#comment-1251612 Thu, 06 Jul 2023 14:12:19 +0000 https://nicj.net/?p=2432#comment-1251612 In reply to Jason.

Hi Jason!

Within your Shopify site, you will see a minified version of something like this:

https://akamai.github.io/boomerang/oss/tutorial-loader-snippet.html

To stop the snippet from loading shopify-boomerang-1.0.0.min.js, you may be able to set a flag via JavaScript that will trick the loader snippet to not load the main JavaScript.

For example:


window.BOOMR = { snippetExecuted: true };

However I’m also interested in understanding the issue you’re seeing with the body tag, I’ll reach out offine.

]]>
Comment on Side Effects of Boomerang’s JavaScript Error Tracking by Jason https://nicj.net/side-effects-of-boomerangs-javascript-error-tracking/comment-page-1/#comment-1251601 Wed, 05 Jul 2023 19:40:21 +0000 https://nicj.net/?p=2432#comment-1251601 Is there any way to stop the loading of the Boomerang code even if you do not have access to it? I have the script running in Shopify and it is creating an extra Body tag that is causing issues and I cant find the file or a way to turn it off.

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Rafael https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1251354 Tue, 23 May 2023 10:19:16 +0000 http://nicj.net/?p=960#comment-1251354 I think that “CAST(city as BINARY)” could be changed to “BINARY city” to be more clear

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Hendra https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1248624 Sat, 19 Mar 2022 02:38:33 +0000 http://nicj.net/?p=960#comment-1248624 Great!, Awesome.

Thank you so much Nic for creating the script, it really helps us on fixing the incorrect encoding on our 30GB database size of MySQL data.

Our Best Regards

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Nic https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1248392 Wed, 02 Feb 2022 00:54:43 +0000 http://nicj.net/?p=1175#comment-1248392 In reply to Pablo Rosatti.

One thing to remember is that the search and replacement patterns are regular expressions, and a “period” (.) in a regular expression matches any character.

So this command:

rr *.txt "..txt" "2.txt"

Really means “replace [anything][anything]txt” with “.txt”.

Instead, you’ll want to escape the period so it’s taken literally:

rr *.txt "\.\.txt" ".txt"

Then it should just replace files with “..txt” in the name.

My test examples:

RR.exe *.txt " .txt" ".txt"
name with space .txt -> name with space.txt

RR.exe *.txt "\..txt" ".txt"
name with double period at end..txt -> name with double period at end.txt

Hope that helps!

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Pablo Rosatti https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1248241 Mon, 06 Dec 2021 09:03:09 +0000 http://nicj.net/?p=1175#comment-1248241 To rename:
“file .ext” to “file.ext”
rr *.txt ” .txt” “.txt”
it works

To rename:
“file..ext” to “file.ext”
rr *.txt “..txt” “.txt”
It doesn’t work, I rename all the files.
What am I wrong?

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by justin https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1248225 Fri, 03 Dec 2021 21:15:37 +0000 http://nicj.net/?p=1175#comment-1248225 Just want to say I absolutely love this binary and thank you. I’ve written my own variants over the years; in bash, perl, python, and even cmd. But this is the easiest to just use without having to constantly remind myself of the parameters, argument order, direction of masking slashes etc.
P.s. I’ve always had a soft spot for this jscript polyglot cmd implementation of a regexp renamer also: https://github.com/Thdub/Optimize_NextGen/blob/master/Files/Utilities/JREPL.bat

]]>
Comment on ResourceTiming in Practice by Assessing loading performance in the field with Navigation Timing and Resource Timing https://nicj.net/resourcetiming-in-practice/comment-page-1/#comment-1248176 Sat, 20 Nov 2021 13:26:31 +0000 http://nicj.net/?p=1728#comment-1248176 […] ResourceTiming in Practice. […]

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Pandemic Journal, Day 477 - Read This Blog! https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1247905 Thu, 08 Jul 2021 04:31:35 +0000 http://nicj.net/?p=960#comment-1247905 […] characters (a change in MySQL’s default encoding, for those who care). I even found a tool to fix the problem – it had been written in 2011! I ran it, and now the start of yesterday’s post looks […]

]]>
Comment on Beaconing In Practice by Steve https://nicj.net/beaconing-in-practice/comment-page-1/#comment-1247883 Wed, 30 Jun 2021 08:01:37 +0000 https://nicj.net/?p=2745#comment-1247883 Thanks Nic, this was very useful. It’s a bit disappointing that at this stage of the game (2021) we still have to account for each browsers being more or less reliable at basic tasks.

]]>
Comment on Cumulative Layout Shift in Practice by Miranda Hawkins https://nicj.net/cumulative-layout-shift-in-practice/comment-page-1/#comment-1247784 Mon, 24 May 2021 15:03:30 +0000 https://nicj.net/?p=2538#comment-1247784 This is awesome! Thanks for contributing Nic and for sharing your knowledge.

]]>
Comment on Cumulative Layout Shift in Practice by Nic https://nicj.net/cumulative-layout-shift-in-practice/comment-page-1/#comment-1247742 Sat, 08 May 2021 16:45:12 +0000 https://nicj.net/?p=2538#comment-1247742 In reply to Nicolas Liénart.

Each layout shift will cause the browser to have to recalculate layout and paint the new view. So in my view layout shifts don’t really impact the rendering performance directly, rather, they cause more renders to happen.

]]>
Comment on Cumulative Layout Shift in Practice by Nicolas Liénart https://nicj.net/cumulative-layout-shift-in-practice/comment-page-1/#comment-1247741 Sat, 08 May 2021 12:50:13 +0000 https://nicj.net/?p=2538#comment-1247741 Hi Nic,
Thanks for this detailed view on CLS!
Do you know if it still has an impact on improving rendering performance for the device or is it solely a UX thing please?
“Cumulative Layout Shift is more of a user experience / web design metric than a web performance metric”
I am focusing on obsolescence mechanisms induced by poor performances

]]>
Comment on Cumulative Layout Shift in Practice by Nic https://nicj.net/cumulative-layout-shift-in-practice/comment-page-1/#comment-1247563 Wed, 10 Feb 2021 00:40:01 +0000 https://nicj.net/?p=2538#comment-1247563 In reply to viktor.

Hi Viktor!

One way to debug Layout Shifts is by using Chrome Developer Tools (Lighthouse Audits). When I ran a Performance Audit on your homepage for mobile for example, I see the page come in with the menu fully expanded (Home through About), then it later “collapses” into the three-bar as the first content comes in:

https://nicj.net/wp-content/uploads/2021/02/cls-mobile.png

This may be due to your CSS or JavaScript and how it loads? You can see the corresponding Layout Shifts when you load that Audit into the Performance tab, under “Experience” it shows all of the shifts.

]]>
Comment on Cumulative Layout Shift in Practice by viktor https://nicj.net/cumulative-layout-shift-in-practice/comment-page-1/#comment-1247553 Sun, 07 Feb 2021 01:14:31 +0000 https://nicj.net/?p=2538#comment-1247553 Hi,
I can’t figure out what is causing CLS on my website. Can you please take a look and let me know what I need to fix.

Here’s my current post
https://thediyplan.com/diy-floor-rocking-chair/
Thanks

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Nic https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1247544 Sun, 31 Jan 2021 18:24:13 +0000 http://nicj.net/?p=960#comment-1247544 In reply to John Seaber.

So awesome to hear!

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by John Seaber https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1247534 Wed, 27 Jan 2021 02:09:02 +0000 http://nicj.net/?p=960#comment-1247534 Thank you for this fantastic article! I manage a database with over 10 years of MySQL data, originally in latin1_swedish_ci. It sounds like we’ve had a similar experience with past encodings. It was like treasure finding your article during a MySQL 8 upgrade.

I modified and tested your script from GitHub to convert latin1_swedish_ci -> utf8mb4 and the transition went fairly well. I’ll share bugs on Github as requested. Just wanted to say thanks first!

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Nic https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1247493 Tue, 12 Jan 2021 18:19:56 +0000 http://nicj.net/?p=1175#comment-1247493 In reply to Carlos.

The file match is based on the regex, we’re not relying on the OS matching at all.

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Carlos https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1247492 Tue, 12 Jan 2021 16:59:20 +0000 http://nicj.net/?p=1175#comment-1247492 Nic, This tool is quite useful !!
I’ve one question, the “file match” part is also RegEx based or is just standard wildcard processing from operating system?
Kind regards

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Nic https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246757 Mon, 11 May 2020 14:57:50 +0000 http://nicj.net/?p=1175#comment-1246757 In reply to huynh hieu.

@huynh: I don’t think rename-regex is needed for that, but you should be able to do a loop in a batch file starting with the highest number, moving it forward by one, decrementing the number by one, moving that forward by one, etc.

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by huynh hieu https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246755 Mon, 11 May 2020 13:34:09 +0000 http://nicj.net/?p=1175#comment-1246755 Hi Nic!
I need to change filenames, such as “”somethingtest01”, “somethingtest02”, …. to “somethingtest02”, “somethingtest03” (increment by 1 or an other number step)
Could you help me

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Tom https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246725 Sat, 25 Apr 2020 17:20:17 +0000 http://nicj.net/?p=1175#comment-1246725 I _LOVE_ this tool and I use it all of the time. It saves me so much time and effort in file management.

Thank you VERY much!
Tom

]]>
Comment on How to deal with a WordPress wp-comments-post.php SPAM attack by Jason https://nicj.net/how-to-deal-with-a-wordpress-wp-comments-post-php-spam-attack/comment-page-1/#comment-1246714 Wed, 22 Apr 2020 04:41:29 +0000 http://nicj.net/?p=1328#comment-1246714 Actually I strongly don’t suggest renaming

wp-comments-posts.php to wp-comments-post.php.bak

because PHP will no longer parse wp-comments-posts.php.bak and the hackers can see the file contents of the PHP source; for WP it probably doesn’t matter too much (as it is opensource) but generally this is not good practice.

Much better to rename to-

wp-comment-posts.2020apr22.php

]]>
Comment on ResourceTiming in Practice by Nic https://nicj.net/resourcetiming-in-practice/comment-page-1/#comment-1246698 Sat, 18 Apr 2020 18:25:37 +0000 http://nicj.net/?p=1728#comment-1246698 In reply to Bogdan Ripa.

Nothing yet, unfortunately. There is discussion around a “FetchObserver” or another mechanism to listen for the “start” of resources.

There’s some discussion here: https://github.com/w3c/resource-timing/issues/137 and please include your feedback as it can help push issues forward!

]]>
Comment on ResourceTiming in Practice by Bogdan Ripa https://nicj.net/resourcetiming-in-practice/comment-page-1/#comment-1246687 Thu, 16 Apr 2020 10:23:09 +0000 http://nicj.net/?p=1728#comment-1246687 Hi there, nice article!

Quick question: Is there a way to get the list of resources that are “in progress”?

I’ve notices that the performance.getEntries() array populates when the transfer is done, but does not give any hints about the resources that are in-progress.

]]>
Comment on ResourceTiming in Practice by mark https://nicj.net/resourcetiming-in-practice/comment-page-1/#comment-1246579 Mon, 02 Mar 2020 10:20:22 +0000 http://nicj.net/?p=1728#comment-1246579 safari doesn’t support transferSize.

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Matteo https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246550 Mon, 17 Feb 2020 20:57:27 +0000 http://nicj.net/?p=1175#comment-1246550 Works! Thanks!

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Nic https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246547 Fri, 14 Feb 2020 13:17:56 +0000 http://nicj.net/?p=1175#comment-1246547 Hi @Matteo!

For UNC paths, can you “pushd” to them first so the folder is mapped as a local letter?

I’ve just verified that this command should work:

RR *.txt "([0-9]+)_([a-z]+)" "$2_$1" /p
123_xyz.txt -> xyz_123.txt (pretend)

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Matteo https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246516 Thu, 30 Jan 2020 12:39:34 +0000 http://nicj.net/?p=1175#comment-1246516 Hi Nic, I need your help again if you can.
I’d like to use your awesome tool in a net like “\\NAS\folder\” but windows command line doesn’t accept UNC directories. I tried to use Power shell but it doesn’t work properly.

I need to rename file like in your example: “123_xyz.txt” to “xyz_123.txt”.

.\RR.exe *.txt "([0-9]+)_([a-z]+)" "$2_$1" showed the help, so I modified in this:
.\RR.exe *.txt "(?[0-9]+)_(?[a-z]+)" "${1}_${2}" but the result is the following:
124_xyz.txt -> _.txt (pretend)

Where am I wrong?
Thank you very much

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Nic https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246446 Wed, 08 Jan 2020 14:04:09 +0000 http://nicj.net/?p=1175#comment-1246446 In reply to Peter.

Hi Peter! I hope to have some time soon to add that option (and others). I’ve filed some Github issues to track this: https://github.com/nicjansma/rename-regex/issues

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Peter https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246434 Tue, 07 Jan 2020 14:22:34 +0000 http://nicj.net/?p=1175#comment-1246434 As I read in comments that RR does not pay attention to Upper vs. Lower case.
I need this option to replace e.g. ” rel. ” by ” Rel. ” in filenames.

You have the recommendation to change this line 56 in Program.cs:

Hmm, I am not a programmer. If it that easy: could you provide a changed RR version WITH upper/lowercase attention?

Thank you
Peter

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Nic https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1246369 Sat, 07 Dec 2019 03:53:55 +0000 http://nicj.net/?p=960#comment-1246369 In reply to Luca.

@Luca I don’t fully understand the difference you’re pointing out.

The code is https://github.com/nicjansma/mysql-convert-latin1-to-utf8/blob/master/mysql-convert-latin1-to-utf8.php#L125


$colDefault = '';
if ($col->COLUMN_DEFAULT !== null) {
$colDefault = "DEFAULT '{$col->COLUMN_DEFAULT}'";
}

The above DEFAULT ' is a single apostrophe, not a double apostrophe? So this output doesn’t make sense, which has a double apostrophe in it:


MODIFY `grouplevel` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT ”all”,

Did something get changed when copied/pasted possibly?

Regardless, please open a Github issue if you think there’s an problem here:

https://github.com/nicjansma/mysql-convert-latin1-to-utf8/issues

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Nic https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246368 Sat, 07 Dec 2019 03:46:33 +0000 http://nicj.net/?p=1175#comment-1246368 In reply to Jim Anderson.

@Jim – Feel free to open an Issue on the Github project page or a Pull Request if you’re inclined!

https://github.com/nicjansma/rename-regex/

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Luca https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1246249 Thu, 17 Oct 2019 19:18:16 +0000 http://nicj.net/?p=960#comment-1246249 used also with cp1251 and works
but there’s an error here
$colDefault = ”;
if ($col->COLUMN_DEFAULT !== null) {
$colDefault = “DEFAULT ‘{$col->COLUMN_DEFAULT}'”;

MODIFY `grouplevel` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT ”all”,
MODIFY `start` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT ””,

!!! ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘all”,
MODIFY `start` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT ””,’ at line 6

result in this example NOT NULL DEFAULT ”all”,
should be NOT NULL DEFAULT ‘all’,
so i’ve removed apex here $colDefault = “DEFAULT {$col->COLUMN_DEFAULT}”;

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Jim Anderson https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1246194 Fri, 27 Sep 2019 00:01:21 +0000 http://nicj.net/?p=1175#comment-1246194 I love this tool! Quick and easy, the only thing lacking for me is the ability to also rename *folders* – is that something that could be added?

]]>
Comment on An Audit of Boomerang’s Performance by Nic https://nicj.net/an-audit-of-boomerangs-performance/comment-page-1/#comment-1246053 Tue, 13 Aug 2019 02:00:35 +0000 http://nicj.net/?p=2093#comment-1246053 In reply to Anonymous.

Unfortunately there isn’t a similar analysis for rum.js (which is EOL and not being actively worked on).

]]>
Comment on An Audit of Boomerang’s Performance by Anonymous https://nicj.net/an-audit-of-boomerangs-performance/comment-page-1/#comment-1246027 Mon, 05 Aug 2019 20:27:52 +0000 http://nicj.net/?p=2093#comment-1246027 Excellent article. Is there a similar analysis done for Akamai’s rum.js and if so what are the findings?

]]>
Comment on 3rdParty.io by Nic https://nicj.net/3rdparty-io/comment-page-1/#comment-1245757 Tue, 11 Jun 2019 17:27:33 +0000 https://nicj.net/?p=2385#comment-1245757 Nice idea Nikhil — can you get ahold of me via the Contact link above, and I can share some ways of getting that data today?

]]>
Comment on 3rdParty.io by Nikhil Pawar https://nicj.net/3rdparty-io/comment-page-1/#comment-1245716 Thu, 06 Jun 2019 18:41:48 +0000 https://nicj.net/?p=2385#comment-1245716 Hi Nic,

Thanks for the reply 🙂 Happy to see that you are open to allow API access

I was thinking about having an API that we give me the same result as the tool does but in JSON format.

To provide more context, if GTM is used to add scripts on production and is owned by the media team then it is difficult to control what is getting loaded on production.

I’m trying to use RUM data to proactively look for new third-party scripts. Nothing fancy though, during the first run system will list of all third-party scripts, use resource timing and/or 3rdParty-io data to rank the script. In the subsequent run, I should be able identify a new third-party script, rank it and alert if it is a risk to security or performance.

Thanks & Regards,
Nikhil

]]>
Comment on 3rdParty.io by Nic https://nicj.net/3rdparty-io/comment-page-1/#comment-1245715 Thu, 06 Jun 2019 12:24:14 +0000 https://nicj.net/?p=2385#comment-1245715 In reply to Nikhil Pawar.

Thanks Nikhil! I’m definitely open to having an API.

What kind of queries would you want?

]]>
Comment on 3rdParty.io by Nikhil Pawar https://nicj.net/3rdparty-io/comment-page-1/#comment-1245711 Thu, 06 Jun 2019 00:48:21 +0000 https://nicj.net/?p=2385#comment-1245711 Hi Nic,

This looks awesome! Great Job!!

is there a way to use this tool through REST API?

Thanks & Regards,
Nikhil Pawar

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Nic https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1245611 Wed, 01 May 2019 01:50:18 +0000 http://nicj.net/?p=960#comment-1245611 In reply to Per Olsen.

Interesting! I would assume it would work that way as well, but haven’t tested it. I’m using MediaWiki for a few sites as well, so I may have to try it out soon!

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by Nic https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1245610 Wed, 01 May 2019 01:49:09 +0000 http://nicj.net/?p=1175#comment-1245610 In reply to computerprep.

You could use something like this maybe, with a replacement pattern?

rr * “(.*set[0-9]+img[0-9]+).*” “$1” /p

That would remove everything after set#img#

]]>
Comment on MySQL: Converting an incorrect latin1 column to utf8 by Per Olsen https://nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/comment-page-1/#comment-1245606 Mon, 29 Apr 2019 07:05:54 +0000 http://nicj.net/?p=960#comment-1245606 Thanks for this Nic – I am using Media Wiki and they are actually abandoning utf8, and going binary. I assume that your scripts would work that way also… however do you see any reasons why such a conversion would create new challenges?
https://www.mediawiki.org/w/index.php?title=Topic:Uygrdvlsipucegw6&topic_showPostId=uyr7f40seatbtn0g#flow-post-uyr7f40seatbtn0g

]]>
Comment on Windows command-line regular expression renaming tool: RenameRegex by computerprep https://nicj.net/windows-command-line-regular-expression-renaming-tool-renameregex/comment-page-1/#comment-1245557 Thu, 18 Apr 2019 14:39:51 +0000 http://nicj.net/?p=1175#comment-1245557 This could fit my need perfectly!!! I’m just struggling to implement in my test folder before rolling out.

I have a filename pattern like .*set.*[0-9]img.*[0-9].*
To explain that in plain english (if my regex is off) the filenames start with any string of unknown characters (including periods, hyphens, commas, apostrophes, etc) followed by a specific pattern set#img# (where the number is between 1-4 digits long), followed by another string of unknown characters.

I need to remove all characters after the set#img# pattern in the middle. Any advice?

]]>
Comment on Backing up Windows computers to a Synology NAS via SSH and rsync by Nic https://nicj.net/backing-up-windows-computers-to-a-synology-nas-via-ssh-and-rsync/comment-page-1/#comment-1245505 Mon, 25 Mar 2019 01:57:53 +0000 http://nicj.net/?p=1090#comment-1245505 In reply to Kyle.

Hi Kyle!

You may need to install additional packages once Cygwin has been installed. In the version of Cygwin that I’m using, I have to run cygwin\setup-x86.exe.

Then search for package “ssh” and under the “Net” category you should find “openssh”.

Good luck!

]]>
Comment on Backing up Windows computers to a Synology NAS via SSH and rsync by Kyle https://nicj.net/backing-up-windows-computers-to-a-synology-nas-via-ssh-and-rsync/comment-page-1/#comment-1245487 Tue, 12 Mar 2019 13:40:00 +0000 http://nicj.net/?p=1090#comment-1245487 I’m having trouble finding the ssh.exe, ssh-keygen.exe and rsync.exe files in the cygwin /bin folder and anywhere on cygwin. Naturally that means I’m also struggling to find most of the dll files listed below those files as well.

If you maybe have a copy of these files hosted somewhere or could advise on where I might find them, that would be greatly appreciated. (I’m still learning all of this so forgive me if the answer is obvious)

]]>