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
41,220
1
41,228
null
8
7,943
The .NET `System.Security.Cryptography` namespace has a rather bewildering collection of algorithms that I could use for encryption of credit card details. Which is the best? It clearly needs to be secure for a relatively short string. EDIT: I'm in the UK, where I understand we're OK storing encrypted credit card de...
Is there a best .NET algorithm for credit card encryption?
CC BY-SA 2.5
0
2008-09-03T05:46:20.563
2012-07-26T18:37:06.520
2008-09-06T15:51:46.370
3,546
3,546
[ ".net", "security", "encryption", "cryptography" ]
41,221
2
null
41,220
0
null
3des is pretty good, store the salt along side, and keep a standard key somewhere not in the database or a config file. That way if you get pwned, they can't decrypt it.
null
CC BY-SA 2.5
null
2008-09-03T05:48:20.170
2008-09-03T05:48:20.170
null
null
1,220
null
41,205
2
null
41,155
4
null
The basic intrinsic types (e.g. `byte`, `int`, `string`, and arrays) will be serialized automatically by WCF. Custom classes, like your UploadedFile, won't be. So, a silly question (but I have to ask it...): is UploadedFile marked as a `[DataContract]`? If not, you'll need to make sure that it is, and that each of th...
null
CC BY-SA 2.5
null
2008-09-03T05:23:37.797
2008-09-03T05:23:37.797
null
null
3,546
null
41,226
2
null
41,179
0
null
For an example of javascript accessing a local file, you might try taking a look at the source of [TiddlyWiki](http://www.tiddlywiki.com/), specifically the saveFile, mozillaSaveFile, and ieSaveFile functions. Just click the download link, open the html file it sends you, and search for those functions. Of course, tid...
null
CC BY-SA 2.5
null
2008-09-03T05:54:06.740
2008-09-03T05:54:06.740
null
null
369
null
41,217
2
null
40,957
7
null
There are obviously a number of ways to approach this, so I am going to list a number of links that should provide a better foundation to build on. These are the links that I've referenced in the past when trying to get others on the bandwagon. - [Database Projects in Visual Studio .NET](https://web.archive.org/web/20...
null
CC BY-SA 4.0
null
2008-09-03T05:43:39.713
2018-10-21T07:30:59.117
2018-10-21T07:30:59.117
1,033,581
3,262
null
41,224
2
null
39,914
4
null
Based on the advice, moved the answer to the answers section: There are tools out there that give you a GUI for setting this easily, but you can also do it relatively easily by editing the registry. Under the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon Add the fol...
null
CC BY-SA 2.5
null
2008-09-03T05:52:56.273
2008-09-03T05:52:56.273
null
null
1,596
null
41,227
2
null
40,957
1
null
We use a combo of, taking backups from higher environments down. As well as using ApexSql to handle initial setup of schema. Recently been using Subsonic migrations, as a coded, source controlled, run through CI way to get change scripts in, there is also "tarantino" project developed by headspring out of texas. Most ...
null
CC BY-SA 2.5
null
2008-09-03T05:56:18.170
2008-09-03T05:56:18.170
null
null
1,220
null
41,231
2
null
40,028
0
null
Yes, you got my question right. Sorry that I was a little bit confused yesterday. Now I have corrected the code by following your suggestion and mixing two pieces of code in the question together: ``` Vector3f toScreenVector = new Vector3f(0, 0, 1); Transform3D t3d = new Transform3D(); canvas.getImagePlateToVworld(t3...
null
CC BY-SA 2.5
null
2008-09-03T06:07:08.893
2008-09-03T06:07:08.893
null
null
3,388
null
41,229
2
null
40,957
3
null
In addition to your database CREATE script, why don't you maintain a default data or sample data script as well? This is an approach that we've taken for incremental versions of an application we have been maintaining for more than 2 years now, and it works very well. Having a default data script also allows your QA ...
null
CC BY-SA 2.5
null
2008-09-03T06:02:35.813
2008-09-03T06:02:35.813
2017-05-23T12:33:27.093
-1
372
null
41,207
1
747,082
null
31
21,842
For debugging and testing I'm searching for a JavaScript shell with auto completion and if possible object introspection (like ipython). The online [JavaScript Shell](http://www.squarefree.com/shell/) is really nice, but I'm looking for something local, without the need for an browser. So far I have tested the standal...
JavaScript interactive shell with completion
CC BY-SA 2.5
0
2008-09-03T05:27:19.487
2015-01-03T15:29:57.630
2017-05-23T12:01:36.113
-1
720
[ "javascript" ]
41,222
2
null
40,913
4
null
The problem lies in this statement ``` event.result.DataTable.Row.length ``` `length` is not a property of `XMLList`, but a method: ``` event.result.DataTable.Row.length() ``` it's confusing, but that's the way it is. actually, the safest thing to do is to always use a `for each` loop when iterating over `XMLLi...
null
CC BY-SA 2.5
null
2008-09-03T05:48:34.180
2008-09-03T06:19:39.750
2008-09-03T06:19:39.750
1,109
1,109
null
41,235
2
null
41,198
27
null
Add `overflow:auto;` to `.product1`
null
CC BY-SA 3.0
null
2008-09-03T06:11:49.363
2011-09-05T06:05:19.023
2011-09-05T06:05:19.023
1,786
1,786
null
41,233
1
41,241
null
335
314,646
I'm attracted to the neatness that a single file database provides. What driver/connector library is out there to connect and use SQLite with Java. I've discovered a wrapper library, [http://www.ch-werner.de/javasqlite](http://www.ch-werner.de/javasqlite/), but are there other more prominent projects available?
Java and SQLite
CC BY-SA 2.5
0
2008-09-03T06:10:15.297
2016-07-27T06:23:19.653
2008-09-03T14:56:51.770
1,915
1,915
[ "java", "sqlite" ]
41,228
2
null
41,220
24
null
No offense, but the question is a little "misguided". There is no "silver bullet" solution. I would recommend to read up on cryptography in general and then do some threat modeling. Some questions (by no means a comprehensive list) you should ask yourself: - - - - : note that standard encryption algorithms from the ...
null
CC BY-SA 3.0
null
2008-09-03T06:02:00.323
2012-07-26T18:37:06.520
2012-07-26T18:37:06.520
110,871
1,265
null
41,239
1
null
null
0
2,850
I am pretty sure that the settings that I am using are correct, so all possible things can be wrong which I should check out so that I can make authentication with our Active Directory work.
I am having trouble getting phpBB to authenticate with our Active Directory
CC BY-SA 2.5
null
2008-09-03T06:16:34.517
2017-08-17T22:39:00.770
2009-03-10T03:00:26.650
5,640
380
[ "active-directory", "phpbb" ]
41,242
2
null
16,918
6
null
I've been told to look at [Programming in Haskell](https://rads.stackoverflow.com/amzn/click/com/0521692695), from Graham Hutton
null
CC BY-SA 2.5
null
2008-09-03T06:24:25.170
2008-09-03T06:24:25.170
null
null
4,177
null
41,243
2
null
41,185
2
null
I have had some pleasant experiences with rxvt (comes with cygwin, does not need an x server running). Putty is also often mentioned as a good alternative. You could also try to get xterm working :)
null
CC BY-SA 2.5
null
2008-09-03T06:25:47.863
2008-09-03T06:25:47.863
null
null
2,260
null
41,246
2
null
7,579
10
null
When doing a reorg of an index, if the index is spread across two or more physical files the data will only be defragged within the data file. Pages are not moved from one data file to another. When the index is in a single file the reorg and reindex will have the same end result. Some times the reorg will be faster...
null
CC BY-SA 2.5
null
2008-09-03T06:36:13.970
2008-09-03T06:36:13.970
null
null
4,197
null
41,234
1
41,250
null
0
428
Today I discovered that my fresh installation of HTTP Server is able to serve files from my `C:\uploads\` . I have two folders in `C:\uploads`: - - Both folders contain `testimage.jpg`. I found that Apache will serve the files from the templates folder if I request: [http://localhost/templates/testimage.jpg](htt...
Apache serving files that should not be served
CC BY-SA 3.0
null
2008-09-03T06:11:09.007
2015-05-08T17:19:48.623
2015-05-08T17:19:48.623
1,362,287
3,966
[ "apache", "webserver", "hosting", "web-hosting", "self-hosting" ]
41,232
2
null
41,198
3
null
Assuming @John Millikin is correct, the code ``` .product + * { clear: left; } ``` would suffice to do the same thing without forcing you to manually adjust the code after the div.
null
CC BY-SA 2.5
null
2008-09-03T06:09:43.177
2008-09-03T06:09:43.177
null
null
3,191
null
41,241
2
null
41,233
196
null
The [wiki](http://www.sqlite.org/cvstrac/wiki?p=SqliteWrappers) lists some more wrappers: - [http://tk-software.home.comcast.net/](http://tk-software.home.comcast.net/)- [http://www.ci.uchicago.edu/wiki/bin/view/VDS/VDSDevelopment/UsingSQLite](http://www.ci.uchicago.edu/wiki/bin/view/VDS/VDSDevelopment/UsingSQLite)- [...
null
CC BY-SA 3.0
null
2008-09-03T06:17:50.007
2015-06-19T17:54:11.790
2015-06-19T17:54:11.790
1,418,097
720
null
41,248
2
null
27,206
0
null
When using the partitioned tables you can more easily move data from partition to partition. You can also partition the indexes as well. You can also move data from one partition to another table as needed with a single ALTER TABLE command.
null
CC BY-SA 2.5
null
2008-09-03T06:39:07.600
2008-09-03T06:39:07.600
null
null
4,197
null
41,245
2
null
40,863
0
null
@David H Aust That's part of the reason for asking the question - with these newer tools like WPF that lend themselves to providing newer, more intricate, and at the same time simpler for the user, interfaces that we might need to adapt to new ways of doing things. And trying to find out who else is adapting/interest...
null
CC BY-SA 2.5
null
2008-09-03T06:32:26.477
2008-09-03T06:32:26.477
null
null
3,717
null
41,247
2
null
41,239
1
null
Try test if PHP can connect to active directory ``` <?php $ds = ldap_connect('host.ad.lan', 389); ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ds, LDAP_OPT_REFERRALS, 0); ldap_bind($ds, 'admin@ad.lan', 'xxx'); $sr = ldap_search($ds, 'CN=Cameron Zemek,OU=Users,OU=BRC,DC=ad,DC=lan', '(objectclass...
null
CC BY-SA 2.5
null
2008-09-03T06:38:00.020
2008-11-20T22:45:42.373
2008-11-20T22:45:42.373
486
486
null
41,255
2
null
29,694
1
null
I would recommend using the BIGINT data type as this goes up to 9,223,372,036,854,775,807. SQL Server does not support signed and unsigned values.
null
CC BY-SA 2.5
null
2008-09-03T06:49:20.977
2008-09-03T06:49:20.977
null
null
4,197
null
41,254
2
null
22,493
0
null
I would assume that this is because Vista runs most applications in isolation from either other. I would recommend that you either set the DMZ username and password to match the internal domain username and password, or use named pipes to connect.
null
CC BY-SA 2.5
null
2008-09-03T06:46:32.200
2008-09-03T06:46:32.200
null
null
4,197
null
41,257
2
null
41,179
2
null
Would Google Gears work here? Yes, users have to install something, but I think the experience is fairly frictionless. And once it's installed, no more worries.
null
CC BY-SA 2.5
null
2008-09-03T06:50:39.210
2008-09-03T06:50:39.210
null
null
1,886
null
41,259
2
null
41,207
2
null
Isn't [Rhino Shell](http://developer.mozilla.org/en/Rhino_Shell) what you are looking for?
null
CC BY-SA 2.5
null
2008-09-03T06:55:51.177
2008-09-03T06:55:51.177
null
null
1,184
null
41,250
2
null
41,234
1
null
Did you look through your httpd.conf file to see what rules are in place for what is being served? Alternatively, are there .htaccess files that may be changing what is being served? You might have templates exposed in one or the other, but not sites... that's the first thing that comes to mind. I would suggest goin...
null
CC BY-SA 2.5
null
2008-09-03T06:42:02.723
2008-09-03T06:42:02.723
null
null
122
null
41,256
1
41,267
null
4
687
I assumed there were only bug fixes/(no new types) in .NET 2.0 SP1 until I came across [few](http://davesbox.com/archive/2008/08/25/new-for-visual-studio-2008-sp1-and-fxcop-1-36-multi-targeting-rule.aspx) posts which were mentioning [DateTimeOffset](http://msdn.microsoft.com/en-us/library/system.datetimeoffset.aspx) st...
New Added Types in .NET Framework 2.0 Service Pack 1
CC BY-SA 3.0
0
2008-09-03T06:49:23.440
2013-08-28T08:09:53.060
2013-08-28T08:09:53.060
3,359
3,359
[ ".net", ".net-2.0" ]
41,244
1
233,505
null
739
317,802
I found an example in the [VS2008 Examples](http://msdn2.microsoft.com/en-us/bb330936.aspx) for Dynamic LINQ that allows you to use a SQL-like string (e.g. `OrderBy("Name, Age DESC"))` for ordering. Unfortunately, the method included only works on `IQueryable<T>`. Is there any way to get this functionality on `IEnumera...
Dynamic LINQ OrderBy on IEnumerable<T> / IQueryable<T>
CC BY-SA 4.0
0
2008-09-03T06:30:31.927
2023-01-25T04:51:22.130
2021-10-15T14:45:08.447
2,333,870
1,786
[ "c#", "linq", "ienumerable", "iqueryable", "linq-to-objects" ]
41,237
2
null
41,220
5
null
As per [PCI DSS](http://en.wikipedia.org/wiki/PCI_DSS) compliance rules, any industry leading encryption standard is enough. So a 3DES with a 256 bit key is good enough (although other standards can be used). Check this out [http://pcianswers.com/2006/08/09/methods-of-encrypting-data/](http://pcianswers.com/2006/08/09/...
null
CC BY-SA 2.5
null
2008-09-03T06:13:37.723
2008-09-03T06:13:37.723
null
null
380
null
41,261
2
null
40,962
0
null
Perhaps consider having the parent subscribe to an event on the child, and the child can fire that event whenever it wants to close the parent. The parent can then handle it's own closing (along with the child's).
null
CC BY-SA 2.5
null
2008-09-03T06:59:49.593
2008-09-03T06:59:49.593
null
null
4,365
null
41,266
2
null
30,529
1
null
I think I know why Borland choose not to use type safe enums in the TLB editor. Enums in COM can be different values while Delphi only since Delphi 6 (I think) can do that. ``` type TSomeEnum = (Enum1 = 1, Enum2 = 6, Enum3 = 80); // Only since Delphi 6 ```
null
CC BY-SA 2.5
null
2008-09-03T07:11:41.500
2008-09-03T07:11:41.500
null
null
1,242
null
41,274
2
null
40,962
0
null
You are clearly noo using the correct way to open and close forms. If you use any form of MVC or MVP this problem would not arise. So use a form of MVP or MVC to solve this problem.
null
CC BY-SA 2.5
null
2008-09-03T07:20:36.453
2008-09-03T07:20:36.453
null
null
2,936
null
41,273
1
81,440
null
9
3,142
We're replicating a database between London and Hong Kong using SQL Server 2005 Merge replication. The replication is set to synchronise every one minute and it works just fine. There is however the option to set the synchronisation to be "Continuous". Is there any real difference between replication every one minute a...
SQL Server Merge Replication Schedule
CC BY-SA 2.5
0
2008-09-03T07:19:29.513
2008-10-08T22:24:19.953
2008-10-08T22:24:19.953
15,401
1,008
[ "sql-server", "merge", "replication" ]
41,267
2
null
41,256
6
null
Here's what you're looking for: ![alt text](https://i.stack.imgur.com/abAMI.gif) Full Article: [http://www.hanselman.com/blog/CatchingRedBitsDifferencesInNET20AndNET20SP1.aspx](http://www.hanselman.com/blog/CatchingRedBitsDifferencesInNET20AndNET20SP1.aspx) This may also be helpful: ![alt text](https://i.stack.imgu...
null
CC BY-SA 3.0
null
2008-09-03T07:13:18.313
2012-04-02T08:31:59.807
2012-04-02T08:31:59.807
1,219,121
4,365
null
41,264
2
null
17,845
10
null
There are plenny scalabity reports and benchmarks on the web about various triple-stores. Here is a fine [scalability report](http://simile.mit.edu/reports/stores/). W3C itself maintain a wiki with lots of information about [Large Triplestores](http://esw.w3.org/topic/LargeTripleStores) and [Benchmarks](http://esw.w...
null
CC BY-SA 2.5
null
2008-09-03T07:08:51.223
2008-09-03T07:08:51.223
null
null
4,213
null
41,186
2
null
41,169
3
null
It's your lucky day - no need for an add-on! ## How to configure Firefox for automatic NTLM authentication 1. In Firefox, type about:config into the address bar and hit enter. You should see a huge list of configuration properties. 2. Find the setting named network.negotiate-auth.delegation-uris (the easiest way ...
null
CC BY-SA 2.5
null
2008-09-03T04:43:55.050
2008-09-03T04:43:55.050
null
null
811
null
41,271
2
null
40,863
0
null
Microsoft is building a DataGrid for WPF. A CTP can be found [here](http://www.codeplex.com/wpf/Release/ProjectReleases.aspx?ReleaseId=14963).
null
CC BY-SA 2.5
null
2008-09-03T07:16:43.220
2008-09-03T07:16:43.220
null
null
1,242
null
41,262
2
null
41,244
49
null
I guess it would work to use reflection to get whatever property you want to sort on: ``` IEnumerable<T> myEnumerables var query=from enumerable in myenumerables where some criteria orderby GetPropertyValue(enumerable,"SomeProperty") select enumerable private static object GetPropertyVal...
null
CC BY-SA 2.5
null
2008-09-03T07:00:05.270
2008-10-28T07:21:49.230
2008-10-28T07:21:49.230
4,116
4,116
null
41,277
2
null
41,010
1
null
I did a quick google search and found the following: [http://devcha.blogspot.com/2007/12/smarty-as-template-engine-in-code.html](http://devcha.blogspot.com/2007/12/smarty-as-template-engine-in-code.html) [http://codeigniter.com/forums/viewthread/67127/](http://codeigniter.com/forums/viewthread/67127/) If the designer ...
null
CC BY-SA 2.5
null
2008-09-03T07:25:32.683
2008-09-03T07:25:32.683
null
null
353,971
null
41,287
2
null
41,045
2
null
Just to add one thing to all [1800 INFORMATION](https://stackoverflow.com/questions/41045/can-i-have-polymorphic-containers-with-value-semantics-in-c#41059) already said. You might want to take a look at ["More Effective C++"](https://rads.stackoverflow.com/amzn/click/com/020163371X) by Scott Mayers "Item 3: Never tr...
null
CC BY-SA 2.5
null
2008-09-03T07:36:41.860
2008-09-03T07:36:41.860
2017-05-23T12:00:10.877
-1
1,007
null
41,291
2
null
41,256
0
null
DateTimeOffset was added to 2.0 SP1 - I'm not aware of any other new types. Given the coincidental timing, it's perhaps worth reminding people that 2.0 SP1 shipped with 3.5 RTM (i.e November 2007) and 2.0 SP2 shipped with 3.5 SP1.
null
CC BY-SA 2.5
null
2008-09-03T07:44:51.433
2008-09-03T07:44:51.433
null
null
987
null
41,285
2
null
38,784
14
null
[DPack](https://marketplace.visualstudio.com/items?itemName=SergeyM.DPack-16348) can give you numbered bookmarks in VisualStudio.
null
CC BY-SA 4.0
null
2008-09-03T07:32:16.783
2020-03-31T11:47:47.920
2020-03-31T11:47:47.920
56,658
1,242
null
41,283
2
null
41,279
2
null
Not sure how to do it on a file type level, but you can do it on a folder level: Source: [http://lists.apple.com/archives/spotlight-dev/2008/Jul/msg00007.html](http://lists.apple.com/archives/spotlight-dev/2008/Jul/msg00007.html) If you absolutely can't rename the folder because other software depends on it another...
null
CC BY-SA 2.5
null
2008-09-03T07:31:04.043
2008-09-03T07:31:04.043
null
null
4,365
null
41,272
2
null
41,218
2
null
There doesn't seem to be an easier way, [unless you're willing to buy MAMP Pro](http://www.rocketwerx.com/blog/8-apple/34-getting-ssl-to-work-with-mamp-pro). As far as I know, the only way to use SSL with MAMP is to [configure mod_ssl for Apache](http://www.macosxhints.com/article.php?story=20041129143420344). mod_ssl...
null
CC BY-SA 2.5
null
2008-09-03T07:17:06.197
2008-09-03T07:17:06.197
null
null
2,783
null
41,275
2
null
41,204
2
null
There is a [wikipedia article](http://en.wikipedia.org/wiki/Tree_traversal) on tree traversal which shows different alternatives to the recursive solution you are using. It may be tricky to use them in your specific case, but it should be possible. However, my question to you is, is there a specific reason you want t...
null
CC BY-SA 2.5
null
2008-09-03T07:24:35.383
2008-09-03T16:42:36.523
2008-09-03T16:42:36.523
122
122
null
41,290
1
41,559
null
6
5,268
I have a file which is an XML representation of some data that is taken from a Web service and cached locally within a Web Application. The idea being is that this data is static, but just change. So I have set it up to cache to a file, and stuck a monitor against it to check if it has been deleted. Once deleted, the...
File Access Strategy in a Multi-Threaded Environment (Web App)
CC BY-SA 2.5
0
2008-09-03T07:44:40.763
2015-09-21T17:36:58.957
2008-09-09T22:13:40.793
-1
832
[ "asp.net", "multithreading", "web-applications", "caching", "file-io" ]
41,303
2
null
40,863
0
null
@Lars Truijens - Thanks, but I think for 99% of cases that's a horrible idea, and sure, there are uses - but I've found that with WPF there's typically a much better way to do it. Plus you can use textboxes, and use an Enter as Tab override to move through them easily and swiftly.
null
CC BY-SA 2.5
null
2008-09-03T08:05:33.100
2008-09-03T08:05:33.100
null
null
3,717
null
41,295
2
null
41,279
2
null
Here's how it work. : this is not a very good solution as a system update overwrite changes you will perform. Get a list of all importers Figure out which importer handles your type of file (example for the Audio importer): Alter the importer's plist to delete the type you want to ignore. Reimport the import...
null
CC BY-SA 2.5
null
2008-09-03T07:48:43.517
2008-09-03T07:48:43.517
null
null
2,811
null
41,300
1
41,370
null
96
64,638
How do you run Emacs in Windows? What is the best flavor of Emacs to use in Windows, and where can I download it? And where is the .emacs file located?
Emacs in Windows
CC BY-SA 2.5
0
2008-09-03T08:04:11.700
2019-05-10T18:43:57.473
2011-02-14T05:48:06.913
270,425
473
[ "windows", "emacs" ]
41,279
1
41,342
null
6
4,207
I've got bunches of auxiliary files that are generated by code and LaTeX documents that I dearly wish be suggested by SpotLight as potential search candidates. I'm not looking for `example.log`, I'm looking for `example.tex`! So can Spotlight be configured to ignore, say, all `.log` files? (I know, I know; I should ...
Can Mac OS X's Spotlight be configured to ignore certain file types?
CC BY-SA 2.5
0
2008-09-03T07:27:16.843
2012-09-30T07:51:05.953
2017-05-23T12:08:35.993
-1
4,161
[ "macos", "spotlight" ]
41,301
2
null
41,155
1
null
It sounds like you're using an incorrect address: > To access the Service I enter [http://localhost/project/myService.svc/FileUpload](http://localhost/project/myService.svc/FileUpload) Assuming you mean this is the address you give your client code then I suspect it should actually be: ``` http://localhost/project/m...
null
CC BY-SA 2.5
null
2008-09-03T08:04:37.520
2008-09-03T08:19:47.637
2008-09-03T08:19:47.637
2,562
2,562
null
41,286
2
null
41,159
0
null
Sort, then do something akin to a merge-sort. Basically you would do this: 1. Retrieve the first item from each list 2. Compare the items, if equal, output 3. If any of the items are before the others, sort-wise, retrieve a new item from the corresponding list to replace it, otherwise, retrieve new items to replace ...
null
CC BY-SA 2.5
null
2008-09-03T07:32:36.083
2008-09-03T07:34:51.333
2008-09-03T07:34:51.333
615
267
null
41,296
2
null
41,256
1
null
There were new interfaces added, like INotifyPropertyChanging, so there were new types added. The question is valid.
null
CC BY-SA 2.5
null
2008-09-03T07:50:18.503
2008-09-03T07:50:18.503
null
null
267
null
41,307
2
null
41,300
6
null
Well, I personally really like what I have been using since I started with Emacs, which is GNU Emacs. It looks like it is built for [windows too](http://www.gnu.org/software/emacs/windows/ntemacs.html). That link also answers your [.emacs file question](http://www.gnu.org/software/emacs/windows/Installing-Emacs.html#...
null
CC BY-SA 2.5
null
2008-09-03T08:12:20.260
2008-09-03T08:12:20.260
null
null
122
null
41,311
2
null
41,185
3
null
Are you resizing the console window? I've found that the ruby scripts (irb, etc) that use the readline library don't work correctly with resized console windows (in XP or Vista). Effectively I believe that the readline library expects the console window to be 80 characters wide, anything else and it goes bezerk. So fa...
null
CC BY-SA 2.5
null
2008-09-03T08:15:11.923
2008-09-03T08:15:11.923
null
null
3,719
null
41,316
2
null
40,269
1
null
On Windows CE 5 (which is the base for Windows Mobile 6) the storage cards get mounted at the root file system as "Storage Card\", "Storage Card2\", etc. To find out if it's mounted call GetFileAttributes (or the remote version CeGetFileAttributes I believe) passing in the full path ("\Storage Card\"). If it returns I...
null
CC BY-SA 2.5
null
2008-09-03T08:28:40.487
2008-09-03T08:28:40.487
null
null
3,719
null
41,310
2
null
41,300
2
null
See [http://www.gnu.org/software/emacs/windows/ntemacs.html](http://www.gnu.org/software/emacs/windows/ntemacs.html). Section 2.1 describes where to get it, and section 3.5 describes where the .emacs file goes (by default, in your home directory, as specified by the HOME environment variable).
null
CC BY-SA 2.5
null
2008-09-03T08:14:24.763
2008-09-03T08:14:24.763
null
null
3,598
null
41,304
1
662,946
null
6
32,703
I know in ASP.NET I can get an item from a DropDownList by using ``` DropDownList1.Items.FindByText ``` Is there a similar method I can use in WPF for a ComboBox? Here's the scenario. I have a table called RestrictionFormat that contains a column called RestrictionType, the type is a foreign key to a table that st...
Find item in WPF ComboBox
CC BY-SA 3.0
0
2008-09-03T08:06:08.497
2012-08-15T12:10:30.207
2012-08-15T12:10:30.207
50,776
71
[ ".net", "wpf", "search", "user-controls" ]
41,317
2
null
41,300
40
null
Note that GNU Emacs for Windows comes with two executables to start Emacs: "emacs.exe" and "runemacs.exe". The former keeps a DOS-Prompt window in the background, while the latter does not, so when if you choose that distribution and want to create a shortcut, be sure to launch "runemacs.exe". Carl
null
CC BY-SA 2.5
null
2008-09-03T08:30:49.593
2008-09-03T08:30:49.593
null
null
2,095
null
41,305
2
null
41,304
3
null
In WPF you can use FindName method. XAML: ``` <ComboBox Name="combo"> <ComboBoxItem Name="item1" >1</ComboBoxItem> <ComboBoxItem Name="item2">2</ComboBoxItem> <ComboBoxItem Name="item3">3</ComboBoxItem> </ComboBox> ``` Code-behind file ``` item1.Content = "New content"; // Reference com...
null
CC BY-SA 2.5
null
2008-09-03T08:11:31.870
2008-09-03T09:06:22.283
2008-09-03T09:06:22.283
1,196
1,196
null
41,312
2
null
41,290
1
null
If you're locking on a object stored as a then the lock should work for all threads in the same Application Domain, but perhaps you need to upload a code sample so we can have a look at the offending lines. That said, one thought would be to check if IIS is configured to run in [Web Garden](http://www.microsoft.com/t...
null
CC BY-SA 2.5
null
2008-09-03T08:15:13.267
2008-09-03T08:15:13.267
null
null
2,562
null
41,318
2
null
41,159
1
null
what about using a [hashSet](http://msdn.microsoft.com/en-us/library/bb359438.aspx)? that way you can do what you want in O(n) where n is the number of items in all the lists combined, and I think that's the fastest way to do it. you just have to iterate over every list and insert the values you find into the hashset ...
null
CC BY-SA 2.5
null
2008-09-03T08:34:44.670
2008-09-03T08:34:44.670
null
null
46
null
41,314
2
null
39,112
32
null
For completeness a full example would look something like this. ``` private static object ThisLock = new object(); ... object dataObject = Cache["globalData"]; if( dataObject == null ) { lock( ThisLock ) { dataObject = Cache["globalData"]; if( dataObject == null ) { //Get D...
null
CC BY-SA 3.0
null
2008-09-03T08:17:22.900
2012-01-31T21:05:45.327
2012-01-31T21:05:45.327
66,849
2,471
null
41,322
2
null
39,772
1
null
> Auron asked: How do you generate a key for the client to encrypt/decrypt the data? Where do you store this key? Well, the key is usually derived from some password the user has chosen. You don't store it, you trust the user to remember it. What you can store is maybe some salt value associated to that user, to incre...
null
CC BY-SA 2.5
null
2008-09-03T08:37:26.037
2008-09-03T08:37:26.037
null
null
2,095
null
41,324
2
null
41,319
110
null
You could do this: ``` public static Boolean IsEmpty<T>(this IEnumerable<T> source) { if (source == null) return true; // or throw an exception return !source.Any(); } ``` : Note that simply using the .Count method will be fast if the underlying source actually has a fast Count property. A valid opti...
null
CC BY-SA 2.5
null
2008-09-03T08:38:51.650
2008-09-03T09:35:10.437
2008-09-03T09:35:10.437
267
267
null
41,326
2
null
41,320
6
null
Use source control to keep a central repository of all your code. Then each user checks out their own copy of the source code and works locally. Then submits only the code that changed. [https://en.wikipedia.org/wiki/Version_control](https://en.wikipedia.org/wiki/Version_control)
null
CC BY-SA 3.0
null
2008-09-03T08:39:31.990
2017-09-13T10:35:23.020
2017-09-13T10:35:23.020
986
986
null
41,321
2
null
40,112
2
null
I found that this article by Microsoft with full VBA worked very well for me. [How to display images from a folder in a form, a report, or a data access page](http://support.microsoft.com/kb/285820/)
null
CC BY-SA 2.5
null
2008-09-03T08:37:19.610
2008-09-03T08:37:19.610
null
null
2,548
null
41,320
1
41,326
null
4
13,482
I just wonder what the best approach is to have multiple users work on a Project in Visual Studio 2005 Professional. We got a Solution with multiple Class Libraries, but when everyone opens the solution, we keep getting the "X was modified, Reload/Discard?" prompt all the time. Just opening one project is an obvious a...
Working on a Visual Studio Project with multiple users?
CC BY-SA 2.5
0
2008-09-03T08:35:49.877
2017-09-13T10:35:23.020
2008-09-03T08:59:16.263
91
91
[ "visual-studio" ]
41,328
2
null
41,320
8
null
What you need is source control. You should definitely not open the same files over the network on multiple machines. For one thing, Visual Studio has safeguards in place to prevent you from modifying certain files during a build, but it has none of that that will prevent others from modifying the same files over the ...
null
CC BY-SA 2.5
null
2008-09-03T08:41:05.340
2008-09-03T08:41:05.340
null
null
267
null
41,329
2
null
41,320
1
null
This might sound snide, but if you're opening up the solution from a shared location then you're doing something wrong. If that's the case then you should start using source control (something like Subversion) and have everyone check out a copy of the project to work on. However if you're already using source control...
null
CC BY-SA 2.5
null
2008-09-03T08:45:28.030
2008-09-03T08:45:28.030
null
null
3,719
null
41,332
2
null
41,320
1
null
You should definitely, be working with source control! This will help stop the collisions that are occurring. Also, if you are making changes to the shared projects this often that it a problem, then also ensure that all code is (otherwise they may bust someone else's build), but make sure they (or time gained fro...
null
CC BY-SA 2.5
null
2008-09-03T08:51:55.377
2008-09-03T08:51:55.377
null
null
832
null
41,335
2
null
41,300
1
null
I've run both GNU emacs and Xemacs on windows. I used to use it as my primary editor, email client etc, but not it's "just" an editor. When I recently reinstalled to Vista I installed the latest GNU version. It works fine. So does Xemacs, but it does look like GNU have got their sh*t together so Xemacs isn't as compe...
null
CC BY-SA 2.5
null
2008-09-03T08:56:03.637
2008-09-03T08:56:03.637
null
null
3,988
null
41,336
2
null
38,784
1
null
Just to amplify Lars Truijens answer. [DPack](http://www.usysware.com/dpack/) is a [GExperts](http://www.gexperts.org/) like plugin for visual studio. I found it great help when moving from the Delphi IDE to Visual Studio.
null
CC BY-SA 2.5
null
2008-09-03T08:56:18.440
2008-09-03T08:56:18.440
null
null
1,116
null
41,330
1
41,385
null
2
967
How do I detect if the system has a default recording device installed? I bet this can be done through some calls to the Win32 API, anyone has any experience with this? I'm talking about doing this through code, not by opening the control panel and taking a look under sound options.
How to detect the presence of a default recording device in the system?
CC BY-SA 2.5
null
2008-09-03T08:46:48.323
2017-09-13T07:35:21.530
2008-09-10T01:13:41.063
-1
1,509,946
[ "winapi", "audio", "device" ]
41,333
2
null
41,300
0
null
To access the .emacs file for your profile the easiest way is to open up emacs. Then do C-x C-, type in ~USERNAME/.emacs (or you can use init.el or one of the other flavours). Type your stuff into the file and C-x C-s (I think) to save it. The actual file is located (in Windows XP) in c:\Documents and Settings\USERNAM...
null
CC BY-SA 2.5
null
2008-09-03T08:52:36.060
2008-09-03T08:52:36.060
null
null
3,719
null
41,346
2
null
41,330
0
null
There is an Open Source Audio API called [PortAudio](http://www.portaudio.com/) that has a method you could use. I think the method is called Pa_GetDeviceInfo() or something.
null
CC BY-SA 2.5
null
2008-09-03T09:11:55.483
2008-09-03T09:11:55.483
null
null
2,257
null
41,337
1
null
null
3
2,583
I read the question on 'The best way to unit test Objective-C and followed the instructions, but no matter what I do, the Unit tests do not run. Actually the entire program does not run, I get the following message. dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTestingKit Referenced from /Use...
Unit testing in Xcode 3.1
CC BY-SA 3.0
0
2008-09-03T08:59:00.460
2014-06-04T10:28:16.663
2014-06-04T10:28:16.663
691,409
null
[ "xcode", "unit-testing", "xcode3.1" ]
41,351
2
null
41,290
1
null
You could maybe create the file with a temporary name ("data.xml_TMP"), and when it's ready change the name to what it is supposed to be. That way, no other process will be accessing it before it is ready.
null
CC BY-SA 2.5
null
2008-09-03T09:17:52.583
2008-09-03T09:17:52.583
null
null
null
null
41,325
2
null
41,319
6
null
I just wrote up a quick test, try this: ``` IEnumerable<Object> myList = new List<Object>(); Stopwatch watch = new Stopwatch(); int x; watch.Start(); for (var i = 0; i <= 1000000; i++) { if (myList.Count() == 0) x = i; } watch.Stop(); Stopwatch watch2 = new Stopwatch(); watch2.Start(); for (var i =...
null
CC BY-SA 2.5
null
2008-09-03T08:39:30.400
2008-09-03T09:16:31.683
2008-09-03T09:16:31.683
3,717
3,717
null
41,355
1
169,485
null
4
1,158
Has anybody got any kind of experience with dynamic programming using WCF. By dynamic programming I mean runtime consumption of WSDL's. I have found one blog entry/tool: [http://blogs.msdn.com/vipulmodi/archive/2006/11/16/dynamic-programming-with-wcf.aspx](http://blogs.msdn.com/vipulmodi/archive/2006/11/16/dynamic-prog...
Dynamic programming with WCF
CC BY-SA 2.5
0
2008-09-03T09:24:35.500
2008-10-04T01:13:49.130
null
null
4,189
[ ".net", "wcf" ]
41,342
2
null
41,279
3
null
@Will - these things that define types are called [uniform type identifiers](http://developer.apple.com/macosx/uniformtypeidentifiers.html). The problem is they are a combination of extensions (like .txt) and generic types (i.e. public.plain-text matches a txt file without the txt extension based purely on content) so...
null
CC BY-SA 2.5
null
2008-09-03T09:06:45.310
2008-09-03T11:09:34.297
2008-09-03T11:09:34.297
2,811
2,811
null
41,319
1
41,324
null
129
157,890
What's the "best" (taking both speed and readability into account) way to determine if a list is empty? Even if the list is of type `IEnumerable<T>` and doesn't have a Count property. Right now I'm tossing up between this: ``` if (myList.Count() == 0) { ... } ``` and this: ``` if (!myList.Any()) { ... } ``` My g...
Checking if a list is empty with LINQ
CC BY-SA 2.5
0
2008-09-03T08:35:24.980
2015-05-11T15:10:42.530
2012-10-31T15:02:17.293
1,707,081
615
[ "c#", ".net", "linq", "list" ]
41,350
2
null
41,320
3
null
A number of people have recommended using source control and I totally agree. However you also need do the following. - - There are probably some other files worth excluding (obj directories and so forth) but thats all I can think of right now. Peter
null
CC BY-SA 2.5
null
2008-09-03T09:15:34.663
2008-09-03T09:24:17.810
2008-09-03T09:24:17.810
3,720
3,720
null
41,327
2
null
41,159
3
null
Here's a much more efficent implementation: ``` static SortedDictionary<T,bool>.KeyCollection FindCommon<T> (List<List<T>> items) { SortedDictionary<T, bool> current_common = new SortedDictionary<T, bool> (), common = new SortedDictionary<T, bool> (); foreach (List<T> list in items) { if (current_co...
null
CC BY-SA 3.0
null
2008-09-03T08:39:46.000
2016-02-02T20:36:52.500
2016-02-02T20:36:52.500
414,521
1,898
null
41,357
2
null
41,319
8
null
> LINQ itself must be doing some serious optimization around the Count() method somehow. Does this surprise you? I imagine that for `IList` implementations, `Count` simply reads the number of elements directly while `Any` has to query the `IEnumerable.GetEnumerator` method, create an instance and call `MoveNext` at le...
null
CC BY-SA 2.5
null
2008-09-03T09:25:50.910
2008-09-03T09:33:27.447
2008-09-03T09:33:27.447
1,968
1,968
null
41,339
2
null
41,319
3
null
The second option is much quicker if you have multiple items. - `Any()`- `Count()` For instance suppose the enumeration had 1000 items. - `Any()`- `Count()` This is potentially worse if you use one of the predicate overrides - Count() still has to check every single item, even it there is only one match. You get u...
null
CC BY-SA 2.5
null
2008-09-03T09:05:49.167
2008-09-03T09:16:06.550
2008-09-03T09:16:06.550
905
905
null
41,362
2
null
41,300
0
null
You can download GNU Emacs NT from [here](http://ftp.gnu.org/gnu/emacs/windows/emacs-22.2-bin-i386.zip) direct. It works fine in windows, make sure you create a shortcut to the runemacs.exe file rather than the emacs.exe file so it doesn't show a command prompt before opening! XEmacs is less stable than GNU Emacs, and...
null
CC BY-SA 2.5
null
2008-09-03T09:28:58.050
2008-09-03T09:28:58.050
null
null
3,394
null
41,369
2
null
41,367
2
null
Jeff and Joel discuss scaling in the [Stack Overflow Podcast #19](https://blog.stackoverflow.com/2008/08/podcast-19/).
null
CC BY-SA 4.0
null
2008-09-03T09:33:13.360
2008-09-03T09:33:13.360
2021-01-18T12:38:11.483
-1
383
null
41,371
2
null
41,367
4
null
Well there's this blog called [High Scalibility](http://highscalability.com/welcome-high-scalability) that contains a lot of information on this topic. Some useful stuff.
null
CC BY-SA 2.5
null
2008-09-03T09:38:25.717
2008-09-03T09:38:25.717
null
null
1,688,440
null
41,372
2
null
41,367
3
null
Often the most effective way to do this is by a well thought through design where scaling is a part of it. Decide what scaling actually means for your project. Is infinite amount of users, is it being able to handle a slashdotting on a website is it development-cycles? Use this to focus your development efforts
null
CC BY-SA 2.5
null
2008-09-03T09:38:39.757
2008-09-03T09:38:39.757
null
null
86
null
41,358
2
null
40,863
3
null
The whole concept of re-thinking a UI of an existing application is dependent on the target audience. For a boring business application, like accounting or budgeting, it may even be counter-productive. For one, users of those kinds of apps may have used a similar looking and feeling UI for years and years, and second, ...
null
CC BY-SA 2.5
null
2008-09-03T09:25:52.207
2008-09-03T09:25:52.207
null
null
null
null
41,377
2
null
41,279
1
null
The only option probably is to have them not indexed by spotlight as from some reason you cannot do negative searches. You can search for files with specifix file extension, but you cannot not search for ones that don't match. You could try making those files invisible for Finder, Spotlight won't index invisible files...
null
CC BY-SA 2.5
null
2008-09-03T09:45:21.207
2008-09-03T09:45:21.207
null
null
4,294
null
41,365
2
null
41,319
3
null
@Konrad what surprises me is that in my tests, I'm passing the list into a method that accepts `IEnumerable<T>`, so the runtime can't optimize it by calling the Count() extension method for `IList<T>`. I can only assume that the Count() extension method for IEnumerable is doing something like this: ``` public static ...
null
CC BY-SA 2.5
null
2008-09-03T09:29:45.660
2008-09-03T09:37:51.523
2008-09-03T09:37:51.523
615
615
null
41,373
2
null
41,367
11
null
The only thing I would say is write your application so that it can be deployed on a cluster from the very start. Anything above that is a premature optimisation. Your first job should be getting enough users to have a scaling problem. Build the code as simple as you can first, then profile the system second and opti...
null
CC BY-SA 2.5
null
2008-09-03T09:41:49.140
2008-09-03T09:48:20.217
2008-09-03T09:48:20.217
854
854
null
41,367
1
41,373
null
8
1,132
In general, what kinds of design decisions help an application scale well? (Note: Having just learned about [Big O Notation](http://en.wikipedia.org/wiki/Big_O_notation), I'm looking to gather more principles of programming here. I've attempted to explain Big O Notation by answering my own question below, but I want t...
How can I make my applications scale well?
CC BY-SA 2.5
0
2008-09-03T09:30:40.243
2011-08-03T13:05:56.980
2008-11-04T19:11:47.497
4,376
4,376
[ "algorithm", "language-agnostic", "scalability" ]
41,390
2
null
41,367
1
null
FWIW, most systems will scale most effectively by ignoring this until it's a problem- Moore's law is still holding, and unless your traffic is growing faster than Moore's law does, it's usually cheaper to just buy a bigger box (at $2 or $3K a pop) than to pay developers. That said, the most important place to focus is...
null
CC BY-SA 2.5
null
2008-09-03T09:57:30.320
2008-09-03T09:57:30.320
null
null
4,276
null
41,395
2
null
39,855
0
null
As a side note: If your intranet users also have access to the Internet, you can use the [SlideShare](http://en.wikipedia.org/wiki/SlideShare) widget to embed your PowerPoint presentations in your website. (Remember to mark your presentation as private!)
null
CC BY-SA 3.0
null
2008-09-03T10:07:15.307
2011-10-19T09:14:36.880
2011-10-19T09:14:36.880
63,550
1,011
null