I am using MacVim (basically gvim for the mac).
If I open macvim from the command line then my $PATH variable will be properly set.
If I open macvim via point and click with the finder, the $PATH variable will NOT be properly set.
Can anyone give me some insight?
Note: I know at least part of my path is set in ~/.bashrc, but ...
Is there a way to setup a network connection that uses a socks4a in any of the Mac OS X api's or maybe even an external library that I can use?
I found that NSStream can use a socks4 or socks5 proxy but there was nothing about socks4a in the documentation that I could find.
...
I'm trying to get IronRuby installed on a Mac and having trouble getting it to compile. If I try to build it using MonoDevelop or to compile it directly with xbuild, I get a messaging saying the compiler is crashing while compiling the Microsoft.Dynamic project. When I try to do the rake scripts, I get the message saying I need pkg-con...
I have a button that adds a token to a NSTokenField. It adds the token always to the end of the field:
NSTokenField *currentField = [sender representedObject];
// Determine which token should be inserted into the field using the tag of the sender.
switch( [sender tag] )
{
case eFileNameToken_StartDate:
...
Normally to change a symlink target one will first unlink the file and then re-creating the symlink with the new target path. However it will be assigned a new inode number.
Maybe there is a private Mac api with an update_target_for_symlink() function, so the inode can stay the same?
In case you wonder what I need it for.. a file mana...
I downloaded the Python 2.6.5 source, built it for OS 10.6.4 64-bit, and installed numerous dependencies. I opened a big project our team has been working on recently, ran the unit tests, and one of the tests failed because I had installed Python built using UCS-2 (I didn't know this was the default of OS X!)
In a nutshell:
I didn't sup...
We have a web-camera and a FireWire camera attached and would like to get input from the second one. But when we use cvCaptureFromCAM(0) and change a number passed as an argument, we're getting data only from a web-camera.
We tried to use OpenCV Private Framework and then it works fine. So, most probably problem is caused by the fact t...
There is an example of XCode project supplied with OpenCV Private Framework. Could you please describe how it can be used with QT Creator?
...
On a Mac I can get an a-grave character by typing Option+` followed by a - voilà !
When using a text widget however, the Option+` combination causes wish to quit unexpectedly.
Is there a way to get around this? Is there a binding that will take care of this, and allow me to insert a character into the text. The language I am dealing wi...
I'm trying to add UTI for a pair of file types, matching by extension. I think I've got it setup properly - at the very least, the file extension -> UTI mapping is recognized (I declared it as an imported type in info.plist). However, when I try to get the UTI off of my test file, I get back a dynamic UTI. Here's the sample code I'm usin...
In Cocoa/ Objective C I need to be able to programmatically find out which app or process has the keyboard focus. This may be done by doing a 'hit-test', but I'm not exactly sure.
I also need to get the process ID number and Window Title of app that has the keyboard focus.
Objective C or C only please!
Snippets appreciated!
...
Essentially I am looking for a way to find the following, but from within Python without having to run system commands:
$ file `which python2.7`
/Library/.../2.7/bin/python2.7: Mach-O universal binary with 2 architectures
/Library/.../2.7/bin/python2.7 (for architecture i386): Mach-O executable i386
/Library/.../2.7/bin/python2.7 (fo...
Does anyone know how to find a list of all the possible error codes thrown by the ostest utility, and their meanings? I noticed this to be a common problem for people, where they ask about an OCUnit failure with some code 138 or 139 that is completely opaque to them, and somebody who has encountered that particular error number points ou...
I'm wondering how to get the iTunes library into a mac application using Cocoa? I want the user to be able to choose a song from the iTunes library and then play that song. How would I do this?
...
How do I programmatically set an application bundle on Mac OS X to run when the user logs in?
Basically, the equivalent of the HKCU\Software\Microsoft\Windows\CurrentVersion\Run registry key in Windows.
...
I have a problem. I'm working on a project for my final year. I'm supposed to allow multiple recordings without having them overwrite each other. My supervisor advised me to put it as '.caf' but i'm not sure how to go about doing it. This is part of my codes:
(IBAction)play:(id)sender
{
if (player->IsRunning())
[self stopPlayQueue]...
For a long time, I've wanted to become a security expert. In fact, I've always wanted to know everything there is to know about computers in general.
So I did some reading on viruses and the different type of environments you can get. What I found is that viruses affect Windows computers more than UNIX due to less people using UNIX for w...
I'm trying to install dia on Mac OSX, but I get an odd error: invalid command name "post-deactivate"
$ sudo port install -d dia
---> Computing dependencies for diaError: Unable to execute port: invalid command name "post-deactivate"
Before reporting a bug, first run the command again with the -d flag to get complete output.
I can't f...
I have a MPMoviePlayerController in my project.
Documentation says that next call:
moviePlayer.initialPlaybackTime = time;
starts at the closest key frame prior to the provided time.
Is it possible to start playing video from the specified time (not from the nearest key frame)?
...
hello,
i want to read MAC address of machine from Adobe AIR. I am using flex 3 and AIR 2.
how can i do this
the main purpose is i want to install that product in only one machine
...