text stringlengths 8 267k | meta dict |
|---|---|
Q: Algorithms for spacing objects visually I am wondering if there are any well-known algorithms that I should be aware of for spacing objects visually.
For instance, a LINQ to SQL diagram has many tables but automatically spaces them for readability. Is this pretty much a "place randomly and move if too close/overlap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In-memory mime-type detection with Cocoa (OS X)? My application is a viewer for a custom format, a zip file with a well defined XML manifest and resources, such as images and movies. I use zlib to open up the zip file in memory and then proceed to display said resources.
One problem I've ran into is that I'm unable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Window border width and height I'm writing a direct3d application and after noticing strange bugs such as anti-aliasing occurring even when it was turned off and the mouse pointer not lining up to things with the same coordinates as itself I discovered that when creating a window the width and height parameters incl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JMeter Tests and Non-Static GET/POST Parameters What's the best strategy to use when writing JMeters tests against a web application where the values of certain query-string and post variables are going to change for each run.
Quick, common, example
*
*You go to a Web Page
*Enter some information into a form
*C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating c# invite for Blackberry I need to create an email in C# that is sent to a blackberry (or outlook) and recognized as an invite. For now I create an email with inclusion of a text.ics attachment so that in outlook, the user can click on the attachment and add it to his calendar, that work. The problem is tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any way to run a macro (in an open VS instance) from the command line? I typically run a script each night that updates my code from SVN, then builds it. The last few days I have a long debug run I'd like to start at night so it can go through the hour or two it takes to hit the error before I come in the next morni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use of -noverify when launching java apps I have seen many apps that take instrument classes and take -javaagent as a param when loading also put a -noverify to the command line.
The Java doc says that -noverify turns off class verification.
However why would anyone want to turn off verification even if they are ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Change font increment for WPF RichTextBox I'm using a WPF RichTextBox control to input some text with user formatting capability, including font size adjustment. The built-in commands for IncreaseFontSize and DecreaseFontSize will adjust the font size by 0.75pt each time the command is executed. I would like to in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use set! in Scheme functions? How would you use set! in a simple procedure f such that evaluating (+ (f 0) (f 1)) will return 0 if the arguments to + are evaluated from left to right but will return 1 if the arguments are evaluated from right to left?
A: Easiest approach is probably to store some external st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to find the index of the first char in a string that is not in a list I know I can loop over the string or build a regex or invert the set (ASCII isn't that big after all) and search for the first instance of that, but Yuck.
What I'm looking for is a nice one liner.
fewer features is better, LINQ is out (for me,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you insert with a reverse_iterator I want to insert something into a STL list in C++, but I only have a reverse iterator. What is the usual way to accomplish this?
This works: (of course it does)
std::list<int> l;
std::list<int>::iterator forward = l.begin();
l.insert(forward, 5);
This doesn't work: (what sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How do I integration testing to my code written using the ASP.NET Provider Model? I'm fairly new to unit testing. I have a site built in the 3-tier architecture, UI -> BLL -> DAL. And I used the asp.net Provider Model, so by making changes to web.config I can switch to DAL dll to target different data sources, to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: launch app, capture stdout and stderr in c++ How do I launch an app and capture the output via stdout and maybe stderr?
I am writing an automated build system and I need to capture the output to analyze. I'd like to update the svn repo and grab the revision number so I can move the files in autobuild/revNumber/ if s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do i parse a text file in c# How do i parse a text file in c#?
A: Check this interesting approach, Linq To Text Files, very nice, you only need a IEnumerable<string> method, that yields every file.ReadLine(), and you do the query.
Here is another article that better explains the same technique.
A: using (TextR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it true that one should not use NSLog() on production code? I was told this a few times in this very site, but I wanted to make sure this is really the case.
I was expecting to be able to sprinkle NSLog function calls throughout my code, and that Xcode/gcc would automatically strip those calls out when building m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "156"
} |
Q: Getting RAW Soap Data from a Web Reference Client running in ASP.net I'm trying to trouble shoot a web service client in my current project. I'm not sure of the platform of the Service Server (Most likely LAMP). I believe there is a fault on their side of the fence as i have eliminated the potential issues with my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: generic makefile? Is there a generic makefile i can use to build a simple c++ project? on windows?
i modified a working wii makefile to win32 but could not build properly (difference in make? the make app and the makefile seem to be found). I did a little hack and made a copy of mingw32-make as make.
-edit-
export P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generating documentation for a RESTful Web Service from Python I would like to generate documentation for a RESTful web service API that is written in Python. Ideally it would look like Yahoo's RESTful web service docs. Does anyone have any ideas or references?
A: The Sphinx project (www.sphinx-doc.org) is the curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to convert Perforce depot locations to client view locations I'd like to know how to convert Perforce depot locations to client view locations for the purpose of script writing.
I have a script that first checks out a file for edit in perforce and then interacts with the file. I need to have the depot location... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using variables as OFFSET in SELECT statments inside mysql's stored functions I'm quite new to subject of writting stored function for mySQL database, hence i'm not sure if what i'm trying to do here is possible at all.
I need a function that will return a column from random row from a table. I don't want to use OR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What release management solutions are worth investigating? In organisations where you have large numbers of applications, written in a myriad of languages running on innumerable platforms and databases how do folks manage the release of builds and patches, particularly when some of the releases are 3rd party? I know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Variables in ruby method names I have the following code:
for attribute in site.device_attributes
device.attribute
end
where I would like the code to substitute the value of "attribute" for the method name.
I have tried device."#{attribute}" and various permutations.
Is this completely impossible? Am I missing so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Codebehind and inline on same page in ASP.NET? In ASP.NET, is it possible to use both code behind and inline on the same page? I want to add some inline code that's related to the UI of the page, the reason to make it inline is to make it easy to modify as it outputs some HTML which is why I don't want to add it in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replacement for JWebUnit / HttpUnit We've used both JWebUnit and HttpUnit in the past to do functional tests of web applications. Both of them seem to have issues in handling javascript. We are not particularly interested in testing the javascript at this point, but JWebUnit and HttpUnit tests have broken since we a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ADAM authentication - howto? I'm attempting to authenticate a user against ADAM using a user I created in ADAM. However, regardless of the password used (correct, or incorrect), my search comes back with a valid DirectoryEntry object. I would assume that if the password is invalid, then the search would come back ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: embedded sql in C I've been attempting to write embedded SQL statements for DB2 that ultimately gets compiled in C.
I couldn't find a tutorial or manual on the embedded SQL syntax for C for reference. One case I would like to do is to insert data into a table. I know most embedded sql statements need the initalizer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Protect flash video from download/right protect Is it possible to protect flv files from download? I'd like to protect my files from download but I don't have the money for a streaming server which I think provides some sort of protection. The files are streamed via PHP and are located in an upload folder on my serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: how can you configure tortoisehg to see in the web servers page the "graph" link? In the mercurial repo i can see it.
I think that mercurial already have this feature with the revision graph.
How i've to configure tortoisehg to achieve that?
I want to have something like this for the hgweb.
A: Tortisehg doesn't hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I conditionally change properties of controls in the CellTemplate of a data bound WPF ListView? Ok... I'm new to WPF, but I kind of know how to do things using DataTriggers and Converters.
But, what I want to seems a little more complex than that. Let me give you the details:
The DataContext for the ListView... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Preventing Flex application caching in browser (multiple modules) I have a Flex application with multiple modules.
When I redeploy the application I was finding that modules (which are deployed as separate swf files) were being cached in the browser and the new versions weren't being loaded.
So i tried the age old ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you deserialize a collection with child collections? I have a collection of custom entity objects one property of which is an ArrayList of byte arrays.
The custom entity is serializable and the collection property is marked with the following attributes: [XmlArray("Images"), XmlArrayItem("Image",typeof(byte[]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is the UI a valid indicator of internal quality? When looking at the myriad types of software written at our company, I instantly jump to conclusions of the quality of the entire product based on the UI. If I find misspellings, weird tab orders, fields not lined up, odd colors, I assume that the entire application ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microsoft.NET and the Multicore CPU of Doom The question proper
Has anyone experienced this exception on a single core machine?
The I/O operation has been aborted because of either a thread exit or an application request.
Some context
On a single CPU system, only one MSIL instruction is executed at a time, threads... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Duplicate returned by Guid.NewGuid()? We have an application that generates simulated data for one of our services for testing purposes. Each data item has a unique Guid. However, when we ran a test after some minor code changes to the simulator all of the objects generated by it had the same Guid.
There was a sin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to migrate from "Arcane Integration" to Continuous Integration? Right now a project I'm working on has reached a level of complexity that requires more than a few steps (actually its become arcane!) to produce a complete/usable product. And unfortunately we didn't start out with a Continuos Integration mindset, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Script for College Class Registration I sign up Spring courses tomorrow morning (transferring in to the Computer Science program). Since I'm a transfer student, I get the last pick of leftover classes not already taken. Emphasis on 'last pick' and 'leftover'. It's highly probable that whatever classes I intend on pi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to do an attribute selection for "(this) attribute starting with a #" Maybe it's the really late night I had but I can't figure this one out. First the html:
<div>
<a href="#internal">Internal Link</a>
<a href="http://external.com">External Link</a>
<a href="#internal2">Internal Link2</a>
</div>
in order to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone Simulator: SpringBoard failed to launch application with error: 7 Building an iPhone project results in:
Failed to launch simulated application: SpringBoard failed to launch application with error: 7
And the app doesn't install on the simulator. What's this all about? What's SpringBoard and what is error 7... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: How is the NodeList implemented? The DOM NodeList (as returned e.g. by element.getElementsByTagName) is an interesting object, in that it is not a snapshot, but reflects changes to the document made after you have created the NodeList.
I was wondering how one would implement such a collection: Completely lazy evalu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++: how to cast 2 bytes in an array to an unsigned short I have been working on a legacy C++ application and am definitely outside of my comfort-zone (a good thing). I was wondering if anyone out there would be so kind as to give me a few pointers (pun intended).
I need to cast 2 bytes in an unsigned char array to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Force PHP integer overflow We have some integer arithmetic which for historical reasons has to work the same on PHP as it does in a few statically typed languages. Since we last upgraded PHP the behavior for overflowing integers has changed. Basically we are using following formula:
function f($x1, $x2, $x3, $x4)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you globally set the date format in ASP.NET? How do you globally set the date format in ASP.NET?
My local machine and servers have Regional Settings set to "English (New Zealand)".
When I format a date with dd/MM/yyyy I expect to see 19/11/2008 for today for example.
Until recently, that is what I did in fact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: HTML viewer for ics (iCal) files I'm creating a small app in ASP.NET MVC that generates ics (iCal) files based on certain criterias. The generated files are accessible through a permanent URL (http://myserver/some/criterias.ics).
I am looking for a way to display the calendar data on the page to give the user a prev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Alternative Entropy Sources Okay, I guess this is entirely subjective and whatnot, but I was thinking about entropy sources for random number generators. It goes that most generators are seeded with the current time, correct? Well, I was curious as to what other sources could be used to generate perfectly valid, ran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: JavaScript unit test tools for TDD I've looked into and considered many JavaScript unit tests and testing tools, but have been unable to find a suitable option to remain fully TDD compliant. So, is there a JavaScript unit test tool that is fully TDD compliant?
A: We are now using Qunit with Pavlov and JSTestDriver ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "716"
} |
Q: Best way to find a point on a circle closest to a given point Given a point (pX, pY) and a circle with a known center (cX,cY) and radius (r), what is the shortest amount of code you can come up with to find the point on the circle closest to (pX, pY) ?
I've got some code kind of working but it involves converting th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Can you render arbitrary HTML in each cell of a YUI datatable? I want to add paginated table to a page. It should be 2 rows by 4 columns. Each cell contains a thumbnail image and some small links.
We're using YUI elsewhere on the project, so I'd like to use the Datatable. All the examples I see are geared aroun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sort numbers by sum algorithm I have a language-agnostic question about an algorithm.
This comes from a (probably simple) programming challenge I read. The problem is, I'm too stupid to figure it out, and curious enough that it is bugging me.
The goal is to sort a list of integers to ascending order by swapping the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: View Content of Deleted File Svn For a deleted file what's the command to use to view the content of a old revision
E:\Downloads\eeli\eel\eel>svn cat eel-scalable-font.h -r 2
svn: warning: 'eel-scalable-font.h' is not under version control
A: You need to use a repository URL (not working copy), and use the @rev sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: ASP.NET MVC alternatives? So, I've spent enough time using ASP.NET webforms to know that I'd almost rather go back to doing classic ASP than use them. But I'm hesitant to move to ASP.NET MVC until it becomes more mature. Are there any open source alternatives?
The main thing I'm looking for is something that's eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Linq Help. int.Contains and int == iqueryable doesn't work EDIT: For the inner queries, there could be more than one match per inner query. It grabs a bunch of tags with the same game_ID. Thats why .First or .Max won't work.
Need some help, I have a query in LINQ that looks like this:
from yy in Tags_Lookups
wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Security risk in exposing email addresses and usernames? Joomla has a built-in function on its login screen "I've forgotten my user name", so that you can type in your email address and the username is sent to you via email.
I was thinking of changing it so that the username was displayed on screen immediately, with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are duplicate keys allowed in the definition of binary search trees? I'm trying to find the definition of a binary search tree and I keep finding different definitions everywhere.
Some say that for any given subtree the left child key is less than or equal to the root.
Some say that for any given subtree the right ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "205"
} |
Q: Refresh Control without Updater Panel using ASP.NET AJAX This question is directly related to my previous question ASP.NET AJAX
Is it possible to perform the post back asynchronously? I have multiple CustomTextbox controls on the page, when i post back i want to update another control on the form.
If i place all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i make a reusable labelFunction for Flex Datagrid? I have a label function like :
private function formatDate (item:Object, column:DataGridColumn):String
{
var df:DateFormatter = new DateFormatter();
df.formatString = "MM/DD/YY";
if (column.dataField == "startDate") {
return df.format(it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Editing in grids vs. detail forms - how smart are end users? I love grids - especially the cool third party ones like Devex, C1 etc..
Our programmer doesn't think end users can handle them - so he always designs his forms with read-only grids (with read-only classes). Choosing to edit an item in the grid opens up a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Populating a form dynamically based on user input in ASP.Net MVC My question is similar to Engram's here, but my question goes a bit further. The way i intend it to work is I have a textbox asking how many entries a user is going to make. After they input the number, I need to create that many more textboxes to al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to synchronize webservice calls in javascript I have a control application - using asp.net webservices.
I have a timer which does an asynchronous webservice call every 5 seconds to update the screen.There are also user buttons to refresh parts of the screen, also doing async webservice calls.
The issue is my scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the way NSButtonCell objects highlight when clicked? I am using several NSButtonCell objects in an NSTableView. They are simple square buttons with custom images on them.
These buttons draw properly when they are not highlighted: all that is visible is the image, and the rest of the button rectangle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What Virtual Host Definitions do I need to support subdomain.mydomain.com and *.mydomain.com on the same IP Address on Apache 2? I have a virtual host setup on Apache 2 like so (simplified):
<VirtualHost *>
ServerName domain.com
ServerAlias *.domain.com
DocumentRoot /var/www/domain.com/html
</VirtualHost>
<Vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When should you not use virtual destructors? Is there ever a good reason to not declare a virtual destructor for a class? When should you specifically avoid writing one?
A: There is no need to use a virtual destructor when any of the below is true:
*
*No intention to derive classes from it
*No instantiation on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: How do you do data management tasks in a Db4o Object Database? I'm new to OODBMS systems, but I'm using Db4o on a new project for which it's perfectly suited. Things are going great and I really like the concept, but I'm struggling with how to do basic data management tasks associated with development. Periodicall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pluggable edit component in JQuery I'm developing an editing component (iframe-based) in JQuery.
My intention is to make it easy to extend the functionality of the editor through plug-ins. So for example, you might make a plug-in that puts wavy underlines underneath spelling mistakes, or allows images to be inserted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/300990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Computed height of an element set to display: none To calculate a top position for an element of variable height, I was thinking of doing the following:
*
*Move the element 1000px off the top of the viewport
*Set the element to display: block
*Get the height of the element
*Set the element to display: none
*C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is a "query parameter" in C++? We were using stringstream to prepare select queries in C++. But we were strongly advised to use QUERY PARAMETERS to submit db2 sql queries to avoid using of stringstream. Can anyone share what exactly meant by query parameter in C++? Also, share some practical sample code snippet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do interrupts in multicore/multicpu machines work? I recently started diving into low level OS programming. I am (very slowly) currently working through two older books, XINU and Build Your Own 32 Bit OS, as well as some resources suggested by the fine SO folks in my previous question, How to get started in oper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Validate Authenticode signature on EXE - C++ without CAPICOM I'm writing a function for an installer DLL to verify the Authenticode signature of EXE files already installed on the system.
The function needs to:
A) verify that the signature is valid.
B) verify that the signer is our organization.
Because this is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Any opensource Javascript editor/javascript eclipse plugin with code assist I just happened to read jQuery Intellisense Updates from Microsoft and was wondering if there was any editor or eclipse plugin available which provides intellisense complete or code assist. Are there any?
A: I believe eclipse, with the Apta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I escape white space in a bash loop list? I have a bash shell script that loops through all child directories (but not files) of a certain directory. The problem is that some of the directory names contain spaces.
Here are the contents of my test directory:
$ls -F test
Baltimore/ Cherry Hill/ Edison/ N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "133"
} |
Q: Implementing XmlTextWriter in new XmlRecordsetWriter for Streams For background see my question here.
So the problem now isn't that I can't send a DataSet to classic ASP but that it can't do anything with it. So I found some code to create a recordset xml structure from a DataSet.
I have tweaked it a little from it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Re-assign/override hotkey (Win + L) to lock windows Is it possible to re-assign the Win+L hotkey to another executable/shortcut?
Use-case - I would like to switch off the monitor of my laptop as soon as it is locked. I know of a executable which can lock and turn off the monitor but I do not want to change the way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How can I determine if a Win32 thread has terminated? How can I determine if a Win32 thread has terminated?
The documentation for GetExitCodeThread warns to not to use it for this reason since the error code STILL_ACTIVE can be returned for other reasons.
Thanks for the help! :)
A: The documentation you link to war... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Visual Basic 6 IDE syntax checker problem The Visual Basic 6.0 IDE checks for syntax errors on-the-fly. Every time it finds a syntax error, it pops up an alert dialog. This feature is driving me crazy, as every time I try to cut and paste in the middle of typing a statement, I have to deal with this pop-up.
Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to find recent sql update operations acting upon a certain table (SQL Server 2005) say I want to find the latest added rows (UPDATE by any user, not necessarily the one which is executing UPDATE) in XX table.
A: You would need to use a Transaction Log reader tool. There are several free ones available as well ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Height of string measured with MeasureString in PrintPreviewDialog differs from that in actual printing I'm trying to measure height of some text for table printing purpose.
Here's the code. In my case it prints different numbers in preview and on actual page.
I can't try on any printers other than Microsoft Office ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Quoting backslashes in Python string literals I have a string that contains both double-quotes and backslashes that I want to set to a variable in Python. However, whenever I try to set it, the quotes or slashes are either removed or escaped. Here's an example:
>>> foo = 'baz "\"'
>>> foo
'baz ""'
So instead of baz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Tabcontrol select How to implement some of the tabs need to close by some events or some button click?
A: You can remove a tab from TabControl like this:
tabControl1.TabPages.Remove(tabControl1.SelectedTab);
When closing multiple tabs you may want to remove the tabs with a higher index number first as the index of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Windows Service running external applications I'm writing a windows service which will be used to monitor some other services and runs an external application if the service goes down.
I've got most of it working, the windows service runs, the code monitoring the other services works a treat but I'm having prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any formal definition for "refactoring"? Anyone knows a way to define refactoring in a more formal way?
UPDATE.
A refactoring is a pair R = (pre; T) where pre is the precondition that
the program must satisfy, and T is the program transformation.
A: It's an interesting question and one I hadn't conside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ASP.NET and Windows Workflow's (WF) - do we need to stick it in the Application state? I've been trying to use WF in my ASP.NET application (actually, it's ASP.NET MVC ... but the fact that it's MVC instead of WebForms should not matter at all).
Now, I can run the WF and it works fine, etc, but it kicks off ASYNCHRO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get a description of a URL I have a list of URLs and am trying to collect their "descriptions." By description I mean what comes up, for example, if you Googled the link. For example, http://stackoverflow.com">Google: http://stackoverflow.com shows the description as
A language-independent collaboratively... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there any point to writing your own validation framework for MVC beta or do you expect one will be released soon? There have been plenty of questions on MVC validation but so far the answer has been pretty much inconclusive.
For my needs in particular, I would like something that generates client validation and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding to %TIME% variable in windows cmd script I realize that this could probably be done easier in any number of other scripting languages but started to do it quick in cmd and now Im curious.
Looking to start a process at an offset to the time that another process started. Lets say 5 minutes to keep it simple. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to implement "close all tabs" for tabcontrol How would I implement "close all other tabs" function for a tab control using Context menu strip?
A: I made a small app with just one tabcontrol in the main window and a context menu connected to that tabcontrol.
The following is the handler for the context menu item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to connect to a DotNet web service from java? We have a dotnet web service that a java using customer wants to connect to. What is the best technology for them to use? Axis or Metro, or something else?
A: WSDL is a standard language following the protocol in a correct way the technology shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby on Rails - Trouble looping through partial using collection I am having issues using the :collection command for a partial within a form I am creating in rails. I would ideally like to use the :collection command, so I can easily manipulate this section in my .rjs templates (the form will submit and reload the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create database connectivity through C++ In C++, how can I establish an SQL connection to store data in an SQL database?
A: IF you are targetting Windows, then you might want to use ODBC.
A: You should have a look at C preprocessors that exists traditionaly with databases (ecpg for postgres, Pro*C for oracl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Microsoft word Text Parser in "C" I would like to know the procedure to adopt to parse and obtain text content from Microsoft word (.doc and .docx) documents . programming language used should be plain "C" (should be gcc).
Are there any libraries that already do this job,
extension : can i use the same procedure to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I import a module dynamically given its name as string? I'm writing a Python application that takes a command as an argument, for example:
$ python myapp.py command1
I want the application to be extensible, that is, to be able to add new modules that implement new commands without having to change the main ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "660"
} |
Q: How can I use a database server from a Perl CGI script? My program works already, I have Perl (GUI Window) where I can input data, data passed to the webpage (using to Tomcat server, JSP) and then saved it to oracle database. What I want is to make search parameter (webapp) that retrieve/extract data from the Oracle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: From where I can download Turbo C++ setup From where I can download Turbo C++ setup, the one with blue srceen which we used in our academics..
A: From the museum (legal)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/301144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS way to horizontally align table I want to show a table of fixed width at the center of browser window. Now I use
<table width="200" align="center">
But Visual Studio 2008 gives warning on this line:
Attribute 'align' is considered outdated. A newer construct is recommended.
What CSS style should I apply to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: php url parameters I am working on my website, and I am trying to get the url parameter "page" which is an integer that tells which entry to read in the MySQL database that hols the HTML for all the pages. Here is my code, with the MySQL username and password removed for security reasons:
if ($_GET["page"]) {
$c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UI Designer for Editing Web.config in ASP.net I need rich UI designer for editing the web.config for ASP.net application.
From the designer We can edit the tags in config files
It may be any windows application going to edit my config files.
A: ASPhere is a nice Windows GUI app for editing web.config:
*
*ASPhere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the differences between various threading synchronization options in C#? Can someone explain the difference between:
*
*lock (someobject) {}
*Using Mutex
*Using Semaphore
*Using Monitor
*Using Other .Net synchronization classes
I just can't figure it out. It seems to me the first two are the same?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "178"
} |
Q: Is there a way to get the carrier information of an iPhone user programmatically? Aside from using the region to infer which carrier the user is under.
A: 1st Import #import <CoreTelephony/CTTelephonyNetworkInfo.h> make sure you have the Framework installed too.
CTTelephonyNetworkInfo *phoneInfo = [[CTTelephonyNetw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to define the timezone for an application in ASP.NET? Is there a way to define the timezone for an application in ASP.NET such that all times read from/compared to current server time are implicitly converted, or do I need to put in conversion statements as each and every DateTime.Now call?
A: I am n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Delete a file in use in runtime How to delete a file which is in use/open by some process in runtime.
I am using vb.net for my project and a image is shown in picturebox,
and that should be deleted, without closing that file.
A: If the file is opened by another process in exclusive mode, you can't -- Windows won't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the system type for a byte array - asp.net? I need to use a byte array as a profile property in a website. Normally I would declare the type as system.string or system.int32 but I have no idea what the type if for a byte array.
EDIT: I need to use this as profile property that is declared in the web.config l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get photo info on flickr? how do I get information about a photo like the author, the license using PHP?
A: You call a HTTP REST query, and load the results as a string:
$query = "http://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=" . API_KEY . "&photo_id=" . $photoid . "&format=json&n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.