osx-mavericks

Adding custom font JFreeChart

自古美人都是妖i 提交于 2019-12-14 01:26:04
问题 I am trying to add the following Font to my JFreeChart title: http://www.urbanfonts.com/fonts/Back_to_Bay_6.htm Trying to achieve this with the code: InputStream is = new FileInputStream("backtobay.ttf"); java.awt.Font customFont = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, is); customFont = customFont.deriveFont(24f); chart.getTitle().setFont(customFont); Ends up with a normal font: Any ideas why? Is it possible it has something to do that I am running Mac? public class

OSX Mavericks open .jnlp 1.7 U 45

自古美人都是妖i 提交于 2019-12-13 21:09:56
问题 have someone experience with Java 1.7 update 45 an .jnlp files. I would open an jnlp file, but nothing work. I get the following Error in Java Konsole. I tried to open with terminal. In terminal I get this message: $ ./javaws ~/Downloads/iLinc-session.jnlp objc[428]: Class JavaLaunchHelper is implemented in both /Library/Internet Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java and /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/./libjli.dylib. One of the two

Rails + MySQL on Mavericks - Library not loaded: libmysqlclient.18.dylib

喜夏-厌秋 提交于 2019-12-13 12:28:08
问题 When I run a Rails ( rails s ) app on my localhost (OSX Mavericks), I get this error message:/Users/adam/.rvm/gems/ruby-2.0.0-p481/gems/mysql2-0.3.16/lib/mysql2.rb:8:in `require': dlopen(/Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from: /Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle

bs4: “soup.title.string” doesn't work on IDLE but Terminal

假装没事ソ 提交于 2019-12-13 11:54:15
问题 Mac OS X 10.9 Python 2.7 IDLE BeautifulSoup 4 installed (successfully) I followed BS4 documentation and was practicing some of the functions on IDLE . The following code works and was able to print out title & title.name. from bs4 import BeautifulSoup html = """ <html><head><title>The Dormouse's story</title></head> <body> <p class="title"><b>The Dormouse's story</b></p> <p class="story">Once upon a time there were three little sisters; and their names were <a href="http://example.com/elsie"

How to configure my Python 2.7 to use the correct Babel installation on my OSX Mavericks system?

大兔子大兔子 提交于 2019-12-13 06:23:21
问题 This is the follow up on my previous question. I have an OSX Mavericks machine where I installed Python 2.7 and Babel 1.3 using MacPorts. The problem is that it seems I have at least two versions of babel on that machine and except for the one I installed using MacPort, the other does not have the CLDR locale data files installed, so when I execute the following command in my application directory : pybabel extract -o ./locale/messages.pot ./ I get this error message : [...] writing PO

Installing lxml OSX Mavericks 10.9.2

末鹿安然 提交于 2019-12-13 05:15:27
问题 I am trying to install lxml on 10.9.2 Mavericks and i used all the solutions mentioned here before but i seem to get a different error, the argument '-mno-fused-madd' is unknown, i believe it just triggered a warning back then, but now it throws an error here's the log cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG

PostgreSQL 9.2.4 - Desire to Change the Localhost Server Password in Mavericks & Databases

跟風遠走 提交于 2019-12-13 05:06:36
问题 Currently PostgreSQL 9.2.4 is provided in OSX Mavericks. I have used the provided PostgreSQL since running Lion Server. When I started using it I was using a password that I now realize is not very secure. I am having trouble finding the right command to do this. The user/role (I supposed) that is provided is _postgres. This is the password I would like to change. I attempted the command below but honestly I'm not sure what it is supposed to do. I thought that this would allow me to access

Mavericks system Ruby and gem broken

荒凉一梦 提交于 2019-12-13 04:40:00
问题 When I tried to run ruby -v or gem -v (or any other command), I get: dyld: lazy symbol binding failed: Symbol not found: _ruby_run Referenced from: /usr/local/bin/ruby Expected in: /usr/lib/libruby.dylib dyld: Symbol not found: _ruby_run Referenced from: /usr/local/bin/ruby Expected in: /usr/lib/libruby.dylib This is after I ran rvm system to temporally switch to the system default Ruby. RVM is working fine, but I have a special need to install a gem to the system Ruby and I can't because of

What is the expected output of 'curl http://github.com'?

♀尐吖头ヾ 提交于 2019-12-13 00:53:26
问题 I recently installed Homebrew and ran brew doctor. It looks like everything is OK, but I get what appears to be a very common message: Warning: You have a curlrc flie If you have trouble downloading packages with Homebrew, then maybe this is the problem? If the following command doesn't work, then try removing your curlrc: curl http://github.com When I run it nothing happens: me at my-computer-name in ~ $ curl http://github.com me at my-computer-name in ~ How do I remove my curlrc file, and

Error in making/building mupdf on Mac OS X

為{幸葍}努か 提交于 2019-12-12 23:29:20
问题 I simply using the make command to make/build the mupdf on Mac OS X Mavericks, from its source. But I get this error: fatal error: 'X11/Xlib.h' file not found However X11 is installed on my Mac, and has an entry in the PATH environment variable as well. Can anyone please help on how to get rid of this error and make/build MuPDF? 回答1: Do you have MacPorts installed? If not, do so. Then run: sudo port -pf install xorg-libX11 This should install (amongst other files) /opt/local/include/X11/Xlib