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
30,815
2
null
25,238
15
null
kleolb02's answer looks pretty good. another way would be a combination of the [sticky footer](http://ryanfait.com/sticky-footer/) and the [min-height hack](http://www.dustindiaz.com/min-height-fast-hack/)
null
CC BY-SA 2.5
null
2008-08-27T18:29:38.413
2008-08-27T18:29:38.413
null
null
1,442
null
30,800
1
36,384
null
1
18,490
What is the best approach to make sure you only need to authenticate once when using an API built on WCF? My current bindings and behaviors are listed below ``` <bindings> <wsHttpBinding> <binding name="wsHttp"> <security mode="TransportWithMessageCredential"> <...
How can I authenticate using client credentials in WCF just once?
CC BY-SA 3.0
0
2008-08-27T18:23:20.770
2017-06-09T10:24:05.907
2017-06-09T10:24:05.907
1,055,241
2,701
[ "wcf", "security", "authentication", "ws-security" ]
30,819
2
null
30,763
1
null
Is there any reason the collection needs to be ordered? Why not simply return an `IEnumerable<Employee>`? This gives the bare minimum that is required - if you later wanted some other form of storage, like a Bag or Set or Tree or whatnot, your contract would remain intact.
null
CC BY-SA 2.5
null
2008-08-27T18:31:21.437
2008-08-27T18:31:21.437
null
null
96
null
30,797
2
null
7,074
459
null
- you can't use `String` without `using System;` beforehand.
null
CC BY-SA 3.0
null
2008-08-27T18:21:37.670
2016-10-03T18:32:52.397
2016-10-03T18:32:52.397
6,290,553
3,296
null
30,805
2
null
21,274
1
null
i started out using [free text box](http://freetextbox.com/default.aspx) when i was doing a lot of asp.net programming, but now that most of what i do is php i've moved to the [FCK editor](http://www.fckeditor.net/). while the change wasn't necessarily prompted by the language, i feel that the fck editor is a better c...
null
CC BY-SA 2.5
null
2008-08-27T18:25:03.387
2008-08-27T18:25:03.387
null
null
1,442
null
30,816
2
null
29,838
11
null
There are a few different ways you can migrate. The tool will pull your history, etc. over, but the more pragmatic and simple way is to lock VSS as a history archive and start fresh: 1. Have everyone check in all changes into VSS, make sure everything builds, etc. 2. Set all VSS databases to "locked" (read-only righ...
null
CC BY-SA 2.5
null
2008-08-27T18:29:53.250
2008-08-27T18:29:53.250
null
null
2,194
null
30,820
2
null
30,790
4
null
One thing you might look into is that there is now LINQ to Entities, which leverages the MS Entity Framework, which I believe is DB agnostic. I'm still looking into how it works myself, but if you could create an ADO.NET Data Entity that interfaces with Oracle, you could then use LINQ against that Entity.
null
CC BY-SA 2.5
null
2008-08-27T18:31:29.937
2008-08-27T18:31:29.937
null
null
71
null
30,817
2
null
30,811
1
null
You can code everything in Java using GWT, and you can integrate existing 3rd party javascript libraries with it. It's very good. I've never used RoR much though, so can't say anything about that.
null
CC BY-SA 2.5
null
2008-08-27T18:30:33.200
2008-08-27T18:30:33.200
null
null
3,181
null
30,825
2
null
30,763
1
null
I disagree with the premise that it's better to return an interface. My reason is that you want to maximize the usefulness a given block of code exposes. With that in mind, an interface works for accepting an item as an argument. If a function parameter calls for an array or an ArrayList, that's the only thing you...
null
CC BY-SA 2.5
null
2008-08-27T18:35:15.110
2008-08-27T18:42:04.763
2008-08-27T18:42:04.763
3,043
3,043
null
30,828
2
null
29,030
2
null
I would be surprised if you could do something in a _Layouts file that you can't do in a forms template. You have pretty much the same technologies at your disposal. Looking at the way SharePoint works with ListItems and Layouts pages (for example "Manage Permissions" on a list item), I can see that they pass some va...
null
CC BY-SA 2.5
null
2008-08-27T18:36:09.427
2008-08-27T18:36:09.427
null
null
897
null
30,822
2
null
30,763
0
null
Actually you shouldn't return a List if thats a framework, at least not without thinking it, the recommended class to use is a Collection. The List class has some performance improvements at the cost of server extendability issues. It's in fact an FXCop rule. You have the reasoning for that in [this article](http://bl...
null
CC BY-SA 2.5
null
2008-08-27T18:31:59.407
2008-08-27T18:31:59.407
null
null
2,695
null
30,832
2
null
30,811
1
null
If you're experienced in Java but not in Javascript/CSS, then GWT is going to be a lifesaver (unless you want to learn them, of course). CSS has so many little fiddly details. It is not uncommon to spend half a day fixing a 2 pixel misalignment that only occurs in IE6. I am not sure about how easy it would be to use R...
null
CC BY-SA 2.5
null
2008-08-27T18:37:24.137
2008-08-27T18:37:24.137
null
null
3,044
null
30,836
2
null
30,833
1
null
You'll probably have to use a tool, such as [ILMerge](http://research.microsoft.com/~mbarnett/ILMerge.aspx), to merge the two assemblies.
null
CC BY-SA 2.5
null
2008-08-27T18:39:33.507
2008-08-28T10:58:31.390
2008-08-28T10:58:31.390
1,199
1,199
null
30,837
2
null
30,835
0
null
I don't think there are any plugins for Express versions of VS. Googling 'Jamie Cansdale' is the canonical reference for this issue.
null
CC BY-SA 2.5
null
2008-08-27T18:39:57.687
2008-08-27T18:39:57.687
null
null
987
null
30,843
2
null
30,833
1
null
There's an easier way. Just create shortcuts (called linked files in Visual Studio-ese) in your wrapper.dll project that point to the source files in api.dll. That will compile your source directly into wrapper.dll.
null
CC BY-SA 2.5
null
2008-08-27T18:41:13.130
2008-08-27T18:41:13.130
null
null
1,975,282
null
30,845
2
null
30,036
6
null
You could use [Narrative JavaScript](http://www.neilmix.com/narrativejs/doc/), a compiler that will transforms your code into a state machine, effectively allowing you to emulate threading. It does so by adding a "yielding" operator (notated as '->') to the language that allows you to write asynchronous code in a singl...
null
CC BY-SA 2.5
null
2008-08-27T18:42:15.373
2008-08-27T18:42:15.373
null
null
2,680
null
30,841
2
null
25,938
1
null
Create a new Running Total Field called, for example "RTotal". In "Field to summarize" select "Value", in "Type of summary" select "sum", under "Evaluate" select "For each record". You can then drag this field into your report to use as the "Total" at the bottom of each page. You cannot use this running total field in...
null
CC BY-SA 2.5
null
2008-08-27T18:40:52.333
2008-08-27T18:40:52.333
null
null
3,012
null
30,844
2
null
29,980
1
null
I thought about posting some code and then I remembered about JP Boodhoo's Nothin But .NET course. He has a [sample project](http://code.google.com/p/jpboodhoo/) that he is sharing that was created during one of his classes. The project is hosted on [Google Code](http://code.google.com/) and it is a nice resource. I...
null
CC BY-SA 2.5
null
2008-08-27T18:42:09.133
2008-08-29T02:52:37.650
2008-08-29T02:52:37.650
1,117
1,117
null
30,833
1
32,011
null
3
2,075
Using VS2005 and VB.NET. I have a project that is an API for a data-store that I created. When compiled creates `api.dll`. I have a second project in the same solution that has a project reference to the API project which when compiled will create `wrapper.dll`. This is basically a wrapper for the API that is specifi...
Compile a referenced dll
CC BY-SA 3.0
null
2008-08-27T18:38:31.077
2017-08-19T14:13:30.427
2017-08-19T14:13:30.427
7,275,984
777
[ ".net", "vb.net", "visual-studio-2005" ]
30,835
1
30,862
null
15
22,752
Is there any Visual Studio Express plug ins for source versioning? I am starting a project on my own and only have the Express version of Visual Studio 2008.
Source Versioning for Visual Studio Express
CC BY-SA 2.5
0
2008-08-27T18:38:54.600
2013-05-21T17:41:34.120
2010-05-16T20:19:11.970
168,225
2,535
[ "visual-studio", "visual-studio-2008", "version-control", "plugins", "visual-studio-express" ]
30,846
2
null
29,174
4
null
Web browsers will not POST any disabled or hidden form elements. So what's happening is: 1. The user clicks on a button in your dialog. 2. The button calls SimpleModal's close() method, hiding the dialog and the button 3. The client POSTs the form (without the button's ID) 4. The ASP.NET framework can't figure out w...
null
CC BY-SA 2.5
null
2008-08-27T18:42:38.367
2008-09-05T15:50:44.073
2008-09-05T15:50:44.073
734
734
null
30,818
2
null
30,710
89
null
I would suggest mocking out your calls to the database. Mocks are basically objects that look like the object you are trying to call a method on, in the sense that they have the same properties, methods, etc. available to caller. But instead of performing whatever action they are programmed to do when a particular me...
null
CC BY-SA 4.0
null
2008-08-27T18:30:47.227
2018-07-15T19:44:02.063
2018-07-15T19:44:02.063
183,132
3,271
null
30,856
1
30,868
null
12
8,154
How do I write the results from a mysql query to file? I just need something quick. Output can be CSV, XML, HTML, etc.
MySQL Results to a File
CC BY-SA 2.5
0
2008-08-27T18:48:04.970
2014-04-30T06:38:13.340
2010-08-18T16:57:22.147
2,363
2,363
[ "mysql", "database" ]
30,859
2
null
30,790
3
null
Do look at Linq to entities though. I have a datareader populate a collection of objects that are mapped to the oracle table. I can use linq to query that collection in very powerful, simple, and easy ways. I love it. Highly recommend.
null
CC BY-SA 2.5
null
2008-08-27T18:48:45.420
2008-08-27T18:48:45.420
null
null
1,097
null
30,860
2
null
30,835
0
null
The VisualSVN manual says it works with all editions of Visual Studio - though I have not personally tried it. I know that none of Microsoft's Team Foundation Server stuff will work with Express.
null
CC BY-SA 2.5
null
2008-08-27T18:49:03.280
2008-08-27T18:49:03.280
null
null
3,114
null
30,861
1
null
null
7
8,770
Given a username and a password for a domain user, what would be the best way to authenticate that user programatically?
Authenticating Domain Users with System.DirectoryServices
CC BY-SA 2.5
0
2008-08-27T18:49:24.047
2018-10-19T08:48:32.663
2018-10-19T08:48:32.663
7,109,869
1,194
[ ".net", "authentication", "directoryservices" ]
30,862
2
null
30,835
15
null
Short answer: No. The Express editions support neither the Add-Ins nor Source Control providers (SCC plug-ins). While there are ways to make this work, they are undocumented, violate the license and [have caused legal trouble before…](http://weblogs.asp.net/nunitaddin/archive/2007/05/31/microsoft-vs-testdriven-net-31-...
null
CC BY-SA 2.5
null
2008-08-27T18:49:46.133
2008-08-27T18:49:46.133
null
null
1,600
null
30,840
2
null
12,332
2
null
It's OS dependent. In OS X, there's a frame in the mach header that contains the start address for the EIP (instruction pointer) register. Once the binary is loaded, the OS launches execution from this address: The address is the address of the "start" function from the binary: In Mac OS X, it's the "start" func...
null
CC BY-SA 2.5
null
2008-08-27T18:40:29.043
2008-08-27T18:40:29.043
null
null
2,811
null
30,868
2
null
30,856
20
null
``` SELECT a,b,a+b FROM test_table INTO OUTFILE '/tmp/result.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' ``` (the docs show INTO OUTFILE up in the SELECT .. portion which may work as well, but I've never tried it that way) [http://dev.mysql.com/doc/refman/5.0/en/select.h...
null
CC BY-SA 2.5
null
2008-08-27T18:50:42.373
2008-08-27T18:50:42.373
null
null
2,590
null
30,874
2
null
30,712
4
null
Upon further examination, I've come to the conclusion that one assumption I had about Read permissions was incorrect. SOAP web services only need the "Run scripts" permission enabled because the `.wsdl` apparently comes from the web service in the form of a script execution response. So the minimum required for a SOAP...
null
CC BY-SA 3.0
null
2008-08-27T18:53:43.737
2017-11-07T17:25:56.670
2017-11-07T17:25:56.670
6,761,181
1,339
null
30,875
2
null
30,856
1
null
if you have phpMyAdmin installed, it is a nobrainer: Run the query (haven't got a copy loaded, so I can't tell you the details, but it really is easy) and check neer bottom for export options. CSV will be listed, but I think you can also have SQL if you like :) phpMyAdmin will give CSV in Excels dialect, which is prob...
null
CC BY-SA 2.5
null
2008-08-27T18:53:49.247
2008-08-27T18:53:49.247
null
null
2,260
null
30,826
2
null
30,230
0
null
@dave-ward, I just dug through mounds of javascript. most was ASP.NET generated stuff for validation and AJAX, there's a bunch starting with "WebForm_" that I guess is standard stuff to do the defaultbutton, etc. the only javascript we put on the page is for toggling visibility and doing some custom validation... edit...
null
CC BY-SA 2.5
null
2008-08-27T18:35:15.157
2008-08-27T18:35:15.157
null
null
2,462
null
30,877
1
34,217
null
14
10,292
I actually have an answer to my question but it is not parallelized so I am interested in ways to improve the algorithm. Anyway it might be useful as-is for some people. ``` int Until = 20000000; BitArray PrimeBits = new BitArray(Until, true); /* * Sieve of Eratosthenes * PrimeBits is a simple BitArray where all bi...
Fastest way to calculate primes in C#?
CC BY-SA 2.5
0
2008-08-27T18:54:44.423
2015-07-24T07:16:29.133
2008-12-29T22:26:02.547
1,659
3,063
[ "c#", ".net", "performance", "algorithm", "bitarray" ]
30,847
1
30,910
null
22
45,390
How does one go about authoring a that matches against all strings that are valid URIs, while failing to match against all strings that are invalid URIs? To be specific about what I am referencing when I say URI, I have added a link below for the most current URI RFC standard. It defines the entity that I want to vali...
How to write a regular expression pattern that is capable of validating URIs?
CC BY-SA 4.0
0
2008-08-27T18:43:21.237
2022-02-25T11:05:30.307
2022-02-25T11:05:30.307
12,475,483
80
[ ".net", "regex" ]
30,882
2
null
30,811
0
null
You could also consider [Grails](http://grails.org/) ("Groovy on Rails") which gives you the benefits of a Rails framework and the use of the Java VM.
null
CC BY-SA 2.5
null
2008-08-27T18:56:36.167
2008-08-27T18:56:36.167
null
null
3,305
null
30,879
1
30,887
null
21
16,340
Is there a pattern using Linq to dynamically create a filter? I have the need to create custom filtering on a list, in the past I would just dynamically create the SQL...it doesn't seem like this is possible with Linq.
Is there a pattern using Linq to dynamically create a filter?
CC BY-SA 2.5
0
2008-08-27T18:55:30.503
2012-03-30T06:30:52.263
2008-08-31T07:45:28.277
305
2,858
[ "linq", "linq-to-sql", ".net-3.5" ]
30,858
2
null
30,847
29
null
Does [Uri.IsWellFormedUriString](http://msdn.microsoft.com/en-us/library/system.uri.iswellformeduristring.aspx) work for you?
null
CC BY-SA 2.5
null
2008-08-27T18:48:40.007
2008-08-27T18:48:40.007
null
null
2,688
null
30,869
2
null
30,833
0
null
I think you could compile api.dll as a resource into wrapper.dll. Then manually access that Resource out of api.dll and manually load it. I have manually loaded assemblies from disk, so loading one from a Stream should not be any different. I would try including the dll in your project as a file, similar to includin...
null
CC BY-SA 2.5
null
2008-08-27T18:51:32.230
2008-08-27T18:51:32.230
null
null
3,059
null
30,884
1
375,755
null
24
16,900
Suppose you have two seperate ASP.NET Web Application projects that both need to use a common MasterPage. What's the best way to share the MasterPage across projects without having to duplicate code? Preferably without having to resort to source control or file system hacks.
What is the best way to share MasterPages across projects
CC BY-SA 2.5
0
2008-08-27T18:57:17.833
2017-11-17T15:17:46.260
2008-09-18T16:03:21.687
247
247
[ ".net", "asp.net", "master-pages" ]
30,889
2
null
30,660
12
null
Yes, with --slave-skip-errors=xxx in my.cnf, where xxx is 'all' or a comma sep list of error codes.
null
CC BY-SA 2.5
null
2008-08-27T18:58:09.937
2008-08-27T18:58:09.937
null
null
3,075
null
30,886
2
null
29,284
0
null
> > In addition to allowing full control to "Everyone" does the location also allow processes with a medium integrity level to write?How do I check that ? I am new to Vista, I don't like it too much, it's too slow inside a VM for daily work and for VStudio usage inside a Virtual Machine, it doesn't bring anything new. ...
null
CC BY-SA 2.5
null
2008-08-27T18:57:39.173
2008-08-27T18:57:39.173
2020-06-20T09:12:55.060
-1
2,508
null
30,890
2
null
29,838
8
null
Be aware that TFS does not support sharing files between different projects, as VSS does. If you have any such shared files the link between them will be broken during the migration, resulting in initially identical, but now distinct files in each project. Updates to one of these files in TFS will no longer propagate t...
null
CC BY-SA 2.5
null
2008-08-27T18:58:12.743
2008-08-27T18:58:12.743
null
null
3,012
null
30,887
2
null
30,879
19
null
Check out the [Dynamic Linq Library](http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx) from ScottGu's blog: For example, below is a standard type-safe LINQ to SQL VB query that retrieves data from a Northwind database and displays it in a ASP.NET GridView ...
null
CC BY-SA 3.0
null
2008-08-27T18:57:46.367
2012-03-30T06:30:52.263
2012-03-30T06:30:52.263
1,219,121
1,097
null
30,901
2
null
30,884
2
null
Keep a primary copy in source control, and let your source control system worry about it.
null
CC BY-SA 2.5
null
2008-08-27T19:00:22.130
2008-12-13T18:56:22.237
2008-12-13T18:56:22.237
3,043
3,043
null
30,906
2
null
30,770
2
null
I would suggest you start by removing the UpdatePanels at first, and make sure your control orgy is working correctly with postbacks. Once you have that working, try adding the UpdatePanels back in from the bottom up.
null
CC BY-SA 2.5
null
2008-08-27T19:01:19.337
2008-08-27T19:01:19.337
null
null
247
null
30,903
1
909,952
null
34
11,381
Is there a good, native Mac tool to view Mercurial repositories, similar to gitnub for Git?
Good Mercurial repository viewer for Mac
CC BY-SA 2.5
0
2008-08-27T19:00:34.610
2012-01-31T20:08:50.433
2012-01-31T20:08:50.433
110,204
3,071
[ "macos", "version-control", "mercurial", "dvcs" ]
30,852
2
null
30,847
1
null
Are there some specific URIs you care about or are you trying to find a single regex that validates [STD66](http://rfc.net/std0066.html)? I was going to point you to [this regex](http://www.unix.com.ua/rfc/std0066.html#p50) for parsing a URI. You could then, in theory, check to see if all of the elements you care abo...
null
CC BY-SA 2.5
null
2008-08-27T18:47:19.277
2008-08-27T18:53:00.933
2017-05-23T12:31:59.093
-1
305
null
30,907
2
null
30,884
0
null
Supposing you can create a common repository for all your projects (a common folder in your source control tree, for example), you could add the master pages as links by using relative paths. However, IIRC, Visual Studio makes local copies of files added from external paths. You might have to text-edit the solution/p...
null
CC BY-SA 2.5
null
2008-08-27T19:02:55.667
2008-08-27T19:02:55.667
null
null
227
null
30,895
2
null
30,879
2
null
something like this? ``` var myList = new List<string> { "a","b","c" }; var items = from item in db.Items where myList.Contains(item.Name) select item; ``` that would create a sql statement like ``` SELECT * FROM Items [t0] where Name IN ('a','b','c') ```
null
CC BY-SA 2.5
null
2008-08-27T18:58:48.780
2008-08-27T18:58:48.780
null
null
77
null
30,855
2
null
30,835
2
null
Source control integration is not supported in the Express editions of Visual Studio. Check out the feature comparison chart at [http://msdn.microsoft.com/en-us/vstudio/products/cc149003.aspx](http://msdn.microsoft.com/en-us/vstudio/products/cc149003.aspx)
null
CC BY-SA 2.5
null
2008-08-27T18:47:58.247
2008-08-27T18:47:58.247
null
null
3,012
null
30,925
2
null
30,884
0
null
AFAIK there is no elegant way to do what you are looking to.. VS will always end up copying it. I think to be honest it may not be a great idea.. Obviously you want to share the lowest common code, but a whole MasterPage?.. Sounds like you could be asking for trouble since one minor change could have such an impact on...
null
CC BY-SA 2.5
null
2008-08-27T19:10:01.890
2008-08-27T19:10:01.890
null
null
832
null
30,910
2
null
30,847
12
null
This site looks promising: [http://snipplr.com/view/6889/regular-expressions-for-uri-validationparsing/](http://snipplr.com/view/6889/regular-expressions-for-uri-validationparsing/) They propose following regex: ``` /^([a-z0-9+.-]+):(?://(?:((?:[a-z0-9-._~!$&'()*+,;=:]|%[0-9A-F]{2})*)@)?((?:[a-z0-9-._~!$&'()*+,;=]|%...
null
CC BY-SA 2.5
null
2008-08-27T19:03:31.327
2008-08-27T19:03:31.327
null
null
2,260
null
30,931
1
31,836
null
60
34,256
I'm developing a Linux application that has its own file format. I want my app to open when you double-click on those files. How can I register a file extension and associate it with my application on Linux? I'm looking for a way that is standard (works with GNOME and KDE based systems) and can be done automatic when ...
Register file extensions / mime types in Linux
CC BY-SA 3.0
0
2008-08-27T19:12:36.830
2022-08-19T20:25:01.427
2015-07-14T18:56:46.393
4,370,109
3,306
[ "linux", "installation", "mime", "file-type" ]
30,854
2
null
6,639
8
null
What are you loading the files for - configuration or data (like an input file) or as a resource? - [Will and Justin](https://stackoverflow.com/questions/6639/how-should-i-load-files-into-my-java-application#6640)- [ResourceBundle](http://java.sun.com/j2se/1.4.2/docs/api/java/util/ResourceBundle.html)[Spring](http://w...
null
CC BY-SA 2.5
null
2008-08-27T18:47:33.393
2008-08-27T18:47:33.393
2017-05-23T11:47:09.250
-1
2,890
null
30,904
2
null
30,884
0
null
Use [a symbolic link](http://msdn.microsoft.com/en-us/library/aa365680%28VS.85%29.aspx): > A symbolic link is a file-system object that points to another file system object. The object being pointed to is called the target. Symbolic links are transparent to users; the links appear as normal files or directories,...
null
CC BY-SA 3.0
null
2008-08-27T19:00:38.713
2013-04-24T03:24:25.197
2013-04-24T03:24:25.197
200,653
1,790
null
30,896
2
null
30,627
2
null
See the documentation for [XMLReader.setContentHandler()](http://www.saxproject.org/apidoc/org/xml/sax/XMLReader.html#setContentHandler(org.xml.sax.ContentHandler)), it says: > Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately...
null
CC BY-SA 2.5
null
2008-08-27T18:58:49.450
2008-08-27T19:03:51.187
2008-08-27T19:03:51.187
2,679
2,679
null
30,917
2
null
29,838
2
null
We are currently in the process of doing this at my day job. We are actually making the switch over in about a month. I am a main part of the migration and a big part of why we are getting off of SourceSafe. To help in the migration, I used the [Visual Studio® Team System 2008 Team Foundation Server and Team Suite V...
null
CC BY-SA 2.5
null
2008-08-27T19:05:49.153
2008-08-27T19:05:49.153
null
null
1,117
null
30,934
2
null
30,879
5
null
[Dynamically Composing Expression Predicates](http://www.albahari.com/nutshell/predicatebuilder.html)
null
CC BY-SA 2.5
null
2008-08-27T19:13:00.230
2008-08-27T19:13:00.230
null
null
247
null
30,932
2
null
30,346
1
null
Add the following code to the `<head>` ``` <!--[if lte IE 6]> <style type="text/css"> html, body { height: 100%; overflow: auto; } .ie6fixed { position: absolute; } </style> <![endif]--> ``` Add the `ie6fixed` CSS class to whatever you want to be `position: fixed;`
null
CC BY-SA 2.5
null
2008-08-27T19:12:40.977
2008-08-27T19:12:40.977
null
null
3,063
null
30,939
2
null
30,931
4
null
1) in linux this is a function of your desktop environment rather than the os itself. 2) GNOME and KDE have different methods to accomplish this. 3) There's nothing stopping you from doing it both ways.
null
CC BY-SA 2.5
null
2008-08-27T19:14:01.270
2008-08-27T19:14:01.270
null
null
3,043
null
30,949
2
null
30,946
10
null
[MD5](http://en.wikipedia.org/wiki/MD5) or [SHA1](http://en.wikipedia.org/wiki/SHA-1) + salt.
null
CC BY-SA 2.5
null
2008-08-27T19:18:56.703
2008-08-27T19:18:56.703
null
null
1,797
null
30,951
2
null
30,946
3
null
Use the [SHA](http://en.wikipedia.org/wiki/SHA-1) one way hashing algorithm along with a unique salt. It is the main algorithm I use for storing my passwords in the database.
null
CC BY-SA 2.5
null
2008-08-27T19:19:47.967
2008-08-27T19:19:47.967
null
null
1,117
null
30,952
2
null
30,946
10
null
If you use MD5 or SHA1 use a salt to avoid rainbow table hacks. In C# this is easy: ``` MD5CryptoServiceProvider hasher = new MD5CryptoServiceProvider(); string addSalt = string.Concat( "ummm salty ", password ); byte[] hash = hasher.ComputeHash( Encoding.Unicode.GetBytes( addSalt ) ); ```
null
CC BY-SA 2.5
null
2008-08-27T19:19:50.273
2008-08-27T19:19:50.273
null
null
905
null
30,957
2
null
30,856
1
null
You can use [MySQL Query Browser](http://www.mysql.com/products/tools/query-browser/) to run the query and then just go to File -> Export Resultset and choose the output format. The options are CSV, HTML, XML, Excel and PLIST.
null
CC BY-SA 2.5
null
2008-08-27T19:21:34.577
2008-08-27T19:21:34.577
null
null
2,841
null
30,943
2
null
30,903
1
null
You can use the one "built in", [hg view](http://www.selenic.com/mercurial/wiki/index.cgi/HgkExtension). You'll need `TCL` installed though. > From the documentation:> The hgk Tcl script is a direct port of the gitk tool used with git. The hgk.py extension allows hgk to interact with mercurial in a git-like manner. ...
null
CC BY-SA 2.5
null
2008-08-27T19:15:13.407
2008-08-30T17:04:22.030
2017-05-23T10:30:28.253
-1
157
null
30,958
2
null
30,946
0
null
If you're using SQL Server, there's the HashBytes function: [http://msdn.microsoft.com/en-us/library/ms174415.aspx](http://msdn.microsoft.com/en-us/library/ms174415.aspx)
null
CC BY-SA 2.5
null
2008-08-27T19:22:04.730
2008-08-27T19:22:04.730
null
null
3,043
null
30,946
1
30,979
null
18
10,823
What is a good, simple encryption scheme for protecting passwords in a database? I don't necessarily need anything that's hyper-secure nor do I need anything that's lightning fast, but those things would be nice. Primarily, I just want something that's easy to implement without being terribly slow or insecure.
Simple password encryption
CC BY-SA 2.5
0
2008-08-27T19:17:47.127
2022-10-11T12:55:45.590
null
null
2,147
[ "database", "language-agnostic", "passwords" ]
30,928
1
null
null
14
8,323
[We have a Windows Forms database front-end application that, among other things, can be used as a CMS; clients create the structure, fill it, and then use a ASP.NET WebForms-based site to present the results to publicly on the Web. For added flexibility, they are sometimes forced to input actual HTML markup right into...
A WYSIWYG Markdown control for Windows Forms?
CC BY-SA 2.5
0
2008-08-27T19:11:30.827
2019-11-20T22:43:40.963
2019-11-20T21:33:31.957
1,366,033
1,600
[ "html", "winforms", "components", "markdown" ]
30,963
2
null
30,947
1
null
[FxCop ships with a spell check now](http://davesbox.com/archive/2008/06/08/fxcop-now-ships-with-the-spell-checker-libraries.aspx) - have you tried that? [Here's a nice add-on](http://blogs.msdn.com/webdevtools/archive/2007/12/13/spell-checker-for-html-asp-net-jscript-vb-c-css-and-c-for-visual-studio-2005-and-2008.asp...
null
CC BY-SA 2.5
null
2008-08-27T19:24:45.833
2008-08-27T19:44:40.997
2008-08-27T19:44:40.997
35
35
null
30,962
1
30,965
null
5
7,185
Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location. (This is similar to [https://stackoverflow.com/questions/23572/latitude-longitude-database](https://stackoverflow.com/questions/23572/latitude-longitude-database), except I want to convert in the ...
Finding City and Zip Code for a Location
CC BY-SA 2.5
0
2008-08-27T19:24:18.203
2013-04-05T09:20:37.943
2017-05-23T10:32:51.507
-1
1,175
[ "mapping", "maps", "gis", "location", "geocoding" ]
30,965
2
null
30,962
2
null
This is the web service to call. [http://developer.yahoo.com/search/local/V2/localSearch.html](http://developer.yahoo.com/search/local/V2/localSearch.html) This site has ok web services, but not exactly what you're asking for here. [http://www.usps.com/webtools/](http://www.usps.com/webtools/)
null
CC BY-SA 2.5
null
2008-08-27T19:25:10.713
2008-08-27T19:25:10.713
null
null
3,018
null
30,966
1
30,988
null
3
802
I was wondering if InputManagers are still part of Leopard and if there is a good example that would show me what are the use of it?
InputManager on OS X
CC BY-SA 2.5
null
2008-08-27T19:25:21.323
2014-05-07T19:03:15.307
2014-05-07T19:03:15.307
3,532,040
260
[ "macos", "cocoa" ]
30,964
1
30,992
null
4
834
We have an external service that is currently accessible via the http (port 80, non-SSL) and https (port 443, SSL) addresses. What is the best way to limit connections to only the https address? Is it something we can do via IIS or does it have to be done via code. Additional info: Regular ASP.NET web service (.asmx)...
Limiting traffic to SSL version of page only
CC BY-SA 3.0
0
2008-08-27T19:25:10.510
2015-03-06T14:00:53.553
2015-03-06T14:00:53.553
2,641,576
3,262
[ "web-services", "iis", "ssl" ]
30,972
1
36,501
null
1
387
Is there anything similar on Windows what would achieve the same as the InputManager on OS X?
Is there anything similar to the OS X InputManager on Windows?
CC BY-SA 2.5
null
2008-08-27T19:26:47.887
2014-05-07T19:03:44.917
2014-05-07T19:03:44.917
3,532,040
260
[ "windows", "macos", "winapi" ]
30,971
2
null
30,946
0
null
You need to be using an uni-directional hash algorithm like SHA-1 suggested above with a salt. I would suggest this site for more information. It includes some sample code / implementation. [http://www.obviex.com/samples/hash.aspx](http://www.obviex.com/samples/hash.aspx)
null
CC BY-SA 2.5
null
2008-08-27T19:26:46.513
2008-08-27T19:26:46.513
null
null
3,022
null
30,968
2
null
30,947
12
null
The [plugin from Microsoft's Mikhail Arkhipov](http://blogs.msdn.com/webdevtools/archive/2008/11/29/spell-checker-update-2-2-full-support-for-vs-2008-sp1-simpler-setup-and-a-few-bug-fixes.aspx) does HTML and Comments, I don't believe it does C# strings, though. I use the [Agent Smith](http://www.agentsmithplugin.com/)...
null
CC BY-SA 2.5
null
2008-08-27T19:25:54.207
2009-10-14T13:51:48.840
2009-10-14T13:51:48.840
2,688
2,688
null
30,976
2
null
30,964
5
null
1. Require SSL on the application 2. In a custom error page for the 403 redirect the browser to the incoming URL, changing http to https along the way. Note: Keep port 80 open for this - or there won't be a server to listen for requests to redirect.
null
CC BY-SA 2.5
null
2008-08-27T19:28:03.343
2008-08-27T19:56:48.050
2008-08-27T19:56:48.050
35
35
null
30,984
2
null
30,964
0
null
Is just not accepting any connections on port 80 an option? I'm a complete web server noob so I don't know if the server can operate without an unsecured listen port but if the server can operate only listen on port 443 that would seem to be simplest option. Another option would be a redirect from the unsecure port t...
null
CC BY-SA 2.5
null
2008-08-27T19:31:24.130
2008-08-27T19:31:24.130
null
null
171
null
30,973
2
null
20,063
3
null
I think the best way for larger projects is optparse, but if you are looking for an easy way, maybe [http://werkzeug.pocoo.org/documentation/script](http://werkzeug.pocoo.org/documentation/script) is something for you. ``` from werkzeug import script # actions go here def action_foo(name=""): """action foo does f...
null
CC BY-SA 2.5
null
2008-08-27T19:27:06.140
2008-08-27T19:41:22.767
2008-08-27T19:41:22.767
720
720
null
30,986
2
null
21,999
-3
null
Try using the [UIElement.SnapsToDevicePixels](http://msdn.microsoft.com/en-us/library/system.windows.uielement.snapstodevicepixels.aspx) property on the UI elements of your window. People tend to report it works best for [graphics and lines](http://blogs.msdn.com/seema/archive/2006/10/31/on-some-monitors-it-seems-that...
null
CC BY-SA 2.5
null
2008-08-27T19:31:41.073
2008-08-27T19:31:41.073
null
null
2,547
null
30,979
2
null
30,946
15
null
As mk says, . --- Update: As processors have gotten faster over the years, hashes have gotten more brute-forceable. It's now recommended you use [bcrypt](https://en.wikipedia.org/wiki/Bcrypt). Another update: `bcrypt` is still probably good, but if I was writing a new system today I would use [scrypt](https://en.wik...
null
CC BY-SA 4.0
null
2008-08-27T19:29:03.060
2022-10-11T12:55:45.590
2022-10-11T12:55:45.590
619
619
null
30,955
2
null
26,260
0
null
> @Mickey: No, it is turned off. Do I need to turn it on to find out? The trace log will show you how long each action takes. It could help you find what is taking so long. [Here](http://davidhayden.com/blog/dave/archive/2005/07/17/2396.aspx) is a link that might help you get it setup.
null
CC BY-SA 2.5
null
2008-08-27T19:21:10.117
2008-08-27T19:21:10.117
null
null
1,494
null
30,991
2
null
30,946
10
null
Easy: [BCrypt](http://www.mindrot.org/projects/).
null
CC BY-SA 2.5
null
2008-08-27T19:34:48.600
2008-08-27T19:34:48.600
null
null
342
null
30,992
2
null
30,964
3
null
Just to clarify Greg's point 1. IIS Manager > Site properties > Directory Security > Secure Communications > Require Secure Channel (SSL)
null
CC BY-SA 2.5
null
2008-08-27T19:34:52.220
2008-08-27T19:34:52.220
null
null
1,278
null
30,967
2
null
30,946
0
null
I second the vote for MD5 or SHA with a salt. Any of the major web development languages have functions built-in for computing the hash (in PHP, for example, the mcrypt package contains the necessary functions).
null
CC BY-SA 2.5
null
2008-08-27T19:25:35.860
2008-08-27T19:25:35.860
null
null
271
null
30,996
2
null
27,598
0
null
Hmm... I know that WebSphere is kind of hard to configure. Thats part of the reason we used ServiceMix for our ESB. Maybe its not enabled by default in WebSphere and you would have to turn it on in the config somewhere.
null
CC BY-SA 2.5
null
2008-08-27T19:35:59.067
2008-08-27T19:35:59.067
null
null
1,992
null
30,985
1
null
null
1
366
I recently had to solve this problem and find I've needed this info many times in the past so I thought I would post it. Assuming the following table def, how would you write a query to find all differences between the two? table def: ``` CREATE TABLE feed_tbl ( code varchar(15), name varchar(40), status char(1), up...
querying 2 tables with the same spec for the differences
CC BY-SA 3.0
0
2008-08-27T19:31:40.637
2013-06-11T15:27:48.120
2013-06-11T15:25:40.437
2,156,756
292
[ "sql" ]
30,998
1
31,111
null
12
6,526
I like to use static functions in C++ as a way to categorize them, like C# does. ``` Console::WriteLine("hello") ``` Is this good or bad? If the functions are used often I guess it doesn't matter, but if not do they put pressure on memory? What about `static const`?
Is using too much static bad or good?
CC BY-SA 3.0
0
2008-08-27T19:36:18.847
2016-10-26T21:24:26.150
2016-10-26T21:24:26.150
5,960,850
2,566
[ "c++", "static" ]
31,004
2
null
30,998
10
null
I'm all for using static . These just make sense especially when organized into modules (`static class` in C#). However, those functions need some kind of external (non compile-time const) data, then that function should be made an instance method and encapsulated along with its data into a class. In a nutshell: sta...
null
CC BY-SA 2.5
null
2008-08-27T19:38:44.520
2008-08-27T20:04:11.260
2008-08-27T20:04:11.260
338
338
null
31,007
1
31,027
null
6
4,289
I build up an array of strings with ``` string[] parts = string.spilt(" "); ``` And get an array with X parts in it, I would like to get a copy of the array of strings starting at element ``` parts[x-2] ``` Other than the obvious brute force approach (make a new array and insert strings), is there a more elegant...
Pass reference to element in C# Array
CC BY-SA 2.5
null
2008-08-27T19:39:07.887
2010-08-22T05:55:47.810
null
null
2,723
[ "c#", "arrays" ]
30,995
1
34,245
null
1
4,523
Occasionally while attempting to save a Crystal Report that I'm working on in VS2008, a dialog titled "File Save Failed" pops up saying "The document could not be saved in C:\Users\Phillip\AppData\Local\Temp{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.rpt. It has been saved in C:\Users\Phillip\AppData\Local\Temp\~zzz{YYYYYY...
"File Save Failed" error when working with Crystal Reports in VS2008
CC BY-SA 2.5
null
2008-08-27T19:35:40.940
2013-05-07T14:51:05.130
2008-11-02T02:17:26.857
null
3,012
[ "vb.net", "visual-studio-2008", "crystal-reports" ]
31,012
2
null
29,242
1
null
[I used this](http://einaros.blogspot.com/2006/11/put-hex-on-that-dump.html) in one of my internal tools at work.
null
CC BY-SA 2.5
null
2008-08-27T19:40:44.327
2008-08-27T19:40:44.327
null
null
342
null
30,982
2
null
20,912
0
null
To clarify the answer, the solution was to open up the tcp ports from 1024-65535. The iptables looked liked this: ``` [root@MYSERVER ~]# service iptables status Table: filter Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0...
null
CC BY-SA 3.0
null
2008-08-27T19:30:52.620
2015-04-16T05:21:56.667
2015-04-16T05:21:56.667
707,364
1,372
null
31,013
2
null
30,998
1
null
Agree with Frank here, there's not a problem with static (global) functions (of course providing they are organised).. The problems only start to really creep in when people think "oh I will just make the scope on this bit of data a little wider".. Slippery slope :) To put it really into perspective.. [Functional Prog...
null
CC BY-SA 2.5
null
2008-08-27T19:40:50.117
2008-08-27T19:50:16.957
2008-08-27T19:50:16.957
832
832
null
31,023
2
null
31,007
-1
null
Use [Array.Copy](http://msdn.microsoft.com/en-us/library/system.array.copy(VS.80).aspx). It has an overload that does what you need: > Array.Copy (Array, Int32, Array, Int32, Int32)
null
CC BY-SA 2.5
null
2008-08-27T19:42:50.937
2008-08-27T19:42:50.937
null
null
1,627
null
31,031
1
31,036
null
6
303
What's the best way to allow a user to browse for a file in C#?
What's the best way to allow a user to browse for a file in C#?
CC BY-SA 2.5
0
2008-08-27T19:45:34.673
2009-07-08T13:13:20.890
2009-07-08T13:13:20.890
177
177
[ "c#" ]
31,033
2
null
30,998
1
null
One specific reason static data is bad, is that C++ makes no guarantees about initialization order of static objects in different translation units. In practice this can cause problems when one object depends on another in a different translation unit. Scott Meyers discusses this in Item 26 of his book More Effective C...
null
CC BY-SA 2.5
null
2008-08-27T19:45:44.020
2008-08-27T19:45:44.020
null
null
3,114
null
31,027
2
null
31,007
2
null
How about Array.Copy? [http://msdn.microsoft.com/en-us/library/aa310864(VS.71).aspx](http://msdn.microsoft.com/en-us/library/aa310864(VS.71).aspx) > Array.Copy Method (Array, Int32, Array, Int32, Int32)Copies a range of elements from an Array starting at the specified source index and pastes them to another Array start...
null
CC BY-SA 2.5
null
2008-08-27T19:43:36.740
2008-09-04T18:50:31.530
2020-06-20T09:12:55.060
-1
3,295
null
31,036
2
null
31,031
16
null
``` using (OpenFileDialog dlg = new OpenFileDialog()) { dlg.Title = "Select a file"; if (dlg.ShowDialog()== DialogResult.OK) { //do something with dlg.FileName } } ```
null
CC BY-SA 2.5
null
2008-08-27T19:46:54.483
2008-08-27T19:46:54.483
null
null
1,627
null
31,025
2
null
31,007
-1
null
[Array.Copy Method](http://msdn.microsoft.com/en-us/library/system.array.copy.aspx) I guess something like: ``` string[] less = new string[parts.Length - (x - 2)]; Array.Copy(parts, x - 2, less, 0, less.Length); ``` ( the off by 1 bug that I'm sure is in there.)
null
CC BY-SA 2.5
null
2008-08-27T19:43:22.933
2008-08-27T19:43:22.933
null
null
338
null