FAQ Database Discussion Community


iOS 7.1 Simulator not downloading

ios-simulator,osx-yosemite,ios7.1,xcode6.1
I use OS X Yosemite 10.10.2, Xcode 6.1. I want to download iOS 7.1 simulator, but the simulator stuck to download ...

Running shell script as admin using expect on OS X

bash,shell,expect,osx-yosemite
I am trying to let non-admin users run a script in a shared environment that requires root privileges. I was going to build either an AppleScript or Automator application that invokes expect in order to pass the login credentials (yes, I know the dangers, it will all be execute only)....

C Program (in OS X) - file was built for archive which is not the architecture being linked (x86_64)

c,osx,static-libraries,osx-yosemite
I have an assignment in which I have to use a given source code with an included library, namely, libdb_factory.a and libdb_factory32.a (they gave us both x86_64 and ie386 versions). The first hint of something going wrong is that, when executing lipo -info on any of them, I get this:...

django dev on mac having to explicitly name full path

django,osx-yosemite
After a long time away from an app i wrote in Django and didn't complete, I've come back to it on a new Mac. I'm struggling to get the code to refer to the apps and the files within them without the explicit path. For instance: from myproject.app.file import object...

Unable to upload new build on iTunes Connect

ios,itunesconnect,osx-yosemite,itunes-store,xcode-6.2
I have already gone through various similar questions asked here on Stack Overflow and also on other blogs. Unfortunately, none of those solutions are resolving my issue. After doing a lot of search & when I was not able to solve my issue, I decided to ask you all. I...

Terminal in mac weird user?

osx,unix,terminal,user,osx-yosemite
Whenever i login into terminal i get the following before my user: Last login: Wed May 13 12:52:32 on ttys000 stange-name:~ andy$ Where is jhps-gardens coming from?? I have no idea what it is, or where it is coming from. I know im not in that directory. And i haven't...

Draw the contents of an array modified in the background

objective-c,background-process,osx-yosemite,drawrect
I have a background thread that runs and modifies the contents of a NSMutableArray within an object. This takes a long time to run (several hours) and I periodically want to draw the contents of an array within the drawRect of a NSView to check on progress and see the...

Lua error loading module 'libpng' (Torch, MacOSX)

osx,lua,osx-yosemite,libpng,torch
How do I make libpng load properly in Lua? I am running Lua/Torch in iTorch Notebook in Mac OSX 10.10.3, where other basic functions in Lua work, such as plotting and calculations. brew install libpng Warning: libpng-1.6.17 already installed If I run: require 'nn'; require 'image'; itorch.image(image.lena()) error loading module...

R/RStudio, Yosemite, and Java

java,r,rstudio,osx-yosemite
I upgraded to OSX Yosemite yesterday. When I run library(xlsx) in RStudio, the program crashes and I get the message: "To open 'RStudio' you need to install the legacy Java SE 6 runtime." I get the same result and message about opening R when I run library(xlsx) in R. Here...

How I can avoid caching of NSString instances in Objective-C runtime?

objective-c,nsstring,osx-yosemite
Objective-C can to cache short strings. If you run modified code from original question, you'll get result, that strings is same (one instance) (Build for OS X Yosemite). How to avoid this behaviour? NSString* value1; NSString* value2; __weak NSString* weakValue1; __weak NSString* weakValue2; NSMutableString* resultText = [NSMutableString new]; @autoreleasepool {...

MacVim in Yosemite can't fullscreen

vim,osx-yosemite
I'm using Mac Yosemite 10.10.2 and newest macvim, but when I use fullscreen mode, the lines at the top of screen will be black, and if I move my mouse there, it will show the system line.. I want to get my fullscreen back.

Capture other mouse button events on OS X with NSEvent

