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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17,702 | 2 | null | 15,496 | 15 | null | Not really a feature, but it makes me chuckle that `goto` is a reserved word that does nothing except prompting javac to poke you in the eye. Just to remind you that you are in OO-land now.
| null | CC BY-SA 2.5 | null | 2008-08-20T10:07:43.700 | 2008-08-29T21:05:03.427 | 2008-08-29T21:05:03.427 | 1,853 | 1,853 | null |
17,703 | 2 | null | 17,435 | 0 | null | Server-side programming has been around for a lot longer than client side, and has of good solutions already.
JavaScript has survived and become popular purely because developers have very little choice in the matter - it's the only language that can interact with a DOM. Its only competition on the client side is fro... | null | CC BY-SA 2.5 | null | 2008-08-20T10:16:49.373 | 2008-10-22T21:02:41.033 | 2008-10-22T21:02:41.033 | 21,632 | 1,000 | null |
17,701 | 2 | null | 17,533 | -1 | null | If your secondary drive has it's own file permissions, like say you have an other copy of windows installed on it. It will prompt.
It will also prompt if files are in use, which sometimes occurs if you have windows explorer open to the same directory and the file selected with a file previewer displaying the contents.... | null | CC BY-SA 2.5 | null | 2008-08-20T10:07:06.183 | 2008-08-20T10:07:06.183 | null | null | 580 | null |
17,709 | 2 | null | 17,704 | 4 | null | It's probably best not to try to use the Posix subsystem for Windows. It was never really complete and is just a useless marketing tick box.
If you're truly interested in programming stuff for Unix, download one of the many Linux distributions (ie. [Ubuntu](http://ubuntu.com)) and [VirtualBox](http://virtualbox.org). ... | null | CC BY-SA 2.5 | null | 2008-08-20T10:26:27.573 | 2008-08-20T10:26:27.573 | null | null | 893 | null |
17,704 | 1 | 17,709 | null | 2 | 1,626 | One of the bullet point features for Windows Vista Enterprize and Ultimate is the Unix subsystem for windows, which allows you to write posix... stuff? Anyway I'm outa my league talking about it... Anyone use this feature? Or explain it...
I know next to nothing about Unix programming.
| Unix subsystem for windows | CC BY-SA 3.0 | 0 | 2008-08-20T10:18:36.123 | 2015-08-29T22:33:28.970 | 2015-08-29T22:33:28.970 | 2,642,553 | 580 | [
"windows",
"posix"
] |
17,698 | 2 | null | 17,664 | 4 | null | [System.Web.HttpRequest.UserHostname](https://learn.microsoft.com/en-us/dotnet/api/system.web.httprequest.userhostname?redirectedfrom=MSDN&view=netframework-4.8#System_Web_HttpRequest_UserHostName) as suggested in [this answer](https://stackoverflow.com/a/17691/1011722) just returns the IP :-(
But I just found this:
... | null | CC BY-SA 4.0 | null | 2008-08-20T10:05:54.830 | 2019-06-12T14:09:05.117 | 2019-06-12T14:09:05.117 | 1,011,722 | 91 | null |
17,714 | 2 | null | 12,877 | 0 | null | [Squirrel](http://www.squirrelsql.org/) is a nice database agonstic application development client. No Oracle specific features, but runs well on the mac
| null | CC BY-SA 2.5 | null | 2008-08-20T10:37:59.277 | 2008-08-20T10:37:59.277 | null | null | 1,853 | null |
17,713 | 2 | null | 17,435 | 1 | null | It seems like most of you are put off by this idea because of how unpleasant the various client-side implementations of Javascript have been. I would check out existing solutions before passing judgment, though, because remember that no particular SS/JS solution is tied to the JS implementations currently being used in... | null | CC BY-SA 2.5 | null | 2008-08-20T10:34:23.357 | 2008-08-20T10:34:23.357 | null | null | 1,344 | null |
17,710 | 2 | null | 17,532 | 1 | null | Using custom composite controls has a point in a situation where you have a large web application and want to reuse large chunks in many places. Then you would only add child controls of the ones you are developing instead of repeating yourself.
On a large project I've worked recently what we did is the following:
- -... | null | CC BY-SA 2.5 | null | 2008-08-20T10:27:56.663 | 2008-08-20T10:27:56.663 | null | null | 1,801 | null |
17,721 | 1 | 22,796 | null | 8 | 3,968 | Have any of you tried Hadoop? Can it be used without the distributed filesystem that goes with it, in a Share-nothing architecture? Would that make sense?
I'm also interested into any performance results you have...
| Experience with Hadoop? | CC BY-SA 2.5 | 0 | 2008-08-20T10:43:13.227 | 2019-01-14T18:26:01.353 | 2008-09-26T15:34:29.140 | 1,450 | 446,497 | [
"performance",
"distributed",
"hadoop",
"shared-nothing"
] |
17,645 | 1 | 17,649 | null | 19 | 17,303 | Am I correct in assuming that the only difference between "windows files" and "unix files" is the linebreak?
We have a system that has been moved from a windows machine to a unix machine and are having troubles with the format.
I need to automate the translation between unix/windows before the files get delivered to th... | Differences between unix and windows files | CC BY-SA 3.0 | 0 | 2008-08-20T09:18:44.707 | 2016-06-14T03:59:06.377 | 2020-06-20T09:12:55.060 | -1 | 86 | [
"java",
"windows",
"unix",
"file"
] |
17,723 | 2 | null | 17,430 | 1 | null | Short of a formal mathematical proof (which I imagine would be difficult), the proof of the pudding is in the unit tests. You have to find a way to wrap the converted C# snippets, compile the and run them under a similar environment, then compare the output against the original. Unless you're rigorous in your testing, ... | null | CC BY-SA 2.5 | null | 2008-08-20T10:44:32.787 | 2008-08-20T10:44:32.787 | null | null | 1,000 | null |
17,715 | 1 | 17,730 | null | 5 | 294 | So, you're writing a web application and you have several areas of the site where the user can upload files. My basic working method for this is to store the actual file on the server, and have a database table that connects the stored filename to the record it relates to.
My question is this: Should there be a differ... | When is a file just a file? | CC BY-SA 2.5 | null | 2008-08-20T10:38:45.653 | 2015-10-08T00:52:19.917 | 2008-08-23T15:21:52.690 | 2,134 | 1,951 | [
"database-design"
] |
17,718 | 2 | null | 17,704 | 4 | null | You might like [Cygwin](http://www.cygwin.com/) for having a Linux environment on your windows machine. Otherwise, definitely go for an isolated environment (virtual machines) like the others have suggested.
| null | CC BY-SA 2.5 | null | 2008-08-20T10:40:46.460 | 2008-08-20T10:40:46.460 | null | null | 1,951 | null |
17,717 | 1 | null | null | 26 | 16,532 | We are currently using MySQL for a product we are building, and are keen to move to PostgreSQL as soon as possible, primarily for licensing reasons.
Has anyone else done such a move? Our database is the lifeblood of the application and will eventually be storing TBs of data, so I'm keen to hear about experiences of pe... | Migrating from MySQL to PostgreSQL | CC BY-SA 2.5 | 0 | 2008-08-20T10:40:38.723 | 2012-05-06T22:46:40.563 | 2008-08-31T00:46:43.493 | 305 | 1,693 | [
"mysql",
"database",
"postgresql",
"licensing",
"migration"
] |
17,720 | 2 | null | 17,670 | 1 | null | Storing a hash is a good idea. However, please definitely read Jeff's [You're Probably Storing Passwords Incorrectly](http://www.codinghorror.com/blog/archives/000953.html).
| null | CC BY-SA 2.5 | null | 2008-08-20T10:41:15.837 | 2008-08-20T10:41:15.837 | null | null | 893 | null |
17,724 | 2 | null | 17,715 | 2 | null | From what you've said I would just store files with random (UUID or what-not) filenames in one place. I would then have a 'attachments' table or something that contains references to all your external files. This table would also contain the meta-data for that file, so what type of file it is (picture, CV etc) and so o... | null | CC BY-SA 2.5 | null | 2008-08-20T10:46:10.443 | 2008-08-20T10:46:10.443 | null | null | 1,666 | null |
17,728 | 2 | null | 17,715 | 2 | null | A different table for each file type only becomes relevant if you store other metadata (and therefore, additional columns) for each type of file. If your tables for each file type only contain the same columns (e.g., filename, filetype, dateuploaded, etc) then it would make sense to have them all on one table.
| null | CC BY-SA 2.5 | null | 2008-08-20T10:46:40.970 | 2008-08-20T10:46:40.970 | null | null | 372 | null |
17,726 | 2 | null | 17,715 | 2 | null | There might be various reasons for storing different files in different locations.
Firstly, a restriction on the number of files in one directory might be a consideration.
Secondly security might be an issue - if some are to be publicly viewable (such as profile photos for example) but others are not (such as CVs) th... | null | CC BY-SA 2.5 | null | 2008-08-20T10:46:24.327 | 2008-08-20T10:46:24.327 | null | null | 1,908 | null |
17,725 | 1 | 17,745 | null | 15 | 3,171 | Hello again ladies and gents!
OK, following on from my other question on [ASP.NET Web Service Results, Proxy Classes and Type Conversion](https://stackoverflow.com/questions/6681/aspnet-web-service-results-proxy-classes-and-type-conversion). I've come to a part in my project where I need to get my thinking cap on.
Basi... | Large, Complex Objects as a Web Service Result | CC BY-SA 2.5 | 0 | 2008-08-20T10:46:20.723 | 2015-06-30T03:46:19.073 | 2020-06-20T09:12:55.060 | -1 | 832 | [
"c#",
"asp.net",
"xml",
"web-services",
"serialization"
] |
17,729 | 2 | null | 17,725 | 1 | null | I had some great answers on a very similar topic yesterday that might be useful for you:
[Communication between javascript and the server](https://stackoverflow.com/questions/16529/communication-between-javascript-and-the-server)
| null | CC BY-SA 2.5 | null | 2008-08-20T10:50:15.363 | 2008-08-20T10:50:15.363 | 2017-05-23T12:34:51.097 | -1 | 1,951 | null |
17,737 | 2 | null | 17,704 | 1 | null | I don't want to discourage you from trying linux. But in this context it should be pointed out, that Linux is not completely posix compliant!
Wikipedia has a list of [fully posix compliant operating systems](http://en.wikipedia.org/wiki/Posix#Fully_POSIX-compliant)
From that list, Solaris is probably the best to get ... | null | CC BY-SA 2.5 | null | 2008-08-20T11:06:06.383 | 2008-08-20T11:06:06.383 | null | null | 1,870 | null |
17,741 | 2 | null | 17,732 | 8 | null | Unless profiling shows that the assertions are causing performance problems, I say they should stay in the production release as well.
However, I think this also requires that you handle assertion failures somewhat gracefully. For example, they should result in a general type of dialog with the option of (automatical... | null | CC BY-SA 2.5 | null | 2008-08-20T11:08:00.047 | 2008-08-20T11:08:00.047 | null | null | 1,709 | null |
17,730 | 2 | null | 17,715 | 3 | null | From your example, there is an argument for two tables, as you have files that can be associated with two different things.
- -
If you put these in one table, (and you want to allow users to have more than one photo or cv) then you need two link-tables to associate files->users and files->cms_pages. Arguably this im... | null | CC BY-SA 3.0 | null | 2008-08-20T10:58:09.057 | 2015-10-08T00:52:19.917 | 2015-10-08T00:52:19.917 | 67,579 | 1,820 | null |
17,738 | 2 | null | 17,735 | 5 | null | See these two questions on SO for more information:
- [What does branch, tag and trunk really mean?](https://stackoverflow.com/questions/16142/what-does-branch-tag-and-trunk-really-mean)- [Subversion question](https://stackoverflow.com/questions/15621/subversion-question)
| null | CC BY-SA 2.5 | null | 2008-08-20T11:06:07.540 | 2008-08-20T11:06:07.540 | 2017-05-23T12:33:26.220 | -1 | 267 | null |
17,742 | 2 | null | 17,704 | 0 | null | The Posix subsystem in Windows is not only incomplete, but also slower in many cases than the "native" windows functions for the same thing. This is true for I/O for example.
| null | CC BY-SA 2.5 | null | 2008-08-20T11:08:08.347 | 2008-08-20T11:08:08.347 | null | null | 988 | null |
17,736 | 2 | null | 17,435 | 1 | null | > Does anyone see Server-side Javascript
taking off?
Try looking at [http://www.appjet.com](http://www.appjet.com) a startup doing hosted JavaScript applications to get a feel for what you can do. I especially like the learning process which gently nudges the user to build things with a minimal overhead ~ [http://ap... | null | CC BY-SA 2.5 | null | 2008-08-20T11:06:03.327 | 2008-08-20T11:06:03.327 | null | null | 2,092 | null |
17,745 | 2 | null | 17,725 | 5 | null | The .Net XML (de)serialisation is pretty nicely implemented. At first thought, I don't think this is a bad idea at all.
If the two applications import the same C# class(es) definition(s), then this is a relatively nice way of getting copy-constructor behaviour for free. If the class structure changes, then everything ... | null | CC BY-SA 2.5 | null | 2008-08-20T11:12:00.193 | 2008-08-20T11:12:00.193 | null | null | 1,820 | null |
17,744 | 2 | null | 17,735 | 5 | null | What I do and normally see as a standard is:
The trunk should contain your main line of development, your unstable version.
You should create release branches for your releases.
Something like:
/trunk (here your are developing version 2.0)
/branches/RB-1.0 (this is the release branch for 1.0)
/branches/RB-1.5
When... | null | CC BY-SA 2.5 | null | 2008-08-20T11:10:16.360 | 2008-08-20T11:10:16.360 | null | null | 2,089 | null |
17,748 | 2 | null | 13,086 | 0 | null | @Martin there is a free version.
[Turbo Delphi](http://www.turboexplorer.com/)
If you are comfortable with c# you will see many similarities with Delphi.
I also found the community surrounding the newsgroups to be active and helpful. They have a smilar concept to MVPs they were called Team B (but as Borland doesn't ... | null | CC BY-SA 2.5 | null | 2008-08-20T11:16:14.613 | 2008-08-20T11:16:14.613 | null | null | 1,116 | null |
17,735 | 1 | 17,738 | null | 5 | 399 | When I first started using revision control systems like [CVS](http://en.wikipedia.org/wiki/Concurrent_Versions_System) and [SVN](http://en.wikipedia.org/wiki/Apache_Subversion), I didn't really understand the concepts of the "trunk", branching, merging and tagging. I'm now starting to understand these concepts, and re... | Repository organisation | CC BY-SA 3.0 | null | 2008-08-20T11:03:55.377 | 2012-04-25T18:25:05.507 | 2012-04-25T18:25:05.507 | 1,332,690 | 1,951 | [
"versioning"
] |
17,732 | 1 | null | null | 189 | 69,956 | There's a [discussion](http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/8e0235d58c8635c2) going on over at comp.lang.c++.moderated about whether or not assertions, which in C++ only exist in debug builds by default, should be kept in production code or not.
Obviously, each project is unique, ... | When should assertions stay in production code? | CC BY-SA 4.0 | 0 | 2008-08-20T11:01:19.283 | 2022-12-24T09:09:13.307 | 2022-12-24T09:09:13.307 | 11,107,541 | 2,095 | [
"assert"
] |
17,751 | 2 | null | 17,732 | -8 | null | An assertion is error, pure and simple and therefore should be handled like one.
Since an error should be handled in release mode then you don't really need assertions.
The main benefit I see for assertions is a conditional break - they are much easier to setup than drilling through VC's windows to setup something th... | null | CC BY-SA 2.5 | null | 2008-08-20T11:17:52.893 | 2008-08-20T11:17:52.893 | null | null | 342 | null |
17,747 | 2 | null | 17,704 | 0 | null | In addition to Cygwin mentioned by another poster you should also consider [MinGW](http://www.mingw.org/).
| null | CC BY-SA 2.5 | null | 2008-08-20T11:16:00.900 | 2008-08-20T11:16:00.900 | null | null | 1,969 | null |
17,750 | 2 | null | 17,670 | 0 | null | It seems that the developer handling this is going to wrap the existing encryption with [yEnc](http://www.yenc.org) to preserve the table integrity as the data needs to be retrievable, and this save all that messy mucking about with infinite-improbab.... uhhh changing column types on entrenched installations.
Cheers Gu... | null | CC BY-SA 2.5 | null | 2008-08-20T11:16:49.930 | 2008-08-20T11:16:49.930 | null | null | 379 | null |
17,752 | 2 | null | 15,917 | 3 | null | I do like the Interceptor approach mentioned, and use this on the project I'm currently working on.
However, one obvious disadvantage that deserves highlighting is that this approach will only audit data changes made via your application. Any direct data modifications such as ad-hoc SQL scripts that you may need to ex... | null | CC BY-SA 2.5 | null | 2008-08-20T11:18:15.840 | 2008-08-20T11:18:15.840 | null | null | 2,084 | null |
17,749 | 2 | null | 1,669 | 3 | null | As an starting point, it will be good to create a recursive descent parser (RDP) (let's say you want to create your own flavour of BASIC and build a BASIC interpreter) to understand how to write a compiler.
I found the best information in Herbert Schild's C Power Users, chapter 7. This chapter refers to another book of... | null | CC BY-SA 2.5 | null | 2008-08-20T11:16:20.307 | 2008-08-20T11:16:20.307 | null | null | null | null |
17,756 | 2 | null | 15,481 | 10 | null | Sun's Java code style seem to prefer naming labels in the same way as variables, meaning camel case with the first letter in lower case.
| null | CC BY-SA 2.5 | null | 2008-08-20T11:19:23.640 | 2008-08-20T11:19:23.640 | null | null | 1,709 | null |
17,755 | 2 | null | 17,732 | 0 | null | Most of the time, when i use assertion in java (the assert keyword) I automatically add some production codes after. According to the case, it can be a logging message, an exception... or nothing.
According to me, all your assertions are critical in dev release, not in production relase. Some of them must be kept, oth... | null | CC BY-SA 2.5 | null | 2008-08-20T11:19:05.730 | 2008-08-20T11:19:05.730 | null | null | 1,730 | null |
17,767 | 2 | null | 17,735 | 1 | null | Eric has an excellent series of articles on Source Control use and organisational best practices.
[Chapter 7 deals with branches](http://www.ericsink.com/scm/scm_branches.html) (and yes, it recommends the /trunk/ and /branches/ directories you suggest).
| null | CC BY-SA 2.5 | null | 2008-08-20T11:28:43.193 | 2008-08-20T11:28:43.193 | null | null | 2,084 | null |
17,763 | 2 | null | 17,732 | 2 | null | Provided they are handled just as any other error, I don't see a problem with it. Do bear in mind though that failed assertions in C, as with other languages, will just exit the program, and this isn't usually sufficient for production systems.
There are some exceptions - PHP, for instance, allows you to create a cust... | null | CC BY-SA 2.5 | null | 2008-08-20T11:22:54.143 | 2008-08-20T11:22:54.143 | null | null | 1,693 | null |
17,757 | 2 | null | 17,561 | 0 | null | Other than the excellent tools already mentioned, I find [Charles](http://www.charlesproxy.com/) to be extremely useful. Especially since I do alot of work with Flash Remoting which it handles excellently.
> Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP traffic... | null | CC BY-SA 2.5 | null | 2008-08-20T11:20:14.680 | 2008-08-20T11:20:14.680 | 2020-06-20T09:12:55.060 | -1 | 914 | null |
17,754 | 2 | null | 17,732 | 0 | null | I rarely use assertions for anything other that compile time type checking. I would use an instead of an assertion just because most languages are built to handle them.
I offer an example
```
file = create-some-file();
_throwExceptionIf( file.exists() == false, "FILE DOES NOT EXIST");
```
against
```
file = creat... | null | CC BY-SA 2.5 | null | 2008-08-20T11:19:04.810 | 2008-08-20T11:19:04.810 | null | null | 716 | null |
17,773 | 2 | null | 17,770 | 2 | null | Why not set up a Wiki?
If you are on windows, i know that [ScrewTurn wiki](http://www.screwturn.eu/Default.aspx) is pretty simple to deploy on a desktop/laptop. No database to fuss around with.
| null | CC BY-SA 2.5 | null | 2008-08-20T11:34:07.673 | 2008-08-20T11:34:07.673 | null | null | 960 | null |
17,769 | 2 | null | 15,496 | 23 | null | As a starter I really appreciate the JConsole monitoring software in Java 6, it has solved a couple of problems for me already and I keep on finding new uses for it.
Apparently the JConsole was there already in Java 5 but I reckon it is improved now and at least working much more stable as of now.
JConsole in Java 5:... | null | CC BY-SA 2.5 | null | 2008-08-20T11:30:49.960 | 2008-08-20T11:30:49.960 | null | null | 2,093 | null |
17,771 | 2 | null | 17,770 | 5 | null | Two Things I do:
- -
Cheers.
| null | CC BY-SA 2.5 | null | 2008-08-20T11:33:56.943 | 2008-08-20T11:33:56.943 | null | null | 380 | null |
17,770 | 1 | null | null | 11 | 861 | What do the clever programmers here do to keep track of handy programming tricks and useful information they pick up over their many years of experience? Things like useful compiler arguments, IDE short-cuts, clever code snippets, etc.
I sometimes find myself frustrated when looking up something that I used to know a ... | Tracking Useful Information | CC BY-SA 3.0 | 0 | 2008-08-20T11:32:33.950 | 2017-07-10T19:44:17.703 | 2017-07-10T19:44:17.703 | 7,750,640 | 1,693 | [
"knowledge-management"
] |
17,759 | 2 | null | 4,724 | 1 | null | This is a topic i myself have pondered for a while but I have not really come to a decision, as usual time is the main problem... ;)
And since I can´t find these links sofar in this post i add them for public interest:
Success and Failure story:
[Lisping at JPL](http://www.flownet.com/gat/jpl-lisp.html)
Really impre... | null | CC BY-SA 2.5 | null | 2008-08-20T11:21:05.380 | 2008-12-09T10:23:22.880 | 2008-12-09T10:23:22.880 | 2,093 | 2,093 | null |
17,772 | 1 | 17,807 | null | 20 | 10,785 | This is probably best shown with an example. I have an enum with attributes:
```
public enum MyEnum {
[CustomInfo("This is a custom attrib")]
None = 0,
[CustomInfo("This is another attrib")]
ValueA,
[CustomInfo("This has an extra flag", AllowSomething = true)]
ValueB,
}
```
I want to get t... | Anyone know a quick way to get to custom attributes on an enum value? | CC BY-SA 2.5 | 0 | 2008-08-20T11:34:06.753 | 2013-04-11T08:44:29.983 | null | null | 905 | [
"c#",
".net",
"reflection",
"enums",
"attributes"
] |
17,768 | 2 | null | 1,669 | 9 | null | > "... Let's Build a Compiler ..."
I'd second [http://compilers.iecc.com/crenshaw/](http://compilers.iecc.com/crenshaw/) by [@sasb](https://stackoverflow.com/questions/1669/learning-to-write-a-compiler#1678). Forget buying more books for the moment.
Why? Tools & language.
The language required is Pascal and if I r... | null | CC BY-SA 2.5 | null | 2008-08-20T11:28:58.717 | 2009-03-05T22:21:23.140 | 2017-05-23T11:54:41.420 | -1 | 2,092 | null |
17,779 | 2 | null | 16,487 | 0 | null | The Maven SourceForge plug-in does not work with Maven 2. Also I believe this plug-in uses FTP which is no longer supported.
| null | CC BY-SA 2.5 | null | 2008-08-20T11:36:44.970 | 2008-08-20T11:36:44.970 | null | null | 1,969 | null |
17,780 | 2 | null | 17,770 | 1 | null | I send them to my gmail account, that way I have them where ever I go, and they can be put into appropriate folders for later.
| null | CC BY-SA 2.5 | null | 2008-08-20T11:36:45.767 | 2008-08-20T11:36:45.767 | null | null | 2,098 | null |
17,778 | 2 | null | 17,725 | 4 | null | I'm loving `JSON` for this kind of thing. I just finished a POC drop-things type portal for my company using `jQuery` to contact web services with script service enabled. The messages are lightweight and parsing etc is pretty much handled. The `jQuery ajax` stuff I read was here (loving it!) : [jquery ajax article](htt... | null | CC BY-SA 3.0 | null | 2008-08-20T11:36:35.017 | 2015-06-30T03:46:19.073 | 2015-06-30T03:46:19.073 | 725,306 | 158,302 | null |
17,776 | 2 | null | 17,770 | 2 | null | Blog about it.
One of the nice side-effects of blogging is that if you use a sensible categorization or tagging system, it's quite easy to search for stuff within your blog. The fact that you wrote about it also makes it easier to remember problems you have encountered before ("hey, I blogged about that!").
That's a... | null | CC BY-SA 2.5 | null | 2008-08-20T11:36:17.310 | 2008-08-20T11:36:17.310 | null | null | 372 | null |
17,790 | 2 | null | 17,786 | 3 | null | In Visual Studio you can always disable specific warnings by going to:
> Project settings -> C/C++ -> Advanced -> Disable Specific warnings: 4341
| null | CC BY-SA 2.5 | null | 2008-08-20T11:49:44.237 | 2008-08-20T11:50:36.760 | 2008-08-20T11:50:36.760 | 1 | 1,830 | null |
17,789 | 2 | null | 17,770 | 1 | null | I second the blog about it technique...even Jeff said that's a [major reason he blogs.](http://www.codinghorror.com/blog/archives/000021.html)
Also, regarding the wiki idea, if you set one up at work, be sure to encourage your coworkers to do the same. When someone finds something of interest they can just write a li... | null | CC BY-SA 2.5 | null | 2008-08-20T11:48:29.527 | 2008-08-20T11:48:29.527 | null | null | 194 | null |
17,781 | 1 | null | null | 11 | 14,971 | I am running a number of SSL-encrypted websites, and need to generate certificates to run on these. They are all internal applications, so I don't need to purchase a certificate, I can create my own.
I have found it quite tedious to do everything using openssl all the time, and figure this is the kind of thing that ha... | What Certificate Authority Software is Available? | CC BY-SA 2.5 | 0 | 2008-08-20T11:36:55.530 | 2016-01-05T17:48:36.847 | 2008-08-23T16:27:15.950 | 2,134 | 277 | [
"linux",
"openssl",
"certificate-authority"
] |
17,792 | 2 | null | 17,770 | 0 | null | I agree with emailing, the wiki and the blog. Emailing is the most useful. If you can't use GMail and you're on windows, install a desktop search utility (Windows search, Google Desktop, Copernic, etc)
I also like to jot it into a textfile and save it in my documents folder. Whatever desktop search utility you use wil... | null | CC BY-SA 2.5 | null | 2008-08-20T11:51:02.563 | 2008-08-20T11:51:02.563 | null | null | 1,726 | null |
17,799 | 2 | null | 17,795 | 0 | null | A lot of users have the same shared IP address, so you will not be able to find their hostnames. And a lot of users won't necessarily have DNS records in public DNS for the IPs they are coming from as well.
| null | CC BY-SA 2.5 | null | 2008-08-20T11:56:09.633 | 2008-08-20T11:56:09.633 | null | null | 380 | null |
17,786 | 1 | 17,793 | null | 6 | 1,145 | When compiling my C++ .Net application I get 104 warnings of the type:
```
Warning C4341 - 'XX': signed value is out of range for enum constant
```
Where XX can be
- - - - - -
I can't seem to remove these warnings whatever I do. When I double click on them it takes me to a part of my code that uses OdbcParameters... | Warning C4341 - 'XX': signed value is out of range for enum constant | CC BY-SA 3.0 | null | 2008-08-20T11:43:49.617 | 2012-04-25T17:33:39.280 | 2012-04-25T17:33:39.280 | 1,332,690 | 1,912 | [
".net",
"c++",
"visual-c++"
] |
17,793 | 2 | null | 17,786 | 4 | null | This is a [compiler bug](http://forums.msdn.microsoft.com/en-US/vclanguage/thread/7bc77d72-c223-4d5e-b9f7-4c639c68b624/). Here's [another post](http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=159519&SiteID=1) confirming it's a known issue. I've got the same issue in one of my projects and there's no way to preve... | null | CC BY-SA 2.5 | null | 2008-08-20T11:51:54.950 | 2008-08-20T11:51:54.950 | null | null | 1,042 | null |
17,785 | 1 | 17,809 | null | 0 | 2,210 | I know this is not programming directly, but it's regarding a development workstation I'm setting up.
I've got a Windows Server 2003 machine that needs to be on two LAN segments at the same time. One of them is a 10.17.x.x LAN and the other is 10.16.x.x
The problem is that I don't want to be using up the bandwidth o... | Default Internet connection on Dual LAN Workstation | CC BY-SA 3.0 | null | 2008-08-20T11:43:21.833 | 2013-12-19T18:46:14.980 | 2013-12-19T18:46:14.980 | 2,124,004 | 194 | [
"networking",
"windows-server-2003"
] |
17,782 | 2 | null | 17,735 | 1 | null | I have used Perforce for a long time, and so my comments may be a little Perforce-centric, but the basic principles apply to any SCM software that has half decent branching.
I'm a very strong believer in using branched development practices. I have a "main" (aka "mainline") that represents the codebase from now to eter... | null | CC BY-SA 2.5 | null | 2008-08-20T11:37:35.577 | 2008-08-20T11:37:35.577 | null | null | 2,102 | null |
17,795 | 1 | 17,801 | null | 5 | 1,307 | I wanted to show the users Name Address (see [www.ipchicken.com](http://www.ipchicken.com)), but the only thing I can find is the IP Address. I tried a reverse lookup, but didn't work either:
```
IPAddress ip = IPAddress.Parse(this.lblIp.Text);
string hostName = Dns.GetHostByAddress(ip).HostName;
this.lblHost.Text = h... | Getting the Remote Name Address (not IP) | CC BY-SA 3.0 | 0 | 2008-08-20T11:52:59.610 | 2012-04-25T17:32:52.557 | 2012-04-25T17:32:52.557 | 1,332,690 | 2,104 | [
".net",
"asp.net"
] |
17,802 | 2 | null | 17,795 | 2 | null | You need the Dns.Resolve() method from System.Net
See this [article](http://www.c-sharpcorner.com/UploadFile/DougBell/NSLookUpDB00112052005013753AM/NSLookUpDB001.aspx)
| null | CC BY-SA 2.5 | null | 2008-08-20T11:58:30.737 | 2008-08-20T11:58:30.737 | null | null | 194 | null |
17,797 | 2 | null | 17,795 | 0 | null | Not all IP addresses need to have hostnames. I think that's what is happening in your case. Try it ouy with more well-known IP/hostname pairs eg:
> Name: google.com Address: 72.14.207.99Name: google.com Address:
64.233.187.99Name: google.com Address:
64.233.167.99
...I might just be wrong
| null | CC BY-SA 2.5 | null | 2008-08-20T11:55:26.983 | 2008-08-20T11:55:26.983 | null | null | 52 | null |
17,801 | 2 | null | 17,795 | 3 | null | Edit of my previous answer.
Try (in vb.net):
```
Dim sTmp As String
Dim ip As IPHostEntry
sTmp = MaskedTextBox1.Text
Dim ipAddr As IPAddress = IPAddress.Parse(sTmp)
ip = Dns.GetHostEntry(ipAddr)
MaskedTextBox2.Text = ip.HostName
```
Dns.resolve appears to be obsolete in later versions of .Net.... | null | CC BY-SA 2.5 | null | 2008-08-20T11:58:22.983 | 2008-08-20T12:25:55.583 | 2008-08-20T12:25:55.583 | 1,726 | 1,726 | null |
17,810 | 2 | null | 17,795 | 1 | null | Also remember that reverse lookup won't allways give the same address as the one used in forward DNS lookup.
For example for google.com I get ip 64.233.167.99
but reverse dns lookup for that IP returns py-in-f99.google.com
| null | CC BY-SA 2.5 | null | 2008-08-20T12:03:35.590 | 2008-08-20T12:03:35.590 | null | null | 1,534 | null |
17,809 | 2 | null | 17,785 | 2 | null | I'm no network expert but I have fiddled with the route command a number of times...
```
route add 0.0.0.0 MASK 0.0.0.0 <address of gateway on 10.17.x.x net>
```
Will route all default traffic through the 10.17.x.x gateway, if you find that it still routes through the other interface, you should make sure that the n... | null | CC BY-SA 2.5 | null | 2008-08-20T12:03:22.770 | 2008-08-20T12:03:22.770 | null | null | 2,105 | null |
17,806 | 1 | 2,137,718 | null | 350 | 210,709 | I am currently developing a .NET application, which consists of 20 projects. Some of those projects are compiled using .NET 3.5, some others are still .NET 2.0 projects (so far no problem).
The problem is that if I include an external component I always get the following warning:
> Found conflicts between different ver... | Warning: Found conflicts between different versions of the same dependent assembly | CC BY-SA 4.0 | 0 | 2008-08-20T12:00:59.687 | 2022-10-25T15:38:11.893 | 2021-05-26T18:59:42.523 | 2,756,409 | 2,078 | [
".net",
"warnings"
] |
17,816 | 2 | null | 17,806 | 2 | null | This actually depends on your external component. When you reference an external component in a .NET application it generates a GUID to identify that component. This error occurs when the external component referenced by one of your projects has the same name and but different version as another such component in anoth... | null | CC BY-SA 2.5 | null | 2008-08-20T12:11:30.847 | 2008-08-20T12:11:30.847 | null | null | 372 | null |
17,804 | 2 | null | 17,785 | 0 | null | If you don't move your network cables around and can assign yourself a static IP address on the 10.16.x.x network, you can refrain from assigning a gateway address on that network. If there is no gateway, internet packets will not be routed on that interface.
If you use DHCP, static record to recognize your MAC addre... | null | CC BY-SA 2.5 | null | 2008-08-20T11:59:58.470 | 2008-08-20T11:59:58.470 | 2015-08-20T04:41:57.227 | -1 | null | null |
17,812 | 2 | null | 17,806 | 46 | null | Basically this happens when the assemblies you're referencing have "Copy Local" set to "True", meaning that a copy of the DLL is placed in the bin folder along with your exe.
Since Visual Studio will copy all of the dependencies of a referenced assembly as well, it's possible to end up with two different builds of the... | null | CC BY-SA 2.5 | null | 2008-08-20T12:08:05.457 | 2008-08-20T12:08:05.457 | null | null | 615 | null |
17,807 | 2 | null | 17,772 | 11 | null | This is probably the easiest way.
A quicker way would be to Statically Emit the IL code using Dynamic Method and ILGenerator. Although I've only used this to GetPropertyInfo, but can't see why you couldn't emit CustomAttributeInfo as well.
For example code to emit a getter from a property
```
public delegate object... | null | CC BY-SA 3.0 | null | 2008-08-20T12:01:50.027 | 2013-04-11T08:44:29.983 | 2013-04-11T08:44:29.983 | 815,073 | 1,075 | null |
17,819 | 2 | null | 17,770 | 0 | null | Subscribe in Google Reader and then search later.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:14:25.457 | 2008-08-20T12:14:25.457 | null | null | 1,042 | null |
17,817 | 1 | 17,822 | null | 14 | 8,739 | Any recommendations for a javascript form validation library. I could try and roll my own (but I'm not very good at javascript). Needs to support checking for required fields, and preferably regexp validation of fields.
| Recommendation for javascript form validation library | CC BY-SA 2.5 | 0 | 2008-08-20T12:12:13.073 | 2018-03-22T00:02:56.903 | 2012-01-02T12:40:24.580 | 362,006 | 1,912 | [
"javascript",
"forms",
"validation"
] |
17,820 | 2 | null | 8,968 | 1 | null | I second Spring Web Flow. Depending on how complex the process is, Web Flow is great for managing various states and I've found that it's pretty easy to pick up and there's a good amount of documentation out there for it.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:17:14.700 | 2008-08-20T12:17:14.700 | null | null | 2,109 | null |
17,796 | 2 | null | 4,519 | 5 | null | Thanks for the help @Stephen and @Greg Castle, using it I've managed to resolve my problem.
To provide a basic guide for others (from scratch):
What you need to start with:
- The Putty Telnet/SSH client, download putty.exe (for free) from:[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html](http://www... | null | CC BY-SA 2.5 | null | 2008-08-20T11:53:57.940 | 2008-08-20T11:53:57.940 | null | null | 381 | null |
17,822 | 2 | null | 17,817 | 1 | null | I've used [this library](http://tetlaw.id.au/view/javascript/really-easy-field-validation) for a couple of personal projects. It's pretty good, though I have had to make my own modifications to it a couple of times - nothing major, though, and it's easy enough to do so.
I'm sure you already do this, but also validate ... | null | CC BY-SA 2.5 | null | 2008-08-20T12:18:52.060 | 2008-08-20T12:18:52.060 | null | null | 20 | null |
17,826 | 2 | null | 5,802 | 0 | null | If you are using GUIDs you could create a CreateHistory table with columns GUID, CreatedOn, CreatedBy. For populating the table you would still have to create a trigger for every table or handle it in the application logic.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:23:15.623 | 2008-08-20T12:23:15.623 | null | null | 2,087 | null |
17,823 | 2 | null | 17,770 | 2 | null | A number of people I know swear by [Google Notebook](http://www.google.com/notebook)
| null | CC BY-SA 2.5 | null | 2008-08-20T12:20:35.817 | 2008-08-20T12:20:35.817 | null | null | 1,820 | null |
17,829 | 2 | null | 17,825 | 0 | null | If you don't include it you should at the very least link to it directly on your site or have your installer open the web browser to it (or even download it automatically). Or better yet, include the redistributable in your software package.
However, if the DLL is not very large and you suspect that few users will ha... | null | CC BY-SA 2.5 | null | 2008-08-20T12:27:30.557 | 2008-08-20T12:27:30.557 | null | null | 194 | null |
17,831 | 2 | null | 17,732 | 4 | null | If you want to keep them replace them with error handling. Nothing worse than a program just disappearing. I see nothing wrong with treating certain errors as serious bugs, but they should be directed to a section of your program that is equipped to deal with them by collecting data, logging it, and informing the use... | null | CC BY-SA 2.5 | null | 2008-08-20T12:28:05.453 | 2008-08-20T12:28:05.453 | null | null | 791 | null |
17,824 | 2 | null | 17,817 | 7 | null | I am about to start implementing javascript validation in my forms using [jQuery Validation](http://bassistance.de/jquery-plugins/jquery-plugin-validation/).
I think that StackOverflow users this jQuery plugin as well. It seems to be a very mature validation library, however it does build on top of jQuery, so it might ... | null | CC BY-SA 2.5 | null | 2008-08-20T12:21:45.923 | 2008-08-20T12:21:45.923 | null | null | 1,403 | null |
17,830 | 2 | null | 17,825 | 2 | null | Check in the installer if WSE 3.0 is installed and if it isn't alert the person and cancel the install, if it is continue normally. I wouldn't include the DLL in your setup package, because it could get out dated pretty fast, and I don't know if the EULA will allow it.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:27:34.380 | 2008-08-20T12:27:34.380 | null | null | 17 | null |
17,833 | 2 | null | 17,825 | 5 | null | Usually, redistributing any of Microsoft DLLs outside of the redistributable package is forbidden by their EULA, so you might first want to check the appropriate EULA for that DLL.
Generally, I would prefer the redist package since that makes sure that it's correctly "registered" into the system, i.e. if you install a... | null | CC BY-SA 2.5 | null | 2008-08-20T12:28:10.867 | 2008-08-20T12:28:10.867 | null | null | 91 | null |
17,832 | 2 | null | 17,825 | 2 | null | I believe the MS EULA prevents you from redistributing MS code, unless its in a redistributable package.
A proper redistributable should handle any other prerequisites, so its probably the better choice anyways.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:28:07.060 | 2008-08-20T12:28:07.060 | null | null | 100 | null |
17,835 | 2 | null | 12,159 | 26 | null | I also had serious problems testing multi- threaded code. Then I found a really cool solution in "xUnit Test Patterns" by Gerard Meszaros. The pattern he describes is called .
Basically it describes how you can extract the logic into a separate, easy-to-test component that is decoupled from its environment. After you... | null | CC BY-SA 2.5 | null | 2008-08-20T12:29:59.070 | 2008-08-20T12:45:46.240 | 2008-08-20T12:45:46.240 | 2,078 | 2,078 | null |
17,825 | 1 | 17,833 | null | 2 | 971 | I'm working on a setup which . However, I typically do not like including Microsoft DLL's in our installs except by way of Microsoft's redistributables. There is both a developer and a redist install package available from Microsoft.
So, as a best practice, should I include the single DLL in my install or refer them t... | best practice for releasing Microsoft dll's in setup | CC BY-SA 3.0 | null | 2008-08-20T12:22:41.083 | 2013-12-19T18:44:02.340 | 2013-12-19T18:44:02.340 | 2,124,004 | 1,683 | [
"windows-installer",
"installation",
"redistributable"
] |
17,846 | 2 | null | 17,817 | 3 | null | Personally I just rolled my own because it was much simpler to integrate with my error handling system and how I wanted it displayed on the site. 99% of the time you only care about a couple of things, required fields and comparing fields.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:46:07.097 | 2008-08-20T12:46:07.097 | null | null | 17 | null |
17,850 | 2 | null | 17,770 | 0 | null | At my last place of work they wouldn't let me set up a wiki or anything - so I just made various word documents full of tips and instructions and gave that to my successor when I left.
Now though I'd use a private wiki, or maybe a blog.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:50:05.450 | 2008-08-20T12:50:05.450 | null | null | 1,912 | null |
17,840 | 1 | 27,699 | null | 18 | 7,460 | I've found a few resources on the subject, but they all require a deep understanding of [SmallTalk](http://en.wikipedia.org/wiki/Smalltalk) or [Haskell](http://en.wikipedia.org/wiki/Haskell_%28programming_language%29), neither of which I know.
| How can I learn about parser combinators? | CC BY-SA 3.0 | 0 | 2008-08-20T12:38:49.830 | 2014-06-06T11:18:02.410 | 2012-04-25T17:49:16.860 | 1,332,690 | 1,190 | [
"parsing",
"monads"
] |
17,834 | 2 | null | 17,732 | 66 | null | Allow me to quote Steve McConnell's Code Complete. The section on Assertions is 8.2.
> Normally, you don't want users to see assertion messages in production code; assertions are primarily for use during development and maintenance. Assertions are normally compiled into the code at development time and compiled out of... | null | CC BY-SA 2.5 | null | 2008-08-20T12:29:46.277 | 2008-08-20T12:29:46.277 | null | null | 572 | null |
17,848 | 2 | null | 17,772 | 7 | null | I generally find reflection to be quite speedy as long as you don't dynamically invoke methods.
Since you are just reading the Attributes of an enum, your approach should work just fine without any real performance hit.
And remember that you generally should try to keep things simple to understand. Over engineering th... | null | CC BY-SA 2.5 | null | 2008-08-20T12:46:12.040 | 2008-08-20T12:46:12.040 | null | null | 960 | null |
17,852 | 2 | null | 10,782 | -3 | null | Nothing really. ASP.NET 2.0 applications will run just as they have in IIS 6.0. If you want to take advantage of any of the new features then you just need to update your code. But unless you are changing the structure of the header of the response or intercepting requests for other applications you probably will no... | null | CC BY-SA 2.5 | null | 2008-08-20T12:52:19.827 | 2008-08-20T12:52:19.827 | null | null | 17 | null |
17,856 | 2 | null | 17,725 | 1 | null | Rob, in looking at your other question as well as this one, it's sounds like the exact situation we have in our environment. What we've done, however, is move away from ASP.Net web services to WCF web services and in the process solved (for the most part) this problem.
If there is any chance your web service could ... | null | CC BY-SA 2.5 | null | 2008-08-20T12:53:33.803 | 2008-08-20T12:53:33.803 | null | null | 1,875 | null |
17,839 | 2 | null | 17,795 | 2 | null | Stupid me... The code is posted was 100% valid and working... But 10 lines lower I replaced the this.lblHost.Text with another value, which happened to be the ip address.
Sorry.
| null | CC BY-SA 2.5 | null | 2008-08-20T12:36:25.280 | 2008-08-20T12:36:25.280 | null | null | 2,104 | null |
17,845 | 1 | 41,264 | null | 12 | 2,615 | Has someone experiment RDF storage solution like [Sesame](http://www.openrdf.org/)? I'm looking for performance review of this kind of solution compared to the traditional database solution.
| Performance comparison of RDF storage vs traditional database | CC BY-SA 3.0 | 0 | 2008-08-20T12:42:49.850 | 2018-03-08T17:33:29.267 | 2018-03-08T17:33:29.267 | 1,710,577 | 1,730 | [
"database",
"performance",
"rdf",
"sesame",
"openrdf"
] |
17,870 | 1 | 17,872 | null | 19 | 42,483 | Is there a way to select data where any one of multiple conditions occur on the same field?
Example: I would typically write a statement such as:
```
select * from TABLE where field = 1 or field = 2 or field = 3
```
Is there a way to instead say something like:
```
select * from TABLE where field = 1 || 2 || 3
```... | Select ..... where .... OR | CC BY-SA 3.0 | 0 | 2008-08-20T12:58:51.513 | 2019-01-27T20:38:12.410 | 2012-04-25T17:49:09.840 | 1,332,690 | 2,116 | [
"mysql"
] |
17,858 | 2 | null | 6,890 | 5 | null | Another way of waiting for a thread to finish is using an `AutoResetEvent`.
```
private readonly AutoResetEvent mWaitForThread = new AutoResetEvent(false);
private void Blah()
{
ThreadStart tStart = new ThreadStart(MyMethod);
Thread t = new Thread(tStart);
t.Start();
//... (any other things)
mWai... | null | CC BY-SA 3.0 | null | 2008-08-20T12:54:56.200 | 2015-08-31T16:32:46.713 | 2015-08-31T16:32:46.713 | 2,185,245 | 2,078 | null |