I'm using this code to create a document for a document base application for macOS, which hase as name the seconds elapsed since the Date() referencing date. func saveDocumentInApplicationSupport() { do { // create a directory in Application Support
I'm really struggling to find documentation on how to read a text file into an array using OS X Automation with Javascript. Here's what I have so far: var app = Application.currentApplication(); app.includeStandardAdditions = true; var myFile = "/Use
It is possible to install Microsoft CNTK on a macbook? I have OS X El Capitan. The official Microsoft documentation at https://github.com/Microsoft/CNTK/wiki/Setup-CNTK-on-your-machine doesn't provide any information for mac users. Thank youAs of Jun
I've never used VB(A) before, so forgive me if this is a trivial question. I am trying to run the code outlined here on Excel 2016 on a Mac. Sub simpleXlsMerger() Dim bookList As Workbook Dim mergeObj As Object, dirObj As Object, filesObj As Object,
I am trying to install OpenMP enabled xgboost on my mac. I installed gcc with no problem: brew install gcc --without-multilib then cloned git repository: git clone --recursive https://github.com/dmlc/xgboost cd xgboost; cp make/config.mk ./config.mk
I developed a website on a macbook pro with retina, where my display settings are scaled to 'more space'. The webapp looks great this way. But when I set the display back to 'default' scaling, it looks pretty bad, with all the components far too big.
I would like to set default file extension in QFileDialog for saving files in my app ( it needs to run in mac app store sandbox ). The default behaviour of setDefaultSuffix on mac ( without sandbox) is that it adds an extension to any name that user
I have a string, and I want to find the locations of every user chosen word inside that string. For instance, if the user chooses "my", I want to find every time "my" is found in the string. Currently I am using: var range = stringCont
This question already has an answer here: Initialize class-instance and access variables in Swift 2 answers Below is code: import UIKit class ViewController: UIViewController, UITableViewDelegate { @IBAction func sliderMoved(sender: UISlider) { var s
I am creating a little game in Swift for OS X to practise but I encountered an error unkonwn to me. It appears when I try to create two new SKSpriteNodes: var battleBegan:Bool = false let beginButton = SKSpriteNode(imageNamed: "button") var back
I was building a Document based app for OS X using Swift in Xcode 6 Beta 4 and it worked fine. After upgrading to Xcode 6 Beta 5, however, I get the following error message every time a document window tries to open: The DocumentType type doesn't map
Could there possibly be hidden files that I would need to find. Or do I have to re-install Python 2.7 if I want to work with it? ThanksPython installations on OS X generally go in separately and don't uninstall each other. Also, the convention is sti
Recently I´ve been changed from a building in my job and I have a small issue. Do you know how can I route a traffic to a specified gateway but only when SSH y used? I have in my macmini 2 network interfaces, the lan and the wifi. - Lan IP Addres: 10
I have no errors when I do git push heroku master. But on heroku open I get Application Error. So I checked heroku logs and the only thing that stuck out was: 2013-04-03T08:03:52+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/ activesupport-3.2
I'm porting my application from Windows to Mac using XCode. One thing my application does is it runs a WebSocket server for communication. I've seen many WebSocket client libraries on github, but I'm having trouble finding one that handles server com
I have a MacBook Alluminium and I want to capture the microphone in a RAW format and output a RAW audio through the speakers, in a standard way, i.e., using the terminal with standard Unix commands and using the standard /dev/??? devices. So, the que
This question is related to the thread here: Today's date, minus X days in shell script But because I'm now manipulating the variable, I started another thread. As described above, I need to get today's date minus 200 days, with the Year, Month, and
I have migrated from Linux (Ubuntu) to Mac OS. I have wrote an application in Java (swing). I have run it successfully the same code in windows and linux but in mac os I have some problems. Here is the code and problems in comments: public MainForm()
In my application, I'm removing (or trying to remove) all records from two core data stores before adding new ones in place. They are 2 simple stores, containing data related to records in the address book (VIContacts contains contact id and a vcard
as the question stated. I am planning to copy android SDK library from my microsoft windows pc to my new Mac PC. Should I download the mac version of sdk or copying the directory from windows to mac is enough ?The SDK (Java part) is identical, but th
I am trying to customize an NSTokenField and after trying several hours I realized that NSTokenField is not customizable enough (at least using public methods). Do you know an alternative to NSTokenField which can be easily customized? Thanks!How abo
1. Install Ruby on Rails sudo gem install rails 2. Install the Juggernaut Gem sudo gem install juggernaut 3. Download the demo app and unpack it. 4. Start the Rails application ruby script/server 5. Start the Juggernaut server juggernaut -c juggernau
I am trying to develop android apps on a MAC Mini and have installed all the required software like android SDK, eclipse and ADT. Everything works well so far except for one thing. I am connecting a Google Nexus phone via the USB and i have put the p
I am trying out a very simple cpp program on osx just to get myself familiar with the osx platform, so I am very surprised to encounter any error message. Here is the code: #include <iostream> using namespace std; int main() { cout << "He
I'm trying to run a script which uses my $HOME variable to set things up (it's gitolite, by the way). However, it's failing because I'm on a system where the home directory path has spaces in it. I want to hack the gitolite bash script at a single po
Can someone help me out on this one. I have a website which was developed on a Mac. When viewing certain text in "verdana" on the Mac all looks great, but on the PC the text is very fine and thin on all browsers. Other text with bold and larger
I have 4 PCs which are connected through the LAN. I am making a PHP program that will differentiate each PC separately and i will keep each pc record. But when i am getting an IP address i am getting same IP for all. I guess i should retrieve MAC add
My problem is not the best scenario for fork(). However, this is the best func I can get. I am working on a Firefox plugin on Mac OSX. To make it robust, I need to create a new process to run my plugin. The problem is, when I forked a new process, mu
I'm having difficulties updating RubyGems from version 1.1.1 to newest. I've tried the following: gem update Result: Updating installed gems Bulk updating Gem source index for: http://gems.rubyforge.org/ Nothing to update and gem install rubygems-upd
There might be applications that are not suited for Core Data - image manipulation programs like Photoshop or Gimp for example. But for applications that are suited for Core Data, say Address Book or iCal, what is the criteria to choose Core Data ove