objective-c,osx,cocoa,osx-yosemite
I'm trying to capture mouse clicks on OS X Yosemite. From what I've read this code should work: [NSEvent addGlobalMonitorForEventsMatchingMask:NSOtherMouseDown handler:^(NSEvent *event) { NSLog(@"Mouse Down, Button: %ld", event.buttonNumber); }]; However, it only works for events on the right mouse button, not other buttons (i.e. buttons 4, 5, 6, et cetera...

Xcode 7 run on Mac OSX 10.10 Yosemite

swift,osx-yosemite,swift2,xcode7,osx-elcapitan
Am I missing something or Xcode 7 should run only on new(beta) OSX 10.11 El Capitan? I downloaded beta and after some code changes to comply with Swift 2.0 my project compiles and runs fine under OSX 10.10.3. Am I missing something or Apple changed the game somehow?...

Reading data from USB device (Waterrower S4 Monitor) with libusb and Ruby

ruby,osx,usb,osx-yosemite,libusb
I bought a Waterrower which has an S4 Performance Monitor that has a Micro-USB connector on its back and I thought it would be nice to be able to fetch the data that comes from the S4 and do something nice with it. I do know some Ruby but I'm...

Error installing bcrypt using npm on yosemite

xcode,node.js,osx-yosemite,bcrypt
I'm trying to install bcrypt using npm on yosemite with xcode 6.3 beta and node 0.12 installed. First I got the following problem and could resolve it with the given answer: xcode-select active developer directory error on OSX Mavericks But now I got this problem: > [email protected] install /Users/reweber/Idea/rtschat/node_modules/bcrypt >...

record app using iOS and Yosemite, but can only see black screen

osx-yosemite
I am trying to record a video of my app using QuickTime and the new iOS record feature in Yosemite. Problem is all I get is a black screen. Can anyone assist?

Uninstalling gcc completely in Mac OS X Yosemite?

xcode,osx,gcc,clang,osx-yosemite
I am trying to uninstall gcc completely from my mac but unable to do so. Current status : ➜ ~ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0 /5.0.0/lto-wrapper Target: x86_64-apple-darwin14.0.0 Configured with: ../gcc-5-20141005/configure --enable languages=c++,fortran Thread model: posix gcc version 5.0.0 20141005 (experimental) (GCC) ~ which gcc /usr/local/bin/gcc I had...

How can I customize the behavior of the green 'expand window' button so that it only maximizes (instead of taking over the entire screen)?

osx,osx-yosemite
I just upgraded my macbook pro to Yosemite and this new behavior of the green window button is driving me nuts. I only want to expand a window to maximum size (and keep the menu bar showing). The new default behavior is to totally take over the screen, which is...

Delaying Code Execution on OSX 10.10

grand-central-dispatch,osx-yosemite,nsthread,mach,usleep
I've encountered a very strange issue that affects my code running only on OSX 10.10 systems. I've seen this anomaly occur on over 25 OSX 10.10 systems running my code, whereas the exact same code did not exhibit this behavior before upgrading (10.7). Furthermore, this issue is not 100% reproducible...

Installing Poco on Mac

c++,make,osx-yosemite,poco-libraries,make-install
I am trying to install Poco on Mac. I downloaded the basic edition from here. As per the instructions, I did configure, then did make. It took a long time, but it succeeded (my make version is 3.81). After this, when I did sudo make install, it finished pretty quickly....

How to store preferences for a HTML-based QuickLook generator on OSX?

osx,osx-yosemite,quicklook
I used to do it with a custom PrefPane that has to be installed separately, but that's not satisfactory. I have a HTML-based QuickLook generator, that create thumbnails and previews of some inhomogeneous content (files that have a long ASCII header, and a various number of binary extensions each of...

Mac Yosemite os variable works in bash Python interpreter, running the script in terminal, but not in Sublime Text 2 text editor

python,bash,sublimetext2,osx-yosemite
This is strange to me. I have set a variable in bash and exported it, like this: export EMAIL="[email protected]" I have used the command, "source ~/.bash_profile" to reset bash, and have even logged out and back in, and here's the issue: All is good when I do this in the...

Solarized theme in OS X Terminal having brighter font colors compared to Vim

vim,terminal,osx-yosemite,color-scheme
I have imported a Solarized theme for OS X Terminal created by Tomislav Filipčić (this is a port of Solarized for OS X 10.7+ terminals). I'm having a weird issue there. Font colors in the shell seem to be brighter than they should be in Solarized (they look washed-out), but...

docker error when using log-driver=“syslog” on OS X

docker,osx-yosemite,syslog,boot2docker
docker error when using log-driver="syslog" on OS X I am trying to learn how to use 'docker' containers on OS X (10.10.3), I understand the differences with the standard Linux implementation ( need boot2docker VM) and I wonder if there is any impact on the way I can log messages...

How to use Terminal, launched from OSX setup screen, to create new user?

osx,terminal,osx-yosemite,createuser
I need to create a new user account on a system drive (10.10.1) because I am unable to log in to the only existing one. I can however get into the OSX setup from a prepared USB flash drive, and launch Terminal there. I guess it would be possible to...

OS X Yosemite youtrack proxy without modifying url

apache,osx-yosemite,youtrack
I'm setting up the standalone version of youtrack on OS X Yosemite. It is currently running on local-ip:8080 using the following command: sudo -u youtrack java -jar youtrack.jar local-ip:8080 Preferably I'd like to be able to access it via www.domain.com/youtrack. I've attempted to use the OS X internal apache server...

Error Installing pymssql on Mac OS X Yosemite

python,sql-azure,osx-yosemite,pymssql
I receive the following error when installing pymssql on OS X Yosemite 10.10.3 - has anyone gotten around the following error? I am using FreeTDS (v0.91.112) version 7.1 and Python 2.7.6 - the tsql utility connects to a SQL Database with no issue. sudo pip install pymssql Error: Command "/usr/bin/python...

How to get weekdays array from system in Swift?

swift,xcode6,osx-yosemite
How can I take an array with days of week from the system (from NSDate, I think)? Until now, I can only take the current day, but I'd like to be able to take all weekdays in an array. If the first day of week is set to Monday, my...

PyGame wont register keydowns

python,osx,pygame,osx-yosemite
I have installed pygame on my macbook and it seems to be working however it doesnt seem to be registering specific keys For example RunGame = True while RunGame: for event in pygame.event.get(): if event.type == pygame.QUIT: RunGame = False if event.type == pygame.K_LEFT: Direction = 'West' The quit code...

Specify makeinfo to be used in make command

make,osx-yosemite,texinfo
On OS X Yosemite, the standart texinfo version is quite old and does not suppprt certain features. I now have installed, via homebrew, a newer version. As there is an already existing version, the binaries are not put into the PATH (keg only), which makes perfect sense. Now, how can...

regex to match 3-digit numbers but not 4-digit ones

regex,osx-yosemite
I have a file that contains either 3-digit numbers or 4-digit numbers within some strings. I want to be able to choose only the 3-digit ones. I tried the following: `[0-9][0-9][0-9]` or `\d{3}` which naturally matches the 4-digit ones as well. And \d{3} doesn't match anything. I also want to...

“Symbol not found: __cg_jpeg_resync_to_restart” with djangostack

python,django,wsgi,osx-yosemite,bitnami
I'm trying to connect Django 1.6.10-0 to a project that was previously running on 1.5. After editing the wsgi.py file in my project to include the project path, I get this error: mod_wsgi (pid=6805): Exception occurred processing WSGI script '/Users/Dreadfort/Documents/MyProject/project/wsgi.py'. Traceback (most recent call last): File "/Applications/djangostack-1.6.10-0/apps/django/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in...

AMDEP does not appear in AM_CONDITIONAL

homebrew,osx-yosemite
I've been trying to use Homebrew to install ROBOSPECT, to help me manage the dependencies (since I'm mostly a complete newb when it comes to this stuff). The lovely people at #machomebrew got me part of the way there; here's my Homebrew formula. I got this error: configure.ac:11: error: required...

