Olie

Santa Cruz Mountains, CA

Oct
22
awarded Nice Answer
Oct
21
comment XCode 4 - build output directory
@Gerard: I could, but that's not what I want to do. I'm checking out sources from a repo, then building via command line, and I want to know where the build went. It would be inappropriate for my build-script to modify the project in any way (say, by changing the project settings.)
Oct
21
comment bash - remove a fixed prefix/suffix from a string
Fun note: sed can take almost anything as a delimiter. In my case, since I was parsing prefix-directories out of paths, I couldn't use /, so I used sed "s#^$prefix##, instead. (Fragility: filenames can't contain #. Since I control the files, we're safe, there.)
Oct
21
comment Not informative exception info on xCode 4.6
The slider's not in the normal place in XCode 6.1 -- that's the question! :)
Oct
21
awarded Necromancer
Oct
21
comment Choosing a web application framework in python
Looks like Pylons has been put into maintenance mode, superceded by pyramid. pylonsproject.org
Oct
21
comment Python & HTML: Make user login to use website
Exactly the 2 pointers I needed to get started. Thanks! +1
Oct
21
comment Python & HTML: Make user login to use website
While technically this works, I don't think it scales the way the OP intends. I read the question to mean setting up of a site where 1000s (millions?) of users press the "create account" button, and it has all that "forgot/reset password" stuff, etc. Maybe I misread, but your answer seems to require sysop intervention for each new user.
Oct
21
comment Python & HTML: Make user login to use website
2 downvotes with no comment/explanation?! Sure, the question's a bit broad (and no hint of what was already tried/examined), but it turned out to be exactly my question, too: +1. If you're going to ding someone's question, at least comment about how they can make it better. That's how we learn!
Oct
16
comment bash execution time in milliseconds (mac osx user)
Also, time is a command line tool that times how long it takes to run the command that follows. See man time for more details.
Oct
16
comment bash execution time in milliseconds (mac osx user)
In ruby -e 'puts "%.3f" % Time.now', ruby calls the ruby interpreter, -e executes the script that follows on the command line. puts is ruby's printf (sort of), Time is a ruby object and Time.now is the seconds since the epoch. Using %.3f trims the output to 3 decimal places, which is milliseconds (the ".046" and ".943" parts of the output.)
Oct
16
comment Generating a sha256 from the Linux command line
NOTE: on OS X (BSD), it's echo -n foobar | shasum -a 256
Oct
16
comment PDO - Something is not quite right with my statement 'Undefined class constant 'PARAM_STRING''
TBD: I ended up using the shorter format, though my PHP is 5.4.30, so I'd-a thought this should work! Now I'm just sort of curious why I'm getting the area as a matter of curiosity, since my actual "problem" is solved.
Oct
16
comment PDO bindParam into one statement?
Not really what you asked, but don't save cleartext passwords to your db. (That's what it looks like your code does. Maybe I'm wrong, but the advice holds for future readers.)
Oct
16
comment PDO - Something is not quite right with my statement 'Undefined class constant 'PARAM_STRING''
While I noticed your answer right away from the question, my problem is that I'm getting Undefined class constant 'PARAM_STR' -- so now what?! :)
Oct
16
comment PHP PDO Prepare queries
"Ah yes, 'Little Bobby Tables', we call him..." xkcd.com/327
Oct
14
revised Adding userInfo to NSURLConnection
put working link in answer
Oct
13
comment Waiting until a window exists in Applescript?
I have also used tell application "System Events" to tell process "MyProcess" ... blah with some success.
Oct
12
comment Cocos2d v3 & chipmunk collision detection issues
There's no idiocy involved -- it's very well hidden, and not a very standard way to do things. A good puzzler! :)
Oct
9
comment Print a file's last modified date in bash script
Note that on OS X (Mac), it's stat -f "%m%t%Sm %N" filename (see man stat examples for more details)
1 2 3 4 5