mac

Mac OS java version problem for jar files

I have already developed a setup.exe for windows, having features like autodetecting JRE version, autoinstalling required JRE version, autostart on windows start etc. I have made this exe from a jar file(jar file was not having the above mentioned features. Features are added later when transforming a JAR to EXE. Now I was wondering if I...

How have you (or HAVE you) learned keyboard shortcut navigation?

What specific techniques have you found to learn keyboard shortcuts while programming? I don't mean "look them up in the list" learn. Rather, what techniques do you use to build the automatic muscle memory that so many of us have after a while? Do you pick one keyboard shortcut per day and practice it throughout the day? Do you focus o...

Passenger not passing params hash to Rails application on Mac OS X

I have an existing rails application that works well on Passenger for Linux. It works well on a local mongrel instance. The DB is postgresql in all cases. However, when I installed Phusion Passenger 2.2.4 on a spare Mac with OS X Leopard (running 10.5.7), the params hash does not get passed to the underlying rails application. Are there ...

Autodetect JRE Version and Install the required Version on MAC OS X before launching an application

Autodetect JRE Version and Install the required Version on MAC OS X before launching an application.How? ...

Is there a way to utilize the Mac Laptops' touchpad pinch gestures on Flex?

I have written a Google Maps-based application in Flex. Currently you can use the mouse wheel to zoom in and out the map. Is it possible on Mac laptops to use the pinch gesture to zoom? ...

Eclipse on Mac

i installed eclipse/galileo on mac x 10.5. i'm trying to install subversion plugin, but the eclipse help menu is actually mac's help menu, so i cannot get to the software update menu item. How do i install a plugin on mac? ...

how to view different file extension in different color ib terminal of mac leopard.

Hi, I am trying to get colored listing of directories and files as per their extension after ls command. Recently I switched over to mac leopard from Linux. There is no .bashrc file in my home directory, so I created one with the following contents.This is doing only a bit what I want (only directories as colored). I also want to view f...

install sqlite3 on mac os x?

I am trying update my version of sqlite3 on mac os x 10.5.7 I downloaded the source code that is recommended for unix and unix like programs. I followed the compile and install directions in the readme file and everything seems to work fine. However, when i check the version number of sqlite3 it remains at 3.4.0 (the old version). Wh...

.Net library for saving an image to Mac's PICT/PCT file format

Does anyone know of a .Net library for saving or converting an image to the Mac PCT/PICT file format? I can save a JPG to PCT/PICT format in Photoshop; and I see this LeadTools library for $995 dollars, but would like to spend less money than that for the simple convert. I don't need all the other features this costly library supports. ...

Mac user needs some folder help with applescript. SFW

I Have a folder full of images and I need to create a text file of all the image names with applescript. Is there some way with Applescript to read in all the file names there are about 10k of them and then output this to a text file? Any help would be great! Thanks for reading. ...

from a CSV of filenames, find and open multiple files in a folder (or sub-folders)

Each camera folder has many thousands of photos, I need to open 20-or so specific files which could be located in any one or more folders, all within one 'root' folder: Photos |-- CameraA |-- CameraB |-- CameraC I'd like to paste a CSV of the filenames (eg 6504, 6505, 8902, 4501) into an Applescript (or preferably if...

Unable to understand a permission warning in Mac

I have 777 permissions for the app AquaLess installed by MacPorts. I run ./AquaLess.app I get zsh: permission denied: ./AquaLess.app This is a strange warning, since I have 777 permissions. How can you use the program installed by MacPorts? ...

List potential applications that could open a file

Is it possible to get a list of applications installed on the users computer that could be used to open a file (in my case an image), similar to the list shown through the Finder's "Open With..." menu? ...

how to monitor process in Mac

Hi , I have a software that runs on mac (using terminal program) the program is old software that talks to phone using blue-tooth. The pairing sometimes breaks and I have to restart it to work again. Is there a way to monitor the process and make it run again automatically?? Thanks, Tam ...

Unable to exclude .DS_store in rsync

My code rsync -exclude='.gitconfig' -exclude='*~' -exclude='.DS_Store' /Users/Masi/bin/ /Users/Masi/gitHub/dvorak/ I run it. It copies the .DS_Store to the destination folder although it should not. This suggests me that the first exclusion do not work. It seems to be hard-coded in Git's default ignore -file to ignore .gitconfig. Ho...

call macports svn rather than pre-installed mac's svn

i have mac preinstalled svn at ->/usr/bin/svn i have macport install svn at -->opt/local/var/macports/software/subversion/1.6.3_0/opt/local my .bash_profile look like export M2_HOME=/Users/teoh/work/maven export M2=$M2_HOME/bin export PATH=$M2:$PATH export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home export PATH=/Users/t...

Unable to extract SO's data dump file by Mac

I run the following Gert's extract command to the data dump file which format .7z seems to be a problem: extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 ;; *.tar.gz) tar xvzf $1 ;; *.bz2) bunzip2 $1 ;; *.rar) unrar x $1 ;; ...

How can I get the behavior of GNU's readlink -f on a Mac?

On Linux, the readlink utility accepts an option -f that follows additional links. This doesn't seem to work on Mac and possibly BSD based systems. What would the equivalent be? Here's some debug information: $ which readlink; readlink -f /usr/bin/readlink readlink: illegal option -f usage: readlink [-n] [file ...] ...

PyQt4 mac drawer positioning

I am using PyQt4 for an application I only plan on using on macs. So I wanted to make it look more like a mac application. To do so I am trying to incorporate sheets and drawers instead of spawning other windows. I have got a drawer to come up but it comes up on the left side of the application. Is there any way to make the drawer ...

Discovery of Dynamic library dependency on Mac OS & Linux

Hi, On Windows there is a tool Depends.exe to discover dependency of an EXE/DLL file on other DDLs. Which commandline tool is equivalent on Mac OS and Linux? Please kindly advise. Thank you! ...