osx-lion

How to build a jabber client using libstrophe

限于喜欢 提交于 2019-12-11 11:46:43
问题 I'm trying to make a simple Jabber client using the libstrophe library. It's going fairly well so far, except for one thing for which I need some clarification. Namely, how am I supposed to (continuously) know the status (i.e., Online/Offline) of contacts, so that I can display it to the user of my program? Similarly, how am I supposed to request the roster of the user? I've looked at the roster.c example provided by libstrophe, but that only prints out the roster once. In a real application,

How To Enable Php Mcrypt on Mac Os X Lion 10.7.4

你离开我真会死。 提交于 2019-12-11 10:52:41
问题 I have been trying to enable mcrypt for two days in OS X. I read lots of document but I could not accomplish. Maybe it is because I am new in OS X environment. The brief summary what I have done so far is; I installed Xcode and installed Command Line Tools. Downloaded and extracted libmcrypt-2.5.8 and php-5.3.15. cd libmcrypt-2.5.8 ./configure && make && sudo make install The output of this is Libraries have been installed in: /usr/local/lib and some other logs like make[2]: Nothing to be

My OpenAL framework is broken, how can I fix it? (OSX Lion)

蹲街弑〆低调 提交于 2019-12-11 10:21:51
问题 I am developing some game code and it works fine on both windows and mac. Also the sound worked perfectly. I use OpenAL for it. Recently I installed the OpenAL OSX installer from Creative Labs. It has overwritten my original Apple OpenAL framework and now my project won't compile anymore (linker errors, wrong architecture and stuff like that). The real question is: can I repair it? Can I find the original Apple OpenAL framework to replace the one on my system? And if not, would someone be so

Open a local html file with url params through applescript

时光怂恿深爱的人放手 提交于 2019-12-11 08:47:47
问题 I need some help with a very simple applescript. I need it to open a local URL on mac with a url parameter. set str to "open -a 'Firefox' file:///Users/bob/Desktop/someFolder/index.html?val=28" do shell script str I can't find a way to get the webpage to open with the parameters, it always just opens the .html. Can someone help? Thanks 回答1: You may want to use Safari, which is scriptable: tell application "Safari" make new document with properties {URL:"http://stackoverflow.com/questions

Any New TextMate resources?

℡╲_俬逩灬. 提交于 2019-12-11 08:28:41
问题 So, I just installed OSX Lion and have been trying to get TextMate setup on it (first time using TextMate). I've found all these links about installing bundles, but I can't seem to get any of them to be loaded into the program. For instance, on pretty much all TextMate bundles, after you pull the code from github, this command is always listed: osascript -e 'tell app "TextMate" to reload bundles' Doing this gives me this response: 2011-09-16 17:32:55.276 osascript[19941:707] Error loading

How do I get a core dump on OS X Lion?

拥有回忆 提交于 2019-12-11 07:59:58
问题 I am working on a PostgreSQL extension in C that segfaults, so I want to look at the core dump file on my OS X Lion box. However, there are no core files in /cores or anywhere else that I can find. It appears that they are enabled in the system but are limited to a size of 0: > sysctl kern.coredump kern.coredump: 1 > ulimit -c 0 I tried setting ulimit -c unlimited in the shell session I'm using to start and stop PostgreSQL, and it seems to stick: > ulimit -c unlimited And yet no matter what I

-bash no such file or directory, but it exists

℡╲_俬逩灬. 提交于 2019-12-11 07:39:42
问题 I've recompiled vim with the ruby flag for command-T awesomeness, and I wrote a script that will automatically do this for me on any machine I ssh into (and run the script), but an issue that I'm running into is that when I alias the newly compiled vim, bash throws a no such file or directory at me. Here's what I have: This works fine: $ alias v="~/Code/vim" But when I put this same line in my .bashrc, I get: -bash: =~/Code/vim: No such file or directory Even funnier, I put this in my .bashrc

UF_TRACKED file flag from stat.h

做~自己de王妃 提交于 2019-12-11 07:36:35
问题 In the header stat.h on osx 10.7 I found define on fileflag UF_TRACKED. I googled that define but didn't find anything about flag. Can you describe me what does this flag mean? I encountered with it when I try to apply attributes to the file wich placed on the mounted folder. That folder is HFS+ folder on the remoted osx 10.7.3. Maybe I can ignore it? And what can happen in that case? 回答1: The UF_TRACKED is a flag which tells HFS to send an event to a tracked file handler in user mode on any

Sublimetext2 Installation on Mac OS X 10.7.4

只愿长相守 提交于 2019-12-11 07:07:27
问题 I am trying to install SBT2 and have following setting OS Mac OS X 10.7 tbc:~ mystic$ which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python tbc:~ mystic$ python -V Python 2.7.2 I downloaded the dmg package from SBT2 website and install it but I get an error after I opened the SBT2 application Unable to run package setup: Failed to load module Traceback (most recent call last): File "./PackageSetup.py", line 7, in <module> import zipfile File "/System/Library/Frameworks

Applescript 10.7:Can’t get anchor “FileVault” of pane id “com.apple.preference.security”

不羁岁月 提交于 2019-12-11 05:47:43
问题 I am trying to access the "FileVault" Tab using Applescript. Can someone help me out? This is where I am getting the error: reveal anchor "FileVault" of pane id "com.apple.preference.security" 回答1: For some reason, the anchor has a different name internally: tell application "System Preferences" get every anchor of pane id "com.apple.preference.security" --> {anchor "Firewall" of pane id "com.apple.preference.security", anchor "FDE" of pane id "com.apple.preference.security", anchor "General"