How do I stop vsvarsall.bat (VS2022) from changing my terminal font? - cmd

I just upgraded (finally) to MSVC 2022. I have a script I wrote (and have been using for years) that finds and triggers vsvarsall.bat for me at the Console Window / Terminal Window / whatever I’m using. (I spend a lot of time at the Cmd prompt.)
Besides moving everything (finally) into a subdirectory of C:\Program Files\, the latest incarnation of Microsoft’s tools changes my <explicative-deleted> font!
I like my font (Consolas! lol) with large text (me ol’ squinty eyes cannae read tiny things any more). I like my terminal window appearing where I’ve programmed it to go. I don’t need some major application telling me I’m wrong about any of it and changing all my carefully selected presets.
Alas, I haven’t yet been able to figure out where or how the font is getting scrubbed.
Does anyone know where MS’s latest vcvarsall.bat changes the font?
(And preferrably, does anyone know how to stop it?)

Perhaps this is due to the synchronization of settings?
I would also check the behaviour after using the ImportandExportSettings tool with own setup.

Related

Xcode files disappeared from Mac

Mostly I am just sad I guess. Yesterday I finished an iPhone app in Xcode 10.2.1, loaded it onto my phone (it works nearly perfectly), and shut down Xcode. The app is on my phone and working, but when I opened the Xcode again the code (viewcontroller, AppDelegate, and storyboards) have no data. To be clear, the folders and files are still there, but the code/data is not. I did not have time back up the finished version. Is it possible to retrieve these from my phone? Or is there some other place to look to find it? Or am I stuck rewriting it (there are some iterations so it is not starting over completely, but it still sucks).
thanks
Is it possible to retrieve these from my phone?
No, your phone contains only the compiled object code; it won't have any source code.
Or is there some other place to look to find it?
It's hard to imagine how the code could have simply disappeared, so one would think it's probably there somewhere. I wouldn't think that you could compile an app without saving the code, and if you saved your work then it certainly shouldn't just be gone. If you can remember even just a part of a phrase from the missing file(s), you can search your machine for files containing it. Use Spotlight or even just grep for that.
If you're unable to recover the file(s), then rewrite it as soon as you can while it's still fresh in your mind. And use the experience as a lesson. In the future you should do both of the following:
back up regularly: Use a backup system that works automatically. Apple's Time Machine works very well for this... all you need to do is plug in your backup disk and let the machine do it's thing.
use revision control: There are a lot of options here, of course, but git is free and private Github accounts are also free, so you can save your work remotely. If you don't know how to use revision control, learn -- it's an essential development skill.

Bind keys to functions in Microsoft Visual Basic for Applications, and save it in a file

I am an EMACS user who has to use Microsoft Word a lot. I typically spend 15 minutes binding ^a to beginning-of-line, ^f to next-char, etc. I'm not sure where these keybindings get saved, perhaps in my personal template? I would like to be able to easily move it to another computer.
A while ago it looked like this was saved in a file called Normal.dot. Sometimes when I moved Normal.dot to another computer the keybindings moved along, but other times they didn't. I couldn't figure out why or why not.
It seems to me that the "right" way to do this would be by saving it in a macro and loading that macro into each computer that I use. Surely there is an easy way to do it. I just don't know how.
Can somebody give me the steps? Programs like Microsoft Word used to come with thick manuals, but they don't anymore, and I'm not really sure where to start. I also recall that VBA wasn't supported on MacOS, but now it seems that it is.

TortoiseHg: Overlay icon issues (Windows)?

My TortoiseHg Windows explorer overlay icons are often in the wrong state for unknown reasons. In order to fix this I need to update icons on the folder, which I cant seem to do for multiple folders at once.
This is annoying as I am often working on a large number of projects at once and would like to be able to rely on TortoiseHg to help me figure out which projects need commits.
Does anyone else see the same issues? Has anyone figured anything out to eliminate or alleviate the problem?
I usually keep a command-line open at repository root to do a quick hg st or even better thg stat to get visual overview on what needs to be committed, if there's any. In addition thg commit allows you to cherry pick what you want to commit and see their diffs on the fly. Relying on icons and browsing folders one by one is cumbersome and prone to human errors.
Can you check this post out and see if it helps? There's a limit to the number of overlays Windows will support.
TortoiseSVN icons not showing up under Windows 7
I know this behaviour, but I don't mind / don't care.
I rarely look at the overlay icons at all, I have the Workbench open anyway and do everything in there.
It all depends on one's point of view.
For you, TortoiseHg's behaviour is annoying because you want to rely on the overlay icons.
The other extreme is (was?) TortoiseSvn. When I last used it (about two years ago), it had a resource-hogging background process that was updating all the icons all the time.
That was annoying for me at the time, because it visibly slowed down my machine (yes, you could change this somewhere in the settings, but the default setting was the resource-hogging one).
No matter how they do it, someone will always complain :-)
You can disable and enable the overlays in the Icon tab of the TortoiseHg Shell configuration, which worked for me

