Run VSCode with arguments in MacOS - macos

VScode has an perfomance issue on my MacOS (actually hackintosh) where the FPS of Scrolling and Typing is so low (around 20fps I guess) and it's bothering me but with this arguments, it lessen the problem on performance
code --force-device-scale-factor=2 --disable-gpu
But it only applies when launching the VSCode using the terminal. Now I want to apply those options when just launching the VSCode by opening/click the Application.

Sorry for not answering question directly but...
Are you sure that you need to pass this flag for VSCode running properly? I was using two Hackintoshes in the past and now I'm using M1-based Mac - if you use computer with AMD you should go into AMD-OSX wiki and use correct patches. If you use macOS on old laptop like Thinkpad X220/X230 the electron apps like VSCode or discord can run bit slowly.
Please also test if you got graphical acceleration and if you're using OpenCore, it can fix problems that Clover or ready macOS EFI files can give you.

Related

Unable to uninstall app consuming lot of memory

I am using MacBook Air with Catalina OS. When I hit top command it shows an app Electron consuming about 50% RAM.
I tried uninstalling it but can't find in application list. I have not installed this Electron app explicitly and don't know how it came on my machine.
How to uninstall this as I am not using it?
Top command output:
A quick search shows that Electron is a framework on which google chrome (to name one) runs. So you cant really uninstall it, however you could try, closing a few chrome windows or tabs. A blog gives a solution to this issue by replacing Electron apps as a whole (like using safari instead of chrome), which is not an option for everyone but is worth considering.
https://medium.com/macoclock/5-apps-that-eat-your-ram-and-how-to-replace-them-91f9f856cd66
Personally my advice would be to upgrade to Mac OS Big Sur(if your mac is supported) as I experience some performance increase and found that it was generally more optimised.

Can't use software 'rosetta' rough set tool on windows 10

I just downloaded and tried to install the 'Rosetta' rough sets tool on my laptop with OS Windows 10, but I can't. And after I search, it seems only compatible for Windows 98 / XP. But the problem I saw in the video tutorial is that anyone can run it on an OS that looks like that. Does anyone know of a solution to being able to use Rosetta on Windows 10?
Error message when I install Rosetta
I have just solved this problem after many days of googling and trying various ways. I use the "Run programs made for previous versions of Windows" feature in the control panel, then troubleshoot. I have also written down the step I did on that, and I uploaded in my medium story, but in "Bahasa Indonesia". So if you want to read it, you can translate it into English first to understand.
The medium link below:
https://medium.com/#andini.pratiwi/tidak-bisa-install-software-old-version-karena-tidak-compatible-dengan-os-windows-10-solusinya-1d8820c71572

Unable to install Xcode 8.1 on my Windows 10 computer

I've been trying to download Xcode but when I open it nothing happens.
Xcode_8.1.xip
Do I need to us using a Mac to be programming for iOS? I am currently using Windows 10.
Simply, yes, you need to have a Mac, or some other macOS running computer to run Xcode. But...
There is a way to run Xcode on Windows, however it's a bit of work. You can follow a tutorial on the internet like this one to get Xcode working on Windows.
Let it be known that even though Xcode will run on Windows using this, it is definitely not good in quality compared to on a Mac, as there will be lag and unnecessary difficulties that wouldn't be there on Mac.

OSX Lion - iSight camera terminal usage triggers wake from display sleep?

I have 3 Macs - a MacBook Pro 15", MacBook Pro 13" & MacBook Air 11".
The 15" stays home all the time, the other 2 are used for mobile usage, so I want to use the 15" for remote video capture or snapshots when I'm not home. I've been using a command-line tool called "imagesnap" which works great from Terminal (and via SSH) and allows me to set up batch files that run in the background.
However, I have a strange issue where usage of the tool triggers the 15" to wake from display sleep but neither of the other 2 Macs display this behavior. I don't want to use any more power than necessary so this is rather annoying.
I'm not interested in debgugging the imagesnap tool itself, I don't think that's the issue. What I want to figure out, though, is what is the best way to determine why one Mac is behaving one way while the other 2 are behaving another? I've looked at the power settings and can't figure out why the 15" display turns on a moment after I snap an image but the other 2 don't - the settings are pretty much identical. I've tried to also run similar configurations of running applications.
Is there something in the log files I can look into? A running process? A configuration difference to compare? Or, in case that doesn't solve it, is there a way to suppress the system from waking the display immediately after snapping an image from the webcam?
you could try checking your settings with pmset -g in terminal because you have more control there. you might have already solved this one since it's been a year.

Writing code for a Mac using Lazarus

I have done a little work on lazarus' free pascal. So when a client asked me to write an application for a mac, after the initial, "it can't be done" stage. (followed by an asp.net maybe stage) i thought about writing it using lazarus.
Question is. I have only a virtual machine running mac OSX, this means that i do not really want to develop on the mac. However, i just cannot seem to get the applications that i have written in lazarus on windows to work on the mac. I have tried the deployment using the Lazarus Wiki and the MACOS folder is empty and so when i put it on the mac it doesn't run the application.
What is the best way of doing this or am i barking up the wrong tree?
It seems you want to do cross-compiling, which is theoretically possible, but may not be practical, for the reasons mentioned by Marco above.
As an alternative, you could install XCode, FreePascal, and Lazarus on a MacOX machine. You could still do your development and some testing on Windows/Linux. When you hit a certain milestone, you can copy your source code to the Mac and compile your application to test and give to the user.
Even if it were possible to easily cross-compile, there some minor differences between platforms, so (especially if it's a GUI app), you would want to test it on an actual MacOS box before giving it to the client.
I've taken the route described by Noah - and I was incredibly surprised that after about three weeks development on Windows, it took about 10 minutes to get the application running on the Mac.
My route was to install Xcode 4.3 on an old Mac Mini running snow leopard, then install Lazarus using the fink version as described here. This took a while but was done in an evening.
Then I just copied my folder across to the Mac, opened the lpi on the Mac, compiled it. It failed so I removed a windows references, recompiled, and it was working. I was truly amazed.
What linker and assembler do you use to generate binaries? To my best knowledge the linker for recent OS X versions is not available in source.
Afaik what you want (crosscompiling to Mac) is not possible for recent versions (and I've done it for PowerPC myself in the past).
The easiest is to use the Unix "file" command on the binary to see what is generated, and make sure it reads something with "MachO" in it. Easiest is if you have a Linux install (where this command is pretty standard), but versions can be found for windows too (cygwin, mingw and 3rd party)

Resources