I want to use a foot pedal to press the key, but OS X won't associate a modifier keys across two different devices. I've found some applications that create virtual keyboards, such as synergy+, so I know it must be possible to capture events from 2 devices and merge them as if they were coming from one device. Any ideas on how I can mak...
I've got a Mac that I can run either the Leopard (10.5) or Snow Leopard (10.6) version of OS X on. I'm using it to do web development/testing before publishing files to my production host.
On the production host my site's doc root is under the home directory (e.g. /home/stimulatingpixels/public_html) and I'd like to duplicate that loca...
Question now asked on SU.
I have a Windows XP laptop, and I can run the Cygwin X11 server on there (script startxwin.bat, IIRC). I also use a remote machine - it happens to be a Solaris 10 SPARC machine, about 1800 miles away - that can be called xclient.subdom2.example.com for the purposes of this question.
For better or worse - most...
I have a Star TSP600 thermal receipt printer attached to my macbook via usb. The drivers are installed, and I can print to it using the normal Mac print dialog.
How I can construct a program to send text to the printer? Is there a guide to basic printing interfaces? I generally work in Python, and I'd be willing to learn another langua...
I have multiple custom NSViews in my Cocoa program. I am looking for a way to force them to invalidate without having to add additional code while the program is running. If I were doing this with on Windows with the .NET framework, I would just drag part of my program offscreen and drag back on again. Areas that was offscreen get in...
Consider this code:
import socket
store = []
scount = 0
while True:
scount+=1
print "Creating socket %d" % (scount)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
store.append(s)
Gives the following result:
Creating socket 1
Creating socket 2
...
Creating socket 253
Creating socket 254
Traceback (most recent ca...
I've been fighting with getting the MySQL Ruby Gem up and running on Snow Leopard for the past couple of days.
I have tried all different sorts of things to get this working, and currently have MySQL 5.1.37 x64 installed. After fighting to even get the Gem installed I believe that I finally got it installed, but whenever I attempt to ac...
On Windows, testing different OSes is made simple using VMs. Is there a simple way to do something similar for Mac testing, where I might need to run on Tiger/Leopard/Snow Leopard to verify functionality?
AFAICT, to run OS X in a VM you need OSX server or buy multiple Macs - is that what folks out there do? Or are there other cheaper op...
Hi experts,
The following codes compiled and linked fine with g++-4.0 on a Mac OSX
for_each(As.begin(), As.end(),
boost::lambda::if_then(
boost::lambda::bind(&A::get_string, boost::lambda::_1)==" CA ",
boost::lambda::bind(&std::list<A>::push_back, &As_copy, boost::lambda::_1)
)
);
But when I try to populate a conta...
Generally speaking, I am very happy with the changes in Xcode 3.2. However, there is one thing which is driving me crazy: the "find in file" dialog has been jettisoned for the "find banner." But what is missing in this nifty little banner are the good-old options: starts-with, contains, whole-word, ignore-case, &c
On my dev machine, th...
Hello everyone, I'm trying to figure out why my launchd script is not working. It is extremely simple, but I am new to the mac environment and trying to get accustomed. Here's my plist. I know ProgramArguments is required, so I just put the script path in there...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//...
Hi all, I've tried my best to find out a solution with the many script questions on Stack Overflow and the internet, but I can't seem to find the solution I need.
What I want to do is create a more automated and less clicking solution to remove all the Mobile cached user accounts on a system. I've been logging in and manually going to ...
I've created an OSX app using Jar Bundler from Xcode following this howto: http://www.centerkey.com/mac/java/.
The tool works fine, is launchable and I stop it from the dock, the problem I'm facing is that this tools is a command line server, creates no windows and its stdout and stderr are needed.
Is there a way to create the bundle i...
On request I have implemented support for moving an OS X window by dragging it using an area within the content part of the window, i.e replicating the drag and move functionality of the title bar but in another area.
The problem I have yet to resolve is the fact that if the user drags the mouse quickly it can leave the window area and...
So I've tried to install net::ssh::multi on mac using gems:
gems install net-ssh-multi
The installation went fine, however when I type:
require 'net/ssh/multi'
it says load error.
I have no idea whats wrong with what I'm doing!
...
Hi!
I'm writing a small application in C that reads a simple text file and then outputs the lines one by one. The problem is that the text file contains special characters like Æ, Ø and Å among others. When I run the program in terminal the output for those characters are represented with a "?".
Is there an easy fix?
...
My software is written in Qt 4.4.2 using XCode on Mac OS X 10.5. It runs fine on Mac OS X 10.5. But when it is run on Mac OS X 10.6 it shows some strange visual artefacts when drawing the drop-down menus of QComboBoxes. Apparently it affects every QComboBox.
4 people with Mac OS X 10.6 who have tried it have reported the same behaviour,...
hello,
I am new to Python. I have Python2.6 running now. I am following the Tutorial on the Python site. My question is when I try to follow the instructions here:
http://py-psycopg.darwinports.com/
I get something like...
sudo port install py-psycopg
... bunch of errors here...
Error: The following dependencies failed to build: py-m...
I'm having some trouble squashing some bugs in my iPhone application and I have come to the realisation that I'm not entirely clear on what the significance of a variable being highlighted in red?
Does it mean the variable no longer exists?
...
I'm creating real-time audio sequencer app on OS X.
Real-time synth part is implemented by using AURenderCallback.
Now I'm making function to write rendered result to Wave File (44100Hz 16bit Stereo).
Format for render-callback function is 44100Hz 32bit float Stereo interleaved.
I'm using ExtAudioFileWrite to write to file.
But ExtAudio...