Randall Cook

San Francisco Bay Area

Follow me on Twitter @randallecook!

2d
revised Thinking pragmatically about scalability
used a positive verb when I meant a negative one
Apr
27
revised Python: first instance of subprocess.Popen() is very slow
fixed spelling
Apr
25
awarded Electorate
Apr
24
comment Where are commands `fg`, `bg` and `jobs` installed?
I think you're mostly right, @zwol, especially if the command needs to manipulate the shell's state. If it is manipulating the systemwide kernel state, however, I think any executable with suitable permissions ought to be able to do that. This is probably why sysctl is not a built-in, for example.
Apr
24
comment Is it still necessary to save images for web?
@MichaelLiu makes a great point about bandwidth. There is also the question of what web resolution means anymore. Depending on your model, even with laptops screen resolutions range from around 70 DPI to over 250 DPI. That's a 3x range. These days I'm not sure what saving images for the web is even supposed to mean. BTW, if you clarified your definition of that concept I think it would make your question better, Brian.
Apr
24
revised Is it still necessary to save images for web?
made the phrasing a little smoother
Apr
24
comment Is it still necessary to save images for web?
I wasn't the one who downvoted, but I do think that this question does not lend itself to the precise answers favored on SO. I still think it is a valid question, and one whose answers I would love to read. I flagged it for migration to a SE site better suited to it, perhaps userexperience or webapplications. We'll see what the moderators do.
Apr
23
revised Multicast in Python
added a comment to the receiving code about binding to the group in question, not all groups
Apr
23
comment Multicast in Python
@stefanB makes a great point. As it stands, the code sock.bind(('', MCAST_PORT)) will receive messages on ALL groups on that port, not just the group being joined. Replace '' with MCAST_GRP to receive only from that group. I'll add a comment to the code to make this more prominent.
Apr
23
answered Why are multicast messages on the same port but from different groups combined?
Apr
23
asked Why are multicast messages on the same port but from different groups combined?
Apr
23
comment how to make an animation in matlab
Let us continue this discussion in chat.
Apr
23
comment how to make an animation in matlab
Just to clarify, the circle is a representation of the loudest the signal has been in the past, not its current loudness value, right? In other words, the circle only gets bigger, never smaller? A high water mark, so to speak.
Apr
23
comment how to make an animation in matlab
I recommend breaking up the problem into two pieces. One animates the circle in a figure based on a loudness input. The other is an envelope follower to produce that loudness signal. The initial envelope follower would use a wave file. A subsequent one would use a microphone.
Apr
23
comment how to make an animation in matlab
Are you reading the audio signal from a file or in real time from a sound input device, like a microphone?
Apr
23
comment Lines of Strings to XML tree structure
@michael.hor257k, why must this be done in XSLT? I don't think it's an appropriate approach here.
Apr
23
comment Lines of Strings to XML tree structure
@FrancisPadron, no the -p is a command-line option to mkdir that creates intermediate directories if needed. It saves a lot of tedium when building directory trees. Sorry I'm not providing code. I don't have time right now to do so, so I thought sketching out an algorithm would be helpful. Some clearly disagree. :)
Apr
23
revised Lines of Strings to XML tree structure
expanded answer
Apr
23
answered c++ heap allocations 32 byte aligned by default?
Apr
23
answered Lines of Strings to XML tree structure
1 2 3 4 5