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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34,137 | 2 | null | 22,873 | 2 | null | Let's not forget [Head First Java](https://rads.stackoverflow.com/amzn/click/com/0596009208), which could be considered the essential first step in this language or maybe the step after the online tutorials by Sun. It's great for the purpose of grasping the language concisely, while adding a bit of fun, serving as a st... | null | CC BY-SA 2.5 | null | 2008-08-29T07:45:37.557 | 2008-08-29T07:45:37.557 | null | null | 2,091 | null |
34,156 | 2 | null | 34,144 | 58 | null | Using the [Maven Dependency Plugin](http://maven.apache.org/plugins/maven-dependency-plugin/):
```
mvn dependency:tree
```
| null | CC BY-SA 2.5 | null | 2008-08-29T08:08:46.393 | 2008-08-29T08:08:46.393 | null | null | 2,783 | null |
34,141 | 2 | null | 34,126 | 9 | null | > I think the first method is easier to read and maintain
I've found the opposite to be true. Bear in mind that sometimes more than one event handler will be bound to a given control.
Declaring all events in one central place helps to organize the actions taking place on the site. If you need to change something you ... | null | CC BY-SA 2.5 | null | 2008-08-29T07:50:12.100 | 2008-08-29T07:50:12.100 | null | null | 1,968 | null |
34,155 | 1 | 34,387 | null | 21 | 3,010 | I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the [Wikipedia article](http://en.wikipedia.org/wiki/Continuation):
```
(define the-continuation #f)
(define (test)
(let ((i 0))
; call/cc calls its first function argument, passing
; a continuat... | Looking for examples of "real" uses of continuations | CC BY-SA 2.5 | 0 | 2008-08-29T08:07:58.687 | 2010-05-18T06:47:24.493 | 2008-09-10T09:27:42.593 | 2,797 | 2,797 | [
"ruby",
"language-agnostic",
"scheme",
"smalltalk",
"continuations"
] |
34,160 | 2 | null | 3,452 | 36 | null | This will be the second question in a row I've answered with this, so I think it's worth pointing out that I have no affiliation with this product, but I use it and love it and think it's the right answer to this question too: [DbVisualizer](http://www.dbvis.com/).
| null | CC BY-SA 3.0 | null | 2008-08-29T08:10:05.187 | 2014-07-15T15:12:43.897 | 2014-07-15T15:12:43.897 | 295,797 | 2,168 | null |
34,162 | 2 | null | 34,144 | 2 | null | If you run maven with "-x" switch, it will print out plenty of diagnostics, I guess the relevant dependency path can be picked up from there.
| null | CC BY-SA 2.5 | null | 2008-08-29T08:10:38.837 | 2008-08-29T08:10:38.837 | null | null | 885 | null |
34,161 | 1 | 34,172 | null | 1 | 1,889 | I have the following situation: I built an Access form with a subform (which records are linked to the records of main form via certain key). When I try to delete any record in the subform, I get the following message: “Access has suspended the action because you and another user tried to change the data” (approximate ... | Delete Records from Access database, error while deleting | CC BY-SA 2.5 | null | 2008-08-29T08:10:21.287 | 2013-09-30T01:08:11.030 | 2008-09-24T16:07:17.810 | 12,870 | 2,717 | [
"database",
"ms-access"
] |
34,163 | 2 | null | 34,126 | 4 | null | In my experience, there are two major points to this:
1) The most important thing is to be consistent. I don't think either of the two methods is necessarily easier to read, as long as you stick to it. I only get confused when both methods are used in a project (or even worse on the same page) because then I have to s... | null | CC BY-SA 3.0 | null | 2008-08-29T08:10:41.037 | 2016-02-08T14:36:47.777 | 2016-02-08T14:36:47.777 | 92,701 | 3,587 | null |
34,157 | 2 | null | 34,120 | 2 | null | I've had very good with results with the [Simple Html DOM Parser](https://sourceforge.net/projects/simplehtmldom/) mentioned above as well. And then there's the [tidy Extension for PHP](http://www.php.net/tidy) as well which works really well too.
| null | CC BY-SA 2.5 | null | 2008-08-29T08:08:50.417 | 2008-08-29T08:08:50.417 | null | null | 3,196 | null |
34,165 | 2 | null | 22,873 | 1 | null |
[C# to the Point](http://dotnet.jku.at/csbook) by Hanspeter Mössenböck. On a mere 200 pages he explains C# in astonishing depth, focusing on underlying concepts and concise examples rather than hand waving and Visual Studio screenshots.
For additional information on specific language features, check the [C# language... | null | CC BY-SA 2.5 | null | 2008-08-29T08:11:06.560 | 2008-08-29T08:11:06.560 | null | null | 3,588 | null |
34,153 | 2 | null | 3,452 | 364 | null | Let's work together on a canonical answer.
### Native Apps
- [SQLPro for MSSQL](http://www.macsqlclient.com/)- [Navicat](http://www.navicat.com/products/navicat-for-sqlserver)- [Valentina Studio](http://www.valentina-db.com/en/valentina-studio-overview)- [TablePlus](https://tableplus.io)
### Java-Based
- [Ora... | null | CC BY-SA 4.0 | null | 2008-08-29T08:05:06.120 | 2018-11-05T11:44:52.220 | 2018-11-05T11:44:52.220 | 21,698 | 3,572 | null |
34,149 | 2 | null | 34,120 | 5 | null | If the page you're scraping is valid X(HT)ML, then any of [PHP's built-in XML parsers](http://www.php.net/manual/en/refs.xml.php) will do.
I haven't had much success with PHP libraries for scraping. If you're adventurous though, you can try [simplehtmldom](https://sourceforge.net/projects/simplehtmldom/). I'd recomme... | null | CC BY-SA 2.5 | null | 2008-08-29T08:01:37.457 | 2008-08-29T08:01:37.457 | null | null | 2,774 | null |
34,164 | 2 | null | 34,151 | 11 | null | You never mentioned the type of finished_flag...
If it's a straight , then it might work, but it's certainly bad practice, for several reasons. First, some compilers will cache the reads of the variable, since the compiler doesn't always pick up the fact that it's being written to by another thread. You can get aroun... | null | CC BY-SA 2.5 | null | 2008-08-29T08:10:55.983 | 2008-08-29T08:10:55.983 | null | null | 1,304 | null |
34,167 | 2 | null | 34,144 | 160 | null | To add to @David Crow, here's [a dependency:tree example](http://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html) from the Maven site:
```
mvn dependency:tree -Dincludes=velocity:velocity
```
might output
```
[INFO] [dependency:tree]
[INFO] org.apache.maven.plugins:maven... | null | CC BY-SA 2.5 | null | 2008-08-29T08:14:10.107 | 2008-08-29T08:14:10.107 | null | null | 3,508 | null |
34,171 | 2 | null | 33,042 | 0 | null | I guess I should have specified the compiler - we're using gcc for Linux, and MSVC 6 (yeah I know, it's old, but it works (mostly) for us) for WIn32.
For that reasons, gcov won't work for our Win32 builds, and Bullseye won't work for our Linux builds.
Then again maybe I only need coverage in one OS...
| null | CC BY-SA 2.5 | null | 2008-08-29T08:17:16.810 | 2008-08-29T08:17:16.810 | null | null | 1,304 | null |
34,173 | 2 | null | 34,155 | 3 | null | Continuations can be used in "real-life" examples whenever the program flow is not linear, or not even pre-determined. A familiar situation is [web applications](http://www.ibm.com/developerworks/library/j-contin.html).
| null | CC BY-SA 2.5 | null | 2008-08-29T08:20:18.767 | 2008-08-29T08:20:18.767 | null | null | 3,508 | null |
34,172 | 2 | null | 34,161 | 1 | null | If you are currently 'editing' the current form then it will not allow the action. Editing a record can sometimes be triggered by simply clicking inside a field, or other simple actions you wouldn't normally consider 'editing'.
This is usually avoided in Access by using the RunCommand method to undo any edits before d... | null | CC BY-SA 2.5 | null | 2008-08-29T08:19:42.093 | 2008-08-29T08:34:23.930 | 2008-08-29T08:34:23.930 | 1,908 | 1,908 | null |
34,166 | 2 | null | 1,644 | 7 | null | A good weekly update to the Ruby on Rails world: [Rails Envy](http://www.railsenvy.com/).
The [thestacktrace](http://thestacktrace.libsyn.com/) is good general programming podcast, which covers every thing from git to [Scala](http://en.wikipedia.org/wiki/Scala_(programming_language)).
| null | CC BY-SA 2.5 | null | 2008-08-29T08:11:09.897 | 2009-08-20T19:43:59.730 | 2009-08-20T19:43:59.730 | 63,550 | 3,586 | null |
34,169 | 2 | null | 33,976 | 2 | null | In standard XML you embed quotes in attribute values using `"`, `&34;` or ``.
See the page on [Wikipedia](http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references) for a list of XML entity references.
I don't know if this will solve your problem, but seeing as it is an XML parser error ... | null | CC BY-SA 2.5 | null | 2008-08-29T08:14:32.870 | 2008-08-29T08:14:32.870 | null | null | 1,908 | null |
34,159 | 2 | null | 34,087 | 2 | null | You could try using the `last()` function which will give you the size of the current context:
```
<xsl:for-each select="./node [position() <= last() div 2]">
<li>foo</li>
</xsl:for-each>
<xsl:for-each select="./node [last() div 2 < position()]">
<li>bar</li>
</xsl:for-each>
```
| null | CC BY-SA 2.5 | null | 2008-08-29T08:09:50.510 | 2008-08-29T08:09:50.510 | null | null | 1,908 | null |
34,175 | 2 | null | 34,155 | 5 | null | Continuations are used by some web servers and web frameworks to store session information. A continuation object is created for each session and then used by each request within the session.
[There's an article about this approach here.](http://www.ibm.com/developerworks/library/os-lightweight9/index.html)
| null | CC BY-SA 2.5 | null | 2008-08-29T08:21:55.613 | 2008-08-29T08:21:55.613 | null | null | 3,171 | null |
34,151 | 1 | null | null | 10 | 4,127 | Is the following safe?
I am new to threading and I want to delegate a time consuming process to a separate thread in my C++ program.
Using the boost libraries I have written code something like this:
thrd = new boost::thread(boost::bind(&myclass::mymethod, this, &finished_flag);
Where finished_flag is a boolean memb... | C++ Thread question - setting a value to indicate the thread has finished | CC BY-SA 2.5 | 0 | 2008-08-29T08:02:03.663 | 2012-07-03T14:52:21.750 | 2009-07-11T19:18:14.093 | 95,735 | null | [
"c++",
"multithreading",
"boost-thread"
] |
34,177 | 2 | null | 30,800 | 1 | null | While I hate to give an answer I'm not 100% certain of, the lack of responses so far makes me think a potentially correct answer might be okay in this case.
As far as I'm aware there isn't the kind of session token mechanism you're looking for out-of-the-box with WCF which means you're going to have to do some heavy l... | null | CC BY-SA 2.5 | null | 2008-08-29T08:24:36.853 | 2008-08-29T08:24:36.853 | null | null | 2,562 | null |
34,182 | 1 | 56,934 | null | 3 | 3,799 | I need to read from a variety of different text files (I've some delimited files and some fixed width files). I've considered parsing the files line by line (slow using the File.ReadLine type methods) and reading the file using the ODBC text driver (faster) but does anyone have any other (better) suggestions? I'm using... | Alternatives for enhanced reading and parsing text files using .NET | CC BY-SA 3.0 | 0 | 2008-08-29T08:36:35.047 | 2012-07-04T19:27:52.517 | 2012-07-04T19:25:49.290 | 1,001,985 | 1,826 | [
".net",
"file-io",
"text-files"
] |
34,181 | 2 | null | 31,494 | 3 | null | If you have a large database with string fields, you can very quickly find a lot of duplicates by using the [simhash](http://scholar.google.com/scholar?q=simhash) algorithm.
| null | CC BY-SA 2.5 | null | 2008-08-29T08:33:44.617 | 2008-08-29T08:33:44.617 | null | null | 3,561 | null |
34,184 | 2 | null | 34,009 | 1 | null | As a previous answer stated, WinSQL is one of the best "generic" sql query programs, although it is far from perfect. Generally speaking, the programs dedicated to a particular sql product are better (usually 3rd party products, not written by the SQL vendor). TOAD is a great program for Oracle (originally written by a... | null | CC BY-SA 2.5 | null | 2008-08-29T08:36:50.070 | 2008-08-29T08:36:50.070 | null | null | 2,754 | null |
34,179 | 2 | null | 34,126 | 1 | null | You can also use addEventListener (not in IE) / attachEvent (in IE).
Check out: [http://www.quirksmode.org/js/events_advanced.html](http://www.quirksmode.org/js/events_advanced.html)
These allow you to attach a function (or multiple functions) to an event on an existing DOM object. They also have the advantage of al... | null | CC BY-SA 3.0 | null | 2008-08-29T08:29:19.120 | 2016-02-08T14:37:45.610 | 2016-02-08T14:37:45.610 | 92,701 | 3,561 | null |
34,185 | 2 | null | 24,130 | 0 | null | Teifion, if you use classes as a mere replacement for arrays, you are nowhere near OOP. The essence of OOP is that objects have knowledge and responsibility, can actually do things and cooperate with other classes. Your objects have knowledge only and can't do anything else than idly exist, however they seem to be good... | null | CC BY-SA 2.5 | null | 2008-08-29T08:37:50.973 | 2008-08-29T08:37:50.973 | null | null | 2,169 | null |
34,187 | 2 | null | 34,183 | 0 | null | My guess would be that the build.cmd is waiting for some sort of user-interaction/reply. If you log the output of the command with the "" operator at the end, it might help you find the problem.
| null | CC BY-SA 2.5 | null | 2008-08-29T08:39:23.247 | 2008-08-29T08:39:23.247 | null | null | 2,257 | null |
34,178 | 2 | null | 34,161 | 0 | null | Also check the "row locking mechanism" that you have. I haven't used Access in a while but I remember that you could use set that in the table properties. You can access those properties clicking in the famous "dot" in the upper left corner of the table to bring up its properties. Well if you're using Access, you know ... | null | CC BY-SA 2.5 | null | 2008-08-29T08:27:01.280 | 2008-08-29T08:27:01.280 | null | null | 2,684 | null |
34,192 | 2 | null | 34,182 | 0 | null | The File reading process is not slow if you read all file at once using the File class and the methods suggested by John. Depending upon the file's size and what you want to do with them, it may use more or less memory. I'd suggest you try with File.ReadAllText (or whatever is appropriate for you)
| null | CC BY-SA 2.5 | null | 2008-08-29T08:45:09.910 | 2008-08-29T08:45:09.910 | null | null | 2,684 | null |
34,183 | 1 | 38,331 | null | 14 | 16,080 | I'm trying to run a batch file, as another user, from my web app. For some reason, the batch file hangs! I can see "cmd.exe" running in the task manager, but it just sits there forever, unable to be killed, and the batch file is not running. Here's my code:
```
SecureString password = new SecureString();
foreach (char... | C#.Net: Why is my Process.Start() hanging? | CC BY-SA 3.0 | 0 | 2008-08-29T08:36:36.903 | 2015-09-09T10:46:36.677 | 2015-09-09T10:46:36.677 | 1,537,726 | 2,527 | [
"c#",
".net"
] |
34,174 | 2 | null | 34,151 | 7 | null | Instead of using a member variable to signal that the thread is done, why not use a [condition](http://www.boost.org/doc/libs/1_36_0/doc/html/thread/synchronization.html#thread.synchronization.condvar_ref)? You are already are using the boost libraries, and [condition](http://www.boost.org/doc/libs/1_36_0/doc/html/thre... | null | CC BY-SA 2.5 | null | 2008-08-29T08:20:22.433 | 2008-08-29T08:26:42.200 | 2008-08-29T08:26:42.200 | 716 | 716 | null |
34,190 | 2 | null | 34,182 | 1 | null | If the files are relatively small you can use the [File](http://msdn.microsoft.com/en-us/library/system.io.file.aspx) class. It has these methods which may help you:
- - -
| null | CC BY-SA 2.5 | null | 2008-08-29T08:40:39.700 | 2008-08-29T08:40:39.700 | null | null | 718 | null |
34,194 | 1 | 316,015 | null | 25 | 10,271 | Where can I find some good pointers on best practices for running ASP.NET MVC on IIS6?
I haven't seen any realistic options for web-hosts who provide IIS7-hosting yet. Mostly because I don't live in the U.S.
So I was wondering on how you best build applications in ASP.NET MVC and make it easily available to deploy on... | ASP.NET MVC on IIS6 | CC BY-SA 2.5 | 0 | 2008-08-29T08:45:19.673 | 2010-04-21T23:50:07.380 | 2008-09-02T13:36:47.697 | 2,429 | 2,429 | [
".net",
"asp.net-mvc",
"deployment",
"iis-6"
] |
34,195 | 2 | null | 33,933 | 0 | null | The overflow property is the way to go. In particular, if you want the extra text to be ignored, you can use "overflow:hidden" as a css property on the text.
In general, when a browser has an unbreakable object, such as a long string without spaces, it can have a conflict between various size constraints - those of t... | null | CC BY-SA 2.5 | null | 2008-08-29T08:45:34.620 | 2008-08-29T08:45:34.620 | null | null | 3,561 | null |
34,200 | 2 | null | 33,638 | 0 | null | > While being able to do so is helpful (especially in the early stages of a new project), many (most?) databases will quickly become far too large for that to be possible. Also, if you have any BLOBs then you're going to have problems generating SQL scripts for your entire database.
Backups and compression can help y... | null | CC BY-SA 2.5 | null | 2008-08-29T08:51:02.437 | 2008-08-29T08:51:02.437 | null | null | 1,122 | null |
34,198 | 2 | null | 23,091 | 2 | null | I think you may have a look about Test-Driven Requirements, which is a technique to make executable specifications.
There are some great tools like [FIT](http://fit.c2.com/), [Fitnesse](http://fitnesse.org/), [GreenPepper](http://www.greenpeppersoftware.com/en/products/) or [Concordion](http://www.concordion.org/) for... | null | CC BY-SA 2.5 | null | 2008-08-29T08:49:26.170 | 2008-08-29T08:49:26.170 | null | null | 3,122 | null |
34,193 | 2 | null | 34,183 | 1 | null | Another possibility to "debug" it is to use standardoutput and then read from it:
```
psi.RedirectStandardOutput = True;
Process proc = Process.Start(psi);
String whatever = proc.StandardOutput.ReadLine();
```
| null | CC BY-SA 2.5 | null | 2008-08-29T08:45:18.037 | 2008-08-29T08:45:18.037 | null | null | 968 | null |
34,201 | 2 | null | 34,182 | 5 | null | I'm not sure you could really do a text-and-Excel file parser, not unless by Excel file you mean a comma/pipe/tab delimited file, which is actually just another text file. Reading actual excel files require you to use the MS Office libraries.
For delimited text file parsing, you could look into [FileHelpers](http://ww... | null | CC BY-SA 2.5 | null | 2008-08-29T08:51:34.370 | 2008-08-29T08:51:34.370 | null | null | 372 | null |
34,202 | 2 | null | 30,049 | 2 | null | While it would seem like a reasonable assumption, I agree that it is not explicityly made clear in the specification. All I can add is that the way I read it, one of either `textNode` or it's new sibling (i.e. return value from `splitText`) would contain the new joined value - the statement specifies that all nodes ar... | null | CC BY-SA 2.5 | null | 2008-08-29T08:52:14.900 | 2008-08-29T08:52:14.900 | null | null | 2,492 | null |
34,196 | 2 | null | 34,182 | 1 | null | Your question is a little vague. I assume that the text files contain structured data, not just random lines of text.
If you are parsing the files yourself then .NET has a library function to read all the lines from a text file into an array of strings (File.ReadAllLines). If you know your files are small enough to h... | null | CC BY-SA 2.5 | null | 2008-08-29T08:46:56.817 | 2008-08-29T08:46:56.817 | null | null | 2,754 | null |
34,206 | 2 | null | 34,194 | 2 | null | With IIS6 you can do one of two things:
1. Setup an ISAPI filter to map MVC URLs to ASP.NET
2. Include an extension in the URL. For example: htp://localhost/Home.mvc
Since option 1 is not available on most web-hosts, you have to go for number 2.
| null | CC BY-SA 2.5 | null | 2008-08-29T08:56:11.943 | 2008-08-29T08:56:11.943 | null | null | 2,257 | null |
34,191 | 2 | null | 34,183 | 2 | null | Without seeing the build.cmd it's hard to tell what is going on, however, you should build the path using Path.Combine(arg1, arg2); It's the correct way to build a path.
```
Path.Combine( Environment.SystemDirectory, "cmd.exe" );
```
I don't remember now but don't you have to set UseShellExecute = true ?
| null | CC BY-SA 2.5 | null | 2008-08-29T08:42:26.063 | 2008-08-29T08:42:26.063 | null | null | 2,684 | null |
34,205 | 2 | null | 34,183 | 1 | null | In order to "see" what's going on, I'd suggest you transform the process into something more interactive (turn off Echo off) and put some "prints" to see if anything is actually happening. What is in the output.txt file after you run this?
Does the bmail actually executes?
Put some prints after/before to see what's g... | null | CC BY-SA 2.5 | null | 2008-08-29T08:53:58.297 | 2008-08-29T08:53:58.297 | null | null | 2,684 | null |
34,150 | 2 | null | 34,128 | 5 | null | I would pass in an xml document instead of doing concreate functions for this.
The webservice in your example is leaky - the consumer needs to know too much about this interface and the implementation of the webservice internally.
XML Document and then tie that with an XSD. That way you can prevalidte the input t... | null | CC BY-SA 2.5 | null | 2008-08-29T08:02:00.543 | 2008-08-29T08:12:48.693 | 2008-08-29T08:12:48.693 | null | null | null |
34,209 | 1 | 35,633 | null | 6 | 1,146 | In the transition to newforms admin I'm having difficulty figuring out how specify core=False for ImageFields.
I get the following error:
```
TypeError: __init__() got an unexpected keyword argument 'core'
```
[Edit] However, by just removing the core argument I get a "This field is required." error in the admin in... | Django ImageField core=False in newforms admin | CC BY-SA 2.5 | null | 2008-08-29T09:03:27.883 | 2013-10-14T14:31:04.000 | 2013-10-14T14:31:04.000 | 1,902,864 | 3,594 | [
"python",
"django",
"django-models"
] |
34,211 | 2 | null | 32,144 | 3 | null | NOW I see your problem! Sorry dude!
Yes, VERY easy. Kinda.
SQL Server used to be able to talk IPX (the netware protocol) but I think Netware will now talk TCPIP, and you can run IPX and TCP/IP on the same network without an issue - windows clients can run both at the same time, 99% of routers handle all protocols etc... | null | CC BY-SA 2.5 | null | 2008-08-29T09:05:03.527 | 2008-11-23T03:13:57.713 | 2008-11-23T03:13:57.713 | 16,076 | 2,947 | null |
34,214 | 2 | null | 32,246 | 0 | null | @ross: yes, we have links between the sites. It' just the home page, and which one comes up when someone searches for "my company" in google.
Thanks!
| null | CC BY-SA 2.5 | null | 2008-08-29T09:06:51.043 | 2009-07-06T08:15:24.857 | 2009-07-06T08:15:24.857 | 23,354 | 2,947 | null |
34,210 | 2 | null | 34,182 | 0 | null | Regarding reading XLS Files:
If you have Microsoft Office XP and above, you have access to the already included .NET SDK Office Libraries, where you can "natively" read XLS files, Word, PPT, etc. Please note that under Office XP you have to manually check that during install (unless you had .NET previously installed)... | null | CC BY-SA 2.5 | null | 2008-08-29T09:04:55.727 | 2008-08-29T09:04:55.727 | null | null | 2,684 | null |
34,216 | 2 | null | 34,182 | 3 | null | Ignoring the Excel part (which you say isn't important):
I've found LINQ to be fairly useful in parsing txt files (pipe-delimited or csv)
e.g. This reads a pipe-delimited file skipping the hader row and creates an IEnumerable as the result:
var records =
from line in File.ReadAllLines(@"c:\blah.txt")... | null | CC BY-SA 2.5 | null | 2008-08-29T09:08:10.430 | 2008-08-29T09:08:10.430 | null | null | null | null |
34,197 | 2 | null | 34,183 | 0 | null | Here's the contents of build.cmd:
```
@echo off
set path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;%path%
msbuild myproject.csproj /t:Build > output.txt
IF NOT ERRORLEVEL 1 goto :end
:error
bmail -s k2smtpout.secureserver.net -f build@example.com -t josh@example.com -a "Build failed." -m output.txt -h
:end
del ... | null | CC BY-SA 2.5 | null | 2008-08-29T08:47:00.997 | 2008-08-29T08:47:00.997 | null | null | 2,527 | null |
34,186 | 2 | null | 32,664 | 181 | null | More than a decade later, this feature finally exists in [.NET 7](https://devblogs.microsoft.com/dotnet/dotnet-7-generic-math/). The most generic interface is `INumber<TSelf>` rather than `INumeric` (in the `System.Numerics` namespace), and it encompasses not just integer types. To accept just integer types, consider u... | null | CC BY-SA 4.0 | null | 2008-08-29T08:38:25.963 | 2022-10-20T08:07:27.597 | 2022-10-20T08:07:27.597 | 1,968 | 1,968 | null |
34,229 | 2 | null | 34,128 | 0 | null | I agree with littlegeek. Do not make your web service is hard method. Make it a receiving end point to receive . Particularly, a Command Message.
[http://www.eaipatterns.com/CommandMessage.html](http://www.eaipatterns.com/CommandMessage.html)
| null | CC BY-SA 2.5 | null | 2008-08-29T09:15:32.583 | 2008-08-29T09:15:32.583 | null | null | 2,663 | null |
34,217 | 2 | null | 30,877 | 8 | null | You might save some time by cross-referencing your bit array with a doubly-linked list, so you can more quickly advance to the next prime.
Also, in eliminating later composites once you hit a new prime p for the first time - the first composite multiple of p remaining will be p*p, since everything before that has alre... | null | CC BY-SA 2.5 | null | 2008-08-29T09:08:27.030 | 2008-08-29T09:08:27.030 | null | null | 3,561 | null |
34,227 | 1 | 10,234,147 | null | 2 | 2,276 | I am familiar with several approaches to making the back button work in AJAX applications in various situations, but I have not found a solution that will work gracefully in my specific scenario.
The pages I am working with are the search interface for a site. You enter terms in a normal search box, click "go and win... | Is it possible to persist (without reloading) AJAX page state across BACK button clicks? | CC BY-SA 2.5 | 0 | 2008-08-29T09:13:26.627 | 2012-04-21T15:35:08.897 | 2008-08-29T11:03:17.767 | 2,168 | 2,168 | [
"ajax"
] |
34,212 | 2 | null | 34,126 | 3 | null | I believe the second method is generally preferred because it keeps information about action (i.e. the JavaScript) separate from the markup in the same way CSS separates presentation from markup.
I agree that this makes it a little more difficult to see what's happening in your page, but good tools like firebug will h... | null | CC BY-SA 2.5 | null | 2008-08-29T09:05:59.110 | 2008-08-29T09:05:59.110 | null | null | 797 | null |
34,242 | 2 | null | 34,227 | 1 | null | Just use a .
| null | CC BY-SA 2.5 | null | 2008-08-29T09:23:52.483 | 2008-08-29T09:23:52.483 | null | null | 1,476 | null |
34,239 | 2 | null | 19 | 27 | null | The [BBP formula](http://en.wikipedia.org/wiki/Bailey-Borwein-Plouffe_formula) allows you to compute the nth digit - in base 2 (or 16) - without having to even bother with the previous n-1 digits first :)
| null | CC BY-SA 2.5 | null | 2008-08-29T09:22:16.933 | 2008-08-29T09:22:16.933 | null | null | 3,561 | null |
34,245 | 2 | null | 30,995 | 1 | null | Copernic Desktop Search sometimes locks files so that they can't be written. Closing the program resolves the problem. Perhaps the same problem occurs with other search engines too.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:24:24.480 | 2008-08-29T09:24:24.480 | null | null | 3,236 | null |
34,246 | 2 | null | 34,237 | 0 | null | You can use the ChangePassword.CancelButtonStyle Property to set the CSS-class on the Cancel Button. Then just apply "display: none" on the specified class.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:28:23.847 | 2008-08-29T09:28:23.847 | null | null | 2,257 | null |
34,243 | 1 | 34,266 | null | 10 | 917 | Is there something like the Python descriptor protocol implemented in other languages? It seems like a nice way to increase modularity/encapsulation without bloating your containing class' implementation, but I've never heard of a similar thing in any other languages. Is it likely absent from other languages because of... | Python descriptor protocol analog in other languages? | CC BY-SA 2.5 | 0 | 2008-08-29T09:24:08.583 | 2014-03-29T21:09:33.247 | null | null | 3,594 | [
"python",
"language-features",
"encapsulation"
] |
34,248 | 2 | null | 34,182 | 0 | null | The ODBC text driver is now rather out of date - it has no Unicode support.
Amazingly MS Excel still uses it, so if you a Unicode CSV in Excel 2007 (rather than import it) you lose all non-ASCII chars.
You best bet is to use .Net's file reading methods, as others have suggested.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:29:10.600 | 2008-08-29T09:29:10.600 | null | null | 905 | null |
34,237 | 1 | 34,261 | null | 3 | 4,830 | I'm considering using the ChangePassword control on an ASP.NET 2.0 Webform. I don't want the 'cancel' button to show.
Is there a good way to hide it without resorting to silly "width = 0" sort of games?
Or perhaps there's a generic way to walk through the parts of a composite control like this
and hide individual... | How to hide the cancel button on an ASP.NET ChangePassword control | CC BY-SA 2.5 | null | 2008-08-29T09:21:42.053 | 2009-01-13T00:31:18.370 | 2008-09-09T22:13:42.353 | -1 | 987 | [
"asp.net",
"webforms"
] |
34,249 | 1 | 34,255 | null | 32 | 20,786 | What's the best (halting) algorithm for determining if a linked list has a cycle in it?
[Edit] Analysis of asymptotic complexity for both time and space would be sweet so answers can be compared better.
[Edit] Original question was not addressing nodes with outdegree > 1, but there's some talk about it. That question... | Best algorithm to test if a linked list has a cycle | CC BY-SA 2.5 | 0 | 2008-08-29T09:30:05.510 | 2022-03-25T10:18:55.680 | 2011-10-18T17:18:38.860 | 976,554 | 3,594 | [
"algorithm",
"data-structures",
"linked-list"
] |
34,253 | 2 | null | 34,249 | 0 | null | What about using a hash table to store the already seen nodes (you look at them in order from the start of the list)? In practise, you could achieve something close to O(N).
Otherwise, using a sorted heap instead of a hash table would achieve O(N log(N)).
| null | CC BY-SA 2.5 | null | 2008-08-29T09:33:50.697 | 2008-08-29T09:33:50.697 | null | null | 2,638 | null |
34,258 | 2 | null | 34,249 | 0 | null | I wonder if there's any other way than just going iteratively - populate an array as you step forwards, and check if the current node is already present in the array...
| null | CC BY-SA 2.5 | null | 2008-08-29T09:34:45.017 | 2008-08-29T09:34:45.017 | null | null | 2,238 | null |
34,236 | 2 | null | 33,338 | 0 | null | I use 4 different machines and have got this situation on all of them. I understand what is causing the problem - it is that the VS hosting process isn't terminating after the first debug session ends, which means that the next time that you try to compile the exe the hosting process is locking the exe and preventing c... | null | CC BY-SA 2.5 | null | 2008-08-29T09:21:29.103 | 2008-08-29T09:21:29.103 | null | null | 445 | null |
34,255 | 2 | null | 34,249 | 51 | null | Have two pointers iterating through the list; make one iterate through at twice the speed of the other, and compare their positions at each step. Off the top of my head, something like:
```
node* tortoise(begin), * hare(begin);
while(hare = hare->next)
{
if(hare == tortoise) { throw std::logic_error("There's a cy... | null | CC BY-SA 3.0 | null | 2008-08-29T09:34:18.277 | 2015-08-03T06:04:58.143 | 2015-08-03T06:04:58.143 | 2,131 | 2,131 | null |
34,254 | 2 | null | 32,643 | 0 | null | That's quite a complex and specialized algorithm that you need.
Have a look at [http://en.wikipedia.org/wiki/Template_matching](http://en.wikipedia.org/wiki/Template_matching). There's also a demo program (but no source) at [http://www.lps.usp.br/~hae/software/cirateg/index.html](http://www.lps.usp.br/~hae/software/ci... | null | CC BY-SA 2.5 | null | 2008-08-29T09:34:00.993 | 2008-08-29T09:34:00.993 | null | null | 1,737 | null |
34,259 | 2 | null | 34,227 | 0 | null | Would it help to trigger a page change event using the "Add some info to the # at the end of the URL approach".
That way, clicking the back button shouldn't actually change the page, and you should be able to restore state without the first page load.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:35:34.297 | 2008-08-29T09:35:34.297 | null | null | 797 | null |
34,261 | 2 | null | 34,237 | 7 | null | Set CancelButtonStyle.CssClass to something like "hiddenItem" and set the CSS to "display:none".
Otherwise you can convert the control to a template and simply delete away the cancel-button manually. When you click the control in Design-mode in Visual Studio, you get a little arrow with options and one of them is "Con... | null | CC BY-SA 2.5 | null | 2008-08-29T09:36:08.960 | 2008-08-29T09:36:08.960 | null | null | 2,429 | null |
34,262 | 1 | 34,377 | null | 2 | 634 | I want to get an overview of files that are updated in TFS (that someone else checked in) that I don't have the latest version for.
| Query TFS for updated files | CC BY-SA 3.0 | null | 2008-08-29T09:36:27.383 | 2012-06-08T18:42:12.077 | 2012-06-08T18:42:12.077 | 151,249 | 2,798 | [
"tfs"
] |
34,260 | 2 | null | 33,903 | 2 | null | There is a free one online [sqlformatter](http://www.orafaq.com/utilities/sqlformatter.htm), also [SQLinForm](http://www.sqlinform.com/), personally i use TOAD and have done since before it was bought by Quest (10 years?)
| null | CC BY-SA 3.0 | null | 2008-08-29T09:35:47.120 | 2012-02-27T22:13:45.693 | 2012-02-27T22:13:45.693 | null | 2,985 | null |
34,265 | 2 | null | 33,438 | 6 | null | A quick google came up with
- [JDBC driver for csv files](http://sourceforge.net/projects/csvjdbc)- [JDBC driver for XML files](http://www.csv-jdbc.com/stels_xml_jdbc.htm)
Hope this might provide some inspiration?
| null | CC BY-SA 2.5 | null | 2008-08-29T09:39:32.743 | 2008-08-29T09:39:32.743 | null | null | 3,295 | null |
34,266 | 2 | null | 34,243 | 4 | null | I've not heard of a direct equivalent either. You could probably achieve the same effect with macros, especially in a language like Lisp which has extremely powerful macros.
I wouldn't be at all surprised if other languages start to incorporate something similar because it is so powerful.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:39:47.423 | 2008-08-29T09:39:47.423 | null | null | 2,990 | null |
34,267 | 2 | null | 34,120 | 5 | null | I had some fun working with [htmlSQL](https://github.com/hxseven/htmlSQL), which is not so much a high end solution, but really simple to work with.
| null | CC BY-SA 3.0 | null | 2008-08-29T09:40:59.540 | 2014-01-24T12:45:30.957 | 2014-01-24T12:45:30.957 | 999 | 999 | null |
34,273 | 2 | null | 34,155 | 9 | null | Seaside:
- [homepage](http://www.seaside.st/)- [wikipedia page](http://en.wikipedia.org/wiki/Seaside_%28software%29)
| null | CC BY-SA 2.5 | null | 2008-08-29T09:44:13.073 | 2008-09-03T16:00:45.953 | 2008-09-03T16:00:45.953 | 238 | 238 | null |
34,277 | 2 | null | 34,249 | 0 | null | Konrad Rudolph's algorithm won't work if the cycle isn't pointing to the beginning. The following list will make it an infinite loop: 1->2->3->2.
DrPizza's algorithm is definitely the way to go.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:46:24.677 | 2008-08-29T09:46:24.677 | null | null | 890 | null |
34,274 | 2 | null | 31,868 | 17 | null | Example of using the WSS "Copy" Web service to upload a document to a library...
```
public static void UploadFile2007(string destinationUrl, byte[] fileData)
{
// List of desination Urls, Just one in this example.
string[] destinationUrls = { Uri.EscapeUriString(destinationUrl) };
// Empty Field Informat... | null | CC BY-SA 3.0 | null | 2008-08-29T09:44:37.397 | 2014-04-28T19:00:41.043 | 2014-04-28T19:00:41.043 | 306,918 | 3,362 | null |
34,270 | 1 | 34,290 | null | 1 | 1,985 | I have only just started received the following error in my windows forms application under .NET 2 framework on windows 2000 when using `System.DirectoryServices`.
```
{System.Runtime.InteropServices.COMException}
System.Runtime.InteropServices.COMException: {"Library not registered."}
_className: Nothing
_COMPlusExce... | COMException "Library not registered." while using System.DirectoryServices | CC BY-SA 3.0 | null | 2008-08-29T09:41:56.777 | 2016-11-18T10:56:10.010 | 2016-11-18T10:56:10.010 | 4,375,327 | 33 | [
"com",
".net-2.0",
"active-directory"
] |
34,278 | 2 | null | 3,927 | 45 | null | I recently discovered EQATEC Profiler [http://www.eqatec.com/tools/profiler](http://www.eqatec.com/tools/profiler). It works with most .NET versions and on a bunch of platforms. It is easy to use and parts of it is free, even for commercial use.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:46:26.330 | 2010-04-22T09:31:37.367 | 2010-04-22T09:31:37.367 | 3,602 | 3,602 | null |
34,281 | 2 | null | 3,927 | 11 | null | [AutomatedQA AQTime](http://www.automatedqa.com/products/aqtime/index.asp) for timing and [SciTech MemProfiler](http://memprofiler.com/) for memory.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:49:56.367 | 2008-08-29T09:49:56.367 | null | null | 1,242 | null |
34,283 | 2 | null | 34,227 | 0 | null | Use something persistent that is tied to the user's profile.
Cookies and sessions are good ideas, but you can also keep those stuff in the database. That gives you an added advantage of being able to save the user's filtering preferences accross different browsing session.(if, for exampple, he was looking for someth... | null | CC BY-SA 2.5 | null | 2008-08-29T09:50:35.243 | 2008-08-29T09:50:35.243 | null | null | 2,976 | null |
34,213 | 2 | null | 19,358 | 4 | null | [Building Scalable Web Sites](https://rads.stackoverflow.com/amzn/click/com/0596102356) by [Flickr](http://flickr.com) architect [Cal Henderson](http://www.iamcal.com/) is pretty much the holy book for scalable web architectures.
The [presentations](http://danga.com/words/) by [Brad Fitzpatrick](http://bradfitz.com/) ... | null | CC BY-SA 2.5 | null | 2008-08-29T09:06:21.607 | 2008-08-29T09:06:21.607 | null | null | 2,774 | null |
34,286 | 1 | 34,298 | null | 0 | 79 | I'm looking for a way to visually mark or tag a window (any OS) so that it stands out.
A while back, I accidentally replaced a live production database containing thousands of records with an empty dev version, simply because the two instances of Enterprise Manager looked identical to one another. I'd like to avoid th... | Visually Tag/Mark a Window | CC BY-SA 3.0 | null | 2008-08-29T09:52:47.983 | 2013-04-21T18:01:53.243 | 2013-04-21T18:01:53.243 | 45,603 | 45,603 | [
"user-interface"
] |
34,287 | 2 | null | 33,338 | 1 | null | Is your project output folder set to a network share?
If so, try changing it to a local folder and see what happens. It appears that VS is not always able to terminate the process if the host exe is running from a share.
The other possibility is that the project is open and running in debug mode on another instance ... | null | CC BY-SA 2.5 | null | 2008-08-29T09:52:51.057 | 2008-08-29T09:52:51.057 | null | null | 770 | null |
34,285 | 2 | null | 34,249 | 0 | null | > In this case OysterD's code will be the fastest solution (vertex coloring)
That would really surprise me. My solution makes at most two passes through the list (if the last node is linked to the penultimate lode), and in the common case (no loop) will make only one pass. With no hashing, no memory allocation, etc.... | null | CC BY-SA 2.5 | null | 2008-08-29T09:52:44.037 | 2008-08-29T09:52:44.037 | null | null | 2,131 | null |
34,232 | 2 | null | 33,937 | 1 | null | Or you can create a function which returns field1 + " " + field2 and add the function to the report.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:18:09.173 | 2008-08-29T09:18:09.173 | null | null | 3,236 | null |
34,288 | 2 | null | 1,496 | 1 | null | Some time ago, I was searching for a text editor for my new Mac. Since this was some months ago, some points might have been corrected in the meantime.
I feel that Aquamacs is by far the best OSX-Emacs. However, it feels a bit too Mac-like in some areas. For example, it rather uses several windows instead of several bu... | null | CC BY-SA 4.0 | null | 2008-08-29T09:53:26.360 | 2021-10-25T11:47:06.500 | 2021-10-25T11:47:06.500 | 17,169,050 | 1,034 | null |
34,204 | 1 | 185,256 | null | 9 | 8,486 | How do I get the latest version of my solution recursively like its done in the solution explorer context menu of Visual Studio? I want to do this from the command line or via a macro. I'm trying to automate a part of my daily routine by using a set of batch files. I am sure a lot of developers would love to have somet... | How do I get latest from a Visual Studio solution from the command line? | CC BY-SA 3.0 | 0 | 2008-08-29T08:53:58.127 | 2012-04-16T21:32:59.947 | 2011-08-08T16:45:29.087 | 3,619 | 45,603 | [
"visual-studio-2008",
"command-line",
"tfs",
"macros"
] |
34,295 | 2 | null | 20,533 | 0 | null | I would love to use a different editor than XCode for coding, but I feel, that no other editor integrates tightly enough with it to be really worthwhile.
However, given some time, TextMate might eventually get to that point. At the moment though, it primarily lacks debugging features and refactoring.
For everything th... | null | CC BY-SA 2.5 | null | 2008-08-29T09:58:24.477 | 2008-08-29T09:58:24.477 | null | null | 1,034 | null |
34,290 | 2 | null | 34,270 | 1 | null | Having used [Reflector](http://www.red-gate.com/products/reflector/) to have a quick peak at the Directory Services code, it looks like your Active Directory Service Interfaces installation might be kaput.
You can download version 2.5 from [Technet](http://technet.microsoft.com/en-us/library/cc749949.aspx) although I'... | null | CC BY-SA 2.5 | null | 2008-08-29T09:55:21.847 | 2008-08-29T09:55:21.847 | null | null | 2,562 | null |
34,293 | 2 | null | 34,126 | 0 | null | My personal preference is to use jQuery in external js files so the js is completely separate from the html. Javascript should be unobtrusive so inline (ie, the first example) is not really the best choice in my opinion. When looking at the html, the only sign that you are using js should be the script includes in the ... | null | CC BY-SA 2.5 | null | 2008-08-29T09:56:49.863 | 2008-08-29T09:56:49.863 | null | null | null | null |
34,284 | 1 | 34,388 | null | 20 | 36,496 | I get the following error when building my Windows Forms solution:
> "LC.exe" exited with code -1
I use two commercial Windows Forms Libraries: Infragistics and the Gantt-Control from plexityhide.com, that's why I have licenses.licx files in my WinForms Projects. We also use Visual Sourcesafe as our Source Control.
... | How to fix build error in Visual Studio: '"LC.exe" exited with code -1' | CC BY-SA 4.0 | 0 | 2008-08-29T09:50:55.727 | 2020-01-27T07:43:42.110 | 2018-08-21T18:31:32.007 | 107,625 | 3,353 | [
"visual-studio",
"winforms",
"visual-studio-2005"
] |
34,268 | 2 | null | 32,966 | 2 | null | > populating the view code with <% if
feature_allowed %> tags everywhere.
I don't think you want to do that. Assuming none of the alternatives suggested are practicable, at the very least you should consider shifting those checks into your controllers, where you can refactor them into a before_filter.
See section ... | null | CC BY-SA 2.5 | null | 2008-08-29T09:41:09.417 | 2008-08-29T09:41:09.417 | null | null | 1,060 | null |
34,250 | 2 | null | 34,182 | 1 | null | I agree with John,
For example:-
```
using System.IO;
...
public class Program {
public static void Main() {
foreach(string s in File.ReadAllLines(@"c:\foo\bar\something.txt") {
// Do something with each line...
}
}
}
```
| null | CC BY-SA 2.5 | null | 2008-08-29T09:30:07.150 | 2008-08-29T09:30:07.150 | null | null | 3,394 | null |
34,299 | 2 | null | 34,284 | 5 | null | We frequently encounter this error from our last project. The solution is to reinstall the libraries since we're using the trial version. This occurs when the libraries expire.
| null | CC BY-SA 2.5 | null | 2008-08-29T09:59:59.887 | 2008-08-29T09:59:59.887 | null | null | 718 | null |
34,300 | 1 | 34,342 | null | 4 | 1,041 | Has the introduction of the .net framework made raw programming in COM and DCOM redundant ?
(Except for using some COM+ services, e.g. for transaction management through the System.EnterpriseServices namespace)
| Has .NET made raw COM and DCOM programming redundant? | CC BY-SA 2.5 | null | 2008-08-29T10:00:33.567 | 2008-09-15T16:49:24.597 | 2008-08-29T10:37:23.243 | 372 | 381 | [
".net",
"com",
"com+",
"dcom"
] |
34,296 | 2 | null | 34,249 | 0 | null | > > In this case OysterD's code will be the fastest solution (vertex coloring)That would really surprise me. My solution makes at most two passes through the list (if the last node is linked to the penultimate lode), and in the common case (no loop) will make only one pass. With no hashing, no memory allocation, etc.
Y... | null | CC BY-SA 2.5 | null | 2008-08-29T09:58:35.397 | 2008-08-29T09:58:35.397 | 2020-06-20T09:12:55.060 | -1 | 1,968 | null |