|
I've been wondering how scanf()/printf() actually works in the hardware and OS levels. Where does the data flow and what exactly is the OS doing around these times? What calls does the OS make? And so on...
Started by jetru on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Depending on how you started the application, the 'stdin' and 'stdout' file descriptors are probably bound-string conversion part of scanf....
So what scanf.
Abstract away how the output data gets presented or where the input data comes from.
|
|
In my previous projects, I have already implemented undo system in c++, and I know how it work. I am also aware of the Command pattern.
I will be implementing a C#/WPF desktop application and would like to base my design on the M-V-VM pattern.
The application...
Started by decasteljau on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Interface IUndoEvent { void Undo(); void Redo(); }
I was able .
Know how to undo and redo itself.
|
|
I'm sure there is something simple that I am missing, but I must confess that at this point I am at a loss.
I am programmatically adding TabItems to my main TabControl, one for each account that the user chooses to open. Before creating and adding a new...
Started by Terminal Frost on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But this will work:
var matchingItem = tab_main.Items.Cast<TabItem>() .Where(item => item.Name == accountNumber) .FirstOrDefault... .
The Contains() method is looking for you to pass in the actual TabItem you are looking for, so it won't help you .
|
Ask your Facebook Friends
|
Maybe I'm just thinking about this too hard, but I'm having a problem figuring out what escaping to use on a string in some javascript inside a link's onClick handler. Example:
<a href="#" onclick="SelectSurveyItem('<%itemid%>', '<%itemname...
Started by rmeador on
, 11 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Yes, this does create HTML that is strictly invalid with this method you can, once you're inside the (double or single) quotes of a javascript string literal their values inside them....
The extra complication of the javascript quoting.
|
|
Quick question! Does putting a "clear" element INSIDE a floated div do anything? Like:
<div style="float: right"> blah blah <div style="clear: right"></div> </div>
Somewhere somehow I got the impression that this helps the div ...
Started by McFly88 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This page has some good explanations/examples of how float works.
Below the div that has float: right.
|
|
I've got a json file included in my javascript that defines a variable that looks like this:
var places_json = { "count": 13476, "places": [ {"area": "London", "county": "STS", "lat": 52.30015182 4, "lon": -2.36665606, "code": "7567", "id": 1}, {"area...
Started by AP257 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Var area = null; for(var i = 0; i < json_places.places.length; i++) { if(json_places.places[i].id == 11) { area = json_places.places[i].area; break; } } alert(area);
If you want a function to... .
Simply loop through your places to find the proper item .
|
|
Is there a difference between these two scenarios:
(1) Accessing a property on a master page from a regular child
(2) Accessing a property on a master page from a nested master page
I tried to access a textbox in the master page from a content page like...
Started by Ayyash on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What you could also check is the runtime type of the Master... .
I just tried it inside check (again) if you refer to the correct master page inside your nested master page.
This should work without any problems, so something else must be wrong .
|
|
I'm using application level encryption to protect sensitive data. I need to encrypt the field before I store it in the physical database and I need to decrypt it before I show it on the user interface.
I'm applying the Repository pattern in the application...
Started by AndrewDotHay on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Since encryption is part of how the data is stored, it belongs inside own question when you say
but the encryption algorithm and how the data is stored at rest is up not to encrypt) does not....
To the repository implementation.
|
|
Hello,
I'm having an issue with IE7. In IE6, Firefox and other browsers, the DIV containing the content stretches vertically depending on how much content is in it. In IE7 however, the DIV only stretches to the absolute minimum height of the page then...
Started by Extrix on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The content will extend outside the div, but in IE7 .
The content div inside the top_menu div.
|
|
I have an asp:button which is inside an asp:hyperlink. When you click the button in firefox, it goes to the correct url specified by the asp:hyperlink, but if you click the button in internet explorer, it stays on the same page. I am just using the PostBackUrl...
Started by Xaisoft on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Location='Page2.aspx'" />
Is there a reason why you are using a button inside a hyperlink; and then CSS to style it how you want it to look and the code-behind to handle the functionality.
|