Reference

Ever learn something and need to be able to find it later? Post it here for quick searchable access in the future.

Posted At: 11/7/2022 11:08:40 AM
Posted By: Comfortably Anonymous
Viewed: 1819 times
0 Dislikes: 0
As of VSCode 1.69, it has an excellent three-pane merge tool on par with the GitKraken and Beyond Compare merge tools. Here's how to configure Hg to use it (In Linux anyway, for other OS's you will have to keep searching...)I'm pretty new to Mercurial, being totally used to Git and GitKraken, so I've been a little lost with handling merges as most Linux-based merge tools make no sense to me as far as understanding how to work with their UI. (kdiff, meld, vimdiff all are off on another planet as far as what I'm used to.)So happily I found this article (Using VS Code for merges in Mercurial) explaining just how to do that.It has additional info that you will find useful, but I wanted to capture the basics just in case the article goes away.Base changes needed in your ~/.hgrc file:[extensions] extdiff = [ui] merge = code [merge-tools] code.priority = 100 code.premerge = True code.args = --wait --merge $other $local $base $output [extdiff] cmd.vsd = code opts.vsd = --wait --diff
Posted At: 10/26/2022 3:19:02 PM
Posted By: Comfortably Anonymous
Viewed: 1050 times
0 Dislikes: 0
A little embarrassed that I did not know this, even though I have used PDFs for decades, and have always been frustrated with them because every time you re-open a PDF, you end up right at the first page of the document and have to try and remember where you were the last time. Really a pain when reading a long document or book that will take more than one sitting to get all the way thru.I've always looked for a way to "bookmark" the current page, just like you would in a book. But Adobe had other uses for the word "bookmark" when they created Adobe Reader. A "bookmark" to them is to create one of many shortcuts in their "bookmarks" list. Even worse, you cannot create one in the free version of Acrobat Reader. So that sucks.So how do you do this with the free version of Adobe Acrobat Reader?Well...It's embarrassingly simple, but this is all you have to do: Click on Edit, then Preferences, then Documents, then put a checkmark in for "Restore last view settings when reopening documents". Click OK.That's IT!!Scroll down to some page, close Reader, re-open, and VOILA - you are right at the page you were at when you closed the document.(Damn Adobe, that's some terrible User Experience there. That should be front-and-center. I can't think of anything more important in a book metaphor than how to mark your last page read. Normally, you use a bookmark with a physical book. but with a ...
Posted At: 12/23/2021 1:34:17 PM
Posted By: Comfortably Anonymous
Viewed: 1574 times
0 Dislikes: 0
For lowerCamelCase :SEARCH = (?-is)([a-zA-Z])([a-zA-Z]+)|(\b|_)[a-zA-Z](\b|_)|[^a-zA-Z\r\n]+ and REPLACE = \u\1\L\2 then : SEARCH = (?-is)([A-Z][a-z]+){2,} REPLACE = \l$0BEFORE Hey everyone - We all need to get together and see if we can come up with a solution to make sure we can't experience this so-called "problem" again. (THIS MEANS YOU 123BOB!!)AFTER heyEveryoneWeAllNeedToGetTogetherAndSeeIfWeCanComeUpWithASolutionToMakeSureWeCantExperienceThisSoCalledProblemAgainThisMeansYou123Bob