text stringlengths 8 267k | meta dict |
|---|---|
Q: WinForms: color DataGridView border How can I change the color of a DataGridView border when BorderStyle = FixedSingle?
A: this.dataGridView1.GridColor = Color.BlueViolet;
source: http://msdn.microsoft.com/en-us/library/ehz9ksfa.aspx
A: You could change the border if you make your own DataGridView and override the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Linking an external .jar from an Xcode java project? How do I link an external .jar into my Xcode java project? That is, have it in the classpath during compilation and execution. I'm using Xcode 3.0 and this seems to have changed since 2.4.
A: In Xcode 3.1.2
Checking in file build.xml we see:
<!-- lib director... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I insert HTML-Formatted Strings into a Microsoft Word Document using Visual Basic while preserving formatting? I use Visual Basic and an automation interface to retrieve strings from an external application. These strings contain simple html formatting codes (<b>, <i>, etc.).
Is there any easy function in Vis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Does this query look optimized? I'm writing a query for an application that needs to list all the products with the number of times they have been purchased.
I came up with this and it works, but I am not too sure how optimized it is. My SQL is really rusty due to my heavy usage of ORM's, But in this case a query is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is there a "best practice" to access another process in the OS through java? I've been reading Skype4Java (java api for skype) and noticed they use jni to access the skype client.
intuitively I'd assume that there already is a standard library in java that has an OS-sensitive jni implementation to access other proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Submitting a form on a user control by pressing enter on a text field does not work This seems to be a common problem but I cannot find a solution.
I type in my username and password which are in a login control I have created.
I then press enter once I've typed in my password and the page just refreshes. It trigger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the purpose of instance methods in Modules without classes? Imagine the following Ruby Module:
module Foo
def inst_method
puts "Called Foo.inst_method"
end
def self.class_method
puts "Called Foo.class_method"
end
end
Obviously Foo.class_method can be called without any class instances. Howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Where is GDB documentation specific to the Cell Linux environment? Where can documentation be found for the features of GDB, and the debugging process, specific to debugging of Cell Linux programs mixing PPU and SPU code?
A: Documents at the IBM developerWorks site for Cell can be found here:
Cell @developerWorks
Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I use SVN or Git? I am starting a new distributed project. Should I use SVN or Git, and why?
A: Not really answering your question but if you want the benefits of Distributed Revision Control - it sounds like you do - and you're using Windows I think you'd be better off using Mercurial rather that Git as Mer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "325"
} |
Q: AJAX Toolkit - AJAX Framework What's the difference between toolkits and frameworks? Do you know a good comparison?
A: If I had to make a distinction, then I'd say a toolkit provides specific tools to do specific jobs, whereas a framework provides you with a foundation on which to build further, higher-level struct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically renaming a table in SQL Server 2000 - is sp_rename the only solution? I recently had to rename a table (and a column and FK/PK contraints) in SQL Server 2000 without losing an data. There did not seem to be an obvious DDL T-SQL statements for performing this action, so I used sp_rename to directly f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert IDictionary keys to lowercase (C#) I've got a Method that gets a IDictionary as a parameter.
Now I want to provide a method that retrieves the value from this dictionary, but it should be case-invariant.
So my solution to this right now was to have a static function that loops through the keys and converts t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I launch a standalone SWF from within an Adobe AIR application? I'm completely new to AIR but what I'm trying to do feels like it should be quite easy.
I want my AIR app to execute (launch) an SWF in the standalone Flash Player (just like if I were to double click it).
Please note that I don't want the AIR a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Usability: Should the ENTER key close a wizard form as OK even if the focus is not set on the OK/DONE button? I have the in my opinion odd request to close a wizard form as Done or OK if Enter was pressed on the keyboard even if the OK/DONE button is not focused.
In my opinion that would be a usability mistake. For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you get the Class of an Abstract class (Object) in JavaME? I need to get the Class of an object at runtime.
For an non-abstract class I could do something like:
public class MyNoneAbstract{
public static Class MYNONEABSTRACT_CLASS = new MyNoneAbstract().getClass();
But for an abstract class this does NOT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is Apache + Rails is spitting out two status headers for code 500? I have a rails app that is working fine except for one thing.
When I request something that doesn't exist (i.e. /not_a_controller_or_file.txt) and rails throws a "No Route matches..." exception, the response is this (blank line intentional):
HTTP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Should methods in a Java interface be declared with or without a public access modifier? Should methods in a Java interface be declared with or without the public access modifier?
Technically it doesn't matter, of course. A class method that implements an interface is always public. But what is a better convention?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "321"
} |
Q: Visual Studio 2005 - can not open form on designer My team developed a GUI application on Visual Studio 2005, managed C++. Since some deliveries it is not possible to open the form in the designer, even if the source code and the project settings have not been changed. The designer reports this error:
Exception of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windbg: How to set breakpoint on one of the overloads of a C++ function? I have two overloads of a c++ function and I would like to set a breakpoint on one of them:
0:000> bu myexe!displayerror
Matched: 00000000`ff3c6100 myexe!displayError (int, HRESULT, wchar_t *)
Matched: 00000000`ff3c60d0 myexe!displayError (int,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Truncating Method calls This is a subjective question as I want to gauge if it's worth me moaning at my co-workers for doing something which I find utterly detestable.
The issue is that a bunch of my co-workers will truncate method calls to fit a width. We all use widescreen laptops that can handle large resolutions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I maintain history of a file that is moved to a directory overwriting a file of the same name Consider the following subversion directory structure
/dir1/file.txt
/dir2/file.txt
I want to move the file.txt in dir1 to replace the same file in dir2 and ensure that the history for the dir1 file is maintained. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SICP Exercise 1.3 request for comments I'm trying to learn scheme via SICP. Exercise 1.3 reads as follow: Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. Please comment on how I can improve my solution.
(define (big x y)
(if (> x y) x y))
(d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: C++ class initialisation containing class variable initialization I noticed some code of a colleague today that initialized class variables in the initialization. However it was causing a warning, he says because of the order they are in. My question is why is it better to do variable initialization where it curre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Home/End keys in zsh don't work with putty I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (which also emulates xterm) suddendly the home/end keys no longer work.
I've been... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: iCalendar Format (Outlook 2007) I've got a little problem, I need to be able to have a reoccurring event (forever) that marks the day after the second Tuesday of each month.
Your probably thinking, why not just Wednesday of each month.
October 2008 is an example, it starts on a Wednesday. :(
Really I just need it in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GWT Table that supports sorting, scrolling and filtering I have a project using GWT and it displays data in a table.
I need a Table for GWT that supports:
*
*sorting by particular column
*scrolling the data, while the header is immobile
*filtering rows for data searched in the table
The project is being creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Perl Challenge - Directory Iterator You sometimes hear it said about Perl that there might be 6 different ways to approach the same problem. Good Perl developers usually have well-reasoned insights for making choices between the various possible methods of implementation.
So an example Perl problem:
A simple script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best Linux Distro for Web Development? I want to start learning HTML and AJAX using a Linux distribution.
Can anyone recommend a distribution that has these requirements:
*
*Local Host Admin interface (like PHPmyAdmin)
*IDE for Javascript... etc
A: First question - Why do you want to do this on Linux? You can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I speed up my maven2 build? I'm using a local artifactory to proxy the request, but the build and test phases are still a bit slow. It's not the actual compile and tests that are slow, it's the "warmup" of the maven2 framework. Any ideas?
A: I don't know what version of Maven you are using, I assume 2, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Using Generic lists on serviced component I'm trying to use a generic List as a property on a ServicedComponent class...
public class MyCOM : ServicedComponent {
public enum MyEnumType {
Value1, Value2, Value3
}
public List<MyEnumType> MyList { private set; get; }
public MyCOM()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the size limit of the application object in classic asp? I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know?
A: An application pool may specifiy the Maximum virtual memory size that a worker pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to remotely Start/Stop SQLServer services kicking off existing connections? I know there is already a question about this but my issue is more oriented to remote scenarios.
With net start/stop you can specify a /y parameter to bounce users off current sessions but you cannot start/stop remotely.
With sc you can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding and removing content in jQuery If I create a function with jQuery that adds an empty div, performs some animation inside the blank space created by the div, then removes the div, the browser never makes room for the empty div (height and width are set).
If I don't remove the empty div in my function, then the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the best ASP.NET performance counters to monitor? There are truckloads of counters available in perfmon for ASP.NET. What are the best (I am thinking of choosing 5-10) that will be the best to monitor in our test environment so that we can feed back to developers.
I am thinking of things like request time,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What is the best regular expression to check if a string is a valid URL? How can I check if a given string is a valid URL address?
My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web.
A: What platform? If using .NET, use S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1019"
} |
Q: How to allow MediaWiki logged user to edit Common.css? I would like to allow the logged user to edit MediaWiki/Common.css without adding them to the sysop group.
I understand that this will allow user to change it to harful ways but it is a closed wiki so that is not a problem.
Any solution is acceptable even changi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How would you implement ant-style patternsets in python to select groups of files? Ant has a nice way to select groups of files, most handily using ** to indicate a directory tree. E.g.
**/CVS/* # All files immediately under a CVS directory.
mydir/mysubdir/** # All files recursively under mysubdir
More... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Putting configuration information in a DLL In my project I have functionality that is being used as a web application and as a console application (to be started from the task scheduler). To do that I put the common code in a DLL that is being used by both the web application and the console application. This works ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: php - imap - moving emails on antoher account I am working on a script that downloads emails and stores them in a db, I usually receive thousands of emails on this account, once downloaded the mails are deleted.
Being paranoic, I want to have at least one month backup of my emails, but I cannot clutter my main mailb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best MemCache solution for ASP.NET applications? What is the best MemCache solution for ASP.NET applications running in a windows server environment? Why?
A: You could also check out Microsoft Velocity, especially if you're at a place that prefers Microsoft products.
A: My sentiments exactly - My Quest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is JavaScript single threaded? If not, how do I get synchronized access to shared data? I have a web page with DIVs with a mouseover handler that is intended to show a pop-up information bubble. I don't want more than one info bubble to be visible at a time. But when the user moves the mouse rapidly over two items, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are there any downsides to passing structs by value in C, rather than passing a pointer? Are there any downsides to passing structs by value in C, rather than passing a pointer?
If the struct is large, there is obviously the performance aspect of copying lots of data, but for a smaller struct, it should basically be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "185"
} |
Q: initialize a const array in a class initializer in C++ I have the following class in C++:
class a {
const int b[2];
// other stuff follows
// and here's the constructor
a(void);
}
The question is, how do I initialize b in the initialization list, given that I can't initialize it inside the body of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: How do I send arrays between views in CakePHP I am not sure if I formulated the question right, but still ...
I have a view that shows a flash embed and this flash take as parameter a /controller/action URL that generates a XML. I nee to send, from this view, an array to the XML generator action. How is the best way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is one's complement a real-world issue, or just a historical one? Another question asked about determining odd/evenness in C, and the idiomatic (x & 1) approach was correctly flagged as broken for one's complement-based systems, which the C standard allows for.
Do systems really exist in the 'real world' outside of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How do I resolve merge conflicts in a Git repository? How do I resolve merge conflicts in my Git repository?
A: If you're making frequent small commits, then start by looking at the commit comments with git log --merge. Then git diff will show you the conflicts.
For conflicts that involve more than a few lines, it'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5296"
} |
Q: What are main/best Maven respositories to use? What are the main/best Maven repositories to use that will include the majority of your open source Java package dependencies.
Also in what order should these be included? Does it matter?
A: I would suggest using a Maven proxy like Archiva, Artifactory or Nexus and def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How to indicate that a method was unsuccessful I have several similar methods, say eg. CalculatePoint(...) and CalculateListOfPoints(...). Occasionally, they may not succeed, and need to indicate this to the caller. For CalculateListOfPoints, which returns a generic List, I could return an empty list and require the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Setting data type when reading XML data in SAS I need to control the data type when reading XML data in SAS. The XML data are written and accessed using the XML libname engine in SAS.
SAS seems to guess the data type based on the contents of a column: If I write "20081002" to my XML data in a character column, it wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to unlisten on a socket? Is it possible to unlisten on a socket after you have called listen(fd, backlog)?
Edit: My mistake for not making myself clear. I'd like to be able to temporarily unlisten on the socket. Calling close() will leave the socket in the M2LS state and prevent me from reopening it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I read binary data from wfstream? I have a slight problem reading data from file. I want to be able to read wstring's, aswell as a chunk of raw data of arbitrary size (size is in bytes).
std::wfstream stream(file.c_str());
std::wstring comType;
stream >> comType;
int comSize;
stream >> comSize;
char *com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using Quotes within getRuntime().exec I'd like to invoke bash using a string as input. Something like:
sh -l -c "./foo"
I'd like to do this from Java. Unfortunately, when I try to invoke the command using getRuntime().exec, I get the following error:
foo": -c: line 0: unexpected EOF while looking for matchi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Hidden features of Perl? What are some really useful but esoteric language features in Perl that you've actually been able to employ to do useful work?
Guidelines:
*
*Try to limit answers to the Perl core and not CPAN
*Please give an example and a short description
Hidden Features also found in other language... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "143"
} |
Q: K & R Exercise: My Code Works, But Feels Stinky; Advice for Cleanup? I'm working on the K&R book. I've read farther ahead than I've done exercises, mostly for lack of time. I'm catching up, and have done almost all the exercises from chapter 1, which is the tutorial.
My issue was exercise 1-18. The exercise is to:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Parenthesis surrounding return values in C Quite often in ANSI C code I can see parenthesis sorrounding a single return value.
Like this:-
int foo(int x) {
if (x)
return (-1);
else
return (0);
}
Why use () around the return value in those cases? Any ideas? I can see no reason for that.
A: When returni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: WPF Bind to a Collection of objects, sorted by IDs stored in order in another Collection in C# For those of you that like puzzles: I had this problem recently and am sure there must be a nicer solution.
Consider :
*
*an ObservableCollection of Foo objects called foos.
*Foo contains a string ID field
*I have no ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to evict file from system cache on Linux? When running performance tests file system cache hit or miss can significantly influence test results. Therefore generally before running such tests used files are evicted from system cache. How to do that on Linux?
Clarification: If possible, the solution should not req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you track the time of replicated rows for Subscribers in SQL Server 2005? The basic problem is like this:
A subscriber has successfully replicated a row from the publisher, using transactional replication. Now, how do we keep track the time of this row being last successfully replicated?
A friend has sugges... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I run ASP and ASP.NET pages in the same web app simultaneously? In the process of updating a web app from ASP to ASP.NET, I want to insert one of the new files into the old app to test something - is this an offence against reason?
A: Yes but they will not share the session memory. I have an old ASP website and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Determining the height of an HTML table that is dynamically filled I would like to draw a diagram in HTML. The positioning structure looks like this:
<div id='hostDiv'>
<div id='backgroundDiv'>
... drawing the background ...
</div>
<div id='foregroundDiv' style='position: absolute;'>
... drawing the fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Unequal Html textbox and dropdown width with XHTML 1.0 strict I'm trying to have two inputs (one textbox, one drop down) to have the same width.
You can set the width through css, but for some reason, the select box is always a few pixels smaller.
It seems this only happens with the xhtml 1.0 strict doctype
Any sugg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Corner desks vs straight desks The company I work for are currently undergoing a site wide renovation and I'm involved in the 'consultation' on what the R&D work spaces are going to be like.
There is no scope for individual private offices - so lets not start on that topic.
One big requirement is that the office la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are .git/info/grafts for? I am trying to figure out what is the 'grafts' in the Git.
For example, in one of the latest comments here, Tobu suppose to use git-filter-branch and .git/info/grafts to join two repositories.
But I don't understand why I need these grafts? It seems, that all work without last two comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Howto deactivate caching inside a jsp page I understand there is a HTTP response header directive to disable page caching:
Cache-Control:no-cache
I can modify the header by "hand":
<%response.addHeader("Cache-Control","no-cache");%>
But is there a "nice" way to make the JSP interpreter return this header line in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How slow are .NET exceptions? I don't want a discussion about when to and not to throw exceptions. I wish to resolve a simple issue. 99% of the time the argument for not throwing exceptions revolves around them being slow while the other side claims (with benchmark test) that the speed is not the issue. I've read nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: If I stop a long running query, does it rollback? A query that is used to loop through 17 millions records to remove duplicates has been running now for about 16 hours and I wanted to know if the query is stopped right now if it will finalize the delete statements or if it has been deleting while running this query... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Visual Studio 2005: All projects in solution explorer expanded on first opening of solution Is any way to tell the solution explorer of Visual Studio 2005 not to expand all projects on the first opening of the solutio after svn-checkout?
Edit:
Thanks for pointing out the PowerCommands. As I am using Visual Studio 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Refactoring Code: When to do what? Ever since I started using .NET, I've just been creating Helper classes or Partial classes to keep code located and contained in their own little containers, etc.
What I'm looking to know is the best practices for making ones code as clean and polished as it possibly could be.
Obv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Using Selenium IDE with random values Is it possible to create Selenium tests using the Firefox plugin that use randomly generated values to help do regression tests?
The full story:
I would like to help my clients do acceptance testing by providing them with a suite of tests that use some smarts to create random (o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: could not read column value from result set ; String index out of range: 0 I'm reading data from a table( from a MySQL Database) with Hibernate SQL Query.
The thing is, the table contains a colum that is mapped to a char in Hibernate Model, and sometimes this column is empty.
And I suppose this is where my exception... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio 2008: make Ctrl + K, Ctrl + N (next bookmark) stay within the same file In Visual Studio 2003 you could jump to the next bookmark with Ctrl + K, Ctrl + N; it stayed within the same file and wrapped around to the top of the file when there were no furter bookmarks in the file. Now in VS 2008 this seems ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Is there any way to determine the amount of time a client spends on a web page Assuming I have an open source web server or proxy I can enhance, let's say apache or squid.
Is there a way to determine the time each client spends on a web page?
HTTP is of course stateless, so it's not trivial, but maybe someone has a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/161994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Making every pixel of an image having a specific color transparent I have an object of the type System.Drawing.Image and want to make every pixel which has some specific color, for example black, transparent (that is, set alpha to 0 for this pixel).
What is the best way to do this?
A: One good approach is to use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: CruiseControl.NET view NUnit xml test result when Nant build file executes NUnit I have a Nant build file which executes NUnit after compiling the dll's. I am executing the NAnt build file with a task in CruiseControl. So NAnt is running the tests not CruiseControl.
How do I configure it so that the CruiseControl w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Fire Async method on page load with AJAX I am using ASP.NET 2.0 with AJAX Extensions (1.0?) and am wondering if it is possible to call a method asynchronously and have the results populate on the page after it has been loaded.
I have a gridview that is populated by a fairly long-running SQL query. I would prefer to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Disable Intellisense in XAML Editor in VS2008? Is there a way to disable Intellisense in the XAML editor in Visual Studio 2008? It is often a big performance drain while typing, and sometimes I'll sit for ten or more seconds waiting while the list automatically popups up.
It appears that in Options->Text Editors->XA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What does stdole.dll do? We have a large C# (.net 2.0) app which uses our own C++ COM component and a 3rd party fingerprint scanner library also accessed via COM. We ran into an issue where in production some events from the fingerprint library do not get fired into the C# app, although events from our own C++ COM c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: New site creation and security/authentication,- should I use ASP.net Membership Provider? There seem to many ways to skin this particular cat - but which is the best and easiest to implement. It would seem that the ASP.net Membership Provider is the one that will save more time, so my questions are:
*
*What are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Merge two arrays as key value pairs in PHP I've got two arrays of the same size. I'd like to merge the two so the values of one are the key indexes of the new array, and the values of the new array are the values of the other.
Right now I'm just looping through the arrays and creating the new array manually, but I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Unknown Outlook MailItem EntryID My Outlook add-in handles NewInspector event of the Inspector object, in order to display a custom form for the mail item.
I can get EntryID of the CurrentItem of the Inspector object which is passed as a parameter of the event. But, the problem is that the EntryID of the current mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any viable alternatives to the GOF Singleton Pattern? Let's face it. The Singleton Pattern is highly controversial topic with hordes programmers on both sides of the fence. There are those who feel like the Singleton is nothing more then a glorified global variable, and others who swear by pattern and us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: How do you insert email headers with a Thunderbird extension? I'm building a Thunderbird extension and would like to add my own header to all outgoing email (e.g. <myext-version: 1.0> ). Any idea how to do this? I know it's possible since this is done in the OpenPGP Enigmail extension. Thanks!
A: Here is the code f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Adjusting the auto-complete dropdown width on a textbox I am using a textbox in a .NET 2 winforms app that is setup with a custom AutoCompleteSource. Is there anyway through code that I can increase the width of the list that appears containing the auto complete suggestions?
Ideally I would like to do this withou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to merge jsp pre-compiled web.xml fragment with main web.xml using Ant We have the usual web.xml for our web application which includes some jsp and jsp tag files. I want to switch to using pre-compiled jsp's. I have the pre-compilation happening in the build ok, and it generates the web.xml fragment and now I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: web.xml and relative paths in web.xml i set my welcome file to a jsp within web.xml
<welcome-file>WEB-INF/index.jsp</welcome-file>
inside index.jsp i then forward on to a servlet
<% response.sendRedirect(response.encodeRedirectURL("myServlet/")); %>
however the application tries to find the servlet at the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does ActiveRecord's serialize randomly corrupt my data? I use serialize in one ActiveRecord model to serialize an Array of simple Hashes into a text database field. I even use the second parameter to coerce deserialization into Arrays.
class Shop < ActiveRecord::Base
serialize : recipients, Array
end
It seems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best Way To Get Started With Mac Development I just recently got my first mac. I do lots of programming on windows but now I want to get into Mac development. What are some languages i should know or tools i should use to get started with mac development?
A: For desktop apps, cocoa+objective-c are the way to go. XC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What's the best way to create an etag? What's a good method of programatically generating etag for web pages, and is this practice recommended? Some sites recommend turning etags off, others recommend producing them manually, and some recommend leaving the default settings active - what's the best way here?
A: I re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Events in C# Just how much slower are events? I have written a streaming XML parser (that can handle open-ended and incomplete documents) and by tearing out the events and using an interface instead I got a significant speed boost.
Does any one else have any war stories?
(Let's not open the GC can of worms here, we ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sorting sets of ordered linked lists I'm looking for an elegant, high performance solution to the following problem.
There are 256 linked lists.
*
*Each list contains the same types of object that among other things holds a whole number that is used to define a sort order.
*All numbers across all lists are un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XMLTextReader in .NET 1.1 I have a process that reads an XML file. It uses the XMLTextReader class to do this as it is supposed to be a fast, forward only XML parser/reader.
Works just great with a 1 megabyte test file but comes to a complete halt when working on a 12 meg file in the live system.
Are there any solut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perforce trigger to deny submission of unchanged files? Perforce allows people to check in unchanged files. Why any version control system would allow this is beyond me, but that's a topic for another question. I want to create a trigger that will deny the submission of unchanged files. However, I have no experien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Avoid being blocked by web mail companies for mass/bulk emailing? Our company is sending out a lot of emails per day and planning to send even more in future. (thousands) Also there are mass mailouts as well in the ten thousands every now and then.
Anybody has experience with hotmail, yahoo (web.de, gmx.net) and sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: C#, Get other application text from TextBox and TextArea? Good morgning,
I would like to be able to analyze text where I am writting whatever the application I am. Example, If I am here, typing in this TextArea, I would like to be able to get the text, same way if I were in the Subject Textbox in my Outlook.
I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JavaScript: client-side vs. server-side validation Which is better to do client side or server side validation?
In our situation we are using
*
*jQuery and MVC.
*JSON data to pass between our View and Controller.
A lot of the validation I do is validating data as users enter it.
For example I use the the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "204"
} |
Q: Registering a COM server with WiX I have been trying to determine a best case solution for registering a COM server using WiX to create a Windows Installer package and am struggling.
In this post Deployment Engineering Archive: HOWTO: Use Regsvr32.exe with WIX, there is an open request for the "Setup police" to crac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MySQL server goes away in XAMPP I am trying to install xampp 1.6.7 in a Red Hat Enterprise Edition. I followed the installation instructions and after that I started the stack with the command
sudo /opt/lampp/lampp start
And I get te usual response
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading very large files in PHP fopen is failing when I try to read in a very moderately sized file in PHP. A 6 meg file makes it choke, though smaller files around 100k are just fine. i've read that it is sometimes necessary to recompile PHP with the -D_FILE_OFFSET_BITS=64 flag in order to read files over 20 gigs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to transfer data from one database to another with Hibernate? I have an application A with a domain-model which is mapped to a database using Hibernate. I have another application B that uses exactly the same domain-model-classes as A and adds some additional classes.
My goal is to read data from database A in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Building a web crawler - using Webkit packages I'm trying to build a web crawler.
I need 2 things:
*
*Convert the HTML into a DOM object.
*Execute existing JavaScripts on demand.
The result I expect is a DOM Object, where the JavaScript that executes on-load is already executed.
Also, I need an option to execute ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/162181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.