Howdy!
I am trying to load my xcode project into textmate so that I can compile and run using the xcode bundle in textmate.
When I compile my project in XCode it works fine, but when I load it up into textmate and I try to compile and run using the XCode bundle I get C99 errors due to my for loop syntax.
Has anyone run into this situa...
I'm trying out a simple AppleScript I found online:
on run argv
set rtn to ((count of argv) as text) & " parameters passed.
The parameters were:
"
repeat with arg in argv
set rtn to rtn & " " & (arg as text) & "
"
end repeat
return rtn
end run
I saved it as an Application. Everytime I double click it from the Finder, I get...
Hi,
I have a simple but realy annoying problem:
I just can't manage to type a simple "©" in STS (SpringSource Tool Suite) on my macbook pro.
In any other editor (even plain eclipse) or application I use "alt + G" as a shortcut, but this does not work in my STS 2.3.3.M2 and was also not working with 2.3.2.
Any idea whats wrong?
thanks
...
I'm trying to (re-)write a program that uses USB controlled scanners. I've got my USBIOInterfaceInterface set up, so I can send and receive messages over the pipes. I am successfully calling WritePipeTO and ReadPipeTO synchronously but I want to read from the scanner asynchronously.
I've tried using ReadPipeAsyncTO, but the callback nev...
Hello Everyone,
I would like to access some values from a CFMutableDictionaryRef and then do some math on them. Using the code below I have managed to print some properties of my battery. I am also able to print out single values (although in doing so I get a warning:invalid receiver type:CFMutableDictionaryRef).
Then I try to convert...
It would all be good to get:
The process ID of each one
How much CPU time gets used by the process
and can we do this for Mac in C or Objective C? Some example code would be awesome!
...
Hi All,
Is there any way i can get a notification when bluetooth is turned on/off.
This is for a personal project not targeted for AppStore.
Are there any C/Mac API's for the same?
...
I'm developing a port of audio player to Mac environment. It works fine under windows, but not with Mac. I got an unpredictable deadlock when I'm playing the music with the player, the only information I can get is to dump the stack of threads of the hanging process. Here is the call stack I get:
Sampling process 1808 for 1 seconds w...
Hi,
I have 2 UIViews and I would like them to replace places in the main view in animation like the mac or a better example is in iMovie, the way how the two windows replacing places.
Thanks!
...
Hello,
Could someone give me some advice or a snippet of code that would show me the way of implementing the method in this listing . I would like to get some info about processes on a mac. I'm not so good with C, but am familiar with Objective C.
Thanks!
...
set fold to "/Users/Test/Desktop/"
set file to "/Myfolder/Hi.txt"
how to join these two variables to get my file path as "/Users/Test/Desktop//Myfolder/Hi.txt"?
...
My Qt app supports changing input language on Linux and Windows. I want to add support for changing input language on MAC OSX, too.
But unfortunately I don't have any information about MAC SDK. (My first and last work with MAC OSX was compiling Qt and compiling my app!)
I googling this problem and found that I need to using Text Input So...
Xcode 4 comes with LLVM. As a casual programmer (i.e. download some open source projects and compile them on a mac via command line), is there any tips for the transition?
...
I have reached the limit of RAM in analyzing large datasets in R. I think my next step is to import these data into a MySQL database and use the RMySQL package. Largely because I don't know database lingo, I haven't been able to figure out how to get beyond installing MySQL with hours of Googling and RSeeking (I am running MySQL and MySQ...
Dear All,
I want to write a script for network security IP scan porpose, such a tool may need spoofing it's host NIC status for testing purpose, for example,
to setup NIC's ip address,
to setup DNS address,
while to setup hostname,
MAC address and
enable/disable the NICs adapter.
I googled and found most soultion is using "popen" ...
I am trying to generate Javadoc html pages for my Android project in Eclipse. I have tried using the -linkoffline argument, as suggested here, as well as using the -classpath argument pointing to my android.jar file. Neither of these worked, as I still get package android.app does not exist (and other) warnings. I have also tried running...
Hi,
I am using JAGS for simulating some MCMC distributions. I see the support for a sizeable set of distributions. But, I would like to sample out of a specific distribution that is not defiend in JAGS. Does anyone know how to write our own custom distributions?
Thanks!
...
I've managed to implement the code on this listing to get a list of all the processes running and their IDs. What I need now is to extract how much time each process uses the CPU.
I've tried referring to the keys in the code, but when I try to print 'Ticks of CPU Time' I get a zero value for all of the processes. Plus, even if I did ge...
Hello,
I have a coding style question which probably should be asked of a senior mac programmer at work - but since I'm the only mac programmer, well, SO it is. I have a pop-up GUI for my software (3D models, data visualization) and the pop-up is Mainly a Tabbed control with a ton of stuff in each tab (sliders, radio buttons, checkboxe...
I need to delete the same line in a large number of text files. I have been trying to use sed, but I cannot get it to delete the newline character at the end. The following successfully deletes the line, but not the newline:
sed -i -e 's/VERSION:1//' *.txt
I have tried using the following to delete the newline also, but it does not wo...