Michael A. Covington    Michael A. Covington, Ph.D.
Books by Michael Covington
Consulting Services
Previous months
About this notebook
Search site or Web

Daily Notebook

Popular topics on this page:
Visual Studio 2017 hangs at "Build started..."
Interoperating TortoiseSVN and TortoiseGit
Moon (Wargentin, Bailly, Schickard)
Many more...
This web site is protected by copyright law.
Reusing pictures or text requires permission from the author.

For more topics, scroll down, press Ctrl-F to search the page, or check previous months.

For the latest edition of this page at any time, use this link: www.covingtoninnovations.com/michael/blog


Interoperability of TortoiseSVN and TortoiseGit

Subversion (SVN) and Git are two source-code control systems for storing changing versions of computer programs as you develop them, with the ability to retrieve past versions and compare them for changes. Of the two, Subversion runs on your own server (I recommend CollabNet's free server software) but Git usually relies on GitHub, a cloud storage site.

What if you want to use both?

I was using Subversion together with TortoiseSVN, which is a Windows Explorer extension that makes it easy to manage files by right-clicking on them. TortoiseSVN even has icon overlays that put red or green marks on folder icons to tell you whether they have uncommitted changes.

To my delight, there's also TortoiseGit, which shares some code with TortoiseSVN and uses the same icon overlays (so if you've sorted out problems from having too many of them, the problems won't reappear).

Here are some notes on how I got them to work together well. The key problem is keeping each of them from putting much on the right-click menu of folders that belong to the other one. I don't want to do Git operations on SVN folders or vice versa.

(1) Get TortoiseSVN working the way you want it.

(2) Download and install the Git client software (Git proper, not TortoiseGit). Take the defaults. Uncheck "Windows Explorer Integration." If you previously installed it with that item checked, uninstall and reinstall.

By the way, Git gives you some handy things — not only command-line utilities, but also a UNIX-like bash shell for Windows (courtesy of MinGW) that I haven't explored, in which there are a lot of GNU utilities. There's a GUI for Git, which we'll ignore.

(3) Spend half an hour reading about how Git works. It's different from SVN. The biggest difference is that committing a change is a 2-step process: "commit" means stage the file for sending, and "push" means send it to the server. "Pull" means download changes and apply them, two steps that can be separated ("fetch" and "merge").

In Git, a "repository" is any folder that is managed by Git (and has a .git subfolder); in SVN, a "repository" is what resides on the server. Accordingly, the equivalent of an SVN Checkout operation is to "clone" an existing Git repository from the server to your PC.

(4) Download and install TortoiseGit.

(5) The unobvious part: Make settings in TortoiseSVN and TortoiseGit. You can get to each of them by right-clicking anywhere and choosing "TortoiseSVN" or "TortoiseGit" respectively, then "Settings."

What you want to do is limit what is in the topmost right-click menu, so that (apart from "TortoiseSVN" and "TortoiseGit") you will only see operations that are valid on the current folder (which may be an SVN folder, a Git folder, or neither).

In TortoiseSVN, choose Settings, Context Menu, and make sure only "Commit", "Update", and "Add" are checked. (They only show up when you right-click on or inside a TortoiseSVN folder.) All the other menu options are accessed under TortoiseSVN.

In TortoiseGit, choose Settings, Context Menu, and make sure only "Push," "Commit," and "Pull" are checked. (Again, they only show up when you right-click on a TortoiseGit folder, and all the other menu options are still there, under TortoiseGit.)

(6) Reboot.

Important note: In Subversion, a red icon overlay means there are changes that have not been sent to the server. In Git, a red icon overlay means there are changes that have not been committed, and it turns green when you commit them, whether or not you have pushed them to the server. Remember to push!


Visual Studio 2017 hangs at "Build started..."


In Visual Studio, you start to compile and run a program in debug mode, and Visual Studio hangs, unresponsive, with "Build started..." showing at the lower left corner.


Debug, Options, Debugging, General, uncheck "Enable diagnostic tools while debugging." You will no longer see memory and CPU usage graphs during execution.


(1) Similar problems have been reported with earlier versions of Visual Studio. Myself, I have only experienced it on one computer (an Azure virtual machine), not others.

(2) Updates to Visual Studio 2017 are frequent. Check Tools, Extensions and Updates..., (left column) Updates, Product Updates.

Curation of Internet advertising

TV stations and newspapers control their ads; some human being knows what is being advertised and can block ads that are unusually obnoxious or unsuitable for the context. Advertising on the Internet doesn't work that way. The ads on a web site are usually put there by a third party, unconnected with the web site owner, who pays for the privilege of putting anything there, even malware.

That may be about to change. An ad blocker may be about to be built into Google Chrome, currently the most popular web browsing software. It won't block all ads, only those that are violate certain standards, such as ads that make noise or pop up in front of what you are reading.

I'm sure one of their motives is to block the ones that claim to be Chrome updates or error messages!

What they forgot when they legalized cannabis

I'm against legalization of cannabis; I think it's not as safe as most people think. But given that some localities are legalizing it, I see something big that's missing: standardization of strength.

Alcoholic beverages are required to be labeled with their alcohol content. Why not label cannabis products with their THC concentration?

I know this would make manufacturing a lot more expensive, but it would also reduce a hazard. Cannabis overdoses aren't fatal, but they are certainly unwelcome and can be costly, and there's a steady stream of reports of them out of Colorado.

Admittedly this leaves open the issue of other cannabinoids. As I said, I don't think the stuff is safe enough for recreational use. Medicinal use is a different thing — but not as a smokescreen for recreational use. If it's medicine it ought to be marketed like medicine, not as a recreational product with a nudge-nudge-wink-wink.

And yes, I did notice the date of today's entry.

[Update:] Although I don't have the details, I'm told some kind of strength labeling has finally been adopted in Colorado. But I also heard a Coloradan pointing out that there is a serious problem with secondhand marijuana smoke — people don't want to be drugged against their will! I still think the legalization of cannabis was poorly thought out and poorly implemented.

The life of a linguist

I just had a funny experience in an electronics forum. Someone posted a picture of an unidentified piece of equipment and said, "All that I can find about this on the Internet is in German."

So I said, "Point me to the German page and I'll read it."

So he did. It's a picture of the same equipment, and under it, the words, in German, "I am looking for someone who can tell me what this piece of equipment is."

Forgotten, and deservedly so

Sharon showed me some of the BBC "Father Brown" episodes that are set in the 1950s, when Fr. Brown is older and has several regular sidekicks.

I'm impressed by the smoke-free or nearly smoke-free pubs. That's an obvious anachronism, but it must have made the series easier to film. A real pub in the 1950s or even the 1970s was a very smoky place.

Then it struck me: Many of today's adults, including smokers, have never experienced a really foul-smelling smoke-filled room such as were common up to 1975 or so — a room in which people have been smoking constantly all day for years, without adequate ventilation, so the dominant smell is not burning tobacco but something worse, almost sewer-like.

Not only pubs and bars but also offices used to be like that. My mother worked in such an office in the 1960s. The last one I encountered was at Connecticut Bank and Trust around 1980, and I changed bank branches and wrote them a letter telling them why.

Those are a thing of the past, not only because of indoor smoking bans in the 1990s (spurred by convincing evidence that secondhand smoke is hazardous), but also because of improvements in air conditioning that took place a good bit earlier.

And now they're forgotten, just as the stench of Victorian city life has been forgotten. Most of us, when reading Sherlock Holmes, do not think about what Baker Street smelled like. And that is a good thing.


Jupiter, Europa, and Europa's shadow

On Easter evening (April 16), Jupiter's satellite Europa passed in front of the planet and cast its shadow on it. Here's the best of several pictures I took. 8-inch telescope, 3x extender, Canon 60Da in movie crop mode, same as for several of the Jupiter pictures below.



Jupiter again

Another image of Jupiter with the 8-inch, same equipment and technique as the one below (scroll down). This is the kind of quality I can get reliably when Jupiter is as close to the earth as it is now.

You can see the Great Red Spot peeping around the edge at the lower left.

Lenovo, le vieux: Back to the old

Although others have ordered the same make and model and gotten good results, the Lenovo Z50 that I bought from Microsoft has had to go back for a refund. It has several symptoms of unreliable hardware, including a touchpad and Wi-Fi adapter that behave erratically. It may have gotten banged up in transit. I've gone back to my 2011 Lenovo Z570, which — with newly replaced keyboard, touchpad, and hard disk — is holding up fine.


Jupiter with the 8-inch

Here's Jupiter again, same technique as the one below, but with my Celestron 8 EdgeHD telescope and steadier air. Best 33% of about 4100 video frames.


Jupiter with the 5-inch

My vintage-1980 Celestron 5 (which had a major optical reworking in the early 1990s and now has a coated corrector plate) continues to serve me well. When the air is unsteady, it can give a sharper image than larger telescope. So it is that on the evening of April 9, around midnight EDT, I took the picture of Io, Jupiter, and Europa that you see here.

I used a Meade ×3 telecentric converter ahead of my Canon 60Da, which functioned as a video camera in "movie crop" mode, which means it used the full resolution of a small area in the middle of the sensor. (Most video modes — all on newer DSLRs — downsample their images to lower resolution because multi-megapixel video files would be too big and too slow to handle.) The picture is a stack of the best 50% of about 3600 video frames, aligned with AutoStakkert and sharpened with RegiStax 6.

Down south on the moon

Last night I also got a good view of the southern region of the Moon, south and (selenographic) west of the crater Tycho. These were taken with the same equipment, leaving out the ×3 converter, so the image scale is one third as big.

Here you see the region from the dramatic crater Bailly (on the right) to the lava-filled crater Wargentin (the one that doesn't seem to have been hollowed out like the others) at the far left:

And here you see a wider field whose most conspicuous feature is the large crater Schickard:


Who's right, Tolkien or Star Wars?

Today I want to give my non-Christian readers an important taste of what it is like to be a Christian. The following is reprinted, with his permission, from a paper recently presented by my good friend and mentor Donald Williams.

"The thought pierced [Sam] that in the end the Shadow was only a small and passing thing; there was light and high beauty forever beyond its reach."

The Lord of the Rings is not just a story of Good versus Evil. It is a story in which good and evil are opposed, but they are not equal. They are not just the light and dark "sides" of the same Force, as in the Star Wars universe. The Shadow which oppresses us and seems invincible is in the larger scheme only a small and passing thing. Final victory is forever beyond its reach, just as the clouds billowing from Mount Doom could never rise above the atmosphere to really put out a star in the heavens. The star and its light will remain when the wind has blown all of Sauron's gloom away. The star wins! Symbolically, Good wins. No wonder Sam feels encouraged.

How can this be so? In a naturalistic universe such a claim would be meaningless because good and evil are only subjective human perspectives and no finite human perspective can ever be the final word about anything. In a universe that was "spiritual" but not theistic, i.e., a pantheistic world like that of Star Wars, the claim would be false. Neither Good nor Evil can be ultimate there because both are merely aspects of the One reality that is all-encompassing. There can be no final victory for either, ever, because only a Sith deals in absolutes.

Only in a theistic universe, a universe created by a God very like the God of the Bible, can the thought that comes to Sam be meaningful and true. In that world, goodness is not arbitrary but is rooted in the character of the creator God. Evil arises through the abuse of the free will God has granted to his higher creatures and is tolerated for a while as the price of their significance. But it is derivative, not original, and is thus doomed to eventual defeat because God as the creator is the greatest Power that is or can be. Thus the ultimate triumph of Good is guaranteed by the very nature of the world as created and its relationship to its creator.

I wish you all a blessed Palm Sunday. — M.C.

Why should integers have all the fun?

If what you are looking for is not here, please look at previous months.