osx-yosemite

Unable to connect to postgresql database after upgrading to Yosemite 10.10

扶醉桌前 提交于 2019-12-20 11:55:53
问题 After updating to Yosemite 10.10 I cannot connect to my postgresql database. I run the rails console and try and get the first user but get this error... > ➜ game_golf git:(master) ✗ rails c > Loading development environment (Rails 4.1.4) > [1] pry(main)> User.first > PG::ConnectionBad: could not connect to server: Connection refused > Is the server running on host "localhost" (::1) and accepting > TCP/IP connections on port 5432? > could not connect to server: Connection refused > Is the

compiling caffe on Yosemite

删除回忆录丶 提交于 2019-12-20 10:46:06
问题 I'm trying to install caffe on Yosemite, and my C is not the strongest. Here is my error: Alis-MacBook-Pro:caffe ali$ make all NVCC src/caffe/layers/absval_layer.cu /usr/local/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp(27): error: expected a ";" /usr/local/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp(29): error: inline specifier allowed on function declarations only /usr/local/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp(29): error: incomplete type is not

youtube-dl DASH video and audio in highest quality without human intervention

天大地大妈咪最大 提交于 2019-12-20 10:13:23
问题 With youtube-dl I first look what video quality is available and then in second step I download highest possible quality (in this example -f 137+140 ). Youtube-dl will automatically merge audio and video stream (DASH format) How to automate that with shell script? Too choose with every video highest audio and video quality? > youtube-dl -F 'https://www.youtube.com/watch?v=VAdRBLyjLRQ&feature=youtu.be&t=8m14s' [youtube] Downloading login page [youtube] Logging in [youtube] VAdRBLyjLRQ:

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

半腔热情 提交于 2019-12-20 07:44:41
问题 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 =

Can't disable background blur with NSPopover

陌路散爱 提交于 2019-12-20 04:24:34
问题 I'm having no luck trying to get NSPopover back to its 10.9 appearance when running in 10.10. I have a popover which is attached to an NSView that the user drags around. The popover must be transparent so the user can still see the position of the other UI elements underneath. All works fine under 10.9 but now under 10.10 with Apple's new gimmicky blurs, I can't seem to get back to the same appearance on 10.10 (unless like me, the user has enabled "Reduce Transparency" in System Preferences >

Character constant too long for it's type

萝らか妹 提交于 2019-12-20 04:22:40
问题 I wanted to try to make a text based game, but for item2 - item6 it says, !multi-character character constant. character constant too long for its type. Implicit conversion from 'int' to 'char' changes value from 175174007 to 103. #include <stdio.h> int main() { int monster,lion; char action,item1,item2,item3,item4,item5,item6; action = 0; monster = 5; lion = 3; item1 = 'lamp'; item2 = 'axe'; item3 = 'nothing'; item4 = 'nothing'; item5 = 'nothing'; item6 = 'nothing'; 回答1: You are assigning

PHP warning on Mac mini running Yosemite 10.10.5

。_饼干妹妹 提交于 2019-12-20 04:13:51
问题 When I type php -v in the terminal on my mac mini I get the following error message: "PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so' - dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so, 9): image not found in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/Server.app

Trouble downloading XCode 6.1 on Mac OS X Yosemite

泪湿孤枕 提交于 2019-12-19 13:48:56
问题 after upgrading my Mac to Yosemite I've had trouble downloading XCode 6.1 Every time I tried I got an error saying: This item is temporarily unavailable. Try again later. I have tried again later, for a couple days, with no luck. I have found this Apple forum post really helpful, but I did not want to download the third party tools. I have solved the problem by searching for XCode: sudo find / -name *XCode* Which returned: /private/var/folders/zn/ltz89cf17wj09s3bz6rnrwyc0000gn/C/com.apple

Trouble downloading XCode 6.1 on Mac OS X Yosemite

╄→гoц情女王★ 提交于 2019-12-19 13:48:55
问题 after upgrading my Mac to Yosemite I've had trouble downloading XCode 6.1 Every time I tried I got an error saying: This item is temporarily unavailable. Try again later. I have tried again later, for a couple days, with no luck. I have found this Apple forum post really helpful, but I did not want to download the third party tools. I have solved the problem by searching for XCode: sudo find / -name *XCode* Which returned: /private/var/folders/zn/ltz89cf17wj09s3bz6rnrwyc0000gn/C/com.apple

Unable to sign app bundle using Qt frameworks on OS X 10.10

限于喜欢 提交于 2019-12-19 09:29:58
问题 I am having trouble signing Qt Based application un OS X. I am using Qt 5.3.2. I have read various information source that contain contradictory information. Here is the content of my application bundle after I run the bin/macdeployqt Qt utility SimpleHello.app/ Contents/ Info.plist PkgInfo Frameworks/ QtCore.framework/ Resources/ Versions/ 5/ QtCore QtGui.framework/ ... same as Qt core QtPrintSupport.framework/ ... same as Qt core QtWidgets.framework/ ... same as Qt core MacOS/ SimpleHello