Compatibility between Mac and Windows MATLAB Gui

I am quite familiar with MATLAB, although not so much with writing GUIs in it. Now my boss gave me a MATLAB program with GUI which was developed on a Windows machine and runs there without problems. I copied it to my mac (osx 10.6.5 with MATLAB R2009b) using a USB memory stick and tried to work on the files on my computer.
When starting the GUI, some of the callbacks are executed, some not. I was able to open the figure file containing the GUI in GUIDE, but there cannot click on the callback fields in the Property inspector. Also some components are not shown in GUIDE which are visible when running the GUI. First I suspected it might be corrupted by changed newline characters, but learned that .fig files are binary, so this should not be the case. I opened the binary .fig file with a text editor and found the following ASCII line followed by binary data:
MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Tue Aug 10 17:11:57 2010
Are the GUIs created with MATLAB OS specific? Wouldn't this be really stupid?
I opened the files on the windows machine again and tried to export them or save them by specifying that I want them to be compatible with other operating systems but could not find an option like this.
Of course I researched this on google, and wondered that I did not really find something related. If an incompatibility exists, I think this would have been discussed, right?
Anyone knows about it or had the same problem before?
Hmmm, ok. Well, the answer is quite embarrassing but still bears some potential to learn from it. The folder that my boss gave me contained a lot of files and figures with similar names, like:
bla1.fig
bla.fig
bla0.fig
the simple problem was, the first time I opened the figure with GUIDE I opened figure bla.fig instead of bla1.fig. After this I always used the reopen function of GUIDE and did not see that it was always the wrong file. this caused the problems.
==> so there is no incompatibility between Mac and PC, although I wonder why the platform is written in the file then
==> it could have been a problem with backwards-compatibility as the original figure was created with MATLAB 5
==> as #Adrian and #Mikhail pointed out: it would be very very useful to use a Version control system in order to prevent to have hundreds of files with different numbers where most of them are of no use anymore
There seems to be some incompatibilities between different platforms and also between different versions, from my experience (MATLAB 5, 6, and 7) also -- I've encountered similar situations many times.
I am not exactly sure when the GUIDE became available with MATLAB -- I first noticed about it when I was using the first version of MATLAB 7. (It used to be very unstable at first, but is very usable now. For example, I vaguely remember a critical issue with MATLAB 7 Student version. You had to download a patch to make the GUIs work.)
Does your boss know how the *.fig file was created and in which MATLAB version? Can you open the *.fig on the old version of MATLAB and display the GUI correctly?
Some functions have possibly become obsolete since the earlier version of MATLAB that was used to create the figure, and may be causing some minor problem with it. If that is the case, you can troubleshoot it by checking all the error and warning messages that appear on the Command Window (or the MATLAB Console.)
Also, you should be able to load the *.fig files on the workplace using the following command from the Command Window, assuming that the files are in MATLAB's search path.
load your_file.fig -mat
You should then see a structure dataset, and see all of the figure properties, etc. in that structure.
You can use the information to create a new figure without the GUIDE (GUI Development Environment / Tool).
I recommend you writing your own GUI app. It's not that difficult, with/without the GUIDE.
I recently opened a site with some Tips on MATLAB Programming for beginners and intermediate users, and update it in my spare time. If you have any specific question about GUI building, I may (or may not) be able to provide answers there...

Is there a free/open source wget-like Windows program with graphical progress?

I am writing a WiX-based installer for our software. I need to download some non-trivial dependencies (like Sql Server Express 2008), then install them.
I could just use wget, but having the console open to show progress could be very confusing for non-technical people. Instead, I have been looking for a program that works just like wget, but shows its progress in a very simple window with the name of the file and the progress.
If I could show a small message that would be fantastic, but just having the GUI progress is the main thing.
I would even be interested in an existing program that almost does this, which I could recompile to add whatever I need. Since this is in an installer, it can't depend on .Net or anything else that needs installing to work.
Is anyone aware of such a program?
Why not to get wget sources and remove console output from there?
Since I did not find such a program, I wrote one. I used the latest libcurl available for Windows.
The code is not beautiful, and the program is not feature-complete, but it does what I need it to do: download from http:// while displaying a simple, attractive Window.
The titlebar is customizeable on the command-line, and I intend to allow window positioning too.
The project is hosted on google code: http://code.google.com/p/installerget/

Resources