text stringlengths 8 267k | meta dict |
|---|---|
Q: Testing if an Object is a Dictionary in C# Is there a way to test if an object is a dictionary?
In a method I'm trying to get a value from a selected item in a list box. In some circumstances, the list box might be bound to a dictionary, but this isn't known at compile time.
I would like to do something similar to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Can WampServer be used successfully in production? Can WampServer be used successfully in production? Is this a bad idea?
So everyone knows, and I don't see how this mattered, we've paid for a windows dedicated box and we have existing IIS apps. We just wanted to use a PHP based CMS which installs easier on apache (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I escape from a Snippet? (Vb.Net) In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB?
Edit: I prefer not to use the mouse.
A: Wow... I sure hope they improve this soon.
Meanwhile, in case anyone cares, I created an additional repla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to copy files How do I copy a file in Python?
A: copy2(src,dst) is often more useful than copyfile(src,dst) because:
*
*it allows dst to be a directory (instead of the complete target filename), in which case the basename of src is used for creating the new file;
*it preserves the original modification and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3566"
} |
Q: Fixed TD height property in HTML I can't make td "Date" to have fixed height. If there is less in Body section td Date element is bigger than it should be - even if I set Date height to 10% and Body height to 90%. Any suggestions?
<tr>
<td class="Author" rowspan="2">
<a href="#">Claude</a><br />
<a href="#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best SQL library for use in Common Lisp? Ideally something that will work with Oracle, MS SQL Server, MySQL and Posgress.
A: At the moment there's no open-source library that supports all the SQL backends you mention. CLSQL comes quite close (lacking only support for MS SQL). The alternatives are:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Problem with Bash output redirection I was trying to remove all the lines of a file except the last line but the following command did not work, although file.txt is not empty.
$cat file.txt |tail -1 > file.txt
$cat file.txt
Why is it so?
A: You can use sed to delete all lines but the last from a file:
sed -i '$!... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I automate exporting of tables into proper XML files from MSSQL or Access? We have a customer requesting data in XML format. Normally this is not required as we usually just hand off an Access database or csv files and that is sufficient. However in this case I need to automate the exporting of proper XML fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I use XPathNodeIterator to iterate through a list of items in an XML file? This is a sample (edited slightly, but you get the idea) of my XML file:
<HostCollection>
<ApplicationInfo />
<Hosts>
<Host>
<Name>Test</Name>
<IP>192.168.1.1</IP>
</Host>
<Host>
<Name>Test</Name>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Outlook Plug-In for custom CRM I would like to write a plug-in that will allow a custom written CRM to read and write to their local Outlook client. I know that this poses a security concern. But, my clients are asking that their CRM "be connected" to Outlook. They would like to be able to do the following:
A) Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Convert a string to a date in .net I'm reading text from a flat file in c# and need to test whether certain values are dates. They could be in either YYYYMMDD format or MM/DD/YY format. What is the simplest way to do this in .Net?
A: DateTime.TryParse method
A: you could try also TryParseExact for set exact forma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why am I getting "multiple cascade paths" with this table relationship? I have the following table relationship in my database:
Parent
/ \
Child1 Child2
\ /
GrandChild
I am trying to create the FK relationships so that the deletion of the Parent table cascades ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where are the explanations to warnings of VS 2005 Code Analyses tool? Does anyone know where to find an explanation to the warnings in VS 2005 Code Analyses tool. I would like some documentation, explaining why it creates the warnings it does and what course of action one should take.
A: You should be able to right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AJAX Thumbnails Does anyone know of any free frameworks that help you create thumbnails for web pages, that when clicked, the original image loads ontop of the page (modal like), as oppossed to opening a separate page.
Thanks!
A: This is really 2 questions in 1. The "lightbox" display of the original, larger sized,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you use the branches/tags/trunk convention? Do you always follow the convention of putting branches, tags and trunk directories at the top level of your Subversion repository? Lately, I have stopped bothering and nothing bad has happened (yet)!
It should be possible to move directory trees around if there's ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Translating Int32 into ushort and back again I am attempting to devise a system for packing integer values greater than 65535 into a ushort. Let me explain.
We have a system which generates Int32 values using an IDENTITY column from SQL Server and are limited by an in-production client API that overflows our Int32 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How deep is the Win32 message queue? How many messages does the queue for a standard window hold? What happens when the queue overflows?
The documentation for GetMessage and relatives doesn't say anything about this, and PeekMessage only gives you a yes/no for certain classes of messages, not a message count.
This p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the best practice for creating an ASP.NET MVC control or helper? I'm looking to build an reusable control or custom helper for my MVC project. I'm sure there is a best practice for this. Any help is appreciated.
A: Sure, the best practices are encapsulated in the HtmlHelpers and other helpers in the MVC sou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I use RegEx and VI (or something similar) to autofill some text for me? NOTE: I am not set on using VI, it is just the first thing that came to mind that might be able to do what I need. Feel free to suggest any other program.
I have a form with nearly 100 fields that I would like to auto-fill with PHP. I know h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What causes java.lang.IllegalStateException: Post too large in tomcat / mod_jk what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size?
A: It will be for others persons, I see you are coupling Apache HTTP and Tomcat (tomcat / mod_jk), in this case edit the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can you strip non-ASCII characters from a string? (in C#) How can you strip non-ASCII characters from a string? (in C#)
A: I believe MonsCamus meant:
parsememo = Regex.Replace(parsememo, @"[^\u0020-\u007E]", string.Empty);
A: I found the following slightly altered range useful for parsing comment blocks out o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "269"
} |
Q: Restart IIS if new dll dropped in bin? Do I have to restart IIS if I drop a new DLL in the bin of my virtual directory?
A: No you don't have to restart IIS. However, your worker process will automatically recycle itself.
A: No you do not have to, the application will recycle, but an IISReset is NOT needed
A: If y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Command-line Unix ASCII-based charting / plotting tool Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph.
Just to clarify, I'm looking for something that will output a graph in ASCII (like ascii-art style), so I can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "174"
} |
Q: IIS performance problem trying to implement an XMPP-like protocol we're have a client that needs to get interactive messages from a server, from clients that are distributed around the world behind all kinds of firewalls with all kinds of ports closed. The only thing we can rely on is HTTP port 80 (and HTTPS 443).
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to unload an assembly from the primary AppDomain? I would like to know how to unload an assembly that is loaded into the main AppDomain.
I have the following code:
var assembly = Assembly.LoadFrom( FilePathHere );
I need/want to be able to unload this assembly when I am done.
Thanks for your help.
A: If you wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Rhino Mocks: Re-assign a new result for a method on a stub I know I can do this:
IDateTimeFactory dtf = MockRepository.GenerateStub<IDateTimeFactory>();
dtf.Now = new DateTime();
DoStuff(dtf); // dtf.Now can be called arbitrary number of times, will always return the same value
dtf.Now = new DateTime()+new TimeSpan(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using jQuery to find the next table row Using jQuery, how do you bind a click event to a table cell (below, class="expand") that will change the image src (which is in the clicked cell - original will be plus.gif, alternating with minus.gif) and hide/show the row immediately below it based on whether that row has a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Image database build in Oracle - Is an e-commerce style interface workable? Question
Can I build a image database/library that has an e-commerce style checkout system and a powerful search in Oracle/Java? Are there existing elements out there I should be aware of? Or, is this better in another dev environment like P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installing TFS 2008 Workgroup Edition on Windows Server 2003 with SQL Server 2008 I ran into an issue when installing Team Foundation Server 2008 Workgroup Edition. I have a Windows Server 2003 SP2 machine that's practically new. I have installed SQL Server 2008 with almost all of the options. When I run through the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Progress Reports I'm not talking about the kind you get in college, but rather implementing progress reports on the Job for developers.
My thoughts in organizing a development team is encouraging and, to some extend, requiring regular progress updates were developers would report on what they did in the last hour or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: debug JSP from eclipse Does anyone know of a good tool for debugging JSPs from within Eclipse? I'd like to be able to set and watch breakpoints, step through the Java code/tags, etc within Eclipse while the app is running (under JBoss in my case).
Presumably, it's reasonably straightforward to debug the servlet clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Zabbix: is it possible to monitor arbitrary string variable? We are using Zabbix for services monitoring.
There are some essential monitoring configured.
I want to have timeline of version strings of my service along with this monitorings. That would give me opportunity to see that upgrading to this version altered ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Weird Output on SQL REPLACE I am using REPLACE in an SQL view to remove the spaces from a property number. The function is setup like this REPLACE(pin, ' ', ''). On the green-screen the query looked fine. In anything else we get the hex values of the characters in the field. I am sure it is an encoding thing, but ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing apache2 digest authentication information to a wsgi script run by mod_wsgi I've got the directive
<VirtualHost *>
<Location />
AuthType Digest
AuthName "global"
AuthDigestDomain /
AuthUserFile /root/apache_users
<Limit GET>
Require valid-user
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I take a photo with my iPhone app? I'm writing an iPhone app with Cocoa in xcode. I can't find any tutorials or sample code that shows how to take photos with the built in camera. How do I do this? Where can I find good info?
Thanks!
A: The UIImagePickerController class lets you take pictures or choose t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Finding pixels per inch in wxDC In wxWidgets, how can you find the pixels per inch on a wxDC? I'd like to be able to scale things by a real world number like inches. That often makes it easier to use the same code for printing to the screen and the printer.
A: does this help? (from the manual)
wxDC::GetPPI
wxSize G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Compiler Incorrectly Optimizes Code I have a ASP.NET application running on a remote web server and I just started getting this error:
Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'.
I disassembled the code in the DLL and it seems like the compiler is incorrectly optimizing the code. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use .NET 3.0 with Visual Studio 2005? My Google-fu is failing me on this question.
I have a coworker who has Visual Studio 2005 on his machine. I have Visual Studio 2008. He wants to open a project I wrote in C# 3.0, and we've gotten that far, but VS2005 barfs on the 3.0 code, like var.
He has the 3.0 and 3.5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I place HTML content above a Flash movie? A site I'm working on has Flash headers (using swfobject to embed them). Now I'm required to code in a bit of HTML that's supposed to overlap the Flash movie.
I've tried setting z-index on the Flash element's container and the (absolutely positioned) div but it keeps ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Washed out user interface - is there any way to correct for it? This is an interesting conundrum.
We have a WPF app that has a Vista-like theme using soft pastels, Aero control templates, etc. What we've noticed is that this UI appears incredibly washed out on low quality LCDs. Is there a way to boost color saturati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modifying Existing .NET Assemblies Is there a way to modify existing .NET assemblies without resorting to 3rd party tools? I know that PostSharp makes this possible but I find it incredibly wasteful that the developler of PostSharp basically had to rewrite the functionality of the whole System.Reflection namespace i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: INSERT INTO a temp table, and have an IDENTITY field created, without first declaring the temp table? I need to select a bunch of data into a temp table to then do some secondary calculations; To help make it work more efficiently, I would like to have an IDENTITY column on that table. I know I could declare the ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: SQL Server 2005: T-SQL to temporarily disable a trigger Is it possible to disable a trigger for a batch of commands and then enable it when the batch is done?
I'm sure I could drop the trigger and re-add it but I was wondering if there was another way.
A: DISABLE TRIGGER { [ schema_name . ] trigger_name [ ,...n ] |... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How to validate phone numbers using regex I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:
*
*1-234-567-8901
*1-234-567-8901 x1234
*1-234-567-8901 ext1234
*1 (234) 567-8901
*1.234.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1045"
} |
Q: How to get the temperature of motherboard of a PC (and other hardware statistics)? does any one know how to get the current motherboard, processor or HD temperature statistics?
In GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How can I do this? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: WebResource.axd giving 403 error in ASP.Net Post backs using IIS7 I installed a ASP.Net website on a Windows 2008 server, which is by default using IIS7. The website seems to work fine, but the post backs on my forms do not work. After a few hours of debugging, I realized that when I manually try to hit the WebRes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access Enum value using EL with JSTL I have an Enum called Status defined as such:
public enum Status {
VALID("valid"), OLD("old");
private final String val;
Status(String val) {
this.val = val;
}
public String getStatus() {
return val;
}
}
I would like to access the va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: How do you build an ASP.NET custom control with a collection property? I'm looking to do something akin to
<cstm:MyControl runat="server">
<myItem attr="something" />
<myItem attr="something" />
</cstm:MyControl>
What's the bare bones code needed to pull this off?
Rick's example shows something akin to
<cs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: VSTS Code Coverage bug? Has anyone experienced this VSTS Code Coverage "bug?" Do you have any suggestions?
I am doing code coverage analysis with Visual Studio, which is generally an easy task now with the tools that are included. However, I have an issue that I can't overcome. Let's say I have assemblies A, B, C, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can you connect to sql server from Excel? I need to create some reports from a sql server database for end users to view.
Is it possible to hook into sql server from excel?
Update
The end user will only click on the file to view the reports, asking them to do more is too much to ask!
A: Sure -- in Excel 2007 click ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: IIS site on UNC share: is it problematic? I am working with a legacy ASP Classic solution which is load balanced (via external hardware and has an IIS site the home directory of which is an UNC path. I've been told that the following issues with this setup currently exist:
*
*When using an UNC path as home direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Any way to do Visual Studio "project only" build from command line? devenv mysolution.sln /build "Release|Win32" /project myproject
When building from the command line, it seems I have the option of doing a /build or /rebuild, but no way of saying I want to do "project only" (i.e. not build or rebuild the specified... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How does versioning work with Flex remote objects and AMF? Suppose I use the [RemoteClass] tag to endow a custom Flex class with serialization intelligence.
What happens when I need to change my object (add a new field, remove a field, rename a field, etc)?
Is there a design pattern for handling this in an elegant ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extending SQL Server full-text index to search through foreign keys I know that a SQL Server full text index can not index more than one table. But, I have relationships in tables that I would like to implement full text indexes on.
Take the 3 tables below...
Vehicle
Veh_ID - int (Primary Key)
FK_Atr_VehicleColor - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I share a variable or object between two or more Servlets? I would like to know if there is some way to share a variable or an object between two or more Servlets, I mean some "standard" way. I suppose that this is not a good practice but is a easier way to build a prototype.
I don't know if it depends on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How to wait for a BackgroundWorker to cancel? Consider a hypothetical method of an object that does stuff for you:
public class DoesStuff
{
BackgroundWorker _worker = new BackgroundWorker();
...
public void CancelDoingStuff()
{
_worker.CancelAsync();
//todo: Figure out a way to wai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "126"
} |
Q: How is OpenID implemented? How would you design and implement OpenID components?
(Was "How does OpenId work")
I realize this question is somewhat of a duplicate, and yes, I have read the spec and the wikipedia article.
After reading the materials mentioned above, I still don't have a complete picture in my head of h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Exporting tab-delimited files in SSRS 2005 In this MSDN article, MS explains how to specify other delimiters besides commas for csv-type exports from SSRS 2005, however, literal tab characters are stripped by the config file parser, and it doesn't appear that MS has provided a workaround.
This entry on Microsoft Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I be more concerned with coupling between packages or between units of distribution? I have been looking at metrics for coupling and also look at DSM.
One of the tools I've been using looks at coupling between 'modules' with a module being a unit of distribution (in this case a .net assembly).
I feel that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can a modeless VB6 application do cleanup when the application is shutting down? A VB6 application is using the Interop Forms Toolkit to work with forms written in .NET. The documentation for the toolkit advises calling a method on the toolkit to advise the toolkit when the VB6 application is shutting down.
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What CLR/.NET bytecode tools exist? I'm well aware of Java tools for manipulating, generating, decompiling JVM bytecode (ASM, cglib, jad, etc). What similar tools exist for the CLR bytecode? Do people do bytecode manipulation for the CLR?
A: Mono.Cecil is a great tool like ASM. It's a subproject of Mono, and to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Add ellipses in text I've got a Label with a user-selected directory path. Of course some paths are longer than others. I'm using a Resizer on the control the Label lives in, and would love it if I could have variable eliding of the path.
c:\very\long\path\to\a\filename.txt collapsing to c:...\filename.txt or c:\v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Php Check If a Static Class is Declared How can i check to see if a static class has been declared?
ex
Given the class
class bob {
function yippie() {
echo "skippie";
}
}
later in code how do i check:
if(is_a_valid_static_object(bob)) {
bob::yippie();
}
so i don't get:
Fatal error: Class 'bob' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: 401 response code for json requests with ASP.NET MVC How to disable standard ASP.NET handling of 401 response code (redirecting to login page) for AJAX/JSON requests?
For web-pages it's okay, but for AJAX I need to get right 401 error code instead of good looking 302/200 for login page.
Update:
There are several sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How do I remove code duplication between similar const and non-const member functions? Let's say I have the following class X where I want to return access to an internal member:
class Z
{
// details
};
class X
{
std::vector<Z> vecZ;
public:
Z& Z(size_t index)
{
// massive amounts of code f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "302"
} |
Q: How do you manage web developers remotely? I'm the leader of a small web development team, and I have a feeling that we will have a couple telecommuters joining the team pretty soon (either new employees, or existing employees that will begin telecommuting). Any idea how to effectively manage and collaborate with d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is OOP & completely avoiding implementation inheritance possible? I will choose Java as an example, most people know it, though every other OO language was working as well.
Java, like many other languages, has interface inheritance and implementation inheritance. E.g. a Java class can inherit from another one and ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Parent.FindControl() not working? I have a page that has an iframe
From one of the pages within the iframe I want to look back and make a panel on the default page invisible because it is overshadowing a popup
I tried using Parent.FindControl but it does not seem to be working. I am positive I have the right id in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Logging ALL Queries on a SQL Server 2008 Express Database? Is there a way to tell SQL Server 2008 Express to log every query (including each and every SELECT Query!) into a file?
It's a Development machine, so the negative side effects of logging Select-Queries are not an issue.
Before someone suggests using the SQL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Design question: How would you design a messaging/inbox system? Many websites have the concept of sending messages from user to user. When you send a message to another user, the message would show up in their inbox. You could respond to the message, and it would show up as a new entry in that message thread.
Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make my code run on multiple cores? I have built an application in C# that I would like to be optimized for multiple cores. I have some threads, should I do more?
Updated for more detail
*
*C# 2.0
*Run on Windows Vista and Windows Server 2003
Updated again
*
*This code is running as a service
*I do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Design question: How would you design a recurring event system? If you were tasked to build an event scheduling system that supported recurring events, how would you do it? How do you handle when an recurring event is removed? How could you see when the future events will happen?
i.e. When creating an event, you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Setting placeholder properties from the controller? I have an if/else statement in the controller and 2 different types of views to display depending on the outcome.
So I have my 2 views in a .aspx page with a placeholder around each.
How do I set the property placeholder.Visible from the controller? Or by the theor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio Freezing/TFS Window Might be off screen I am using Visual Studio 2005 with Team Foundation Server.
When I right click a file under the source control and choose "compare" VS appears to freeze until I hit escape. My guess is that the window that is supposed to be popping up is somewhere I can't get to.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Blank Page in JSF If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout.
A similar error were reported at this Sun forumn´s post, but without answers.
Anyone else with the same problem, or have a solution?
;)
Due to some requests. Here follow more da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which JMS implementation do you use? We are using ActiveMQ 5.2 as our implementation of choice and we picked it a while ago. It performs well enough for our use right now. Since its been a while, I was wondering what other Java Message Service implementations are in use and why? Surely there are more than a few.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Using mercurial's mq for managing local changes I have a local mercurial repository with some site-specific changes in it. What I would like to do is set a couple files to be un-commitable so that they aren't automatically committed when I do an hg commit with no arguments.
Right now, I'm doing complicated things w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How much process should a single developer follow? Is a formal process too much? Since I didn't do a good job writing the last question, and most of the answers were good, but not at all in the direction I intended for the question to go in, I deleted it and remade it as this question.
I'm a solo developer on my own... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get the resolution of a jpeg image using C# and the .NET Environment? Our clients will be uploading images to be printed on their documents and we have been asked to come up with a way to get the resolution of the image in order to warn them if the image has too low of a resolution and will look pixalated in the end... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there an alternative to SVCUTIL.EXE for generating WCF Web service proxies? Am I missing something or is there truly no alternative (yet, I hope) to SVCUTIL.EXE for generating WCF Web service proxies?
A: I would strongly suggest that you look through the auto generated configurations before just using them, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to develop against WordPress on Windows when you already have IIS/SQL Server installed? If you want to develop against WordPress (i.e., have a local instance running on your machine so you can develop themes, get blogs and sites laid out, etc.) and you're running Windows on your development machi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delaying an exception I have a method that periodically (e.g. once in every 10 secs) try to connect to a server and read some data from it. The server might not be available all the time. If the server is not available the method throws an exception.
What would be the best way to implement a wrapper method that does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can I find good Domain Driven Design resources? What are the best places to find out everything there is to know about Domain-Driven Design, from beginner to advanced.
*
*Books
*Websites
*Mailing lists
*User groups
*Conferences
*etc
A: Wikipedia has some useful information, especially its summary... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Ways to do "related searches" functionality I've seen a few sites that list related searches when you perform a search, namely they suggest other search queries you may be interested in.
I'm wondering the best way to model this in a medium-sized site (not enough traffic to rely on visitor stats to infer relationship... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I sign a Java applet using a certificate in my Mac keychain? I have a self-signed root certificate with just the code signing extension (no other extensions) in my Mac keychain; I use it to sign all code coming out of ∞labs using Apple's codesign tool and it works great.
I was looking to expand myself a littl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: C# Download all files in HTTP directory How do I download all files in a directory and all subdirectories on an HTTP server?
A: By using a command-line tool like wget rather than reinventing the wheel.
A: If directory browsing is enabled on the server then you can crawl the directory listings, i.e. Use HttpWebRequ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can one simplify network byte-order conversion from a BinaryReader? System.IO.BinaryReader reads values in a little-endian format.
I have a C# application connecting to a proprietary networking library on the server side. The server-side sends everything down in network byte order, as one would expect, but I fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Automatic newlines and formatting for blogging software I'm writing by own blogging engine in PHP with a MYSQL backend database. MY question is: How would you go about making user comments and blog posts include newlines wherever they are appropriate?
For example, if a user hits the return key in the message/comment... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find USB drive letter? I'm writing a setup program to install an application to a USB drive. The application is meant to be used only from USB drives, so it would save an extra step for the user by automatically selecting USB drive to install to.
I might explore using Nullsoft or MSI for install, but since I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Do you use special comments on bug fixes in your code? Some of my colleagues use special comments on their bug fixes, for example:
// 2008-09-23 John Doe - bug 12345
// <short description>
Does this make sense?
Do you comment bug fixes in a special way?
Please let me know.
A: I tend not to comment in the actual so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What causes "Invalid advise flags" run-time error in Excel VBA? I have a Excel macro that generates a this error whenever it gets input of a specific format. Does anyone knows in general what an advise flag is OR where can I find information on this type of error? Thanks
Runtime error -2147221503
(80040001): Auto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert WPF to PDF I have a WPF application and I want to be able to save the output of the application to a PDF document, the item I want to save can be a Visual a Drawing or a FixedDocument (I can create it as any of those options, and it's easy to convert between them).
Is there any library that can convert direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to get/set logical directory path in python In python is it possible to get or set a logical directory (as opposed to an absolute one).
For example if I have:
/real/path/to/dir
and I have
/linked/path/to/dir
linked to the same directory.
using os.getcwd and os.chdir will always use the absolute path
>>> import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: URL Encryption in Java What is the best way to encrypt an URL with parameters in Java?
A: The only way to do this is to use SSL/TLS (https). If you use plain old HTTP, the URL will definitely be sent in the clear.
A: Unfortunatelly almost noting is simple in java :-) , for this simple and usual task I wasnt able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a better way to get hold of a reference to a movie clip in actionscript using a string without eval I have created a bunch of movie clips which all have similar names and then after some other event I have built up a string like:
var clipName = "barLeft42"
which is held inside another movie clip called 'th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to determine USB Flash drive manufacturer? I need my program to work only with certain USB Flash drives (from a single manufacturer) and ignore all other USB Flash drives (from any other manufacturers).
is it possible to check that specific USB card is inserted on windows using .NET 2.0? how?
if I find it throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: QueryString malformed after URLDecode I'm trying to pass in a Base64 string into a C#.Net web application via the QueryString. When the string arrives the "+" (plus) sign is being replaced by a space. It appears that the automatic URLDecode process is doing this. I have no control over what is being passed via the Q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I tell if a DOM element is visible in the current viewport? Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)?
(The question refers to Firefox.)
A: I tried Dan's answer, however, the algebra used to determine the bounds means that the ele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/123999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1224"
} |
Q: Why is software support for Bidirectional text (Hebrew,Arabic) so poor? While most operating systems and web browsers have very good support for bidirectional text such as Hebrew and Arabic, most commercial and open-source software does not:
*
*Most text editors, besides the original notepad and the visual studio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to overcome vs_needsnewmetadata error in Data Flow task? I have an SSIS package that copies the data in a table from one SQL Server 2005 to another SQL Server 2005. I do this with a "Data Flow" task. In the package config file I expose the destination table name.
Problem is when I change the destination table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.