mac

DotNetZip: creating zip with C# permissions issue

I am using DotNetZip and have noticed that i am getting permission issues on Mac's. This seems to only occur when i use content disposition. ie if i just save it to disk using (ZipFile zip = new ZipFile(@"C:\zip\temp.zip")) { // this works fine } but if i use content disposition like so, on mac the user permissions are denied ( e...

How to make an iTunes like (playlists, library) left-sided (collapsible) navigation bar?

I am talking about the navigation area on the left side of iTunes for Library and Playlists. I'm wondering if this is a built in class (which I couldn't find documented) or something custom implemented by Apple. I'm working an a mac application where I want to include that type of navigation. I want to allow people to "fold" the catego...

In Eclipse, how can I move all my source files to a different folder without screwing up the project?

I have created my ActionScript source files in a folder on a Mac (I normally use PC), and somehow managed to make an Eclipse/FDT project that can see them. I now need to move them into a svn checkout of an existing project to get them under source control. I just can't work out how you do this without losing all references in the proje...

Do you use the original (German) apple keyboard/keyboard layout when programming on mac?

I'm a programmer, working with different languages/Formats (Java, Python, Xml, Html, Objective-C ect.). From time to I've to work on a Mac and I'm not very comfortable with the German keyboard layout for programming. Is there somebody with the same problem and, if so, how did you solve it? ...

X11 libaries in OSX 10.5?

I have (I believe) a fairly standard 10.5 installation, and I'm trying to compile.. Well, I'm trying to compile T.38modem, which requires OPAL which requires pwlib which requires libX11. Kinda dumb, but whatever. The problem is that in /usr/X11/lib, I have the following: Brians-mini$ nol libX11.* lrwxr-xr-x 1 root wheel 14 Mar 3 2008 l...

Killing power to a USB port

Is there a way to programatically turning off the power or killing a USB port on the Mac? ...

Why does the Mac ABI require 16-byte stack alignment for x86-32?

I can understand this requirement for the old PPC RISC systems and even for x86-64, but for the old tried-and-true x86? In this case, the stack needs to be aligned on 4 byte boundaries only. Yes, some of the MMX/SSE instructions require 16byte alignments, but if that is a requirement of the callee, then it should ensure the alignments ar...

Java 6 on Mac PowerPC with Mac OS X 10.4

Is it possible to get Java 6 running on a Mac PowerPC with Mac OS X 10.4? AFAIK SoyLatte is only available for Intel processors. ...

XPath tools for Mac OS X

When I worked mostly in Windows, I used Stylus Studio to test out XPath on my XML files. Now that I primarily use OS X, I haven't found an equivalent tool. What tools for OS X do you recommend for XPath work? ...

Providing Documentation for an Unix command?

I made an Unix command called macmac2unix, which converts a Word file from Mac to Unix. How can I provide documentation for my command? I want to read about my command with man $man macmac2unix ...

Can you recommend a couple of really good AS3 and MXML editors for Mac?

I've just switched from Windows to Mac and need to find a few tools to replace those that were Windows-only. I'm most familiar with FlashDevelop, which I've used for years, but it is Windows only. SEPY seems to have been abandoned, FlashIDE's editor seems weak, and I don't want to purchase FDT or FlexBuilder right now. I would like an...

Comparing Mac's and Unix manuals?

How can I list differences between Mac's and Unix manuals? For example, between the following commands uniq guniq I tried the following unsuccessfully diff (man uniq) (man guniq) ...

Problem with Bash's command_not_found_handle()

I get "command not found" error in Mac by the following command md5sum *.java | uniq -d -w32 The reason is that Mac does not have -w option by default. I would like to make Bash to do the following when the error occurs put g at the beginning of the first command put g at the beginning of a command which is after | How can you ma...

Why are my file permissions on Apache being reset?

We recently switched from using PCs at work to Macs, so I'm new to the *nix way of doing things. I have the default Apache running that shipped with 10.5, but I've noticed that when I drag files from a Windows server to my machine, the permissions are changed. Specifically, I'm writing data to an XML file, and occasionally after swapping...

Cocoa QTKit and recording movies

I'm new with the whole QTKit and I was looking for some feedback on the following code that I am attempting to use to display the camera's image and record movies. - (void)initializeMovie { NSLog(@"Hi!"); QTCaptureSession* mainSession = [[QTCaptureSession alloc] init]; QTCaptureDevice* deviceVideo = [QTCaptureDevice defaultInputDevi...

Conversion to Mono on a Mac

Hi all, I have a project written .NET 2.0 (well, it doesn't use much in the way of 3.5 features, anyway), and I recently got a Mac and would like to convert that project to Mono. The problem is, this project relies on libraries such as FreeImage and a few C++ libraries I've written for this project. I'm a total newb to programming on ...

How much space should I leave for my Windows 7 partition?

I'm setting up a complete .NET development environment on my Macbook Pro. I'm using Visual Studio 08 team suite, SQL server 2008, MS Office and other tools (like FinalBuilder, RegexBuddy, Beyond Compare). How big should my windows 7 (beta currently) partition be? Will 100GB be enough? NOTE: I wasn't sure if this was programming relate...

Weird build error, problem with class name?

I'm doing a short project just to experiment writing without the use of nib files (personal interest only, don't plan on never using nibs!). I have my app controller set up as NSApp's delegate. Under -(void)applicationDidFinishLaunching:(NSNotification *)aNotification, I attempt to initialize the interface. AppController.h: #import <C...

Opera/Mac: override cmd+S event?

Looks like Opera/Mac does not let you override an action when user pressed ⌘S (the default is, of course, save page). I found out my old script doesn’t work in it. It saves the form contents to server via Ajax. Here’s an onkey* handler: key = ev.keyCode if (!key) key = ev.charCode if (ev.type == 'keypress' && 115 == key && ev.ctrlKey)...

QTKit, opening input devices???

I'm trying to add two inputs to a QTCaptureSession in the following: mainSession = [[QTCaptureSession alloc] init]; BOOL success; NSError* error; QTCaptureDevice *videoDevice = [QTCaptureDevice defaultInputDeviceWithMediaType:@"QTMediaTypeVideo"]; success = [videoDevice open:&error]; QTCaptureDevice *audioDevice = [QTCaptureDevice de...