text string | meta dict |
|---|---|
Q: Prevent programmers from knowing passwords used at runtime My application connects to an FTP server with a username and password. I can create an encryption routine to encrypt and decrypt the password, but anybody with access to the source code and the encrypted password can decrypt the password.
Is there an easy w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Detecting the number of processors How do you detect the number of physical processors/cores in .net?
A: This actually varies quite a bit depending on the target platform. Stephbu's answer will work great on XP SP3 and newer.
If you are targeting older platforms, you may want to check out this article. I wrote it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How do I track down obsolete build configurations in VS 2008? I have a large solution containing many C# projects. When I open the solution and hit F5 for the first time, I get compile errors like the following:
Error 3 Metadata file 'C:\Users\david\Documents\VS.Projects\CeoTrunk\Ceoimage\bin\x86\Release\Ceoimag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to format a string as a telephone number in C# I have a string "1112224444' it is a telephone number. I want to format as 111-222-4444 before I store it in a file. It is on a datarecord and I would prefer to be able to do this without assigning a new variable.
I was thinking:
String.Format("{0:###-###-####}", i[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "186"
} |
Q: How to import data from Excel 2007 xlsx file into SQL Server 2000 Database? SQL Server 2000 doesn't seem to support the xml based .xlsx file types. Besides converting the file to a 97-2003 file type, how else can I achieve this?
A: I ended up doing this.
A: If you have Excel 2007, you might also have Access 200... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I enforce function signatures on a set of function declarations in C? I want to make sure that a set of functions have the same signature in some C code. Ideally I would be able to define a new type that described the return value and arguments of a function and then declare my set of functions using this new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Regular Expression for extracting text from an RTF string I was looking for a way to remove text from and RTF string and I found the following regex:
({\\)(.+?)(})|(\\)(.+?)(\b)
However the resulting string has two right angle brackets "}"
Before: {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Eclipse reading stdin (System.in) from a file Is it possible for Eclipse to read stdin from a file?
A: On the "common" tab of the run dialog, under "Standard Input and Output" there's a checkbox for "file". but it appears to be only for output...
I'd expect to see 2 file fields there, one for standard in, one for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Login.aspx always wants to be my home page! Just starting out in asp.net.
Have just created a login.aspx page in my site and stuck on a asp login control - that's all I did. Now my Welcome.aspx page won't show as the start page of my site when I debug - even though it is set as this.
Plus I have even edited my web.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET : Check for click event in page_load In c#, how can I check to see if a link button has been clicked in the page load method?
I need to know if it was clicked before the click event is fired.
A: if that doesn't work.Try UseSubmitBehavior="false"
A: if( IsPostBack )
{
// get the target of the post-bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Is there a fix or a workaround for the memory leak in getpwnam? Is there a fix or a workaround for the memory leak in getpwnam?
A: getpwnam() does not suffer of memory leak. Subsequent calls, indeed, will overwrite its static internal buffer.
Such kind of functions are instead non-reentrant and therefore non-threa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTTP posts and multiple threads in Java I am writing an internal Java Applet to do file uploads via HTTP. I started using the built in ClientHttpRequest which worked great if I want to post one after another. When I try to have multiple threads post at the same time, something on the server side freaks out and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: From SPSS, import data from SQL Server Analysis Services I'm wondering if there is an easy way to load data from analysis services (SSAS) into SPSS.
SPSS offers a product to put SPSS functionality on the analysis server, but to me this is backwards. I don't want to learn about SPSS or have the SPSS users in the off... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make junit testing to stop after first failing test Is there a way to make running junit test to stop after a test fails?
A: I know that in Ant, the junit task has options "haltonerror" and "haltonfailure" that controls this behavior.
A: Yes ... this ability (or the lack of it) is built into the various Tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Accessing Controls on page loaded in IFrame in MS CRM 4.0 using Javascript I have a custom aspx page loaded in a IFrame in one of the modules in MS CRM 4.0. This page basically has 6 textboxes (txtValue1, txtValue2 and so on..) with values in it. I want to access these values through javascript code either on the lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What interface or method should my class implement to print what I want in Console.WriteLine? I have an object of class F. I want to output the contents of the object using Console.WriteLine for quick and dirty status updates like this:
Console.WriteLine(objectF);
This prints out only the name of the class to the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System.IO.Directory.Exists is giving an intermittent false negative I’m getting an intermittent false negative on the following line of code in an ASP.NET 2 web site:
if (!System.IO.Directory.Exists(folder))
The folder clearly exists, and even contains a log file that is written to when the CLR doesn’t lie about th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to determine if an assembly is in use? How can I tell if an assembly is in use by any process?
A: Here's an answer in PowerShell
if ( Get-Process | ? { $_.Modules | ? {$_.ModuleName -eq "AssemblyName.dll" } })
{
"in use"
}
A: If you want to know if your application has loaded the assembly, you can inspect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to force restart a Windows box using VBScript? I'm trying to find a way to force Windows to reboot, and I am running into issues. I've tried
Set OpSysSet = GetObject("winmgmts:{authenticationlevel=Pkt," _
& "(Shutdown)}").ExecQuery("select * from Win32_OperatingSystem where "_
& "Primary=true")
for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Strip Windows DLL debug info? I normally don't work on Windows development, and am completely unfamiliar with the toolchain and build system. My embedded product includes some Windows DLLs from a third party in its filesystem (which are used by a Windows machine which mounts the filesystem).
I have a problem: the mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What would you pick for your ASP.NET webapp; nHibernate, Linq, or SubSonic Something else perhaps?
I am already using nHibernate, but I get occasional issues where a lazy initialized proxy object won't actually initialize. I'm thinking of trying something else. The site has user accounts, user posts and photos, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JQuery JavaScript Design: Self Executing Function or Object Literal? I'm curious as to if there are any best practices relating to JQuery when constructing encapsulated code blocks.
Generally, when I construct a page I like to encapsulate the functions used within that page inside an object. This allows me some enca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Do you have any Ajax loading image ideas for use with jQuery? I have a page being loaded with jQuery. The initial load includes 100 records with 6 icons per record. Needless to say, it takes a few seconds to load and I want to give the user a "loading" prompt/animation.
Any ideas?
A: Matt Berseth has a nice jQu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Apache - mod_rewrite RewriteRule question I have a few problems with my mod_rewrite rules. There a three different url pattern I want to handle.
*
*http://example.com/%module%/%view%-%args%.html
*http://example.com/%module%/%view%.html
*http://example.com/%module%
The following mod_rewrite rules don't really wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any style guides for HTML? I have found that my HTML is, to be honest, very clunky. Small, simple pages are OK. But there comes a point when between indenting and the kinds of tags I have, it's impossible to keep lines short. Is there a W3C (or otherwise "official" or well accepted) formatting guide for cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Recommendations for converting raster images to vector graphics If a person is looking to batch convert a large number of raster images into vector graphics, are there any tools out there that do that well?
For an example, think of just about any diagram that has standard shapes (ellipses, rectangles) and text.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change ASP.NET generated WSDL for an ASP.NET web-service Is there a way to change the way asp.net generates elements in the WSDL generated from a .asmx file? Specifically, it seems to mark all elements minoccurs="0" and there are some elements that I want to be minoccurs="1" (aka required fields).
One of these is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does the tilde before a function name mean in C#? I am looking at some code and it has this statement:
~ConnectionManager()
{
Dispose(false);
}
The class implements the IDisposable interface, but I do not know if that is part of that the tilde(~) is used for.
A: It is used to indicate the destructor for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "186"
} |
Q: How do I write my own confirm dialog in javascript? I want to write something that acts just like confirm() in javascript, but I want to write it myself so I can skin the dialog box. In having trouble thinking through how I would basically force the javascript thread to wait until the user responds and then return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why use EventArgs.Empty instead of null? I recall reading, on multiple occasions and in multiple locations, that when firing the typical event:
protected virtual OnSomethingHappened()
{
this.SomethingHappened(this, EventArgs.Empty);
}
e should be EventArgs.Empty if there are no interesting event args, not null.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Is the destructor called if the constructor throws an exception? Looking for an answer for C# and C++. (in C#, replace 'destructor' with 'finalizer')
A: It does for C# (see code below) but not for C++.
using System;
class Test
{
Test()
{
throw new Exception();
}
~Test()
{
Conso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Color Coherence Vector in C# A friend and I are about to embark on creating a machine that performs some image comparison for sorting. I know about histogram comparison and am generally confident that a small grid of histograms per image precalculated and stored in columns in a database table will generally give us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Any way to transfer value from one cell to another? Is there any way in the SQL language or in MySQL (or other DBMA) to transfer a value from one cell to another? For example, say there is a table called user_cars with the following structure:
|id| |user_name| |num_cars|
Bob has 5 cars, and John has 3 cars. Is ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it sensible to dynamically generate SVG images on websites yet? I'm just learning about SVG, and it seems great but I'm not sure about browser support - have people successfully got around this, or is it still too early?
A: Raphael is a cross-browser vector graphics library which might be worth a look.
A: You c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why should I use Carp instead of warn in Perl? People keep giving me examples with carp instead of warn. Why? What makes carp better than warn?
A: Carp reports errors from the caller's perspective. This is useful for modules where you typically want to warn about incorrect usage (e.g. a missing argument) and iden... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Is there a way to cast generic lists to lists of interface/base class types? I'm trying to show someone a use for interfaces in a crazy situation they've created. They have several unrelated objects in lists, and need to perform an operation on two string properties in each object. I'm pointing out that if they de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to assign a process to a core in windows xp Is there a way to assign a process to a core (or more than one core) on a multi-core system running Windows XP?
An answer using a GUI is acceptable.
A: You can set a process's affinity using task manager. Right click on the process in the "Processes" tab, and select "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: grep: matching on literal "+" I need to find occurrences of "(+)" in my sql scripts, (i.e., Oracle outer join expressions). Realizing that "+", "(", and ")" are all special regex characters, I tried:
grep "\(\+\)" *
Now this does return occurrences of "(+)", but other lines as well. (Seemingly anything with open a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to perform seam carving on an image using PHP's GD library? I am working on a project that resizes images using PHP's GD library. I would like to be able to add the option to use seam carving to resize images but don't want to require something like ImageMagick (which can do seam carving with its liquid rescale ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I use VBScript to base64 encode a gif? What I'm trying to do is encode a gif file, to include in an XML document.
This is what I have now, but it doesn't seem to work.
Function gifToBase64(strGifFilename)
On Error Resume Next
Dim strBase64
Set inputStream = WScript.CreateObject("ADODB.Stream")
inputStream.Lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does Word freeze when I'm debugging? Whenever I'm at a break point in a certain C#.NET application in Visual Studio 2008 and I fire up Microsoft Word 2007, word will fail to open until I restart the C# application. I have a few theories about why, but does anyone know for sure?
A: This can be because Word is se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Textbox multiple line and blank line disappear I have a Winform application built with C# and .Net 2.0. I have a textbox set with the MultiLine property.
The problem is when someone writes text with multiple lines (press few enters), presses the save button, and then closes and loads the form again, all the new line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL - table alias scope I've just learned ( yesterday ) to use "exists" instead of "in".
BAD
select * from table where nameid in (
select nameid from othertable where otherdesc = 'SomeDesc' )
GOOD
select * from table t where exists (
select nameid from othertable o where t.nameid = o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is my ASP.NET AutoCompleteExtender returning undefined? Why am I getting a textbox that returns undefined list of variables?
When I run this code:
var query = (from tisa in db.TA_Info_Step_Archives
where tisa.ta_Serial.ToString().StartsWith(prefixText)
select tisa.TA_Serial.ToSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cleaning/sanitizing xpath attributes I need to dynamically construct an XPath query for an element attribute, where the attribute value is provided by the user. I'm unsure how to go about cleaning or sanitizing this value to prevent the XPath equivalent of a SQL injection attack. For example (in PHP):
<?php
functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Pronouncable passwords? Modules or software solutions for generating English pronounceable passwords?
Are there similar modules for other languages?
-Adam
A: You'll want to investigate the Markov chain method. Here's an example:
*
*http://www.multicians.org/thvv/gpw.html
and here are some auto-generated password... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Function pointer cast to different signature I use a structure of function pointers to implement an interface for different backends. The signatures are very different, but the return values are almost all void, void * or int.
struct my_interface {
void (*func_a)(int i);
void *(*func_b)(const char *bla);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What techniques do you use when you are designing an Object Model alone? So no doubt that building a domain model is something that I think happens best when you approach it as as team. Even going so far as to involve someone who is not technical and a member of the 'business' in the modeling sessions. So much can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I highlight/outline a Visual object in WPF? If I had a Canvas with n number of Visual objects of any shape or size, how would I highlight/outline a Visual object programmatically?
Is there something built into WPF to help me?
A: Having read the comments in the other answer -- in which you state that you w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to launch multiple Internet Explorer windows/tabs from batch file? I would like a batch file to launch two separate programs then have the command line window close. Actually, to clarify, I am launching Internet Explorer with two different URLs.
So far I have something like this:
start "~\iexplore.exe" "url1"
st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Why isn't IIS executing the PHP code of my site root index.php file? IIS is literally sending <?php ... ?> code to the browser rather then executing it.
But, only for the root http://domain.com/index.php file.
All other .php files in that folder and index.php files in subfolders execute as expected.
How can I get my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Software testing for a bare-metal system I am writing a project in C++ for an embedded system with no OS support; almost no library support. Very bare-metal. Hence, a fair amount of my code is tightly coupled(e.g., software triggered interrupts and the layer directly above them).
Part of what I am doing involves cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Should I use default(Foo), Foo.Empty, or null? So C# now allows you to use default(Foo) to get a recognized "not filled in yet"/empty instance of a class -- I'm not sure if it is exactly the same as new Foo() or not. Many library classes also implement a Foo.Empty property, which returns a similar instance. And of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use C# to sanitize input on an html page? Is there a library or acceptable method for sanitizing the input to an html page?
In this case I have a form with just a name, phone number, and email address.
Code must be C#.
For example:
"<script src='bobs.js'>John Doe</script>" should become "John Doe"
A: It so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: What tools are available for creating in process COM servers in Java? What tools are available for creating in process COM servers in Java?
A: J-Integra is the most comprehensive, complete solution you will probably find for using COM and Java together. The software has been used by many commercial products, big an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Moving from VS Professional to VS Team System We are looking at moving from Visual Studio 2008 Professional to Visual Studio Team System. I believe I've read that the client Development Edition is a superset of what Professional has/does. I'd like to ease into the transition with the client end first, then get the T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Inject errors into already validated form? After my form.Form validates the user input values I pass them to a separate (external) process for further processing. This external process can potentially find further errors in the values.
Is there a way to inject these errors into the already validated form so they can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: How to access AS3 URLLoader return data on IOErrorEvent I'm writing an actionscript library for an api. I use a URLLoader object to load data from the api. The problem I'm having is that whenever the api returns an http status in the 400s, actionscript treats this as an io error. This is all find and good, howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: AutoCompleteExtender in ASP.NET additional info how do I pass additional information to the service method returning the collection of items? I'll attempt to explain what I mean, I have 2 text boxes on a form, I need to fill out names, based of a specific account id in a database. so, I need to pass an integer to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: glob pattern matching in .NET Is there a built-in mechanism in .NET to match patterns other than Regular Expressions? I'd like to match using UNIX style (glob) wildcards (* = any number of any character).
I'd like to use this for a end-user facing control. I fear that permitting all RegEx capabilities will be ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Phone Number Formatting, OnBlur I have a .NET WinForms textbox for a phone number field. After allowing free-form text, I'd like to format the text as a "more readable" phone number after the user leaves the textbox. (Outlook has this feature for phone fields when you create/edit a contact)
*
*1234567 becomes 12... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does IIS crash when I print to stderr in Perl? This has been driving me crazy. We have IIS (6) and windows 2008 and ActiveState Perl 5.10. For some reason whenever we do a warn or a carp it eventually corrupts the app pool. Of course, that's a pretty big deal since it means that our errors actually cause prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way in VBA to know about variables that aren't being used? Is there a tool, method or setting in the standard VBA Editor to warn about variables that have been Dim'med, but aren't being used?
A: MZ-Tools will search through your code and tell you what is not being used. The version for VBA can be found h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to document a WCF web-service in a technical spec? Other than pasting a WDSL in the tech spec, what are the recommended ways to document a WCF web-service before you begin coding?
A: We recently published a WCF based SOAP interface for third parties to integrate against. For each method we provided the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What programming language paradigm fits which job? As far as I know (not much I'll admit), the currently popular programming paradigms are Object Oriented (Java, C#, Ruby) vs functional (F#). As someone who is mostly familiar with the first paradigm, I have several questions:
*
*Can a programmer simply stick with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is the correct LINQtoSQL-ish way to do a table truncate? I have a project with a formidable data access layer using LinqtoSQL for just about anything touching our databases. I needed to build a helper class that bridges some common crud operations from CLSA objects to LinqToSql ones. Everything has been operati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you iterate backwards through an STL list? I'm writing some cross-platform code between Windows and Mac.
If list::end() "returns an iterator that addresses the location succeeding the last element in a list" and can be checked when traversing a list forward, what is the best way to traverse backwards?
This c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Java/Swing: How to draw a simple bar graph in a custom renderer for a JLabel I would like to dynamically create a minimal transparent bar graph to display over a canvas.
I was thinking of using a custom renderer for a JButton or a JLabel; but how do I draw my bar graph in this renderer?
A: The standard way would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connecting to SQL Server with Visual Studio Express Editions I find it odd that in Visual C# 2008 Express edition, when you use the database explorer, your options are:
*
*Microsoft Access
*SQL Server Compact 3.5, and
*SQL Server Database File.
BUT if you use Visual Web Developer 2008 Express, you can conn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: How do I determine if a column is an identity column in MSSQL 2000? I want to do this in code, not with ALT+F1.
A: You can also do it this way:
select columnproperty(object_id('mytable'),'mycolumn','IsIdentity')
Returns 1 if it's an identity, 0 if not.
A: Adjust the WHERE clause to suit:
select
a.name as Tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: SQL Server 2000 constraint involving column on different table I would like a constraint on a SQL Server 2000 table column that is sort of a combination of a foreign key and a check constraint. The value of my column must exist in the other table, but I am only concerned with values in the other table where one of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: catching exceptions from another thread I have a method running in a seperate thread. The thread is created and started from a form in a windows application. If an exception is thrown from inside the thread, what is the best way to pass it back to the main application. Right now, I'm passing a reference to the ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/188977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: NHibernate DetachedCriteria.SetFirstResult? I found an example of implementing the repository pattern in NHibernate on the web, and one of the methods uses this code to get the first result of a query:
public IEnumerable<T> FindAll(DetachedCriteria criteria, int firstResult, int numberOfResults, params Order[] order... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set same icon for all my Forms Is there any way to set the same icon to all my forms without having to change one by one?
Something like when you setup GlobalAssemblyInfo for all your projects inside your solution.
A: This is the way to set the same icon to all forms without having to change one by one.
This is wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Having trouble with insertChildBefore and insertChildAfter in AS3 I have an XML document:
var xml:XML = new XML(<rootNode>
<head>
<meta name="template" content="Default" />
</head>
<mainSection>
<itemList>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change background color of Solution Explorer in Visual Studio Is there any way to change the background color of the Solution Explorer in Visual Studio using a Theme? - or any other way for that matter?
I can change it by changing windows-wide color settings, but obviously that affects too much.
A: Not by any mean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Is Iterator initialization inside for loop considered bad style, and why? Typically you will find STL code like this:
for (SomeClass::SomeContainer::iterator Iter = m_SomeMemberContainerVar.begin(); Iter != m_SomeMemberContainerVar.end(); ++Iter)
{
}
But we actually have the recommendation to write it like this:
So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Does a MasterPage know what page is being displayed? When I navigate on a website utilizing MasterPages, does the application know what page I am on? If so, does it store it in an object I can access?
The reason I am asking is so I can replace this:
//masterpage
<div id="nav_main">
<ul><asp:ContentPlaceHolder I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Metrics & Object-oriented programming I would like to know if somebody often uses metrics to validate its code/design.
As example, I think I will use:
*
*number of lines per method (< 20)
*number of variables per method (< 7)
*number of paremeters per method (< 8)
*number of methods per class (< 20)
*number o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Web Service versus regular Http Request About 5000 computers will be making a call to a central server, and they will be passing in a GUID to the central server.
The server will then return True/False back to the client.
Is there a big difference in performance between a web service and a regular Http request to a U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery animation I'm having some minor problems with some animations I'm trying to set up. I have a couple divs stacked on top of each other kind of like this.
<div id="div1">
Stuff...
</div>
<div id="div2">
More Stuff...
</div>
Each of these divs has a drop shadow applied to it via jQuery plugin (jquery.dro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I, in python, iterate over multiple 2d lists at once, cleanly? If I'm making a simple grid based game, for example, I might have a few 2d lists. One might be for terrain, another might be for objects, etc. Unfortunately, when I need to iterate over the lists and have the contents of a square in one list affe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to scan a folder in Java? How can I get list all the files within a folder recursively in Java?
A: Not sure how you want to represent the tree? Anyway here's an example which scans the entire subtree using recursion. Files and directories are treated alike. Note that File.listFiles() returns null for non-direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How To Get Photo IDs from Flickr API? I am trying to use JQUERY to grab photos from a Flickr group. I can get back valid JSON, but can't figure out how to get access to the actual photos. The JSON that is returned contains an empty list where I would expect photos.
So when I plug this into the browser:
http://api.fl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get the current page's full URL on a Windows/IIS server? I moved a WordPress installation to a new folder on a Windows/IIS server. I'm setting up 301 redirects in PHP, but it doesn't seem to be working. My post URLs have the following format:
http:://www.example.com/OLD_FOLDER/index.php/post-title/
I can'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "137"
} |
Q: What are your most-recommended Visual Studio preferences? There are so many little options and settings within Microsoft Visual Studio. Which adjustments do you recommend to others?
A: Tools -> Options -> Environment -> Keyboard
Setup a shortcut to close the active document. Ctrl+Alt+W in my case.
A: Gotta have th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: MVP dependency injection using MVP, what is the normal order of construction and dependency injection.
normally you create a presenter for each view and pass the view into the presenter on constructor. But what if you have:
*
*A Service that multiple views need to listen to events on.
*Multiple views all pointi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Good language & framework for cross platform (windows & mac) desktop application The last cross platform desktop development I did was Java/Swing. What about flex?
A: Don't do it. If you need to go cross-platform, write the main guts of your application in a business logic layer that doesn't depend on any GUI fram... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I report an error midway through a chunked http repsonse if I'm willing to close the connection? (See related question: How do I report an error midway through a chunked http repsonse without closing the connection?)
In my case, the #1 desire is for the browser to display an error message. No matter how unin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio MSTest run failing to even start I've got a bunch of unit tests built using Visual Studio 2005's built-in unit testing functionality. For the last little while, it's been taking absolutely forever to start the tests... Everything just sits there at "Pending" for two minutes or more. Now Visual Studio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can I find facial detection software, algorithms, etc? I'm interested in writing software that depends on being able to identify that there is a face in a picture (or video frame). It doesn't have to ID the face - so no metrics other than:
*
*Is there a human face in the picture (or more than one)
*Where,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Coupling is too high - how to design this class better? Running FxCop on my code, I get this warning:
Microsoft.Maintainability :
'FooBar.ctor is coupled with 99
different types from 9 different
namespaces. Rewrite or refactor the
method to decrease its class coupling,
or consider moving the method to one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C++ templates Turing-complete? I'm told that the template system in C++ is Turing-complete at compile time. This is mentioned in this post and also on wikipedia.
Can you provide a nontrivial example of a computation that exploits this property?
Is this fact useful in practice?
A: The factorial example actually does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: "The selected files was not found" on an InfoPath form in Sharepoint When using a file attachment control on a InfoPath form as part of a SharePoint workflow I get the error "The selected files was not found".
A: Found this online somewhere but can't find it again to link. You need to modify the following file:
C:\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linear algebra for graphics in C I'm developing software that writes to a tiny LCD screen (less than 1" x 1").
I've got all the usual suspects - lines, filled polygons, fonts, etc.
I remember, however, learning how to do fun vector manipulation in linear algebra many moons ago, and creating rotating wireframe object... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Replace in multiple files - graphical tool for Linux It needs to be graphical. No sed, awk, grep, perl, whatever. I know how to use those and I do use them now, but I need to cherry-pick each replace in 300+ files.
I want a tool where I can:
*
*type a search string
*type a replace string
*select a directory and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Libraries for text animation in Flex / Actionscript? Are there any good libraries for cool text animation effects for use in Actionscript (for use in an intro screen or banner).
I've given up tryin to use Flash itself because that takes forever, and I dont know which of the many flash text animation tools to choose ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do you really use your reverse domain for package naming in java? For a long time ago, I have thought that, in java, reversing the domain you own for package naming is silly and awkward.
Which do you use for package naming in your projects?
A: Once you understand why the convention exists, it shouldn't feel silly o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: SQL selecting rows by most recent date with two unique columns Using the following query and results, I'm looking for the most recent entry where the ChargeId and ChargeType are unique.
select chargeId, chargeType, serviceMonth from invoice
CHARGEID CHARGETYPE SERVICEMONTH
1 101 R 8/1/20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: Ending asynchronous delegate invocation with partial type information When writing async method implementations using the BeginInvoke/EndInvoke pattern the code might look something like the following (and to save you guessing this is an async wrapper around a cache):
IAsyncResult BeginPut(string key, object value)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |