How to install a specific JDK on Mac OS X?

I want to install a specific JDK (the latest for example). For this, I went to the JDK download homepage: http://java.sun.com/javase/downloads/index.jsp. I looked for a Mac version, but I’m a bit surprised to only see downloadable versions for Linux, Windows and Solaris… Here’s the message for Mac: “Apple Computer supplies their own version of Java. … Read more

NSRange from Swift Range?

Problem: NSAttributedString takes an NSRange while I’m using a Swift String that uses Range let text = “Long paragraph saying something goes here!” let textRange = text.startIndex..<text.endIndex let attributedString = NSMutableAttributedString(string: text) text.enumerateSubstringsInRange(textRange, options: NSStringEnumerationOptions.ByWords, { (substring, substringRange, enclosingRange, stop) -> () in if (substring == “saying”) { attributedString.addAttribute(NSForegroundColorAttributeName, value: NSColor.redColor(), range: substringRange) } }) … Read more

How do I determine file encoding in OS X?

I’m trying to enter some UTF-8 characters into a LaTeX file in TextMate (which says its default encoding is UTF-8), but LaTeX doesn’t seem to understand them. Running cat my_file.tex shows the characters properly in Terminal. Running ls -al shows something I’ve never seen before: an “@” by the file listing: -rw-r–r–@ 1 me users … Read more

Xcode build failure “Undefined symbols for architecture x86_64”

An Xcode beginner’s question: It is my first experience with Xcode 4.6.3. I am trying to write a very simple console program, that searches for paired BT devices and prints them to an NSLog. It builds with the following error: Undefined symbols for architecture x86_64: “_OBJC_CLASS_$_IOBluetoothDevice”, referenced from: objc-class-ref in main.o ld: symbol(s) not found … Read more

“You have mail” message in terminal, os X [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions about general computing hardware and software on Stack Overflow. You can edit the question so it’s on-topic for Stack Overflow. Closed 5 years ago. Improve this question Few days ago I got this message in my … Read more

Do on-demand Mac OS X cloud services exist, comparable to Amazon’s EC2 on-demand instances? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. Improve this question Amazon’s EC2 service offers a variety of Linux and Windows OS choices, but I haven’t found a service offering a similar “rent by … Read more

How to send data to local clipboard from a remote SSH session

Borderline ServerFault question, but I’m programming some shell scripts, so I’m trying here first 🙂 Most *nixes have a command that will let you pipe/redirect output to the local clipboard/pasteboard, and retrieve from same. On OS X these commands are pbcopy, pbpaste Is there anyway to replicate this functionality while SSHed into another server? That … Read more