parent (4,180)


How do I make a menu that does not require the user to press[enter] to make a selection?

I've got a menu in Python. That part was easy. I'm using raw_input() to get the selection from the user. The problem is that raw_input(and input) require the user to press Enter after they make a s…


erlang - How Do You Determine The PID of the Parent of a Process

I have a process in erlang that is supposed to do something immediately after spawn, then send the result back to the parent when it is finished. How do I figure out the PID of the process that spaw…


Windows C++: How can I redirect stderr for calls to fprintf?

I am wrapping existing C++ code from a BSD project in our own custom wrapper and I want to integrate it to our code with as few changes as possible. This code uses fprintf to print to stderr in order…


Removing elements with Array.map in JavaScript

I would like to filter an array of items by using the map() function. Here is a code snippet: var filteredItems=items.map(function(item){if(...some condition...){ return item;}}); The problem is that…


ruby on rails - Ruby mixins and calling super methods

Ok, so I've been refactoring my code in my little Rails app in an effort to remove duplication, and in general make my life easier(as I like an easy life). Part of this refactoring, has been to mov…


Calling the base constructor in C#

If I inherit from a base class and want to pass something from the constructor of the inherited class to the constructor of the base class, how do I do that? For example, If I inherit from the Excepti…


Unix shell file copy flattening folder structure

On the UNIX bash shell(specifically Mac OS X Leopard) what would be the simplest way to copy every file having a specific extension from a folder hierarchy(including subdirectories) to the same des…


IE CSS Bug-How do I maintain a position:absolute when dynamic javascript content on the page changes

I have a page where there is a column and a content div, somewhat like this:<div id="container"><div id="content">blahblahblah</div><div id="column"></div></div> With some styling I have…


javascript - Making an iframe take vertical space

I would like to have an iframe take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ? Are there any workarounds?…


How to get controls in WPF to fill available space?

Some WPF controls(like the Button) seem to happily consume all the availible space in its' container if you don't specify the height it is to have. And some, like the ones I need to use right now, th…





child from how get not class css element example jquery