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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,200 | 2 | null | 5,842 | 15 | null | I had an application that worked likewise: an MS Access frontend to a MySQL backend. It was such a huge pain that I ended up writing a Win32 frontend instead. From the top of my head, I encountered the following problems:
- - - - - -
One possible alternative would be to put the backend (with the data) on a shared dr... | null | CC BY-SA 2.5 | null | 2008-08-12T20:02:41.557 | 2008-08-12T20:02:41.557 | null | null | 1,037 | null |
9,206 | 2 | null | 9,173 | 0 | null | grep your project folder. It could be a hidden reference in your project, or a project that your project references. Cleanse with Notepad if needed.
| null | CC BY-SA 2.5 | null | 2008-08-12T20:06:20.740 | 2008-08-12T20:06:20.740 | null | null | 414 | null |
9,208 | 2 | null | 7,940 | 1 | null | My approach tends to be to ensure I can completely validate on all pages, however I still send the page as text/html instead of application/xhtml+xml so there are no ugly XML errors in the event I have missed something.
| null | CC BY-SA 2.5 | null | 2008-08-12T20:08:39.843 | 2008-08-12T20:08:39.843 | null | null | 428,190 | null |
9,210 | 2 | null | 9,204 | 25 | null | The best way to do this is to use ILDASM to disassemble the managed binary, which will generate the IL instructions. Then recompile that IL source code in debug mode using ILASM, when you fire up the Visual Studio debugger you will be able to step through the raw IL.
1. ildasm foo.exe /OUT=foo.exe.il /SOURCE
2. ilasm... | null | CC BY-SA 3.0 | null | 2008-08-12T20:10:38.653 | 2017-07-21T18:42:11.757 | 2017-07-21T18:42:11.757 | 70,345 | 322 | null |
9,213 | 2 | null | 9,091 | 4 | null | These are the example class files for different languages found in the MediaInfo.dll zip
- - - - - - - - -
You do have to use interop and I don't know if you can edit tags, I've never needed to do that but it's pretty much a swiss army knife at least for getting media information from files.
[Link to downloads page... | null | CC BY-SA 2.5 | null | 2008-08-12T20:18:03.930 | 2008-08-12T20:18:03.930 | null | null | 1,147 | null |
9,212 | 2 | null | 9,002 | 2 | null | Have you tried
```
sysmail_stop_sp
```
then
```
sysmail_start_sp
```
| null | CC BY-SA 2.5 | null | 2008-08-12T20:17:14.570 | 2008-08-12T20:17:14.570 | null | null | 414 | null |
9,215 | 2 | null | 9,191 | 1 | null | It does seem a little strange that you see no difference across quite a wide range of windows versions and nothing between a single drive and hardware raid-5.
It's only 'gut feel', but that does make me doubtful that this is really a simple seeking problem. Other than the OS X and the Raid5, was all this tried on ... | null | CC BY-SA 2.5 | null | 2008-08-12T20:20:17.217 | 2008-08-12T20:20:17.217 | null | null | 987 | null |
9,217 | 2 | null | 9,122 | 3 | null | At first I thought you could use regular expressions, but as I've been reading the [MYSQL docs](http://dev.mysql.com/doc/refman/5.0/en/select.html) it seems you can't. If I were you I would use another language (such as PHP) to generate a list of columns you want to get, store it as a string and then use that to genera... | null | CC BY-SA 2.5 | null | 2008-08-12T20:27:31.897 | 2008-08-12T20:27:31.897 | null | null | 1,063 | null |
9,214 | 2 | null | 7,398 | 2 | null | It's definitely a hack, but I post-process the autogen'd `config.h` file:
```
sed -e 's/.*PACKAGE_.*//' < config.h > config.h.sed && mv config.h.sed config.h
```
This is tolerable in our build environment but I'd be interested in a cleaner way.
| null | CC BY-SA 3.0 | null | 2008-08-12T20:18:22.180 | 2015-10-08T01:12:02.947 | 2015-10-08T01:12:02.947 | 67,579 | 1,146 | null |
9,220 | 2 | null | 9,173 | 1 | null | Thanks for your answers so far. I've tried every suggestion (except one) to no avail.
The suggestion I haven't tried is to create a new project and add all my stuff to it, the thought of which really tests my will to live. ;) I may try this tomorrow if I can be bothered. Thanks again.
| null | CC BY-SA 2.5 | null | 2008-08-12T20:38:39.597 | 2008-08-12T20:38:39.597 | null | null | 1,135 | null |
9,216 | 2 | null | 9,204 | 0 | null | ISTR there's a debugger plug-in for Reflector.
Not used it myself, though I have used TestDriven.net to debug a 3rd-party assembly with the aid of Reflector:
[weblogs.asp.net/nunitaddin](http://weblogs.asp.net/nunitaddin/archive/2006/11/05/Debug-With-Reflector.aspx)
| null | CC BY-SA 3.0 | null | 2008-08-12T20:24:21.310 | 2013-01-23T04:57:36.350 | 2013-01-23T04:57:36.350 | 1,410,342 | 987 | null |
9,219 | 2 | null | 9,204 | 0 | null | Here is an [article](http://blogs.msdn.com/jmstall/archive/2004/10/03/237137.aspx) about IL debugging. It says you can't do it and then talks about ways to do it. There is also some info in the comments about doing it also.
| null | CC BY-SA 2.5 | null | 2008-08-12T20:38:34.947 | 2008-08-12T20:38:34.947 | null | null | 791 | null |
9,222 | 2 | null | 9,122 | 2 | null | While I agree with Thomas' answer (+1 ;)), I'd like to add the caveat that I'll assume the column that you want contains hardly any data. If it contains enormous amounts of text, xml or binary blobs, then take the time to select each column individually. Your performance will suffer otherwise. Cheers!
| null | CC BY-SA 2.5 | null | 2008-08-12T20:43:21.210 | 2008-08-12T20:43:21.210 | null | null | 611 | null |
9,226 | 2 | null | 9,173 | 1 | null | There is really nothing very mysterious about VS projects nowadays - it's all text files, etc. SOMETHING must reference that class/dll, and that something must be part of your project.
Have you really grep'd or findstr'd the whole solution tree, , for a reference to that exception?
| null | CC BY-SA 2.5 | null | 2008-08-12T20:46:22.763 | 2008-08-12T20:46:22.763 | null | null | 987 | null |
9,223 | 2 | null | 9,091 | 1 | null | I used COM interop to access [DirectShow's Media Detector](http://msdn.microsoft.com/en-us/library/ms785892(VS.85).aspx) functionality.
This does work pretty well, but it's a right pain in the backside. You need to know lots about COM, win32 interop, and so on.
You can also use [DirectShowNet](http://directshownet.so... | null | CC BY-SA 2.5 | null | 2008-08-12T20:45:00.800 | 2008-08-12T20:45:00.800 | null | null | 234 | null |
9,218 | 2 | null | 5,078 | 5 | null | It's important to follow security best practices wherever possible, but you don't want to make things unduly difficult for yourself or lose sleep worrying about keeping up with the latest exploits. In my experience, there are two key things that can help keep your personal server secure enough to throw up on the intern... | null | CC BY-SA 2.5 | null | 2008-08-12T20:33:45.253 | 2008-08-12T20:33:45.253 | null | null | 1,135 | null |
9,233 | 2 | null | 9,228 | 3 | null | Connection pooling is a mechanism to re-use connections, as establishing a new connection is slow.
If you use an MSSQL connection string and System.Data.SqlClient then you're already using it - in .Net this stuff is under the hood most of the time.
A loop of 30k iterations might be better as a server side cursor (loo... | null | CC BY-SA 2.5 | null | 2008-08-12T20:53:40.690 | 2008-08-12T20:53:40.690 | null | null | 905 | null |
9,236 | 2 | null | 5,949 | 4 | null | We use GUIDs as primary keys for all our tables as it doubles as the RowGUID for MS SQL Server Replication. Makes it very easy when the client suddenly opens an office in another part of the world...
| null | CC BY-SA 2.5 | null | 2008-08-12T21:00:12.877 | 2008-08-12T21:00:12.877 | null | null | 1,008 | null |
9,228 | 1 | 9,233 | null | 3 | 2,451 | - - - - - -
| ADO.NET Connection Pooling & SQLServer | CC BY-SA 2.5 | null | 2008-08-12T20:48:30.513 | 2009-07-17T11:27:44.287 | 2009-07-17T11:27:44.287 | 76,337 | 357 | [
"sql-server",
"performance",
"ado.net"
] |
9,204 | 1 | null | null | 30 | 11,246 | Is there any IL level debugger in form of a VS plugin or standalone application?
Visual studio’s debugger is great, but it allows you to debug on either HLL code level or assembly language, you can’t debug IL.
It seems that in some situations it would be useful to have an opportunity to debug at IL level.
In particu... | IL level code debugger | CC BY-SA 3.0 | 0 | 2008-08-12T20:06:13.843 | 2017-07-21T18:42:11.757 | 2013-01-28T19:07:38.260 | 414 | 578 | [
".net",
"debugging",
"il"
] |
9,230 | 2 | null | 7,940 | 1 | null | For me, I feel like I've done a good job if my code validates. Seeing the green check box on the w3c pages just makes me slightly giddy. As for group b, They usually only care that it looks and works the same across browsers. They only place I've found that this is not true is the government sector. They require comple... | null | CC BY-SA 2.5 | null | 2008-08-12T20:49:23.367 | 2008-08-12T20:49:23.367 | null | null | 1,063 | null |
9,235 | 2 | null | 2,988 | 2 | null | [The Algorithm Design Manual](https://rads.stackoverflow.com/amzn/click/com/0387948600) contains some interesting case studies with creative use of graphs. Despite its name, the book is very readable and even entertaining at times.
| null | CC BY-SA 2.5 | null | 2008-08-12T20:59:54.327 | 2008-08-12T20:59:54.327 | null | null | 1,146 | null |
9,231 | 1 | 9,260 | null | 8 | 1,284 | I was recently tasked with coming up with an offsite backup strategy. We have about 2TB of data that would need to be backed up so our needs are a little out of the norm.
I looked into Iron Mountain and they wanted $12,000 a month!
Does anyone have any suggestions on how best to handle backing up this much data on ... | Offsite backups | CC BY-SA 2.5 | null | 2008-08-12T20:49:54.003 | 2013-11-24T07:53:34.813 | 2008-08-21T20:29:03.683 | 538 | 538 | [
"backup",
"offsite"
] |
9,241 | 2 | null | 9,228 | 2 | null | A little more info on the connection pooling thing... you're using it already with SqlClient, but only if your connection string is identical for each new connection you open. My understanding is that the framework will pool connections automatically when it can, but if the connection string varies even slightly from o... | null | CC BY-SA 2.5 | null | 2008-08-12T21:07:35.233 | 2008-08-12T21:07:35.233 | null | null | 821 | null |
9,242 | 2 | null | 8,441 | 1 | null | Just so you know why that rule doesn't work:
The reason that it isn't able to rewrite to `/home/other_files/file.html` is that mod_rewrite is parsing the path as `/home/webroot/home/other_files/file.html` since from mod_rewrite's point of view the preceding slash is equivalent to your document root of `/home/webroot`.
... | null | CC BY-SA 4.0 | null | 2008-08-12T21:08:45.667 | 2020-12-12T00:49:48.793 | 2020-12-12T00:49:48.793 | 369,434 | 145 | null |
9,247 | 2 | null | 9,228 | 0 | null | I second Keith; if you're calling a stored procedure 30,000 times, you have far bigger problems than connection pooling.
| null | CC BY-SA 2.5 | null | 2008-08-12T21:13:21.850 | 2008-08-12T21:13:21.850 | null | null | 414 | null |
9,240 | 1 | 9,502 | null | 12 | 5,056 | Say you have an application divided into 3-tiers: GUI, business logic, and data access. In your business logic layer you have described your business objects: getters, setters, accessors, and so on... you get the idea. The interface to the business logic layer guarantees safe usage of the business logic, so all the met... | Interfaces on different logic layers | CC BY-SA 3.0 | 0 | 2008-08-12T21:06:38.650 | 2014-03-08T23:39:32.960 | 2014-03-08T23:39:32.960 | 1,644,214 | null | [
"architecture"
] |
9,245 | 2 | null | 8,569 | 3 | null | Start here - I actually think it's among the best Software Dev books that I've read.
[Expert Spring MVC And Web Flow](http://books.google.com/books?id=L7d0LNpSrRwC&dq=expert+spring+mvc+and+web+flow&pg=PP1&ots=GC7894yug6&sig=xndzQdG2YWy27Ffx6kR1rXQwxf0&hl=en&sa=X&oi=book_result&resnum=1&ct=result)
Learn the new Annotat... | null | CC BY-SA 2.5 | null | 2008-08-12T21:11:13.243 | 2008-08-12T23:49:30.553 | 2008-08-12T23:49:30.553 | 543 | 543 | null |
9,246 | 2 | null | 9,231 | 2 | null | 2TB is chump change nowadays.
Look into hard-drive based hot-swappable backup machines, and rent a box at your local bank:
[http://www.high-rely.com/](http://www.high-rely.com/) (there are many more products such as this, but my Google-time is limited).
| null | CC BY-SA 2.5 | null | 2008-08-12T21:11:53.400 | 2008-08-12T21:11:53.400 | null | null | 414 | null |
9,249 | 2 | null | 9,231 | 5 | null | [Amazon S3](http://www.amazon.com/gp/browse.html?node=16427261) might fit your budget better. I don't know if there is software available to automate the backup process but it's rather easy to write your own code to handle this. Here's their [pricing calculator](http://calculator.s3.amazonaws.com/calc5.html?).
Accor... | null | CC BY-SA 2.5 | null | 2008-08-12T21:14:16.170 | 2008-08-12T21:14:16.170 | null | null | 72 | null |
9,252 | 2 | null | 9,231 | 2 | null | [Jungle Disk](http://www.jungledisk.com/index.aspx) is one such piece of software that can automate the backup process to Amazon S3. I use it for backup at home, but I guess it could work just as well from a server. Also, there are probably other backup tools that make use of S3 for offsite storage.
| null | CC BY-SA 2.5 | null | 2008-08-12T21:19:50.013 | 2008-08-12T21:19:50.013 | null | null | 803 | null |
9,251 | 2 | null | 9,240 | 0 | null | It could be a solution, as it would not erode the interface. I guess you could have a class like this:
```
public class BusinessObjectRecord : BusinessObject
{
}
```
| null | CC BY-SA 2.5 | null | 2008-08-12T21:18:44.650 | 2008-08-12T21:18:44.650 | null | null | null | null |
9,191 | 1 | 9,826 | null | 26 | 9,030 | I'd like to ask a question then follow it up with my own answer, but also see what answers other people have.
We have two large files which we'd like to read from two separate threads concurrently. One thread will sequentially read fileA while the other thread will sequentially read fileB. There is no locking or com... | How to obtain good concurrent read performance from disk | CC BY-SA 2.5 | 0 | 2008-08-12T19:50:13.440 | 2015-04-20T08:26:01.877 | 2008-10-10T11:06:19.557 | 6,899 | 755 | [
"windows",
"multithreading",
"file-io"
] |
9,250 | 2 | null | 9,240 | 0 | null | I always create a separate assembly that contains:
- - -
Btw. Why would you define methods in the business logic tier to accommodate the data tier?
The data tier should have no reason to even know there is a business tier..
| null | CC BY-SA 2.5 | null | 2008-08-12T21:16:50.987 | 2008-08-12T21:21:06.780 | 2008-08-12T21:21:06.780 | 960 | 960 | null |
9,256 | 1 | 16,362 | null | 5 | 1,501 | Thanks to FireFox's buggy implementation of ActiveX components (it really should take an image of them when printing) Flex components (in our case charts) don't print in FX.
They print fine in IE7, even IE6.
We need these charts to print, but they also have dynamic content. I don't really want to draw them again as ... | How print Flex components in FireFox3? | CC BY-SA 3.0 | 0 | 2008-08-12T21:27:40.200 | 2015-03-15T19:51:31.420 | 2015-03-15T19:51:31.420 | 3,653,989 | 905 | [
"apache-flex",
"actionscript-3",
"firefox"
] |
9,259 | 2 | null | 9,231 | 1 | null | As for pure online solutions, make sure you do some back-of-the-envelope calculations first. For example, if you have 2TB of churn a month, you are going to saturate a 1Mb Internet connection just for your backup traffic!
| null | CC BY-SA 2.5 | null | 2008-08-12T21:28:13.570 | 2008-08-12T21:28:13.570 | null | null | 414 | null |
9,257 | 2 | null | 9,240 | 0 | null | What do you mean by that the data tier should not be aware of the business logic tier? How would you fill an business object with data?
I often do this:
```
namespace Data
{
public class BusinessObjectDataManager
{
public void SaveObject(BusinessObject object)
{
// Exec store... | null | CC BY-SA 2.5 | null | 2008-08-12T21:28:05.753 | 2008-08-12T21:28:05.753 | null | null | null | null |
9,258 | 2 | null | 9,240 | 5 | null | This is a classic problem - separating your domain model from your database model. There are several ways to attack it, it really depends on the size of your project in my opinion. You could use the repository pattern as others have said. If you are using .net or java you could use [NHibernate](http://www.hibernate.org... | null | CC BY-SA 2.5 | null | 2008-08-12T21:28:09.823 | 2008-08-17T15:08:55.440 | 2008-08-17T15:08:55.440 | 230 | 230 | null |
9,260 | 2 | null | 9,231 | 8 | null | You can buy external eSATA RAID boxes in the 8TB capacity range [for $2600](http://www.newegg.com/Product/Product.aspx?Item=N82E16822101110). I'm not saying that particular product is the right choice, but that's the kind of box that will do 6TB in RAID5 and still be portable enough to buy a couple of them and rotate t... | null | CC BY-SA 2.5 | null | 2008-08-12T21:29:01.243 | 2008-08-12T21:29:01.243 | null | null | 1,124 | null |
9,267 | 2 | null | 9,191 | 0 | null | Do you use [IOCompletionPorts](http://msdn.microsoft.com/en-us/library/aa363862(VS.85).aspx) under Windows? Windows via C++ has an in-depth chapter on this subject and as luck would have it, [it is also available on MSDN](http://msdn.microsoft.com/en-us/library/cc500399.aspx).
| null | CC BY-SA 2.5 | null | 2008-08-12T21:38:05.017 | 2008-08-12T21:38:05.017 | null | null | 342 | null |
9,269 | 2 | null | 8,681 | 11 | null | turns out the problem was in the
```
{ debug : true }
```
option for the JQuery.Validate initializer. Thanks to Jörn Zaefferer for helping us figure this out!
Oh, and the $50 will be donated to the JQuery project. :)
| null | CC BY-SA 2.5 | null | 2008-08-12T21:41:17.363 | 2008-08-12T21:41:17.363 | null | null | 1 | null |
9,270 | 2 | null | 9,173 | 2 | null | I agree with the other comments here.. There is a reference, in plain text !
I have had similar problems in the past where searching through the project files returned nothing, turns out it was in some other file that wasn't automatically picked up in the search.
I don't think that creating a new project is the soluti... | null | CC BY-SA 2.5 | null | 2008-08-12T21:41:46.053 | 2008-08-12T21:41:46.053 | 2020-06-20T09:12:55.060 | -1 | 832 | null |
9,263 | 2 | null | 9,228 | -3 | null | Your question was also partially answered by [this thread](https://stackoverflow.com/questions/8223/connection-pooling-in-netmssql). A search would have revealed this.. The definition of Connection Pooling, of which a [Google](http://www.google.com/search?q=connection+pooling) would have answered with the first hit bei... | null | CC BY-SA 2.5 | null | 2008-08-12T21:32:20.643 | 2008-08-12T21:32:20.643 | 2017-05-23T10:32:50.377 | -1 | 832 | null |
9,272 | 1 | 971,143 | null | 93 | 47,369 | Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?
EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the January 2009 release.
| How to find untracked files in a Perforce tree? (analogue of svn status) | CC BY-SA 3.0 | 0 | 2008-08-12T21:44:32.070 | 2023-01-25T07:27:40.417 | 2023-01-25T07:27:40.417 | 116 | 1,146 | [
"version-control",
"language-agnostic",
"perforce"
] |
9,273 | 2 | null | 8,681 | 0 | null | I'm not up on .NET but I'm guessing YSOD implies uncaught errors, if that's the case then isn't relying on client-side validation alone a little risky? If not then errors that are caught can be converted to something useful for the Opera crowd - even if it is just a Screen Of Death painted white with validation grumble... | null | CC BY-SA 2.5 | null | 2008-08-12T21:46:43.250 | 2008-08-12T21:46:43.250 | null | null | 199 | null |
9,275 | 1 | 9,325 | null | 2 | 10,046 | I writing a report in Visual Studio that takes a user input parameter and runs against an ODBC datasource. I would like to write the query manually and have reporting services replace part of the where clause with the parameter value before sending it to the database. What seems to be happening is that the `@parmName` ... | Using Parameters in MS Reporting Services (SQL Server 2008) against an ODBC data source | CC BY-SA 3.0 | null | 2008-08-12T21:47:45.277 | 2021-04-22T08:25:53.240 | 2014-11-25T16:52:23.820 | 2,641,576 | 1,104 | [
"sql-server",
"visual-studio",
"sql-server-2008",
"reporting-services",
"odbc"
] |
9,277 | 2 | null | 9,240 | 0 | null | So the problem is that the business layer needs to expose more functionality to the data layer, and adding this functionality means exposing too much to the UI layer? If I'm understanding your problem correctly, it sounds like you're trying to satisfy too much with a single interface, and that's just causing it to bec... | null | CC BY-SA 2.5 | null | 2008-08-12T21:52:01.570 | 2008-08-12T21:52:01.570 | null | null | 872 | null |
9,264 | 2 | null | 9,240 | 1 | null | @Ice^^Heat:
> What do you mean by that the data tier should not be aware of the business logic tier? How would you fill an business object with data?
The UI asks the ServiceClass in the business tier for a service, namely getting a list of objects filtered by an object with the needed parameter data.
Then the Service... | null | CC BY-SA 2.5 | null | 2008-08-12T21:34:47.127 | 2008-08-12T21:34:47.127 | null | null | 960 | null |
9,278 | 2 | null | 9,272 | 12 | null | Ahh, one of the Perforce classics :) Yes, it really sucks that there is STILL no easy way for this built into the default commands.
The easiest way is to run a command to find all files under your clients root, and then attempt to add them to the depot. You'll end up with a changelist of all new files and existing fil... | null | CC BY-SA 2.5 | null | 2008-08-12T21:55:08.087 | 2008-08-12T21:55:08.087 | null | null | 1,043 | null |
9,274 | 2 | null | 8,276 | 0 | null | How about [MDB2](http://pear.php.net/package/MDB2) from pear?
> It provides a common API for all
supported RDBMS. The main difference
to most other DB abstraction packages
is that MDB2 goes much further to
ensure portability.
Btw: @GaryF what are those strange title attributes your links have ? Did you add th... | null | CC BY-SA 2.5 | null | 2008-08-12T21:47:16.150 | 2008-08-12T21:47:16.150 | null | null | 238 | null |
9,279 | 1 | 9,287 | null | 45 | 41,444 | I absolutely love the [Keep Remote Directory Up-to-date](http://winscp.net/eng/docs/task_keep_up_to_date) feature in [Winscp](http://winscp.net/). Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can be accomplished using [changedfiles](http://freshmeat.net/projects/changed... | Keep Remote Directory Up-to-date | CC BY-SA 2.5 | 0 | 2008-08-12T21:56:10.050 | 2023-02-13T18:41:05.923 | 2011-11-09T17:06:47.217 | 168,868 | 302 | [
"linux",
"macos",
"ssh",
"sftp"
] |
9,276 | 2 | null | 9,173 | 0 | null | > If you reference any types that inherits from SuperException (even if the type defined in another assembly), you need a reference to the assembly that SuperException is defined in.
Seconded on that.
You might not be referencing `SuperException`, but you might be referencing `SpecializedSuperException`, which is der... | null | CC BY-SA 2.5 | null | 2008-08-12T21:49:16.070 | 2008-08-12T21:49:16.070 | null | null | 234 | null |
9,283 | 2 | null | 9,231 | 1 | null | As previously mentioned, Amazon S3 is definitely an option, but it may be cheaper in the long run to own the hardware you are backing up to.
For example:
Buy a basic server and and eSATA RAID5 setup with 2-3 times the capacity you currently need, then install it at a co-location center. Preferably one with high, but ch... | null | CC BY-SA 2.5 | null | 2008-08-12T22:11:07.040 | 2008-08-12T22:11:07.040 | null | null | 194 | null |
9,280 | 2 | null | 9,272 | 50 | null | On linux, or if you have gnu-tools installed on windows:
```
find . -type f -print0 | xargs -0 p4 fstat >/dev/null
```
This will show an error message for every unaccounted file. If you want to capture that output:
```
find . -type f -print0 | xargs -0 p4 fstat >/dev/null 2>mylogfile
```
| null | CC BY-SA 2.5 | null | 2008-08-12T21:56:45.180 | 2008-08-12T21:56:45.180 | null | null | 116 | null |
9,282 | 2 | null | 9,033 | 314 | null |
Adding an empty delegate to events at declaration, suppressing the need to always check the event for null before calling it is awesome. Example:
```
public delegate void MyClickHandler(object sender, string myValue);
public event MyClickHandler Click = delegate {}; // add empty delegate!
```
Let you do this
```
... | null | CC BY-SA 2.5 | null | 2008-08-12T21:57:39.267 | 2009-05-08T17:26:06.943 | 2017-05-23T11:55:01.607 | -1 | 446 | null |
9,292 | 2 | null | 9,231 | 3 | null | You really have to assess the true value of your data. If you lost it tomorrow what impact would it have on your business? We use offsite backups, it isn't cheap, but if we were to lose our data the business would cease to trade withing 2-3 days.
We considered on-site backups as a possible cost saver but in my experi... | null | CC BY-SA 3.0 | null | 2008-08-12T22:26:23.013 | 2013-11-24T07:53:34.813 | 2013-11-24T07:53:34.813 | 419 | 419 | null |
9,287 | 2 | null | 9,279 | 19 | null | How "real-time" do you want the syncing? I would still lean toward rsync since you know it is going to be fully supported on both platforms (Windows, too, with cygwin) and you can run it via a cron job. I have a super-simple bash file that I run on my system (this does remove old files):
```
#!/bin/sh
rsync -avrz --p... | null | CC BY-SA 3.0 | null | 2008-08-12T22:14:46.830 | 2014-11-05T19:19:01.687 | 2014-11-05T19:19:01.687 | 737,477 | 346 | null |
9,288 | 2 | null | 9,279 | 2 | null | You could always use version control, like SVN, so all you have to do is have the server run svn up on a folder every night. This runs into security issues if you are sharing your files publicly, but it works.
If you are using Linux though, learn to use rsync. It's really not that difficult as you can test every comm... | null | CC BY-SA 2.5 | null | 2008-08-12T22:17:34.297 | 2008-08-12T22:17:34.297 | null | null | 1,063 | null |
9,295 | 2 | null | 9,289 | 13 | null | That's not what map does. You really want [Array.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter). Or if you really want to remove the elements from the original list, you're going to need to do it imperatively with a for loop.
| null | CC BY-SA 4.0 | null | 2008-08-12T22:33:45.107 | 2021-01-09T17:20:58.180 | 2021-01-09T17:20:58.180 | 10,607,772 | 429 | null |
9,289 | 1 | 9,297 | null | 125 | 175,270 | I would like to filter an array of items by using the `map()` function. Here is a code snippet:
```
var filteredItems = items.map(function(item)
{
if( ...some condition... )
{
return item;
}
});
```
The problem is that filtered out items still uses space in the array and I would like to completel... | Removing elements with Array.map in JavaScript | CC BY-SA 3.0 | 0 | 2008-08-12T22:21:30.263 | 2022-10-05T08:26:10.457 | 2016-12-22T06:03:13.090 | 1,317,053 | 268 | [
"javascript",
"functional-programming",
"data-manipulation",
"client-side"
] |
9,297 | 2 | null | 9,289 | 129 | null | You should use the `filter` method rather than map unless you want to mutate the items in the array, in addition to filtering.
eg.
```
var filteredItems = items.filter(function(item)
{
return ...some condition...;
});
```
[Edit: Of course you could always do `sourceArray.filter(...).map(...)` to both filter and... | null | CC BY-SA 2.5 | null | 2008-08-12T22:38:28.327 | 2008-08-12T22:38:28.327 | null | null | 784 | null |
9,302 | 2 | null | 9,279 | 2 | null | The `rsync` solutions are really good, especially if you're only pushing changes one way. Another great tool is `unison` -- it attempts to syncronize changes in both directions. Read more at [the Unison homepage](http://www.cis.upenn.edu/~bcpierce/unison/).
| null | CC BY-SA 2.5 | null | 2008-08-12T23:01:14.880 | 2008-08-12T23:01:14.880 | null | null | 825 | null |
9,303 | 1 | 9,306 | null | 13 | 2,332 | How do you retrieve selected text using Regex in C#?
I am looking for C# code that is equivalent to this Perl code:
```
$indexVal = 0;
if($string =~ /Index: (\d*)/){$indexVal = $1;}
```
| How do you retrieve selected text using Regex in C#? | CC BY-SA 3.0 | 0 | 2008-08-12T23:04:10.770 | 2016-02-07T18:22:49.413 | 2011-10-25T10:13:27.540 | 225,647 | 889 | [
"c#",
"regex",
"perl"
] |
9,307 | 2 | null | 9,303 | 1 | null | You'll want to utilize the matched groups, so something like...
```
Regex MagicRegex = new Regex(RegexExpressionString);
Match RegexMatch;
string CapturedResults;
RegexMatch = MagicRegex.Match(SourceDataString);
CapturedResults = RegexMatch.Groups[1].Value;
```
| null | CC BY-SA 2.5 | null | 2008-08-12T23:12:49.613 | 2008-08-12T23:12:49.613 | null | null | 71 | null |
9,301 | 1 | null | null | 9 | 1,577 | I'm having trouble with events in Internet Explorer 7.
When I have a form with `input[type=text]` and I press enter, the events occurs in this order:
1. submit button (onClick)
2. form (onSubmit)
Sample code:
```
<form onSubmit="{alert('form::onSubmit'); return false;}">
<input type="text">
<input type=... | onClick doesn't fire with only one input when pressing enter | CC BY-SA 3.0 | null | 2008-08-12T23:01:10.807 | 2018-01-14T19:55:53.817 | 2018-01-14T19:55:53.817 | 122,643 | 1,100 | [
"javascript",
"internet-explorer",
"events",
"internet-explorer-7"
] |
9,309 | 2 | null | 9,304 | 47 | null | The three big downsides to using fields instead of properties are:
1. You can't databind to a field whereas you can to a property
2. If you start off using a field, you can't later (easily) change them to a property
3. There are some attributes that you can add to a property that you can't add to a field
| null | CC BY-SA 2.5 | null | 2008-08-12T23:13:33.543 | 2010-01-20T09:16:21.350 | 2010-01-20T09:16:21.350 | 74,612 | 493 | null |
9,306 | 2 | null | 9,303 | 7 | null | ```
int indexVal = 0;
Regex re = new Regex(@"Index: (\d*)")
Match m = re.Match(s)
if(m.Success)
indexVal = int.TryParse(m.Groups[1].toString());
```
I might have the group number wrong, but you should be able to figure it out from here.
| null | CC BY-SA 3.0 | null | 2008-08-12T23:12:48.927 | 2016-02-07T18:22:27.320 | 2016-02-07T18:22:27.320 | 2,921,691 | 429 | null |
9,315 | 2 | null | 9,304 | 5 | null | I use auto-properties all the time. Before C#3 I couldn't be bothered with all the typing and just used public variables instead.
The only thing I miss is being able to do this:
```
public string Name = "DefaultName";
```
You have to shift the defaults into your constructors with properties. tedious :-(
| null | CC BY-SA 2.5 | null | 2008-08-12T23:22:07.147 | 2008-08-12T23:22:07.147 | null | null | 234 | null |
9,308 | 2 | null | 9,304 | 30 | null | I personally love auto-properties. What's wrong with saving the lines of code? If you want to do stuff in getters or setters, there's no problem to convert them to normal properties later on.
As you said you could use fields, and if you wanted to add logic to them later you'd convert them to properties. But this might... | null | CC BY-SA 4.0 | null | 2008-08-12T23:13:15.790 | 2018-12-12T08:34:10.703 | 2018-12-12T08:34:10.703 | 3,375,713 | 233 | null |
9,310 | 2 | null | 9,304 | 120 | null | We use them all the time in Stack Overflow.
You may also be interested in a discussion of [Properties vs. Public Variables](http://blog.codinghorror.com/properties-vs-public-variables/). IMHO that's really what this is a reaction to, and for that purpose, it's great.
| null | CC BY-SA 3.0 | null | 2008-08-12T23:13:41.470 | 2014-04-07T18:32:29.983 | 2014-04-07T18:32:29.983 | 866,022 | 1 | null |
9,317 | 2 | null | 8,306 | 1 | null | If you only need read-only access to the mirrored repository, you can use [svnsync](https://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) which was added in SVN 1.4 for mirroring.
We use a secondary repository on our build server to run CruiseControl.NET against, but the mirrored repository is read-only... | null | CC BY-SA 3.0 | null | 2008-08-12T23:25:12.600 | 2014-02-25T18:59:34.553 | 2014-02-25T18:59:34.553 | 240,613 | 729 | null |
9,316 | 2 | null | 2,046 | 3 | null | I have written a post here concerning [unit testing the data layer](http://buffered.io/posts/unit-tests-boldly-crossing-boundaries-and-gently-breaking-rules/) which covers this exact problem. Apologies for the (shameful) plug, but the article is too long to post here.
I hope that helps you - it has worked very well fo... | null | CC BY-SA 3.0 | null | 2008-08-12T23:23:30.933 | 2012-01-17T11:29:04.977 | 2012-01-17T11:29:04.977 | 611 | 1,107 | null |
9,319 | 2 | null | 8,669 | 2 | null | Hmm... as nice as it is to call the stored proc from the report and have it all contained in one location, however we found (like you) that you eventually hit a point where you can't get crystal to do what you want even tho the data is right there.
We ended up introducing a business layer which sits under the report a... | null | CC BY-SA 2.5 | null | 2008-08-12T23:29:57.007 | 2008-08-12T23:29:57.007 | null | null | 493 | null |
9,320 | 2 | null | 9,314 | 6 | null | I've had a problem like this (tho not the same) in the past where my control was in a different namespace to my form even tho it was in the same project. To fix it I had to add a
```
using My.Other.Namespace;
```
to the top of the designer generated code file. The annoying thing was it kept getting blown away when ... | null | CC BY-SA 2.5 | null | 2008-08-12T23:33:06.670 | 2008-08-12T23:33:06.670 | null | null | 493 | null |
9,318 | 2 | null | 9,303 | 7 | null | I think Patrick nailed this one -- my only suggestion is to remember that named regex groups exist, too, so you don't to use array index numbers.
```
Regex.Match(s, @"Index (?<num>\d*)").Groups["num"].Value
```
I find the regex is a bit more readable this way as well, though [opinions vary](http://www.codinghorror.... | null | CC BY-SA 2.5 | null | 2008-08-12T23:27:54.093 | 2008-08-12T23:27:54.093 | null | null | 1 | null |
9,321 | 1 | 9,328 | null | 308 | 550,670 | How do you create a static class in C++? I should be able to do something like:
```
cout << "bit 5 is " << BitParser::getBitAt(buffer, 5) << endl;
```
Assuming I created the `BitParser` class. What would the `BitParser` class definition look like?
| How do you create a static class in C++? | CC BY-SA 3.0 | 0 | 2008-08-12T23:35:00.613 | 2021-06-26T07:56:42.827 | 2018-03-13T17:17:40.417 | 1,936,366 | 432 | [
"c++",
"oop",
"class",
"syntax",
"static"
] |
9,325 | 2 | null | 9,275 | 6 | null | It sounds like you'll need to treat the SQL Statement as an expression. For example:
```
="Select col1, col2 from table 1 Where col3 = " & Parameters!Param1.Value
```
If the where clause is a string you would need to do the following:
```
="Select col1, col2 from table 1 Where col3 = '" & Parameters!Param1.Value & ... | null | CC BY-SA 2.5 | null | 2008-08-12T23:43:15.183 | 2008-08-12T23:43:15.183 | null | null | 621 | null |
9,322 | 2 | null | 9,303 | 1 | null | That would be
```
int indexVal = 0;
Regex re = new Regex(@"Index: (\d*)");
Match m = re.Match(s);
if (m.Success)
indexVal = m.Groups[1].Index;
```
You can also name you group (here I've also skipped compilation of the regexp)
```
int indexVal = 0;
Match m2 = Regex.Match(s, @"Index: (?<myIndex>\d*)");
if (m2.S... | null | CC BY-SA 3.0 | null | 2008-08-12T23:35:05.560 | 2016-02-07T18:22:49.413 | 2016-02-07T18:22:49.413 | 2,921,691 | 446 | null |
9,326 | 2 | null | 9,321 | 11 | null | In C++ you want to create a static function of a class (not a static class).
```
class BitParser {
public:
...
static ... getBitAt(...) {
}
};
```
You should then be able to call the function using BitParser::getBitAt() without instantiating an object which I presume is the desired result.
| null | CC BY-SA 2.5 | null | 2008-08-12T23:43:34.840 | 2008-08-12T23:43:34.840 | null | null | 1,087 | null |
9,314 | 1 | 9,387 | null | 42 | 32,327 | I have a .NET 2.0 windows forms app, which makes heavy use of the `ListView` control.
I've subclassed the `ListView` class into a templated `SortableListView<T>` class, so it can be a bit smarter about how it displays things, and sort itself.
Unfortunately this seems to break the Visual Studio Forms Designer, in both... | "Could not find type" error loading a form in the Windows Forms Designer | CC BY-SA 3.0 | 0 | 2008-08-12T23:17:00.540 | 2021-04-12T06:54:12.713 | 2015-03-25T00:56:51.693 | 234 | 234 | [
"c#",
".net",
"winforms",
"visual-studio-2008",
"visual-studio-2005"
] |
9,327 | 2 | null | 9,301 | 1 | null | If you want code to run when the user presses enter,
If you want code to run when the user presses the button, and when the user presses enter, use a button other than type="submit".
| null | CC BY-SA 2.5 | null | 2008-08-12T23:43:34.903 | 2008-08-12T23:43:34.903 | null | null | 432 | null |
9,330 | 2 | null | 5,002 | 0 | null | I don't have any VPN connections on my current computer but somewhere in the TCP/IP properties for the connection there's a checkbox to indicate that you use the remote host as a gateway or something like that.
This once caused me alot of issues since all my traffic would go over the VPN and then back again, even when... | null | CC BY-SA 2.5 | null | 2008-08-12T23:45:08.520 | 2008-08-12T23:45:08.520 | null | null | 743 | null |
9,328 | 2 | null | 9,321 | 326 | null | If you're looking for a way of applying the "static" keyword to a class, like you can in C# for example, then you won't be able to without using Managed C++.
But the looks of your sample, you just need to create a public static method on your BitParser object. Like so:
```
class BitParser
{
public:
static bool getB... | null | CC BY-SA 4.0 | null | 2008-08-12T23:43:37.773 | 2021-06-08T17:36:48.157 | 2021-06-08T17:36:48.157 | 6,296,561 | 611 | null |
9,329 | 2 | null | 9,289 | 1 | null | You must note however that the `Array.filter` is not supported in all browser so, you must to prototyped:
```
//This prototype is provided by the Mozilla foundation and
//is distributed under the MIT license.
//http://www.ibiblio.org/pub/Linux/LICENSES/mit.license
if (!Array.prototype.filter)
{
Array.prototype.fi... | null | CC BY-SA 3.0 | null | 2008-08-12T23:44:10.503 | 2016-02-07T18:23:25.897 | 2016-02-07T18:23:25.897 | 2,921,691 | 527 | null |
9,339 | 2 | null | 9,321 | 13 | null | > If you're looking for a way of applying the "static" keyword to a class, like you can in C# for example
static classes are just the compiler hand-holding you and stopping you from writing any instance methods/variables.
If you just write a normal class without any instance methods/variables, it's the same thing, an... | null | CC BY-SA 2.5 | null | 2008-08-13T00:06:09.333 | 2008-08-13T00:06:09.333 | null | null | 234 | null |
9,342 | 2 | null | 9,304 | 5 | null | I think any construct that is intuitive AND reduces the lines of code is a big plus.
Those kinds of features are what makes languages like Ruby so powerful (that and dynamic features, which also help reduce excess code).
Ruby has had this all along as:
```
attr_accessor :my_property
attr_reader :my_getter
attr_write... | null | CC BY-SA 2.5 | null | 2008-08-13T00:14:48.897 | 2008-08-13T00:14:48.897 | null | null | 122 | null |
9,340 | 2 | null | 9,301 | 5 | null | The button's onclick should (I think) only fire if the button is actually clicked (or when the focus is on it and the user clicks enter), unless you've added logic to change that.
Is the addition of the extra textbox possibly changing the tab order of your elements (perhaps making the button the default control in tha... | null | CC BY-SA 2.5 | null | 2008-08-13T00:08:17.007 | 2008-08-13T00:08:17.007 | null | null | 1,975,282 | null |
9,338 | 1 | 9,374 | null | 2 | 783 | One of the articles I really enjoyed reading recently was [Quality Control by Last.FM](http://blog.last.fm/2008/08/01/quality-control). In the spirit of this article, I was wondering if anyone else had favorite monitoring setups for web type applications. Or maybe if you don't believe in Log Monitoring, why?
I'm lookin... | Quality Control / Log Monitoring | CC BY-SA 3.0 | 0 | 2008-08-13T00:01:56.800 | 2013-07-04T12:06:04.977 | 2013-07-04T12:06:04.977 | 1,584,286 | 1,063 | [
"monitoring",
"logging"
] |
9,336 | 1 | 9,533 | null | 5 | 3,190 | I'm trying to generate a sitemap.xml on the fly for a particular asp.net website.
I found a couple solutions:
1. chinookwebs
2. cervoproject
3. newtonking
Chinookwebs is working great but seems a bit inactive right now and it's impossible to personalize the "priority" and the "changefreq" tags of each and every page... | Generate sitemap on the fly | CC BY-SA 4.0 | 0 | 2008-08-13T00:01:11.780 | 2020-06-25T06:43:21.743 | 2020-06-25T06:43:21.743 | 6,262,124 | 296 | [
".net",
"asp.net",
"sitemap"
] |
9,343 | 2 | null | 9,341 | 4 | null | If the second dropdown is initially enabled through javascript (I'm assuming this is during a javascript onchange, since you didn't specify), then clicking the back button to reload the previous postback will never enable it.
Mixing ASP.NET with classic javascript can be hairy. You might want to have a look at ASP.NE... | null | CC BY-SA 2.5 | null | 2008-08-13T00:16:51.233 | 2008-08-13T00:16:51.233 | null | null | 1,975,282 | null |
9,345 | 2 | null | 9,314 | 2 | null | The assembly that contains MyApp.Controls.SortableListView isn't installed in the GAC by any chance is it?
| null | CC BY-SA 2.5 | null | 2008-08-13T00:22:44.417 | 2008-08-13T00:22:44.417 | null | null | 493 | null |
9,350 | 2 | null | 9,173 | -1 | null | `grep -R SuperException *` in the base of your project (get `grep` from somewhere first) just to be sure.
| null | CC BY-SA 2.5 | null | 2008-08-13T00:29:42.343 | 2008-08-13T00:29:42.343 | null | null | 61 | null |
9,348 | 2 | null | 9,321 | 71 | null | You can also create a free function in a namespace:
In BitParser.h
```
namespace BitParser
{
bool getBitAt(int buffer, int bitIndex);
}
```
In BitParser.cpp
```
namespace BitParser
{
bool getBitAt(int buffer, int bitIndex)
{
//get the bit :)
}
}
```
In general this would be the preferred ... | null | CC BY-SA 2.5 | null | 2008-08-13T00:26:43.740 | 2008-08-13T00:26:43.740 | null | null | 852 | null |
9,353 | 2 | null | 9,279 | 1 | null | It seems like perhaps you're solving the wrong problem. If you're trying to edit files on a remote computer then you might try using something like the ftp plugin for jedit. [http://plugins.jedit.org/plugins/?FTP](http://plugins.jedit.org/plugins/?FTP) This ensures that you have only one version of the file so it ca... | null | CC BY-SA 2.5 | null | 2008-08-13T00:32:05.897 | 2008-08-13T00:32:05.897 | null | null | 361 | null |
9,346 | 2 | null | 9,279 | 4 | null | To detect changed files, you could try fam (file alteration monitor) or inotify. The latter is linux-specific, fam has a bsd port which might work on OS X. Both have userspace tools that could be used in a script together with rsync.
| null | CC BY-SA 2.5 | null | 2008-08-13T00:24:41.293 | 2008-08-13T00:24:41.293 | null | null | 719 | null |
9,356 | 2 | null | 9,022 | 3 | null | The ASCII table is set of characters, arguable the first standardized set of characters back in the days when you could only spare 1 byte per character. [http://asciitable.com/](http://asciitable.com/) But I did some looking around at the extended character set of ASCII and it appears that the character you are refer... | null | CC BY-SA 2.5 | null | 2008-08-13T00:37:12.063 | 2008-08-13T00:37:12.063 | null | null | 17 | null |
9,359 | 2 | null | 9,355 | 2 | null | it cannot be done through explorer.exe
| null | CC BY-SA 2.5 | null | 2008-08-13T00:47:43.337 | 2008-08-13T00:47:43.337 | null | null | 17 | null |
9,355 | 1 | 3,011,284 | null | 24 | 21,067 | I can display and select a single file in windows explorer like this:
```
explorer.exe /select, "c:\path\to\file.txt"
```
However, I can't work out how to select more than one file. None of the permutations of select I've tried work.
Note: I looked at these pages for docs, neither helped.
[https://support.microsoft.co... | Programmatically select multiple files in windows explorer | CC BY-SA 4.0 | 0 | 2008-08-13T00:35:50.977 | 2020-06-25T08:33:14.983 | 2020-06-25T08:33:14.983 | 6,262,124 | 234 | [
"windows",
"explorer",
"windows-shell"
] |
9,358 | 2 | null | 8,948 | 13 | null | What you're after is the [ID3](http://id3-py.sourceforge.net/) module. It's very simple and will give you exactly what you need. Just copy the ID3.py file into your site-packages directory and you'll be able to do something like the following:
```
from ID3 import *
try:
id3info = ID3('file.mp3')
print id3info
... | null | CC BY-SA 2.5 | null | 2008-08-13T00:44:26.090 | 2008-08-13T00:44:26.090 | null | null | 1,057 | null |
9,341 | 1 | 9,365 | null | 12 | 4,016 | Simple ASP.NET application.
I have two drop-down controls. On the first-drop down I have a JavaScript `onChange` event. The JavaScript enables the second drop-down and removes a value from it (the value selected in the first drop-down). If they click the blank first value of the drop-down, then the second drop-down wi... | Running Javascript after control's selected value has been set | CC BY-SA 3.0 | null | 2008-08-13T00:11:03.863 | 2018-01-14T19:45:16.823 | 2018-01-14T19:45:16.823 | 122,643 | 233 | [
"asp.net",
"javascript"
] |