mac

Replace the :make command with a custom script in vim

I use MacVim as my editor within Xcode. By default Command-B and :make are bound to call 'make' from the command line. As we're using Xcode for building and project configuration, I'd like to replace the :make/Command-B calls to make with an applescript command. Is this possible, and how would I go about doing it? ...

Unable to have no Scattered windows in Screen by .Xresources

Inital Problem: to have no scattered windows when I use vspilt in Vim inside Screen Attemps to solve the problem: Impossible: to increase the Display Refreshing Rate for Mac's terminal code to add something to .Xresources Unix Power Tools -book says that the problem can be solved in .Xresources. However, it does not specify exacl...

Unable to use Screen efficiently in Mac's Terminal

The post summarizes problems in using Screen in Mac's terminal when you have the following in your .zshrc if [[ $STY = '' ]] then screen -xR; fi Solution #1 is not working but Solution #2 works: Clipboard programs: pbcopy, pbpaste and xsel do not work at all Bug in Vim when used in Mac: Unable to have no scattered windows in Screen ...

python- is beautifulsoup misreporting my html?

I have two machines each, to the best of my knowledge, running python 2.5 and BeautifulSoup 3.1.0.1. I'm trying to scrape http://utahcritseries.com/RawResults.aspx, using: from BeautifulSoup import BeautifulSoup import urllib2 base_url = "http://www.utahcritseries.com/RawResults.aspx" data=urllib2.urlopen(base_url) soup=BeautifulSo...

How to make a hard to kill process in Mac/Linux?

I realize this sounds like something a malware program would do, so I understand if some of you are skeptical of my intentions. I would never do this for a program intended for other people's use, but I also realize other people might look at the answers and do it themselves. My productivity goes way down when I am on the Internet, so I...

Unable to turn off automatic margins by termcap in Mac

I need to turn automatic margins off according the following statement from Screen's manual in my Mac If your terminal is a "true" auto-margin terminal (it doesn't allow the last position on the screen to be updated without scrolling the screen) consider using a version of your terminal's termcap that has ...

QDFlushPortBuffer no longer works?

I know that it's deprecated, and has been for a long time. However, I have a C++ browser plugin that still uses QuickDraw, and it isn't updating correctly. When I push a button, or scroll, it often won't do anything until some other event forces the screen to re-draw. I've traced through, and I'm drawing at the right time, and doing a QD...

Is there any good free tool for the mac, to draw UML and object diagrams?

Just need it for a hand full of diagrams. Any recommendations? ...

Are there any good tutorials for creating Graphviz Diagrams on the mac?

I am pretty interested in Graphviz after I could not find any other quiet useful diagramming tool for the mac. ...

Is there any good IDE or WYSIWYG editor for graphviz?

Actually I had downloaded an GUI for graphviz (dont remember the site), which said that they had won an Apple Design Award. But that tool really only displays an *.dot file I created. That's it. It's just called "Graphviz"... I guess that there are better tools around for using the Graphviz technology. I tried this one: link text Altho...

Cannot get PHP working on Leopard again

I had the default Apache2.2 and PHP installation working on my MacBook Pro, but it stopped working at some point. I've read many online articles to try and fix this problem, but none of them have pointed out anything that I am not already doing to get PHP working again. I am completely stumped: My basic Apache configuration appears to b...

Disable NSToolbar customisation via window's toolbar button?

I am looking to disable the Command + Click combination on a toolbar button (located top-right) in a Cocoa window. I would still like to let the user show and hide the toolbar, but I do not want them to be able to select a different display mode (e.g. small icons, no icons, etc). Has anyone found a way to do this? Thanks in advance. ...

iPhone SDK 3.0 beta 4 broken, Internal Error

Final Edit: This problem is solved, after I downgraded to SDK for iPhone 2.2, then deleted all the files in the Crash Logs in the Organizer window (then upgrade back to 3.0 beta 4). Apparently there were too many of Crash Logs associated with my iPhone (like 300+). Thanks you guys for insights! Original problem: After I update my iPhone...

Unable to expand Mac's manuals to have Ubuntu's manuals

My Leopard has no manuals for Wget and compinit, for example. It lacks in many other areas such as in examples and documentation about options too. Ubuntu has often better manuals than Mac: for instance, it has manuals for the two commands. A solution to the problem may be to make a port to MacPorts which installs Ubuntu's manuals to M...

Unable to have pbcopy -clipboard inside Screen

Problem Not solved although one answer was accepted: We are working to get Jonah's code to work. Problem: to change the code of (1) to (2) I know the thread. I want to be able to run the following code inside Screen Code (1) cat ~/.vimrc | pbcopy (1) Code (2) cat ~/.vimrc > /tmp/pbcopy.pipe (2) My at...

Isn't there a Go To Last Edit Location shortcut in XCode??

I'm rather new to XCode and I still miss so many shortcuts and features available in IntelliJ IDEA. Perhaps the biggest pain point for me is the lack of a keyboard shortcut (or even a menu action) that allows you to move through your most recent change points (points in which you modified files). In case you're familiar with IntelliJ,...

How to make textmate work well with NFS?

I use and love textmate, but over NFS there's a large delay whenever one of its windows gains focus as it rescans all open files for changes. I've looked but not found any way to disable this feature. Does anyone know of a good workaround for this? ...

How to resist MITM and replay attacks when sending encrypted data?

Assuming I've securely exchanged keys with another computer (using Diffie-Hellman perhaps), here's my tentative solution: packet number + encrypted data + message authentication code (MAC) The packet number is an incrementally-increased number starting at 0. After that is the encrypted data itself, followed by a MAC of them both. If so...

How to take screen shot of an email inside "apple mail" and "entourage" in Mac OS X?

Hi Everyone, I want to write an AppleScript or Cocoa application in Mac OS X which will take screen shot of the email inside AppleMail and Microsoft Entourage. I did this by writing a simple AppleScript code but it takes the screen shot of the page. If email is a long one, I am unable to take screen shot of following pages. Do you hav...

How can display driver version be obtained on the Mac?

How can the display driver version be programatically obtained on the Mac? Related: Programmatically get processor details from Mac OS X ...