How to dump memory image OSX Yosemite?

osx,security,osx-yosemite,computer-forensics
I'm trying to dump a memory image for OSX for Yosemite. Up to this point, Macmemoryze, but it doesn't support 10.10. Anyone know of a way to dump the memory to an image file that can be loaded in Volatility? I did a little searching around and didn't find anything...

Install MySQL and create a database on Mac OS X Yosemite

mysql,osx,osx-yosemite
I want to install MySQL on Mac OS X Yosemite, create a new user, then create a new database called "my_database". How can I do this? What I've tried: From command line, brew install mysql. This succeeds and downloads MySQL to /usr/local/bin/mysql. Log into MySQL mysql -u root. I get...

Unable to open a connection to an FTDI device

osx-yosemite,ftdi
I'm working on a small OS X app that connects to an FTDI device. I've configured my project according to the answer in this question (I've added the .dylib file as a framework, and I added the ftd2xx.h, WinTypes.h, and ftd2xx.cfg files to my project). I'm currently able to detect...

vtk build mac os x 10.10 , no rule to make target '…libpython2.7.dylib'

python,cmake,osx-yosemite,vtk
I am trying to build this code on Mac OS X 10.10 with vtk-6.1.1. After "cmake" I run "make" and it delivers me the following error: Scanning dependencies of target ReadDICOMSeries [100%] Building CXX object CMakeFiles/ReadDICOMSeries.dir /ReadDICOMSeries.cxx.o make[2]: *** No rule to make target `/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib', needed by `ReadDICOMSeries.app/Contents/MacOS/ReadDICOMSeries'. Stop. make[1]:...

@font-face is not working on OS X Yosemite Chrome 26 - versions

css,font-face,osx-yosemite
My font is not working on OS X Yosemite Chrome 26 - versions. It shows blank space in the place of the font. In latest browser versions font works fine. CSS @font-face { font-family: 'DIN-Regular'; src: url('fonts/DIN-Regular.eot'); /* IE9 Compat Modes */ src: url('fonts/DIN-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('fonts/DIN-Regular.woff2') format('woff2'),...

Synergy cannot reset on Mac

osx-yosemite
A really simple but dragged me many days that I cannot figure out how: I've setup synergy on my Mac as a client, using Ubuntu as the server. But now I wanted to switch to use Mac as server and Ubuntu as client. The question now I'm facing is that...

MySQL LaunchDaemon on OS X Yosemite: Localhost connection fails

mysql,localhost,osx-yosemite
Starting with OS X 10.10 Yosemite, StartupItems are no longer supported. I have created a LaunchDaemon to automatically start the MySQL database on the server. So far it works, but I am unable to use "localhost" as connection parameter in a few tools (connection over socket is not intended to...

uniq does not clean out duplicate entries

osx-yosemite,uniq
I have a file with a number on each line. I am trying to find out the distinct set of numbers. Below is an excerpt: 550 400 4000 400 1900 550 5000 400 1500 1900 5000 4000 5000 1900 5000 Passing this through uniq, however, doesn't clean out all the...

Setting dataSource for NSTableView across scenes in a storyboard

cocoa,nstableview,osx-yosemite,nsstoryboard
I am using XCode 6 on OS X 10.10 and have a storyboard containing a window with a split view controller, as shown in the following image. The split view controller (highlighted in the image) is an instance of MyViewController, which has the following code: MyViewController.h #import <Cocoa/Cocoa.h> @interface MyViewController...

How do I edit $PATH (.bash_profile) on OSX?

osx,path,terminal,osx-yosemite
Hello I am trying to edit a entry to PATH, as i added something wrong. I am using OSX 10.10.3 I have tried touch ~/.bash_profile; open ~/.bash_profile Bu the file editor open, with nothing inside. What it is: I am trying to Install ANDROID_HOME to my PATH I miss typed...

applescript help naming .plist and removing extention

applescript,osx-yosemite,info.plist
i am creating an applescript to create a file with property list elements but without the .plist extension! my issue is if i use a dialog to get the name of the file eg. tell application "SystemUIServer" display dialog "Enter filename :- " buttons {"Generate file"} default answer "Generate Keyfile"...

Git Clone Fails with sslRead() error on OS X Yosemite

git,curl,openssl,osx-yosemite,gitlab
I'm currently on OS X Yosemite 10.10.3, and trying to git clone an existing repo which works fine on Windows. I've tried a combo of installing git through homebrew with curl/openssl with no luck. When i run the git clone, i get the following ssl read error: GIT_CURL_VERBOSE=1 git clone...

yosemite Xcode 6.3.2 and older osx versions

xcode,osx-yosemite
In osx 10.10 yosemite, if i create an application for mac osx with Xcode 6.3.2 can this app be runned in older osx versions ? for example snow leopard ? thank's

Unable to run telnet commands on Genymotion emulator on Mac

android,osx,osx-yosemite,genymotion
I am running Genymotion 2.3.1 on Mac OS X Yosemite. When I was running Genymotion on Win 7, I could telnet to the emulator and run commands like "geo fix" to set a location. However, on Yosemite, when I telnet to the emulator and run a command, I do not...

Losing key-up event on OS X

objective-c,osx,cocoa,keyboard,osx-yosemite
I am writing a game-like app for OS X and need to know if the left and right arrows are pressed during the game loop. I also check if the space bar is down. For this I implement -(void)keyDown:(NSEvent *)event; -(void)keyUp:(NSEvent *)event in my view and store the state of...

Can't make IDLE working on Mac

python,osx,osx-yosemite,python-idle
I have been looking for some answer about this IDLE problem and I tried the suggested solution but nothing worked. I am on OSX yosemite and I want to learn python so I downloaded Python 3.4.3 and the ActiveState Tcl recommended 8.5.17. The problem is that IDLE closes instantaneously without...

How to execute shell commands on the host machine from code running inside a vm?

php,osx,shell,laravel,osx-yosemite
I have a php codebase running in a vagrant vm running on a mac (OS X 10.10). I am trying to execute shell commands with exec(). The commands are evidently executed by the vm shell, but I would like the mac's shell to run it. How if possible could I...

How do I get RCurl to connect to POST SSL on OS X Yosemite?

r,osx,libcurl,osx-yosemite,rcurl
Since upgrading to OS X Yosemite 10.10.2, I have been unable to use RCurl to send POSTs via SSL. The error message I get is: Error in function (type, msg, asError = TRUE) : SSLRead() return error -9806 This strongly resembles the curl error here: osx 10.10 Curl POST to...

Missing “.ali” files when using gnatmake on Mac OS X

osx-yosemite,ada,gnat
What is causing this error? I can't compile Ada .adb files. I have /usr/local/gnat/bin in my path. Output error: gnatmake -d -P/Users/u0/Downloads/test.gpr Adding linker switches for"test.adb". Adding -g TMPDIR = "/private/var/folders/fn/srvkxbdj3bz60q952680ngj40000gn/T" Created configuration file "/private/var/folders/fn/srvkxbdj3bz60q952680ngj40000gn/T/GNAT-TEMP-000001.TMP" "test.ali" being checked ... -> "test.ali" missing. gcc -c -g -gnatf -g -gnat12 -I- -gnatA...

Error domain class not found

osx,grails,osx-yosemite
I am able to create app using ($ grails create-app MyDomain) but not able to move forward with $ grails generate-all MyDomain. I made sure that I do have the domain generated with the proper name/spelling (by going physically into the local folder on my machine), all looks ok. The...

Swift NSUserNotification doesn't show while app is active

swift,osx-yosemite,nsusernotification,nsusernotificationcenter
I am new to OSX development and I am making an app which fires a notification when something happens. But it isn't showing the notification when the app is the key app, as it is the default behavior. I want to show them even when the app IS the key...

How to translate this slider value change from AppleScript to JavaScript

applescript,osx-yosemite,javascript-automation
This bit of AppleScript works. If I have the System Preferences Sound panel open, and run it in the Script Editor app, it changes the volume to be at 50%. tell application "System Events" tell process "System Preferences" set v to value of slider 0 of window 0 log v...

Why does boot2docker, and port forwarding to my docker instances, periodically hang?

virtualbox,osx-yosemite,boot2docker
I have run the following command to forward sinatra and redis ports to my docker instance running in virtualbox on OSX: ports=( 4567 6379 ) for port in "${ports[@]}" do echo "Forwarding $port" VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcpport$port,tcp,,$port,,$port" done However, periodically (like every 60 seconds) requests to either of these...

sed to replace blanks with newlines in OS X

regex,bash,sed,osx-yosemite
I want to replace blanks with newline characters in a file. Bunch of other things I tried from the answers to other questions here didn't work: sed -e 's/\s\+/\n/g' file sed -e 's/[[:blank:]]\+/\n/g' file These both return the file as it is. I tried the following: sed -e 's/[[:blank:]]/\n/g' file...

Issue installing Leiningen on Mac

osx,clojure,osx-yosemite,leiningen
I've recently updated my Mac to Yosemite. I installed the Java SDK version 1.8.0 $ java -version java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) Then I updated/upgraded everything in homebrew. Leiningen did not work, so I uninstalled and reinstalled...

How do i get a tenth part of a second?

swift,xcode6,osx-yosemite
I try to make something in swift, and now i need to get a tenth part of a second from the system. I've checked the documentation and, from NSCalendar i can take only nanoseconds. func getTime() { let dateNow = NSDate() let calendar = NSCalendar.currentCalendar() let components = calendar.components(.CalendarUnitHour |...

Cannot run most cordova commands without using sudo

node.js,osx,cordova,ionic-framework,osx-yosemite
I have installed npm to setup Ionic & Cordova - and I have used sudo for this? My question is when I run the following command without sudo I get an error: cordova emulate ios The error is an EACCES, permission denied ..... /ios.json Am I right that if I...

fs.writeFile() doesn't return callback

node.js,osx-yosemite,appjs
I'm trying to write a file with the users authentication data to the disk. To achieve this I wrote the following function: function writeAuthFile(data, success, fail) { var fs = require('fs'); fs.writeFile('auth.json', JSON.stringify(data), function(error) { if(error) { console.log('[write auth]: ' + err); if (fail) fail(error); } else { console.log('[write auth]:...

please re-compile PHP with ZTS enabled Mac OS X

php,osx,thread-safety,osx-yosemite
I trying to install pthreads on Mac Os X. When I execute: sudo pecl install pthreads I get error: checking checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled ERROR: `/private/tmp/pear/temp/pthreads/configure' failed So the question is how to recompile php with ZTS enabled for OS...

Why is my Hello World go server getting crushed by ApacheBench?

http,go,osx-yosemite
package main import ( "io" "net/http" ) func hello(w http.ResponseWriter, r *http.Request) { io.WriteString(w, "Hello world!\n") } func main() { http.HandleFunc("/", hello) http.ListenAndServe(":8000", nil) } I've got a couple of incredibly basic HTTP servers, and all of them are exhibiting this problem. $ ab -c 1000 -n 10000 http://127.0.0.1:8000/ This...

Importing json file in new fresh mnogodb

json,mongodb,osx-yosemite
I just want to ask how can I import this example.json file in new mongodb I expect to have each seassion object as row in the table I tried mongoimport --db foo --collection myCollections < dataBuys.json 2015-05-07T21:19:15.828+0300 connected to: localhost 2015-05-07T21:19:18.831+0300 foo.myCollections 168.5 MB 2015-05-07T21:19:21.826+0300 foo.myCollections 168.5 MB 2015-05-07T21:19:24.828+0300 foo.myCollections...

how to set environment variables in Yosemite

osx,environment-variables,osx-yosemite
This question has been asked before but the solutions assume that you are acquainted with OS X, unfortunately I'm not, so please bear with me. I would like to use qmake from the terminal command. With Yosemite, I'm not able to find an easy way to do it. The solution...

ImportError: No module named _scproxy

osx-yosemite,sage
I tried to make Sage from the source but I failed. It seems that the library _scproxy is missing on Yosemite. I haven't found a very helpful aid here on SO and everywhere on the net. If someone can help me. Here is the log : Found local metadata for...

How to install PostgreSQL on OSX Yosemite using MacPorts

postgresql,osx-yosemite,macports
I want to install PostgreSQL for a node project that I'm developing in OSX Yosemite. I use MacPorts and so tried the method described here: https://github.com/codeforamerica/ohana-api/wiki/Installing-PostgreSQL-with-MacPorts-on-OS-X ...but I get an error during step 2: $ sudo gem install pg -- --with-pg-config=/opt/local/lib/postgresql93/bin/pg_config > ruby_error ERROR: Error installing pg: ERROR: Failed to...

Node script executable not working on Mac : env: node\r: No such file or directory

node.js,command-line,osx-yosemite
I have created my node script executable to execute some tasks grunt. On Windows, my node script works fine. But on Mac OS X (Yosemite), it's not working. My node script has been published on Windows. My node script is installed via npm command : npm install -g task-app My...

How to import RSA keys on Mac OS X Yosemite?

terminal,osx-yosemite,keychain,ssh-keys
Doing the following: ssh-keygen -t rsa ... security import ~/.ssh/id_rsa -k login.keychain -t priv -f openssh2 I get the following error: security: SecKeychainItemImport: Unknown format in import. ...

Can't run swift project on Iphone with Skobbler

iphone,xcode,swift,ios8,osx-yosemite
I have this error when I build the project on Iphone : Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)! /Users/Tom/Library/Developer/Xcode/DerivedData/Test-bwacbfyhutgdvnhetuiouvtcvvfi/Build/Products/Debug-iphoneos/Test.app/Frameworks/SKMaps.framework: invalid resource specification rule(s) Command /usr/bin/codesign failed with exit code 1 If I built the project with the iOS Simulator, it run perfectly...

git: error: SDK “macosx” cannot be located

osx,git,osx-yosemite
Just updated my machine to Yosemite. I'm getting this error from Git now: git: error: SDK "macosx" cannot be located I'm able to run git status with no issue, but anything like git add seems to work, but then throws this error. Command Line Tools are installed, I tried reinstalling...

Pillow installed but not identified (Mac OS Yosemite)

osx-yosemite,pillow
I Installed pillow using brew, and when I try to repeat the isntallation I see it's there: brew install Homebrew/python/pillow Warning: pillow-2.7.0 already installed But when I try to load it into a script I get an error: ImportError: No module named Image Any suggestions?...

Calculate day number from date function fg: no job control

bash,shell,unix,osx-yosemite
I have a function to calculate day number based on three parameters d,m,y this is the function function getDate (){ d=$1 m=$2 y=$3 m=$((m+9)) % 12 y=$((y - m/10)) return $((365*y + y/4 - y/100 + y/400 + (m*306 + 5)/10 + ( d - 1 ))) } Call for...

Can't run Spring Tool Suite on a Mac

osx,osx-yosemite,spring-tool-suite
I get this when I try and run the Spring Tool Suite on Yosemite: To open “STS” you need to install the legacy Java SE 6 runtime. Click “More Info…” to visit the legacy Java SE 6 download website. The more info brings me to this apparently defunct page: https://support.apple.com/kb/DL1572 Any ideas how to...

Ruby fails since Yosemite installed

ruby,osx,vagrant,osx-yosemite
I have not used ruby, vagrant, or rvm since upgrading to Yosemite last fall. But I now need to use Vagrant for a project so I ran the latest package installer and tried to run it. I got an error from ruby. I wasn't sure if rvm or something else...

Error installing thrift on mac yosemite

qt,osx-yosemite,thrift,autotools
I followed these steps to install thrift on MAC Yosemite : Downloaded and unzipped the package from : http://archive.apache.org/dist/thrift/0.9.0/ Followed the steps on this page : https://thrift.apache.org/docs/install/os_x But I am facing the following error, after I run ./configure command : ./configure: line 17810: syntax error near unexpected token QT,' ./configure:...

Can't compile OpenGL project under OSX

c++,osx,opengl,osx-yosemite,glew
There's an OpenGL project I have to work on for a course I am attending. There were link errors due to GLEW. After some research, I found out that on OSX GLEW is not necessary. I included following headers. //#include "CL/cl_gl.h" #include <OpenGL/glu.h> #include <OpenGL/gl.h> //#include <OpenGL/glext.h> //#include <GLUT/glut.h> But...

OS X back/forward gestures in Eclipse IDE

eclipse,osx,eclipse-plugin,osx-yosemite
is there any plugin or possibility to use back/forward gestures in Eclipse IDE on OS X (like in Safari or Chrome) to open back/forward edit location? I tried to use BetterTouchTool, but it does not work with eclipse.

Source of SQLite Install

sqlite,homebrew,osx-yosemite
I noticed in /lib/ there's a sqlite3 folder which is fine. But I'm not sure how it got installed. I did not manually install it. I did however install HomeBrew and XCode Tools, so maybe one of those also installed sqlite? Trying to figure this out. Just nice to know...

How to draw a sine line using SpriteKit?

objective-c,sprite-kit,osx-yosemite
This question is almost self-explanatory: I need to use SpriteKit to draw a line that looks like a sine wave, but I will also need to vary the amplitude of this wave later.

Using contentLayoutGuide for constraints

objective-c,xcode,osx,cocoa,osx-yosemite
I´m trying to use a NSTextView with the new Vibrant theme in OSX 10.10 after watching the session from WWDC on advanced features of the new UI. My textview is not placed adjacent to the titlebar so I have made the content view fully sized so I can place the...

How to detect the presence of mobile devices in an area using WiFi router

networking,wifi,osx-yosemite,packet-sniffers,wificonfiguration
I have a requirement to detect the presence of mobile devices inside an area using my WiFi router,without connecting to them , So I did some research on it and found some interesting things like WiFi sniffing, but for testing purpose I want to use my Mac machine (Yosemite) as...

Extract PresentationNotes from keynote

javascript,applescript,osx-yosemite,automator,jxa
I'm having a hard time extracting presentationNotes from a keynote presentation using JXA (Javascript for osx) I don't want to use applescript. There is way more to this script than extracting notes. It seems rather simple. However when I get the presentationNotes its in an RichText object that doesn't seem...

Auto fade between scenes in unity not working on OSX

c#,opengl,unity3d,osx-yosemite
I just imported my project into unity of my mac. I have unity pro license and I'm using unity 4.6.3 in both computers (pc with windows 8) and OS X yosemite. When i test my project in the pc(windows) the auto fade works ok but when i do it on...

GDB and LLDB “swallow” status set by child process in OS X

gdb,fork,osx-yosemite,lldb,sigsegv
Given the following code: #include <stdio.h> #include <signal.h> #include <unistd.h> #include <sys/wait.h> int main(int ac, char** av) { int status; pid_t cpid = fork(); if(0 == cpid) { /* Child */ return *(volatile int*) 0; /* exits with signal 11 */ } else { /* Parent */ do { waitpid(cpid,...

pdo_pgsql and php on mac os x yosemite

php,osx-yosemite
So I compiled pdo_pgsql from source and added the extension to my php.ini phpinfo() says PDO PDO support enabled PDO drivers mysql, sqlite, pgsql pdo_pgsql PDO Driver for PostgreSQL enabled PostgreSQL(libpq) Version 9.4.2 Module version 1.0.2 but pg_connect("host=localhost dbname=dbname user=username password=password") gives Call to undefined function pg_connect() Yes, I did...

Illegal instruction: 4 in ffmpeg

osx,ffmpeg,osx-yosemite
I tried brew installed ffmpeg, i am also tried to compile ffmpeg but in all cases i have the error Illegal instruction: 4 I run something like this: ./ffmpeg -i /Users/ruslan/Torrents/Weird\ smiling\ dog.3gp -codec:v libx264 -b:v 360k -maxrate 360k -bufsize 720k -movflags +faststart -vprofile high -preset slow -vf 'scale=trunc(iw/2)*2:360' -threads...

how to change mac app store info.plist?

osx,osx-yosemite,code-signing,mac-app-store
I want to tweak some apps appearance through their info.plist. But apps installer via Mac App Store don't open after that, because their signing validations (I'm running Yosemite). Is there a way I can tweak them?...

Enabling Yosemite's Dark mode through Terminal or Applescript OSX 10.1

osx,shell,applescript,settings,osx-yosemite
Is there any way to turn on Yosemite's Dark Mode through Shell Script (Terminal) or Applescript? I have tried: sudo defaults write /Library/Preferences/.GlobalPreferences AppleInterfaceTheme Dark but it does not work. Please help!...

Determine and Use Resolution as a Variable in UNIX script on Mac

osx,osx-mavericks,resolution,osx-yosemite
I'm deploying a NetRestore image to multiple kinds of Macs: MacBooks, MacBook Pros, Mac Pros, iMacs and Mac Minis. I have several custom designed login screens that I'd like to use but everything before 10.10 requires that you know the monitor resolution otherwise the login won't show correctly. Is there...

How to get POSIX path of the current script's folder in JavaScript for Automation?

osx,applescript,osx-yosemite,osascript,javascript-automation
In AppleScript it’s possible to get the the POSIX path of the folder the current script is located in using this line: POSIX path of ((path to me as text) & "::") Example result: /Users/aaron/Git/test/ What’s the JavaScript equivalent?...

Localhost Leads to 404 with DNSMasq Setup and custom Vhost

apache,dns,osx-yosemite,dnsmasq
I have configured DNSMasq to work for an OSX Yosemite local test server with native Apache2, native PHP5 and homebrew MySQL and DNSMasq. It is all working now, but with the current DNS setup I can only access PHPMyAdmin in its configuration for host using 127.0.0.1 and the same goes...

should I upgrade to yosemite from mountain lion?

osx-lion,osx-mavericks,osx-yosemite
I have an Mac Air 2013 1.7Ghz (Intel core I7) with 8Gb RAM currently running Mountain Lion OSX 10.8.5. I have read mixed reviews whether upgrading to Mavericks or Yosemite was worth while. Apparently, some claim the software is very buggy. Is it safe to upgrade my mac to Yosemite?...

Regex in python not matching what grep does

python,regex,python-2.7,osx-yosemite
I have the following string: string1; 1.8w/v PEG_8000; string2; ;; I want to get the ; 1.8w/v PEG_8000; part. I tried the following: a =re.search(';[^.;]+PEG[^.;]+;','string1; 1.8w/v PEG_8000; string2; ;;' which returns a = None. What am I missing? (OS X Yosemite, Python 2.7) Edit: I previously said the following, which...

Pkg-config 0.28 did not build on OSX 10.10.2

homebrew,osx-yosemite,pkg-config,gcc4.9
Recently I clean installed Yosemite 10.10.2 I also installed gcc using brew install gcc Now I'm trying to build and install python and openmpi from source because previously I've had problems with gfortran and clang. So I did brew install openmpi --build-from-source -verbose brew install python --build-from-source -verbose with variables...

Launch OS X Application Programmatically

xcode,osx,osx-yosemite
How do I programmatically open an OS X app (.app) that is contained within the app I am building?

Trouble installing MAPP Stack as Root user in OSX

apache,terminal,mamp,osx-yosemite,bitnami
trying to install bitnami mappstack as root user on osx. I follow the direction on their help page to a 't', but I keep getting a 'command not found' error when I try to run the installbuilder.sh as a super user. I'm not very good with the terminal. What the...

Launch app at login in OS X 10.10 Yosemite

osx,cocoa,osx-yosemite,yosemite
I need to add my application to the login items in the system preferences when then user presses a button. I've seen other answers around Stack Overflow, but many of them rely on <10.8 or <10.10 and deprecated APIs like LSSharedFileServices. Some of the answers refer to LSSharedFileServices, to which...

Remote path completion with scp on OSX

osx,bash,ssh,osx-yosemite,scp
On Linux, you can do $ scp some-file.txt [email protected]:/some/pa<tab> and it would autocomplete the remote path, if you have key based authentication up and running for that host. However, on OSX it doesn't seem to work, using iTerm2. Any hints? ...

'find' with wildcard

find,osx-yosemite
I am on OS/X yosemite. I have performed similar searches like the following many times: uncertain why it would not work here. The search is: $find . -name \*assembly\*.jar It returns nothing. Now, what should it return? Well let us remove the extension and re-run the search: $find . -name...