I've got a CUPS job control file (these can be found at /var/spool/cups/cnnnnn). I need to get the actual dimensions of the print that was made.
This is the way I've figured out to do it:
Get the paper name using the media attribute. (e.g. Letter)
Get the printer uri from the printer-uri attribute. (e.g. ipp://localhost/printers/M...
Hi Guys,
I have to check memory performance of my application, I have solved Leaks now I want to improve the performance of memory.
So, please tell me the process how can I fix and improve the memory performance.
Thank You.
...
I'm in the process of getting Sendmail/Postfix setup so that I can send and test my PHP scripts when using the mail() function.
I've got to the point that when I run the mail() function in PHP, the script executes without any errors and the mail is sent to my mailq but it then does not get processed and simply times-out with a message o...
Hi i'm trying to build Liferay from source, i've downloaded liferay-portal-src-5.2.3.zip but when i go in and press "ant start" i got 3 errors:
SampleSQLBuilder.java:139: cannot find symbol > _counter = new SimpleCounter(counterOffset);
EditServerAction.java:401: cannot find symbol > Log4JUtil.setLevel(loggerName, priority);
EditUserPo...
I'm trying to make a simple app that sits on the Mac OSX menu bar and alerts users of updates on our website.
I've been trying to search for documents on how to do this, but no luck so far. Can anyone point me in the right direction?
Thanks!
...
I know python has a py2app, I was wondering if Ruby has anything like that. I know there is OCRA for windows, but what about for OS X?
...
Hi,
Trying to load a shared lib out of the current '.' dir in a unit test on osx.
What works on Linux and Netbsd there is a symlink _mymodule.so --> ../.libs/libmymodule.so
but on osx, python's import mymodule won't find
_mymodule.dylib --> ../.libs/libmymodule.dylib
I've tried adding
export DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH
...
Hello,
If I write an application in java, does it use native widgets if run on Mac OS X? Or does it use "lookalike" widgets provided by the java runtime?
Thanks.
...
Hi,
i have a plist placed inside en.lproj. I am trying to get its path this way,
NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
NSMutableString *localizedPath = [[NSMutableString alloc] initWithFormat:@"%@/%@.%@/%@",bundlePath,lang,@"lproj",@"1.plist"];
where 1.plist is in en.lproj/1.plist put in resources.
Does [[NSBund...
Hello there, i'm on this bug for a week now, and i can't solve it.
I have some crash with coregraphic calls, it happen randomly (sometimes after 2 mn, or just at the start), but often at the same places in the code.
I have a class that just wrap a CGContext, it have a CGContextRef as member.
This Object is re-created each time DrawRect(...
Hi all,
Am working on file / folder event capturing of OS X 10.5 and 10.6 versions. My application is developed using Python 3.1.1. Donno whether FSEvents are supported by Python 3.1.1.
If FSEvents are not supported by Python 3.x, is there any other way to do this using Python 3.x?
regards,
Kingsley Reuben
...
Or in other words, does the order of functions in the function name list matter? It does on windows, for loading by ordinal. I don't think such a thing exists on OsX. Using Google I don't find anything, but Google will only find things that do exist, and not prove that they don't exist ;) I might just not be using the right search terms....
I want to get the hardware address of my mac's ethernet card. In all samples I saw in include on IOKit/assert.h . Which doesn't seem to exist on my system. GCC throws an error saying he doesn't know the type IOEthernetAddress.
Is assert.h necessary for my task? It would be great if someone coud give me a working sample.
[edit] here's my ...
Evening,
So I've recently installed VPython on my MacBook (OS X, Snow Leopard) - and it works absolutely fine in IDLE and from the command line (interactive mode). However, eclipse has issues.
Firstly it couldn't find it (which is a bit of an issue actually with all these 'easy install' python modules - when they don't tell you where t...
I am working on application that uses cocotron and the method orderedIndex is not supported in that API. I am trying to recreate the functionality of this method using the orderedWindows method of NSApplication but it seems to be a little different. The method I have created goes through the orderedWindows array and checks each element...
Hello! I recently created my first bash script, and I am having problems perfecting it's operation. I am trying to copy certain folders from one local drive, to a network drive. I am having the problem of deleting folders once they are copied over, sometimes the folder would be empty of contents, but the folder itself would remain, other...
I have old code that uses size_t which IIRC comes from cstring.h.
On OS X, I either dont know how to find/use this or it is not available.
What would I replace it with?
...
Hi all,
I just installed gd2 using mac ports (sudo install gd2), which installed libraries in the following places:
/opt/local/include/gd.h
/opt/local/lib/libgd.dylib (link)
/opt/local/lib/libgd.la
/opt/local/lib/libgd.a
Here is my make file also:
dev: main.o
g++ -L/opt/local/lib -I/opt/local/include -lgd -lpng -lz -ljpeg -lfree...
Hi,
I'm having problems compiling a CUDA program that uses GLUT on MacOsX. Here is the command line I use to compile the source:
nvcc main.c -o main -Xlinker "-L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL -lGLU" "-L/System/Library/Frameworks/GLUT.framework"
And here is the errors I get:
Undefined symbols:
"_glutInitW...
I just bought a new MacBook Pro which comes with Snow Leopard 10.6.2 (Mac OS X 10.6.2). I am used to using XAMPP as my local development server on XP. Since Mac OS X is based on Unix, I was thinking on activating/installing all the necessary stuff as I would normally do on Linux. However, I am not quite ready to be playing around with th...