text stringlengths 8 267k | meta dict |
|---|---|
Q: What is the best way to add an event in JavaScript? I see 2 main ways to set events in JavaScript:
*
*Add an event directly inside the tag like this:
<a href="" onclick="doFoo()">do foo</a>
*Set them by JavaScript like this:
<a id="bar" href="">do bar</a>
and add an event in a <script> section inside the <head> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to you pass a variable amount of parmeters to web-service We are trying to create a web-service that we plan to pass a variable amount of variables to it.
Can this be done?
Basically instead of pass all possible parameters we wish to pass only the set values and use the defaults set in the web-service.
Here is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In Maven 2, how do I know from which dependency comes a transitive dependency? I would like to know which dependency described in my pom.xml brings a transitive dependency in my target directory.
To be more precise, I have the library "poi-2.5.1-final-20040804.jar" in my WEB-INF/lib directory and I would like to kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: C++ Thread question - setting a value to indicate the thread has finished Is the following safe?
I am new to threading and I want to delegate a time consuming process to a separate thread in my C++ program.
Using the boost libraries I have written code something like this:
thrd = new boost::thread(boost::bind(&mycla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Looking for examples of "real" uses of continuations I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the Wikipedia article:
(define the-continuation #f)
(define (test)
(let ((i 0))
; call/cc calls its first function argument, passing
; a con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Delete Records from Access database, error while deleting I have the following situation: I built an Access form with a subform (which records are linked to the records of main form via certain key). When I try to delete any record in the subform, I get the following message: “Access has suspended the action because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alternatives for enhanced reading and parsing text files using .NET I need to read from a variety of different text files (I've some delimited files and some fixed width files). I've considered parsing the files line by line (slow using the File.ReadLine type methods) and reading the file using the ODBC text driver ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#.Net: Why is my Process.Start() hanging? I'm trying to run a batch file, as another user, from my web app. For some reason, the batch file hangs! I can see "cmd.exe" running in the task manager, but it just sits there forever, unable to be killed, and the batch file is not running. Here's my code:
SecureString pas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: ASP.NET MVC on IIS6 Where can I find some good pointers on best practices for running ASP.NET MVC on IIS6?
I haven't seen any realistic options for web-hosts who provide IIS7-hosting yet. Mostly because I don't live in the U.S.
So I was wondering on how you best build applications in ASP.NET MVC and make it easily a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I get latest from a Visual Studio solution from the command line? How do I get the latest version of my solution recursively like its done in the solution explorer context menu of Visual Studio? I want to do this from the command line or via a macro. I'm trying to automate a part of my daily routine by using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Django ImageField core=False in newforms admin In the transition to newforms admin I'm having difficulty figuring out how specify core=False for ImageFields.
I get the following error:
TypeError: __init__() got an unexpected keyword argument 'core'
[Edit] However, by just removing the core argument I get a "This fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to persist (without reloading) AJAX page state across BACK button clicks? I am familiar with several approaches to making the back button work in AJAX applications in various situations, but I have not found a solution that will work gracefully in my specific scenario.
The pages I am working with are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to hide the cancel button on an ASP.NET ChangePassword control I'm considering using the ChangePassword control on an ASP.NET 2.0 Webform. I don't want the 'cancel' button to show.
Is there a good way to hide it without resorting to silly "width = 0" sort of games?
Or perhaps there's a generic way to walk thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python descriptor protocol analog in other languages? Is there something like the Python descriptor protocol implemented in other languages? It seems like a nice way to increase modularity/encapsulation without bloating your containing class' implementation, but I've never heard of a similar thing in any other langu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best algorithm to test if a linked list has a cycle What's the best (halting) algorithm for determining if a linked list has a cycle in it?
[Edit] Analysis of asymptotic complexity for both time and space would be sweet so answers can be compared better.
[Edit] Original question was not addressing nodes with outdegr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Query TFS for updated files I want to get an overview of files that are updated in TFS (that someone else checked in) that I don't have the latest version for.
A: In Visual Studio Source Control Explorer, right click on the directory you want to compare, and select "Compare". It will pop up a dialog with a couple o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: COMException "Library not registered." while using System.DirectoryServices I have only just started received the following error in my windows forms application under .NET 2 framework on windows 2000 when using System.DirectoryServices.
{System.Runtime.InteropServices.COMException}
System.Runtime.InteropService... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to fix build error in Visual Studio: '"LC.exe" exited with code -1' I get the following error when building my Windows Forms solution:
"LC.exe" exited with code -1
I use two commercial Windows Forms Libraries: Infragistics and the Gantt-Control from plexityhide.com, that's why I have licenses.licx files in my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Visually Tag/Mark a Window I'm looking for a way to visually mark or tag a window (any OS) so that it stands out.
A while back, I accidentally replaced a live production database containing thousands of records with an empty dev version, simply because the two instances of Enterprise Manager looked identical to one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 64bit Memory allocation I've been asked to create a Delphi compatible dll in C++ to do simple 64bit memory management.
The background is that the system in Delphi needs to allocate a lots of chunks of memory that would go well outside 32bit addressable space. The Delphi developer explained to me that he could not al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Has .NET made raw COM and DCOM programming redundant? Has the introduction of the .net framework made raw programming in COM and DCOM redundant ?
(Except for using some COM+ services, e.g. for transaction management through the System.EnterpriseServices namespace)
A: COM was the last major technology that MS actua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multiple web-sites running in IIS simulatenously At work, we have multiple branches that we may be working on at any time.
Our solution so far as been to create multiple web-sites but you can only run one web-site at a time. This makes switching between branches more of a pain that in should be.
I just want to go ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What types of testing do you include in your build process? I use TFS 2008. We run unit tests as part of our continuous integration build and integration tests nightly.
What other types of testing do you automate and include in your build process? what technologies do you use to do so?
I'm thinking about smoke t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SimpleTest vs PHPunit I was wondering if anyone that has experience in both this stuff can shed some light on the significant difference between the two if any?
Any specific strength of each that makes it suitable for any specific case?
A: This question is quite dated but as it is still getting traffic and answers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "128"
} |
Q: How do I implement Search Functionality in a website? I want to implement search functionality for a website (assume it is similar to SO). I don't want to use Google search of stuff like that.
My question is:
How do I implement this?
There are two methods I am aware of:
*
*Search all the databases in the applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Do webtests need VS tester edition on the build server? Using the TFS build server without VS 2008 Team System Tester Edition installed - is it possible to run a series of webtests as part of a build?
I know that Webtests can only be recorded using the Tester Edition of VS. Here's a post about this from Jeff, back w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I use a cross-platform GUI-toolkit or rely on the native ones? On my side job as programmer, I am to write a program in C++ to convert audio files from/to various formats. Probably, this will involve building a simple GUI.
Will it be a great effort to build seperate GUIs for Mac and Windows using Cocoa and Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I make Windows aware of a service I have written in Python? In another question I posted yesterday, I got very good advice on how a Python script could be run as a service in Windows. What I'm left wondering is: How is Windows aware of the services that can be managed in the native tools ("services" window in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Finding your own number in a box 100 (or some even number 2N :-) ) prisoners are in a room A. They are numbered from 1 to 100.
One by one (from prisoner #1 to prisoner #100, in order), they will be let into a room B in which 100 boxes (numbered from 1 to 100) await them. Inside the (closed) boxes are numbers from 1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What if analysis on multi dimensional cubes (OLAP) I have a multi dimensional OLAP cube with a number of dimensions. Some of these dimensions have hierarchies. The users would like to perform 'what-if' analysis on the measures in the cube by changing the hierarchies in the dimensions.
For example, they want to know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Updating/Intercepting HttpContext.Current.Request.QueryString Here's a wierd one. I'm reusing a code base that unfortunately must not be updated. This code makes a call to HttpContext.Current.Request.QueryString. Ideally, I need to push a value into this collection with every request that is made. Is this possible -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make user controls know about css classes in ASP.NET Since there are no header sections for user controls in asp.net, user controls have no way of knowing about stylesheet files. So css classes in the user controls are not recognized by visual studio and produces warnings. How can I make a user control know t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: How would you abbriviate XHTML to an arbitrary number of words? How would you programmacially abbreviate XHTML to an arbitrary number of words without leaving unclosed or corrupted tags?
i.e.
<p>
Proin tristique dapibus neque. Nam eget purus sit amet leo
tincidunt accumsan.
</p>
<p>
Proin semper, orci at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I truncate a string while converting to bytes in C#? I would like to put a string into a byte array, but the string may be too big to fit. In the case where it's too large, I would like to put as much of the string as possible into the array. Is there an efficient way to find out how many characters will fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How should I model a field that can contain both numeric and string values in SQL Server 2005? I have a new database table I need to create...
It logically contains an ID, a name, and a "value".
That value field could be either numeric or a character string in nature.
I don't think I want to just make the field a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to dispay unordered list inline with bullets? I have an html file with an unordered list. I want to show the list items horizontally but still keep the bullets. No matter what I try, whenever I set the style to inline to meet the horizontal requirement I can't get the bullets to display.
A: You could also use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Send email from Elmah? Is anyone using Elmah to send exceptions via email? I've got Elmah logging set up via SQL Server, and can view the errors page via the Elmah.axd page, but I am unable to get the email component working. The idea here is to get the email notification so we can react more quickly to exceptions. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: How do I generate a friendly URL in Symfony PHP? I always tend to forget these built-in Symfony functions for making links.
A: If your goal is to have user-friendly URLs throughout your application, use the following approach:
1) Create a routing rule for your module/action in the application's routing.yml file. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why am I getting a NoClassDefFoundError in Java? I am getting a NoClassDefFoundError when I run my Java application. What is typically the cause of this?
A: One interesting case in which you might see a lot of NoClassDefFoundErrors is when you:
*
*throw a RuntimeException in the static block of your class Examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "653"
} |
Q: How to Format Numbers in WinForms 1.1 DataGrid? Is there a simple way to format numbers in a Winforms 1.1 datagrid? The Format property of the DataGridTextBoxColumn seems to be completely ignored. I know there is a solution that involves subclassing a Column control, and it's fairly simple, but was hoping there mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding what methods a Python object has Given a Python object of any kind, is there an easy way to get the list of all methods that this object has?
Or if this is not possible, is there at least an easy way to check if it has a particular method, other than checking if an error occurs when the method is called?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "642"
} |
Q: Technical Hurdles for Win32 rsync port Despite primarily being a windows user, I am a huge fan of rsync. Now, I don't want to argue the virtues of rsync vs any other tool...this is not my point.
The only way I've ever found of running rsync on windows is via a version that is built to run on top of Cygwin, and as C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is in your JavaScript development toolbox? I have to do some JavaScript in the future, so it is time to update my toolbox. Right now I use Firefox with some addons:
*
*JavaScript Shell from https://www.squarefree.com/bookmarklets/webdevel.html
*Firefox Dom Inspector
*Firebug
*Greasemonkey
*Stylish
I pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What more is needed for Ajax than this function I have a small JS function that does Ajax for me and another like it that adds in POST data to the request. With Ajax being such a big topic with so many libraries about it, what am I missing from my function, is it insecure or something else worrying?
function loadPag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does limiting a query to one record improve performance Will limiting a query to one result record, improve performance in a large(ish) MySQL table if the table only has one matching result?
for example
select * from people where name = "Re0sless" limit 1
if there is only one record with that name? and what about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How do I create a SHA1 hash in ruby? SHA Hash functions
A: For a Base64 encoded hash, to validated an Oauth signature, I used
require 'base64'
require 'hmac-sha1'
Base64.encode64((HMAC::SHA1.new('key') << 'base').digest).strip
A: I created a helper gem which is a simple wrapper around some sha1 code
require 'ric... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: Excel: list ranges targeted by INDIRECT formulas We have a few very large Excel workbooks (dozens of tabs, over a MB each, very complex calculations) with many dozens, perhaps hundreds of formulas that use the dreaded INDIRECT function. These formulas are spread out throughout the workbook, and target several tables... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is Object.GetHashCode() unique to a reference or a value? The MSDN documentation on Object.GetHashCode() describes 3 contradicting rules for how the method should work.
*
*If two objects of the same type represent the same value, the hash function must return the same constant value for either object.
*For the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Simulating a virtual static member of a class in c++? Is there anyway to have a sort of virtual static member in C++?
For example:
class BaseClass {
public:
BaseClass(const string& name) : _name(name) {}
string GetName() const { return _name; }
virtual void UseClass() = 0;
private:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Natural (human alpha-numeric) sort in Microsoft SQL 2005 We have a large database on which we have DB side pagination. This is quick, returning a page of 50 rows from millions of records in a small fraction of a second.
Users can define their own sort, basically choosing what column to sort by. Columns are dynamic ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: What is a race condition? When writing multithreaded applications, one of the most common problems experienced is race conditions.
My questions to the community are:
*
*What is the race condition?
*How do you detect them?
*How do you handle them?
*Finally, how do you prevent them from occurring?
A: There is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1277"
} |
Q: What is a deadlock? When writing multi-threaded applications, one of the most common problems experienced are deadlocks.
My questions to the community are:
*
*What is a deadlock?
*How do you detect them?
*Do you handle them?
*And finally, how do you prevent them from occurring?
A: You can take a look at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "193"
} |
Q: Is there a standard (like phpdoc or python's docstring) for commenting C# code? Is there a standard convention (like phpdoc or python's docstring) for commenting C# code so that class documentation can be automatically generated from the source code?
A: You can use XML style comments, and use tools to pull those co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Natural Sorting algorithm How do you sort an array of strings naturally in different programming languages? Post your implementation and what language it is in in the answer.
A: Here's how you can get explorer-like behaviour in Python:
#!/usr/bin/env python
"""
>>> items = u'a1 a003 b2 a2 a10 1 10 20 2 c100'.split(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is a semaphore? A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community:
What is a semaphore and how do you use it?
A: Mutex: exclusive-member access to a resource
Semaphore: n-member access to a resource
That is, a mutex can be used to syn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "414"
} |
Q: What is a mutex? A mutex is a programming concept that is frequently used to solve multi-threading problems. My question to the community:
What is a mutex and how do you use it?
A: When you have a multi-threaded application, the different threads sometimes share a common resource, such as a variable or similar. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "900"
} |
Q: How do you swap DIVs on mouseover (jQuery)? This most be the second most simple rollover effect, still I don't find any simple solution.
Wanted: I have a list of items and a corresponding list of slides (DIVs). After loading, the first list item should be selected (bold) and the first slide should be visible. When t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Detect DOM modification in Internet Explorer I am writing a Browser Helper Object for ie7, and I need to detect DOM modification (i.e. via AJAX).
So far I couldn't find any feasible solution.
A: You want to use IMarkupContainer2::CreateChangeLog.
A: The best thing I could recommend is the Internet Explorer Develop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I generate a random 10 digit number in ruby? Additionally, how can I format it as a string padded with zeros?
A: To generate the number call rand with the result of the expression "10 to the power of 10"
rand(10 ** 10)
To pad the number with zeros you can use the string format operator
'%010d' % rand(10 ** ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: How do I test a class that has private methods, fields or inner classes? How do I use JUnit to test a class that has internal private methods, fields or nested classes?
It seems bad to change the access modifier for a method just to be able to run a test.
A: I recently had this problem and wrote a little tool, call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3152"
} |
Q: MySQL "Error 1005" when adding tables I've recently been working with a MySQL database, and using MySQL workbench to design the Database.
When I use the export to SQL function, so I can actually get the layout in to the Database, I get:
"Error 1005: Cannot create table"
This appears to be related to Foreign Keys i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: inline-block on span I expected the two span tags in the following sample to display next to each other, instead they display one below the other. If I set the width of the class span.right to 49% they display next to each other. I am not able to figure out why the right span is pushed down like the right span has s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I change the number of open files limit in Linux? When running my application I sometimes get an error about too many files open.
Running ulimit -a reports that the limit is 1024. How do I increase the limit above 1024?
Edit
ulimit -n 2048 results in a permission error.
A: If some of your services are bal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "212"
} |
Q: What is a good Hash Function? What is a good Hash function? I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a good hash function. As a rule of thumb to avoid collisions my professor said that:
function Hash(key)
return key mod P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: Toolkit Options for 2D Python Game Programming What are some toolkits for developing 2D games in Python? An option that I have heard of is Pygame, but is there anything that has more range to do more things? What are the good and bad parts about the modules?
A: I have used and would highly recommend pyglet, which p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why is HTML form redirection used in OpenID 2? Why would you do an automatic HTML post rather than a simple redirect?
Is this so developers can automatically generate a login form that posts directory to the remote server when the OpenID is known?
eg.
*
*User is not logged in and visits your login page.
*You det... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I get the assembler output from a C file in VS2005 I think the file that is produced is an .asm file, any idea how to produce this in Visual Studio when you do a build?
A: Project->Properties->Configuration Properties->C/C++->Output Files
There you should see an option for Assembler Output.
John.
A: *
*Ope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: data 'security' with java and hibernate The system I am currently working on requires some role-based security, which is well catered for in the Java EE stack. The system intends to be a framework for business domain experts to write their code on top of.
However, there is also a requirement for data security. That ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Making an iframe take vertical space I would like to have an iframe take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ?
Are there any workarounds?
A: This should set the IFRAME height to its content's height:
<script type="text/javascript">
the_height ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Automate test of web service communication I have an application that sends messages to an external web service. I build and deploy this application using MSBuild and Cruisecontrol.NET. As CCNET build and deploys the app it also runs a set of test using NUnit. I'd now like to test the web service communication as we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DesignMode with nested Controls Has anyone found a useful solution to the DesignMode problem when developing controls?
The issue is that if you nest controls then DesignMode only works for the first level. The second and lower levels DesignMode will always return FALSE.
The standard hack has been to look at the nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: How to keep a "things done" count in a recursive algorithm in Java? I have a recursive algorithm which steps through a string, character by character, and parses it to create a tree-like structure. I want to be able to keep track of the character index the parser is currently at (for error messages as much as anyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Performance difference between dot notation versus method call in Objective-C You can use a standard dot notation or a method call in Objective-C to access a property of an object in Objective-C.
myObject.property = YES;
or
[myObject setProperty:YES];
Is there a difference in performance (in terms of accessing the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Subversion ignoring "--password" and "--username" options When I try to do any svn command and supply the --username and/or --password options, it prompts me for my password anyways, and always will attempt to use my current user instead of the one specified by --username. Neither --no-auth-cache nor --non-interacti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: How to turn off sounds in TortoiseSVN? I do not want TortoiseSVN to alert me with sounds - e.g. when it fails to update.
How do I turn off sounds in TortoiseSVN?
A: Right click > TortoiseSVN > Settings > System Sounds..
Scroll down to the bottom.
A: You can do this from the Sounds panel in Control Panel.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/34698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best practices with jQuery form binding code in an application We have an application with a good amount of jQuery JSON calls to server side code. Because of this, we have a large amount of binding code to parse responses and bind the appropriate values to the form. This is a two part question.
*
*What is the rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I generate a unique, small, random, and user-friendly key? A few months back I was tasked with implementing a unique and random code for our web application. The code would have to be user friendly and as small as possible, but still be essentially random (so users couldn't easily predict the next code in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do you use the new ModelBinder classes in ASP.NET MVC Preview 5 You'll notice that Preview 5 includes the following in their release notes:
Added support for custom model binders. Custom binders allow you to define complex types as parameters to an action method. To use this feature, mark the complex type or th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Google Talk's Graphics Toolkit? What graphics toolkit is used for the Window's Google Talk application?
A: There isn't much information on this out there but it seems to be their own customized controls plus an IE component (and not Qt like Google Earth). This forum thread has a little bit of information.
A: I'm n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .Net - Detecting the Appearance Setting (Classic or XP?) I have some UI in VB 2005 that looks great in XP Style, but goes hideous in Classic Style.
Any ideas about how to detect which mode the user is in and re-format the forms on the fly?
Post Answer Edit:
Thanks Daniel, looks like this will work. I'm using the fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can an audio object be embedded in an InfoPath form? Is it possible to embed an audio object (mp3, wma, whatever) in a web-enabled InfoPath form ?
If it is, how do you do it ?
A: @Martin
That works for local forms that open in InfoPath. Nathan was asking about web-enabled forms. ActiveX controls are disabled fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trouble using JRun to Host Java Servlets I am deploying new versions of java servlets with JRun as the host. I am having difficulty finding good sources for information about JRun and tutorials about how to configure and manage it.
After installing JRun and opening the launcher it can't start the admin server that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SharePoint List Scalability I am particularly interested in Document Libraries, but in terms of general SharePoint lists, can anyone answer the following...?
*
*What is the maximum number of items that a SharePoint list can contain?
*What is the maximum number of lists that a single SharePoint server can host?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I list the symbols in a .so file How do I list the symbols being exported from a .so file? If possible, I'd also like to know their source (e.g. if they are pulled in from a static library).
I'm using gcc 4.0.2, if that makes a difference.
A: If your .so file is in elf format, you can use readelf program to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "595"
} |
Q: Best Way to Reuse Code When Using Visual Studio? I've tried two different methods of reusing code. I have a solution full of just class library projects with generic code that I reuse in almost every project I work on. When I get to work on a new project, I will reuse code from this code library in one of two ways:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using a rotary encoder with AVR Micro controller I'm having trouble getting a rotary encoder to work properly with AVR micro controllers. The encoder is a mechanical ALPS encoder, and I'm using Atmega168.
Clarification
I have tried using an External Interrupt to listen to the pins, but it seems like it is too slow. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Setting a form's action in .net 3.5 SP1 causes errors when compiled I have recently installed .net 3.5 SP1. When I deployed a compiled web site that contained a form with its action set:
<form id="theForm" runat="server" action="post.aspx">
I received this error.
Method not found: 'Void System.Web.UI.HtmlControls.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you build a ratings implementation? We have need for a "rating" system in a project we are working on, similar to the one in SO. However, in ours there are multiple entities that need to be "tagged" with a vote up (only up, never down, like an increment). Sometimes we will need to show all of the entities in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Mercurial .hgignore for Visual Studio 2008 projects What is a good setup for .hgignore file when working with Visual Studio 2008?
I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it.
I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "166"
} |
Q: duplicating jQuery datepicker The datepicker function only works on the first input box that is created.
I'm trying to duplicate a datepicker by cloning the div that is containing it.
<a href="#" id="dupMe">click</a>
<div id="template">
input-text <input type="text" value="text1" id="txt" />
date time picker <in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Entire Page refreshes even though gridview is in an update panel I have a gridview that is within an updatepanel for a modal popup I have on a page.
The issue is that the entire page refreshes every time I click an imagebutton that is within my gridview. This causes my entire page to load and since I have grayed out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ValidationRule To Enforce Unique Name I'm trying to write a custom WPF ValidationRule to enforce that a certain property is unique within the context of a given collection. For example: I am editing a collection of custom objects bound to a ListView and I need to ensure that the Name property of each object in the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Class design decision I have a little dilemma that maybe you can help me sort out.
I've been working today in modifying ASP.NET's Membership to add a level of indirection. Basically, ASP.NET's Membership supports Users and Roles, leaving all authorization rules to be based on whether a user belongs to a Role or not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to tell if an object is modified? I have an object that is mapped to a cookie as a serialized base-64 string. I only want to write out a new cookie if there are changes made to the object stored in the cookie on server-side.
What I want to do is get a hash code when the object is pulled from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL Server - Does column order matter? In terms of performance and optimizations:
*
*When constructing a table in SQL Server, does it matter what order I put the columns in?
*Does it matter if my primary key is the first column?
*When constructing a multi-field index, does it matter if the columns are adjacent?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Zend Framework: setting a Zend_Form_Element form field to be required, how do I change the validator used to ensure that the element is not blank When using a Zend_Form, the only way to validate that an input is not left blank is to do
$element->setRequired(true);
If this is not set and the element is blank, it app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NHibernate Session.Flush() Sending Update Queries When No Update Has Occurred I have an NHibernate session. In this session, I am performing exactly 1 operation, which is to run this code to get a list:
public IList<Customer> GetCustomerByFirstName(string customerFirstName)
{
return _session.CreateCriteria(typeof(Cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How to benchmark a SQL Server Query? I'd like to know the standard way to benchmark a SQL Sever Query, preferably I'd like to know about the tools that come with SQL Server rather than 3rd Party tools.
A: set showplan_text on
will show you the execution plan (to see it graphically use CTRL + K (sql 2000) or CTRL +... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you create optional arguments in php? In the PHP manual, to show the syntax for functions with optional parameters, they use brackets around each set of dependent optional parameter. For example, for the date() function, the manual reads:
string date ( string $format [, int $timestamp = time() ] )
Where $tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "206"
} |
Q: Print out the keys and Data of a Hashtable in C# .NET 1.1 I need debug some old code that uses a Hashtable to store response from various threads.
I need a way to go through the entire Hashtable and print out both keys and the data in the Hastable.
How can this be done?
A: I like:
foreach(DictionaryEntry entry in h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.