[Solved] C++ programs on Mac OS

A default macOS installation will include something that pretends to be gcc but that’s just a legacy concern so that portable programs will properly detect a compiler when you do a source install with the usual ./configure && make && make install or use a package manager like Homebrew. Xcode used to use gcc as … Read more

[Solved] Interpose C struct function pointer

If I understand correctly, you want all calls to sub (or rather _Z3subP7AStructii) to actually be calling your _sub function instead? The problem is that when the “client” calls some_astruct->sub(…) it doesn’t actually call _Z3subP7AStructii directly, and therefore your _sub function won’t be called. In other words, the “client” doesn’t have a call to _Z3subP7AStructii, … Read more

[Solved] Can i install Mac system in Windows? [closed]

Yes you definitely can. It’s possible with both VirtualBox and VMWare Player. Google around, there’s work to do. It’s been my experience that VirtualBox has some issues (e.g. clicking ‘About This Mac’ causes a logout). In both cases you won’t have accelerated graphics. And yes you can any run XCode. I went with VMWare Player, … Read more

[Solved] How to add pthreads to MAMP PRO PHP

This question was an XY problem and it didn’t deserve so many downvotes. The real problem how to perform a long running task while returning a response to the client so they don’t feel the app is slow The solution Using PHP-FPM and function fastcgi_finish_request Example <?php // This is the output that we return … Read more

[Solved] Can anyone help fix my code [closed]

I don’t know the OSX code – however, it looks to be that you have this: Graphics g = bs.getDrawGraphics(); g.drawImage(img, 0, 0, WIDTH, HEIGHT, null); g.dispose(); bs.show(); .. sitting outside any method – it doesn’t appear to be wrapped in anything… I would advise that you start from the top and make sure you … Read more

[Solved] Too many arguments to function call, What do I do?

In your function definition float remainingAngle(float answer) the function remainingAngle() accepts one parameter. OTOH, in your function call remainingAngle(angleA,angleB); you’re passing two arguments. The supplied argument number and type should match with the parameter list in function definition. That said, your code is wrong. Point 1. Your local variables will shadow the global ones. Maybe … Read more

[Solved] Eclipse and R on Mac [closed]

The StatET package for Eclipse works great on a Mac. Go to StatET and follow his installation instructions. Sometimes it can be a little tricky to set up once the package is installed in Eclipse. There are several cheat sheets in Eclipse to assist with the setup. Look for them under Help->Cheat Sheets in Eclipse. … Read more

[Solved] Safe to delete these files? (sockets.log & libpeerconnection.log) [closed]

They’re both log files made for debugging purposes. Google Chrome/Chromium makes the libpeerconnection.log (https://superuser.com/questions/627903/what-is-the-file-libpeerconnection-log) and the sockets.log one is made by uTorrent (https://discussions.apple.com/message/20543713). They can both be deleted with no problems — just be aware that the programs that made them might keep remaking them. 1 solved Safe to delete these files? (sockets.log & libpeerconnection.log) … Read more

[Solved] Programmatically show the desktop?

This will hide all other applications than the sender. -[NSWorkspace hideOtherApplications] Link to documentation: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html#//apple_ref/doc/uid/20000391-hideOtherApplications 0 solved Programmatically show the desktop?