text stringlengths 8 267k | meta dict |
|---|---|
Q: C program that prints out another C program in Japanese There was a C program written for a contest that was formatted in ASCII art as a Japanese character. When compiled and ran it printed out another program formatted in a different Japanese character, then another, then finally it printed out the first again.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Configuring SQL Native Client ODBC on the client computer? We have an application where our clients are connecting to a SQL Server 2005 database - via a SQL Native Client ODBC data source. We are having some difficulties with the ODBC connection getting severed during program execution. After questioning a tech supp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mass Insert Into Sql Server I am attempting to insert a mass of records into SQL Server 2005 from Vb.Net. Although the insertion is working fine, I am doing my best to try to make it as fast as possible. Currently, it takes ~ 11 mins for 100,000 records. What would be the suggested approach to inserting a large n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do I determine which monitor my winform is in? I have been up and down this site and found a lot of info on the Screen class and how to count the number of monitors and such but how do I determine which montitor a form is currently in?
A: This should do the trick for you:
private Screen FindCurrentMonitor(Form ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: LINQ with FoxPro? Is there a reasonable way to access FoxPro databases using LINQ?
A: I just finished working on implementation.
http://linqtovfp.codeplex.com/
A: One the blessing/curses of .NET is that the answer is rarely "no" to any .NET programming question.
For example, this guy (thanks Sergey and Larry) show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ReSharper run all unit tests in a project or solution at once I am inside the IDE and I can run all the unit tests in a file but is there any way to run all test in a project or solution at once?
A: Open ReSharper->Windows->Unit Test Explorer and select everything, then hit the run button
A: Sometimes, Resharper w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I create an ODBC DSN entry using C#? I'm working on a legacy application that has a C++ extended stored procedure. This xsproc uses ODBC to connect to the database, which means it requires a DSN to be configured.
I'm updating the installer (created using Visual Studio 2008 setup project), and want to have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: nHibernate slow performance on a hosted website I have a webapp being hosted with a public hosting company, the site is not live yet, and I am still doing some testing with it. I am using nHibernate with Windsor Castle Container for dependency injection and the site seems to be responding very slow from time to time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JQuery animation callback called before animation ends I am using slideDown animation to show some divs in a newly added table row:
$("div", newRow).slideDown(10000, UpdateHours(response.d.Hours));
however the UpdateHours() function is called long before the divs are finished animating. This is causing me a problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Programatically calculate the size of a value type I'm writing a unit test for a method that packs boolean values into a byte. The various bit locations are determined by the value of an enum, which only has 5 values right now, but it's conceivable (though extremely unlikely) that this number could go to 9.
I'd lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I find the selected item in a QTreeWidget? I have a class that inherits QTreeWidget. How can I find the currently selected row?
Usually I connect signals to slots this way:
connect(myButton, SIGNAL(triggered(bool)), this, SLOT(myClick()));
However, I can't find anything similar for QTreeWidget->QTreeWidgetI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is the size of my Visio file increasing? This one is for a coworker:
We are having a problem with one of our wireframe sets (a Visio file). Basically, the file continues to increase in size and is currently at 43 MB (yes, forty three!), when the average of our other sets are at about 5-10 MB each. When I save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MSB4057 Error when using MSBuild with RAD Studio 2009 Summary: I'm able to compile a RAD Studio 2009 project using MSBuild on a Build Server using the RAD Studio Command Prompt, but not with a batch file. This same batch file, however, works successfully on my workstation. On the server the error returned is: MSB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: what is the best way to use c# with mysql without using odbc I need to access a mysql database from c# code but I would prefer not to use ODBC for the reasons below.
I have to create a demo and I am using xampp on a USB drive. My code (database Read/Write code) is written in C#. So to keep the USB drive isolated fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any Portal products that can generate friendly URLs? Currently, we are using WebSphere Portal v5.1, and the URLs are about a un-friendly as a URL could get.
For example:
http://www.foo.com/wsps/portal/!ml/QjzQ0IhyR0UAkc39Aw!!/delta/base64xml/L3dJ82XzBfQ1A!
I have removed a bunch of the characters, but yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I create trivial customized field types in Django models? I'm trying to make some types in Django that map to standard Django types. The custom model field documentation goes into complicated cases; I just want to store a basic Django type from a class with a bunch of handy methods.
For example, if I were st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Finding who has access to this shared exchange server mailbox How can I find all the users who are all having access to a shared mail box?
We use a shared mail box in our application, this would be useful to know.
A simple solution will be more useful.
Code to do this in C# is also ok.
Tools from microsoft will also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a custom ODBC driver At my current job, we're looking to implement our own odbc driver to allow many different applications to be able to connect to our own app as a datasource. Right now we are trying to weigh the options of developing our own driver to the implementation spec, which is massive, or using a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Detecting Vista IE7 Protected Mode with Javascript I'd like to be able to detect Vista IE7 Protected Mode within a page using javascript, preferably. My thinking is to perform an action that would violate protected mode, thus exposing it. The goal is to give appropriate site help messaging to IE7 Vista users.
A: W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Question: VB.net coding standard regarding declaring variable I've seen some variable declare in VB.net in several way like:
print("dim _Foo as string");
and
print("dim m_Foo as string");
and
print("dim foo as string");
I will like to know what's the standard for VB.net coding.
A: It all depends on the sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there an easy way to scale a 'views' or 'download' counter in a DB row? I'm working on a little web project that needs to keeps to a NumViews counter for each object/row in a DB table. I'm concerning that all the updates to rows would start really degrade performance both the table grows in object count, and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Question System.ExecutionEngineException while loading WPF window from Windows Form I found some rather strange behavior...
Here is how to replicate the problem:
*
*Create a WPF Application Project.
*Remove the StartupUri from the App.xaml file.
*Add a Startup Event Handler to the App with signature "private vo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I make only some folders show up for certain developers with SVN I have a repository with a bunch of folders, and I want certain developers to only get two or three of those folders when they do a checkout on the repository. How can I make the folders not show by default, and then add them only as I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Code helpers/ Add-ons to Visual Studio 2008 I wanted to know what the public opinion is about Resharper vs Devxpress CodeRush vs Visual AssitX.
some of my co-workers are CodeRush fans.. I like Resharper...would be great if someone could finish the debate for us.
A: I don't think one can say one is better than the o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Editing Javascript for Vista Buttons I generated drop down menus for my site in Vista Buttons. When it exports the buttons, they are in a .js file along with graphics files and .css to control everything.
I did some extensive editing on the .css, and then decided to change all the .html extensions for the links that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Has anyone been able to take TFS Team Web Access and successfully expose it to clients? We have recently switched from the Rational stack (ClearQuest/ClearCase etc..) over to TFS 2008 for our .NET group and one of the challenges that we are seeing are some of the limitations of the Team System Web Access as far as w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Xcode quickstart for the Visual Studio developer I would like to use Apple's Xcode IDE to develop applications on the OS X, but I find the UI immensely confusing because I am so used to developing in Visual Studio on Windows.
Does anyone know of any Xcode quickstart guides for the Visual Studio developer that map co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Add dynamic charts using ASP.NET CHART CONTROL, c# I wanted to add dynamic charts in the webpage. It goes like this...
I get the start and end date from user and draw separate charts for each date bewteen the start and end date.
I get the data from sql database and bind it with the chart like this:
SqlConnection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the Easiest/Best Way to Get an Array of Values from an Array Collection? I have an Array Collection with any number of Objects. I know each Object has a given property. Is there an easy (aka "built-in") way to get an Array of all the values of that property in the Collection?
For instance, let's say I have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to get the size of a folder and all the files inside from python? If there will be a small number of files it should be easy with a recursive function to pass through all the files and add the size but what if there are lots of files, and by lots i really mean lots of files.
A: There is no other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Hosting CLR - Bad parameters I'm trying to host the CLR inside my C++ application and I'm having problems invoking the entry point of the managed application.
The entry point is defined as usual:
static void Main(string[] args)
And here's the actual C++ code:
CComPtr<_MethodInfo> entryPoint;
hr = assembly->get_Entr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access JSTL tag from code inside of forEach loop Is it possible to access JSTL's forEach variable via code from within the loop?
<c:forEach items="${elements}" var="element">
<% element.someMethod(); %>
</c:forEach>
A: Well, I believe "element" is stored in the page context.
<c:forEach items="${elements}" var=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: List iterator not incrementable error message in C++ As a newbie I'm trying to implement a sorting function in C++, using the list-class.
However, running the code I get the error that the list iterator is not incrementable... However it seems very unlikely as it should be incrementable!
code:
void shuffle (list<i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I restrict the number of records to be processed in an SSIS package? I have a table with 7M records I want to trim down to 10k for dev. I tried a delete, but the whole world was nearly overpowered by the transaction log size, so I truncated the table.
Now I wish to insert 10k records from the original table,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does Devel::Cover work under mod_perl2 on Perl 5.10 for Windows? The mod_perl2 and Perl 5.10 two are playing nicely together, but I can't seem to find any positive information about Devel::Cover working with mod_perl2 under Win32. I'm currently using ActiveState's Perl 5.10, but I would be open to switching to Stra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a program to decompile Delphi? Someone just sent me a decompile of a program into C. It was a very good decompile, producing nice, mostly readabe C code (if you overlook the fact that none of the variables or functions had a human-readable name) that mostly looked like it would actually compile.
There was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Hide symbol(s) in Shared Object from LD I have two third-party libraries occasionally having the same symbol name exported. When the executable is loaded, ld usually picks the wrong one and I getting crash as a result. I cannot do too much about the content of these libraries, so may be there is a way to instruct ld... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Cancelling a WPF TextBox Changed Event I'm in the process of learning WPF coming from WinForms development.
I have a TextChanged event assigned to one of my TextBox's in my WPF application. If the user enters invalid data, I want to be able to revert to the previous text value.
In the old forms day, I would replace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why is Perl squashing my array? Here's a short test program:
sub foo($;@) {
my $sql = shift;
my @params = @_;
print "sql: $sql\n";
print "params: " . join(",", @params);
}
sub bar($;@) {
foo(@_);
}
bar("select * from blah where x = ? and y = ?",2,3);
print "\n";
Why is the output this:
sql: 3
params:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Creating XML with namespaces and schemas from an XElement A longwinded question - please bear with me!
I want to programatically create an XML document with namespaces and schemas. Something like
<myroot
xmlns="http://www.someurl.com/ns/myroot"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is really stored in Session in ASP.NET? We are trying to decide how to handle object persistence accross postbacks, to avoid getting the data from the database in every request, and I'm leaning towards using Session (it's an intranet application, there won't be thousands of users), but this is due to the fact t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Which one is better for schema to code generation, XMLBeans or JAXB? Want to use a library for XML schema to code generation and wanted to know if people have a preference between XMLBeans and JAXB. Performance, Schema validation capability, Memory Usage.. Any indicators will help..
A: My personal preference would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PHP Script to execute multiple URLs? Is there a sort of php script which will run a series of URLs and then direct the user to the final destination? the use of this is:
creating a checkout cart on a site that doesn't have a robust "wishlist" feature.
The script runs a series of "add item to cart" urls, and then th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Microsoft Word protecting styles using VBA and the "Protect Document" feature I am trying to limit the styles a user can use in a Word 2003 document. I am doing this by using the "Protect Document" feature. For my situation I may need to use VBA but I am not sure.
After I protect the document, I can no longer apply... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Showcasing Flex - Tour de Flex I ran across Tour de Flex a couple days ago. It's a demo that showcases all the Flex controls, with cross-references to source and references. It's a great way to get an idea of the resources available, and how to use them.
Not a question, but a useful resource since I've seen a number... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is "Commit" necessary when updating Oracle from asp.net? I have this code
protected void btnUpdateAddress_Click(object sender, EventArgs e)
{
sdsAddressComparison.Update();
}
that I'm using to update an oracle database. When I run the update sql code in SQL Navigator I have to type "Commit" or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MSBuild: How can I force ProjectReference to search elsewhere for an assembly? We have a large number of Visual Studio Solutions that contain the same shared 15 projects, and most solutions only differ by a web application.
I'm trying to consolidate everything into a single build that builds the shared projects only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Trying to apply RoundedCornerExtender to Table makes Table flash and vanish I've been charged with prototyping a website that has, among other things, a section for "News of the Day", which is user-editable content.
I'm using a Master Page and the default page for the site has a few divs for the various "front page"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP $string{0} vs. $string[0]; In PHP you can access characters of strings in a few different ways, one of which is substr(). You can also access the Nth character in a string with curly or square braces, like so:
$string = 'hello';
echo $string{0}; // h
echo $string[0]; // h
My question is, is there a benefit of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Why does "-1" not work to subtract 1? I was trying to code along with the PDC2008 Intro to F# video. I get an error in the last line of the code snippet shown below (that the presenter did not get) "Error 1 This value is not a function and cannot be applied". I am running Fsharp-1.9.6.2 on Visual Studio 2008 shell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to Toggle confirm message box from aspx.cs page I have a search program that will be looking at a database from a database. If the date range is more than 3 weeks I want to alert them that it might take a while with all the data in the database. I have a confirm message box in a JavaScript function. I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Django, is it possible to access the current user session from within a custom tag? I am writing a custom tag in Django that should output a value stored in a user session, but I cannot find a way to access the session object from within a custom tag function. Is there any way to do this, without manually assigni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Quickest way to get list of values from all pages on localhost website I essentially want to spider my local site and create a list of all the titles and URLs as in:
http://localhost/mySite/Default.aspx My Home Page
http://localhost/mySite/Preferences.aspx My Preferences
http://localhost/mySite/Messages.aspx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: InfoPath forms on client vs. hosted in Forms Server / MOSS Is there a definitive list of functional differences between InfoPath forms in the InfoPath client vs. InfoPath forms hosted via Forms Server?
Talking to people who have worked with and deployed the technology before, they can't tell me anything specific exc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone designmode support Anyone knows if Safari on the iPhone and iPod touch supports iFrame in design mode and if so, how I can enable it? I have tried following ways, but none work (but it works on my PC):
theIframe.contentWindow.document.body.contentEditable = true;
theIframe.contentWindow.document.designMode =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does Chrome ignore local jQuery cookies? I am using the jQuery Cookie plugin (download and demo and source code with comments) to set and read a cookie. I'm developing the page on my local machine.
The following code will successfully set a cookie in FireFox 3, IE 7, and Safari (PC). But if the browser is Google... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Parsing XML with REGEX in Java Given the below XML snippet I need to get a list of name/value pairs for each child under DataElements. XPath or an XML parser cannot be used for reasons beyond my control so I am using regex.
<?xml version="1.0"?>
<StandardDataObject xmlns="myns">
<DataElements>
<EmpStatus>2.0</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where do I initialize a managed C++/CLI DLL? What is, or should I ask, is there, an equivalent to DllMain when creating a DLL using C++/CLI?
Are there any restrictions on what cannot be called from this initialization code?
A: Dan: With respect to the loader lock, C++/CLI's delay load of the CLR and proper initiali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Matching dashes in a URL regex I have used the following regex to get the urls from text (e.g. "this is text http://url.com/blabla possibly some more text").
'@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@'
This works for all URLs but I just found out it doesn't work for URLs shortened like: "blabla bla ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't get the text wrapping behaviour that I want I am having trouble getting Silverlight 2.0 to lay out text exactly how I want. I want text with line breaks and embedded links, with wrapping, like HTML text in a web page.
Here's the closest that I have come:
<UserControl x:Class="FlowPanelTest.Page"
xmlns="htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: DataGridView custom sort not on DataMember (Databound Grid) I have a custom DataGridView column that uses an embedded control that pops up a search window for the value of that column. The important thing is that the databound column is a numeric ID, but the custom column cells display a text description.
How do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Porting VB.NET Winforms Application to C# Are there any 'good' resources for porting a VB.NET winforms application to C#? I'm sure there are is software that just translates the code, but I'm looking to refactor the code at the same time. Keeping it in its current form is problematic, since it uses some of the 'ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: MSVC++ Linker warning when using PIMPL idiom in C++/CLI I am writing a .NET assembly using C++/CLI (version 9.0), and I would like to use the PIMPL idiom to avoid putting unnecessary stuff in my public header. Unfortunately, when I try to forward declare a class, and then use a tracking handle to it, I get Linker wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Create a Gdiplus::Bitmap from an HBITMAP, retaining the alpha channel information? When I create a new Gdiplus::Bitmap using the Bitmap::FromHBITMAP function,
the resulting Bitmap is opaque - none of the partial transparency from the original HBITMAP is preserved.
Is there a way to create a Gdiplus::Bitmap fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Setting the HTTP response status code from ASMX Web Service I know with ASP.NET there's a global handler Application_EndRequest handler where I could change the Context.Response.StatusCode, and set it to 200 which is my desire.
Now with asmx Web Services, I'm not really sure where I'd put this logic in. I know I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I continue working on the server after returning a response with ASP.NET? (WebForms and MVC) I have an application where I need the user to upload a photo. After the photo is uploaded to the server, which shouldn't take very long, the user should get back a response that's a regular HTML page saying "thanks..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Windows/.NET way to monitor/debug the serial port? I have an application which is .NET 2.0, running on Windows XP Professional. This app uses the Serial Port to communicate with some custom devices.
For some reason, a few of our custom built PCs have an issue with the Serial Port, where it will stop functioning aft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET Explicitly Post To Server From Checkbox Control OnCheckChanged Event I have an asp:checkbox control, and I want to change the visibility of a Label when it is checked or unchecked. To do this I'm attempting to use the OnCheckChanged event, which apparently only fires after a post to the server. This means th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling Overridden Constructor and Base Constructor in C# I have two classes, Foo and Bar, that have constructors like this:
class Foo
{
Foo()
{
// do some stuff
}
Foo(int arg)
{
// do some other stuff
}
}
class Bar : Foo
{
Bar() : base()
{
// some third thing
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Fixing broken Macports I just tried (for the first time, I might add) a
port upgrade installed
in Macports, and I'm afraid I might come to regret it: A lot of errors -- specially regarding X11 and Python.
Here's a typical error message regarding python:
---> Activating python24 2.4.5_4+darwin_9
Error: Activat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Human factors design (meeting psychological needs in UI design) Reading about the G.729 codec, I found this interesting tidbit about "Comfort Noise":
A comfort noise generator (CNG) is
also set up because in a communication
channel, if transmission is stopped,
and the link goes quiet because of no
speech, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: What is the difference between a static and a non-static initialization code block My question is about one particular usage of static keyword. It is possible to use static keyword to cover a code block within a class which does not belong to any function. For example following code compiles:
public class Test {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "379"
} |
Q: 3D effects in a 2D game using OpenGL I am working on a 2D game using OpenGL ES. I am using the orthographic projection, since it makes the 2D stuff easy. Now I would like to create a simple 3D effect, say rotate a sprite around the Y axis (something like cover flow). If I understand things correctly, this can’t be d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using boost::shared_ptr in a library's public interface We have a C++ library that we provide to several different clients. Recently we made the switch from using raw pointers in the public interface to using boost::sharedptr instead. This has provided an enormous benefit, as you might guess, in that now the clients... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I get the URL path after a redirect -- with Javascript? This could be a little off the ballpark, but a friend asked me about it and it's kind of bothering me. How do you figure out the current path in your address bar if the server redirects all requests to a default file, say, index.html.
Let's say you enter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is a debug working set (Eclipse)? I'm using Eclipse IDE and notice an option in the Debug perspective in the Breakpoints view that allows me to chose/create a working set. I've found all kinds of help online that tells me how to make a working set or choose a working set, but nothing that explains what a workin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using SQL Server as Image store Is SQL Server 2008 a good option to use as an image store for an e-commerce website? It would be used to store product images of various sizes and angles. A web server would output those images, reading the table by a clustered ID. The total image size would be around 10 GB, but will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Communication between AS3 and MySQL server I'm developing a game coded in Flash AS3 and need to read/write info to an SQL server.
Currently, for testing purposes, I use ASQL which is very simple and robust, but it needs a direct connection from the client machine to the SQL server (port 3306 open and allowing wildca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET sites, hiring external design firms and standards Hey. We're building a large ASP.NET website, and have hired an external firm to do the design (CSS + protoype pages). In fitting the design to the page, we've found a number of problems that indicate ASP.NET's workings were never considered. My question is - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding C++ static initialization order problems We've run into some problems with the static initialization order fiasco, and I'm looking for ways to comb through a whole lot of code to find possible occurrences. Any suggestions on how to do this efficiently?
Edit: I'm getting some good answers on how to SOLVE the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Write XML file (using XStream) to filesystem in Java I need to be able to serialize a string and then have it save in a .txt or .xml file. I've never used the implementation to read/write files, just remember I am a relative beginner. Also, I need to know how to deserialize the string to be printed out in terminal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you flag code so that you can come back later and work on it? In C# I use the #warning and #error directives,
#warning This is dirty code...
#error Fix this before everything explodes!
This way, the compiler will let me know that I still have work to do. What technique do you use to mark code so you won't fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Best method for storing monthly data in a database? I have a legacy application that I am making updates on. A couple of the tables in the database hold monthly information. The tables basically have one row per year and 12 fields for each month. I was wondering whether or not this was the best way to store month... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cleanly merge two arrays in ActionScript (3.0)? What's a nice way to merge two sorted arrays in ActionScript (specifically ActionScript 3.0)? The resulting array should be sorted and without duplicates.
A: This is kind of an simple algorithm to write. I would be surprised if there were a more direct way to do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Detecting whether a module is imported inside the App Engine environment What I want to do is patch an existing Python module that uses urllib2 to run on App Engine, but I don't want to break it so it can be used elsewhere. So I'm looking for a quick solution to test if the module is imported in the App Engine envir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to enumerate HTTP listeners from a Java EE web app I have a web app with a web-based configuration UI. If the user accesses via HTTP, I want to alert the user that they should really use HTTPS and give them a link to click on to get to the HTTPS-prefixed URL.
Now, this is pretty straightforward if we're on the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where does Visual Studio look for C++ header files? I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it.
Visual Studio tells me that it can't find a particular header file. I found the file in the source tree, but where do I need to put it, so that it will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: jQuery .getJSON Firefox 3 Syntax Error Undefined I'm getting a syntax error (undefined line 1 test.js) in Firefox 3 when I run this code. The alert works properly (it displays 'work') but I have no idea why I am receiving the syntax error.
jQuery code:
$.getJSON("json/test.js", function(data) {
alert(data[0].te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Sharepoint Calculated Field Function Reference Is there a definitive list for all of the functions available for a Sharepoint Calculated Field?
A: Here you go:
http://office.microsoft.com/en-us/sharepointtechnology/CH011711171033.aspx
A: The closest I've found is:
Math and comparison:
http://office.microsoft.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to limit TFS 2008 CI Build to a particular path in the project If you follow some of MS's recommended branching strategies you can easily end up with a project structure such as:
$PROJECT\
DEV\
MyProject
STAGE\
MyProject
PROD\
MyProject
Now let's say I have three different bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A question about datasource objects in ASP.net When using DataSources in ASP.net applications, paging and sorting along with GridView only works out of the box when using DataSet, DataTable, DataViews if you are using anything else you need to implement methods that perform paging as well as partial data retrieval f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When to use FOR-CASE (Foreach/switch in C#)? I've found what seems to be the C# equivalent of a FOR-CASE structure in a project I'm working on:
foreach (string param in params.Split(';'))
{
string[] parts = param.Split('=');
string key = parts[0].Trim().ToLower();
string value = parts[1].Trim();
swit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to timestamp request logs with millisecond accuracy in Apache 2.0 How do I configure Apache 2.0's log format so that it timestamps each request log with millisecond (or microsecond) accuracy? The docs say that timestamps are specified in strftime format and strftime doesn't seem to handle anyting smaller than se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Console application leaves cmd.exe set size I have written a console application that sets the size of the console and output buffer. My problem is that after the program ends I cannot resize my cmd.exe window the way I did before. After the program sets the size of the window it retains that size no matter what I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making Applications programmed in .NET languages work on older machines Wondering if anyone knows how to see what parts of the .NET framework need to be installed to get cerftain functions working on older machines. Is there a way I can install them with my application without installing the entire .NET framework?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RoR environment in Ruby standalone script I want to run a standalone ruby script in which I need my RoR environment to be used. Specifically, I need my models extending ActionMailer and ActiveRecord. I also need to read the database configuration from my database.yml.
How do I go about it?
A: The easiest way is to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: MVC Frameworks for WPF Are there any MVC frameworks available for WPF other than Caliburn (which looks awesome btw)?
A: Both Caliburn and PRISM are very nice. However if you go down the path of MVC you will miss out on the powerful 2 way binding. Consider MVVM, it's a very clean and practical approach for WPF. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Which HTTP status codes do you actually use when developing web applications? The HTTP/1.1 specification (RFC2616) defines a number of status codes that can be returned by HTTP server to signal certain conditions. Some of those codes can be utilized by web applications (and frameworks). Which of those codes are the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Multiple questions on BIRT I am new to BIRT.
*
*I have a requirement to print a HEADING based on a database value. How do I do that?
*How do I leave a Blank line upon break in one of the fields I am reporting?
*In the footer, I need to say "Page X of Y" where Y is the total number of pages?
A: *
*After crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Winforms: How to get a reference to Form1 design time I have a form that has a public property
public bool cancelSearch = false;
I also have a class which is sitting in my bll (business logic layer), in this class I have a method, and in this method I have a loop. I would like to know how can I get the method to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/335481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.