Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39,725 | 2 | null | 37,564 | 2 | null | Recycle shuts down the process hosting the appdomain. You'll notice that the PID changes when you recycle it.
Unloading the AppDomin simply unloads all of the assemblies in the AppDomain, which can then be reused.
The important thing to remember is that once the CLR is loaded into a process, it can't be removed. So i... | null | CC BY-SA 2.5 | null | 2008-09-02T14:59:35.237 | 2008-09-02T14:59:35.237 | null | null | 4,083 | null |
39,729 | 2 | null | 39,712 | 0 | null | I second Luke's answer. StyleCop can help you enforce common coding style across your team. If you want to share formatting rules take a look at ReSharper AFAIK it allows you to export and share this settings.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:00:59.350 | 2008-09-02T15:00:59.350 | null | null | 1,196 | null |
39,728 | 1 | 176,467 | null | 3 | 1,085 | What is the best way to go about upgrading TFS 2005 to 2008? Also, what about the Team Build scripts ("Build Types"), are those compatible with Team Build 2008 or do they need converted/migrated somehow?
| How to upgrade TFS 2005 to TFS 2008? | CC BY-SA 2.5 | 0 | 2008-09-02T15:00:15.420 | 2014-02-25T03:25:15.353 | 2014-02-25T03:25:15.353 | 522,735 | 2,047 | [
"visual-studio-2008",
"tfs",
"msbuild",
"visual-studio-2005",
"tfs-migration"
] |
39,720 | 2 | null | 39,525 | 1 | null | We use Apache's [Log4cxx](http://logging.apache.org/log4cxx/index.html) for logging which isn't perfect, but provides a lot of infrastructure and a consistent approach across projects. I believe it is cross-platform, though we only use it on Windows.
It provides for run time configuration via an ini file which allo... | null | CC BY-SA 2.5 | null | 2008-09-02T14:56:47.753 | 2008-09-02T14:56:47.753 | null | null | 3,631 | null |
39,733 | 2 | null | 39,727 | 2 | null | System.Web.
```
HttpContext.Current.Handler
HttpContext.Current.Request.Server.Transfer
```
| null | CC BY-SA 2.5 | null | 2008-09-02T15:02:10.377 | 2008-09-02T15:02:10.377 | null | null | 1,965 | null |
39,734 | 1 | 39,966 | null | 9 | 6,864 | I can create a menu item in the Windows Explorer context menu by adding keys in the registry to .
How can I create submenu items to the just created menu item?
| How to add submenu items to the Windows Explorer context menu? | CC BY-SA 2.5 | 0 | 2008-09-02T15:02:21.860 | 2016-10-26T19:48:24.860 | 2015-01-03T15:30:34.353 | 2,171,120 | 4,264 | [
"windows",
"user-interface",
"windows-shell"
] |
39,736 | 2 | null | 39,712 | 0 | null | Editor settings are stored in the registry, so no luck having a single source for them. You'll need to go with an external tool to ensure uniformity.
A free, quick solution would be exporting the relevant registry settings and loading them up on everyone's machine. They'll still be able to change them (and they will... | null | CC BY-SA 2.5 | null | 2008-09-02T15:02:34.840 | 2008-09-02T15:02:34.840 | null | null | 1,676 | null |
39,746 | 1 | 224,136 | null | 12 | 6,066 | I installed TortoiseHg (Mercurial) in my Vista 64-bit and the context menu is not showing up when I right click a file or folder.
Is there any workaround for this problem?
| TortoiseHg in Vista 64-bit not showing the context menu | CC BY-SA 3.0 | 0 | 2008-09-02T15:06:17.467 | 2014-05-20T20:33:10.797 | 2014-05-20T20:33:10.797 | 2,139,094 | 4,264 | [
"mercurial",
"tortoisehg",
"vista64"
] |
39,749 | 2 | null | 6,859 | 6 | null | The best way to start is with the book . It covers LUA, XML, WarcraftAddOnStudio and the WoW API. The book also has sections on best practices and avoiding common mistakes.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:09:18.317 | 2008-09-02T15:09:18.317 | null | null | 4,262 | null |
39,745 | 2 | null | 39,712 | 1 | null | There is a tool called [NArrange](http://narrange.sourceforge.net/) which will arrange your code. This is particular useful to avoid conflicts in source control systems, but also has several other advantages. Check out the web site.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:05:58.450 | 2008-09-02T15:05:58.450 | null | null | 4,116 | null |
39,751 | 2 | null | 39,742 | 1 | null | Perhaps the most common SVN property, 'svn:ignore' is done through the .gitignore file, rather than metadata. I'm afraid I don't have anything more helpful for the other kinds of metadata.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:10:51.667 | 2008-09-02T15:10:51.667 | null | null | 1,190 | null |
39,750 | 2 | null | 39,615 | 4 | null | Expanding on [Nathans](https://stackoverflow.com/users/4142/nathan-fritz) post. The following will do the job lot in one batch file.
```
@echo off
if %1.==Sub. goto %2
for %%f in (*.in) do call %0 Sub action %%~nf
goto end
:action
echo The file is %3
copy %3.in %3.out
ren %3.out monkeys_are_cool.txt
:end
```
| null | CC BY-SA 2.5 | null | 2008-09-02T15:10:46.333 | 2008-09-02T15:10:46.333 | 2017-05-23T12:18:01.647 | -1 | 770 | null |
39,735 | 1 | 40,120 | null | 5 | 5,186 | If so how?
Did you roll your own with jQuery or use the Microsoft AJAX toolkit?
Did you create a webservice or call an action?
---
: Please note that this question was asked before Microsoft announced that they were going to bundle jQuery in with VS/ASP.NET MVC. I think there is less of a discussion around t... | Have you got a CascadingDropDown working with ASP.NET MVC? | CC BY-SA 2.5 | 0 | 2008-09-02T15:02:25.807 | 2011-04-19T13:42:38.977 | 2009-02-26T08:16:34.480 | 1,122 | 1,122 | [
"c#",
"asp.net-mvc",
"ajax",
"controls"
] |
39,748 | 2 | null | 39,632 | 8 | null | In the example given, there's no real difference between the two - and no significant advantages or disadvantages to either.
However, in larger schemas things can get very untidy and difficult to manage when the practice for choosing nested over global isn't clearly defined.
The obvious reasons for using global types... | null | CC BY-SA 2.5 | null | 2008-09-02T15:07:49.040 | 2008-09-02T15:07:49.040 | null | null | 1,521 | null |
39,742 | 1 | 39,947 | null | 39 | 21,878 | Browsing through the git documentation, I can't see anything analogous to SVN's commit hooks or the "propset" features that can, say, update a version number or copyright notice within a file whenever it is committed to the repository.
Are git users expected to write external scripts for this sort of functionality (wh... | Does git have anything like `svn propset svn:keywords` or pre-/post-commit hooks? | CC BY-SA 2.5 | 0 | 2008-09-02T15:05:22.150 | 2017-01-23T21:13:21.413 | 2008-09-02T15:15:35.667 | 4,161 | 4,161 | [
"svn",
"git",
"version-control"
] |
39,755 | 2 | null | 35,805 | 12 | null | ```
class A:
def _ _init_ _(self):
self.name = 'A'
a = A()
```
Creates an attribute on the object instance a of type A and it can therefore be found in: `a.__dict__`
```
class B:
name = 'B'
b = B()
```
Creates an attribute on the class B and the attribute can be found in `B.__dict__` alternatively ... | null | CC BY-SA 2.5 | null | 2008-09-02T15:12:12.617 | 2008-09-02T15:12:12.617 | null | null | 2,979 | null |
39,758 | 1 | 39,778 | null | 18 | 1,916 | From a web developer point of view, what changes are expected in the development arena when Google Chrome is released?
Are the developments powerful enough to make another revolution in the web? Will the way we see web programming change?
Or is it just another web browser?
| What does Google Chrome mean to web developers? | CC BY-SA 2.5 | 0 | 2008-09-02T15:12:55.033 | 2009-08-22T04:27:05.543 | 2008-09-03T01:16:19.357 | 533 | 184 | [
"google-chrome"
] |
39,753 | 1 | null | null | 88 | 92,800 | Is it possible to cache database connections when using PHP like you would in a J2EE container? If so, how?
| Connection pooling in PHP | CC BY-SA 2.5 | 0 | 2008-09-02T15:11:50.060 | 2022-05-28T13:54:05.097 | 2008-09-02T16:01:18.053 | 305 | 4,263 | [
"php",
"connection-pooling"
] |
39,760 | 2 | null | 39,663 | 8 | null | It's an often-asked question. There's an [ASPN Cookbook](http://code.activestate.com/recipes/113799/) entry on it that has served me in the past.
And there is an [extensive page of requirements one person would like to see from a module doing this.](http://wiki.python.org/moin/BitManipulation)
| null | CC BY-SA 2.5 | null | 2008-09-02T15:13:44.093 | 2008-09-02T15:13:44.093 | null | null | 2,900 | null |
39,766 | 2 | null | 39,639 | 1 | null | AspectJ doesn't work well with classes in the Spring Web MVC framework. [Read the bottom of the "Open for extension..." box on the right side of the page](http://static.springframework.org/spring/docs/2.0.x/reference/mvc.html)
Instead, take a look at the [HandlerInterceptor](http://static.springframework.org/spring/d... | null | CC BY-SA 2.5 | null | 2008-09-02T15:15:45.790 | 2008-09-03T13:50:32.023 | 2008-09-03T13:50:32.023 | 543 | 543 | null |
39,744 | 1 | 39,765 | null | 0 | 3,798 | I have the following web config file. I am having some difficulty in retrieving the value from the "AppName.DataAccess.ConnectionString" key. I know I could move it to the AppSetting block and get it realtively easily but I do not wnat to duplicate the key (and thereby clutter my already cluttered web.config file). ... | Getting Configuration value from web.config file using VB and .Net 1.1 | CC BY-SA 2.5 | null | 2008-09-02T15:05:47.077 | 2012-05-03T15:19:52.217 | 2012-05-03T15:19:52.217 | 728,795 | 2,894 | [
"vb.net",
"configuration-files",
".net-1.1"
] |
39,765 | 2 | null | 39,744 | 2 | null | ```
<section name="AppNameConfiguration"
type="AppName.SystemBase.AppNameConfiguration, SystemBase"/>
```
The custom section is supposed to have a class that defines how the various configuration data can be managed, (This is in the Type section). Is this class not available for you to examine?
MSDN has a decent ex... | null | CC BY-SA 2.5 | null | 2008-09-02T15:15:07.057 | 2008-09-02T15:15:07.057 | null | null | 1,965 | null |
39,739 | 1 | 40,350 | null | 8 | 7,917 | So, I've read that it is not a good idea to install VS2008 on my test server machine as it changes the run time environment too much. I've never attempted remote debugging with Visual Studio before, so what is the "best" way to get line by line remote debugging of server side web app code. I'd like to be able to set ... | Remote Debugging Server Side of a Web Application with Visual Studio 2008 | CC BY-SA 2.5 | 0 | 2008-09-02T15:04:06.707 | 2009-12-08T04:53:50.063 | null | null | 282 | [
"asp.net",
"visual-studio",
"debugging",
"asp-classic"
] |
39,772 | 1 | 39,797 | null | 4 | 4,382 | Some web applications, like Google Docs, store data generated by the users. Data that can only be read by its owner. Or maybe not?
As far as I know, this data is stored as is in a remote database. So, if anybody with enough privileges in the remote system (a sysadmin, for instance) can lurk my data, my privacy could g... | Encrypt data from users in web applications | CC BY-SA 2.5 | null | 2008-09-02T15:18:05.300 | 2013-05-21T23:15:50.987 | 2008-09-02T15:45:14.970 | 1,679 | 1,679 | [
"encryption",
"web-applications",
"privacy"
] |
39,770 | 1 | 39,786 | null | 2 | 313 | Things like `$log$` and `$version$` which add data upon check-in to the file. I'm interested in seeing the other ones and what information they can provide, but I can't get much info unless I know what they are called.
| What do you call the tags in Subversion and CVS that add automatic content? | CC BY-SA 3.0 | null | 2008-09-02T15:17:16.020 | 2015-03-11T12:32:22.333 | 2013-12-02T13:49:16.117 | 2,432,317 | 572 | [
"svn",
"tags",
"cvs"
] |
39,777 | 1 | 91,543 | null | 0 | 1,390 | I am looking to implement a data-driven wizard with the question tree stored in an Oracle database. What is the best schema to use to make the database portion flexible (i.e. easy to add new paths of questions) without sacrificing too much in terms of performance?
| Implementing a '20 Questions'-like Wizard in a Database | CC BY-SA 2.5 | null | 2008-09-02T15:19:33.067 | 2008-09-18T10:44:23.700 | null | null | 4,267 | [
"sql",
"oracle",
"database-design"
] |
39,764 | 2 | null | 39,746 | 1 | null | According to the [TortoiseHg FAQ](http://bitbucket.org/tortoisehg/stable/wiki/FAQ) the context menus will work in 64-bit Vista [if you start a 32-bit instance of explorer by creating a shortcut](http://bitbucket.org/tortoisehg/stable/wiki/FAQ#does-tortoisehg-work-on-vista) with the following settings (as suggested in t... | null | CC BY-SA 2.5 | null | 2008-09-02T15:14:54.153 | 2009-06-16T06:00:30.573 | 2009-06-16T06:00:30.573 | 3,171 | 3,171 | null |
39,778 | 2 | null | 39,758 | 14 | null | I think this is just another web browser. The most impact I expect to be improved Javascript performance, and the usability perspective. The first will benefit developers, especially when using Google Gears. I think the users will benefit the most from an enhanced user experience, the safety features, and ease of use.
... | null | CC BY-SA 2.5 | null | 2008-09-02T15:19:33.970 | 2008-09-02T15:19:33.970 | null | null | 4,174 | null |
39,769 | 2 | null | 33,497 | 1 | null |
1. The question is not really related to checked vs. unchecked debate, the same applies to both exception types.
2. Between the point where the ConstraintViolationException is thrown and the point, where we want to handle the violation by displaying a nice error message is a large number of method calls on the stack t... | null | CC BY-SA 2.5 | null | 2008-09-02T15:16:34.447 | 2008-09-02T15:16:34.447 | null | null | 3,997 | null |
39,771 | 1 | 39,776 | null | 647 | 246,018 | Is a GUID unique 100% of the time?
Will it stay unique over multiple threads?
| Is a GUID unique 100% of the time? | CC BY-SA 2.5 | 0 | 2008-09-02T15:17:22.680 | 2021-11-27T00:38:33.410 | 2008-09-02T15:22:23.060 | 3,394 | 2,469 | [
"language-agnostic",
"guid"
] |
39,779 | 2 | null | 39,771 | 32 | null | Yes, a GUID should always be unique. It is based on both hardware and time, plus a few extra bits to make sure it's unique. I'm sure it's theoretically possible to end up with two identical ones, but extremely unlikely in a real-world scenario.
Here's a great article by Raymond Chen on Guids:
[https://blogs.msdn... | null | CC BY-SA 4.0 | null | 2008-09-02T15:19:43.270 | 2018-11-13T09:28:03.887 | 2018-11-13T09:28:03.887 | 7,108,481 | 1,219 | null |
39,782 | 2 | null | 39,771 | 6 | null | [MSDN](http://msdn.microsoft.com/en-us/library/system.guid.newguid.aspx):
> There is a very low probability that the value of the new Guid is all zeroes or equal to any other Guid.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:20:10.880 | 2008-09-02T15:20:10.880 | null | null | 2,361 | null |
39,780 | 1 | 39,820 | null | 3 | 3,366 | Here's my scenario - I have an SSIS job that depends on another prior SSIS job to run. I need to be able to check the first job's status before I kick off the second one. It's not feasible to add the 2nd job into the workflow of the first one, as it is already way too complex. I want to be able to check the first job's... | How do I check job status from SSIS control flow? | CC BY-SA 3.0 | 0 | 2008-09-02T15:19:50.587 | 2011-07-26T15:16:43.347 | 2011-07-26T15:16:43.347 | null | 1,284 | [
"sql-server",
"ssis"
] |
39,781 | 2 | null | 39,771 | 75 | null | The simple answer is yes.
Raymond Chen wrote a [great article](https://devblogs.microsoft.com/oldnewthing/20080627-00/?p=21823) on GUIDs and why substrings of GUIDs are guaranteed unique. The article goes in to some depth as to the way GUIDs are generated and the data they use to ensure uniqueness, which should go to... | null | CC BY-SA 4.0 | null | 2008-09-02T15:20:01.677 | 2020-02-12T19:16:55.267 | 2020-02-12T19:16:55.267 | 18,771 | 3,394 | null |
39,788 | 2 | null | 39,771 | 28 | null | Guids are statistically unique. The odds of two different clients generating the same Guid are infinitesimally small (assuming no bugs in the Guid generating code). You may as well worry about your processor glitching due to a cosmic ray and deciding that 2+2=5 today.
Multiple threads allocating new guids will get u... | null | CC BY-SA 2.5 | null | 2008-09-02T15:21:20.037 | 2008-09-02T15:21:20.037 | null | null | 3,631 | null |
39,784 | 2 | null | 39,771 | 8 | null | > Is a GUID unique 100% of the time?
Not guaranteed, since there are several ways of generating one. However, you can try to calculate the chance of creating two GUIDs that are identical and you get the idea: a GUID has 128 bits, hence, there are 2 distinct GUIDs – more than there are stars in the known universe. Rea... | null | CC BY-SA 2.5 | null | 2008-09-02T15:20:44.140 | 2008-09-02T15:20:44.140 | null | null | 1,968 | null |
39,776 | 2 | null | 39,771 | 515 | null | > While each generated GUID is not
guaranteed to be unique, the total
number of unique keys (2 or
3.4×10) is so large that the probability of the same number being
generated twice is very small. For
example, consider the observable
universe, which contains about 5×10
stars; every star could then have
6.8×10 universally... | null | CC BY-SA 4.0 | null | 2008-09-02T15:19:17.450 | 2018-11-30T10:48:12.967 | 2020-06-20T09:12:55.060 | -1 | 2,915 | null |
39,791 | 2 | null | 39,648 | 43 | null | I've been able to debug some control designer issues by running a second instance of VS, then from your first VS instance do a "Debug -> Attach to Process" and pick "devenv".
The first VS instance is where you'll set your breakpoints. Use the second instance to load up the designer to cause the "designer" code to run.... | null | CC BY-SA 2.5 | null | 2008-09-02T15:22:44.073 | 2008-09-02T15:22:44.073 | null | null | 2,047 | null |
39,793 | 2 | null | 26,301 | 6 | null | [Recursive Descent Parsing](http://en.wikipedia.org/wiki/Recursive_descent_parser) - I remember being very impressed how such simple code could do something so seemingly complex.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:23:58.093 | 2008-09-02T15:23:58.093 | null | null | 3,598 | null |
39,783 | 2 | null | 39,728 | 1 | null | On this post on [Upgrading TFS 2005 to 2008](https://stackoverflow.com/questions/32597/installing-team-foundation-server#32618) I mentioned that the SharePoint upgrade to 3.0 was the main difficulty. I thought it was performed as part of the upgrade, but it in fact is a separate upgrade process. You should also install... | null | CC BY-SA 2.5 | null | 2008-09-02T15:20:26.997 | 2008-09-02T15:20:26.997 | 2017-05-23T12:01:23.407 | -1 | 3,114 | null |
39,792 | 1 | 39,807 | null | 8 | 3,321 | I have an SQL query that takes the following form:
```
UPDATE foo
SET flag=true
WHERE id=?
```
I also have a PHP array which has a list of IDs. What is the best way to accomplish this other than with parsing, as follows, ...
```
foreach($list as $item){
$querycondition = $querycondition . " OR " . $item;
}
... | How do I do multiple updates in a single SQL query? | CC BY-SA 3.0 | 0 | 2008-09-02T15:22:57.007 | 2015-04-29T16:04:40.910 | 2015-04-29T16:04:40.910 | 2,932,774 | 4,224 | [
"php",
"sql",
"where-clause"
] |
39,789 | 2 | null | 39,770 | 1 | null | In SVN these are simply called "properties". You can read about them in the SVN book:
[http://svnbook.red-bean.com/en/1.8/svn.advanced.props.html](http://svnbook.red-bean.com/en/1.8/svn.advanced.props.html)
---
Err, so, are they called properties or keywords? Oh, I see. In SVN you can associate arbitrary metadata... | null | CC BY-SA 3.0 | null | 2008-09-02T15:21:59.410 | 2015-03-11T12:31:56.943 | 2015-03-11T12:31:56.943 | 761,095 | 4,161 | null |
39,786 | 2 | null | 39,770 | 7 | null | Both Subversion and CVS call them `Keywords`.
[Have a look in the SVN manual here](http://svnbook.red-bean.com/en/1.0/ch07s02.html#svn-ch-7-sect-2.3) (scroll down to ) or [here for CVS](http://badgertronics.com/writings/cvs/keywords.html).
| null | CC BY-SA 2.5 | null | 2008-09-02T15:20:54.060 | 2008-09-02T15:20:54.060 | null | null | 3,171 | null |
39,795 | 2 | null | 39,758 | 2 | null | I think the whole purpose or at least the emphasis of the release, as Kamiel said, is to provide better javascript performance. So many of Google's services rely on javascript usage that this is a smart move by them. This should be good for everyone as IE and Firefox work to compete against Google every browser should... | null | CC BY-SA 2.5 | null | 2008-09-02T15:24:47.313 | 2008-09-02T15:24:47.313 | null | null | 3,394 | null |
39,794 | 2 | null | 39,758 | 1 | null | This is just a natural for Google. This way they can control how well their apps work in a container on & off line. Expect more tools, potentially GUI designer type tools and an IDE for use with their cloud offerings as well as a mobile version of this for Android. It's most likely a lead in to Visual Google.
If th... | null | CC BY-SA 2.5 | null | 2008-09-02T15:24:36.847 | 2008-09-02T15:24:36.847 | null | null | 4,263 | null |
39,797 | 2 | null | 39,772 | 6 | null | If encryption/decryption is performed on the server, there is no way you can make sure that the cleartext is not dumped somewhere in some log file or the like.
You need to do the encryption/decryption inside the browser using JavaScript/Java/ActiveX or whatever. As a user, you need to trust the client-side of the web ... | null | CC BY-SA 2.5 | null | 2008-09-02T15:25:30.477 | 2008-09-02T15:25:30.477 | null | null | 2,095 | null |
39,799 | 2 | null | 38,602 | 0 | null | After some research I came up with the following:
```
string pmt = dr["Payment"].ToString();
double dblPmt = System.Convert.ToDouble(pmt);
this.txtPayment.Text = dblPmt.ToString("c",CultureInfo.CurrentCulture.NumberFormat);
```
I am going to test all code samples given. If I can solve this with one line of code then... | null | CC BY-SA 2.5 | null | 2008-09-02T15:26:09.027 | 2008-09-02T15:26:09.027 | null | null | 4,096 | null |
39,800 | 2 | null | 39,758 | 0 | null | As always, it depends on their implementation. If they decide to mess with the rendering engine, we could be looking at a whole new list of browser "quirks" which will mean WebDev's will be uber-pissed.
If they stay standards-compliant (which TBH, I expect they will) it could be a really good thing to heat up the comp... | null | CC BY-SA 2.5 | null | 2008-09-02T15:26:57.527 | 2008-09-02T15:26:57.527 | null | null | 832 | null |
39,806 | 2 | null | 39,772 | -1 | null | No, you can't use passwords, but you could use password hashes. However, Google Docs are all about sharing, so such a method would require storing a copy of the document for each user.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:29:08.473 | 2008-09-02T15:29:08.473 | null | null | 3,583 | null |
39,805 | 2 | null | 39,792 | 1 | null | Use join/implode to make a comma-delimited list to end up with:
```
UPDATE foo SET flag=true WHERE id IN (1,2,3,4)
```
| null | CC BY-SA 2.5 | null | 2008-09-02T15:29:02.887 | 2008-09-02T15:29:02.887 | null | null | 1,960 | null |
39,807 | 2 | null | 39,792 | 9 | null | This would achieve the same thing, but probably won't yield much of a speed increase, but looks nicer.
```
mysql_query("UPDATE foo SET flag=true WHERE id IN (".implode(', ',$list).")");
```
| null | CC BY-SA 2.5 | null | 2008-09-02T15:29:18.770 | 2008-09-02T15:29:18.770 | null | null | 497 | null |
39,790 | 2 | null | 39,674 | 2 | null | Yeah. What I ended up doing is I converted to varchar(max) on the fly, and the replace took care of the rest.
```
-- PREPARE
SET NOCOUNT ON
-- VARIABLES
DECLARE @tblName NVARCHAR(150)
DECLARE @colName NVARCHAR(150)
DECLARE @tblID int
DECLARE @first bit
DECLARE @lookFor nvarchar(250)
DE... | null | CC BY-SA 2.5 | null | 2008-09-02T15:22:03.467 | 2008-09-02T15:22:03.467 | null | null | 997 | null |
39,809 | 2 | null | 39,792 | 0 | null |
dim delimitedIdList as string = arrayToString(listOfIds)
dim SQL as string = " UPDATE foo SET flag=true WHERE id in (" + delimitedIdList + ")"
runSql(SQL)
| null | CC BY-SA 2.5 | null | 2008-09-02T15:29:25.477 | 2008-09-02T15:29:25.477 | null | null | 350 | null |
39,808 | 2 | null | 39,792 | 0 | null | you can jam you update with case statements but you will have to build the query on your own.
```
UPDATE foo
SET flag=CASE ID WHEN 5 THEN true ELSE flag END
,flag=CASE ID WHEN 6 THEN false ELSE flag END
WHERE id in (5,6)
```
The where can be omitted but saves you from a full table update.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:29:18.893 | 2008-09-02T15:29:18.893 | null | null | 1,293 | null |
39,802 | 2 | null | 39,792 | 5 | null | You should be able to use the IN clause (assuming your database supports it):
`UPDATE foo SET flag=true WHERE id in (1, 2, 3, 5, 6)`
| null | CC BY-SA 2.5 | null | 2008-09-02T15:27:12.457 | 2008-09-02T15:27:12.457 | null | null | 4,249 | null |
39,812 | 2 | null | 39,772 | 4 | null | I think Carl, nailed it on the head, but I wanted to say that with any website, if you are providing it any confidential/personal/privileged information then you have to have a certain level of trust, and it is the responsibility of the service provider to establish this trust. This is one of those questions that has ... | null | CC BY-SA 2.5 | null | 2008-09-02T15:32:19.493 | 2008-09-02T15:32:19.493 | null | null | 115 | null |
39,804 | 2 | null | 39,792 | 0 | null | I haven't ever seen a way to do that other than your foreach loop.
But, if $list is in any way gotten from the user, you should stick to using the prepared statement and just updating a row at a time (assuming someone doesn't have a way to update several rows with a prepared statement). Otherwise, you are wide open t... | null | CC BY-SA 2.5 | null | 2008-09-02T15:27:25.903 | 2008-09-02T15:27:25.903 | null | null | 75 | null |
39,811 | 2 | null | 39,792 | 5 | null | Use IN statement. Provide comma separated list of key values. You can easily do so using `implode` function.
```
UPDATE foo SET flag = true WHERE id IN (1, 2, 3, 4, 5, ...)
```
Alternatively you can use condition:
```
UPDATE foo SET flag = true WHERE flag = false
```
or subquery:
```
UPDATE foo SET flag = true W... | null | CC BY-SA 2.5 | null | 2008-09-02T15:30:53.413 | 2008-09-02T15:30:53.413 | null | null | 2,169 | null |
39,803 | 2 | null | 39,771 | 24 | null | Theoretically, no, they are not unique. It's possible to generate an identical guid over and over. However, the chances of it happening are so low that you can assume they are unique.
I've read before that the chances are so low that you really should stress about something else--like your server spontaneously combust... | null | CC BY-SA 2.5 | null | 2008-09-02T15:27:15.233 | 2009-05-07T13:20:38.983 | 2009-05-07T13:20:38.983 | 29 | 29 | null |
39,814 | 2 | null | 39,662 | 0 | null | I'd stay away from the SQL Query. Instead, I'd either use the API or Web Services. Here's an example API call to retrieve and edit a work item:
[](http://msdn.microsoft.com/en-us/library/bb130323.aspx)[http://msdn.microsoft.com/en-us/library/bb130323.aspx](http://msdn.microsoft.com/en-us/library/bb130323.aspx)
You co... | null | CC BY-SA 2.5 | null | 2008-09-02T15:33:37.463 | 2008-09-02T15:33:37.463 | null | null | 4,083 | null |
39,798 | 2 | null | 28,637 | 19 | null | It's useful to push your benchmarking code into a utility class/method. The `StopWatch` class does not need to be `Disposed` or `Stopped` on error. So, the simplest code to some is
```
public partial class With
{
public static long Benchmark(Action action)
{
var stopwatch = Stopwatch.StartNew();
... | null | CC BY-SA 2.5 | null | 2008-09-02T15:25:41.570 | 2009-11-30T16:47:33.873 | 2009-11-30T16:47:33.873 | 3,619 | 3,619 | null |
39,815 | 2 | null | 39,772 | 1 | null | Well, I'd consider a process similar to Amazons AWS. You authenticate with a private password that is not saved remotely. Just a hash is used to validate the user. Then you generate a certificate with one of the main and long-tested algorithms and provide this from a secure page. Then a public/private key algorithm can... | null | CC BY-SA 2.5 | null | 2008-09-02T15:33:41.143 | 2008-09-02T15:33:41.143 | 2017-05-23T12:33:26.220 | -1 | 834 | null |
39,823 | 2 | null | 39,739 | 0 | null | Visual Studio comes with a [remote debugger](http://msdn.microsoft.com/en-us/library/bt727f1t(VS.71).aspx) that you can run as an exe on your server. It works best if you can run it as the same domain user as your copy of visual studio. You can then do an attach to process from the debugger on your machine to the IIS p... | null | CC BY-SA 2.5 | null | 2008-09-02T15:37:58.403 | 2008-09-02T15:37:58.403 | null | null | 1,404 | null |
39,827 | 2 | null | 39,824 | 0 | null | Can't you just add an Exception at that point and inspect it?
| null | CC BY-SA 2.5 | null | 2008-09-02T15:40:06.997 | 2008-09-02T15:40:06.997 | null | null | 1,116 | null |
39,820 | 2 | null | 39,780 | 4 | null | You may want to create a third package the runs packageA and then packageB. The third package would only contain two execute package tasks.
[http://msdn.microsoft.com/en-us/library/ms137609.aspx](http://msdn.microsoft.com/en-us/library/ms137609.aspx)
@Craig
A status table is an option but you will have to keep monit... | null | CC BY-SA 2.5 | null | 2008-09-02T15:36:04.727 | 2008-09-02T15:54:59.627 | 2008-09-02T15:54:59.627 | 1,293 | 1,293 | null |
39,824 | 1 | 39,832 | null | 8 | 2,872 | I'm debugging a production application that has a rash of empty catch blocks :
```
try {*SOME CODE*}
catch{}
```
Is there a way of seeing what the exception is when the debugger hits the catch in the IDE?
| Debugging an exception in an empty catch block | CC BY-SA 2.5 | 0 | 2008-09-02T15:38:09.637 | 2015-08-20T22:25:44.523 | 2008-09-18T15:43:17.007 | 4,271 | 4,271 | [
"debugging",
"exception",
"ide",
"try-catch"
] |
39,818 | 2 | null | 39,758 | 5 | null | Considering most develops want to reach the larger audience, it just means one more place to test. Since it uses Webkit, hopefully it will render almost identical to Safari.
Integrated Gears may mean a solid place for apps to be developed though. If you have an internal system it may be nicer to just put Chrome on a... | null | CC BY-SA 2.5 | null | 2008-09-02T15:34:49.020 | 2008-09-02T15:34:49.020 | null | null | 497 | null |
39,825 | 2 | null | 39,792 | 0 | null | If you know a bound on the number of items then use the "IN" clause, as others have suggested:
```
UPDATE foo SET flag=true WHERE id in (1, 2, 3, 5, 6)
```
One warning though, is that depending on your db there may be a limit to the number of elements in the clause. Eg oracle 7 or 8 (?) used to have a limit of 256 i... | null | CC BY-SA 2.5 | null | 2008-09-02T15:39:06.840 | 2008-09-02T15:39:06.840 | null | null | 3,590 | null |
39,831 | 2 | null | 39,824 | 3 | null | In Visual Studio - Debug -> Exceptions -> Check the box by "Common Language Runtime Exceptions" in the Thrown Column
| null | CC BY-SA 2.5 | null | 2008-09-02T15:40:32.860 | 2008-09-02T15:40:32.860 | null | null | 4,231 | null |
39,832 | 2 | null | 39,824 | 11 | null | In VS, if you look in the Locals area of your IDE while inside the catch block, you will have something to the effect of $EXCEPTION which will have all of the information for the exception that was just caught.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:41:12.907 | 2008-09-02T15:41:12.907 | null | null | 2,176 | null |
39,828 | 2 | null | 39,121 | 7 | null | First, accept the fact that problems with your app (code, usability, etc.) will be discovered.
Then, make sure you have a clear way for users to communicate with you (form mail, email, uservoice, etc.). The easier you make this the better. For example, there is a uservoice link on every page of SO.
One philosophy I s... | null | CC BY-SA 2.5 | null | 2008-09-02T15:40:08.993 | 2008-09-02T15:40:08.993 | null | null | 29 | null |
39,833 | 2 | null | 39,824 | 1 | null | You can write
```
catch (Exception ex) { }
```
Then when an exception is thrown and caught here, you can inspect ex.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:41:22.123 | 2008-09-02T15:41:22.123 | null | null | 3,880 | null |
39,834 | 2 | null | 39,824 | 1 | null | No it is impossible, because that code block says "I don't care about the exception". You could do a global find and replace with the following code to see the exception.
```
catch {}
```
with the following
```
catch (Exception exc) {
#IF DEBUG
object o = exc;
#ENDIF
}
```
What this will do is keep your curr... | null | CC BY-SA 2.5 | null | 2008-09-02T15:41:39.503 | 2008-09-02T15:41:39.503 | null | null | 17 | null |
39,838 | 2 | null | 32,633 | 0 | null | After you place a break point in them, you can also call them by name in the firebug console, and see the output of (or step through) any intermediate functions. This can help when the main entry point calls many other helper functions, and you are really just concerned with how these helpers are working.
That being ... | null | CC BY-SA 2.5 | null | 2008-09-02T15:43:29.170 | 2008-09-02T15:43:29.170 | null | null | 4,257 | null |
39,837 | 2 | null | 39,753 | 0 | null | You cannot instantiate connection pools manually.
But you can use the "built in" connection pooling with the [mysql_pconnect](http://de.php.net/manual/en/function.mysql-pconnect.php) function.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:42:47.223 | 2008-09-02T16:00:34.717 | 2008-09-02T16:00:34.717 | 2,554 | 2,554 | null |
39,816 | 2 | null | 35,973 | 3 | null | A perfect fit for [X() macros](http://www.ddj.com/cpp/184401387). These types of macros can use the C preprocessor to construct enums and arrays from the same source. You only need to add new data to the #define containing the X() macro.
Your example can be written as follows:
```
// All dog data goes in this list
#d... | null | CC BY-SA 2.5 | null | 2008-09-02T15:34:18.477 | 2008-09-02T15:34:18.477 | null | null | null | null |
39,841 | 2 | null | 39,824 | 0 | null | @sectrean
That doesn't work because the compiler ignores the Exception ex value if there is nothing using it.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:44:40.870 | 2008-09-02T15:44:40.870 | null | null | 17 | null |
39,840 | 2 | null | 39,824 | 1 | null | If you're using Visual Studio, there's the option to break whenever an exception is thrown, regardless of whether it's unhandled or not. When the exception is thrown, the exception helper (maybe only VS 2005 and later) will tell you what kind of exception it is.
Hit ++ to bring up the exception options dialog and tur... | null | CC BY-SA 3.0 | null | 2008-09-02T15:44:34.147 | 2015-08-20T22:25:44.523 | 2015-08-20T22:25:44.523 | 7,226 | 2,773 | null |
39,845 | 2 | null | 36,014 | 1 | null | have you tried to print (Console.WriteLine()) the exception inside the catch clause, and not use visual studio and run your application on console?
| null | CC BY-SA 2.5 | null | 2008-09-02T15:45:25.173 | 2008-09-02T15:45:25.173 | null | null | 3,245 | null |
39,853 | 2 | null | 39,758 | 0 | null | Hopefully it will be standards compliant and erase a little midget of Internet Explorer's market share - Firefox has ease of use and plugins going for it, but "security" is something non-technical people can understand... which one could hope would make development easier.
That's assuming it stays standards compliant ... | null | CC BY-SA 2.5 | null | 2008-09-02T15:49:28.563 | 2008-09-02T15:49:28.563 | null | null | 393,028 | null |
39,852 | 2 | null | 39,780 | 0 | null | Why not use a table? Just have the first job update the table with it's status. The second job can use the table to check the status. That should do the trick if I am reading the question correctly. The table would (should) only have one row so it won't kill performance and shouldn't cause any deadlocking (of cours... | null | CC BY-SA 2.5 | null | 2008-09-02T15:49:19.953 | 2008-09-02T17:12:42.500 | 2008-09-02T17:12:42.500 | 2,894 | 2,894 | null |
39,843 | 1 | 40,868 | null | 10 | 15,947 | I have decided that all my WPF pages need to register a routed event. Rather than include
```
public static readonly RoutedEvent MyEvent= EventManager.RegisterRoutedEvent("MyEvent", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(BasePage));
```
on every page, I decided to create a base page (named BaseP... | How do I create a base page in WPF? | CC BY-SA 3.0 | 0 | 2008-09-02T15:45:03.550 | 2015-09-10T06:48:07.210 | 2014-06-17T13:50:47.987 | 3,047 | 3,047 | [
".net",
"wpf"
] |
39,835 | 1 | null | null | 0 | 509 | I'm writing a manual and some important keywords are repeated in several pages. In the project's index I defined the keywords like this:
```
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Stackoverflow">
<param name="Name" value="Overview">
<param name="Local" value="overview.html#stackoverflo... | HTML Help keyword location | CC BY-SA 2.5 | null | 2008-09-02T15:41:53.887 | 2012-08-02T02:55:45.957 | 2012-08-02T02:55:45.957 | 39,068 | 4,269 | [
"indexing",
"chm"
] |
39,855 | 1 | 1,694,704 | null | 65 | 190,530 | Is it possible to embed a PowerPoint presentation (.ppt) into a webpage (.xhtml)?
This will be used on a local intranet where there is a mix of Internet Explorer 6 and Internet Explorer 7 only, so no need to consider other browsers.
---
I've given up... I guess Flash is the way forward.
| Embed a PowerPoint presentation into HTML | CC BY-SA 3.0 | 0 | 2008-09-02T15:50:10.433 | 2021-11-23T17:17:03.900 | 2012-11-13T12:00:10.450 | 1,288 | 383 | [
"xhtml",
"embed",
"powerpoint"
] |
39,856 | 1 | 39,864 | null | 0 | 7,728 | I have an actionscript file that defines a class that I would like to use inside a Flex application.
I have defined some custom controls in a actionscript file and then import them via the application tag:
```
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:scorecard="com.apterasoftware.score... | how do I import a class to use inside Flex application? | CC BY-SA 2.5 | 0 | 2008-09-02T15:51:51.787 | 2008-12-30T15:26:47.043 | null | null | 1,638 | [
"apache-flex",
"actionscript-3"
] |
39,847 | 1 | null | null | 2 | 298 | I write tools that are used in a shared workspace. Since there are multiple OS's working in this space, we generally use Python and standardize the version that is installed across machines. However, if I wanted to write some things in C, I was wondering if maybe I could have the application wrapped in a Python script,... | Using C in a shared multi-platform POSIX environment | CC BY-SA 2.5 | null | 2008-09-02T15:46:39.193 | 2008-11-03T13:30:27.873 | 2008-11-03T13:30:27.873 | 23,855 | 1,892 | [
"python",
"c",
"cross-platform",
"posix",
"scripting"
] |
39,859 | 2 | null | 39,583 | 3 | null | Wow! Lots of questions!
Until a year ago I relied 100% on transactions. Now its only 98%. In special cases of high traffic websites (like Sara mentioned) and also high partitioned data, enforcing the need of distributed transactions, a transactionless architecture can be adopted. Now you'll have to code referential i... | null | CC BY-SA 2.5 | null | 2008-09-02T15:53:36.073 | 2008-09-02T15:53:36.073 | null | null | 4,213 | null |
39,857 | 2 | null | 39,855 | 0 | null | The first few results on Google all sound like good options:
[http://www.pptfaq.com/FAQ00708.htm](http://www.pptfaq.com/FAQ00708.htm)
[http://www.webdeveloper.com/forum/showthread.php?t=86212](http://www.webdeveloper.com/forum/showthread.php?t=86212)
| null | CC BY-SA 2.5 | null | 2008-09-02T15:51:59.603 | 2008-09-02T15:51:59.603 | null | null | 4,249 | null |
39,866 | 2 | null | 39,758 | 0 | null | As long as there are the other web browsers (and I don't believe that they will die - which is good, because I don't want to see the internet in the hands of Google) it's just another web browser that you need to check compatibility with.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:58:23.270 | 2008-09-02T15:58:23.270 | null | null | 999 | null |
39,865 | 2 | null | 39,847 | 0 | null | You know, you should look at static linking.
These days, we all have HUGE hard drives, and a few extra megabytes (for carrying around libc and what not) is really not that big a deal anymore.
You could also try running your applications in chroot() jails and distributing those.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:58:10.633 | 2008-09-02T15:58:10.633 | null | null | 3,886 | null |
39,851 | 2 | null | 39,753 | 14 | null | I suppose you're using mod_php, right?
When a PHP file finishes executing all it's state is killed so there's no way (in PHP code) to do connection pooling. Instead you have to rely on extensions.
You can [mysql_pconnect](http://www.php.net/manual/en/function.mysql-pconnect.php) so that your connections won't get clo... | null | CC BY-SA 4.0 | null | 2008-09-02T15:49:14.120 | 2020-03-29T17:39:10.610 | 2020-03-29T17:39:10.610 | 1,839,439 | 2,148 | null |
39,864 | 2 | null | 39,856 | 5 | null | You'd need to import the class inside a script tag.
```
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import com.apterasoftware.scorecard.controls.*;
// Other imports go here
// Functions and other code go here
</mx:Script>
<!-- Components and other MXML stuff go here -->... | null | CC BY-SA 2.5 | null | 2008-09-02T15:56:51.993 | 2008-09-02T15:56:51.993 | null | null | 1,409 | null |
39,871 | 2 | null | 39,847 | 0 | null | Depending on your mix os OSes, you might be better off creating packages for each class of system.
Alternatively, if they all share the same ABI and hardware architecture, you could also compile static binaries.
| null | CC BY-SA 2.5 | null | 2008-09-02T15:59:52.300 | 2008-09-02T15:59:52.300 | null | null | 4,272 | null |
39,870 | 2 | null | 39,107 | 0 | null | You're right. dummynet works only in FreeBSD, it's actually built into the kernel.
What I did when I used it was grab an older PC nobody used anymore and install the [FreeBSD distribution](http://www.freebsd.org/releases/7.0R/announce.html).
| null | CC BY-SA 2.5 | null | 2008-09-02T15:59:34.843 | 2008-09-02T15:59:34.843 | null | null | 341 | null |
39,858 | 2 | null | 38,987 | 432 | null | Another, more concise, option:
```
z = dict(x, **y)
```
: this has become a popular answer, but it is important to point out that if `y` has any non-string keys, the fact that this works at all is an abuse of a CPython implementation detail, and it does not work in Python 3, or in PyPy, IronPython, or Jython. Also, ... | null | CC BY-SA 3.0 | null | 2008-09-02T15:52:07.777 | 2016-01-21T06:43:24.527 | 2016-01-21T06:43:24.527 | 3,207 | 3,207 | null |
39,867 | 1 | 40,141 | null | 26 | 25,849 | I have a script that has a part that looks like that:
```
for file in `ls *.tar.gz`; do
echo encrypting $file
gpg --passphrase-file /home/$USER/.gnupg/backup-passphrase \
--simple-sk-checksum -c $file
done
```
For some reason if I run this script manually, works perfectly fine and all files are encrypted. I... | How to run gpg from a script run by cron? | CC BY-SA 2.5 | 0 | 2008-09-02T15:58:49.947 | 2017-12-14T19:08:42.993 | null | null | 3,105 | [
"bash",
"cron",
"gnupg"
] |
39,874 | 1 | null | null | 27 | 26,297 | What data structures would you use to represent a chessboard for a computer chess program?
| How do I model a chessboard when programming a computer to play chess? | CC BY-SA 2.5 | 0 | 2008-09-02T16:01:32.903 | 2014-02-23T09:37:46.067 | null | null | 4,262 | [
"chess"
] |
39,868 | 2 | null | 39,108 | 1 | null | Are you trying to show the JDialog indepentently of the annimation? In order to get the order set properly, you may need to bundle those actions in a runnable that is passed to the EDT at once.
eg:
```
SwingUtilities.invokeLater(new Runnable(){
public void run(){
doAnnimation();
showDialog();
}
}
``... | null | CC BY-SA 2.5 | null | 2008-09-02T15:58:56.280 | 2008-09-02T15:58:56.280 | null | null | 3,446 | null |
39,862 | 2 | null | 39,651 | 111 | null | 'stash' takes the uncommitted, "" stuff on your working copy, and stashes it away, leaving you with a clean working copy.
It doesn't really branch at all. You can then apply the stash on top of any other branch. Or, as of Git 1.6, you can do:
```
git stash branch <branchname> [<stash>]
```
to apply the stash on top... | null | CC BY-SA 2.5 | null | 2008-09-02T15:54:59.953 | 2008-09-02T15:54:59.953 | null | null | 4,272 | null |
39,875 | 2 | null | 39,107 | 9 | null | I've used [Traffic Shaper XP](http://bandwidthcontroller.com/trafficShaperXp.html) on my XP dev box at work. It seems to handle any connection (not just HTTP). It wasn't perfect, but worked well enough for the tests I was doing. If you're on Windows maybe it'll do enough for you.
| null | CC BY-SA 2.5 | null | 2008-09-02T16:02:18.097 | 2008-09-02T16:02:18.097 | null | null | 1,409 | null |