text stringlengths 8 267k | meta dict |
|---|---|
Q: Why are circular references in Visual Studio a bad practice? Why are circular references in Visual Studio a bad practice?
First, I will describe an example of how this can happen using C# in Visual Studio, since VS will typically inform you if you have a circular reference and prevent it.
First, a Utilities class is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to use a Oracle function for the ID in Hibernate Until recently we used Oracle sequences to generate the IDs of a table. This is now changed, a new ID is now calculated by an Oracle function. Which means that my application needs a change to adept to the new situation. The application is a Spring/Hibernate webAp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any sites out there using CardSpace? I'm interested to know if there's any sites out there that has implemented CardSpace as an alternative authentication. I certainly like to see how different it is from, say, using OpenID.
A: One example of someone using information cards is JanRain, an OpenID provider, allows t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Verify an XPath in .NET How can I verify a given xpath string is valid in C#/.NET?
I'm not sure just running the XPath and catching exceptions is a valid solution (putting aside the bile in my throat for a moment) - what if tomorrow I run into some other input I haven't tested against?
A: For a shorter version than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Radio buttons in SSRS Report How do I add radio buttons as my parameter type in SSRS reports?
Thanks in advance,
Anna
A: It can be done, but only for a boolean parameter - i.e. you can only have True/False, not a custom list of radio options.
Add a parameter to your report of type 'Boolean'. 'Available Values' sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Problems automatically precompiling website with MSbuild All,
I currently have my solution comprising of 2 Class librarys and a Web Site building within teamCity using Msbuild. Now I want to precompile the website and make it available as an artifact. However when i try to Precompile it using
<Target Name="Precomp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stringify array for eval I'm preparing a string that will be eval'ed. The string will contain a clause built from an existing Array. I have the following:
def stringify(arg)
return "[ '" + arg.join("', '") + "' ]" if arg.class == Array
"'#{arg}'"
end
a = [ 'a', 'b', 'c' ]
eval_str = 'p ' + stringify(a)
eval... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Visual Studio themes with Resharper support? Does anyone have any good font and colour themes for Visual Studio that will give me nice support for Resharper? The majority of themes out there don't support Resharper, and as such all the extra R# highlighting looks rubbish...
Cheers!
Matt
A: I use this VibrantInk the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Manipulating a WPF element tree Is it possible to manipulate the controls tree of a WPF window programatically?
I have a string that contains an arbitrary WPF XAML code. I show the content in a content control. No Problem so far.
Additionally I want to decorate every Grid control that's contained within the XAML sn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make a method to return random string in the format A1A 1A1? I need a method to return a random string in the format:
Letter Number Letter Number Letter Number
A: You just need 2 methods.
1) Random a char (You can use ASCII to random between number than cast to char)
2) Random number.
Both can use this util... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Crystal Reports exporting to Excel Issue In a current C# application I do maintenance on, we have upgraded to Visual Studio 2008 from Visual Studio 2003. We have always used the included Crystal Reports that came with Visual Studio.
Since the upgrade we have found an issue with our reports when exporting to excel. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to split Oracle sql statements for ADO.NET What is the proper way to split up SQL statements to send to an Oracle ADO.NET client? For instance, lets say you have the following code in a text file and want to execute these statements:
CREATE TABLE foo (bar VARCHAR2(100));
INSERT INTO foo (bar) VALUES('one');
INS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Editing documents seamlessly in a Web Application We have a web application, which involves a lot of documents. In a typical use case, a document will be generated from our web application. The user download the generated document to the local file system and modify it. After this work, the user upload the modified ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dismiss a system dialog on BlackBerry I have a BlackBerry app running in the background that needs to know when a "Missed call" system dialog is brought up by the system, and programmatically close it without user intervention. How can I do that?
I could actually almost know when the dialog is brought up, i.e. a lit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create an Extension for BlogEngine.net that accesses whether a post is in a certain category? I'm using blogengine.net. I would like to show a default image in the H1 if a particular post is in a particular category. For instance if a post is in the Podcasts category I'd like to display one image and if a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installing SVN username password issue I'm installing SVN with Apache 2.2 on windows 2003 everything seems good but when I try to login no username/password works.
Here is some info
I load this module in httpd.conf
LoadModule auth_basic_module modules/mod_auth_basic.so
and in svnserv.conf I have
[general]
anon-acces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VB.NET Syntax Highlighting in a Rich Text Box I'm coding a simple code editor for a very simple scripting language we use at work. My syntax highlighting code works fine if I do it on the entire RichTextBox (rtbMain) but when I try to get it to work on just that line, so I can run the function with rtbMain changes, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: user-defined conversion to interface I just ran into the "user-defined conversions to or from an interface are not allowed" problem in C#. What I was attempting to do was create a generic Graph class that could be iterated over in a couple different ways, depending on the supported interface. So:
public class Grap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to stop visual studio from going to program.cs on (Break All) the pause button It is really annoying.
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new mainForm()); <-- pausing visual studio breaks here.
Thanks guys.
A: @sramey are you sure pausing alwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What does functools.wraps do? In a comment on this answer to another question, someone said that they weren't sure what functools.wraps was doing. So, I'm asking this question so that there will be a record of it on StackOverflow for future reference: what does functools.wraps do, exactly?
A: *
*Prerequisite: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "918"
} |
Q: sqlnclir.rll being loaded and unloaded continuously I'm working with SQL Native Client 9 in a C++ application that communicates with SQL Server 2000. I'm working on debugging things right now but something I've noticed that bothers me (mostly because it's creating significant clutter) is that sqlnclir.rll is being ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compare objects in VB.NET I want to write a function that accepts two objects as parameters and compare only the fields contained within the objects. I do not know what type the objects will be at design time, but the objects passed will be classes used within our application.
Is it possible to compare object's fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using osql with nant scripts I am currently using osql with nant by calling a batch file with arguments. Here are the properties that are defined in my nant script (no, not real username/password values):
<property name="project.config" value="debug" />
<property name="server" value="(local)" />
<property name="data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to bring a window to the front? We have a Java application that needs to be brought to the foreground when a telecontrol mechanism activates something in the application.
In order to get this, we have realized in the called method of the class which represents the frame of our application (extension of a JFrame)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: ASP.NET GridView CSS issue when sorting turned on I created a GridView in an ASP.NET application and used the Auto Format tool to apply an attractive style. Now I'm moving the style markup to the CSS sheet and I'm having a weird problem where the text in the header row isn't the correct color (it should be white bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem running a Jar file I've compiled a java project into a Jar file, and am having issues running it.
When I run:
java -jar myJar.jar
I get the following error
Could not find the main class: myClass
The class file is not in the root directory of the jar so I've tried changing the path of the main class to matc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Pass Variables Into PHP Ajax Handler Script? I have a small ajax php application, which outputs data from a mysql db into a table. The rows are links, which when clicked will call an ajax function, which in turn will call another php file, which displays a different query from the same database in a layer wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Search an assembly for all child types? I'd like to find all the types inheriting from a base/interface. Anyone have a good method to do this? Ideas?
I know this is a strange request but its something I'm playing with none-the-less.
A: Use Assembly.GetTypes() to get all the types, and Type.IsAssignableFrom() to che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you create a toggle button? I want to create a toggle button in html using css. I want it so that when you click on it , it stays pushed in and than when you click it on it again it pops out.
If theres no way of doing it just using css. Is there a way to do it using jQuery?
A: The good semantic way would b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: Virtual keyboard in Symbian S60 5th edition: Which API to use? How (i.e. using which API) is the virtual keyboard opened on Symbian S60 5th edition? The documentation seems to lack information about this.
A: You are right, this should obviously be a published API and it should be highlighted in the documentation. N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: nVidia SLI Tricks I'm optimizing a directx graphics application to take advantage of nVidia's SLI technology. I'm currently investigating some of the techniques mentioned in their 'Best Practices' web page, but wanted to know what advice/experience any of you have had with this?
Thanks!
A: This is not really an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I get Gridview to render THEAD? How do I get the GridView control to render the <thead> <tbody> tags? I know .UseAccessibleHeaders makes it put <th> instead of <td>, but I cant get the <thead> to appear.
A: I use the following code to do this:
The if statements I added are important.
Otherwise (depending on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: Looking for an XSLT community I do a lot of XSLT programming. I also do Java, PL/SQL, JavaScript, and a few others. I can easily find communities of Java and JavaScript programmers via the web. PL/SQL is a little more difficult, but between OTN and AskTom, I do pretty well. But XSLT seems to be neglected to me. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fade Background Color on Update Panel I have a radajaxpanel that is populated with the selected item from a combobox on another update panel. Currently the radajaxpanel is the same background color as the rest of the page. What I'd like to do, is based on it being populated with data, change it's background color ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I post an array of string to ASP.NET MVC Controller without a form? I am creating a small app to teach myself ASP.NET MVC and JQuery, and one of the pages is a list of items in which some can be selected. Then I would like to press a button and send a List (or something equivalent) to my controller containin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "191"
} |
Q: Why can't I inherit from dict AND Exception in Python? I got the following class :
class ConstraintFailureSet(dict, Exception) :
"""
Container for constraint failures. It act as a constraint failure itself
but can contain other constraint failures that can be accessed with a dict syntax.
"""
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Komodo Edit and Notepad++ ::: Pros & Cons ::: Python dev I'm using Notepad++ for python development, and few days ago I found out about free Komodo Edit.
I need Pros and Cons for Python development between this two editors...
A: I just downloaded and started using Komodo Edit. I've been using Notepad++ for awhile. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Generate distinctly different RGB colors in graphs When generating graphs and showing different sets of data it usually a good idea to difference the sets by color. So one line is red and the next is green and so on. The problem is then that when the number of datasets is unknown one needs to randomly generate these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: PCL raster color graphics distorted. Code included: what am I missing? The function below prints a color raster image to a PCL-5 printer. The function was adapted from a 2-color (1bpp) printing function we had that worked perfectly, except for the grainy 2-color printing. The problem is that the image comes out wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How would I link to a chm file topic from a Word 2007 document? Is there a way to link to a chm file, and therein to a certain topic, from a Microsoft Word docx document? Something in the lines of:
"For more information about this Property see [link ref="./SomeDirectory/somedocument.chm!Sometopic.Somesubtopic" text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is JSON validation a best practice? Is it a best practice to validate JSON?
With both a JSON schema proposal and a JavaScript implementation of a JSON Schema validator, this practice would seem relatively frictionless to implement. So, is it a no-brainer that should be part of any robust application? Or do you empl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Embedding an application inside another application I'm sure some of you noticed that if you have Acrobat Reader ( or any other pdf viewer ) , and open a pdf in Firefox , you will see it embedded inside your tab . Is there any way to embed an application in a JFrame ?
A: This is a rather tricky. In general, native ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: multiple type parameters in haskell type classes I'm trying to do some abstraction in Haskell98 but doen't know how to do it.
What I want to do is to define a class for types that may be converted into lists.
toList :: a -> [b]
But I don't know how to define a class for this method. I brought up the following three... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: In C#, is accessing the current object's properties through this.XYZ considered poor style compared to just XYZ Is it a simple case of just never using the this.XYZ construct?
A: It's only considered poor style if it violates your style guidelines. Sometimes using this is necessary to qualify a member variable over... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I convert an int to a zero padded string in T-SQL? Let's say I have an int with the value of 1. How can I convert that int to a zero padded string, such as 00000001?
A: This work for me:
SELECT RIGHT('000' + CAST(Table.Field AS VARCHAR(3)),3) FROM Table
...
I created this user function
T-SQL Code :
CREATE F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Debug and Release Assembly Refrences in XAML In a XAML namespace declaration, is there a way to disambiguate differently named assemblies depending on your current configuration?
I'm in the process of reworking a projects build system. The old system had the debug and release assemblies building to seperate directo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SharePoint: What is the max size of the multi line text field? Can I set it? What is the max size of the multi line text field? Can I set it?
A: A multi line text field is Defined in sharepoint as a 'Note' type, this is stored in the the DB as a ntext sql type.
In the SQL type can store 2gb of char data, that's 1,0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I programmatically determine if an application is flashing in the taskbar I can use "FlashWindowEx" to make a window flash in the taskbar, but what can I call to determine if that has been done to a window? Is there a flag that gets set somewhere that I can query?
A: It's seems that such thing is not possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: built in unix / linux command for recursive find and replace? Many people string together find and sed, or perl, or any number of other unix commands to find and replace across multiple files. But, there's a simple command that can do it for you without the hassle?
Edit:
The Digital Ninja points out that it's rpl.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Transport.send() is it thread-safe? The method is static, but I cannot find mention of if it is thread-safe or not. I plan on hitting this method with several threads at once and I would like to avoid a synchronized block if possible.
javax.mail.Transport.send(msg);
A: It is usually bad design and a violatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to store a java.util.Date into a MySQL timestamp field in the UTC/GMT timezone? I used a new Date() object to fill a field in a MySQL DB, but the actual value stored in that field is in my local timezone.
How can I configure MySQL to store it in the UTC/GMT timezone?
I think, configuring the connection string wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Are variable prefixes (“Hungarian notation”) really necessary anymore? Since C# is strongly typed, do we really need to prefix variables anymore?
e.g.
iUserAge
iCounter
strUsername
I used to prefix in the past, but going forward I don't see any benefit.
A: Nope. Did we ever need to?
A: Hungarian notation is ugly.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Why are generics called generics? At the risk of becoming the village idiot, can someone explain to me why generics are called generics? I understand their usage and benefits, but if the definition of generic is "general" and generic collections are type safe, then why isn't this a misnomer?
For example, an ArrayLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Does XQuery (or XPath) have equivalents to Update, Insert, and Delete as well as Select? I know how to find what I need from XML using XPath. The syntax takes a little getting used to, but it is quite powerful. I'm interested in learning XQuery also, but the SQL like syntax seems awkward. Even so, if it can provi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I add an MSBuild .proj file to my solution? Does anyone know how to add a an MSBuild .proj file to my solution?
I was just given existing code from a vendor with a solution that references an MSBuild .proj file as one of its projects. When I open the solution, the project shows as (unavailable). It appears ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to set the body URL of a tile in Struts action class? I am using struts 1.1 with tiles.
I have tiles with definitions like
<definition name="cnmp.body.index" extends="cnmp.mainLayout" >
<put name="title" value="CNM Portal" />
<put name="bodytitle" value="Home" />
<put name="body" value="/00-CNM_Landing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Object Dumper/Unit Testing I'm currently writing an object dumper (allowing different dumping strategies).
Of course, I would like to write unit tests to verify that what I will develop will match all the features that I expect.
However, I cannot imagine how I will perform the testing on this solution.
I have though... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In a C# exception handler, can I find the parameters that were passed to the method that raised the exception? I'm writing an error handling module for a fairly complex system architected into layers. Sometimes our data layer throws obscure exceptions.
It would be really handy to log out the values of the parameters... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to compile and install a Linux kernel into an ARM kit I have an ARM kit beside me and a Linux kernel source code patched with Xenomai on my machine. I understand I can send data to the kit through an USB cable and a (windows-based, of course) software, but I'm stumped as to exactly what I should be sending that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DBase index Is the index value of the first record in a dbf file 0 or 1? Is the index zero-based?
A: DBF's are always count based. I'm not sure what you're after, but given this fact I would have to say 1. Record 1 = first record in the table, not record 0. A goto 0 means goto top.
A: i'm not sure but this mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Help Modifying RegEx To Return Range of Digits Currently this expression "I ([a-zA-z]\d]{3} " returns when the following pattern is true:
I AAA
I Z99
I need to modify this so it will return a range of alphanumerics after the I from 2 to 13 that do not have a space.
Example:
I AAA
I A321
I ASHG310310
Thanks,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Considering ATK Framework Has anybody used the ATK Framework? It is claimed to be geared toward developing apps for business use. Manipulating data, knowledge bases, etc... This is what I primarily develop (on the side-for my own use). The site hasn't given me a great overview of why it may be better than other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DDD + Public Parameterless Constructors - Should They Exist? One of the tenants of DDD is to not allow your objects to enter an invalid state. To me this means there shouldn't be a public parameterless constructor because that's going to be an object in an invalid state 99% of the time.
Is this a good way to move f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is 'hotcopy' enough for SVN backups or should I worry about full and incremental dumps? For my personal stuff I just use the svnadmin hotcopy command once a week but for more mission critical repositories that include many developers, is that enough? Or should I spend the time to put together a more rigorous backup ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best free tool to build an exe from Java code?
Possible Duplicate:
How can I convert my java program to an .exe file ?
I've used JSmoothGen in the past, but recently we've seen a number of machines that refuse to run the .exes that it generates. It also seems not to be actively maintained so heavily any more.
Ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Enum String Name from Value I have an enum construct like this:
public enum EnumDisplayStatus
{
None = 1,
Visible = 2,
Hidden = 3,
MarkedForDeletion = 4
}
In my database, the enumerations are referenced by value. My question is, how can I turn the number representation of the enum back to the st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "557"
} |
Q: What features do you wish were in common languages? What features do you wish were in common languages? More precisely, I mean features which generally don't exist at all but would be nice to see, rather than, "I wish dynamic typing was popular."
A: I guess the most obvious answer is Lisp-like macros. Being able t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL Server 2000, "FOR XML AUTO" Query via http, Need "Content Length = 12345" in return XML Header SQL Server 2000 Guru's,
I've setup SQL 2000 to accept HTTP Queries i.e.
http://74.22.98.66/MYDATABASE?sql={CALL+sp_XMLDATA}+&root=root (ficticious url)
It works great and returns the following XML via I.E.7 url -
<?xm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Message Oriented Middleware (MoM) Vs. Enterprise Service Bus (ESB) I come from a background of MoM. I think I understand ESB conceptually. However, I'm not too sure about the practical differences between the two when it comes to making a choice architecturally.
Here is what I want to know
1) Any good links online w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to use Linq to set attributes based on counter Say I have a xml document that looks like this
<foo>
<bar id="9" />
<bar id="4" />
<bar id="3" />
</foo>
I would like to use linq to reset the id's to 0, 1 ,2.
What would be the easiest way to do this?
Thanks
A: XElement xml = GetXml();
var i = 0;
foreach (var e i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java: How to test methods that call System.exit()? I've got a few methods that should call System.exit() on certain inputs. Unfortunately, testing these cases causes JUnit to terminate! Putting the method calls in a new Thread doesn't seem to help, since System.exit() terminates the JVM, not just the current thread.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "232"
} |
Q: mysql php : switching between mysql databases is slow In my php script which connects to mysql, I have to query 2 databases in the same script to get different information. More specifically Faxarchives in one database and Faxusers in the other.
In my code I query faxusers and then foreach user, I query Faxarchiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it best to use HTTP REFERER for redirects or use some other method? Currently, we're storing the user's HTTP_REFERER so we can redirect the user back to the previous page they were browsing before they logged in.
Http Referer comes from the client and can be spoofed or blank. Is there a more secure/reliable metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I set up Setuptools for Python 2.6 on Windows? Is there any way to install Setuptools for Python 2.6 in Windows without having an exe installer?
There isn't one built at the moment, and the maintainer of Setuptools has stated that it will probably be a while before he'll get to it.
Does anyone know of a way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Can you force PayPal Payments Standard API to show credit card fields first? I'm using PayPal Website Payments Standard. Whenever the user lands on PayPal with the variables I sent, it shows a PayPal Login form and at the bottom it shows "Don't have a PayPal account? Use your credit card or bank account (where avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do I read / convert an InputStream into a String in Java? If you have a java.io.InputStream object, how should you process that object and produce a String?
Suppose I have an InputStream that contains text data, and I want to convert it to a String, so for example I can write that to a log file.
What is the eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4620"
} |
Q: IIS Page Redirecting for no apparent reason I'm the IIS admin, not the developer on this site, so the code is opaque to me. I'm stumped, though, for where to look.
Using Windows Forms Authentication, the user is directed to a login page. If their password is expired, they are directed to ChgExpiredPwd.aspx. On our ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does ActiveRecord handle locks and updates? ActiveRecord doesn't seem to cater for record locking and database updates. How does one synchronise updates in disconnected multi-user environments such as websites and web services?
A: If you are talking about Castle ActiveRecord (for .Net), I would believe you can use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Playing wav files in Firefox on Red Hat We have a JavaScript construct that will play .wav files within Firefox on Windows and MacOSX, but it does not work for Red Hat Linux. What extension do I need?
A: Firefox 3.1 will support Firefox 3.5, supports the <audio> tag, a standard tag to deal with sound. If you use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Lisp In A Box - Why is it starting a server? I've decided to get back into LISP (haven't used it since my AI classes) to get more comfortable with functional programming in general, so I downloaded Lisp In A Box (which we actually used in a previous class) which comes with CLISP and Emacs.
When I run it, it says:
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Interface Builder can't display 160dpi images correctly? I'm developing an iPhone app. A simple image is the background of the main view.
I've set an UIImageView in the background and set an image in, using IB.
the image is a 160dpi PNG image. It appears like CRAP in IB. When running in the simulator it is ok, crisp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: weird smallmoney in MS sql to decimal in .Net i have a smallmoney value in db as 25.00 when i read it to .net decmial it became 25.0000 on the asp.net gridview. where did it tack on the extra two digits?
A: This is totally a consequence of formatting -
The actual value in the database is simply 25 in both cases.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find best fuzzy match for a string in a large string database I have a database of strings (arbitrary length) which holds more than one million items (potentially more).
I need to compare a user-provided string against the whole database and retrieve an identical string if it exists or otherwise return the cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: C# Sanitize File Name I recently have been moving a bunch of MP3s from various locations into a repository. I had been constructing the new file names using the ID3 tags (thanks, TagLib-Sharp!), and I noticed that I was getting a System.NotSupportedException:
"The given path's format is not supported."
This was g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "206"
} |
Q: How do I read the results of a system() call in C++? I'm using the following code to try to read the results of a df command in Linux using popen.
#include <iostream> // file and std I/O functions
int main(int argc, char** argv) {
FILE* fp;
char * buffer;
long bufSize;
size_t ret_code;
fp = pop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: User-Defined Functions SQL Server 2005 flagged incorrectly as non-deterministic? Related to this question, I decided to check the UDFs in my data warehouse (which should largely have been deterministic), and I found several which aren't which should be.
For instance:
CREATE FUNCTION [udf_YearFromDataDtID]
(
@DAT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In Visual C# I cannot make my public class public I'm trying to make a program in Visual C# that has my one created class, and at application launch it creates an array of my class object, and this array of my object can be used all over the program. So any function, or a control's event can access the array of obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows shortcut (.lnk) parser in Java? I'm currently using Win32ShellFolderManager2 and ShellFolder.getLinkLocation to resolve windows shortcuts in Java. Unfortunately, if the Java program is running as a service under Vista, getLinkLocation, this does not work. Specifically, I get an exception stating "Could not g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Initializing an Array of Structs in C# How can I initialize a const / static array of structs as clearly as possible?
class SomeClass
{
struct MyStruct
{
public string label;
public int id;
};
const MyStruct[] MyArray = {
{"a", 1}
{"b", 5}
{"q", 29}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Evidence that SharePoint has no SQL injection vulnerabilities? My company has a requirement that all production sites pass an AppScan security scan. Sometimes, when we scan a SharePoint installation, the software detects a blind SQL injection vulnerability. I'm pretty sure this is a false positive--AppScan is probab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why can't I focus a control that I reveal with slideDown()? I want to reveal a div with an input inside when you click a button, and set its focus.
If I use show(), it works, but if I use slideDown() the focus is lost after the animation completes. How can I prevent this from happening?
Sample code:
$("document").re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server: Floor a date in SQL server, but stay deterministic (This is related to Floor a date in SQL server.)
Does a deterministic expression exist to floor a DATETIME? When I use this as a computed column formula:
DATEADD(dd, DATEDIFF(dd, 0, [datetime_column]), 0)
the I get an error when I place an index on that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Unable to access WebService I have a webservice @ http://recpushdata.cyndigo.com/Jobs.asmx but I'm not able to access it though I am adding it as a WebReference properly.
Any Help would be great.
A: AFAI can see, the asmx page has server errors, so you will not be able to access it.
Contact the admin of the web ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Recursive directory listing using Ruby with Chinese characters in file names I would like to generate a list of files within a directory. Some of the filenames contain Chinese characters.
eg: [试验].Test.txt
I am using the following code:
require 'find'
dirs = ["TestDir"]
for dir in dirs
Find.find(dir) do |path|
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: integrating Grails and GWT GWT seems like a really nice technology for Java developers who don't like (or don't know) HTML/JS/CSS to build rich web interfaces. On the server-side Grails also looks really nice, it's often described as "Rails for Java developers". I've read that Grails' "convention over configuration"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Should Helper/Utility Classes be abstract? I commonly find myself extracting common behavior out of classes into helper/utility classes that contain nothing but a set of static methods. I've often wondered if I should be declaring these classes as abstract, since I can't really think of a valid reason to ever insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: How do I stop the Sun JDK1.6 builtin StAX parser from resolving DTD entities I'm using the StAX event based API's to modify an XML stream. The stream represents an HTML document, complete with DTD declaration. I would like to copy this DTD declaration into the output document (written using an XMLEventWriter). When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL 2005 Trigger Question Can I ascertain the name of the stored procedure that caused the trigger to fire from within the trigger?
A: I'm not sure offhand, but what if it wasn't triggered by a stored procedure?
You might be able to use DBCC INPUTBUFFER as in this article.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/309566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Validation: How to not display errors? OR How to display errors as a tooltip? I want my errors to float above, left-justified, the input field that doesn't validate. How can I do this?
If I can't, how can I turn the errors off? I still want the fields to validate (and highlight on error), but not for the ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Windows CE Device: Deploy using a .zip or a .cab on headless device? I have a Windows CE device that we are deploying, but we have complete control of the software installed on it.
This is not a typical Windows Mobile device, this is a headless device that the user will not interact with. I know that on PDA-style... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.