Can PowerShell on Windows by itself or using simple shell script, list files and directory this way: (or using Mac OS X or Ubuntu's shell script)
audio
mp3
song1.mp3
some other song.mp3
audio books
7 habits.mp3
video
samples
up.mov
cars.mov
Unix's ls -R or ls -lR can't seem to list it in a tree structure unf...
I just erased and re-installed Snow Leopard. I installed MySQL 5.1.48 64-bit clean. I'm having issues with the MySQL server... when I boot the computer and log in, the server is not running. I tried to start it using the preference pane by clicking "Start MySQL Server", but all it did was highlight the button blue and think for like a mi...
Hi,
I've installed growl and autospec on mv Mac OSX and had autospec running yesterday. But now it goes to sleep after it runs the tests for the first time.
Does anyone know of this error/feature?
Thanks
Rim
EDIT: It depends on which file I edit. It's not listening to all the files in my app/ directory.
EDIT EDIT: I'm following this...
Hello,
More or less everything is in teh title, I am looking for a way to get from a cocoa application, pid_t of the running dock.app
Thanks in advance for your help,
regard,
...
I just want that Mac OS X 10.6 does a hardware beep sound like in open suse and other distributions. I tried following approaches
Terminal -> beep = -bash: beep: command not found
Terminal -> say beep = voice speaks out beep (Not a Hardware beep but awesome ;) )
applescript -> beep = Macintosh bell (I want a Hardware beep!)
Does anyb...
I am jumping off a laptop as my primary development machine and moving to an iMac. I plan to maintain an older laptop for development use on business trips and other working travels, as well as occasional coffee shop visits.
Would love to hear any protips out there for maintaing two dev environments while minimizing the necessary fiddli...
NOTE: user377519 (answer below) pointed me in the right direction. I've posted the 'fix' at the bottom of the questions, in case you found this and need more than a 'pointer'
I can't figure out why the second call to "gem env" doesn't have the same environment as the first?
Any pointers? This is driving me crazy!!!!
$ which gem
/usr...
Within my Mac app I've setup two NSSplitViews to create a Mail-style interface (with the first ScrollView used to create a vertical separator, and the second nested within the first, to create the horizontal separator). To illustrate the interface, I've created the following diagram:
To illustrate the setup further, here's an annotate...
I've been using virtualenv + pip for python development. I'm not sure what happened, but suddenly whenever I try to run a command-line tool or import libraries, I get this error message:
Traceback (most recent call last):
File "/Users/kyle/.virtualenvs/fj/bin/pip", line 4, in <module>
import pkg_resources
File "/Users/kyle/.vir...
For any application that I have on my Mac, is there a way to tell if it was compiled with GC enabled, or if it's doing manual memory management?
...
Hello,
I am trying to come up with a way to display a window that contains at least one view (that contains two labels, and maybe a progress indicator) and can resize as more views are added.
So, when a method is called, an array is passed in and depending on the number of entries in that array, that many views are added to the window...
Is it possible to monitor file read activity of processes under Mac OS X? (programmatically, or do you know any applications that does this? That can also be helpful.)
...
Is there any tutorials or references, if such thing is possible, to make GUI applications out of command line apps?
What I mean is, having a command line app, wrap it into an app bundle and create a Cocoa GUI app that would have a simple interface to execute the command line app with its flags and parameters.
...
I'm creating a snippet to be used in my Mac OS X terminal (bash) which will allow me to do the following in one step:
Log in to my server via ssh
Create a mysqldump backup of my Wordpress database
Download the backup file to my local harddrive
Replace my local Mamp Pro mysql database
The idea is to create a local version of my curren...
I'm trying to add my Java Application to the "Login Items" preferences pane that appears in OSX. This pane is visible if you go to System Preferences --> Accounts, and click on your account name. You should then see a "Login Items" of programs that will automatically open when you log in.
I know I can add my program using launchd, or La...
Hi,
I'm trying to compile a file with the V8 the JavaScript Engine by Google. I installed scons and have compiled the V8 engine. But, here is where the problem lies, I stay in the V8 directory as they say and make a file named hello_world.cpp with the code:
#include <v8.h>
using namespace v8;
int main(int argc, char* argv[]) {
...
I am using CFXMLParserCreate() with kCFXMLParserSkipWhitespace to parse some XML files. The option helps skipping the white spaces between XML tags like the space bwtween <foo> <bar> which is good.
However, I just find out that it also caused text elements that contain only white space to be skipped, too. For example, the space between ...
I have created a NPAPI browser plugin for Firefox on linux. I installed the plugin by copying the shared library into my user's profile plugin directory. I am able to build the shared library on OS X, but I am not familiar with how to create a plugin bundle that Firefox/Chrome/Safari can use. How can I create a plugin bundle that will...
Currently I am using this:
def _get_mac_ver():
import subprocess
p = subprocess.Popen(['sw_vers', '-productVersion'], stdout=subprocess.PIPE)
stdout, stderr = p.communicate()
return stdout.strip()
Is there a better version (eg: by using built-in Python API)?
>>> print _get_mac_ver()
10.6.3
Note: I tried os.uname()[2...
I got the ruby sources from the official git mirror, then checked out the ruby_1_9_2 branch.
git clone http://github.com/ruby/ruby.git
git checkout ruby_1_9_2
So, for now, I want to compile 1.9.2-head. But as you'll see later I'm hoping for a solution that works for 1.8 too.
The standard way to compile this is:
autoconf
./configu...