osx-yosemite

Rails 'parse_query' error on server in brand new app

柔情痞子 提交于 2019-11-26 17:18:39
问题 I have installed on OS X 10.10.3: homebrew, command line tools, then installed ruby using rbenv: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] Rails 4.2.2 when I create a new app (with default sqlite database) and try to run it, it says: => Booting WEBrick => Rails 4.2.2 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server [2015-06-18 23:11:30] INFO WEBrick 1.3.1 [2015-06-18 23:11:30] INFO

Yosemite / El Capitan php-gd + mcrypt installation

喜欢而已 提交于 2019-11-26 17:14:52
How to install/enable php-gd and mcrypt in Yosemite 10.10 - PHP 5.5.14 build? note that following steps install newest PHP 5.5.x To check if you have gd and mcrypt installed use $ php -m to display compiled in modules, continue if you are missing desired modules and please see accepted answer . GD So, Apple installed GD (and you're using their build of PHP, which is fine), but did not include support for PNG. You are definitely missing "full" gd (with png support) module if: imagecreatefrompng() function is missing. "Call to undefined function imagecreatefrompng()" Mcrypt install brew using

How to auto-load MySQL on startup on OS X Yosemite / El Capitan

99封情书 提交于 2019-11-26 15:04:45
问题 After upgrading OS X my install of MySQL stopped loading on startup. This walk-through on MySQL says: "The Startup Item installation adds a variable MYSQLCOM=-YES- to the system configuration file /etc/hostconfig. If you want to disable the automatic startup of MySQL, change this variable to MYSQLCOM=-NO-." So, I opened that file and it says: # This file is going away AFPSERVER=-NO- AUTHSERVER=-NO- TIMESYNC=-NO- QTSSERVER=-NO- MYSQLCOM=-YES- I assume OSX dev's added the # This file is going

`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)

匆匆过客 提交于 2019-11-26 13:53:29
I use postgres from homebrew in my OS X, but when I reboot my system, sometimes the postgres doesn't start after the reboot, and so I manually tried to start it with postgres -D /usr/local/var/postgres , but then the error occurred with the following message: FATAL: could not open directory "pg_tblspc": No such file or directory . The last time it occurred, I couldn't get it to the original state, so I decided to uninstall the whole postgres system and then re-installed it and created users, tables, datasets, etc... It was so disgusting, but it frequently occurs on my system, say once in a few

osx 10.10 Curl POST to HTTPS url gives SSLRead() error

…衆ロ難τιáo~ 提交于 2019-11-26 12:08:50
I just recently upgraded to OSX 10.10 Yosemite and I since the upgrade I can't do Curl POST to a SSL url anymore. I first used wordpress's wp_remote_request call and also tried to use curl in php. Both (as expected) give the same error message: Error Number:56 Error String:SSLRead() return error -9806 Note: when I curl POST to HTTP it works fine. I reckon it is a setting in PHP.ini or in my apache (I lost my original HTTPD.conf file after upgrade...). Can anyone help me out? I've seen this error happen when php is compiled with a version of cURL that uses Apple's Secure Transport under

macOS window with integrated title bar and toolbar?

放肆的年华 提交于 2019-11-26 10:21:36
问题 In macOS how can I create a window with an \"integrated title bar and toolbar\" in Xcode and/or Interface Builder? This is the \"fat title bar\" type of window that was added to apps such as Safari and Calendar in OS X 10.10 Yosemite. Unified title bar and toolbar plus other gadgets. macOS Human Interface Guidelines: Title Bar and Toolbar A toolbar, when included, resides beneath the title bar (or is integrated with the title bar) and includes controls—known as toolbar items—that provide

`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)

给你一囗甜甜゛ 提交于 2019-11-26 08:51:38
问题 I use postgres from homebrew in my OS X, but when I reboot my system, sometimes the postgres doesn\'t start after the reboot, and so I manually tried to start it with postgres -D /usr/local/var/postgres , but then the error occurred with the following message: FATAL: could not open directory \"pg_tblspc\": No such file or directory . The last time it occurred, I couldn\'t get it to the original state, so I decided to uninstall the whole postgres system and then re-installed it and created

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

徘徊边缘 提交于 2019-11-26 08:15:41
问题 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 is ApacheBench, Version 2.3 <$Revision: 1604373 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/

`Apache` `localhost/~username/` not working

岁酱吖の 提交于 2019-11-26 07:52:55
问题 UPDATE : The following answer will also work for El Capitan. For people who just start, the file mentioned below is under /etc/apache2 For the answer below, the file that also need to be changed is /etc/apache2/extra/httpd-userdir.conf ORIGINAL : So I just recently upgrade to Mac OS X Yosemite and I need to set up my Apache again. I create a folder \"Sites\" under /user/kevin and change file permission to 777 and uncomment the php5module line in /etc/apache2/httpd.conf just like before.

Cocoapods with Xcode 6 and 10.10 Yosemite

白昼怎懂夜的黑 提交于 2019-11-26 06:16:08
问题 After initially upgrading to 10.10 and XCode6-Beta, I tried to run \'pod update\' and I received this error: cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError) I tried to update Cocoapods using \'sudo gem install cocoapods\', but received another error: Fetching: xcodeproj-0.17.0.gem (100%) Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. \"/System/Library