text stringlengths 8 267k | meta dict |
|---|---|
Q: .NET multiplication optimization Does the compiler optimize out any multiplications by 1? That is, consider:
int a = 1;
int b = 5 * a;
Will the expression 5 * a be optimized into just 5? If not, will it if a is defined as:
const int a = 1;
A: It will pre-calculate any constant expressions when it compiles, includ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is "lambda binding" in Python? I understand what are lambda functions in Python, but I can't find what is the meaning of "lambda binding" by searching the Python docs.
A link to read about it would be great.
A trivial explained example would be even better.
Thank you.
A: I've never heard that term, but one exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Software for creating PNG 8-bit transparent images I'm looking for software to create PNG8 format transparent images as per this article.
NOTE: I need a Linux solution myself, but please submit answers for other OSes.
A: pngquant does a good job of converting to PNG8 while preserving full transparency.
If you're si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How does a Perl socket resolve hostnames under Linux? I have a (from what I can tell) perfectly working Linux setup (Ubuntu 8.04) where all tools (nslookup, curl, wget, firefox, etc) are able to resolve addresses. Yet, the following code fails:
$s = new IO::Socket::INET(
PeerAddr => 'stackoverflow.com',
Peer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VB6 Integration with MSBuild So this is a question for anyone who has had to integrate the building/compilation of legacy projects/code in a Team Build/MSBuild environment - specifically, Visual Basic 6 applications/projects.
Outside of writing a custom build Task (which I am not against) does anyone have any sugges... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Emulation of lex like functionality in Perl or Python Here's the deal. Is there a way to have strings tokenized in a line based on multiple regexes?
One example:
I have to get all href tags, their corresponding text and some other text based on a different regex.
So I have 3 expressions and would like to tokenize th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Generating random numbers in Objective-C I'm a Java head mainly, and I want a way to generate a pseudo-random number between 0 and 74. In Java I would use the method:
Random.nextInt(74)
I'm not interested in a discussion about seeds or true randomness, just how you accomplish the same task in Objective-C. I've scou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "753"
} |
Q: Rails Request Initialization We all hear a lot about scaling issues in Rails.
I was just curious what the actual costs in handling a HTTP request is in the Rails framework. Meaning, what has to happen for each and every request which comes in? Is there class parsing? Configuration? Database Connection establishm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Traversing HABTM relationships on ActiveRecord I'm working on a project for my school on rails (don't worry this is not graded on code) and I'm looking for a clean way to traverse relationships in ActiveRecord.
I have ActiveRecord classes called Users, Groups and Assignments. Users and Groups have a HABTM relationsh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle considers empty strings to be NULL while SQL Server does not - how is this best handled? I have to write a component that re-creates SQL Server tables (structure and data) in an Oracle database. This component also has to take new data entered into the Oracle database and copy it back into SQL Server.
Transl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Django admin site not displaying ManyToManyField relationship I'm working on what I think is a pretty standard django site, but am having trouble getting my admin section to display the proper fields.
Here's my models.py:
class Tech(models.Model):
name = models.CharField(max_length = 30)
class Project(models.Mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: OpenJDK7: What essential ADTs are not Implemented in OpenJDK7? What Abstract Datatypes should be added to OpenJDK7 ?
A: If you look at these two links you will see what some people feel is missing:
*
*http://commons.apache.org/collections/
*http://code.google.com/p/google-collections/
My favourite missing one i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I change the width of the vertical header column for Q3Table in qt 4.3? I am using a Q3Table object and wanted to change the width of the vertical header column. Does anyone know how to do this? It seems I can only adjust the height of the header cell but not the width.
A: You want to use Q3Table::setLeftMar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to simulate a Delphi breakpoint in code? I am pretty sure I have seen this before, but I haven't found out / remembered how to do it. I want to have a line of code that when executed from the Delphi debugger I want the debugger to pop-up like there was a break point on that line.
Something like:
FooBar := Foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How can I kill a process by name instead of PID, on Linux? Sometimes when I try to start Firefox it says "a Firefox process is already running". So I have to do this:
jeremy@jeremy-desktop:~$ ps aux | grep firefox
jeremy 7451 25.0 27.4 170536 65680 ? Sl 22:39 1:18 /usr/lib/firefox-3.0.1/firefox
jeremy ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "490"
} |
Q: How do I check if an integer is even or odd? How can I check if a given number is even or odd in C?
A: Use bit arithmetic:
if((x & 1) == 0)
printf("EVEN!\n");
else
printf("ODD!\n");
This is faster than using division or modulus.
A: i % 2 == 0
A: I'd say just divide it by 2 and if there is a 0 remainder,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "193"
} |
Q: Fatal Error C1083: Cannot Open Include file: 'tiffio.h': No such file or directory VC++ 2008 I got this error when I tried to compile an application that includes the tiffio.h header.
For the record, the tiffio.h is located at:
C:\Program Files\GnuWin32\include
I have set that directory to be included in the 'Proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I tell if SP1 has been installed on VS2008? How can I tell if SP1 has been installed on VS2008? e.g. If I'm working on a co-worker's machine - how can I tell if he/she has installed SP1 for VS2008?
A: In Help->About, you can view the installed products. You should see something similar to
Microsoft Visual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Rails Console Doesn't Automatically Load Models For 2nd DB I have a Rails project which has a Postgres database for the actual application but which needs to pull a heck of a lot of data out of an Oracle database.
database.yml looks like
development:
adapter: postgresql
database: blah blah
...
oracle_db:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error: initializer element is not computable at load time I have a function that takes a struct, and I'm trying to store its variables in array:
int detect_prm(Param prm) {
int prm_arr[] = {prm.field1, prm.field2, prm.field3};
return 0;
}
But with gcc -Wall -ansi -pedantic-errors -Werror I get the following er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do you balance the conflicting needs of backwards compatibility and innovation? I work on an application that has a both a GUI (graphical) and API (scripting) interface. Our product has a very large installed base. Many customers have invested a lot of time and effort into writing scripts that use our product.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I invoke a Java method when given the method name as a string? If I have two variables:
Object obj;
String methodName = "getName";
Without knowing the class of obj, how can I call the method identified by methodName on it?
The method being called has no parameters, and a String return value. It's a getter fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "757"
} |
Q: What are your language "hangups"? I've read some of the recent language vs. language questions with interest... Perl vs. Python, Python vs. Java, Can one language be better than another?
One thing I've noticed is that a lot of us have very superficial reasons for disliking languages. We notice these things at first... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Visual Studio 2005 locks up when attaching to process I have a simple C++ DLL that implements a few custom actions for a WiX installer.
Debugging the custom actions is usually simple: put up a temporary dialog box at the beginning of the action, and attach to the process when the dialog box appears.
But today, whene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to typedef a pointer to method which returns a pointer the method? Basically I have the following class:
class StateMachine {
...
StateMethod stateA();
StateMethod stateB();
...
};
The methods stateA() and stateB() should be able return pointers to stateA() and stateB().
How to typedef the StateMethod?
A: Usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: WPF: Slider doesnt raise MouseLeftButtonDown or MouseLeftButtonUp I tried this XAML:
<Slider Width="250" Height="25" Minimum="0" Maximum="1" MouseLeftButtonDown="slider_MouseLeftButtonDown" MouseLeftButtonUp="slider_MouseLeftButtonUp" />
And this C#:
private void slider_MouseLeftButtonDown(object sender, MouseButto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Dynamic breadcrumb generation - how to do? I'm in the early phases of developing a brand spanking new site with Spring + Tiles. The site needs dynamically generated breadcrumbs.
What I mean by dynamic is that the user may reach a certain site from multiple starting points. If I have views for Customers, Orders and P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Launch Content Editor from code I have an application that is creating an new item in Sitecore then opening up the Content Editor to that item, it is loading fine but whenever i try to open the html editor i get a 'NullReferenceException'. This is only happening when i launch the application in this method.
Source C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I create a web page that shows aggregate data from Sawtooth surveys? I'm guessing this won't apply to 99.99% of anyone that sees this. I've been doing some Sawtooth survey programming at work and I've been needing to create a webpage that shows some aggregate data from the completed surveys. I was just wonde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: why are local styles being ignored when using forms authentication in asp.net? I have some styles applied to html for example
<body style="background: #C3DAF9;">
and when I use forms authentication it is ignored. If I put the style into an external .css file then it works.
This doesn't seem like normal behaviour ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Advice on splitting up a process involving multiple actors into Use Cases Let's say I am modelling a process that involves a conversation or exchnage between two actors. For this example, I'll use something easily understandable:-
*
*Supplier creates a price list,
*Buyer chooses some items to buy and sends a Pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In .NET is there a way to enable Assembly.Load tracing? In .NET is there a way to enable Assembly.Load tracing? I know while running under the debugger it gives you a nice message like "Loaded 'assembly X'" but I want to get a log of the assembly loads of my running application outside the debugger, preferably inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What do I need for a compliant email header I am trying to send an email from a site I am building, but it ends up in the yahoo spam folder. It is the email that sends credentials. What can I do to legitimize it?
$header = "From: site <sales@site.com>\r\n";
$header .= "To: $name <$email>\r\n";
$header .= "Subject: $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Which is faster: Stack allocation or Heap allocation This question may sound fairly elementary, but this is a debate I had with another developer I work with.
I was taking care to stack allocate things where I could, instead of heap allocating them. He was talking to me and watching over my shoulder and commented th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "540"
} |
Q: CSS editor which expands one-line declarations on editing Is there a CSS editor which automatically expands one-line declarations as multi-line declarations on focus ? To clarify my thought, see example below:
Original CSS:
div#main { color: orange; margin: 1em 0; border: 1px solid black; }
But when focusing on it,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: autoconf using sh, I need SHELL=BASH, how do I force autoconf to use bash? I'm running autoconf and configure sets SHELL to '/bin/sh'.
This creates huge problems. How to force SHELL to be '/bin/bash' for autoconf?
I'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/bash. osx defau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Should I upgrade to Windows Server & Exchange 2008? Currently running Server 2003 but am looking at reinstalling in the near future due to a change of direction with the domains. Should I take this opportunity to install Windows Server 2008 instead?
I would love to play with new technology and the server is only for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would be the best way to parse this file? I was just wondering if anyone knew of a good way that I could parse the file at the bottom of the post.
I have a database setup with the correct tables for each section eg Refferal Table,Caller Table,Location Table. Each table has the same columns that are show in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prevent Enter key from firing button click even in vb6 I have a form with a progress bar and a cancel button which is displayed as a process runs. The buttons "Cancel" property is set to true so pressing escape, cancels the process.
But, as the button is the only control on the form capable of taking the focus, shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to integrate a SpringSource dm Server into another OSGi-based application server? I would really like to use SpringSource dm Server, but our customer requires us to run our apps on their application server (Websphere). Is there a way to integrate SpringSource dm Server with other application servers? At least dm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do this with a single SQL I have a table that looks like that:
The rows are sorted by CLNDR_DATE DESC.
I need to find a CLNDR_DATE that corresponds to the highlighted row, in other words:
Find the topmost group of rows WHERE EFFECTIVE_DATE IS NOT NULL,
and return the CLNR_DATE of a last row of that group.
Normally ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visiting the points in a triangle in a random order For a right triangle specified by an equation aX + bY <= c on integers
I want to plot each pixel(*) in the triangle once and only once, in a pseudo-random order, and without storing a list of previously hit points.
I know how to do this with a line segment betwee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Distributed Cache/Session where should I turn? I am currently looking at a distributed cache solution.
If money was not an issue, which would you recommend?
*
*www.scaleoutsoftware.com
*ncache
*memcacheddotnet
*MS Velocity
A: Out of your selection I've only ever attempted to use memcached, and even then it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why ActiveRecord instead of a MySql API I've been developing web applications for a while and i am quite comfortable with mySql, in fact as many do i use some form of SQL almost every day. I like the syntax and a have zero problems writing queries or optimizing my tables. I have enjoyed this mysql api.
The thing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you keep track of temporary threads of conversation online Often when I post a comment or answer on a site I like to keep an eye out for additional responses from other people, possibly replying again if appropriate. Sometimes I'll bookmark a page for a while, other times I'll end up re-googling keywords to l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I configure the place of the Netbeans .netbeans directory? I want Netbeans 6.1 to store the .netbeans directory in another place than the default. How do I do this?
A: You can also specify this when you run Netbeans IDE via the command line. This is useful if you want to have different profiles/working envir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can a WPF ListBox be "read only"? We have a scenario where we want to display a list of items and indicate which is the "current" item (with a little arrow marker or a changed background colour).
ItemsControl is no good to us, because we need the context of "SelectedItem". However, we want to move the selection prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do you import users from Community Server into DNN? A client is switching from Community Server to DNN. We would like to just import all the users including their passwords. It seems like this should work since both products use the .NET SqlMembershipProvider. What tables need to be populated to get a user set u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I force a tomcat web application reload the trust store after I update it I have the following problem.
My tomcat 5.5 based web application is using a trust store to verify SSL connections.
The application allows the user to add or remove CA certificates to be used in the verification process.
However, adding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it safe to increase an iterator inside when using it as an argument? Currently I'm trying to erase a sequence of iterators from a set, however GCC's standard library seems to be broken because std::set::erase(iterator) should return the an iterator (next iterator), however in GCC it returns void (which is standar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I determine the file and line # of a C# method from a symbols (.pdb) file? pdb files contain symbol information for .NET assemblies. I'd like to read a pdb file in order to correlate methods with their file location. The data is contained within it but I can't seem to find a good description of how to get it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to export a large table with many records from SQLite to a custom delimited text file? The table I'm dealing with it potentially larger than available memory (let's say 10GB) and some of the fields can have at most 100MB of text. So a simple SELECT query probably isn't going to cut it. I've se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I load an XML document in a SUN One ASP hosting environment in Linux I am working on an ASP site hosted using SUN One (used to be called Chillisoft) server. I am having trouble loading in an XML file, the code I am using is below
dim directory
set directory = Server.CreateObject("MSXML2.DOMDocument")
if(dire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does C++ support 'finally' blocks? (And what's this 'RAII' I keep hearing about?) Does C++ support 'finally' blocks?
What is the RAII idiom?
What is the difference between C++'s RAII idiom and C#'s 'using' statement?
A: In C++ the finally is NOT required because of RAII.
RAII moves the responsibility of exception s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "325"
} |
Q: Fastest way to get productive in VS 08 and C# I have recently been working with Python using Komodo Edit and other simpler editors but now I am doing a project which is to be done in C# using VS 08. I would appreciate any hints on how to get productive on that platform as quickly as possible.
A: I would personally ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error "Cannot change Visible in OnShow or OnHide" in Delphi IDE I have a very strange problem with the Delphi 2006 IDE.
If the IDE is minimized, and the PC is locked. I return to the pc, unlock it and maximize the IDE, I sometimes get the error "Cannot change Visible in OnShow or OnHide".
If this happens, I have to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: FTP File Upload with HTTP Proxy Is there a way to upload a file to a FTP server when behind an HTTP proxy ?
It seems that uploading a file is not supported behind an HTTP Proxy using .Net Webclient. (http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.proxy.aspx).
If there is no workaround ? If not, do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Sending mass emails programmatically I need to be able to periodically send email alerts to subscribed users. PHP seems to struggle with sending one message, so I'm looking for good alternatives.
Any language will do, if the implementation is fast enough. The amount of mails sent will eventually be in the thousands.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: State Service when using system.web.routing in WebForms I am using the System.Web.Routing assembly in a WebForms application. When running the application deployed on win2008/IIS7 I got the following message.
Session state can only be used when enableSessionState is set to true, either in a configuration file or in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use continuous integration with an Eclipse project? I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes and the build tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Site-Wide Filters in ASP.NET MVC What is the best way to enable site-wide filters in an ASP.NET MVC application?
To clarify, I have a form in my master page which has a drop down list =, the value of which filters every page on the site. Each individual page also has it's own form elements. I'd really rather not h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the differences between the different saving methods in Hibernate? Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the differences between them, when to use which, and why isn't there just one intelligent method that knows when to use wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "212"
} |
Q: Access to remote computer's MSMQ gives "Remote computer is not available" We have a windows application that runs on a server and accesses 4 other servers (all of them are members in the domain) to get the messages in each of their private queues. We've just installed a new server, and for some reason when the appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you force constructor signatures and static methods? Is there a way of forcing a (child) class to have constructors with particular signatures or particular static methods in C# or Java?
You can't obviously use interfaces for this, and I know that it will have a limited usage. One instance in which I do find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Problem with propset svn:ignore - possibly Vista related As I understand it, the command to ignore the content of a directory using SVN is this:
svn propset svn:ignore "*" tmp/
This should set the ignore property on the content of the tmp directory, right? In other words, the wildcard is set to be the ignore value ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Google Web Toolkit Should I use the GWT for a struts web application?
A: I think you'll find that GWT complements something like Stripes much more than it does struts. I don't want to start some kind of flame/development platform war but in my opinion Stripes is a far superior and easier to use framework than strut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Compiled, strongly-typed alternative to .NET? Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET?
I thought of using Mono (http://www.mono-project.com/), but I wonder if there are any other alternatives.
(If the language and framework are open-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bash: start multiple chained commands in background I'm trying to run some commands in paralel, in background, using bash. Here's what I'm trying to do:
forloop {
//this part is actually written in perl
//call command sequence
print `touch .file1.lock; cp bigfile1 /destination; rm .file1.lock;`;
}
The part be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: What language/methods to use to listen to removeable drives in Windows? What language or method would I use to listen to the event when a removeable drive is plugged into the PC?
A: I guess any language that can work with the Windows API should do. Basically, you listen to the windows message WM_DEVICECHANGE. This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I program a driver for a USB device for windows platform? I am looking for a device that reads wiring voltages via a USB interface and returns the data. How would I go about programming something to interpret this data and what language would I use?
edit:
If it helps, this project is to develop a digital tac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: ruby/ruby on rails memory leak detection I wrote a small web app using ruby on rails, its main purpose is to upload, store, and display results from xml(files can be up to several MB) files. After running for about 2 months I noticed that the mongrel process was using about 4GB of memory. I did some research on de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Is there a PHP library for email address validation? I need to validate the email address of my users. Unfortunately, making a validator that conforms to standards is hard.
Here is an example of a regex expression that tries to conform to the standard.
Is there a PHP library (preferably, open-source) that validates ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I prevent ServerXMLHTTP from automatically following redirects (HTTP 303 See Other responses)? I am using ServerXMLHTTP to perform an HTTP POST. The response returned is a redirect (specifically 303 See Other). ServerXMLHTTP is automatically following this redirect but this is causing an authentication failur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: F# - while woes given tuple condition Given the following:
#light
//any function returning bool * 'a
let foo =
let x = ref 10
fun () ->
x := !x - 1
if !x <> 0 then
(true, x)
else
(false, x)
while let (c,x) = foo() in c do print_any x;//can't access x, but woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Top reason not to use EJB 3.0 again? The scenario
*
*You have developed a webapp using EJBs version 3.
*The system is deployed, delivered and is used by the customer.
If you would have to rewrite the system from scratch, would you use EJBs again?
Yes: Don't answer this question, answer this one instead.
No: Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Create a new Word Document using VSTO How can I create a new Word document pro grammatically using Visual Studio Tools for Office?
A: What you are actually after is Office Automation using the PIA's (Primary Interop Assemblies).
VSTO is actually a set of Managed .net extensions which make writing add-ins for Offic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Library for converting a traceback to its exception? Just a curiosity: is there an already-coded way to convert a printed traceback back to the exception that generated it? :) Or to a sys.exc_info-like structure?
A: Converting a traceback to the exception object wouldn't be too hard, given common exception classes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pitfalls for converting a .net 2.0 solution to .net 3.5 We're moving a solution with 20+ projects from .net 2.0 to 3.5 and at the same time moving from Visual Studio 2005 to 2008. We're also at the same time switching from MS Entlib 2.0 to 4.0.
*
*Is there any reasons not to let the
Visual Studio wizard convert ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Switch off Run-Time check in Visual Studio I have the problem, to get a failed run-time check in Visual C++ 2008 because of casting a too big number to a smaller type. The failure is in an external dll, so I can not fix it there. So how can I switch off this run time check for an external project.
A: If the cast (a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hide WinForms TreeView plus sign I have a WinForms TreeView with one main node and several sub-nodes.
How can I hide the + (plus sign) in the main node?
A: Treview Property: .ShowRootLines = false
When ShowRootLines is false, the Plus/Minus sign will not be shown for the root node, but will still show when necessar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Hide triangle of dropdownlist when using css with media print I'm using @media print in my external css file to hide menus etc. However while printing the little triangle of a dropdownlist still shows. Is there a css setting available to hide it as well and only print the selected item?
A: This works in Chrome and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Finding a User in Active Directory with the Login Name I'm possibly just stupid, but I'm trying to find a user in Active Directory from C#, using the Login name ("domain\user").
My "Skeleton" AD Search Functionality looks like this usually:
de = new DirectoryEntry(string.Format("LDAP://{0}", ADSearchBase), null, nul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Page.Tostring() behaves a bit weird in .net 1.1? I have a control where I have to check in which page I am, so I can set a certain variable accordingly.
string pageName = this.Page.ToString();
switch (pageName)
{
case "ASP.foo_bar_aspx": doSomething(); break;
default: doSomethingElse(); break;
}
this works fine loc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using DISTINCT inner join in SQL I have three tables, A, B, C, where A is many to one B, and B is many to one C. I'd like a list of all C's in A.
My tables are something like this: A[id, valueA, lookupB], B[id, valueB, lookupC], C[id, valueC]. I've written a query with two nested SELECTs, but I'm wondering if it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: What tools are available for providing a breakdown of the diskspace used by an SQL Server database I have an MSDE2000 database which appears to be approaching it's 2Gb limit.
What tools can I use to determine where all the space is being used?
Ideally think TreesizePro for SQL Databases
A: Whilst the DB size may be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: automatic query cache invalidation I'm trying to understand how hibernate query cache really works.
What I see now is that Hibernate does not update its second-level cache automatically when I insert new entities into the database (although I'm using only Hibernate calls).
The only way I have found to make it work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Unit Testing: Maven or Eclipse? I am not really familiar with Maven program but I've been using Eclipse for quite a while for Unit testing, code coverage, javadoc generation, code style checking, etc. Probably, the only main thing that I didn't really like about Eclipse is the "compilation errors" that it generates ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best algorithm for synchronizing two IList in C# 2.0 Imagine the following type:
public struct Account
{
public int Id;
public double Amount;
}
What is the best algorithm to synchronize two IList<Account> in C# 2.0 ? (No linq) ?
The first list (L1) is the reference list, the second (L2) is the one to synchr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Use URL segments as action method parameters in Zend Framework In Kohana/CodeIgniter, I can have a URL in this form:
http://www.name.tld/controller_name/method_name/parameter_1/parameter_2/parameter_3 ...
And then read the parameters in my controller as follows:
class MyController
{
public function method_name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Java: Writing a DOM to an XML file (formatting issues) I'm using org.w3c XML API to open an existing XML file. I'm removing some nodes , and I'm adding others instead.
The problem is that the new nodes that are added are written one after the other, with no newline and no indentation what so ever. While it's true th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do you 'clone' WebControls in C# .NET? My basic question is, in .NET, how do I clone WebControls?
I would like to build a custom tag, which can produce multiple copies of its children.
Ultimately I intend to build a tag similar to in JSP/Struts.
But the first hurdle I have is the ability to duplicate/clone the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Equivalent of typedef in C# Is there a typedef equivalent in C#, or someway to get some sort of similar behaviour? I've done some googling, but everywhere I look seems to be negative. Currently I have a situation similar to the following:
class GenericClass<T>
{
public event EventHandler<EventData> MyEvent;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "380"
} |
Q: Spring MVC : Binding 3 dropdowns to a date property in SimpleFormController How should I configure the class to bind three dropdowns (date, month, year) to a single Date property so that it works the way it works for 'single request parameter per property' scenario ?
I guess a should add some custom PropertyEditors ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Change language of error messages in ASP.NET I developing ASP.NET application using a Swedish version of Windows XP and Visual studio Professional. When ever i get an error aka. "yellow screen of death" the error message is in swedish, making it a bit hard to search for info about it.
How can i change what language ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Referenced structure not 'sticking' I am currently porting a lot of code from an MFC-based application to a DLL for client branding purposes.
I've come across an unusual problem. This bit of code is the same in both systems:
// ...
CCommsProperties props;
pController->GetProperties( props );
if (props.h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Some good resources for learning F# please I am a .Net programmer(both C# and VB.net) , and I want to go into F# area also, but can't find some good online article/pdf to start with. Please guide me through this.
A: hubFS: THE place for F#
hubFS: THE place for F# » Establish skills in F# » Books, Tutorials, links a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a nice way of handling multi-line input with GNU readline? My application has a command line interface, and I'm thinking about using the GNU Readline library to provide history, an editable command line, etc.
The hitch is that my commands can be quite long and complex (think SQL) and I'd like to allow users... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to Execute an application in XP when a particular type of USB device is attached In Windows XP what is the best way to execute a particular application when a particular type of USB device is attached (it currently attaches as a storage device - i.e. it appears as a drive).
The solution I am looking for must exe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Non intrusive 'live' help system I'm searching a C# component or code snipped that does something like that:
I want to inform new users about the most important program functions if he opens a new window for example.
It should be a box showing text (formated if possible) that is of course not modal and has some mech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 'pass parameter by reference' in Ruby? In Ruby, is it possible to pass by reference a parameter with value-type semantics (e.g. a Fixnum)?
I'm looking for something similar to C#'s 'ref' keyword.
Example:
def func(x)
x += 1
end
a = 5
func(a) #this should be something like func(ref a)
puts a #should read '6'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.