text stringlengths 8 267k | meta dict |
|---|---|
Q: Case Sensitivity when querying SQL Server 2005 from .NET using OleDB I have a query that I'm executing from a .NET application to a SQL Server database and it seems to take quite a while to complete (5+ Minutes). I created a test app in c# to try to see what was talking so long (the query should return quickly).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What needs checking in for a Grails app? What parts of a Grails application need to be stored in source-control? Some obvious parts that are needed:
*
*grails-app directory
*test directory
*web-app directory
Now we reach questions like:
*
*If we use a Grails plug-in (like gldapo), do we need to check in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Has anyone run into problems in TortoiseSVN where the 'author' isn't written to the log? I have someone connecting to my repository using the url (substituted the IP address):
svn+ssh://craig@123.45.67.89/subversion
Yet when they commit files, the author entry is "null".
According to this article: http://tortoisesvn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Implementing rulers in C# form Does anyone have a good technique (or tutorial) to implement rulers within a C# Windows Forms application? I want to display an image while showing rulers that indicate your mouse position to allow a more accurate positioning of the cursor. Just like the image below:
I tried using spl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ideas to replace Stored Procedure in Cash Flow report We have a Cash flow report which is basically in this structure:
Date |Credit|Debit|balance|
09/29| 20 | 10 | 10 |
09/30| 0 | 10 | 0 |
The main problem is the balance, and as we are using a DataSet for the Data, it's kinda hard to calculate the bal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regular expression to match non-ASCII characters? What is the easiest way to match non-ASCII characters in a regex? I would like to match all words individually in an input string, but the language may not be English, so I will need to match things like ü, ö, ß, and ñ. Also, this is in Javascript/jQuery, so any solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "309"
} |
Q: How to wire a middle tier of Objects to a data tier consisting of a DataSet? I have a middle tier containing several related objects and a data tier that is using a DataSet with several DataTables and relationships.
I want to call a Save method on one of my objects (a parent object) and have its private variable dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What regEx can I use to Split a string into whole words but only if they start with #? I have tried this...
Dim myMatches As String() =
System.Text.RegularExpressions.Regex.Split(postRow.Item("Post"), "\b\#\b")
But it is splitting all words, I want an array of words that start with#
Thanks!
A: This seems to work.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using asp:content markup more than once in the masterpage I'm new to ASP.NET and want to have an asp:content control for the page title, but I want that value to be used for the tag and for a page header. When I tried to do this with two tags with the same id, it complained that I couldn't have two tags with the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MSBuild - Getting the target called from command line Does anyone know how to get the name of the TARGET (/t) called from the MSBuild command line? There are a few types of targets that can be called and I want to use that property in a notification to users.
Example:
msbuild Project.proj /t:ApplicationDeployment /p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to run Visual Studio post-build events for debug build only How can I limit my post-build events to running only for one type of build?
I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode.
A: Pre- and Post-Build Events run ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "650"
} |
Q: mysql "drop database" takes time -- why? mysql5.0 with a pair of databases "A" and "B", both with large innodb tables. "drop database A;" freezes database "B" for a couple minutes. Nothing is using "A" at that point, so why is this such an intensive operation?
Bonus points: Given that we use "A", upload data into "B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How Do I Authenticate to ActiveResource to Avoid the InvalidAuthenticityToken Response? I created a Rails application normally. Then created the scaffold for an event class. Then tried the following code. When run it complains about a InvalidAuthenticityToken when the destroy method is executed. How do I authenticat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to hide a Pocket Internet Explorer element? How can I hide an element in html on Pocket Internet Explorer running on a Windows Mobile 6 device. The following code does not work even though it apears to be setting the values correctly.
function ShowCollapseElement(sLinkId, sContentId)
{
var oLinkElement;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Abstracting storage data structures within XPath I have a collection of data stored in XDocuments and DataTables, and I'd like to address both as a single unified data space with XPath queries. So, for example, "/Root/Tables/Orders/FirstName" would fetch the value of the Firstname column in every row of the DataTabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Interpolating a string into a regex I need to substitute the value of a string into my regular expression in Ruby. Is there an easy way to do this? For example:
foo = "0.0.0.0"
goo = "here is some other stuff 0.0.0.0"
if goo =~ /value of foo here dynamically/
puts "success!"
end
A: Probably Regexp.escape(foo) w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "176"
} |
Q: Exception Thrown Causes RunTime Error We have developed a website that uses MVC, C#, and jQuery. In one of my controller classes we are validating inputs from the user and if it fails we throw an exception that the Ajax error parameter(aka option) handles. (We use Block UI to display the error message. BlockUI is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error sending mail with System.Web.Mail An older application using System.Web.Mail is throwing an exception on emails coming from hr@domain.com. Other addresses appear to be working correctly. We changed our mail server to Exchange 2007 when the errors started, so I assume that is where the problem is. Does anyone k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing Performance (If, TryParse, Try-Catch) I know plenty about the different ways of handling parsing text for information. For parsing integers for example, what kind of performance can be expected. I am wondering if anyone knows of any good stats on this. I am looking for some real numbers from someone who has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: C# .NET / javascript : Collapsable Table Rows - what about this is wrong? I have a C# .NET page where I want to make rows collapse when a button is pressed. I found many tutorials like this one (http://codingforums.com/archive/index.php?t-90375.html), tried to implement their solutions, but none of them do anything... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a Lambda? Could someone provide a good description of what a Lambda is? We have a tag for them and they're on the secrets of C# question, but I have yet to find a good definition and explanation of what they are in the first place.
A: It's just an anonymous function declared inline, most typically assigned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: Any success rendering HDVideo with WPF MediaElement? Is there a better video player option for WPF? I'm using a WPF MediaElement to render HD video in an application. When the size of the MediaElement gets over about 300 units square the video stutters and the computer is nearly totally unresponsive. I need to ren... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Separation of Presentation and Business Tiers with Spring In my just-completed project, I was working getting distributed transactions working.
We implemented this using JBoss's Arjuna Transaction Manager, and Spring's declarative transaction boundaries.
Our request sequence looked like:
browser -> secured servlet -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I share a menu definition between a context menu and a regular menu in WPF I have a defined MenuItem that I would like to share between two different menus on one page. The menu contains functionallity that is the same between both menus and I do not want two copies of it. Is there anyway to define a MenuItem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to improve performance and memory usage with a large number of polygons on a canvas? The project I'm working on needs to render an ESRI shape file, which can have a large number of polygons/shapes. When I add all these polygons, lines, points, etc to the canvas I'm using, it gets really slow.
To draw the shapes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: NHibernate ICriteria - Does the sort allow for null? Using NHibernate ICriteria and adding .AddOrder ... I want to sort by a property that is sometimes null with all the populated ones at the top. Will .AddOrder allow me to do this? If not is there an alternative?
The sorting options for ILists leave a lot to be de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Waiting for user input with a timeout I have searched but apparently my google foo is weak. What I need is a way to prompt for user input in the console and have the request time out after a period of time and continue executing the script if no input comes in. As near as I can tell, Read-Host does not provide this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do I list / export private keys from a keystore? How do I list and export a private key from a keystore?
A: If you don't need to do it programatically, but just want to manage your keys, then I've used IBM's free KeyMan tool for a long time now. Very nice for exporting a private key to a PFX file (then you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: transaction isolation problem or wrong approach? I was helping out some colleagues of mine with an SQL problem. Mainly they wanted to move all the rows from table A to table B (both tables having the same columns (names and types)). Although this was done in Oracle 11g I don't think it really matters.
Their initial ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: send e-mail and check status Using Java mail, I would like to send an e-mail and check the status. Possible statuses include:
*
*Hard-bounce: No mail server found
*Soft-bounce: Mail server found, but account not found
*Success
Is it even possible to send an e-mail and get some feedback about the delivery attemp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to order headers in .NET C++ projects I'm trying to build a new .NET C++ project from scratch. I am planning to mix managed and unmanaged code in this project.
this forum thread
IDataObject : ambiguous symbol error answers a problem I've seen multiple times.
Post #4 states
"Move all 'using namespace XXXX' from .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In firebug, how do I find out all of the css styles being applied to a particular element? I'm way buried in many nested levels of css, and I can't tell which style layer/level is messing up my display. How can I find out everything that's being applied to a particular element?
A: Right click the element and choose... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using underscores in Java variables and method names Even nowadays I often see underscores in Java variables and methods. An example are member variables (like "m_count" or "_count"). As far as I remember, to use underscores in these cases is called bad style by Sun.
The only place they should be used is in constant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Using "Remember Me" functionality for authentication in .NET 2.0 My client wants me to enable a "Remember Me" checkbox when the user logs in. I am encrypting and storing both the username and password in a cookie.
However, you cannot write to a textbox when it's in password mode.
I've seen this done numerous times,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I convert HTML to RTF (Rich Text) in .NET without paying for a component? Is there a free third-party or .NET class that will convert HTML to RTF (for use in a rich-text enabled Windows Forms control)?
The "free" requirement comes from the fact that I'm only working on a prototype and can just load the Browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: How do I use LINQ to query for items, but also include missing items? I'm trying to chart the number of registrations per day in our registration system. I have an Attendee table in sql server that has a smalldatetime field A_DT, which is the date and time the person registered.
I started with this:
var dailyCountLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL 2005 Express Edition - Install new instance Looking for a way to programatically, or otherwise, add a new instance of SQL 2005 Express Edition to a system that already has an instance installed. Traditionally, you run Micrsoft's installer like I am in the command line below and it does the trick. Executing the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: While-clause in T-SQL that loops forever I was recently tasked with debugging a strange problem within an e-commerce application. After an application upgrade the site started to hang from time to time and I was sent in to debug. After checking the event log I found that the SQL-server wrote ~200 000 events in a cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Finding un-referenced methods in a C++ app We have a large C/C++ legacy source tree that has been around the block a few times. We expect there are a substantial number of methods no longer used. Is there a tool that can help us quickly identify the unused code?
A: You should get a good static code analyzer.
Look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the difference between __reduce__ and __reduce_ex__? I understand that these methods are for pickling/unpickling and have no relation to the reduce built-in function, but what's the difference between the 2 and why do we need both?
A: __reduce_ex__ is what __reduce__ should have been but never became. __re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to programmatically get the CPU cache line size in C++? I'd like my program to read the cache line size of the CPU it's running on in C++.
I know that this can't be done portably, so I will need a solution for Linux and another for Windows (Solutions for other systems could be useful to others, so post them if y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How can I extract the address information from a Compressed ESRI shapefile datasource? When I download the zip file from the website it contains files with the following extensions:
.dbf
.prj
.sbn
.sbx
.shp
.shp.xml
.shx
Is this is a common data file format that I download or purchase a converter?
I think this is so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 404 page that displays requested page I recently migrated a website to a new CMS (Umbraco). A lot of the links have changed, but they can be easily corrected by searching for patters in the url, so I would like to write something that will redirect to the correct page if the old one is not found. That part isn't a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Combining Lists in Lambda/LINQ If I have variable of type IEnumerable<List<string>> is there a LINQ statement or lambda expression I can apply to it which will combine the lists returning an IEnumerable<string>?
A: How about
myStrings.SelectMany(x => x)
A: SelectMany - i.e.
IEnumerable<List<string>> some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How can I create Exchange distribution list inside the GAL using .NET? We need to remotely create an Exchange 2007 distribution list from Asp.Net.
Near as I can tell, the only way to create a distribution list in the GAL is via the exchange management tools. Without installing this on our web server, is there any w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to dynamically create RDLC xml as input to VS2005 Report Viewer? What is the best way to dynamically create RDLC xml as input to VS2005 Report Viewer?
I would like to autosize columns based on the data sizes. I would also like to programmatically control what columns are displayed.
A: Lisa Nicholls give... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Generating an Excel file in ASP.NET I am about to add a section to an ASP.NET app (VB.NET codebehind) that will allow a user to get data returned to them as an Excel file, which I will generate based on database data. While there are several ways of doing this, each has its own drawbacks. How would you return the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: TDD and Mocking out TcpClient How do people approach mocking out TcpClient (or things like TcpClient)?
I have a service that takes in a TcpClient. Should I wrap that in something else more mockable? How should I approach this?
A: I think @Hitchhiker is on the right track, but I also like to think about abstractin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Programmatically find the number of cores on a machine Is there a way to determine how many cores a machine has from C/C++ in a platform-independent way? If no such thing exists, what about determining it per-platform (Windows/*nix/Mac)?
A: Windows (x64 and Win32) and C++11
The number of groups of logical processor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "542"
} |
Q: What do I use for ChangeKey in EWS UpdateItem? I'm trying to use Exchange Web Services to update a calendar item. I'm creating an ItemChangeType, and then an ItemIdType. I have a unique ID to use for ItemIdType.Id, but I have nothing to use for the ChangeKey. When I leave it out, I get an ErrorChangeKeyRequiredFo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you break into the debugger from Python source code? What do you insert into Python source code to have it break into pdb (when execution gets to that spot)?
A: import pdb; pdb.set_trace()
See Python: Coding in the Debugger for Beginners for this and more helpful hints.
A: As of Python 3.7, you can use br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Text that only exists if CSS is enabled I have a website in which I provide tool-tips for certain things using a hidden <span> tag and JavaScript to track various mouse events. It works excellently. This site somewhat caters towards people with vision issues, so I try to make things degrade as well as possible if th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET File Sync Library Is there a good .NET file syncing library? It can be pretty basic and only needs to work on local and mapped drives (no server client model like rsync is needed).
And yes, I know there is the MS Sync Services, but that is a lot more than what I need.
A: There is also Microsoft's Sync Framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Desktop Applications: Architectural Frameworks? I'm wondering if there are any architectural frameworks out there to create desktop or standalone applications, in Java or C# for instance. It seems that there are tons of them available for web applications but I can't find many good resources on frameworks or archite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What is the easiest way to read/manipulate query string params using javascript? The examples I've seen online seem much more complex than I expected (manually parsing &/?/= into pairs, using regular expressions, etc). We're using asp.net ajax (don't see anything in their client side reference) and would consider a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Will upgrading Php 5.2.5 to 5.2.6 result in any problems? We're currently running with php 5.2.5. We have now encountered a bug that creates a seg fault. Our first idea at the solution is upgrading to version 5.2.6 but are skeptical of problems that it will create. We are running Apache and host a dozen or so sites.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generating 'neighbours' for users based on rating I'm looking for techniques to generate 'neighbours' (people with similar taste) for users on a site I am working on; something similar to the way last.fm works.
Currently, I have a compatibilty function for users which could come into play. It ranks users on having 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Tracking Globalization progress With our next major release we are looking to globalize our ASP.Net application and I was asked to think of a way to keep track of what code has been already worked on in this effort.
My thought was to use a custom Attribute and place it on all classes that have been "fixed".
What d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the accepted way of storing quoted data in XML? What's the accepted way of storing quoted data in XML?
For example, for a node, which is correct?
*
*(a) <name>Jesse "The Body" Ventura</name>
*(b) <name>Jesse \"The Body\" Ventura</name>
*(c) <name>Jesse "The Body" Ventura</name>
*(d) none of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Retrieve NTLM Active Directory user data to Rails w/o IIS I believe that we can allow Firefox to sent NTLM data to SharePoint sites to do automatic authentication, and I think that this is doable with IIS.
I'd like to do the same thing with an internal Rails site.
Does anyone know of way that I could authenticate NT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can a Sequence Diagram realistically capture your logic in the same depth as code? I use UML Sequence Diagrams all the time, and am familiar with the UML2 notation.
But I only ever use them to capture the essence of what I intend to do. In other words the diagram always exists at a level of abstraction above the act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I detect when someone shakes an iPhone? I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this?
A: First, Kendall's July 10th answer is spot-on.
Now ... I wanted to do someth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "346"
} |
Q: Two questions regarding Scrum I have two related question regarding Scrum.
Our company is trying to implement it and sure we are jumping over hoops.
Both question are about "done means Done!"
1) It's really easy to define "Done" for tasks which are/have
- clear test acceptance criterias
- completely standalone
- te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there some way to make variables like $a and $b in regard to strict? In light of Michael Carman's comment, I have decided to rewrite the question. Note that 11 comments appear before this edit, and give credence to Michael's observation that I did not write the question in a way that made it clear what I was aski... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Interfacing with Compris POS Does anyone have any data on how to interface with a Compris POS? I have a Compris POS, and I need to grab data from the database. I can't get information from NCR regarding the underlying data format, and I was wondering if anyone had reverse engineered the device, or had any documentat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DataGridView's bound table only generates one RowChanged event on a double-click. How do I make it do two? I have a DataGridView whose DataSource is a DataTable.
This DataTable has a boolean column, which is interpreted as a checkbox in the DataGridView.
employeeSelectionTable.Columns.Add("IsSelected", typeof(bool))... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Order of items in classes: Fields, Properties, Constructors, Methods Is there an official C# guideline for the order of items in terms of class structure?
Does it go:
*
*Public Fields
*Private Fields
*Properties
*Constructors
*Methods
?
I'm curious if there is a hard and fast rule about the order of items? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "787"
} |
Q: Adding AutoComplete to an Infragisitcs UltraDateTimeEditor control I'm attempting to modify an Infragisitcs UltraDateTimeEditor control so that the current year and a default time are inserted when the user only enters values for the month and day.
The control has an AutoFillDate property, however setting this to "y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Slicehost installation profile I'm no UNIX Guru, but I've had to set up a handful of slices for various web projects. I've used the articles on there to set up users, a basic firewall, nginx or apache, and other bits and pieces of a basic web server.
I foresee more slice administration in my future. Is there a more... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Capturing URL parameters in request.GET I am currently defining regular expressions in order to capture parameters in a URL, as described in the tutorial. How do I access parameters from the URL as part the HttpRequest object?
My HttpRequest.GET currently returns an empty QueryDict object.
I'd like to learn how to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "603"
} |
Q: Get list of available Windows audio file formats I've got a C# program that's supposed to play audio files. I've figured out how to play any sound file for which Windows has a codec by using DirectShow, but now I want to properly fill in the file type filter box on the Open dialog. I'd like to automatically list a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML input style to hide the box but show the contents I have a form in HTML where our users fill in the data and then print it. The data isn't saved anywhere. These forms come from outside our company and are built as html pages to resemble the original as closely as possible and then stuffed away and forgotten i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Custom method in model to return an object In the database I have a field named 'body' that has an XML in it. The
method I created in the model looks like this:
def self.get_personal_data_module(person_id)
person_module = find_by_person_id(person_id)
item_module = Hpricot(person_module.body)
personal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send file using POST from a Python script This is an almost-duplicate of Send file using POST from a Python script, but I'd like to add a caveat: I need something that properly handles the encoding of fields and attached files. The solutions I've been able to find blow up when you throw unicode strings containing no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Restlet - serving up static content Using Restlet I needed to serve some simple static content in the same context as my web service. I've configured the component with a Directory, but in testing, I've found it will only serve 'index.html', everything else results in a 404.
router.attach("/", new Directory(context,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Does One Read Bytes from File in Python Similar to this question, I am trying to read in an ID3v2 tag header and am having trouble figuring out how to get individual bytes in python.
I first read all ten bytes into a string. I then want to parse out the individual pieces of information.
I can grab the two versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Jagged Button edges in Internet Explorer How do you remove the jagged edges from a wide button in internet explorer? For example:
A: You can also eliminate Windows XP's styling of buttons (and every other version of Windows) by setting the background-color and/or border-color on your buttons.
Try the following st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How robust is the asp.net profile system? Is it ready for prime time? I've used asp.net profiles (using the AspNetSqlProfileProvider) for holding small bits of information about my users. I started to wonder how it would handle a robust profile for a large number of users. Does anyone have experience using this on a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Forward an invocation of a variadic function in C In C, is it possible to forward the invocation of a variadic function? As in,
int my_printf(char *fmt, ...) {
fprintf(stderr, "Calling printf with fmt %s", fmt);
return SOMEHOW_INVOKE_LIBC_PRINTF;
}
Forwarding the invocation in the manner above obviously isn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "231"
} |
Q: Can you catch a native exception in C# code? In C# code can you catch a native exception thrown from deep in some unmanaged library? If so do you need to do anything differently to catch it or does a standard try...catch get it?
A: Somewhere using a .NET Reflector I've seen the following code:
try {
...
} catch(E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: In ActionScript (NaN==parseFloat(input.text)) warns that it will always be false. Why? Despite the rather clear documentation which says that parseFloat() can return NaN as a value, when I write a block like:
if ( NaN == parseFloat(input.text) ) {
errorMessage.text = "Please enter a number."
}
I am warned that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Executing dynamic SQL in a SQLServer 2005 function I will preface this question by saying, I do not think it is solvable. I also have a workaround, I can create a stored procedure with an OUTPUT to accomplish this, it is just easier to code the sections where I need this checksum using a function.
This code will not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is the minimum length number the luhn algorithm will work on? Excluding the check digit, what is the minimum length number the luhn algorithm will work on?
My thoughts are that it would work on any number greater than 2 digits (again, excluding the check digit).
The reason I ask is this:
if i iterates over al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to find out if a Timer is running? If I have an instance of a System.Timers.Timer that has a long interval - say 1 minute, how can I find out if it is started without waiting for the Tick?
A: Use the timer's Enabled property.
A: You should check that timer is enabled
A: if (timer1.Enabled)
{
// Do Somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Which browser has the best support for HTML 5 currently? Where can I test HTML 5 functionality today - is there any test build of any rendering engines which would allow testing, or is it to early? I'm aware that much of the spec hasn't been finalised, but some has, and it would be good to try it out!
A: http://wik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: When to use IEnumerable over IEnumerable<> Due to the lack of generic variance in the .NET framework, is it more "correct" to have methods that handle the non-generic versions of the System.Collection interfaces, if the methods are being designed to handle multiple types?
Ideally, once moved to .NET 3.5, the code wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How much difference does BLOB or TEXT make in comparison with VARCHAR()? If I don't know the length of a text entry (e.g. a blog post, description or other long text), what's the best way to store it in MYSQL?
A: use TEXT if you want it treated as a character string, with a character set.
use BLOB if you want it tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Whats the best way to start using Mylyn? I've heard a lot of good things about using Mylyn in eclipse.
How could I set it up to give me a taste of how I could use it?
A: Simple define tasks for yourself and let Mylyn focus on it.
I'm not able to use the bugtracking connections of Mylyn because we use a non-standard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: JavaScript highlight table cell on tab in field I have a website laid out in tables. (a long mortgage form)
in each table cell is one HTML object. (text box, radio buttons, etc)
What can I do so when each table cell is "tabbed" into it highlights the cell with a very light red (not to be obtrusive, but tell the user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Selecting unique rows in a set of two possibilities The problem itself is simple, but I can't figure out a solution that does it in one query, and here's my "abstraction" of the problem to allow for a simpler explanation:
I will let my original explenation stand, but here's a set of sample data and the result i expe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to select from Varchar where where `Value` is not part of a group I'm trying to do this
SELECT `Name`,`Value` FROM `Constants`
WHERE `Name` NOT IN ('Do not get this one'|'or this one');
But it doesn't seem to work.
How do I get all the values, except for a select few, without doing this:
SELECT `Name`,`Value` ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby off the rails Sometimes it feels that my company is the only company in the world using Ruby but not Ruby on Rails, to the point that Rails has almost become synonymous with Ruby.
I'm sure this isn't really true, but it'd be fun to hear some stories about non-Rails Ruby usage out there.
A: Ruby with a homebre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: When ThreadPool.QueueUserWorkItem returns false The MSDN states that the method returns
true if the method is successfully
queued; NotSupportedException is
thrown if the work item is not queued.
For testing purposes how to get the method to return false? Or it is just a "suboptimal" class design?
A: In lookin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How Do I Create a New Excel File Using JXL? I'm trying to create a new Excel file using jxl, but am having a hard time finding examples in their API documentation and online.
A: I know that it's a very old question. However, I think I can contribute with an example that also adds the cell values:
/**
*
* @author ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Java obfuscation - ProGuard/yGuard/other? This is along similar lines as these recent questions:
Best Java Obfuscation Application For Size Reduction
Creating non-reverse-engineerable Java programs
However, one ends up recommending yGuard and the other ProGuard but neither mention both. I wonder if we could get a co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to create a custom log filter in enterprise library 4.0? I am using Enterprise Library 4.0 and I can't find any documentation on creating a custom logging filter. Has anyone done this or seen any good online documentation on this?
A: Using Custom Filters in the Enterprise Library Logging Block
Great Article.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do you use Microformats, RDF, Dublin Core or another type of semantic markup? Do you use any of these technologies? Which ones are current and hence sensible to include in a site?
Documentation on any seems to be relatively sparse, and usage of any of them limited, as search engines get better, are they even relevan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: AJAX.NET Subscribe to Reorderlist ItemCommand or DeleteCommand? I would like to subscribe to the ItemCommand event of a Reorderlist I have on my page. The front end looks like this...
<cc1:ReorderList id="ReorderList1" runat="server" CssClass="Sortables" Width="400" OnItemReorder="ReorderList1_ItemReorder" OnItemC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find the prefix substring which gives best compression Problem:
Given a list of strings, find the substring which, if subtracted from the beginning of all strings where it matches and replaced by an escape byte, gives the shortest total length.
Example:
"foo", "fool", "bar"
The result is: "foo" as the base string wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where are all the places Sql Reporting Server Logs Errors? It seems like Sql Reporting Services Server logs information in several places including web server logs and logging tables in the database. Where are all the locations SSRS logs to, and what type of errors are logged in each place?
A: For SSRS 2008 R2:
C:\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/150695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.