osx-lion

Not able to open a process in authorization plugin in swift

不想你离开。 提交于 2021-02-11 17:41:23
问题 I am trying to open a cocoa GUI application from authorization plugin which runs during login. I have placed the application in /Library/Application Support/MyFolder/Example.app . I am using below environment and code to open the application. Environment OSX: 10.14.5 (Mojave) Xcode: 11.2.1 Swift: 4.2 Code let task = Process.init() task.launchPath = "/Library/Application Support/MyFolder/Example.app/Contents/MacOS/Example" task.arguments = ["Hi", "Hello"] task.launch() task.waitUntilExit()

Not able to open a process in authorization plugin in swift

两盒软妹~` 提交于 2021-02-11 17:40:41
问题 I am trying to open a cocoa GUI application from authorization plugin which runs during login. I have placed the application in /Library/Application Support/MyFolder/Example.app . I am using below environment and code to open the application. Environment OSX: 10.14.5 (Mojave) Xcode: 11.2.1 Swift: 4.2 Code let task = Process.init() task.launchPath = "/Library/Application Support/MyFolder/Example.app/Contents/MacOS/Example" task.arguments = ["Hi", "Hello"] task.launch() task.waitUntilExit()

What exactly is randomized with ASLR in MacOS X and iOS

。_饼干妹妹 提交于 2021-02-05 20:31:10
问题 Does anybody have a link to a documentation what exactly is randomized in what cases for latest Mac OS (10.7) and iOS (6.0)? I mean. I want to see a list (something like) Code segment (in a case A,B,C) Stack (always) Heap Data segment (never) Preferably with how many bits of randomization each thing has. All I can find is something like: "MacOS Lion implements full ASLR" and in other places "full ASLR is implemented different ways for different operation systems", which is obviously not very

What exactly is randomized with ASLR in MacOS X and iOS

送分小仙女□ 提交于 2021-02-05 20:29:44
问题 Does anybody have a link to a documentation what exactly is randomized in what cases for latest Mac OS (10.7) and iOS (6.0)? I mean. I want to see a list (something like) Code segment (in a case A,B,C) Stack (always) Heap Data segment (never) Preferably with how many bits of randomization each thing has. All I can find is something like: "MacOS Lion implements full ASLR" and in other places "full ASLR is implemented different ways for different operation systems", which is obviously not very

How to paste to Emacs from clipboard on OSX?

帅比萌擦擦* 提交于 2021-02-05 13:10:37
问题 This might be extraordinarily simple, but I am playing with Emacs (22.1.1) and I can't get it to paste text in the clipboard using Control - Y . 回答1: If you're using the in-built Emacs, then you're running Emacs in the terminal. The "clipboard" is a function of your windowing system. Emacs in terminal mode ( -nw ) does not access any windowing system specific APIs. This is true of most command line tools designed to work in the terminal. You need to upgrade your Emacs as others have suggested

How do you wait for an application to close in OS X?

丶灬走出姿态 提交于 2021-01-28 02:02:07
问题 I am using the code below to check if an application is running and close it. Can someone provide an example of how to request an application calose and wait for it to close before proceeding? + (BOOL)isApplicationRunningWithName:(NSString *)applicationName { BOOL isAppActive = NO; NSDictionary *aDictionary; NSArray *selectedApps = [[NSWorkspace sharedWorkspace] runningApplications]; for (aDictionary in selectedApps) { if ([[aDictionary valueForKey:@"NSApplicationName"] isEqualToString:

Command history in mysql client only showing last line of multiline query

旧时模样 提交于 2020-12-01 07:24:58
问题 I'm using Mysql's command-line client in Screen/Tmux, from Bash in OSX's Terminal.app. When using arrow-up to re-display a previously run query that spanned more than on line, AND when the cursor is on the very last line of the Terminal, the command in mysql's command history gets 'truncated', or cut off. This never happens when I use the same tools on my Ubuntu workstation Here's a visual representation of what happens: Typing some query; nothing wrong here. +--------------------------------

Command history in mysql client only showing last line of multiline query

情到浓时终转凉″ 提交于 2020-12-01 07:24:06
问题 I'm using Mysql's command-line client in Screen/Tmux, from Bash in OSX's Terminal.app. When using arrow-up to re-display a previously run query that spanned more than on line, AND when the cursor is on the very last line of the Terminal, the command in mysql's command history gets 'truncated', or cut off. This never happens when I use the same tools on my Ubuntu workstation Here's a visual representation of what happens: Typing some query; nothing wrong here. +--------------------------------

git on Mac OS X Lion

荒凉一梦 提交于 2020-07-02 03:22:43
问题 I just upgraded my mac to LION, and now git is gone: $ git -bash: git: command not found Any ideas on how to get git back? 回答1: The default install location is /usr/local so add this to your ~/.bash_profile export PATH=$PATH:/usr/local/git/bin/ then run source ~/.bash_profile in Terminal 回答2: If you do not want to install XCode and/or ports/fink/homebrew, you could always use the standalone installer: http://code.google.com/p/git-osx-installer/ 回答3: There are a couple of points to this answer

Can't get going with MySQL in CakePHP

早过忘川 提交于 2020-05-13 06:34:05
问题 This is my first time installing a framework, and I am pretty clueless. I am on OSX 10.7 and I have the cakephp framework loaded into /Library/WebServer/Documents/cakephp and I have been able to load the test page and get rid of some of the errors and warnings. Right now I am trying to resolve this Warning (2): PDO::__construct() [pdo.--construct]: [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) [CORE/Cake/Model/Datasource/Database/Mysql.php, line 160]