mac

cannot run java app on mac properly

Hello everybody.. I have small problem..I created a java App in windows and my .jar consist of whole app..i copied this jar file to mac and executed it from there it works fine.. Java App consists of bonjour code if i execute .jar on windows it works fine and bonjour starts advertising...But,for mac the app runs fine but doesnot adverti...

How to let Mac and Windows users change their AD password?

I need to look for an example of a web application, preferably ASP.NET but any otherweb language will do, that lets Mac and Windows users change their AD password. Any technique, application, or source code will be great. P.S: our Macs are not connected to AD and we also have Windows users. Thanks! ...

Perl on MacOS X 10.6.2: GDBM_File missing, how to install or work around?

When I need a Perl module, I typically use CPAN. It works fine. But not this time. I want to use MARC::Charset, but this one uses GDBM_File, and I can't seem to install GDBM_File from CPAN. CPAN finds it all right, but trying to install it, it starts installing the full Perl 5.10.1 distribution. MARC::Charset is a rather old module, s...

How to receive and play back a SHOUTcast audio stream on the mac or iphone?

Are there solutions in C or Objective-C to receive and play back SHOUTcast audio streams on the mac or iphone? ...

Hex editor for Mac OSX

Hi, Needed ideas on good hex editors/assemblers/disassemblers for Mac, other than gdb. Lola ...

Lightweight editor for Mac that highlights all occurrences of a word

My question is similar to this one: http://stackoverflow.com/questions/385661/emacs-highlight-all-occurences-of-a-word In Notepad++ editor, there's a convenient feature: if you select a word in your text (not necessarily a keyword), the word is highlighted throughout the text. Is there any similar way in a lightweight editor for Mac? I...

Java pre-installed in Windows and Linux?

I know that Java is pre-installed in Mac OS X but i wonder if it is pre-installed in Windows XP, Vista, 7 and all Linux distros? ...

Comparisons Windows and Mac OS X as development environment

I have been using Visual Studio (VC++) and Windows API for a long time, and quite familiar with Linux tool chains, but have no experience on Mac OS X development. I would like to hear your opinions about the pros and cons of Windows and Mac as development environment. But, as it may be subjective, I would appreciate if you could enumera...

Mac Audio framework

I know that AVFoundation framework works on iPhone. Does the same framework be used for Mac as well to play and record sounds??? Basically I want to write an application to play 2 music files parallelly and record the music that is being played. Is it possible??? ...

jQuery script not working when page viewed on localhost

I'm just starting to playing around on a Mac for the first time and have created a very simple html page that uses jQuery to do a simple text swap when an h1 tag is clicked. When I don't view the page through the webserver and just open it directly in Safari (file:///Applications/xampp/xamppfiles/htdocs/test/mypage.html) it works as ex...

Mac solution for "safe" alternatives to "unsafe" C/C++ Standard Library functions?

What's the best one-stop-shop "safe" C library solution on the Mac? I use quotes on "safe"/"unsafe" because there is much debate as to the benefits of certain Standard Library functions or their putatively improved alternatives. Many traditional Standard C Library functions (e.g., vfprintf) are considered to be unsafe due to the potent...

Xcode property list editor shows Mac app attributes instead of iPhone app attributes. How do I fix it?

Hi. My Xcode is configured for iPhone dev, and it worked well until yesterday. But it's property list editor currently shows me Mac app's attributes for my iPhone project which includes 'Java', "plugin" and "quicklook" related items. OK, I can input them manually, but it means something wrong to my IDE, so it does not sure it works corr...

High-resolution icon for file in Mac OS X?

I am looking for a method exactly like -[NSWorkspace iconForFile:] but which returns the icon in a higher resolution if possible. In particular, I have an app which makes use of QuickLook to display previews of files, and I'd like it to fall back to the file icon if no quick look plugin is available. Using the iconForFile: method, howe...

Deploying Mono Apps on MacOS

I have an app that was developed for Windows but runs fine on MacOS under mono without any modifications (yay!). However, since it's an exectutable, OSX doesn't recognize it as a native file type, meaning you have to drop to the command line to run 'mono appname.exe'. It also doesn't show the application icon. In case it matters, my t...

Mac Quick Look Preview in an NSView or NSImage?

I am looking for a way (public or otherwise) to get an NSView, NSImage, CGImageRef, etc that shows the QuickLook preview for a file. Essentially the equivalent of QLThumbnailImageCreate() but for the preview. The public APIs I can find do not support this. They allow the creation of a thumbnail image or a QLPreviewPanel. The panel do...

File size in Snow Leopard

Hello there! I'm trying to figure out how to convert a file's (or directory's) byte size into kilobytes, megabytes, gigabytes, etc... respectively according the file's or directory's size so that is matches what the Finder displays in the panel when you hit "Get Info". The byte size I get perfectly matches the byte size as reported in...

Cmdline Bash Variable Weirdness

I want to set an alias like so: alias hi='TEST=ok echo $TEST' However, it doesn't seem to work reliably. I start with: unalias hi unset TEST Then: $ alias hi="TEST=ok echo $TEST" $ hi $ This is on MacOSX: $ bash --version GNU bash, version 3.2.17(1)-release (i386-apple-darwin9.0) Copyright (C) 2005 Free Software Foundatio...

Can Large Python Scripts Drain DiskSpace?

UPDATE: Interestingly, after almost 15min, I seem to have AUTOMATICALLY restored about 500MB. Hows this happening? I'm on Mac OSX 10.5.6(Leopard). I wrote a python script for a Project-Euler problem. My script had a loop which iterated for an enormous count like 600851475143. Used Vi and Python on Mac's Terminal. I didn't get the resu...

Java applets launched using deployJava.js not working for Opera/Chrome on Mac?

I noticed that the launching of Java applets using deployJava.js seems to have stopped working on some Mac browsers. Safari and FF still work, but Opera and Chrome send the user to Java installation page, as if the plugin was not found. Take for example this. If you click the launch button in Opera, it sends you to a Java installation...

What mark up language is there for Mac Os developers?

So Adobe gives GIVES US mxml FOR AIR ( Flash ) design/development (cross platform, ActionScript) Microsoft gives us XAML for .Net design/development (Windows, Silverlight, C# + VB+ F# +...) What mark up language gives us Apple for design/development of our Mac native apps?!? ...