gusl: (Default)
The openness-effectiveness spectrum in Unix systems:

FSF-approved systems, e.g. gNewSense/Ututo - Debian - Gentoo - Ubuntu - Mac OSX

Now that I've seen a handful of Linux geeks switch successfully to Mac OSX, I am ready to make the jump myself. I'm going to order a MacBook Pro tomorrow. I visited the store on 66th St this Thursday, and playing with the multi-touch trackpad dispelled all my prejudices. Macs are no longer 1-button systems, and the merging of the button with the pad bypasses the touchpad interference issue that I had with the Dell and with most new PC laptops. I also like the feature where you can do an actual zoom of the pixels on the screen (rather than merely adjust the font-size), and that you can turn off most UI annoyances (e.g. looming icons, Exposé).

Until recently I had the idea that you can't easily write code and release it for the Mac. But now I think that's only the case with iPhones. Am I wrong?
gusl: (Default)
sshfs (SSH filesystem) is really really handy! By mounting a remote directory locally, I can view / edit / attach / copy remote files as if they were local, bypassing awkward commands and password prompts (not to mention the junk that is left behind after running scp).

The only thing that bothers me a bit is that when I run things while in a locally-mounted remote directory, I have the illusion that they are running remotely. But in fact, it is my own CPU that is running and heating up... and it's probably slow for reading and writing to file. (In an ideal world, it would be the other way around: a remote process would be accessing the files in my HD, but that's beside the point.)

I'm wondering if there's a nice way to start remote processes from locally-mounted remote drives... a way that (a) understands where I am running the process from (i.e. which directory I'm in), (b) that can resolve references to locally-mounted remote files into actual remote files, and (c) has a simple syntax, like e.g. a "*" after the command name to indicate "run remotely", so that Rscript* run.R | grep pattern would run Rscript on the remote CPU, and grep with the local CPU.

cp and scp

Apr. 5th, 2010 07:56 pm
gusl: (Default)
I am in a directory with a number of folders, each of which has a file named out.csv

I would like to copy only these files, while preserving directory structure.

If I do scp -r*/out.csv my-project/ then all the copies of out.csv get copied into the base of my-project, erasing each other.

I want to specify which files match separately from the root directory from which I am recursively copying.

Is this one of the rare uses of the --copy-contents option?
gusl: (Default)
Why do 'git' and 'ssh' not work inside my Cygwin shell? They do work in my MINGW shell.

When I try 'ssh', I get the following error:
<< Pseudo-terminal will not be allocated because stdin is not a terminal. >>


Why does my Emacs Cygwin append "\r" to the end of every line... but only if I started the shell after starting the R process (in the same Emacs window)?

The SHELLOPTS variable does not change. "igncr" is present before and after the R process is started:
bash-3.2$ echo $SHELLOPTS


gusl: (Default)

December 2016

18 192021222324


RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags