osx-yosemite

Change localhost directory for Yosemite Apache 2.4

余生颓废 提交于 2019-12-02 16:45:36
I have clean installed Mac OSX Yosemite but I cant configure the Apache 2.4 like I have always done on older OSX versions. Here is what I want to do : set the "localhost" directory to "/Users/username/Public/". But, everything I tried won't work, I always get a "Forbiden, can't access to /" or I get the default "It works!" page... How to simply reroot my localhost ? Thx EDIT (thanks to Krister Andersson for the answer) For Mac OSX 10.10 Yosemite I also post the changes I had to do to keep things running. In "/etc/apache2/users/", I created a file named by my username like this "myUsername.conf

To open “Eclipse” you need to install the legacy Java SE 6 runtime

╄→гoц情女王★ 提交于 2019-12-02 15:43:45
Just installed a fresh version of Kepler 64bit "for Java Developers" on Yosemite, getting this error on first launch. Any thoughts on how to fix? Really do not want to downgrade my Java version! I just encountered this in another Eclipse-based app on Yosemite and figured out (with help from the references below) how to get the app running without installing the legacy Java SE 6 JRE. Here are the steps in case it helps other devs get Eclipse working. PRECONDITIONS $ sw_vers -productVersion 10.10.1 $ java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java

How to detect dark mode in Yosemite to change the status bar menu icon

爷,独闯天下 提交于 2019-12-02 15:38:11
The status bar app icon has to be changed when dark mode is enabled in Yosemite. How to detect if dark mode has been enabled ? Is there any notification for the same ? Is it better to display another image or change the alpha value of existing Image ? Need inputs on which is the better way to go ?? bergdesign You should make use of template images wherever possible because they allow your UI to automatically adapt to changes made by the system (at least when there's not a bug in the system... http://indiestack.com/2014/10/yosemites-dark-mode/ ). But in the case where you might use a custom

iTerm2 slide down over full screen app

泪湿孤枕 提交于 2019-12-02 15:10:14
I always have my IDE (phpStorm) in full screen mode (Yosemite). I want my iTerm2 hotkey to slide my terminal window down over the IDE, so it doesn't open up a new space for the terminal window. As once the window slides back up it leaves me on an empty space, rather than going back to phpStorm. Friendka Attention ! See Update3 for new iTerm versions (works for 2.1.5) Original Answer This command allows iTerm to work over fullscreen apps defaults write ~/Applications/iTerm.app/Contents/Info LSUIElement true But it hides iTerm's context menu. To access iTerm's preferences, right-click on the

Java Error - net.ucanaccess.jdbc.UcanaccessSQLException: malformed string: '

非 Y 不嫁゛ 提交于 2019-12-02 13:16:30
I have an error using uCanaccess to retrieve my database which I have saved in my desktop. My code is below: package Week11Package; import java.util.Scanner; import java.sql.*; public class dbTest1 { static Scanner input = new Scanner (System.in); static String url; static Connection aConnection; static Statement aStatement; static boolean gotIt = false; public static void main(String[] args) { dbTest1.initialize(); } public static void initialize() { //establish the DB connection. url = "jdbc:odbc:MS Access Database;DBQ=.//Teams.accdb"; try { //load the jdbc - odbc bridge for Windows Class

Text input fields in Swing stop working on OS X when holding keys down

狂风中的少年 提交于 2019-12-02 09:49:25
问题 I discovered a strange problem with Swing text input fields on OS X Yosemite (using Oracle JDK 8). When I hold down any letter or number key while a text input field has the focus, I can afterwards no longer enter anything in any field of the current JFrame. I then have to close the frame and reopen it to be able again to enter text. The default behaviour in OS X is to bring up a small menu to choose special letters from when holding down a key for a longer time. I guess that the Swing inputs

Unable to open a connection to an FTDI device

自闭症网瘾萝莉.ら 提交于 2019-12-02 09:35:48
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 if/when the FTDI device is connected over USB: DWORD deviceCount = 0; FT_STATUS ftdiPortStatus = FT_ListDevices(&deviceCount, NULL, FT_LIST_NUMBER_ONLY) if (ftdiPortStatus == FT_OK) { // The debugger tells me the deviceCount is now 1 ... } However, if I try to open a connection to the device using either of the

Arrow keys in Xcode 6 not working

走远了吗. 提交于 2019-12-02 08:46:35
I have the weirdest issue with Xcode 6 on OS X Yosemite. For some reason I can't use the left and right arrow keys anymore to navigate within my source code. Instead, the system beep sound would come up. Up and down arrows work fine. I'm afraid it could have something to do with my fiddling around with the key bindings. In only changed the ones for block (de)indentation though (originally CMD+[, changed to TAB), so in my understanding the arrow keys shouldn't be affected at all. I was able to make it work again by running defaults delete com.apple.dt.Xcode in the terminal and then restarting

Build opencv 2.4.10 on Mac 10.10.3 failed

半腔热情 提交于 2019-12-02 05:08:15
问题 I tried to build opencv 2.4.10 on Mac 10.10.3 with Xcode 6.3. And the following errors occurred by building. /Users/Shirui/work/program/opencv-2.4.10/modules/legacy/src/calibfilter.cpp:98:9: error: comparison of array 'this->latestPoints' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare] if (latestPoints != NULL) ^~~~~~~~~~~~ ~~~~ /Users/Shirui/work/program/opencv-2.4.10/modules/legacy/src/calibfilter.cpp:526:9: error: address of array 'this->latestCounts'

How do I get the current wifi network name after Yosemite in Swift?

北城以北 提交于 2019-12-02 05:06:20
问题 In Mavericks I was using [CWInterface interface] to grab the currently connected network. That has been deprecated for Yosemite. As usual Apple documentation provides no guidance on this topic. So how can I get the currently connected Wifi network name in Yosemite with Swift? 回答1: Xcode 10.2 • Swift 5 or later • OSX Mojave import CoreWLAN var ssid: String { return CWWiFiClient.shared().interface(withName: nil)?.ssid() ?? "" } 回答2: So I figured it out. If you pass nil to the interfaceName , it