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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23,599 | 2 | null | 23,578 | 22 | null | Advantage:
- -
Disadvantage:
-
Recommendation: Leave the GAC to MS and friends. The gigabyte is very cheap now.
| null | CC BY-SA 2.5 | null | 2008-08-22T21:48:33.580 | 2008-08-22T23:08:10.923 | 2008-08-22T23:08:10.923 | 2,385 | 2,385 | null |
23,557 | 2 | null | 23,511 | 2 | null | MD5Crypt is basically a replacement for the old-fashioned unix crypt function. It was introduced in freebsd, and has been adopted by other groups as well.
The basic idea is this:
- - - -
But there's a problem:
- - -
So, we can add a "salt" string to the password.
- - - - -
You mention .net, there's a pointer... | null | CC BY-SA 2.5 | null | 2008-08-22T21:33:48.920 | 2008-08-22T21:33:48.920 | null | null | 116 | null |
23,592 | 1 | null | null | 22 | 13,383 | I have always wondered how many different search techniques existed, for searching text, for searching images and even for videos.
However, I have never come across a solution that searched for content within audio files.
Let us assume that I have about 200 podcasts downloaded to my PC in the form of mp3, wav and o... | How do I search content, within audio files/streams? | CC BY-SA 2.5 | 0 | 2008-08-22T21:46:03.943 | 2012-06-28T17:11:47.253 | 2008-08-23T01:15:04.377 | 1,311 | 1,311 | [
"search",
"audio",
"speech-recognition"
] |
23,602 | 2 | null | 23,578 | 7 | null | The GAC runs with Full Trust and can be used by applications outside of your Web App. For example, Timer Jobs in Sharepoint HAVE to be in the GAC because the sptimer service is a separate process.
The "Full Trust" Part is also a possible source for security issues. Sure, you can work with Code Access Security, but I d... | null | CC BY-SA 2.5 | null | 2008-08-22T21:50:58.283 | 2008-08-22T21:50:58.283 | null | null | 91 | null |
23,608 | 2 | null | 23,566 | 0 | null | Here what's technet has to say about [iisreset](http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/003ed2fe-6339-4919-b577-6aa965994a9b.mspx?mfr=true)
> You might need to restart Internet Information Services (IIS) before certain configuration changes take effect or when applications become una... | null | CC BY-SA 2.5 | null | 2008-08-22T21:54:02.957 | 2008-08-22T21:54:02.957 | null | null | 1,291 | null |
23,614 | 1 | 23,669 | null | 6 | 8,857 | What are the best open source (open source and commercial) reporting tools for ASP.NET similar to Crystal Reports for ASP.NET?
| Reporting Systems for ASP.NET | CC BY-SA 2.5 | 0 | 2008-08-22T22:00:07.593 | 2014-04-22T08:20:59.363 | null | null | 2,141 | [
"asp.net",
"report"
] |
23,585 | 2 | null | 14,698 | 5 | null | According to the (chapter 5 "Advanced Topics"), Pro*C silently ignores a number of preprocessor directives including #error and #pragma, but sadly not #warning. Since your warning directives are included in a header file, you might be able to use the ORA_PROC macro:
```
#ifndef ORA_PROC
#include <irrelevant.h>
#end... | null | CC BY-SA 2.5 | null | 2008-08-22T21:44:00.983 | 2008-08-22T21:44:00.983 | null | null | 1,438 | null |
23,603 | 1 | null | null | 3 | 443 | I'm developing a library alongside several projects that use it, and I've found myself frequently modifying the library at the same time as a project (e.g., adding a function to the library and immediately using it in the project).
As a result, the project would no longer compile with previous versions of the library.
... | Syncing library/project subversion respositories | CC BY-SA 3.0 | 0 | 2008-08-22T21:51:24.367 | 2015-09-09T09:31:45.223 | 2015-09-09T09:31:45.223 | 1,537,726 | 112 | [
"svn",
"synchronization"
] |
23,615 | 2 | null | 23,569 | 0 | null | It is better to use a look-up table for obtaining the distance between two cities.
This makes sense because
* The Formula to calculate the distance ais quite computationally intensive..
* Distance between cities is unlikely to change.
So unless you needs are very specific (like terrain mapping from a satellite or so... | null | CC BY-SA 2.5 | null | 2008-08-22T22:00:12.023 | 2008-08-22T22:00:12.023 | null | null | 1,311 | null |
23,610 | 1 | null | null | 6 | 8,875 | I'm looking for a way to find a the windows login associated with a specific group. I'm trying to add permissions to a tool that only allows names formatted like:
```
DOMAIN\USER
DOMAIN\GROUP
```
I have a list of users in active directory format that I need to add:
```
ou=group1;ou=group2;ou=group3
```
I have tr... | Windows / Active Directory - User / Groups | CC BY-SA 3.0 | 0 | 2008-08-22T21:54:34.797 | 2018-01-05T10:35:03.227 | 2018-01-05T10:35:03.227 | 1,905,949 | 1,580 | [
"windows",
"active-directory",
"active-directory-group"
] |
23,622 | 2 | null | 14,884 | 2 | null | This is a [knapsack problem](http://en.wikipedia.org/wiki/List_of_knapsack_problems). The weights are the days in transit, and the profit should be $5000 - cost of leg. Eliminate all negative costs and go from there!
| null | CC BY-SA 3.0 | null | 2008-08-22T22:04:18.940 | 2012-07-03T15:05:38.677 | 2012-07-03T15:05:38.677 | 142,162 | 1,799 | null |
23,613 | 2 | null | 14,155 | 6 | null | I know this is my own question but I came across this text editor [Sublime Text](http://www.sublimetext.com/) and thought it was pretty sweet. There are a few features in it that i have never seen before. It has multiple line select ( lines that are not continuous ) and a birds eye view navigation. It's a little pricey... | null | CC BY-SA 2.5 | null | 2008-08-22T22:00:06.733 | 2008-08-22T22:00:06.733 | null | null | 1,632 | null |
23,620 | 1 | null | null | 5 | 2,428 | I'm using TinyMCE in an ASP.Net project, and I need a spell check. The only TinyMCE plugins I've found use PHP on the server side, and I guess I could just break down and install PHP on my server and do that, but quite frankly, what a pain. I don't want to do that.
As it turns out, Firefox's built-in spell check will ... | What Javascript rich text editor will not break the browser's spellcheck? | CC BY-SA 2.5 | 0 | 2008-08-22T22:03:03.327 | 2014-05-20T14:58:12.193 | 2008-08-23T21:51:17.697 | 2,134 | 2,527 | [
"javascript",
"spell-checking"
] |
23,624 | 2 | null | 23,603 | 0 | null | One option is to use a single subversion repository and check-in changes that effect both library and project at the same time. That way you know that whatever revision of the project you are on requires the same revision of the library.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:05:07.097 | 2008-08-22T22:05:07.097 | null | null | 163 | null |
23,611 | 2 | null | 23,610 | 0 | null | OU is an Organizational Unit (sort of like a Subfolder in Explorer), not a Group, Hence group1, 2 and 3 are not actually groups.
You are looking for the DN Attribute, also called "distinguishedName". You can simply use DOMAIN\DN once you have that.
Edit: For groups, the CN (Common Name) could also work.
The full st... | null | CC BY-SA 2.5 | null | 2008-08-22T21:57:23.510 | 2008-08-22T22:02:46.760 | 2008-08-22T22:02:46.760 | 91 | 91 | null |
23,564 | 1 | 23,643 | null | 12 | 6,010 | I've noticed that a handful of WCF applications choose to "break" their objects apart; that is, a project might have a DataObjects assembly that contains DataContracts/Members in addition to a meaningful class library that performs business logic.
Is this an unnecessary level of abstraction? Is there any inherent evil... | What WCF best practices do you follow in object model design? | CC BY-SA 3.0 | 0 | 2008-08-22T21:36:55.807 | 2015-03-06T13:59:14.300 | 2015-03-06T13:59:14.300 | 2,641,576 | 1,473,493 | [
"wcf"
] |
23,628 | 2 | null | 23,503 | 1 | null | Use the [nant task](http://nant.sourceforge.net/release/0.85-rc1/help/tasks/nant.html), so you get one single build file.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:06:21.897 | 2008-08-22T22:06:21.897 | null | null | 1,554 | null |
23,625 | 2 | null | 22,145 | 2 | null | Actually, since the size of material is fixed, but the requests are not, it's a bin packing problem.
Again, [wikipedia to the rescue!](http://en.wikipedia.org/wiki/Bin_packing)
(Something I might have to look into for work too, so yay!)
| null | CC BY-SA 3.0 | null | 2008-08-22T22:05:45.380 | 2012-07-03T15:07:17.303 | 2012-07-03T15:07:17.303 | 142,162 | 1,799 | null |
23,621 | 2 | null | 23,592 | 9 | null | If you want to search for text (i.e. what is being said) inside an audio stream you would have to process it with some kind of speech recognition algorithm and store the text as meta data associated with the files. For video you could also do text recognition for text inside the video. [Evernote](http://www.evernote.co... | null | CC BY-SA 2.5 | null | 2008-08-22T22:04:11.793 | 2008-08-22T22:11:47.097 | 2008-08-22T22:11:47.097 | 1,709 | 1,709 | null |
23,639 | 2 | null | 23,614 | 1 | null | ActiveReports and DevExpress' reporting tools are both pretty good. The ReportViewer control works too (the price is right), but I find it more difficult to use. And SSRS reports can be embedded into your ASP.Net apps as well.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:12:57.483 | 2008-08-22T22:12:57.483 | null | null | 1,865 | null |
23,638 | 2 | null | 23,614 | 0 | null | As much as I despise Crystal Reports (we describe digging deep into it the seven layers of Crystal hell) -- it seems to be the best/most-flexible tool for the job. I hope someone comes along and knocks them off the block though.
Microsoft Reporting Services is an alternative, but didn't have the features we needed.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:11:19.047 | 2008-08-22T22:11:19.047 | null | null | 2,477 | null |
23,632 | 2 | null | 23,569 | 1 | null | If you are working in the plane and you want the [Euclidean distance](http://en.wikipedia.org/wiki/Euclidean_distance) "as the crow flies":
```
// Cities are points x0,y0 and x1,y1 in kilometers or miles or Smoots[1]
dx = x1 - x0;
dy = y1 - y0;
dist = sqrt(dx*dx + dy*y);
```
No trigonometry needed! Just the [Pythago... | null | CC BY-SA 2.5 | null | 2008-08-22T22:07:59.600 | 2008-08-22T22:29:33.370 | 2008-08-22T22:29:33.370 | 2,543 | 2,543 | null |
23,640 | 1 | 23,692 | null | 3 | 1,238 | I am looking for open source or free data collaboration software. Specifically this is for a non-profit organization that wants to teach remote students how a foreign language. The idea is that an instructor would teach a class and there would be up to 10 students in the class at a time. The instructor would be able ... | Free or Open Source Collaboration/eLearning Software | CC BY-SA 2.5 | 0 | 2008-08-22T22:13:06.017 | 2013-04-10T04:11:32.563 | 2013-04-10T04:11:32.563 | null | 324 | [
"product"
] |
23,623 | 1 | null | null | 0 | 193 | When compiling from source, I never know which configure flags to use to optimize the compilation for my environment. Assume the following hardware/OS:
- - -
I usually just go with
`./configure --prefix=/usr/local`
Should I be doing anything else?
| What's the best way to configure my Ruby compilation in Debian? | CC BY-SA 2.5 | 0 | 2008-08-22T22:04:48.877 | 2008-10-14T16:02:34.590 | 2008-08-23T16:33:32.813 | 1,190 | 2,476 | [
"ruby",
"installation",
"debian"
] |
23,645 | 2 | null | 23,623 | 0 | null | You might want to check those few options out, which may be required by a Ruby On Rails environment, in which case they should be compiled. Just make sure the directory corresponds to your current settings.
--with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr
| null | CC BY-SA 2.5 | null | 2008-08-22T22:15:20.020 | 2008-08-22T22:15:20.020 | null | null | 160 | null |
23,655 | 2 | null | 23,620 | 0 | null | I know at least [yahoo!'s Rich Text Editor](http://developer.yahoo.com/yui/editor/) will let you use the included spell checker in FireFox.
I also tested FCKeditor, but that requires the users to install additional plugins on their computer.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:20:58.820 | 2008-08-22T22:26:45.937 | 2008-08-22T22:26:45.937 | 2,257 | 2,257 | null |
23,642 | 2 | null | 23,614 | 0 | null | I would suggest taking a look at MS SSRS (Microsoft SQL Server Reporting Services).
| null | CC BY-SA 2.5 | null | 2008-08-22T22:14:35.357 | 2008-08-22T22:14:35.357 | null | null | 1,580 | null |
23,650 | 2 | null | 23,569 | 1 | null | If you're talking about the shortest distance between two real cities on a real spherical planet, like Earth, you want the [great circle distance](http://en.wikipedia.org/wiki/Great-circle_distance).
| null | CC BY-SA 2.5 | null | 2008-08-22T22:17:54.243 | 2008-08-22T22:17:54.243 | null | null | 205 | null |
23,656 | 2 | null | 23,610 | 5 | null | Programatically or Manually?
Manually, i prefer [AdExplorer](http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx), which is a nice Active directory Browser. You just connect to your domain controller and then you can look for the user and see all the details. Of course, you need permissions on the Domain Con... | null | CC BY-SA 2.5 | null | 2008-08-22T22:21:36.870 | 2008-08-22T22:21:36.870 | null | null | 91 | null |
23,657 | 2 | null | 20,054 | 0 | null | You should really talk them into allowing SQLite. It is super-simple to setup, and operates like Access would (as a file sitting next to the app on the same server).
| null | CC BY-SA 2.5 | null | 2008-08-22T22:22:16.540 | 2008-08-22T22:22:16.540 | null | null | 2,477 | null |
23,661 | 2 | null | 17,181 | 2 | null | Both mechanisms have value. Any decent test framework will catch the standard assert() anyway, so a test run that causes the assert to fail will result in a failed test.
I typically have a series of asserts at the start of each c++ method with a comment '// preconditions'; it's just a sanity check on the state I expec... | null | CC BY-SA 2.5 | null | 2008-08-22T22:24:14.350 | 2008-08-22T22:24:14.350 | null | null | 826 | null |
23,582 | 2 | null | 23,566 | 28 | null | IISReset restarts the entire webserver (including all associated sites). If you're just looking to reset a single ASP.NET website, you should just recycle that AppDomain.
The most common way to reset an ASP.NET website is to edit the web.config file, but you can also create an admin page with the following:
```
publi... | null | CC BY-SA 4.0 | null | 2008-08-22T21:43:34.793 | 2018-06-18T13:21:13.107 | 2018-06-18T13:21:13.107 | 3,739,391 | 5 | null |
23,660 | 2 | null | 23,610 | 3 | null | You need to go to the Active Directory Users Snap In after logging in as a domain admin on the machine:
1. Go to start --> run and type in mmc.
2. In the MMC console go to File -->
3. Add/Remove Snap-In Click Add Select
4. Active Directory Users and Computers and select Add.
5. Hit Close and then hit OK.
From here... | null | CC BY-SA 2.5 | null | 2008-08-22T22:23:50.703 | 2008-08-22T22:29:12.997 | 2008-08-22T22:29:12.997 | 324 | 324 | null |
23,663 | 2 | null | 23,610 | 0 | null | Thanks adeel825 & Michael Stum.
My problem is, though, i'm in a big corporation and do not have access to log in as the domain admin nor to view the active directory, so i guess my solution is to try and get that level of access.
| null | CC BY-SA 3.0 | null | 2008-08-22T22:26:09.073 | 2016-10-01T14:10:41.370 | 2016-10-01T14:10:41.370 | 2,360,798 | 1,580 | null |
23,617 | 2 | null | 9,877 | 5 | null | A nice looking, default, off the shelf, complete website could be more impressive than a poorly done, broken, tacked together, incomplete website. Perhaps start with something "off the shelf" but nice looking, keep it simple, professional, and then eventually add more custom functionality, style and content. Potential ... | null | CC BY-SA 2.5 | null | 2008-08-22T22:01:18.463 | 2008-08-26T14:16:22.197 | 2008-08-26T14:16:22.197 | 2,543 | 2,543 | null |
23,669 | 2 | null | 23,614 | 8 | null | Microsoft Reporting Services, and included with SQL Server 2005 and 2008.
Of course, this is great if you need a separation of report design and application, which for Enterprise applications is a huge plus.
However, if what you want is to be able to create "in application" dashboards, where "you" design the reports... | null | CC BY-SA 2.5 | null | 2008-08-22T22:33:18.870 | 2008-08-22T22:33:18.870 | null | null | 350 | null |
23,662 | 2 | null | 23,082 | 1 | null | My answer is let your developers choose the tools they are best with.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:25:34.397 | 2008-08-22T22:25:34.397 | null | null | 1,295 | null |
23,675 | 2 | null | 23,614 | 2 | null | +1 SSRS and ActiveReports. ryw, use ActiveReports and close the gates of Crystal Hell behind you forever.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:34:51.953 | 2008-08-22T22:34:51.953 | null | null | 414 | null |
23,679 | 2 | null | 23,610 | 0 | null | Well, AdExplorer runs on your Local Workstation (which is why I prefer it) and I believe that most users have read access to AD anyway because that's actually required for stuff to work, but I'm not sure about that.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:37:15.663 | 2008-08-22T22:37:15.663 | null | null | 91 | null |
23,666 | 2 | null | 23,640 | 1 | null | I do not have personal experience with this product, but [dokeos](http://www.dokeos.com/) is recommended by several people on other sites.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:29:51.483 | 2008-08-22T22:29:51.483 | null | null | 2,257 | null |
23,681 | 2 | null | 23,082 | 3 | null | Something that people don't tend to figure in his the time savings in Developer Hours between platforms.
Take for example, a WISA app vrs a LAMP app, The initial cost of the enviroment may be a $2000 difference, but that is made up in just 20 developer hours.
So, if by using .NET, you are able to trim 20 hours from d... | null | CC BY-SA 2.5 | null | 2008-08-22T22:39:40.320 | 2008-08-22T22:39:40.320 | null | null | 1,965 | null |
23,672 | 2 | null | 23,640 | 1 | null | @adeel - I think [this blog entry](http://injenuity.com/archives/64) can give you some details at least about one user that has tried [DimDim](http://www.dimdim.com/).
| null | CC BY-SA 2.5 | null | 2008-08-22T22:34:38.197 | 2008-08-22T22:34:38.197 | null | null | 2,257 | null |
23,689 | 1 | 631,134 | null | 27 | 6,053 | Does anyone know of a .NET date/time parser similar to [Chronic for Ruby](http://chronic.rubyforge.org/) (handles stuff like "tomorrow" or "3pm next thursday")?
Note: I do write Ruby (which is how I know about Chronic) but this project must use .NET.
| Natural language date/time parser for .NET? | CC BY-SA 2.5 | 0 | 2008-08-22T22:45:10.790 | 2015-08-01T09:41:49.043 | null | null | 521 | [
".net",
"datetime",
"nlp"
] |
23,635 | 2 | null | 23,578 | 18 | null | The GAC can also be used by assemblies that require elevated permissions to perform privileged operations on behalf of less trusted code (e.g. a partial trust ASP.NET application).
For example, say you have a partial trust ASP.NET application which needs to perform a task that would require elevated privileges, i.e. .... | null | CC BY-SA 3.0 | null | 2008-08-22T22:10:47.987 | 2014-11-12T14:43:14.760 | 2014-11-12T14:43:14.760 | 419 | 419 | null |
23,687 | 2 | null | 22,524 | 2 | null | For one, the shortcut is not "s" it is "s.lnk". E.g. you are not able to open a text file (say with notepad) by typing "t" when the name is "t.txt" :) [Technet says](http://technet.microsoft.com/en-us/library/cc723564.aspx#XSLTsection127121120120)
> The PATHEXT environment variable
defines the list of file extensi... | null | CC BY-SA 2.5 | null | 2008-08-22T22:43:10.610 | 2008-08-22T23:45:26.217 | 2008-08-22T23:45:26.217 | 1,635 | 1,635 | null |
23,676 | 2 | null | 23,082 | 11 | null | I think the first part is your Application. If you decide to go PHP, you almost automatically end up with LAMP, as WIMP or WISP stacks are quite rare (I think blog.stackoverflow.com runs on WIMP), and with .net you definitely want to go WISA.
So normally, it boils down to .net vs. PHP. (Ignoring Ruby, Python and all t... | null | CC BY-SA 3.0 | null | 2008-08-22T22:35:32.267 | 2015-04-27T10:09:19.803 | 2015-04-27T10:09:19.803 | 3,109,189 | 91 | null |
23,692 | 2 | null | 23,640 | 3 | null | The [BlindSide](http://code.google.com/p/blindside/) site also listed these other projects:
- [ePresence](http://www.epresence.tv/)- [OpenMeetings](http://code.google.com/p/openmeetings)- [DimDim](http://www.dimdim.com/)- [WebHuddle](http://www.webhuddle.com/)
All opensource as well.
| null | CC BY-SA 2.5 | null | 2008-08-22T22:46:06.250 | 2008-08-22T22:46:06.250 | null | null | 2,134 | null |
23,653 | 2 | null | 12,611 | 5 | null | I'm tackling exactly this problem, and I had completely spaced [iCalendar](http://en.wikipedia.org/wiki/ICalendar) ([rfc 2445](https://www.rfc-editor.org/rfc/rfc2445)) up until reading this thread, so I have no idea how well this will or won't integrate with that. Anyway the design I've come up with so far looks someth... | null | CC BY-SA 2.5 | null | 2008-08-22T22:19:10.480 | 2008-08-22T22:19:10.480 | 2021-10-07T05:57:16.573 | -1 | 1,458 | null |
23,700 | 2 | null | 23,569 | 33 | null | If you need to take the curvature of the earth into account, the Great-Circle distance is what you're looking for. [The Wikipedia article](http://en.wikipedia.org/wiki/Great-circle_distance) probably does a better job of explaining how the formula works than me, and there's also [this aviation formulary page](http://ww... | null | CC BY-SA 3.0 | null | 2008-08-22T22:53:00.587 | 2018-03-05T04:41:59.860 | 2018-03-05T04:41:59.860 | 1,402,846 | 2,567 | null |
23,702 | 2 | null | 23,603 | 2 | null | I think if I were going to do this, I would use tags. It would be pretty easy to write a script that would tag both repositories with the same ID each time you upgraded the library and used it in the project. Then, if you need to roll back to a previous version, you just see what its most recent tag was, and roll the... | null | CC BY-SA 2.5 | null | 2008-08-22T22:56:52.743 | 2008-08-22T22:56:52.743 | null | null | 2,363 | null |
23,694 | 2 | null | 22,524 | 5 | null | After adding `;.LNK` to the end of my `PATHEXT` environment variable, I can now execute shortcuts even without the preceding `./` notation. (Thanks bruceatk!)
I was also inspired by Steven's suggestion to create a little script that automatically aliases all the shortcuts in my `PATH` (even though I plan to stick with... | null | CC BY-SA 2.5 | null | 2008-08-22T22:48:05.403 | 2008-08-30T15:53:28.500 | 2008-08-30T15:53:28.500 | 2,495 | 2,495 | null |
23,709 | 2 | null | 23,610 | 2 | null | You do not need domain admin rights to at the active directory. By default, any (authenticated?) user can read the information that you need from the directory.
If that wasn't the case, for example, a computer (which has an associated account as well) could not verify the account and password of its user.
You only n... | null | CC BY-SA 2.5 | null | 2008-08-22T23:03:51.497 | 2008-08-22T23:03:51.497 | null | null | 2,230 | null |
23,643 | 2 | null | 23,564 | 17 | null | The key reason to separating internal business objects from the data contracts/message contracts is that you don't want internal changes to your app to necessarily change the service contract. If you're creating versioned web services (with more than 1 version of the implemented interfaces) then you often have a single... | null | CC BY-SA 2.5 | null | 2008-08-22T22:14:41.550 | 2008-08-22T22:14:41.550 | null | null | 2,562 | null |
23,665 | 2 | null | 23,640 | 6 | null | I know a few of the developers on the Carleton University developed [Blindside Project](http://code.google.com/p/blindside/). They are actively developing an open-source web conferencing and presentation tool for e-learning, with the intent of eventually offering university courses online.
It's pretty fully featured ... | null | CC BY-SA 3.0 | null | 2008-08-22T22:29:43.963 | 2012-03-04T05:10:09.890 | 2012-03-04T05:10:09.890 | 368,070 | 2,134 | null |
23,715 | 1 | 23,732 | null | 3 | 1,461 | Has anyone had any success running two different web servers -- such as Apache and CherryPy -- alongside each other on the same machine? I am experimenting with other web servers right now, and I'd like to see if I can do my experiments while keeping my other sites up and running. You could say that this isn't so muc... | Running Apache alongside another web server? | CC BY-SA 2.5 | 0 | 2008-08-22T23:06:43.437 | 2008-09-26T05:30:52.970 | 2008-09-26T05:30:52.970 | 2,321 | 2,321 | [
"linux",
"apache"
] |
23,723 | 2 | null | 23,715 | 0 | null | Alternatively, to Ishmaeel's correct answer, if you have a server with 2 network cards, you could have each server answer requests on different IP addresses.
| null | CC BY-SA 2.5 | null | 2008-08-22T23:12:27.513 | 2008-08-22T23:12:27.513 | null | null | 2,567 | null |
23,713 | 1 | 23,929 | null | 1 | 290 | The .NET Security Policy can be changed from a script by using . Say I will be distributing an application to several users on a local network. Most of those users will be unprivileged, standard accounts, so they will not have necessary permissions for the relevant command.
I think I shall be looking into domain logon... | .NET Security Policy change by standard users? | CC BY-SA 3.0 | null | 2008-08-22T23:06:00.490 | 2015-08-30T10:10:43.030 | 2015-08-30T10:10:43.030 | 1,245,190 | 227 | [
".net",
"windows",
"security"
] |
23,726 | 1 | null | null | 0 | 2,792 | What is the simplest way to install memcached on CentOS for someone new to the world of Linux? What is the best way to enable it for Apache and PHP
| What is the best way to setup memcached on CentOS to work with Apache and PHP | CC BY-SA 2.5 | 0 | 2008-08-22T23:18:26.233 | 2011-07-24T14:44:14.113 | null | null | 2,568 | [
"php",
"linux",
"memcached"
] |
23,731 | 2 | null | 23,569 | 0 | null | I've been doing a lot of work with this recently. I'm finding SQL2008's new features really make this easy. I can find all the points that are withing Xkm of a 100k record table in sub-second time...not too shabby.
The great circle (spherical assumption) method in my testing was about 2.5 miles off when compared to ... | null | CC BY-SA 2.5 | null | 2008-08-22T23:23:35.910 | 2008-08-22T23:23:35.910 | null | null | 1,975 | null |
23,718 | 2 | null | 23,715 | 0 | null | Your best bet would be putting Apache httpd in front of port 80 and relay requests meant for other servers through Apache by using modules. Most popular scenario would be Tomcat behind Apache where you'll be able to run both php and jsp applications.
I'm not familiar with CherryPy, so I can only suggest you look for a... | null | CC BY-SA 2.5 | null | 2008-08-22T23:09:55.350 | 2008-08-22T23:09:55.350 | null | null | 227 | null |
23,735 | 2 | null | 20,465 | 0 | null | Just an idea of something to try to see if it gives you more info: Try resizes the list object before the exception line and see if that also throws an exception. If not, try and resize the range object to the new size of the DataTable.
You say that this happens when the ListObject shrinks and grows. Does it also happ... | null | CC BY-SA 2.5 | null | 2008-08-22T23:27:01.360 | 2008-08-22T23:27:01.360 | null | null | 1,463 | null |
23,734 | 2 | null | 23,169 | 2 | null | Include a method:
```
void text(n){
builder.yield n
}
```
Most likely you (I) copied this code from somewhere that had a text method, but you didn't also copy the text method. Since MarkupBuilder accepts any name for the name of a tag and browsers ignore unknown markup, it just happened to work.
| null | CC BY-SA 2.5 | null | 2008-08-22T23:25:38.743 | 2008-08-22T23:25:38.743 | null | null | null | null |
23,693 | 2 | null | 23,277 | 106 | null | Basically the two styles, are like Yin and Yang. One is organized, while the other chaotic. There are situations when Functional programming is the obvious choice, and other situations were Procedural programming is the better choice. This is why there are at least two languages that have recently come out with a new v... | null | CC BY-SA 4.0 | null | 2008-08-22T22:46:24.250 | 2021-02-03T15:56:10.820 | 2021-02-03T15:56:10.820 | 4,751,173 | 1,337 | null |
23,739 | 2 | null | 22,801 | 0 | null | > With a foreach loop, a copy of the original array is made in memory to use inside.Foreach is nice, but has one important caveat: you can't modify the enumerable you're iterating.
Both of those won't be a problem if you pass by reference instead of value:
```
foreach ($array as &$value) {
```
I think this has been al... | null | CC BY-SA 2.5 | null | 2008-08-22T23:30:52.677 | 2008-08-22T23:30:52.677 | 2020-06-20T09:12:55.060 | -1 | 813 | null |
23,740 | 2 | null | 23,737 | 0 | null | I'm having the exact same issue, and from the JetBrains site, it looks like they sort-of know about it but aren't admitting anything. Turning off solution-wide analysis does seem to help quite a bit.
| null | CC BY-SA 2.5 | null | 2008-08-22T23:32:25.297 | 2008-08-22T23:32:25.297 | null | null | 414 | null |
23,703 | 2 | null | 21,934 | 3 | null | The latest Sun Java VM actually have multiple GC algorithms which you can tweak. The Java VM specifications intentionally omitted specifying actual GC behaviour to allow different (and multiple) GC algorithms for different VMs.
For example, for all the people who dislike the "stop-the-world" approach of the default S... | null | CC BY-SA 2.5 | null | 2008-08-22T22:58:36.080 | 2008-08-22T22:58:36.080 | null | null | 2,551 | null |
23,733 | 2 | null | 23,620 | 4 | null | TinyMCE only goes out of its way to disable spell-checking when you don't specify the `gecko_spellcheck` option (i verified this with their example code). Might want to double-check your `tinyMCE.init()` call - it should look something like this:
```
tinyMCE.init({
mode : "textareas",
theme : "simple",
gec... | null | CC BY-SA 2.5 | null | 2008-08-22T23:24:39.043 | 2008-08-22T23:24:39.043 | null | null | 811 | null |
23,738 | 1 | 23,754 | null | 2 | 3,405 | After reading a bit more about how Gnutella and other P2P networks function, I wanted to start my own peer-to-peer system. I went in thinking that I would find plenty of tutorials and language-agnostic guidelines which could be applied, however I was met with a vague simplistic overview.
I could only find very small,... | Why is Peer-to-Peer programming a hard topic to obtain good research for? | CC BY-SA 2.5 | 0 | 2008-08-22T23:28:23.200 | 2012-03-14T16:08:19.660 | 2012-03-14T16:08:19.660 | 50,776 | 1,662 | [
"networking",
"language-agnostic",
"p2p"
] |
23,737 | 1 | 23,768 | null | 14 | 10,778 | I'm using visual studio 2008 and [ReSharper](http://en.wikipedia.org/wiki/ReSharper) 4 and it's kind of slow. My machine has 2 GB of RAM, dual core processor and a 7200 rpm hard disk. I know more RAM and a faster hard disk could improve performance, but do you have any tips to improve ReSharper/Visual Studio performanc... | Do you have any tips to improve ReSharper and/or Visual Studio performance? | CC BY-SA 2.5 | 0 | 2008-08-22T23:27:21.050 | 2022-01-30T14:43:29.563 | 2009-12-10T19:54:20.690 | 63,550 | 1,560 | [
".net",
"visual-studio",
"performance",
"resharper"
] |
23,746 | 2 | null | 23,569 | 0 | null | @Jared - a minor correction to your code example. The last line of the first code example should read:
```
dist = sqrt(dx*dx + dy*dy);
```
| null | CC BY-SA 2.5 | null | 2008-08-22T23:44:18.340 | 2008-08-22T23:44:18.340 | null | null | 2,030 | null |
23,754 | 2 | null | 23,738 | 1 | null | I had to write a basic Gnutella client in C# using Web Services and I think the class notes on the P2P stuff are still available [here](http://www.cs.virginia.edu/~humphrey/cs451/ClassNotes/CS451_DisSys_0327.pdf) and [here](http://www.cs.virginia.edu/~humphrey/cs451/ClassNotes/CS451_DisSys_0329.pdf).
| null | CC BY-SA 2.5 | null | 2008-08-22T23:48:40.013 | 2008-08-22T23:48:40.013 | null | null | 2,016 | null |
23,747 | 2 | null | 23,738 | 1 | null | You might have better success researching Bittorrent, I believe that the creator has written some papers, and it seems others are as well.
[BitTyrant](http://bittyrant.cs.washington.edu/#papers)
[Bittorent.org, see the developers section](http://bittorrent.org/)
| null | CC BY-SA 2.5 | null | 2008-08-22T23:44:22.380 | 2008-08-22T23:44:22.380 | null | null | 2,567 | null |
23,732 | 2 | null | 23,715 | 7 | null | You can't have two processes bound to the same port on the same IP address. You can add another IP address to the box and have each server listen on one.
Another option is to proxy pass one server to the other. With Apache, you could do something like:
```
NameVirtualHost *
<virtualhost *>
ServerName other.site.com... | null | CC BY-SA 2.5 | null | 2008-08-22T23:24:25.377 | 2008-08-22T23:24:25.377 | null | null | 2,506 | null |
23,748 | 2 | null | 23,738 | 1 | null | I don't know what platform you are trying to use, but here is [a decent article on the subject for .NET](http://msdn.microsoft.com/en-us/magazine/cc188685.aspx).
| null | CC BY-SA 2.5 | null | 2008-08-22T23:45:15.123 | 2008-08-22T23:45:15.123 | null | null | 1,790 | null |
23,755 | 1 | 23,769 | null | 76 | 12,136 | When implementing a needle search of a haystack in an object-oriented way, you essentially have three alternatives:
```
1. needle.find(haystack)
2. haystack.find(needle)
3. searcher.find(needle, haystack)
```
Which do you prefer, and why?
I know some people prefer the second alternative because it avoids introduc... | How do you find a needle in a haystack? | CC BY-SA 2.5 | 0 | 2008-08-22T23:49:32.697 | 2018-01-04T21:18:13.237 | 2008-08-28T19:00:08.973 | 35 | 1,709 | [
"oop",
"class-design",
"program-structure"
] |
23,758 | 2 | null | 23,755 | 1 | null | Personally, I like the second method. My reasoning is because the major APIs I have worked with use this approach, and I find it makes the most sense.
If you have a list of things (haystack) you would search for (find()) the needle.
| null | CC BY-SA 2.5 | null | 2008-08-22T23:55:29.983 | 2008-08-22T23:55:29.983 | null | null | 392 | null |
23,760 | 2 | null | 23,755 | 15 | null | I would say that option 1 is completely out. The code should read in a way that tells you what it does. Option 1 makes me think that this needle is going to go find me a haystack.
Option 2 looks good if a haystack is meant to contain needles. ListCollections are always going to contain ListItems, so doing collectio... | null | CC BY-SA 2.5 | null | 2008-08-22T23:56:06.237 | 2008-08-22T23:56:06.237 | null | null | 1,470 | null |
23,750 | 2 | null | 22,801 | 0 | null | When accessing the elements of an array, for clarity I would use a foreach whenever possible, and only use a for if you need the actual index values (for example, the same index in multiple arrays). This also minimizes the chance for typo mistakes since for loops make this all too easy. In general, PHP might not be the... | null | CC BY-SA 2.5 | null | 2008-08-22T23:47:01.500 | 2008-08-22T23:47:01.500 | null | null | 2,543 | null |
23,763 | 1 | 27,185 | null | 5 | 10,477 | I'm working on some code to colorize an image in Java. Basically what I'd like to do is something along the lines of GIMP's colorize command, so that if I have a BufferedImage and a Color, I can colorize the Image with the given color. Anyone got any ideas? My current best guess at doing something like this is to get t... | Colorizing images in Java | CC BY-SA 2.5 | 0 | 2008-08-22T23:57:13.863 | 2018-10-11T19:52:47.677 | 2008-09-10T00:13:41.957 | -1 | 85 | [
"java",
"colors",
"bufferedimage",
"colorize"
] |
23,762 | 2 | null | 21,137 | 1 | null | Man, they have VS 2008 project template listed in their [release notes](http://nunit.com/index.php?p=releaseNotes&r=2.5). I guess that doesn't mean they have it integrated with the dialog yet.
I use [MbUnit](http://www.mbunit.com/) with [Gallio](http://www.gallio.org/) and everything worked like a charm. I had to in... | null | CC BY-SA 2.5 | null | 2008-08-22T23:57:06.033 | 2008-08-22T23:57:06.033 | null | null | 1,117 | null |
23,777 | 2 | null | 23,770 | 11 | null | In the past I have used triggers to construct db update/insert/delete logging.
You could insert a record each time one of the above actions is done on a specific table into a logging table that keeps track of the action, what db user did it, timestamp, table it was performed on, and previous value.
There is probabl... | null | CC BY-SA 4.0 | null | 2008-08-23T00:12:10.443 | 2019-04-25T01:44:19.517 | 2019-04-25T01:44:19.517 | 722,393 | 1,797 | null |
23,771 | 2 | null | 23,614 | 0 | null | I agree that is generally the right choice. But for flashy and embedded in an HTML page, I like [Dundas](http://www.dundas.com/). Their stuff looks good out of the box, has an easy-to-understand API, and is painless to get up and running.
| null | CC BY-SA 2.5 | null | 2008-08-23T00:06:32.123 | 2008-08-23T00:06:32.123 | null | null | 308 | null |
23,769 | 2 | null | 23,755 | 53 | null | Usually actions should be applied to what you are doing the action on... in this case the haystack, so I think option 2 is the most appropriate.
You also have a fourth alternative that I think would be better than alternative 3:
```
haystack.find(needle, searcher)
```
In this case, it allows you to provide the mann... | null | CC BY-SA 2.5 | null | 2008-08-23T00:05:20.397 | 2008-08-23T00:05:20.397 | null | null | 122 | null |
23,785 | 2 | null | 14,656 | 28 | null | The comment by Rory that the proxy would have to use a self-signed cert if not stricltly true.
The proxy could be implemented to generate a new cert for each new SSL host it is asked to deal with and sign it with a common root cert. In the OP's scenario of a corportate environment the common signing cert can rather e... | null | CC BY-SA 2.5 | null | 2008-08-23T00:19:47.663 | 2008-08-23T00:19:47.663 | null | null | 2,508 | null |
23,768 | 2 | null | 23,737 | 8 | null |
-
-
[recent Service Pack](http://msdn.microsoft.com/en-us/vstudio/products/cc533447.aspx)
-
| null | CC BY-SA 2.5 | null | 2008-08-23T00:03:13.770 | 2008-08-23T00:03:13.770 | null | null | 308 | null |
23,756 | 2 | null | 23,755 | 5 | null | This entirely depends on what varies and what stays the same.
For example, I am working on a (non-OOP) [framework](http://www.seqan.de/) where the find algorithm is different depending both on the type of the needle and the haystack. Apart from the fact that this would require double-dispatch in an object-oriented env... | null | CC BY-SA 2.5 | null | 2008-08-22T23:54:48.720 | 2008-08-22T23:54:48.720 | null | null | 1,968 | null |
23,780 | 2 | null | 23,770 | 24 | null | One strategy you could use is MVCC, Multi-Value Concurrency Control. In this scheme, you never do updates to any of your tables, you just do inserts, maintaining version numbers for each record. This has the advantage of providing an exact snapshot from any point in time, and it also completely sidesteps the update l... | null | CC BY-SA 2.5 | null | 2008-08-23T00:14:00.483 | 2008-08-23T00:14:00.483 | null | null | 1,219 | null |
23,781 | 2 | null | 22,708 | 11 | null | A language agnostic algorithm would be as follows:
```
function getNthColumnName(int n) {
let curPower = 1
while curPower < n {
set curPower = curPower * 26
}
let result = ""
while n > 0 {
let temp = n / curPower
let result = result + char(temp)
set n = n - (curPower * temp)
... | null | CC BY-SA 2.5 | null | 2008-08-23T00:15:11.900 | 2008-08-23T00:15:11.900 | null | null | 2,470 | null |
23,794 | 2 | null | 23,787 | 1 | null | Put the code in a method and you save a temporary and a `break` (and you recycle code, as a bonus):
```
T Find<T>(IEnumerable<T> items, Predicate<T> p) {
foreach (T item in items)
if (p(item))
return item;
return null;
}
```
… but of course this method already exists anyway for Lists, ev... | null | CC BY-SA 2.5 | null | 2008-08-23T00:31:56.900 | 2008-08-23T00:31:56.900 | null | null | 1,968 | null |
23,778 | 2 | null | 23,726 | 1 | null | Unless Apache and PHP have some option to utilize memcached for internal workings (of which I am unaware of), you typically don't "enable" it for such apps. Instead, you would get a [client library](http://www.danga.com/memcached/apis.bml) to use memcached from within your application, then start up memcached on whate... | null | CC BY-SA 2.5 | null | 2008-08-23T00:12:59.003 | 2008-08-23T00:12:59.003 | null | null | 122 | null |
23,800 | 2 | null | 23,787 | 4 | null | Using a Lambda expression:
```
List<MyObject> list = new List<MyObject>();
// populate the list with objects..
return list.Find(o => o.Id == myCriteria);
```
| null | CC BY-SA 2.5 | null | 2008-08-23T00:41:22.930 | 2008-08-23T00:41:22.930 | null | null | 2,572 | null |
23,798 | 2 | null | 23,228 | 4 | null | Maybe the .NET designers did it this way because JAVA did it this way...
Embrace and extend. :)
See: [http://discuss.techinterview.org/default.asp?joel.3.349728.40](http://discuss.techinterview.org/default.asp?joel.3.349728.40)
| null | CC BY-SA 2.5 | null | 2008-08-23T00:38:38.647 | 2008-08-23T00:38:38.647 | null | null | 814 | null |
23,799 | 2 | null | 23,787 | 17 | null | > @ Konrad: So how do you use it? Let's say I want to match mo.ID to magicNumber.
In C# 2.0 you'd write:
```
result = mObjList.Find(delegate(int x) { return x.ID == magicNumber; });
```
3.0 knows lambdas:
```
result = mObjList.Find(x => x.ID == magicNumber);
```
| null | CC BY-SA 2.5 | null | 2008-08-23T00:41:01.387 | 2008-08-23T00:41:01.387 | null | null | 1,968 | null |
23,802 | 1 | 24,106 | null | 3 | 3,037 | I'm wondering what the best practice is for handling the problem with having to "include" so many files in my PHP scripts in order to ensure that all the classes I need to use are accessible to my script.
Currently, I'm just using [include_once](http://php.net/manual/en/function.include-once.php) to include the class... | How to handle including needed classes in PHP | CC BY-SA 3.0 | 0 | 2008-08-23T00:43:18.090 | 2016-05-18T12:54:21.203 | 2016-05-18T12:54:21.203 | 4,311,889 | 1,862 | [
"php",
"class",
"include",
"autoload"
] |
23,805 | 2 | null | 23,802 | 0 | null | `__autoload` works well if you have a consistent naming convention for your classes that tell the function where they're found inside the directory tree. MVC lends itself particularly well for this kind of thing because you can easily split the classes into models, views and controllers.
Alternatively, keep an associa... | null | CC BY-SA 2.5 | null | 2008-08-23T00:46:44.273 | 2008-08-23T00:46:44.273 | null | null | 1,968 | null |
23,806 | 2 | null | 23,802 | 0 | null | `__autoload` will work, but only in PHP 5.
| null | CC BY-SA 3.0 | null | 2008-08-23T00:48:23.460 | 2013-10-22T18:57:12.093 | 2013-10-22T18:57:12.093 | 404,623 | 1,935 | null |
23,809 | 2 | null | 14,656 | 1 | null | I think you should just use SSL and rely on an HTTP client library that does caching (Ex: WinInet on windows). It's hard to imagine that the benefits of enterprise wide caching is worth the pain of writing a custom security encryption scheme or certificate fun on the proxy. Worse, on the encryption scheme you mention, ... | null | CC BY-SA 3.0 | null | 2008-08-23T01:01:24.677 | 2016-03-26T17:56:47.653 | 2016-03-26T17:56:47.653 | 759,866 | 2,564 | null |
23,811 | 2 | null | 23,603 | 3 | null | An option that might work for you is to use an svn:external reference to the library. When tagging the project, you can do one of two things:
- -
Since the svn:external metadata will be part of the main project's commit history, you can always get the tag on the main project and it will refer to the correct version ... | null | CC BY-SA 2.5 | null | 2008-08-23T01:04:38.943 | 2008-08-23T01:04:38.943 | null | null | 748 | null |
23,795 | 2 | null | 23,763 | 8 | null | Let `Y = 0.3*R + 0.59*G + 0.11*B` for each pixel in the image, then set them to be
`((R1+Y)/2,(G1+Y)/2,(B1+Y)/2)`
if `(R1,G1,B1)` is what you are colorizing with.
| null | CC BY-SA 2.5 | null | 2008-08-23T00:32:58.317 | 2008-08-23T00:32:58.317 | null | null | 1,490 | null |
23,804 | 2 | null | 8,365 | 1 | null | Compatibility mode - the mode that helps you create exports compabible with different versions of MYSQL or other databases.
You see, some versions of MySQL had different commands that were used in various versions. So what compatibility mode allows you to do is take a database and export the SQL to be compatible with... | null | CC BY-SA 3.0 | null | 2008-08-23T00:46:30.907 | 2012-08-11T16:12:21.410 | 2012-08-11T16:12:21.410 | 1,477,076 | 1,935 | null |