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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16,546 | 2 | null | 16,403 | 6 | null | For your specific example, there is no need to worry about it. Web browsers perform typographical rendering and place the correct amount of space between periods and whatever character follows (and it's different depending on the next character, according to kerning rules.)
If you want line breaks, <br/> isn't really ... | null | CC BY-SA 2.5 | null | 2008-08-19T16:59:53.047 | 2008-08-19T19:19:10.237 | 2008-08-19T19:19:10.237 | 1,042 | 1,042 | null |
16,547 | 2 | null | 16,529 | 3 | null | This seems like a perfect scenario for using `JSON` as a serialization format for the server. If you study a few [examples](http://www.json.org/example.html) it is not too difficult to understand.
| null | CC BY-SA 3.0 | null | 2008-08-19T17:01:11.390 | 2015-06-30T03:48:58.803 | 2015-06-30T03:48:58.803 | 725,306 | 64 | null |
16,539 | 2 | null | 11,878 | 1 | null | If I were in your shoes I would try to leverage what I knew (sprocs) with Linq2Sql. Linq2Sql can still use your sprocs but then you have the added bonus of putting a new tool in your belt. I think having a grasp on the Linq2XXX (X being a random technology not adult entertainment....which isn't a bad idea now that I ... | null | CC BY-SA 2.5 | null | 2008-08-19T16:54:48.487 | 2008-08-19T20:58:17.730 | 2008-08-19T20:58:17.730 | 1,975 | 1,975 | null |
16,534 | 2 | null | 16,483 | 14 | null | > HTTPS requests are not cached so sending an If-Modified-Since doesn't make any sense. The not caching is a security precaution.
The not caching is a security pre-caution, but it seems it indeed affects the behavior (glancing over the code).
Try setting the Firefox preference (in about:config) to . If that helps,... | null | CC BY-SA 2.5 | null | 2008-08-19T16:51:42.157 | 2011-02-01T08:33:24.110 | 2011-02-01T08:33:24.110 | 1,026 | 1,026 | null |
16,549 | 2 | null | 16,529 | 1 | null | Best practice on this dictates that if you are not planning to use the stored data for anything other than recreating the form then the best method is to send it back in some sort of native format (As mentioned above) With this then you can just load the data back in and requires the least processing of any method.
| null | CC BY-SA 2.5 | null | 2008-08-19T17:01:52.060 | 2008-08-19T17:01:52.060 | null | null | 1,977 | null |
16,553 | 2 | null | 16,145 | 1 | null | when you throw the error your error handler can then email the user, or better if the list is massive, add the error state to the workflow item - i think this is default functionality though as the error would be mentioned there.
[http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/fault-hand... | null | CC BY-SA 2.5 | null | 2008-08-19T17:03:41.557 | 2008-08-19T17:03:41.557 | null | null | null | null |
16,550 | 1 | 16,564 | null | 41 | 52,009 | >
[NAnt or MSBuild, which one to choose and when?](https://stackoverflow.com/questions/476163)
What is the best build tool for [.NET](http://en.wikipedia.org/wiki/.NET_Framework)?
I currently use [NAnt](http://en.wikipedia.org/wiki/NAnt) but only because I have experience with [Ant](http://en.wikipedia.org/wik... | Best .NET build tool | CC BY-SA 3.0 | 0 | 2008-08-19T17:02:48.377 | 2013-08-31T10:28:16.123 | 2017-05-23T12:26:37.537 | -1 | 1,464 | [
".net",
"build-process",
"nant"
] |
16,548 | 2 | null | 3,150 | 1 | null | The unit tester for Visual Studio 2008 is only for .NET code as far as I know.
I used CppUnit on Visual Studio 2005 and found it to be pretty good.
As far as I remember, the setup was relatively painless. Just make sure that in your testing projects the linker (Linker → Input → Additional Dependencies) includes cppu... | null | CC BY-SA 3.0 | null | 2008-08-19T17:01:49.547 | 2017-05-22T00:04:45.703 | 2017-05-22T00:04:45.703 | 63,550 | 142 | null |
16,556 | 1 | 23,837 | null | 5 | 398 | Have you used VS.NET Architect Edition's Application and System diagrams to start designing a solution?
If so, did you find it useful?
Did the "automatic implementation" feature work ok?
| VS.NET Application Diagrams | CC BY-SA 3.0 | null | 2008-08-19T17:05:21.927 | 2017-08-04T14:13:20.333 | 2017-08-04T14:13:20.333 | 1,836,618 | 1,782 | [
"c#",
".net",
"visual-studio",
"architecture",
"diagram"
] |
16,537 | 2 | null | 16,064 | 0 | null | I use Emacs on Windows.
Installing and configuring it to work with rails is a pain though.
| null | CC BY-SA 2.5 | null | 2008-08-19T16:53:38.143 | 2008-08-19T16:53:38.143 | null | null | 175 | null |
16,552 | 2 | null | 15,139 | 0 | null | My RSS feeds have served me well- I found that Javascript roguelike!
It's called [The Tombs of Asciiroth](http://www.icculus.org/asciiroth/).
| null | CC BY-SA 2.5 | null | 2008-08-19T17:03:38.250 | 2008-08-19T17:03:38.250 | null | null | 55 | null |
16,551 | 2 | null | 16,529 | 0 | null | There's a lot of people who will push `JSON`. It's a lot lighter weight than `XML`. Personally, I find `XML` to be a little more standard though. You'll have trouble finding a server side technology that doesn't support `XML`. And `JavaScript` supports it just fine also.
You could also go a completely different route... | null | CC BY-SA 3.0 | null | 2008-08-19T17:03:37.237 | 2015-06-30T03:48:14.267 | 2015-06-30T03:48:14.267 | 725,306 | 1,862 | null |
16,558 | 2 | null | 16,550 | 0 | null | Generally speaking, I get the impression that NAnt offers more flexibility compared to MSBuild, whereas (with my relatively simple needs) I've been fine with the latter so far.
| null | CC BY-SA 3.0 | null | 2008-08-19T17:06:00.973 | 2013-08-31T09:57:16.493 | 2013-08-31T09:57:16.493 | 63,550 | 1,600 | null |
16,555 | 2 | null | 16,458 | 5 | null | To generate the navigation bar, you could do something like this:
```
<cfoutput>
<cfloop from="#asc('A')#" to="#asc('Z')#" index="i">
<a href="###chr(i)#">#chr(i)#</a>
<cfif asc('Z') neq i>|</cfif>
</cfloop>
</cfoutput>
```
(CFLOOP doesn't work on characters, so you have to convert to ascii codes and back.)
... | null | CC BY-SA 2.5 | null | 2008-08-19T17:04:45.627 | 2008-08-19T17:04:45.627 | null | null | 437 | null |
16,557 | 1 | 16,573 | null | 21 | 1,345 | I have always thought that the .equals() method in java should be overridden to be made specific to the class you have created. In other words to look for equivalence of two different instances rather than two references to the same instance. However I have encountered other programmers who seem to think that the defau... | Overriding the equals method vs creating a new method | CC BY-SA 3.0 | 0 | 2008-08-19T17:05:26.937 | 2017-04-27T18:00:29.343 | 2017-04-27T18:00:29.343 | 1,033,581 | 1,104 | [
"java",
"oop"
] |
16,560 | 2 | null | 16,317 | 1 | null | The Red Gate product is good...but not perfect.
I found that I did better when I wrote my own tools to generate the data. I use it when I want to generate say Customers...but it's not great if you wanted to simulate randomness that customers might engage in like creating orders...some with one item some with multiple... | null | CC BY-SA 2.5 | null | 2008-08-19T17:06:30.943 | 2008-08-19T17:06:30.943 | null | null | 1,975 | null |
16,538 | 2 | null | 16,529 | 5 | null | When making and processing requests with JavaScript, I live and breath [JSON](http://json.org/). It's easy to build on the client side and there are tons of parsers for the server side, so both ends get to use their native tongue as much as possible.
| null | CC BY-SA 2.5 | null | 2008-08-19T16:53:42.247 | 2008-08-19T16:53:42.247 | null | null | 1,227 | null |
16,559 | 2 | null | 16,550 | 3 | null | We use MSBuild, because we started with Visual Studio 2005 (now Visual Studio 2008), and MSBuild was already "built in" to the SDK - there is less maintenance on the build server. It's a NAnt clone, really - both tools are infinitely flexible in that they let you create custom build tasks in code, and both have a decen... | null | CC BY-SA 3.0 | null | 2008-08-19T17:06:22.143 | 2013-08-31T09:59:16.127 | 2013-08-31T09:59:16.127 | 63,550 | 35 | null |
16,561 | 2 | null | 16,413 | 13 | null | I've been working in the address processing domain for about 5 years now, and there really is no silver bullet. The correct solution is going to depend on the value of the data. If it's not very valuable, throw it through a parser as the other answers suggest. If it's even somewhat valuable you'll definitely need to ha... | null | CC BY-SA 2.5 | null | 2008-08-19T17:08:25.697 | 2008-08-19T17:08:25.697 | null | null | 765 | null |
16,564 | 2 | null | 16,550 | 28 | null | We actually use a combination of [NAnt](http://en.wikipedia.org/wiki/NAnt) and [MSBuild](http://en.wikipedia.org/wiki/MSBuild) with [CruiseControl](http://en.wikipedia.org/wiki/CruiseControl). NAnt is used for script flow control and calls MSBuild to compile projects. After the physical build is triggered, NAnt is used... | null | CC BY-SA 3.0 | null | 2008-08-19T17:11:37.063 | 2013-08-31T10:03:05.127 | 2013-08-31T10:03:05.127 | 63,550 | 1,875 | null |
16,563 | 1 | null | null | 1 | 1,104 | So I'm working on a project that will allow users to enter from sites like PokerStars and then display the hand to them.
It seems that regex would be a great tool for this, however I rank my regex knowledge at "slim to none".
So I'm using PHP and looping through this block of text line by line and on lines like this... | How to write regex to return only certain parts of this string? | CC BY-SA 3.0 | null | 2008-08-19T17:09:18.673 | 2018-08-05T15:09:16.780 | 2014-10-29T07:06:11.143 | 2,534,236 | 428,190 | [
"php",
"regex"
] |
16,569 | 2 | null | 16,563 | 2 | null | Look at the PCRE section in the PHP Manual. Also, [http://www.regular-expressions.info/](http://www.regular-expressions.info/) is a great site for learning regex. Disclaimer: Regex is very addictive once you learn it.
| null | CC BY-SA 2.5 | null | 2008-08-19T17:13:19.400 | 2008-08-19T17:13:19.400 | null | null | 1,914 | null |
16,574 | 2 | null | 16,557 | 0 | null | You should only need to override the `equals()` method if you want specific behaviour when adding objects to sorted data structures (`SortedSet` etc.)
When you do that you should also override `hashCode()`.
See [here](http://www.geocities.com/technofundo/tech/java/equalhash.html) for a complete explanation.
| null | CC BY-SA 3.0 | null | 2008-08-19T17:15:41.157 | 2014-12-15T17:04:19.200 | 2014-12-15T17:04:19.200 | 1,429,387 | 1,958 | null |
16,575 | 2 | null | 16,563 | 4 | null | I'm not entirely sure what exactly to use for that without trying it, but a great tool I use all the time to validate my RegEx is [RegExr](http://gskinner.com/RegExr/) which gives a great flash interface for trying out your regex, including real time matching and a library of predefined snippets to use. Definitely a g... | null | CC BY-SA 2.5 | null | 2008-08-19T17:16:20.690 | 2008-08-19T17:16:20.690 | null | null | 194 | null |
16,568 | 1 | 16,777 | null | 480 | 1,007,758 | I'm interested in learning some (ideally) database agnostic ways of selecting the th row from a database table. It would also be interesting to see how this can be achieved using the native functionality of the following databases:
- - - - -
I am currently doing something like the following in SQL Server 2005, but ... | How to select the nth row in a SQL database table? | CC BY-SA 4.0 | 0 | 2008-08-19T17:13:11.023 | 2022-02-01T17:35:50.787 | 2019-07-19T22:51:47.690 | 1,944 | 1,944 | [
"mysql",
"sql",
"database",
"oracle",
"postgresql"
] |
16,573 | 2 | null | 16,557 | 19 | null | Overriding the equals method is necessary if you want to test equivalence in standard library classes (for example, ensuring a java.util.Set contains unique elements or using objects as keys in java.util.Map objects).
Note, if you override equals, ensure you honour the API contract as described in the documentation. F... | null | CC BY-SA 2.5 | null | 2008-08-19T17:14:47.760 | 2008-08-19T17:39:44.167 | 2008-08-19T17:39:44.167 | 304 | 304 | null |
16,578 | 2 | null | 16,501 | 7 | null | An example of a lambda in Ruby is as follows:
```
hello = lambda do
puts('Hello')
puts('I am inside a proc')
end
hello.call
```
Will genereate the following output:
```
Hello
I am inside a proc
```
| null | CC BY-SA 2.5 | null | 2008-08-19T17:17:37.847 | 2020-04-23T19:10:03.463 | 2020-04-23T19:10:03.463 | 229,044 | 25 | null |
16,581 | 2 | null | 16,550 | 1 | null | I have used both MSBuild and NAnt, and I much prefer MSBuild, mainly because it requires a lot less configuration by default. Although you can over-complicate things and load MSBuild down with a lot of configuration junk too, at its simplest, you can just point it at a solution/project file and have it go which, most o... | null | CC BY-SA 2.5 | null | 2008-08-19T17:17:52.247 | 2008-08-19T17:17:52.247 | null | null | 1,975,282 | null |
16,582 | 2 | null | 16,568 | 1 | null | LIMIT n,1 doesn't work in MS SQL Server. I think it's just about the only major database that doesn't support that syntax. To be fair, it isn't part of the SQL standard, although it is so widely supported that it should be. In everything except SQL server LIMIT works great. For SQL server, I haven't been able to fi... | null | CC BY-SA 2.5 | null | 2008-08-19T17:18:06.440 | 2008-08-19T17:18:06.440 | null | null | 1,862 | null |
16,583 | 2 | null | 16,563 | 2 | null | I always use the preg_ set of function for REGEX in PHP because the PERL-compatible expressions have much more capability. That extra capability doesn't necessarily come into play here, but they are also supposed to be faster, so why not use them anyway, right?
For an expression, try this:
```
/Seat (\d+): ([^ ]+) \(... | null | CC BY-SA 2.5 | null | 2008-08-19T17:18:52.010 | 2008-08-19T17:24:01.000 | 2008-08-19T17:24:01.000 | 1,344 | 1,344 | null |
16,587 | 2 | null | 16,568 | 35 | null | I'm not sure about any of the rest, but I know SQLite and MySQL don't have any "default" row ordering. In those two dialects, at least, the following snippet grabs the 15th entry from the_table, sorting by the date/time it was added:
```
SELECT *
FROM the_table
ORDER BY added DESC
LIMIT 1,15
```
(of course, you'd n... | null | CC BY-SA 4.0 | null | 2008-08-19T17:20:33.410 | 2021-12-03T14:20:43.020 | 2021-12-03T14:20:43.020 | 16,461,952 | 1,914 | null |
16,570 | 2 | null | 16,568 | 4 | null | ADD:
```
LIMIT n,1
```
That will limit the results to one result starting at result n.
| null | CC BY-SA 2.5 | null | 2008-08-19T17:14:05.420 | 2008-08-19T17:14:05.420 | null | null | 428,190 | null |
16,584 | 2 | null | 16,568 | 2 | null | Here's a generic version of a sproc I recently wrote for Oracle that allows for dynamic paging/sorting - HTH
```
-- p_LowerBound = first row # in the returned set; if second page of 10 rows,
-- this would be 11 (-1 for unbounded/not set)
-- p_UpperBound = last row # in the returned set; if second page o... | null | CC BY-SA 2.5 | null | 2008-08-19T17:19:01.540 | 2008-08-19T17:19:01.540 | null | null | 35 | null |
16,589 | 2 | null | 16,550 | 1 | null | It also depends on you're building. The [MSBuild SDC Task library](http://www.codeplex.com/sdctasks) has a couple of special tasks. For example, for [AD](http://en.wikipedia.org/wiki/Active_Directory), [BizTalk](https://en.wikipedia.org/wiki/Microsoft_BizTalk_Server), etc.
> There are over 300 tasks included in
thi... | null | CC BY-SA 3.0 | null | 2008-08-19T17:20:53.800 | 2013-08-31T10:05:01.603 | 2013-08-31T10:05:01.603 | 63,550 | 298 | null |
16,591 | 2 | null | 16,557 | 8 | null | I would highly recommend picking up a copy of Effective Java and reading through item 7 obeying the [equals contract](http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html). You need to be careful if you are overriding equals for mutable objects, as many of the collections such as Maps and Sets use equals to de... | null | CC BY-SA 2.5 | null | 2008-08-19T17:21:29.057 | 2008-08-19T17:26:53.990 | 2008-08-19T17:26:53.990 | 1,750 | 1,750 | null |
16,567 | 2 | null | 16,550 | 1 | null | I've used both and prefer [NAnt](http://en.wikipedia.org/wiki/NAnt). It's really hard for me to say one is "better" than the other.
| null | CC BY-SA 3.0 | null | 2008-08-19T17:13:10.693 | 2013-08-31T10:03:26.270 | 2013-08-31T10:03:26.270 | 63,550 | null | null |
16,595 | 2 | null | 16,142 | 6 | null | I think that some of the confusion comes from the difference between the concept of a tag and the implementation in SVN. To SVN a tag is a branch which is a copy. Modifying tags is considered wrong and in fact tools like TortoiseSVN will warn you if you attempt to modify anything with ../tags/.. in the path.
| null | CC BY-SA 2.5 | null | 2008-08-19T17:24:07.100 | 2008-08-19T17:24:07.100 | null | null | 748 | null |
16,593 | 2 | null | 16,563 | -1 | null | you'll have to split the file by linebreaks,
then loop thru each line and apply the following logic
```
$seat = 0;
$name = 1;
$chips = 2;
foreach( $string in $file ) {
if (preg_match("Seat ([1-0]): ([A-Za-z_0-9]*) \(([1-0]*) in chips\)", $string, $matches)) {
echo "Seat: " . $matches[$seat] . "<br>";
echo "... | null | CC BY-SA 2.5 | null | 2008-08-19T17:23:04.513 | 2008-08-19T17:23:04.513 | null | null | 1,580 | null |
16,592 | 2 | null | 16,563 | -1 | null | ```
Seat [number]: [letters&numbers&characters] ([number] in chips)
```
Your Regex should look something like this
```
Seat (\d+): ([a-zA-Z0-9]+) \((\d+) in chips\)
```
The brackets will let you capture the seat number, name and number of chips in groups.
| null | CC BY-SA 4.0 | null | 2008-08-19T17:22:46.293 | 2018-08-05T15:09:16.780 | 2018-08-05T15:09:16.780 | 2,320,961 | 1,862 | null |
16,483 | 1 | 16,534 | null | 14 | 5,341 | How can I convince Firefox (3.0.1, if it matters) to send an If-Modified-Since header in an HTTPS request? It sends the header if the request uses plain HTTP and my server dutifully honors it. But when I request the same resource from the same server using HTTPS instead (i.e., simply changing the http:// in the URL t... | Convince Firefox to send an If-Modified-Since header over HTTPS | CC BY-SA 2.5 | 0 | 2008-08-19T16:07:50.593 | 2011-02-01T08:33:24.110 | 2008-09-09T21:13:55.323 | -1 | 164 | [
"firefox",
"https"
] |
16,598 | 2 | null | 16,563 | 0 | null | Here's what I'm currently using:
```
preg_match("/(Seat \d+: [A-Za-z0-9 _-]+) \((\d+) in chips\)/",$line)
```
| null | CC BY-SA 2.5 | null | 2008-08-19T17:27:33.787 | 2008-08-19T17:27:33.787 | null | null | 428,190 | null |
16,600 | 2 | null | 16,550 | 18 | null | I'd just like to throw [FinalBuilder](https://en.wikipedia.org/wiki/FinalBuilder) in to the mix. It's not free, but if you're fed up with editing [XML](http://en.wikipedia.org/wiki/XML) files and want a somewhat nicer ([IMO](http://en.wiktionary.org/wiki/IMO)) environment to work in I would give it a go.
I've worked w... | null | CC BY-SA 3.0 | null | 2008-08-19T17:27:58.683 | 2013-08-31T10:11:04.803 | 2013-08-31T10:11:04.803 | 63,550 | 922 | null |
16,562 | 2 | null | 16,557 | 0 | null | The Equals method is intended to compare references. So it should not be overriden to change its behaviour.
You should create a new method to test for equivalence in different instances if you need to (or use the CompareTo method in some .NET classes)
| null | CC BY-SA 2.5 | null | 2008-08-19T17:08:39.660 | 2008-08-19T17:08:39.660 | null | null | 1,782 | null |
16,602 | 2 | null | 16,568 | 19 | null | I suspect this is wildly inefficient but is quite a simple approach, which worked on a small dataset that I tried it on.
```
select top 1 field
from table
where field in (select top 5 field from table order by field asc)
order by field desc
```
This would get the 5th item, change the second top number to get a diffe... | null | CC BY-SA 2.5 | null | 2008-08-19T17:28:55.017 | 2008-08-19T17:34:38.203 | 2008-08-19T17:34:38.203 | 1,970 | 1,970 | null |
16,601 | 2 | null | 16,557 | 4 | null | You should "never" override equals & getHashCode for mutable objects - this goes for .net and Java both. If you do, and use such an object as the key in f.ex a dictionary and then that object, you'll be in trouble because the dictionary relies on the hashcode to find the object.
Here's a good article on the topic: [h... | null | CC BY-SA 2.5 | null | 2008-08-19T17:28:02.507 | 2008-08-19T17:28:02.507 | null | null | 1,710 | null |
16,616 | 1 | 16,622 | null | 1 | 620 | In .NET, is it more appropriate to throw an argument null exception for an Integer if the value is Integer.MinValue or Integer = 0 (assuming that 0 is not a valid value)?
| ArgumentNullException for Integer | CC BY-SA 2.5 | null | 2008-08-19T17:47:23.230 | 2013-01-23T06:28:40.647 | null | null | 1,989 | [
".net"
] |
16,611 | 1 | null | null | 3 | 1,048 | I have a web application that generates a medium sized XML dataset to be consumed by a third party.
I thought it would be a good idea to provide some form of schema document for the XML that I generate so I pasted the XML into Visual Studio and got it to generate an XSD.
The annoying thing is that my XML doesn't valida... | Validation Patterns for Custom XML Documents | CC BY-SA 3.0 | null | 2008-08-19T17:38:56.853 | 2014-05-04T21:45:37.147 | 2014-05-04T21:45:37.147 | 1,537,726 | 1,894 | [
"c#",
"xml",
"visual-studio",
"schema"
] |
16,603 | 2 | null | 16,563 | 1 | null | Check out [preg_match](http://www.php.net/manual/en/function.preg-match.php).
Probably looking for something like...
```
<?php
$str = 'Seat 1: fabulous29 (835 in chips)';
preg_match('/Seat (?<seatNo>\d+): (?<name>\w+) \((?<chipCnt>\d+) in chips\)/', $str, $matches);
print_r($matches);
?>
```
*It's been a while since... | null | CC BY-SA 2.5 | null | 2008-08-19T17:29:09.633 | 2008-08-19T17:29:09.633 | null | null | 1,976 | null |
16,606 | 2 | null | 16,568 | 126 | null | PostgreSQL supports [windowing functions](https://www.postgresql.org/docs/current/tutorial-window.html) as defined by the SQL standard, but they're awkward, so most people use (the non-standard) [LIMIT / OFFSET](http://www.postgresql.org/docs/current/static/queries-limit.html):
```
SELECT
*
FROM
mytable
ORDER ... | null | CC BY-SA 4.0 | null | 2008-08-19T17:31:23.653 | 2019-10-16T13:13:41.627 | 2019-10-16T13:13:41.627 | 619 | 619 | null |
16,615 | 1 | 22,910 | null | 18 | 7,933 | I'm new to windows programming and I'm trying to get notified of all changes to the file system (similar to the information that FileMon from SysInternals displays, but via an API). Is a FindFirstChangeNotification for each (non-network, non-substed) drive my best bet or are there other more suitable C/C++ APIs?
| Is FindFirstChangeNotification the best API to use for file system change notification on windows? | CC BY-SA 2.5 | 0 | 2008-08-19T17:44:27.153 | 2012-07-03T14:54:47.007 | 2008-08-19T17:59:41.583 | 1,849 | 1,849 | [
"c",
"windows",
"winapi",
"file",
"notifications"
] |
16,622 | 2 | null | 16,616 | 8 | null | Throwing an ArgumentNullException isn't appropriate unless the argument is actually . Throw an ArgumentOutOfRangeException instead (preferably with a message informing the user what values of int are actually acceptable).
> is thrown when a method is invoked and at least one of the arguments passed to the method is n... | null | CC BY-SA 2.5 | null | 2008-08-19T17:50:47.843 | 2008-08-19T17:50:47.843 | null | null | 517 | null |
16,610 | 1 | null | null | 33 | 25,274 | Every now and then in a high volume .NET application, you might see this exception when you try to execute a query:
> System.Data.SqlClient.SqlException: A transport-level error has
occurred when sending the request to the server.
According to my research, this is something that "just happens" and not much can be ... | How do you deal with transport-level errors in SqlConnection? | CC BY-SA 3.0 | 0 | 2008-08-19T17:36:05.390 | 2016-05-11T03:23:33.880 | 2016-05-11T03:23:33.880 | 4,681,341 | 1,219 | [
"c#",
"sql-server",
"tsql",
"ado.net",
"sql-server-2000"
] |
16,619 | 2 | null | 16,616 | 2 | null | Well, I think if you are using an int, then it would be better to say InvalidArgumentException.
Alternatively, you could make your INTs nullable by declaring them as (especially if you expect null values for your int.)
| null | CC BY-SA 2.5 | null | 2008-08-19T17:49:45.147 | 2008-08-19T17:59:50.367 | 2008-08-19T17:59:50.367 | 380 | 380 | null |
16,628 | 2 | null | 16,611 | 0 | null | You will be able to validate your XML with either an XML Schema or a DTD using C#. DTDs are older standards as compared to XML Schemas.
So, I recommend an XML Schema approach.
| null | CC BY-SA 2.5 | null | 2008-08-19T17:55:44.243 | 2008-08-19T17:55:44.243 | null | null | 380 | null |
16,627 | 2 | null | 16,616 | 0 | null | If the argument is not null, don't throw an `ArgumentNullException`. It would probably be more reasonable to throw an `ArgumentException`, [explained here.](http://msdn.microsoft.com/en-us/library/system.argumentexception.aspx)
`ArgumentOutOfRangeException` is probably even better, as suggested above by Avenger546.
| null | CC BY-SA 3.0 | null | 2008-08-19T17:54:41.673 | 2013-01-23T06:28:40.647 | 2013-01-23T06:28:40.647 | 1,410,342 | 1,546 | null |
16,636 | 2 | null | 16,610 | 0 | null | You should also check hardware connectivity to the database.
Perhaps this thread will be helpful:
[http://channel9.msdn.com/forums/TechOff/234271-Conenction-forcibly-closed-SQL-2005/](http://channel9.msdn.com/forums/TechOff/234271-Conenction-forcibly-closed-SQL-2005/)
| null | CC BY-SA 2.5 | null | 2008-08-19T18:02:42.170 | 2008-08-19T18:02:42.170 | null | null | 1,940 | null |
16,634 | 1 | 16,655 | null | 4 | 9,632 | We used the "undocumented" xp_fileexist stored procedure for years in SQL Server 2000 and had no trouble with it. In 2005, it seems that they modified the behavior slightly to always return a 0 if the executing user account is not a sysadmin. It also seems to return a zero if the SQL Server service is running under the... | What is the best method for checking if a file exists from a SQL Server 2005 stored procedure? | CC BY-SA 2.5 | null | 2008-08-19T18:01:43.653 | 2014-11-25T20:57:14.050 | 2014-11-25T20:57:14.050 | 2,641,576 | 162 | [
"sql-server",
"sql-server-2005"
] |
16,624 | 2 | null | 5,134 | 5 | null | We've got complex requirements like:
1. Only certain users can create folders in parts of the SVN tree, but everyone can edit files there
2. Certain file extensions cannot contain certain text in the file
3. Certain file extensions can only be stored in a subset of directories
4. As well as several simpler ones like,... | null | CC BY-SA 2.5 | null | 2008-08-19T17:52:09.087 | 2008-08-19T17:52:09.087 | null | null | 1,985 | null |
16,650 | 2 | null | 9,361 | 0 | null | I believe that the real answer is that you can't. The file path won't be sent by the browser for security reasons. The file name will be sent, however I don't believe it gets sent without an actual upload.
The closest you could come, afaik, would be to forcibly kill the connection just when the upload starts. That ... | null | CC BY-SA 2.5 | null | 2008-08-19T18:09:44.513 | 2008-08-19T18:09:44.513 | null | null | 1,432 | null |
16,652 | 2 | null | 16,320 | 0 | null | I would say that it depends on what you want the "DB layer" to do...
If you have general routines for executing a stored procedure, or sql statement, that return a dataset, then using static methods would make more sense to me, since you don't need a permanent reference to an object that created the dataset for you.
... | null | CC BY-SA 2.5 | null | 2008-08-19T18:10:54.463 | 2008-08-19T18:10:54.463 | null | null | 1,795 | null |
16,648 | 2 | null | 13,217 | 1 | null | I was going to say that, I didn't think that Silverlight 2's HttpWebRequest supported streaming, because the request data gets buffered into memory entirely. It had been a while since the last time I looked at it though, therefore I went back to see if Beta 2 supported it. Well turns out it does. I am glad I went ba... | null | CC BY-SA 2.5 | null | 2008-08-19T18:09:03.233 | 2008-08-19T18:16:32.330 | 2008-08-19T18:16:32.330 | 1,117 | 1,117 | null |
16,655 | 2 | null | 16,634 | 4 | null | Maybe a CLR stored procedure is what you are looking for. These are generally used when you need to interact with the system in some way.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:13:13.040 | 2008-08-19T18:13:13.040 | null | null | 1,219 | null |
16,657 | 1 | 16,679 | null | 4 | 458 | I am a broke college student. I have built a small web app in PHP5 and MySQL, and I already have a domain. What is an affordable way to get it online? A few people have suggested amazon's cloud services, but that seems equivalent to slitting my wrists and watching money slowly trickle out. So suggestions? Hosting compa... | How to affordably release a Web App | CC BY-SA 2.5 | null | 2008-08-19T18:14:23.317 | 2015-06-08T15:07:42.423 | 2008-08-19T18:50:46.880 | 1,063 | 1,063 | [
"hosting",
"web-applications"
] |
16,656 | 1 | 16,787 | null | 30 | 29,722 | I am working on a program that needs to create a multiple temporary folders for the application. These will not be seen by the user. The app is written in VB.net. I can think of a few ways to do it such as incremental folder name or random numbered folder names, but I was wondering, how other people solve this problem?... | Creating temporary folders | CC BY-SA 3.0 | 0 | 2008-08-19T18:14:14.317 | 2016-09-13T10:20:37.293 | 2013-05-29T20:44:37.540 | 142,996 | 1,632 | [
".net",
"io"
] |
16,658 | 2 | null | 13,607 | 1 | null | For a platform like the PSP, I'd worry slightly about the performance of an IM GUI solution. With a traditional retained mode type of solution, when you create a control, you can also create the vertex buffer/display list or what-have-you required to render it. With an immediate mode solution, it seems to me that you'd... | null | CC BY-SA 2.5 | null | 2008-08-19T18:14:50.227 | 2008-08-19T18:14:50.227 | null | null | 1,739 | null |
16,638 | 1 | 16,720 | null | 3 | 4,606 | I am having some trouble with the [Google Maps API](http://code.google.com/apis/maps/documentation/reference.html). I have an array which holds a ojbect I created to store points.
My array and class:
```
var tPoints = [];
function tPoint(name) {
var id = name;
var points = [];
var pointsCo... | Google Maps API - Problems with class GLatLngBounds | CC BY-SA 3.0 | null | 2008-08-19T18:04:16.160 | 2018-11-17T04:29:33.813 | 2015-08-24T09:31:45.377 | 155,077 | 1,992 | [
"javascript",
"google-maps"
] |
16,662 | 2 | null | 10,980 | 6 | null | There are multiple issues here as ikvm is currently being transitioned away from the GNU classpath system to Sun's OpenJDK. Both are licensed as GPL+Exceptions to state explicitly that applications which merely use the OpenJDK libraries will not be considered derived works.
Generally speaking, applications which rely... | null | CC BY-SA 2.5 | null | 2008-08-19T18:15:58.570 | 2008-08-19T18:15:58.570 | null | null | 1,432 | null |
16,660 | 1 | 16,761 | null | 6 | 3,597 | What's the best way to handle translations for stock text in a `SSRS`. For instance - if I have a report that shows a grid of contents what's the best way to have the correct translation for the header of that grid show up, assuming the culture of the report is set correctly.
Put another way - is it possible to do res... | Internationalization in SSRS | CC BY-SA 3.0 | 0 | 2008-08-19T18:15:29.617 | 2013-07-04T12:25:56.000 | 2013-07-04T12:25:56.000 | 1,584,286 | 1,194 | [
"reporting-services",
"internationalization"
] |
16,661 | 2 | null | 15,979 | 1 | null | I'm assuming with id:* you're just trying to match all documents, right?
I've never used solr before, but in my Lucene experience, when ingesting data, we've added a hidden field to every document, then when we need to return every record we do a search for the string constant in that field that's the same for every r... | null | CC BY-SA 2.5 | null | 2008-08-19T18:15:55.530 | 2008-08-19T18:15:55.530 | 2017-05-23T11:46:11.760 | -1 | 75 | null |
16,664 | 2 | null | 16,657 | 2 | null | I use and recommend [DreamHost](http://www.dreamhost.com/) for both their prices and customer service. I've hosted several sites here and performance has always been good. $5.95 a month for their basic package.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:17:42.313 | 2008-08-19T18:17:42.313 | null | null | 72 | null |
16,667 | 2 | null | 16,656 | 1 | null | As long as the name of the folder doesn't need to be meaningful, how about using a GUID for them?
| null | CC BY-SA 2.5 | null | 2008-08-19T18:18:02.530 | 2008-08-19T18:18:02.530 | null | null | 689 | null |
16,629 | 2 | null | 15,163 | 3 | null | @Phil - I came to the same conclusion. My implementation of `MyTree_Collapse` now looks something like this (where `m_bHandlingCallback` is a member variable):
```
Private Sub MyTree_Collapse(ByVal Node as MSComCtlLib.Node)
If m_bHandlingCallback Then Exit Sub
m_bHandlingCallback = True
DoSomeStuff
m... | null | CC BY-SA 2.5 | null | 2008-08-19T17:56:39.843 | 2008-10-02T01:19:06.387 | 2008-10-02T01:19:06.387 | 863 | 863 | null |
16,666 | 2 | null | 16,657 | 1 | null | I have no specific sites to suggest, but a typical hosting company will charge you less than $10 per month for service. A simple Google search will turn up lots of results for "comparison of web hosts": [http://www.google.com/search?hl=en&q=comparison+of+web+hosts&btnG=Google+Search](http://www.google.com/search?hl=en... | null | CC BY-SA 2.5 | null | 2008-08-19T18:17:54.713 | 2008-08-19T18:17:54.713 | null | null | 1,694 | null |
16,668 | 2 | null | 16,656 | 2 | null | You could generate a GUID for your temporary folder names.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:18:12.873 | 2008-08-19T18:18:12.873 | null | null | 1,982 | null |
16,669 | 2 | null | 16,657 | 1 | null | Well, Amazon EC2 is only as bad as the amount of traffic you get. So the ideal situation is to monetize your site (ads, affiliate programs, etc) so that that more traffic you get, the more you pay Amazon, but the more you make...in theory of course.
As for a budget of nothing...there's not really much you can do...ho... | null | CC BY-SA 2.5 | null | 2008-08-19T18:18:39.970 | 2008-08-19T18:18:39.970 | null | null | 194 | null |
16,670 | 2 | null | 16,491 | 0 | null | I've had to do this a few times, and there are only two options that I know of. Copy the file locally to the SQL Server, or on the SQL server create a mapped network drive to the share that contains the backup file.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:18:46.647 | 2008-08-19T18:18:46.647 | null | null | 1,795 | null |
16,674 | 2 | null | 16,657 | 1 | null | I agree with pix0r. With your requirements of php5 and mysql it seems that for starting out Dreamhost would be a good recommendation. You can always move it over pretty easily to ec2 if it takes off.
Dreamhost is great and cheap for a php5 mysql setup that gives you command line access. The problems come if you want ... | null | CC BY-SA 2.5 | null | 2008-08-19T18:21:15.393 | 2008-08-19T18:21:15.393 | null | null | 1,797 | null |
16,672 | 2 | null | 16,656 | 19 | null | You have to use `System.IO.Path.GetTempFileName()`
> Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file.
You can use `System.IO.Path.GetDirectoryName(System.IO.Path.GetTempFileName())` to get only the temp folder information, and create your folders in there
They are cr... | null | CC BY-SA 2.5 | null | 2008-08-19T18:19:31.480 | 2008-08-19T18:19:31.480 | null | null | 1,782 | null |
16,679 | 2 | null | 16,657 | 5 | null | I say pay the 50-80 bucks for a real host. The classic "you get what you pay for" is true for hosting. This will save you time, time you can spend getting those $80.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:25:03.560 | 2008-08-19T18:25:03.560 | null | null | 914 | null |
16,671 | 2 | null | 16,656 | 1 | null | You can use [GetTempFileName](http://msdn.microsoft.com/en-us/library/aa364991(VS.85).aspx) to create a temporary , then delete and re-create this file as a directory instead.
Note: link didn't work, copy/paste from: [http://msdn.microsoft.com/en-us/library/aa364991(VS.85).aspx](http://msdn.microsoft.com/en-us/library... | null | CC BY-SA 2.5 | null | 2008-08-19T18:19:03.557 | 2008-08-19T18:19:03.557 | null | null | 72 | null |
16,687 | 2 | null | 16,657 | 1 | null | It may be helpful to know what kind of app we are talking about. Also what sort of traffic do you expect and to echo Adam's note what sort of business model (if any) do you have?
| null | CC BY-SA 2.5 | null | 2008-08-19T18:29:45.440 | 2008-08-19T18:29:45.440 | null | null | 1,104 | null |
16,680 | 2 | null | 16,501 | 7 | null | @Brian I use lambdas all the time in C#, in LINQ and non-LINQ operators. Example:
```
string[] GetCustomerNames(IEnumerable<Customer> customers)
{ return customers.Select(c=>c.Name);
}
```
Before C#, I used anonymous functions in JavaScript for callbacks to AJAX functions, before the term Ajax was even coined:
``... | null | CC BY-SA 2.5 | null | 2008-08-19T18:25:22.030 | 2008-08-20T09:39:22.413 | 2008-08-20T09:39:22.413 | 1,659 | 1,659 | null |
16,685 | 2 | null | 16,656 | 3 | null | Something like...
```
using System.IO;
string path = Path.GetTempPath() + Path.GetRandomFileName();
while (Directory.Exists(path))
path = Path.GetTempPath() + Path.GetRandomFileName();
Directory.CreateDirectory(path);
```
| null | CC BY-SA 2.5 | null | 2008-08-19T18:28:30.590 | 2008-08-19T18:28:30.590 | null | null | 1,200 | null |
16,691 | 2 | null | 16,615 | 0 | null | There are other ways to do it, but most of them involve effort on your part (or take performance from your app, or you have to block a thread to use them, etc). FindFirstChangeNotification is a bit complicated if you're not used to dealing with function pointers, etc, but it has the virtue of getting the OS to do the b... | null | CC BY-SA 2.5 | null | 2008-08-19T18:31:47.917 | 2008-08-19T18:31:47.917 | null | null | 1,975,282 | null |
16,689 | 1 | null | null | 33 | 23,098 | I have two programs. One is in C# and another one in Java.
Those programs will, most probably, always run on the same machine.
What would be the best way to let them talk to each other?
So, to clarify the problem:
This is a personal project (so professional/costly libraries are a no go).
The message volume is low, t... | Java and C# interoperability | CC BY-SA 3.0 | 0 | 2008-08-19T18:31:32.410 | 2017-02-21T09:04:38.550 | 2017-02-21T09:04:38.550 | 1,459,996 | null | [
"c#",
"java",
"interop"
] |
16,697 | 2 | null | 16,689 | 1 | null | I am a big fan of [Thrift](http://developers.facebook.com/thrift/) an interoperability stack from Facebook. You said they code will probably run on the same machine so it could be overkill but you can still use it.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:34:19.347 | 2008-08-19T18:34:19.347 | null | null | 200 | null |
16,695 | 2 | null | 16,657 | 2 | null | I highly recommend [HostRocket](http://www.hostrocket.com). I have been with them for about 6 or 7 years now with multiple domains and have found uptime and database availability flawless. The only reason I'm leaving them is because I'm doing some .NET web apps now and HostRocket is purely LAMP based.
But without maki... | null | CC BY-SA 2.5 | null | 2008-08-19T18:33:07.257 | 2008-08-19T18:33:07.257 | null | null | 71 | null |
16,690 | 2 | null | 15,102 | 3 | null | Got a answer over at [MSDN Forums](http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3764492&SiteID=1)
> This is the default behavior when you have Office 2007 installed on your
development computer. You can modify
this behavior under Tools->Options.
For more informaiton, see the
following threads:[http://... | null | CC BY-SA 2.5 | null | 2008-08-19T18:31:39.880 | 2008-08-19T18:31:39.880 | null | null | 805 | null |
16,700 | 2 | null | 16,689 | 3 | null | I used JNBridge ([http://www.jnbridge.com/jnbpro.htm](http://www.jnbridge.com/jnbpro.htm)) on a relatively simple project where we had a .NET client app using a relatively significant jar file full of business object logic that we didn't want to port. It worked quite nicely, but I wouldn't say we fully exercised the c... | null | CC BY-SA 2.5 | null | 2008-08-19T18:35:04.757 | 2008-08-19T18:35:04.757 | null | null | 404 | null |
16,696 | 2 | null | 16,113 | 13 | null | AWStats and Webalizer are both good and free (I think both free speech as well as free beer). I generally prefer the look of AWStats - it has a nice modern look whereas Webalizer looks like something created in about 1992.
They both give roughly the same information which includes:
- - - -
All of this information i... | null | CC BY-SA 2.5 | null | 2008-08-19T18:33:24.933 | 2008-08-19T18:33:24.933 | null | null | 1,912 | null |
16,701 | 2 | null | 16,656 | 1 | null | Combined answers from @adam-wright and pix0r will work the best IMHO:
```
using System.IO;
string path = Path.GetTempPath() + Path.GetRandomFileName();
while (Directory.Exists(path))
path = Path.GetTempPath() + Path.GetRandomFileName();
File.Delete(path);
Directory.CreateDirectory(path);
```
| null | CC BY-SA 2.5 | null | 2008-08-19T18:35:49.357 | 2008-08-19T18:35:49.357 | null | null | 1,795 | null |
16,703 | 2 | null | 11,734 | 0 | null | Alternatively, you could just programmatically save the current state of autoplay and turn it off when your program starts, then restore the original state when your program closes. This would be a lot simpler. Check out [the NoDriveTypeAutoRun key](http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/re... | null | CC BY-SA 2.5 | null | 2008-08-19T18:37:28.793 | 2008-08-19T18:37:28.793 | null | null | 1,569 | null |
16,707 | 2 | null | 16,656 | 0 | null | The advantage to using System.IO.Path.GetTempFileName is that it will be a file in the user's local (i.e., non-roaming) path. This is exactly where you would want it for permissions and security reasons.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:39:10.927 | 2008-08-19T18:39:10.927 | null | null | 748 | null |
16,711 | 2 | null | 16,704 | 1 | null | How are the Eclipse settings saved? Perhaps you could simply adapt [this macro](http://xona.com/2005/08/02.html) and load the resulting file into Eclipse?
| null | CC BY-SA 2.5 | null | 2008-08-19T18:40:48.193 | 2008-08-19T18:40:48.193 | null | null | 1,968 | null |
16,712 | 2 | null | 16,689 | 7 | null | I've heard good things about [IKVM](http://www.ikvm.net/), the JVM that's made with .NET.
| null | CC BY-SA 2.5 | null | 2008-08-19T18:41:12.843 | 2008-08-19T18:41:12.843 | null | null | 1,659 | null |
16,710 | 2 | null | 2,913 | 1 | null | I would propose to use three databases. One production database, one development database (filled with some meaningful data for each developer) and one testing database (with empty tables and maybe a few rows that are always needed).
A way to test database code is:
1. Insert a few rows (using SQL) to initialize stat... | null | CC BY-SA 2.5 | null | 2008-08-19T18:40:33.063 | 2008-08-19T18:40:33.063 | null | null | 1,633 | null |
16,704 | 1 | null | null | 1 | 1,355 | >
[Configure Eclipse to use VS.Net shortcuts?](https://stackoverflow.com/questions/2213205/configure-eclipse-to-use-vs-net-shortcuts)
I mostly work in VS2008 but I need to do some java work in Eclipse. Is there an easy and fast way to map the VS2008 keyboard shortcuts to Eclipse?
For example, I want to map F11... | Map VS2008 keyboard shortcuts to Eclipse | CC BY-SA 2.5 | 0 | 2008-08-19T18:37:44.050 | 2009-10-29T03:16:31.933 | 2017-05-23T12:28:00.033 | -1 | 1,463 | [
"visual-studio-2008",
"eclipse"
] |
16,716 | 1 | 16,730 | null | 29 | 8,381 | I am starting to build a new web application that will require user accounts. Now that I have an OpenID that I am using for this site I thought it would be cool if I could use OpenID for authentication in my application. Are there any good tutorials on how to integrate OpenID with an ASP.NET site?
| OpenID authentication in ASP.NET? | CC BY-SA 2.5 | 0 | 2008-08-19T18:44:32.633 | 2012-02-14T07:19:57.397 | 2010-09-13T16:33:19.630 | 63,550 | 1,838 | [
"asp.net",
"openid",
"dotnetopenauth"
] |
16,718 | 2 | null | 12,225 | 1 | null | We found out this morning why our code was mishandling the extender. Since the db was handling the date as a date/time it was returning the date in this format 99/99/9999 99:99:99 but we had the extender mask looking for this format 99/99/9999 99:99
```
Mask="99/99/9999 99:99:99"
```
the above code fixed the prob... | null | CC BY-SA 2.5 | null | 2008-08-19T18:44:53.757 | 2008-08-19T18:44:53.757 | null | null | 730 | null |
16,722 | 2 | null | 16,716 | 8 | null | DotNetOpenId available at [http://code.google.com/p/dotnetopenid](http://code.google.com/p/dotnetopenid)
| null | CC BY-SA 2.5 | null | 2008-08-19T18:47:01.817 | 2008-08-19T18:47:01.817 | null | null | 17 | null |