child

Why doesn't fork() create multiple processes, or does it?

We had a school exercise today to create multiple processes. Our problem was not the code itself neither the understanding of fork(). The problem me and my mate had were why it didn't create 4 processes of our code as shown below: #include <stdlib.h> #include <stdio.h> #include <sys/types.h> //kod int child1(); int child2(); int ma...

How to get modal window location change event in javascript

I have modal popup of external site using jquery The external site is a login After completion of the login the modal window will redirect to a site. I want to: i) identify when the modal has redirected (login complete) ii) capture the modal url to acquire parameters from the url. How do i do this in jquery methods & javascript ...

Parent process doesn't complete after child is terminated in C

I'm having trouble with a process forking exercise. I want to fork a child process and have it hang after announcing it has been forked, and wait for a signal to terminate, after which the parent process must announce it is terminating and then exit. I can get the processes forked and have the parent wait for the hanging child to be k...

Adding a node with jQuery in a Firefox extension

Hi guys, I suspect that jQuery is not working ok in my extension... I'm using version 1.3.2, loaded with the following rows: var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); loader.loadSubScript("chrome://myext/content/lib/jquery.js", myext);...

Trouble sending signal to child process in C

I've been trying to figure out if this is possible the way I've done it or not. This program should fork a child process that loops printing to STDOUT, and the parent should exit to return the terminal prompt. The child should then be waiting for SIGINT to tell it when to close down. However I remember reading that SIGINT is only send...

[DELPHI] Parent class inside another class

Okay, so I have this class, let's say CMain, that contains a CFruit class. What I would like to do is run functions based on CFruit's type (if it's CPear or CApple, etc). So I'd like to do something like this: type CMain = class myFruit : CFruit; function GetFruit() : CFruit; procedure SetFruit( Fruit : CFruit ); end; proced...

how to access a parent window from child window after a child popup is opened in javascript?

how to access a parent window from child window after a child popup is opened? Thanks in advance ...

How to Bind to a Child's Background in Xaml?

I'm able to bind to a child's Background if the child is explicitly named in ElementName: <TreeViewItem Header="Test" Background="{Binding ElementName=TestChild, Path=Background}"> <TextBox Name="TestChild" Text="Hello?" Background="{Binding SomeBinding}" /> </TreeViewItem> I'd prefer to use relative position rather than specific n...

Get a specific child tag from a DomElement in PHP

I am walking through a xml definition file and I have a DOMNodeList that I am walking through. I need to extract the contents of a child tag that may or may not be in the current entity <input id="name"> <label>Full Name:</label> <required /> </input> <input id="phone"> <required /> </input> <input id="email" /> I need to replac...

Child headers for ExpandableListView using CursorTreeAdapter

How do I create a header for every expanded ChildView without affecting my underlying data and onClick / onLongClick events on the ChildView. Below is the skeleton implementation of my ExpandableListView adapter: private class EAdapter extends CursorTreeAdapter { public EAdapter(Cursor cursor, Context context) { super(cursor, contex...

From a list of child elements take just one from the middle

Greetings, I have a problem and a deadline (I just know there are some knowing nods at that plight) Background: I had a need to store data elements in an hierarchical nature. In a nutshell my xml is a set of rules that instruct a graphical drawing engine to draw a number of series on a chart according to a strict parent child relations...

what's a child frame in the context of a web page ?

What's a child frame in the context of a web page ? Is it the web page opened through a hyperlink on a page, or is it some part of the web page ? ...

Prevent child process from system calls

I want to create a child process that call another program (with C++ in Unix). But I want to restrict the child process not to call system(), fopen(), etc. (if it did, it would be terminated). How to do that? ...

jQuery: Get Child object with specific ID

Hi there, First some HTML: <div id="tmcl-request" class="tmcl-request" style="display: none"> Request: <b> Node: </b><span id="node">33947</span> </div> Than some JavaScript: $request = $('#tmcl-request'); $newrequest = $request.clone(); And now the question: I want to change the inner HTML of the <span id="node"> from the $newreq...

Highlight child in custom ExapandableListAdapter- Android

Hi Folks, Just a quick question. I've created a custom ExpandableListAdapter, both the parent and child have it's own XML layout file. But it's lost the highlight option when you select it (obviously it still selects the row). What option do I need to set to make it highlight like the standard layout would. Thanks! ...

Adding child container using sencha

Hello, I am trying to add a container into a popup window.For that I created a container and a pop window.But i can't place the container in a pop window.Is there any way to place it. Thanks ...

Adding and manipulating multiple child nodes using XPathNavigator in C#

Hello, I'm writing classes which (de)serialize to/from XML. When serializing and deserializing, the class gets a XPathNavigator to get data from/add data to. Because the class may contain objects which are need to be serialized too (using the same mechanism), I do the following to add a child element for each object: public void Seria...

jquery: if (target) is child of ('.wrapper') then (do something)

var target = $(this).attr("href"); if {target is child of ('.wrapper')} then (do something) simple syntax? can someone show me the correct syntax here? ...

How can I manually recreate a Contextmenu for a Child of a ListView on Resume?

Hi, I have a ListView with a ContextMenu. If the ContextMenu is open and the Orientation changes, I want to reopen the Contextmenu for the Child of the ListView, that was clicked on. I tried to do this in "OnResume", but at this point, the ListView seems to have no Children. Anybody knows an answer? Thanks in advance. ...

Parent div expand to child div

Hi, I am having a problem here with expanding parent div to fit child div. Here's my code: <div id="contentBlock"> <div id="content" style="position: absolute; width: 740px; z-index: 4; left: 70px; min-height: 64%; top: 16%; height: auto"> z<br /> z<br /> z<br /> z<br /> z<br /> z<br ...