mac

Non-ASCII character Syntax Error in Python while calling URL.

Hi experts, How can data can be sent to the server? For example, I have retrieve MAC address, so I want send to the server (e.g. http://211.21.24.43:8080/data?mac=00-0C-F1-56-98-AD) I found this snippet on the Internet: from urllib2 import Request, urlopen from binascii import b2a_base64 def b64open(url, postdata): req = Request(...

SVN Mac oSX issue - permissions?

Hello there, /Volumes/sites is a connection to a samba share that hosts some of our sites. We authorise using a username & password that is the same user/pass to log onto the mac. When committing, (or even doing a cleanup) from the Mac Client side using the svn command line tool or SCPlugin, this error occurs: Commit succeeded, but ot...

Cocoa: How to make table view draw custom views in each cell

Hello, I am learning Cocoa and trying to create an application for Mac that displays a simple book list. Each book is an NSView with its cover image, title and author. I want to present this list as a NSTableView with a single column and a book view in each cell. However i can't yet figure out how to display a custom view inside a table...

Mouse bugginess - SWFObject, Firefox 3 for Mac, and Flash

I'm pulling my hair out over a problem I'm encountering on Firefox 3.5 & 3.6 on OS X. I'm using SWFobject to embed an AmMap of the US, which has rollover tooltips for various states. The rollovers are working fine in every other browser I've tested, but they're very buggy on FF for Mac--most of the time they don't show up at all, but i...

FOSS solution for a local machine: DNS

Hi, I love my Mac. But I have always found that my DNS lookups are as slow, even while flushing caches and I travel over known roads on the Internet (I frequently visit the same websites over and over again). I was wondering if someone would know something a bit more automatic/intelligent than /etc/hosts and less complex and iron forged...

Editing remote files over SSH, using TextMate?

I LOVE using TextMate on my MacBook. It's great. Unfortunately, I want to edit some files directly on my dev server, since it's difficult to recreate the environment locally. I'm using Git, so one alternative is to just edit locally, git commit, git push, and then git merge, but that's kind of complicated every time I want to make a sim...

NSColor transparency on black background?

In the background of my view, I draw a light blue color. And in the middle, i have a square box that is supposed to have an even lighter gray in it that has a 20% transparency. But for some reason the transparency is on top of a black background instead of a blue. I'm sorry If i'm not being clear. ...

Scheme Editor/IDE for Mac

I've begun working through Structure and Interpretation of Computer Programs. Dutifully, I've installed mit-scheme. What I need now is an editor/IDE for the Mac that can handle the indentation and balance parentheses (or advice on how to best to configure the packaged tools). Any suggestions? TIA ...

Customizing Cocoas NSFontPanel

What customization options are there for Cocoas NSFontPanel? The NSFontPanel accessible in iWork Pages has "Text Underline", "Text Strikethrough" and "Document Color" controls at the top. We don't want these in our NSFontPanel. Is there any way to remove or disable these controls? ...

Change the Cursor Image on Mac irrespective of which applicatoin is on Top

Hello All, I want to Change the Cursor Image on Mac irrespective of which application is on Top or in focus. Can some one direct to related source code or some hints would be helpful? I am using Carbon, C++ Thanks Rahul ...

Applescript, how to get network address of a file

We are a network of Mac computers. I would like to send email addresses to colleagues with links to files on network locations. I made the following applescript: tell application "Finder" set uuu to URL of the first item of (get the selection) set the clipboard to uuu end tell which puts the URL of the currently selected file into th...

How to obtain MAC address of WiFi network interface?

It seems the java.net.NetworkInterface implementation of android does not have a byte[] getHardwareAddress() method http://developer.android.com/reference/java/net/NetworkInterface.html I've found several forums of people trying to do this with no definitive answer, I need to get a somewhat cross-device UUID, so I can't rely on phone n...

Writing a CSV file for Mac users with PHP

I use a generic algorithm to write CSV files that in theory works for the major OSes. However, the client started to use Mac a few weeks ago, and they keep telling me the CSV file cannot be read in Microsoft Excel 2008 for Mac 12.2.1. They have their OS configured to use "semicolon ;" as list separator, which is exactly what I am writin...

Auto sorting of icons on window resize

Hello. I know this is a newbie question but I have never found an answer to this problem and I thought I would ask here. Where do you enable the option (if there's any) to automatically sort and line up the icons in a finder window, when you resize it? I have the default Windows' behaviour in mind where the icons take all the available...

Synthetic click doesn't switch application's menu bar (Mac OS X)

Hi. I'm developing some sort of air mouse application for iPhone platform. This applications connects to one computer service which generates mouse events on Mac OS X. I'm generating this events with CGEventCreateMouseEvent() and CGEventPost(). But I've encountered one problem. Let's say you are using Safari and then you click on free de...

Location of New Window after old window closed

I have an app that allows multiple windows. I have a strange bug where, if I repeatedly open and close windows, new windows are positioned lower and lower on the screen. I would expect this if I were keeping the windows open, but it seems that the OS X window tiling mechanism is unaware of when my windows are closing. Potentially re...

Reading Alias files

I want to read alias in Mac OS X programatically. When I tried it always read original file. Any idea how it can be done? thanks for your all suggestions. ...

How do I programmatically change keyboard layout with Cocoa?

How can I programmatically change the keyboard layout in Cocoa? Assume I have, say, two active ones "Estonian" and "U.S." in the System Preferences (i.e. those two layouts visible in the keyboard layout menu bar). So how would I read that those two are available, and how would I programmatically change between them? ...

Is there a Mac client for Microsoft team foundation server?

Does a Mac client exist for Microsoft's Team Foundation Server so that I can access the code repository from my mac? Edit: I'm really looking for something free (or close to it) since I would have a hard time convincing independent collaborators to spend $200 on a source control product. ...

How to create make .so files from code written in C or C++ that are usable from Python

Looking at Python modules and at code in the "lib-dnyload" directory in the Python framework, I noticed whenever code is creating some kind of GUI or graphic it imports a non-Python file with a .so extension. And there are tons .so files in "lib-dnyload". From googling things I found that these files are called shared objects and are w...