153 reputation
7
bio website chil.rice.edu/stanley
location Houston, TX
age 30
visits member for 2 years, 3 months
seen Aug 27 at 20:10

I am a cognitive scientist / software engineer working towards my PhD in Psychology at Rice University.

My current research interests are centered in Human Computer Interaction and modeling large-scale declarative memory.


Apr
2
comment How do I copy multiple files by wildcard?
nice touch using the : as the separator to avoid escaping.
Mar
31
comment Force Bash normal tab completion if intelligent completion fails
@ChrisDown and how would you do that? I'm still looking for the clean .bashrc solution.
Feb
5
comment Repeated commands in a bash pipeline
+1; Nice bash macro
Aug
10
comment What configuration can insert lines between commands?
Can you use this technique to print time statements between each line of a bash script?
May
9
comment Is it common to split larger script into multiple scripts and source them in the main script?
Aha! Someone else that uses the simple cat approach :)
Apr
24
comment Combining multiple process substitution
+1 for proper eval. Your first version is completely fine (and the cleanest and most easy to maintain) since in this scenario you have full control over the string passed to eval.
Mar
12
comment How do I set an environment variable for sudo in MacOS?
Why not sudo chmod the start.sh file so that the program can run at user-level privileges
Jan
10
comment How to defer variable expansion
Nice work using a function to delay evaluation, and to avoid the explicit eval call.
Nov
27
comment How to run a Python script in Makefile
@Hamideh. What Dennis is suggesting is to get your script to work as a pure bash .sh file first. Then take the additional step of embedding it in the Makefile. I recommend this approach too. 'get it working, then get it right, then get it fast'.
Aug
30
comment How do you colorize only some keywords for a bash script?
Have you thought about supressing stdout/stderr of tests that pass, and only printing stdout/stderr for failed tests? PHPUnit does this, or is configurable to do this. I've found that this approach works quite well, YMMV.
Aug
24
comment How to make and apply (patch) one side diff?
Oh, and you found one; wow; this just might be possible. If it ends up as a weekend project, I'll make sure to post actual code that compiles.
Aug
24
comment How to make and apply (patch) one side diff?
Ah; you said you do know CL; yeah there are XML parser packages; I've messed around with Closure XML, but this config isn't XML. I've found JSON parsers for CL, but this config isn't JSON either. I dunno' if there's a lisp package to parse this one. I'd have to do a bit of research; and if not, I'd just use python :)
Aug
24
comment How to make and apply (patch) one side diff?
Yeah; the python solutions here are much more practical. But if you can get to the point in python where you are expressing set-diff, union, intersection, etc., then I think you have a more general case of this problem solved. Which might be useful.
Aug
24
comment How to make and apply (patch) one side diff?
Not anything that will compile, other than the sketch above. I figured if you went this route, you wouldn't use common lisp, so I wanted to just convey the idea.