text stringlengths 8 267k | meta dict |
|---|---|
Q: Advice on how to be graphically creative I've always felt that my graphic design skills have lacked, but I do have a desire to improve them. Even though I'm not the worlds worst artist, it's discouraging to see the results from a professional designer, who can do an amazing mockup from a simple spec in just a few h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Visual Studio identical token highlighting I coded a Mancala game in Java for a college class this past spring, and I used the Eclipse IDE to write it. One of the great (and fairly simple) visual aids in Eclipse is if you select a particular token, say a declared variable, then the IDE will automatically highlight ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: XML Parser Validation Report Most XML parsers will give up after the first error in a document. In fact, IIRC, that's actually part of the 'official' spec for parsers.
I'm looking for something that will break that rule. It should take a given schema (assuming a valid schema) and an xml input and attempt to keep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Write files to App_Data under medium trust hack? Is there any way to Write files to App_Data under medium trust hack?
Im sure I've heard about some hack, is that true?
A: I don't think you are able to create new files, but you should be able to write to existing files in the App_Data folder. But I have honestly ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: List in JScrollPane painting outside the viewport I have a list, each item of which has several things in it, including a JProgressBar which can be updated a lot. Each time one of the items updates its JProgressBar, the ListDataListener on the list tries to scroll it to the visible range using
/*
* This makes the u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I restrict JFileChooser to a directory? I want to limit my users to a directory and its sub directories but the "Parent Directory" button allows them to browse to an arbitrary directory.
How should I go about doing that?
A: The solution of Allain is almost complete. Three problems are open to solve:
*
*Cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do you write code that is both 32 bit and 64 bit compatible? What considerations do I need to make if I want my code to run correctly on both 32bit and 64bit platforms ?
EDIT: What kind of areas do I need to take care in, e.g. printing strings/characters or using structures ?
A: Options:
Code it in some languag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to use a console when developing? For scripting languages, what is the most effective way to utilize a console when developing? Are there ways to be more productive with a console than a "compile and run" only language?
Added clarification: I am thinking more along the lines of Ruby, Python, Boo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Alternative "architectural" approaches to javaScript client code? How is your javaScript code organized? Does it follow patterns like MVC, or something else?
I've been working on a side project for some time now, and the further I get, the more my webpage has turned into a full-featured application. Right now, I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How can you clone a WPF object? Anybody have a good example how to deep clone a WPF object, preserving databindings?
The marked answer is the first part.
The second part is that you have to create an ExpressionConverter and inject it into the serialization process. Details for this are here:
http://www.codeproject... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Does ReadUncommitted imply NoLock When writing a SQL statement in SQL Server 2005, does the READUNCOMMITTED query hint imply NOLOCK or do I have to specify it manually too?
So is:
With (NoLock, ReadUnCommitted)
the same as:
With (ReadUnCommitted)
A: According to Kalen Delaney...
The NOLOCK hint has nothing to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make 'pretty urls' work in php hosted in IIS? Is there some way I can use URLs like:
http://www.blog.com/team-spirit/
instead of
http://www.blog.com/?p=122
in a Windows hosted PHP server?
A: Isapi Rewrite Filter on CodePlex - actively developed, free ("DonationWare"), open source.
A: This is how I did it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to discover a File's creation time with Java? Is there an easy way to discover a File's creation time with Java? The File class only has a method to get the "last modified" time. According to some resources I found on Google, the File class doesn't provide a getCreationTime() method because not all file system... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Odd behaviour for rowSpan in Flex I am experiencing some oddities when working with a Grid component in flex, I have the following form that uses a grid to align the fields, as you can see, each GridRow has a border.
My problem is that the border is still visible through GridItems that span multiple rows (observe th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installing Team Foundation Server What are the best practices in setting up a new instance of TFS 2008 Workgroup edition?
Specifically, the constraints are as follows:
*
*Must install on an existing Windows Server 2008 64 bit
*TFS application layer is 32 bit only
Should I install SQL Server 2008, Sharepoint ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any disadvantages in accessing Subversion repositories through file:// for a solo developer? If you have Subversion installed on your development machine and you don't work in a team, is there any reason why you should use the svn protocol instead of file?
A: If you are working by yourself on a single machine, then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I rollback a TFS check-in? I'd like to rollback a change I made recently in TFS. In Subversion, this was pretty straightforward. However, it seems to be an incredible headache in TFS:
Option 1: Get Prior Version
*
*Manually get prior version of each file
*Check out for edit
*Fail - the checkout (in VS200... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: Best way to manage session in NHibernate? I'm new to NHibernate (my 1st big project with it).
I had been using a simple method of data access by creating the ISession object within a using block to do my grab my Object or list of Objects, and in that way the session was destroyed after exiting the code block.
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to do "intraWord" text navigation in Visual Studio? On Windows, Ctrl+Right Arrow will move the text cursor from one "word" to the next. While working with Xcode on the Mac, they extended that so that Option+Right Arrow will move the cursor to the beginning of the next subword. For example, if the cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I find the the exact lat/lng coordinates of a birdseye scene in Virtual Earth? I'm trying to find the latitude and longitude of the corners of my map while in birdseye view. I want to be able to plot pins on the map, but I have hundreds of thousands of addresses that I want to be able to limit to the ones th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I set breakpoints in an external JS script in Firebug I can easily set breakpoints in embedded JS functions, but I don't see any way of accessing external JS scripts via Firebug unless I happen to enter them during a debug session. Is there a way to do this without having to 'explore' my way into the script?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Easiest way to convert a URL to a hyperlink in a C# string? I am consuming the Twitter API and want to convert all URLs to hyperlinks.
What is the most effective way you've come up with to do this?
from
string myString = "This is my tweet check it out http://tinyurl.com/blah";
to
This is my tweet check it out <a h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Mocking Asp.net-mvc Controller Context So the controller context depends on some asp.net internals. What are some ways to cleanly mock these up for unit tests? Seems like its very easy to clog up tests with tons of setup when I only need, for example, Request.HttpMethod to return "GET".
I've seen some examples/helpe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Beginning ASP.NET MVC with VB.net 2008 Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#.
A: Have you tried adding the word "VB" to your searches??
http://www.myvbprof.com/2007_Version/MVC_Intro_Tu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Automatic image rotation based on a logo We're looking for a package to help identify and automatically rotate faxed TIFF images based on a watermark or logo.
We use libtiff for rotation currently, but don't know of any other libraries or packages I can use for detecting this logo and determining how to rotate th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Data Conflict in LINQ When making changes using SubmitChanges(), LINQ sometimes dies with a ChangeConflictException exception with the error message Row not found or changed, without any indication of either the row that has the conflict or the fields with changes that are in conflict, when another user has changed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is there a constraint that restricts my generic method to numeric types? Can anyone tell me if there is a way with generics to limit a generic type argument T to only:
*
*Int16
*Int32
*Int64
*UInt16
*UInt32
*UInt64
I'm aware of the where keyword, but can't find an interface for only these types,
Something li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "445"
} |
Q: How to remember in CSS that margin is outside the border, and padding inside I don't edit CSS very often, and almost every time I need to go and google the CSS box model to check whether padding is inside the border and margin outside, or vice versa. (Just checked again and padding is inside).
Does anyone have a go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: In MS SQL Server 2005, is there a way to export, the complete maintenance plan of a database as a SQL Script? Currently, if I want to output a SQL script for a table in my database, in Management Studio, I can right click and output a create script.
Is there an equivalent to output an SQL script for a database's ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "ypcat" and "ypmatch username passwd" don't agree after change on server I'm trying to use NIS for authentication on a st of machines. I had to change one of the user ID numbers for a user account on the NIS server (I changed the userid for username from 500 to 509 to avoid a conflict with a local user account with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Isn't Func and Predicate the same thing after compilation? Haven't fired up reflector to look at the difference but would one expect to see the exact same compiled code when comparing Func<T, bool> vs. Predicate<T>
I would imagine there is no difference as both take a generic parameter and return bool?
A: The mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Is there a way to get images to display with ASP.NET and app_offline.htm? When using the app_offline.htm feature of ASP.NET, it only allows html, but no images. Is there a way to get images to display without having to point them to a different url on another site?
A: If you don't support browsers prior to IE 8, y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Out-of-place builds with C# I just finished setting up an out-of-place build system for our existing C++ code using inherited property sheets, a feature that seems to be specific to the Visual C++ product. Building out-of-place requires that many of the project settings be changed, and the inherited property sheets ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Setting time zone remotely in C# How do you set the Windows time zone on the local machine programmatically in C#? Using an interactive tool is not an option because the remote units have no user interface or users. The remote machine is running .NET 2.0 and Windows XP Embedded and a local app that communicates wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .NET : Double-click event in TabControl I would like to intercept the event in a .NET Windows Forms TabControl when the user has changed tab by double-clicking the tab (instead of just single-clicking it).
Do you have any idea of how I can do that?
A: The MouseDoubleClick event of the TabControl seems to respond ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What protocols and servers are involved in sending an email, and what are the steps? For the past few weeks, I've been trying to learn about just how email works. I understand the process of a client receiving mail from a server using POP pretty well. I also understand how a client computer can use SMTP to ask an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I get today's date in C# in mm/dd/yyyy format? How do I get today's date in C# in mm/dd/yyyy format?
I need to set a string variable to today's date (preferably without the year), but there's got to be a better way than building it month-/-day one piece at a time.
BTW: I'm in the US so M/dd would be correct, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: How can I take a byte array of a TIFF image and turn it into a System.Drawing.Image object? I have a byte[] array, the contents of which represent a TIFF file (as in, if I write out these bytes directly to a file using the BinaryWriter object, it forms a perfectly valid TIFF file) and I'm trying to turn it into a Sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: generation of designer file failed Every few days VS2008 decides to get mad at me and fails to generate a designer file claiming it cannot find the file specified and that it's missing an assembly. Here's the scenario:
The aspx page has a reference to a custom user control (inheriting UserControl) which references ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the best and most complete implementation of Unix system commands for Windows? I've found a few (unfortunately, they are bookmarked at home and I'm at work, so no links), but I was wondering if anyone had any opinions about any of them (love it, hate it, whatever) so I could make a good decision. I think I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Restrict the server access from LAN only Recently we got a new server at the office purely for testing purposes. It is set up so that we can access it from any computer.
However today our ip got blocked from one of our other sites saying that our ip has been suspected of having a virus that sends spam emails. we le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alternatives to System.exit(1) For various reasons calling System.exit is frowned upon when writing Java Applications, so how can I notify the calling process that not everything is going according to plan?
Edit: The 1 is a standin for any non-zero exit code.
A: The use of System.exit is frowned upon when the 'appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Email Delivery Question This question comes on the heels of the question asked here.
The email that comes from our web server comes from an IP address that is different than that for the Exchange server. Is this okay if the SPF and Domain keys are setup properly?
A: Short answer: Yes
A: It should just fine. Howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET Validators inside an UpdatePanel I'm using an older version of ASP.NET AJAX due to runtime limitations, Placing a ASP.NET Validator inside of an update panel does not work. Is there a trick to make these work, or do I need to use the ValidatorCallOut control that comes with the AJAX toolkit?
A:
@Jonathan H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Why does HttpCacheability.Private suppress ETags? While writing a custom IHttpHandler I came across a behavior that I didn't expect concerning the HttpCachePolicy object.
My handler calculates and sets an entity-tag (using the SetETag method on the HttpCachePolicy associated with the current response object). If I s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: XNA Unit Testing So I'm interested in hearing different thoughts about what is the best way to go about unit testing XNA Game/Applications. Astute googlers can probably figure out why I'm asking, but I didn't want to bias the topic :-)
A: I would that this question is geared more toward the approach of unit testin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Creating System Restore Points - Thoughts? Is it "taboo" to programatically create system restore points? I would be doing this before I perform a software update. If there is a better method to create a restore point with just my software's files and data, please let me know.
I would like a means by which I can g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multicasting, Messaging, ActiveMQ vs. MSMQ? I'm working on a messaging/notification system for our products. Basic requirements are:
*
*Fire and forget
*Persistent set of messages, possibly updating, to stay there until the sender says to remove them
The libraries will be written in C#. Spring.NET just relea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How can I resize a swf during runtime to have the browser create html scrollbars? I have a swf with loads text into a Sprite that resizes based on the content put into - I'd like though for the ones that are longer than the page to have the browser use its native scroll bars rather than handle it in actionscript (ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Browsers' default CSS stylesheets Are there any lists of default CSS stylesheets for different browsers? (browser stylesheets in tabular form)
I want to know the default font of text areas across all browsers for future reference.
A: There probably is a list, this is why we use CSS Resets however.
*
*Eric Meyer'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: How to remove "VsDebuggerCausalityData" data from SOAP message? I've got a problem where incoming SOAP messages from one particular client are being marked as invalid and rejected by our XML firewall device. It appears extra payload data is being inserted by Visual Studio; we're thinking the extra data may be causin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Do Java multi-line comments account for strings? This question would probably apply equally as well to other languages with C-like multi-line comments. Here's the problem I'm encountering. I'm working with Java code in Eclipse, and I wanted to comment out a block of code. However, there is a string that contains the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you generate dynamic (parameterized) unit tests in Python? I have some kind of test data and want to create a unit test for each item. My first idea was to do it like this:
import unittest
l = [["foo", "a", "a",], ["bar", "a", "b"], ["lee", "b", "b"]]
class TestSequence(unittest.TestCase):
def testsampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "348"
} |
Q: Is there a way to render svg data in a swf at runtime? I'd like to render to svg data in a swf at runtime (not in Flex - not using degrafa) - how would I go about doing that?
A: If ActionScript 2:
Use the com.itechnica.svg (PathToArray) library to load SVGs at SWF runtime and display them (uses XML for SVG parsing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is a good dvd burning component for Windows or .Net? I'd like to add dvd burning functionality to my .Net app (running on Windows Server 2003), are there any good components available? I've used the NeroCOM sdk that used to come with Nero but they no longer support the sdk in the latest versions of Nero. I le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Shorthand conditional in C# similar to SQL 'in' keyword In C# is there a shorthand way to write this:
public static bool IsAllowed(int userID)
{
return (userID == Personnel.JohnDoe || userID == Personnel.JaneDoe ...);
}
Like:
public static bool IsAllowed(int userID)
{
return (userID in Personnel.JohnDoe, Pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: SQL Server 2008 Reporting Services Control Is the Sql Server 2008 control available for download? Does it yet support the 2008 RDL schema?
A: If you are talking about the ReportViewer control, it is available.
However you need Windows XP, Windows Vista or Windows Server 2003 to install it. It is also written that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should a wireless network be open? Obviously there are security reasons to close a wireless network and it's not fun if someone is stealing your bandwidth. That would be a serious problem?
To address the first concern: Does a device on the same wireless network have any special privileges or access that an other de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to program user preferences I'm using Ruby on Rails for an internal site. Different users of the site have access to a wide variety of data and highly disparate perspectives of the data. Within those different classes of users, there needs to be levels of access. Within the levels of access I need to be able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NSEnumerator performance vs for loop in Cocoa I know that if you have a loop that modifies the count of the items in the loop, using the NSEnumerator on a set is the best way to make sure your code blows up, however I would like to understand the performance tradeoffs between the NSEnumerator class and just an old s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Leaving your harddrive shared The leaving your wireless network open question reminded me of this.
I typically share the root drive on my machines across my network, and tie login authorization to the machines NT ID, so there is at least some form of protection.
My question, how easy is it to gain access to these dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do banks remember "your computer"? As many of you probably know, online banks nowadays have a security system whereby you are asked some personal questions before you even enter your password. Once you have answered them, you can choose for the bank to "remember this computer" so that in the future you can logi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How can I measure CppUnit test coverage (on win32 and Unix)? I have a very large code base that contains extensive unit tests (using CppUnit). I need to work out what percentage of the code is exercised by these tests, and (ideally) generate some sort of report that tells me on a per-library or per-file basis, how m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How would you test observers with rSpec in a Ruby on Rails application? Suppose you have an ActiveRecord::Observer in one of your Ruby on Rails applications - how do you test this observer with rSpec?
A: no_peeping_toms is now a gem and can be found here: https://github.com/patmaddox/no-peeping-toms
A: You are on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: SVN repository backup strategies What methods are available for backing up repositories in a Windows environment?
A: Basically it's safe to copy the repository folder if the svn server is stopped. (source: https://groups.google.com/forum/?fromgroups#!topic/visualsvn/i_55khUBrys%5B1-25%5D )
So if you're allowed to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "196"
} |
Q: Best way to export a QTMovie with a fade-in and fade-out in the audio I want to take a QTMovie that I have and export it with the audio fading in and fading out for a predetermined amount of time. I want to do this within Cocoa as much as possible. The movie will likely only have audio in it. My research has turned ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Looking for Regex to find quoted newlines in a big string (for C#) I have a big string (let's call it a CSV file, though it isn't actually one, it'll just be easier for now) that I have to parse in C# code.
The first step of the parsing process splits the file into individual lines by just using a StreamReader objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ignore Emacs auto-generated files in a diff How do I make diff ignore temporary files like foo.c~? Is there a configuration file that will make ignoring temporaries the default?
More generally: what's the best way to generate a "clean" patch off a tarball? I do this rarely enough (submitting a bug fix to an OSS proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Pattern recognition algorithms In the past I had to develop a program which acted as a rule evaluator. You had an antecedent and some consecuents (actions) so if the antecedent evaled to true the actions where performed.
At that time I used a modified version of the RETE algorithm (there are three versions of RETE o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Fighting programmer colors I have a couple of pet projects where I'm the sole designer/programmer and I spend too much time changing the user interface to make it easier to use by real users and avoiding bright yellow and green that is so common on "programmer" designs.
Do you have tips to choose a color scheme when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Setting the height of a DIV dynamically In a web application, I have a page that contains a DIV that has an auto-width depending on the width of the browser window.
I need an auto-height for the object. The DIV starts about 300px from the top screen, and its height should make it stretch to the bottom of the browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: ensuring uploaded files are safe My boss has come to me and asked how to enure a file uploaded through web page is safe. He wants people to be able to upload pdfs and tiff images (and the like) and his real concern is someone embedding a virus in a pdf that is then viewed/altered (and the virus executed). I just re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I use ASP.NET Login Controls when my Login.aspx is not at the root of my application? I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application. It keeps redirecting to a Login.aspx page at the root of my application that does not exist. My login... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Do Sites Suppress Pasting Text? I've noticed that some sites (usually banks) suppress the ability to paste text into text fields. How is this done? I know that JavaScript can be used to swallow the keyboard shortcut for paste, but what about the right-click menu item?
A: Even if it is somewhat possible to inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Communicating between websites (using Javascript or ?) Here's my problem - I'd like to communicate between two websites and I'm looking for a clean solution. The current solution uses Javascript but there are nasty workarounds because of (understandable) cross-site scripting restrictions.
At the moment, website A op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there any way to override the drag/drop or copy/paste behavior of an existing app in Windows? I would like to extend some existing applications' drag and drop behavior, and I'm wondering if there is any way to hack on drag and drop support or changes to drag and drop behavior by monitoring the app's message loop ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does C# have the notion of private and protected inheritance? Does C# have the notion of private / protected inheritance, and if not, why?
C++
class Foo : private Bar {
public:
...
};
C#
public abstract NServlet class : private System.Web.UI.Page
{
// error "type expected"
}
I am implementing a "se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Building a custom Linux Live CD Can anyone point me to a good tutorial on creating a bootable Linux CD from scratch?
I need help with a fairly specialized problem: my firm sells an expansion card that requires custom firmware. Currently we use an extremely old live CD image of RH7.2 that we update with current firmw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Windows Mobile 6 Development, alternatives to visual studio? I am looking to start writing apps for my Windows Mobile 6.1 professional device (Sprint Mogul/HTC Titan).
I use the copy of Visual Studio 2003 that I bought in college for all of my current contracting work, (all of my day job work is done on a company la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to pass method name to custom server control in asp.net? I am working on a Customer Server Control that extends another control. There is no problem with attaching to other controls on the form.
in vb.net: Parent.FindControl(TargetControlName)
I would like to pass a method to the control in the ASPX markup.
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I keep my Login.aspx page's ReturnUrl parameter from overriding my ASP.NET Login control's DestinationPageUrl property? I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application. I've got pages such as PasswordRecovery.aspx that are accessable to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Accessing Sharepoint from outside the WebUI Is it possible to access the database backend of a sharepoint server? My company uses Sharepoint to store data and pictures of various assets. Ideally I would be able to access the data and display it in my application to allow users both methods of access.
Before I go tal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to tell the data types after executing a stored procedure? Is there a way when executing a stored procedure in Management Studio to get the data types of the result sets coming back? I'm looking for something like functionality of when you pass a table name to sp_help
A: You do get to look at the types though, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the "condition" in C interview test? Would it be possible to print Hello twice using single condition?
if "condition"
printf ("Hello");
else
printf("World");
A: if ( printf("Hello") == 0 )
printf ("Hello");
else
printf ("World");
:-)
A: #define CONDITION (0) if (0) {} else
or some such.
If y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: When to commit changes? Using Oracle 10g, accessed via Perl DBI, I have a table with a few tens of million rows being updated a few times per second while being read from much more frequently form another process.
Soon the update frequency will increase by an order of magnitude (maybe two).
Someone suggested that co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to unit test Objective-C code? What frameworks exist to unit test Objective-C code? I would like a framework that integrates nicely with Apple Xcode.
A: Sen:te (the creator of the testing framework included with Xcode) explains how to use OCUnit with an iPhone project: simple-iphone-ipad-unit-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "332"
} |
Q: How can you implement trackbacks on a custom-coded blog (written in C#)? How can you implement trackbacks on a custom-coded blog (written in C#)?
A: The TrackBack specification was created by Six Apart back in the day for their Movable Type blogging system. After some corporate changes it seems to be no longer avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compact Framework - Lightweight GUI Framework? Winform on CF is a bit heavy, initialising a lot of windows handles takes serious time and memory. Another issue is the lack of inbuilt double buffering and lack of control you have over the UI rendering means that during processor intensive operations the UI might leav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is elegant, semantic CSS with ASP.Net still a pipe dream? I know Microsoft has made efforts in the direction of semantic and cross-browser compliant XHTML and CSS, but it still seems like a PitA to pull off elegant markup. I've downloaded and tweaked the CSS Friendly Adapters and all that. But I still find myself fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: In SQL Server 2000, is there a sysobjects query that will retrieve user views and not system views? Assuming such a query exists, I would greatly appreciate the help.
I'm trying to develop a permissions script that will grant "select" and "references" permissions on the user tables and views in a database. My hope ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Integrating a custom gui framework with the VS designer Imagine you homebrew a custom gui framework that doesn't use windows handles (compact framework, so please don't argue with "whys"). One of the main disadvantages of developing such a framework is that you lose compatability with the winform designer.
So my que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I find unused images and CSS styles in a website? Is there a method (other than trial and error) I can use to find unused image files? How about CSS declarations for ID's and Classes that don't even exist in the site?
It seems like there might be a way to write a script that scans the site, profile it, and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "125"
} |
Q: Caching Active Directory Data In one of my applications, I am querying active directory to get a list of all users below a given user (using the "Direct Reports" thing). So basically, given the name of the person, it is looked up in AD, then the Direct Reports are read. But then for every direct report, the tool nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting files and their version numbers from sharepoint As a temporary stopgap until all the designers are in place we are currently hand-cranking a whole bunch of xml configuration files at work. One of the issues with this is file-versioning because people forget to update version numbers when updating the files (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I load an org.w3c.dom.Document from XML in a string? I have a complete XML document in a string and would like a Document object. Google turns up all sorts of garbage. What is the simplest solution? (In Java 1.5)
Solution Thanks to Matt McMinn, I have settled on this implementation. It has the right level of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: How do I best handle role based permissions using Forms Authentication on my ASP.NET web application? I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application.
I've got two roles:
*
*Users
*Administrators
I want pages to be viewable by four differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the false operator in C# good for? There are two weird operators in C#:
*
*the true operator
*the false operator
If I understand this right these operators can be used in types which I want to use instead of a boolean expression and where I don't want to provide an implicit conversion to bool.
Let's say I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Automated PDF Creation from URL Is there a PDF library that one can use to automate creating PDFs from URLs? The current approach I use is to "Print" a page and select a PDF plugin like PrimoPDF to generate the PDF document but I was wanting to automate that.
A: ABCPDF can do it
A: wkhtmltopdf generates the most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Protecting API Secret Keys in a Thick Client application Within an application, I've got Secret Keys uses to calculate a hash for an API call. In a .NET application it's fairly easy to use a program like Reflector to pull out information from the assembly to include these keys.
Is obfuscating the assembly a good wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Call onresize from ASP.NET content page I have a JavaScript method that I need to run on one of my pages, in particular, the onresize event.
However, I don't see how I can set that event from my content page. I wish I could just put it on my master page, but I don't have the need for the method to be called on al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.