Hi Guys,
I implemented a magic triangle consisting of an Active Directory along with a Mac OS X server Open Directory.
I am trying to implement login and logout scipts via workgroup manager in OD for Active directory users. Other settings like SIMPLE FINDER work fine which confirms that the setup is correct.
I have already enabled the...
I wanted to use postgres with php, and the default install of mac os x, doesn't have the postgres php modules installed. I tried using the entropy.ch install not realizing that it was incompatible with mac os x 10.6. After removing the entropy code, attempts to render php files responded with a textual representation of the php file.
...
Is there a way to program using pure python in Xcode? I want something like the c++ command line utility except for python, I found a tutorial that did not work for me: (after playing around with which active architecture finally decided on i386) when trying to print "Hello, World!" I get the following error "Data Formatters temporarily ...
I had rvm installed for several months and it has system (1.8.7) and installed (1.9.1) rubies listed. And both versions worked fine. Yesterday I tried to update 1.9.1 but after installation it wasn't working and system ruby gone from rvm list. I removed rvm, made clean install of rvm. But when I'm installing 1.9.1 via rvm it says:
info:...
Does anyone know of a way to query OS X in order to find out how much time is actually left before it enters either system sleep or activates the display sleep (or even disk sleep), either via the command line, or any other method (Ruby or Objective-C for instance)?
I thought something like pmset via the command line might have offered ...
A few weeks ago, I was able to build Apps using py2app. I just tried it again and during the build process, I get dumped into a pdb session with the stack trace below.
It appears to be in import problem with modulegraph.py but I have the most update to date version.
This happens even with a bare minimum test file with no imports other ...
Hello,
I am trying to animate an NSPanel derived window with a fade-in while sliding (moving from outside to inside the screen)
What is way to do a such animation?
Thanks in advance for your help,
Regards,
...
I have the following script
#!/bin/bash
/usr/bin/osascript << EOT
set myfile to choose file
EOT
no_ext=$(python -c "print '$myfile'.split('.')[0]")
### this works - just need to know how to pass the arg
R CMD Sweave no_ext.Rnw
pdflatex no_ext.tex
open no_ext.pdf
Can anyone point me to "how to pass the variable myfile corre...
I asked this question originally on SuperUser, but it looks like I'm much more likely to get an answer here. I have git and git-svn installed via Fink. I try to do the following:
$ git svn init http://myserver/myrepo
Initialized empty Git repository in checkout/.git/
$ git svn fetch
error: git-svn died of signal 10
Why is git-svn fail...
If I use
import os
os.system("pdflatex myfile.tex")
from iron python it just works. If I start to Automator and use "Run shell script" switch the shell to python the same command is not executed anymore. Any ideas ?
...
Well, the title says it all. Is it dangerous, insecure or not-so-smart for any other reason to put a custom shell script to /usr/bin and add /usr/bin to $PATH in order to make a custom script executable from everywhere without ./ and the file extension?
Bonus question: can I assign custom icons to custom executable scripts?
...
Hi,
I have used the jarbundler ant task to create an OSX (10.6.4) XXX.app for my java app. The problem is that it starts fine in any other directory except the /Applications directory. A look at file permissions shows nothing amiss. I can get it to work by two methods - both not suitable for real deployments:
Build the .app with Jar...
I have three secrets to store in the Mac OS keychain. Currenly I store each of these in a separate keychain entry. The drawback to this is that if my application is updated the user sees three "allow access" dialogs, one for each entry. What I'd like to do is store all three secrets in one keychain entry. One of these secrets is a us...
Hi! Do you know any (free or commercial) libraries to make my Windows application look like Mac OS X Aqua app? Thank you!
P.S. Do you know what unity3d.com used for their editor on Windows platform?
...
Is there anything like the input manager for TextMate (at the very end of the page) which allows to edit from any Cocoa text edit controls in TextMate? It basically installs a menu "Edit in TextMate...". I tried to search for it, but I have not find anything. I think it would be very nice to have such a feature.
Thanks.
...
I'm developing Qt application for Mac OS X.
Problem is when I create QToolButton it apears with some outline.
http://i.imgur.com/vqtP9.png
I use next stylesheet
QToolButton {
border: 1px solid #575757;
border-radius: 4px;
}
How to remove the outline?
ANSWER:
I didn't mentioned that I'm adding this item to statusBar().
...
I have two USB mice connected to my Mac, one of which I'm using as a scanner. I need access to the Generic X and Y data but I don't want that data to move the cursor. How, under either carbon or cocoa environments, do I tell the system to ignore the mouse as a pointing device?
Edit: after some digging I've found that I can turn off mou...
Hi, I have some problem with the Emacs terminal mode.
I'm a mac user and I use Emacs downloaded from emacsformacosx.com; I installed also ESS and AucTex.
I work with R, LaTex, Sweve and, I menage all with Emacs. When I want to compile the Sweave file I open the terminal and I use the "R CMD Sweave myfile.Rnw" command to generate a myf...
Hello,
I'm trying to figure out how to programatically add a folder to Finder's Places sidebar. I've seen ways to modify it through the Finder Preferences, but I've also seen some applications actually add folders to the sidebar.
If someone has any advice/pointers on what I should look up, it would be greatly appreciated
(This is fo...
I am allocating memory in a C program using malloc. It's possible for my program to allocate more memory than the system has room for, at which point the program crashes. For my purposes it would be better if malloc would just return NULL (like it's apparently supposed to), so I can catch the error. Instead what it does is it throws an e...