Multiple .ghci Files

I have a .ghci file with configurations for a Haskell project in the directory Project. When I run ghci from the Mac terminal in the directory Project, ghci loads both the project's Project/.ghci file and the home directory ~/.ghci file. Is there a m...
more »

2017-07-15 17:07 (1) Answers

Monitoring URL Requests from Shell Script

I am required to create a shell script in Mac, which will monitor and if a specified URL (for example, * is hit from any browser or program, shell script will prompt or do an operation. Could anyone guide how to do this? ...
more »

2017-07-14 05:07 (0) Answers

WKWebView Mac Browser Enable fullscreen html5?

I made a simple browser with Swift last version and xcode 8.3.3. I want to be able to enter in fullscreen when there is an html5 video (like on youtube). I get "full screen is unavailable" on youtube right now. Same problem with the old WebView... on...
more »

2017-07-08 18:07 (0) Answers

create-react-app not working

I am very new to react (started a day ago). I used the create-react-app command line to create an app. The following is the order I did create-react-app my-app npm start Now app is running. npm install youtube-api-search npm start Now i am ge...
more »

2017-07-01 14:07 (2) Answers

How to convert URL to Image? (Swift 3) (Mac OSX)

I need help converting URL (image: png) to an image so I can use it. notification.contentImage = NSImage.init(named: "URL IMAGE") I may be asking the wrong question. Goal: I have the URL, I just want to grab the image content of the ".png" file s...
more »

2017-06-30 20:06 (0) Answers

Linear mouse movement in Swift

I am trying to find a good way to make the mouse movement smoother then just "warping" around. I used to use this code in C# and so I thought I could convert it into Swift. This is what I've got so far but the app crashes as soon as I click the butto...
more »

2017-06-23 16:06 (1) Answers

linking std::experimental::filesystem with Xcode 9

I am using std::experimental::filesystem with Xcode 9.0 beta. The compiler phase completes OK but the linker complains of undefined symbols: std::experimental::filesystem::v1::path::__filename() const std::experimental::filesystem::v1::path::__file...
more »

2017-06-21 18:06 (1) Answers

osx monday date current week bash

I need to get an array of all the dates of the current week in BASH 4, in OSX. I tried to get the monday date, but on OSX the date doesn't work the same as Linux (gdate) The result I need : array=( 'YYYY-MM-DD', # MONDAY 'YYYY-MM-DD', # TUESDAY ...
more »

2017-06-20 12:06 (1) Answers

Creation of see through portal in SceneKit

What I'm trying to achieve is a see through "portal" using SceneKit. I have two basic requirements for it: While moving around it user should be able to see scene inside a portal by different angles It should be thin "2D" levitating in the air port...
more »

2017-06-18 21:06 (0) Answers

NSTableView Bindings doesn't work mac OS Swift

I'm trying to use cocoa bindings with nstableview and I have some problems with bind of parameter value of textfield: I'm using this code, class: class Person : NSObject { var givenName:String var familyName:String var age = 0 var lol = 0 overrid...
more »

2017-06-18 21:06 (1) Answers

kodi python mac address returns busy

Weird issue, I am on my mac trying to get my mac address but when I print it out, it says "Busy". My code is as follows: import sys from urllib import urlencode from urlparse import parse_qsl import xbmcaddon import xbmcgui import xbmcplugin import ...
more »

2017-06-18 16:06 (1) Answers

What is wrong with mmap system-call on Mac OS X?

I am trying to write a simple application on Mac OS X using only syscalls, no standard library. main.c #define PROT_READ 0x1 #define PROT_WRITE 0x2 #define MAP_ANONYMOUS 0x20 #define MAP_PRIVATE 0x02 #define PAGE_SIZE 4096 #define NULL 0 #define...
more »

2017-06-18 14:06 (0) Answers

running docker inside bazel test env on osx

Trying to run java_test that runs docker inside ProcessBuilder. To simplify the code of the test is as following: @Test public void testDockerExecutable(){ System.out.println("======== running docker =============="); try { Process p...
more »

2017-06-18 12:06 (2) Answers

mern-cli installation failed

I follow the instructions in to install mern-cli on Macbook Pro: sudo npm install -g mern-cli But I got the following errors: npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b 0.0.2 git://
more »

2017-06-18 08:06 (0) Answers

macOS Cocoa app: Crash with unspecified error

I have Status Bar Cocoa App that provides GUI with general information and preferences windows for my background running server. This server is implemented in C programming language and the only work it is doing now is simple echo to client. Applic...
more »

2017-06-18 00:06 (0) Answers