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
24,484
2
null
24,468
2
null
Take a look at the 'caspol.exe' program (provided with .NET runtimes). You will have to do this on the machine you are trying to run the application from. I wasn't able to 'mark' and assembly (probably just me). However, using caspol and setting up the proper permission for my app, LocalIntranet_Zone, fix my similar...
null
CC BY-SA 2.5
null
2008-08-23T18:50:09.863
2008-08-23T18:50:09.863
null
null
2,626
null
24,476
2
null
24,451
275
null
There are a few reasons for using the "goto" statement that I'm aware of (some have spoken to this already): Often in a function, you may allocate resources and need to exit in multiple places. Programmers can simplify their code by putting the resource cleanup code at the end of the function, and all "exit points"...
null
CC BY-SA 3.0
null
2008-08-23T18:42:33.003
2012-07-09T13:05:22.973
2012-07-09T13:05:22.973
216,356
2,069
null
24,496
1
24,498
null
34
7,575
While going through university and from following the development of SO, I've heard a lot about the Model-View-Controller architectural design pattern. I inadvertently used the MVC pattern even before I knew what it was, and still use it in my everyday job. From what I've seen, it's probably the most popular pattern us...
What Alternatives Are There to Model-View-Controller?
CC BY-SA 2.5
0
2008-08-23T19:01:06.890
2011-04-21T06:16:39.150
2010-10-31T13:28:29.547
211,674
2,628
[ "model-view-controller", "mvp", "passive-view", "architectural-patterns" ]
24,485
2
null
24,481
-3
null
You need to provide a bit more details about how you are planning to use the data. For example, fields like City, State, Country can either be text in the single table, or be codes which are linked to a separate table with a Foreign Key. Simplest would be Address_Line_01 (Required, Non blank) Address_Line_02 Address_...
null
CC BY-SA 2.5
null
2008-08-23T18:50:17.213
2008-08-23T18:50:17.213
null
null
2,617
null
24,495
1
24,510
null
4
3,424
I have a Struts + Velocity structure like for example, a Person class, whose one property is a Car object (with its own getter/setter methods) and it is mapped to a Velocity form that submits to an Action, using ModelDriven and getModel structure. I what to put a button on the form that shows "View Car" if car propert...
Reading model objects mapped in Velocity Templates
CC BY-SA 2.5
null
2008-08-23T18:59:43.647
2018-12-20T12:50:06.477
2008-08-24T15:54:57.983
2,274
2,274
[ "java", "struts", "velocity" ]
24,506
1
24,523
null
6
5,904
In opening up the `.xap` file that is generated as output from a Silverlight application I've been tinkering with lately, I noticed a file called `AppManifest.xaml`. I've also noticed an option in the property pages for the Silverlight project that appears to allow you to optionally not output `AppManifest.xaml` for t...
What is the purpose of the AppManifest.xaml file in Silverlight applications?
CC BY-SA 3.0
null
2008-08-23T19:06:17.063
2014-12-13T01:06:25.430
2014-12-13T01:06:25.430
1,810,429
1,680
[ "silverlight" ]
24,498
2
null
24,496
27
null
1. Passive View - http://martinfowler.com/eaaDev/PassiveScreen.html 2. Supervising Controller - http://martinfowler.com/eaaDev/SupervisingPresenter.html 3. Model-View-Presenter - http://martinfowler.com/eaaDev/ModelViewPresenter.html > My personal favorite is the . More testable than others I've seen including MVC....
null
CC BY-SA 2.5
null
2008-08-23T19:03:06.900
2008-08-23T19:23:57.320
2008-08-23T19:23:57.320
2,627
2,627
null
24,481
1
24,501
null
39
13,668
What is the "" way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and length of each field.
What is the "best" way to store international addresses in a database?
CC BY-SA 2.5
0
2008-08-23T18:45:47.863
2013-10-24T03:33:00.213
2013-10-24T03:33:00.213
246,246
2,627
[ "database", "internationalization", "globalization", "street-address" ]
24,492
2
null
12,702
15
null
The best way to diagnose these kinds of WCF errors (the ones that really don't tell you much) is to enable tracing. In your web.config file, add the following: ``` <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Information" propagateActivity="tru...
null
CC BY-SA 2.5
null
2008-08-23T18:56:50.147
2008-08-23T18:56:50.147
null
null
2,069
null
24,507
2
null
24,496
4
null
I've occasionally seen MVC without the C, where the view listens for changes in the model's data and alters rendering accordingly, and where the methods in the model are bound to event handlers for the view. For projects where the view is by necessity tightly couple with the data (such as when there are visual compone...
null
CC BY-SA 2.5
null
2008-08-23T19:08:12.550
2008-08-23T19:08:12.550
null
null
1,344
null
24,501
2
null
24,481
25
null
Plain freeform text. Validating all the world's post/zip codes is too hard; a fixed list of countries is too politically sensitive; mandatory state/region/other administrative subdivision is just plain inappropriate (all too often I'm asked which county I live in--when I don't, because Greater London is not a county a...
null
CC BY-SA 2.5
null
2008-08-23T19:04:38.800
2008-08-23T19:04:38.800
null
null
2,131
null
24,510
2
null
24,495
6
null
You should change the #if line to: ``` #if($car) ```
null
CC BY-SA 2.5
null
2008-08-23T19:10:02.423
2008-08-23T19:10:02.423
null
null
1,969
null
24,490
2
null
4,430
87
null
In PHP 5 you can use [SoapClient](http://www.php.net/manual/en/ref.soap.php) on the WSDL to call the web service functions. [For example](http://www.php.net/manual/en/soapclient.construct.php): ``` $client = new SoapClient("some.wsdl"); ``` and $client is now an object which has class methods as defined in some.wsdl...
null
CC BY-SA 3.0
null
2008-08-23T18:54:21.680
2013-12-26T05:40:41.683
2013-12-26T05:40:41.683
438,627
2,183
null
24,513
2
null
24,451
3
null
> If so, why? C has no multi-level/labelled break, and not all control flows can be easily modelled with C's iteration and decision primitives. gotos go a long way towards redressing these flaws. Sometimes it's clearer to use a flag variable of some kind to effect a kind of pseudo-multi-level break, but it's not alw...
null
CC BY-SA 2.5
null
2008-08-23T19:14:36.263
2008-08-23T19:14:36.263
null
null
2,131
null
24,499
2
null
21,207
56
null
We run DB40 .NET version in a large client/server project. Our experiences is that you can potentially get much better performance than typical relational databases. However, you really have to tweak your objects to get this kind of performance. For example, if you've got a list containing a lot of objects, DB4O acti...
null
CC BY-SA 3.0
null
2008-08-23T19:03:18.913
2015-07-22T16:00:10.290
2015-07-22T16:00:10.290
536
536
null
24,515
1
24,615
null
52
103,120
Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I [found this](http://urbanoalvarez.es/blog/2008/04/04/bad-words-list/) one, and it's a start, but nothing more. Ye...
"bad words" filter
CC BY-SA 2.5
0
2008-08-23T19:17:34.353
2018-04-05T20:30:44.263
2010-10-22T15:38:03.223
730
1,178
[ "list", "dictionary", "profanity" ]
24,521
2
null
24,310
2
null
I once implemented a client and a server with 2 more guys (as part of a course). I can tell you that the RFC you were already linked to is great. I'd also try simply sniffing a connection with an existing client to see for yourself how stuff work.
null
CC BY-SA 2.5
null
2008-08-23T19:24:06.337
2008-08-23T19:24:06.337
null
null
573
null
24,509
2
null
24,496
4
null
Well, there's Model-View-Presenter, but I think you'll find that the most common "alternative" to MVC is really a lack of proper separation. As an extreme example, consider classic ASP pages where HTML, VBScript and SQL are found side-by-side in the same file. (That's not a bash of ASP — you'll find plenty of such exam...
null
CC BY-SA 2.5
null
2008-08-23T19:09:49.957
2008-08-23T19:09:49.957
null
null
1,600
null
24,480
2
null
24,468
0
null
I think you want to add the [AllowPartiallyTrustedCallers](http://msdn.microsoft.com/en-us/library/system.security.allowpartiallytrustedcallersattribute.aspx) attribute to your assembly. The error message implies that something that's calling into your boo.exe assembly is not fully trusted, and boo.exe doesn't have th...
null
CC BY-SA 2.5
null
2008-08-23T18:45:22.480
2008-08-23T18:45:22.480
null
null
205
null
24,517
2
null
24,456
3
null
`getimagesize` has an optional second parameter `Imageinfo` which contains the info you need. From the manual: > This optional parameter allows you to extract some extended information from the image file. Currently, this will return the different JPG APP markers as an associative array. Some programs use these APP ...
null
CC BY-SA 3.0
null
2008-08-23T19:19:46.767
2016-01-15T15:32:59.040
2016-01-15T15:32:59.040
4,932,070
1,462
null
24,523
2
null
24,506
6
null
Maybe this blog post will help: [http://blogs.msdn.com/katriend/archive/2008/03/16/silverlight-2-structure-of-the-new-xap-file-silverlight-packaged-application.aspx](http://blogs.msdn.com/katriend/archive/2008/03/16/silverlight-2-structure-of-the-new-xap-file-silverlight-packaged-application.aspx). It discusses the .x...
null
CC BY-SA 2.5
null
2008-08-23T19:25:14.990
2008-08-23T19:38:46.223
2008-08-23T19:38:46.223
2,258
2,258
null
24,524
2
null
23,930
1
null
: functional ``` int factorial(int x) { return x == 0 ? 1 : x * factorial(x-1); } ```
null
CC BY-SA 2.5
null
2008-08-23T19:27:59.103
2008-08-26T00:19:49.087
2008-08-26T00:19:49.087
2,030
2,030
null
24,530
2
null
24,528
1
null
I have a fairly indepth tutorials on my blog [http://tv.inner-rhythm.co.uk/](http://tv.inner-rhythm.co.uk/) on how to set SVN up with Apache and Trac which we use at my company which works for us.
null
CC BY-SA 2.5
null
2008-08-23T19:32:45.287
2008-08-23T19:32:45.287
null
null
2,196
null
24,516
1
24,589
null
11
8,718
I'm trying to parse a grammar in ocamlyacc (pretty much the same as regular yacc) which supports function application with no operators (like in Ocaml or Haskell), and the normal assortment of binary and unary operators. I'm getting a reduce/reduce conflict with the '-' operator, which can be used both for subtraction ...
Resolving reduce/reduce conflict in yacc/ocamlyacc
CC BY-SA 2.5
0
2008-08-23T19:18:48.050
2011-10-06T18:14:52.543
null
null
1,891
[ "parsing", "ocaml", "grammar", "yacc" ]
24,533
2
null
24,528
2
null
VisualSVN is the way to go. The built-in Active Directory support is very easy to use.
null
CC BY-SA 2.5
null
2008-08-23T19:37:40.670
2008-08-23T19:37:40.670
null
null
305
null
24,531
2
null
24,528
17
null
Use [VisualSVN Server](http://www.visualsvn.com/). It integrates with Windows authentication and it handles all the apache setup. It's as painless as SVN can be on Windows.
null
CC BY-SA 2.5
null
2008-08-23T19:33:58.497
2010-01-09T23:32:42.187
2010-01-09T23:32:42.187
8,985
1,786
null
24,536
2
null
24,528
1
null
I use a combo of VisualSVN and Tortoise. It doesn't integrate well with visual studio but you can use other plugins/apps for that.
null
CC BY-SA 2.5
null
2008-08-23T19:43:33.560
2008-08-23T19:43:33.560
null
null
225
null
24,522
2
null
11,820
0
null
The main performance hit isn't going to be from the transfer of the encoded file, it's going to be in the processing that the server has to do to encode the file pre-transfer (unless the files don't change often and the encoded version can be cached somehow).
null
CC BY-SA 2.5
null
2008-08-23T19:24:17.067
2008-08-23T19:24:17.067
null
null
2,284
null
24,538
2
null
24,470
6
null
Well, for your sample and any with a limited number of unique columns, this should do it. ``` select distinct a, (select distinct t2.b from t t2 where t1.a=t2.a and t2.b='VIEW'), (select distinct t2.b from t t2 where t1.a=t2.a and t2.b='EDIT') from t t1 ```
null
CC BY-SA 2.5
null
2008-08-23T19:44:24.117
2008-08-23T19:44:24.117
null
null
224
null
24,527
2
null
24,515
61
null
Beware of [clbuttic mistakes](http://thedailywtf.com/Articles/The-Clbuttic-Mistake-.aspx). > "Apple made the clbuttic mistake of forcing out their visionary - I mean, look at what NeXT has been up to!"Hmm. "clbuttic".Google "clbuttic" - thousands of hits!There's someone who call his car 'clbuttic'.There are "Clbuttic ...
null
CC BY-SA 3.0
null
2008-08-23T19:30:26.587
2018-04-05T20:30:44.263
2018-04-05T20:30:44.263
67,249
1,588
null
24,542
1
24,560
null
99
74,249
Is there any reason not to use the bitwise operators &, |, and ^ for "bool" values in C++? I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also sometimes want all parts of a condition to be evaluated whether t...
Using bitwise operators for Booleans in C++
CC BY-SA 2.5
0
2008-08-23T19:52:39.933
2018-04-26T09:34:32.893
2012-09-01T22:59:04.353
1,561,378
1,891
[ "c++", "boolean", "bitwise-operators" ]
24,547
2
null
16,432
1
null
The first one (format) looks better to me. It's more readable and you are not creating extra temporary string objects.
null
CC BY-SA 2.5
null
2008-08-23T19:55:24.247
2008-08-23T19:55:24.247
null
null
1,560
null
24,541
1
24,548
null
5
5,679
Is there an automatic way in SQL Server 2005 to create a database from several tables in another database? I need to work on a project and I only need a few tables to run it locally, and I don't want to make a backup of a 50 gig DB. I tried the Tasks -> Export Data in Management studio, and while it created a new su...
Create a database from another database?
CC BY-SA 2.5
null
2008-08-23T19:51:31.433
2014-04-04T07:27:24.960
2008-11-17T21:50:14.980
3,743
1,965
[ "sql-server-2005", "tsql" ]
24,511
2
null
24,451
30
null
In [switch](http://msdn.microsoft.com/en-us/library/06tc147t.aspx) statement [doest not allow fall-through](http://msdn.microsoft.com/en-us/vcsharp/aa336815.aspx). So [goto](http://msdn.microsoft.com/en-us/library/13940fs2.aspx) is used to transfer control to a specific switch-case label or the [default](http://msdn.m...
null
CC BY-SA 4.0
null
2008-08-23T19:10:30.753
2021-11-03T10:53:38.457
2021-11-03T10:53:38.457
10,200,388
2,361
null
24,537
2
null
24,451
7
null
One of the reasons goto is bad, besides coding style is that you can use it to create , but loops: ``` loop1: a loop2: b if(cond1) goto loop1 c if(cond2) goto loop2 ``` This would create the bizarre, but possibly legal flow-of-control structure where a sequence like (a, b, c, b, a, b, a, b, ...) is possib...
null
CC BY-SA 2.5
null
2008-08-23T19:44:00.860
2008-08-23T19:50:37.597
2008-08-23T19:50:37.597
1,421
1,421
null
24,549
2
null
7,440
3
null
I've used [WATIR](http://wtr.rubyforge.org/), which is pretty good. I liked it because it's Ruby and allows for testing interactivity, available elements and source code parsing. I haven't used it for a while but I assume it's gotten better. It's supposedly being ported to Firefox and Safari, but that's been happening...
null
CC BY-SA 2.5
null
2008-08-23T19:55:38.803
2008-08-23T19:55:38.803
null
null
956
null
24,552
2
null
24,542
12
null
The raised eyebrows should tell you enough to stop doing it. You don't write the code for the compiler, you write it for your fellow programmers first and then for the compiler. Even if the compilers work, surprising other people is not what you want - bitwise operators are for bit operations not for bools. I suppose y...
null
CC BY-SA 2.5
null
2008-08-23T20:00:16.653
2008-08-23T20:00:16.653
null
null
1,065
null
24,546
1
24,574
null
11
3,650
I'm trying to fetch Wikipedia pages using [LWP::Simple](http://search.cpan.org/dist/libwww-perl), but they're not coming back. This code: ``` #!/usr/bin/perl use strict; use LWP::Simple; print get("http://en.wikipedia.org/wiki/Stack_overflow"); ``` doesn't print anything. But if I use some other webpage, say `http:...
Why can't I fetch wikipedia pages with LWP::Simple?
CC BY-SA 2.5
0
2008-08-23T19:54:09.650
2012-11-02T09:43:05.307
2009-10-21T10:29:14.927
2,766,176
112
[ "perl", "wikipedia", "lwp" ]
24,551
1
24,558
null
461
160,165
I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields. Should I do it at declaration?: ``` public class Dice { private int topFace = 1; private Random myRand = new Random(); public void Roll() { // ...... } } ``` or in a cons...
Initialize class fields in constructor or at declaration?
CC BY-SA 3.0
0
2008-08-23T19:59:42.083
2022-12-13T14:38:22.583
2019-09-19T13:42:04.813
3,916,149
2,635
[ "java" ]
24,548
2
null
24,541
4
null
You can use the [Database Publishing Wizard](http://www.codeplex.com/sqlhost/wiki/view.aspx?title=database%20publishing%20wizard) for this. It will let you select a set of tables with or without the data and export it into a .sql script file that you can then run against your other db to recreate the tables and/or the ...
null
CC BY-SA 2.5
null
2008-08-23T19:55:31.143
2008-08-23T19:55:31.143
null
null
1,710
null
24,558
2
null
24,551
344
null
My rules: 1. Don't initialize with the default values in declaration (null, false, 0, 0.0…). 2. Prefer initialization in declaration if you don't have a constructor parameter that changes the value of the field. 3. If the value of the field changes because of a constructor parameter put the initialization in the cons...
null
CC BY-SA 3.0
null
2008-08-23T20:04:09.530
2015-12-16T09:28:15.197
2015-12-16T09:28:15.197
216,074
1,065
null
24,562
2
null
24,541
0
null
Integration Services can help accomplish this task. This tool provids advanced data transformation capabilities so you will be able to get exact subset of data that you need from large database. Assuming that such data is needed for testing/debugging you may consider applying Row Sampling to reduce amount of data expo...
null
CC BY-SA 2.5
null
2008-08-23T20:08:07.510
2008-08-23T20:08:07.510
null
null
2,586
null
24,561
2
null
16,432
161
null
I'm amazed that so many people immediately want to find the code that executes the fastest. > Premature optimization = FAIL. I'd go with the `String.Format` option, only because it makes the most sense from an architectural standpoint. I don't care about the performance until it becomes an issue (and if it did, I'd...
null
CC BY-SA 3.0
null
2008-08-23T20:07:13.893
2017-08-29T11:55:59.557
2017-08-29T11:55:59.557
4,519,059
1,710
null
24,567
2
null
24,496
4
null
Although the above answers are quite correct, I think it's much more important to note that the words "design pattern" are completely unknown to 90% of all people who create software. They just start writing code. The challenge is not selecting the best design approach, it's convincing others that design has value.
null
CC BY-SA 2.5
null
2008-08-23T20:14:26.060
2008-08-23T20:14:26.060
null
null
1,854
null
24,528
1
24,531
null
11
1,896
I'm curious to hear the experiences of those who are currently running their SVN server on Windows. Jeff Atwood has a post on [how to setup SVN as a Windows service](https://blog.codinghorror.com/setting-up-subversion-on-windows/). It's a great first step, but it doesn't touch on other topics, such as: - [WebSVN](ht...
What are your experiences running SVN on Windows?
CC BY-SA 4.0
0
2008-08-23T19:30:47.660
2018-10-21T12:48:43.597
2018-10-21T12:48:43.597
1,033,581
1,690
[ "windows", "svn" ]
24,557
2
null
2,550
2
null
One consideration would be whether video playback is via progressive download or streaming. If it's progressive download, then I would say use Flash because you get a wider audience reach. For streaming wmv, it is out of the box functionality provided by [Windows Media Services](http://www.microsoft.com/windows/window...
null
CC BY-SA 3.0
null
2008-08-23T20:03:56.553
2013-01-27T12:29:43.840
2013-01-27T12:29:43.840
null
2,633
null
24,574
2
null
24,546
18
null
Apparently Wikipedia blocks LWP::Simple requests: [http://www.perlmonks.org/?node_id=695886](http://www.perlmonks.org/?node_id=695886) The following works instead: ``` #!/usr/bin/perl use strict; use LWP::UserAgent; my $url = "http://en.wikipedia.org/wiki/Stack_overflow"; my $ua = LWP::UserAgent->new(); my $res = $...
null
CC BY-SA 2.5
null
2008-08-23T20:33:00.787
2008-08-23T21:58:26.403
2008-08-23T21:58:26.403
112
112
null
24,556
1
24,592
null
0
199
In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it? A little context if it helps... I have this code in my `global.asax` as a helper method. Normally, between requests, this isn't a problem. But right after signing in, this is getting called mo...
Attaching entities to data contexts
CC BY-SA 3.0
null
2008-08-23T20:03:52.120
2014-12-13T01:28:32.383
2014-12-13T01:28:32.383
1,810,429
2,595
[ "c#", "linq-to-sql" ]
24,569
2
null
24,541
1
null
Create your new database first. Then right-click on it and go to the Tasks sub-menu in the context menu. You should have some kind of import/export functionality in there. I can't remember exactly since I'm not at work right now! :) From there, you will get to choose your origin and destination data sources and which ...
null
CC BY-SA 2.5
null
2008-08-23T20:22:33.417
2008-08-23T20:22:33.417
null
null
160
null
24,579
1
24,607
null
18
16,993
Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app?
WYSIWYG editor gem for Rails?
CC BY-SA 2.5
0
2008-08-23T20:39:23.067
2014-02-04T23:51:19.490
2008-08-31T02:07:35.640
305
1,632
[ "ruby-on-rails", "ruby", "rubygems" ]
24,575
2
null
4,689
6
null
Two pages where there's a of programming fonts are these pages on [keithdevens.com](http://keithdevens.com/wiki/ProgrammerFonts) and [lowing.org](http://www.lowing.org/fonts/) (dead link, but it's [in the internet archive](http://web.archive.org/web/20080317195427rn_1/lowing.org/fonts/)) Some other discussions of pro...
null
CC BY-SA 2.5
null
2008-08-23T20:34:59.050
2009-10-19T13:49:00.743
2009-10-19T13:49:00.743
2,541
2,541
null
24,578
2
null
24,165
3
null
While I haven't made the switch yet, I have developed on both platforms and have been doing some pre-switch analysis. It looks like the biggest difference would be the View Engines. Our Monorail stuff uses the Brail view engine while asp.net mvc comes (stock) with a webforms like view engine. There are other view ...
null
CC BY-SA 2.5
null
2008-08-23T20:37:50.917
2008-08-23T20:37:50.917
null
null
1,573
null
24,580
1
34,063
null
52
56,162
How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line?
How do you automate a Visual Studio build?
CC BY-SA 3.0
0
2008-08-23T20:42:25.943
2017-01-27T12:57:51.273
2013-05-13T11:13:14.187
63,550
2,541
[ "visual-studio", "build-automation" ]
24,560
2
null
24,542
71
null
`||` and `&&` are boolean operators and the built-in ones are guaranteed to return either `true` or `false`. Nothing else. `|`, `&` and `^` are bitwise operators. When the domain of numbers you operate on is just 1 and 0, then they are exactly the same, but in cases where your booleans are not strictly 1 and 0 – as is...
null
CC BY-SA 3.0
null
2008-08-23T20:06:20.430
2016-04-28T09:30:43.000
2016-04-28T09:30:43.000
464,581
429
null
24,581
2
null
24,580
3
null
Look into build tool [NAnt](http://en.wikipedia.org/wiki/NAnt) or [MSBuild](http://en.wikipedia.org/wiki/MSBuild). I believe MSBuild is the build tool for Visual Studio 2005 and later. I am, however, a fan of NAnt...
null
CC BY-SA 3.0
null
2008-08-23T20:43:02.620
2013-05-13T11:14:37.910
2013-05-13T11:14:37.910
63,550
1,638
null
24,577
2
null
24,200
10
null
My guess is that you'll see a dramatic improvement if you change that index to be . This leaves you with two options: 1. Change the index to nonclustered, and leave it as a heap table, without a clustered index 2. Change the index to nonclustered, but then add a surrogate key (like "id") and make it an identity, prim...
null
CC BY-SA 2.5
null
2008-08-23T20:37:47.283
2008-08-23T20:37:47.283
null
null
1,690
null
24,588
2
null
24,546
5
null
Because Wikipedia is blocking the HTTP user-agent string used by LWP::Simple. You will get a "403 Forbidden"-response if you try using it. Try the LWP::UserAgent module to work around this, setting the agent-attribute.
null
CC BY-SA 2.5
null
2008-08-23T20:48:56.897
2008-08-23T20:48:56.897
null
null
2,622
null
24,584
2
null
24,580
30
null
``` \Windows\Microsoft.NET\Framework\[YOUR .NET VERSION]\msbuild.exe ``` Lots of command line parameters, but the simplest is just: ``` msbuild.exe yoursln.sln ```
null
CC BY-SA 2.5
null
2008-08-23T20:46:26.840
2008-08-23T20:46:26.840
null
null
1,965
null
24,583
2
null
24,580
4
null
Simplest way: navigate to the directory containing the solution or project file, and run `msbuild` (assuming you have Visual Studio 2005 or newer). More flexible ways: - [the MSBuild reference](http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx)[MSBuild Community Tasks Project](https://github.com/loresoft/msbuildt...
null
CC BY-SA 3.0
null
2008-08-23T20:44:58.030
2013-05-13T11:32:43.360
2013-05-13T11:32:43.360
63,550
1,600
null
24,564
2
null
24,528
2
null
I have found that VisualSVN is about 50% slower than running SVN as a native service. I always assumed that was because of accessing via http:// with Apache, which seems like it would have to be slower than accessing via svn://, which is native TCP/IP. # The Experiment In the last 30 minutes, here's what I di...
null
CC BY-SA 2.5
null
2008-08-23T20:11:15.397
2008-08-23T20:11:15.397
null
null
1,690
null
24,582
2
null
3,255
43
null
Small reminder: the `big O` notation is used to denote complexity (that is, when the size of the problem grows to infinity), it hides a constant. This means that between an algorithm in O(n) and one in O(n), the fastest is not always the first one (though there always exists a value of n such that for problems of si...
null
CC BY-SA 3.0
null
2008-08-23T20:43:50.357
2015-03-04T12:48:31.697
2015-03-04T12:48:31.697
3,924,118
2,638
null
24,594
2
null
23,310
1
null
[@Ian Nelson](https://stackoverflow.com/questions/23310/source-control-beginners#23353): I agree with you that Source Safe is bad as a source control system, but keep in mind that using Source Safe is a lot better than "carrying around floppy disks" as Joel Spolsky said. For a beginner it might not be a bad idea, sin...
null
CC BY-SA 2.5
null
2008-08-23T20:55:44.120
2008-08-23T20:55:44.120
2017-05-23T12:13:34.533
-1
936
null
24,590
2
null
24,528
1
null
Trac is certainly the best web based project management software I use, it integrates with subversion so you can see timelines of commits and diffs of each versions, it allows tickets and bug reports, and has a built in wiki. [http://trac.edgewall.org/wiki/TracOnWindows](http://trac.edgewall.org/wiki/TracOnWindows) A...
null
CC BY-SA 2.5
null
2008-08-23T20:50:30.527
2008-08-23T20:50:30.527
null
null
1,638
null
24,595
1
24,613
null
1
1,354
What should i use to code Classic ASP under Linux. I have really tried to use Emacs and Vim but I don't have the time to learn them. What i'm looking for is: - - - Something like Ultra Edit or E-texteditor.
Code Classic ASP in Linux
CC BY-SA 2.5
null
2008-08-23T20:56:56.423
2009-04-08T19:27:42.927
2009-04-08T19:15:00.600
16,417
2,639
[ "linux", "asp-classic", "editor" ]
24,589
2
null
24,516
9
null
Unfortunately, the only answer I can come up with means increasing the complexity of the grammar. 1. split expr into simple_expr and expr_with_prefix 2. allow only simple_expr or (expr_with_prefix) in an APPLY The first step turns your reduce/reduce conflict into a shift/reduce conflict, but the parentheses resolv...
null
CC BY-SA 2.5
null
2008-08-23T20:49:00.047
2008-08-23T21:53:35.900
2008-08-23T21:53:35.900
1,190
1,190
null
24,592
2
null
24,556
0
null
I believe there are two methods to do this. ``` DataContext.TableName.Contains(Item) ``` or we use the id field. If the item is inserted in the Database, then it will be assigned a row. ``` if(Item.id == 0) DataContext.Insert(Item) else DataContext.Update(Item) ```
null
CC BY-SA 2.5
null
2008-08-23T20:54:12.047
2008-08-23T20:54:12.047
null
null
1,470
null
24,591
2
null
24,580
4
null
[NAnt](http://en.wikipedia.org/wiki/NAnt) and [MSBuild](http://en.wikipedia.org/wiki/MSBuild) are the most popular tools to automate your build in [.NET](http://en.wikipedia.org/wiki/.NET_Framework), and you can find a discussion on there of the pros/cons of each in the Stack Overflow question [Best .NET build tool](ht...
null
CC BY-SA 3.0
null
2008-08-23T20:52:43.517
2015-05-05T14:04:35.403
2017-05-23T11:54:26.267
-1
1,464
null
24,597
2
null
23,310
2
null
Vault from SourceGear.com is superb. It is free for single users and provides a superb VS 2005/2008 interface. I love it! rp
null
CC BY-SA 2.5
null
2008-08-23T21:00:05.433
2008-08-23T21:00:05.433
null
null
2,536
null
24,602
2
null
24,599
0
null
A lot of people recommend Wacom. I've tried one, and it is really nice to use. To some extent, it really depends if you want only a tablet (no video feedback on the device), or a 'screen' (having video feedback, which I find nice but is also a bit pricey...).
null
CC BY-SA 2.5
null
2008-08-23T21:07:07.930
2008-08-23T21:07:07.930
null
null
2,638
null
24,605
2
null
14,344
1
null
I remember doing this once with some success, a few years ago, basically trying to cross compile a small Linux OpenGL C++ program. I do recall problems with Windows OpenGL drivers being behind the times (due to MS's focus on DirectX). I had NVidia OpenGL and DirectX drivers installed on my Windows system, but cygwin/g+...
null
CC BY-SA 2.5
null
2008-08-23T21:09:33.757
2008-08-25T01:20:43.910
2008-08-25T01:20:43.910
2,543
2,543
null
24,599
1
24,603
null
-2
2,469
I need to make a WebCast presentation soon and need to do some "whiteboarding" during that WebCast. Does anyone have any stylus/tablet input device recommendations? Anyone ever used such an input device with WebEx's whiteboard feature? rp
Stylus/tablet input device
CC BY-SA 2.5
null
2008-08-23T21:02:29.330
2013-07-19T12:41:04.877
2013-07-19T12:41:04.877
334,849
2,536
[ "webex" ]
24,606
2
null
4,689
0
null
I experimented with Myriad until I realised using a variable-width font was a fools game. Courier New here, although I am going to try out Envy after seeing it here.
null
CC BY-SA 2.5
null
2008-08-23T21:09:43.353
2008-08-23T21:09:43.353
null
null
2,025
null
24,607
2
null
24,579
24
null
Though it's certainly not a direct answer, in the past I've found I prefer to use RedCloth (or a Markdown parser if you don't enjoy Textile) and use a simple textarea with an AJAXy preview. Generally speaking, WYSIWYG editors have a long history of creating redundant tags and similar, leading to potentially broken piec...
null
CC BY-SA 2.5
null
2008-08-23T21:11:42.677
2008-08-23T21:11:42.677
null
null
2,286
null
24,603
2
null
24,599
2
null
Wacom [http://www.wacom.com/index2.cfm](http://www.wacom.com/index2.cfm) makes by far the best tablets I have ever used. They come in a variety of prices with associated features. If you want to be able to draw 'on-screen' they have the Cintiq, which is the most expensive, starting at $999 but definitely worth it. F...
null
CC BY-SA 2.5
null
2008-08-23T21:08:35.337
2008-08-23T21:08:35.337
null
null
115
null
24,596
1
24,707
null
85
19,305
I am considering creating my own website using Java and am trying to decide what framework to use. However, doing a quick search for Java frameworks returns more than 50 to choose from! My website is just going to be for my own enjoyment of building it in the beginning, but if it becomes popular, it would be good for ...
What are the pros and cons of the assorted Java web frameworks?
CC BY-SA 3.0
0
2008-08-23T20:58:25.437
2012-11-24T17:05:17.360
2011-08-30T20:24:32.663
122,607
2,628
[ "java", "web-frameworks", "rich-internet-application" ]
24,610
1
24,658
null
12
1,586
I'm used to the Vi(m) editor and am using MS Visual Studio 2005 at work. I couldn't find a free Vi add-in (there's only one for the 2003 version). I googled a bit, saw that there was a 'Google summer of code' project this year to write such an add-in, and am eagerly awaiting the result. I've also heard of ViEmu (not fr...
Vi editing for Visual Studio
CC BY-SA 3.0
null
2008-08-23T21:19:34.640
2019-01-16T02:00:52.267
2014-12-13T01:56:23.227
1,810,429
2,638
[ "visual-studio", "vim", "ide", "editor" ]
24,601
2
null
24,580
1
null
I had to do this for a C++ project in Visual Studio so I don't know how relevant this is to later version of visual studio: In the directory where your executable is created there will be a `BuildLog.htm` file. Open that file in your browser and then for each section such as: ``` Creating temporary file "c:\some\pat...
null
CC BY-SA 2.5
null
2008-08-23T21:04:15.970
2008-08-23T21:23:27.907
2008-08-23T21:23:27.907
2,541
2,541
null
24,611
2
null
24,596
9
null
If you are doing something RIAish, you might want to take look at [Vaadin](http://vaadin.com). It's an open source UI-oriented AJAX framework that, to me, is nice to use (I come from a PHP background myself). There's a [case study](http://vaadin.com/wiki/-/wiki/Main/Comparing%20Vaadin%20with%20Icefaces) that compar...
null
CC BY-SA 2.5
null
2008-08-23T21:19:52.470
2011-02-24T23:15:12.187
2011-02-24T23:15:12.187
2,238
2,238
null
24,613
2
null
24,595
4
null
I'm not sure what you're asking here, but if you are simply looking for a text-editor, my recommendations would be: Console-based: - - X-based: - - - There are of course likely to be a gazillion other text-editors better than the ones listed above, but these are the ones I tend to use.
null
CC BY-SA 2.5
null
2008-08-23T21:23:58.200
2008-08-23T21:23:58.200
null
null
2,622
null
24,618
2
null
22,696
0
null
Building on CodeSlave's answer, Access provides a Find Duplicates Query wizard that can help you easily build the query to weed out the duplicates. Another approach would be to set up an identity on FLDA and FLDB. This will prevent duplicate entries from even getting written to the table. Of course you will also nee...
null
CC BY-SA 2.5
null
2008-08-23T21:33:32.640
2008-08-23T21:33:32.640
null
null
2,470
null
24,619
2
null
24,579
6
null
I'm not sure about a Ruby Gem, but [TinyMCE](http://tinymce.moxiecode.com) is a customizable, generally stable WYSIWYG editor that is fairly simple to integrate w/ any project. I've used it a number of times.
null
CC BY-SA 2.5
null
2008-08-23T21:33:41.750
2008-08-23T21:33:41.750
null
null
1,335
null
24,620
1
null
null
9
1,848
What can be reasons to prevent a class from being inherited? (e.g. using sealed on a c# class) Right now I can't think of any.
Why should you prevent a class from being subclassed?
CC BY-SA 2.5
0
2008-08-23T21:35:46.783
2011-02-13T23:07:56.613
2008-08-23T21:50:20.040
2,134
2,374
[ "oop" ]
24,625
2
null
24,596
3
null
I think for your modest requirements, you just need to code up servlets or simple jsp pages that you can serve from Tomcat server. I dont think you need any kind of web-framework (like struts) for personal web-site data
null
CC BY-SA 2.5
null
2008-08-23T21:40:54.917
2008-08-23T21:40:54.917
null
null
null
null
24,623
1
null
null
1
2,167
I have seen two ways of implementing DAO-DVO design. 1) DVO are objects and DAOs are instantiated using factories i.e DAOs are also objects 2) DVOs are again objects but in this case, DAOs are classes which contain only static methods which accept DVOs to perform tasks. I was wondering which way is better and more sc...
Java EE - DAO DVO
CC BY-SA 3.0
null
2008-08-23T21:40:10.797
2013-01-16T20:42:14.597
2013-01-16T20:42:14.597
472,792
null
[ "java", "jakarta-ee", "dao" ]
24,624
2
null
24,620
22
null
Because writing classes to be substitutably extended is and requires you to make accurate predictions of how future users will want to extend what you've written. Sealing your class forces them to use composition, which is much more robust.
null
CC BY-SA 2.5
null
2008-08-23T21:40:45.023
2008-08-23T21:40:45.023
null
null
2,131
null
24,630
2
null
24,623
0
null
I would strongly recommend not using that many layers unless they are really layered physically. eg if you have something like a rich client where you need to send detached objects to update the GUI, otherwise, its a world of pain.
null
CC BY-SA 2.5
null
2008-08-23T21:42:57.437
2008-08-23T21:42:57.437
null
null
699
null
24,629
2
null
24,620
1
null
This may not apply to your code, but a lot of classes within the .NET framework are sealed purposely so that no one tries to create a sub-class. There are certain situations where the internals are complex and require certain things to be controlled very specifically so the designer decided no one should inherit the c...
null
CC BY-SA 2.5
null
2008-08-23T21:42:44.863
2008-08-23T21:42:44.863
null
null
392
null
24,626
1
24,748
null
183
158,979
Can you tell me what is the difference between and in software development? I am confused. Abstraction hides detail implementation and information hiding abstracts whole details of something. I found a good answer for these three concepts. [See the separate answer below](https://stackoverflow.com/a/8694874/240733)...
Abstraction VS Information Hiding VS Encapsulation
CC BY-SA 3.0
0
2008-08-23T21:41:49.670
2020-05-20T15:18:53.500
2017-05-23T11:47:30.917
-1
1,556
[ "encapsulation", "abstraction", "glossary", "ooad", "information-hiding" ]
24,631
2
null
24,622
16
null
If you're using apache as a webserver you can override (if you allow it) settings using files. See [the PHP manual](http://us2.php.net/configuration.changes) for details. Basically you put a file called in your website root, which contains some PHP `ini` values. Provided you configured Apache to allow overrides, thi...
null
CC BY-SA 3.0
null
2008-08-23T21:43:16.687
2016-01-14T06:50:51.563
2016-01-14T06:50:51.563
4,932,070
909
null
24,634
2
null
24,620
0
null
Sometimes your class interface just isn't meant to be inheirited. The public interface just isn't virtual and while someone could override the functionality that's in place it would just be wrong. Yes in general they shouldn't override the public interface, but you can insure that they don't by making the class non-i...
null
CC BY-SA 2.5
null
2008-08-23T21:45:29.240
2008-08-23T21:45:29.240
null
null
1,327
null
24,635
2
null
24,579
4
null
I use FCKEditorOnRails plugin: [http://github.com/UnderpantsGnome/fckeditor_on_rails/tree/master](http://github.com/UnderpantsGnome/fckeditor_on_rails/tree/master) Note that you can generally drop in the latest version of FCKEditor without much tweaking if you're running into bugs in the older version.
null
CC BY-SA 2.5
null
2008-08-23T21:46:38.147
2008-08-23T21:46:38.147
null
null
2,590
null
24,632
2
null
24,620
0
null
Because you always want to be handed a reference to the class and not to a derived one for various reasons: i. invariants that you have in some other part of your code ii. security etc Also, because it's a safe bet with regards to backward compatibility - you'll never be able to close that class for inheritance if it'...
null
CC BY-SA 2.5
null
2008-08-23T21:43:24.223
2008-08-23T21:43:24.223
null
null
1,065
null
24,633
2
null
24,620
1
null
@jjnguy > Another user may want to re-use your code by sub-classing your class. I don't see a reason to stop this. If they want to use the functionality of my class they can achieve that with containment, and they will have much less brittle code as a result. Composition seems to be often overlooked; all too often p...
null
CC BY-SA 2.5
null
2008-08-23T21:45:11.380
2008-08-23T21:45:11.380
null
null
2,131
null
24,638
2
null
23,620
1
null
Most rich text editors let you specify whether or not to disable the browser's spellchecker (as answered by others), with the exception of those running in Safari. There is currently no way to programmatically disable the Safari spellchecker (as there is in FF and IE7+), so most rich text editors choose to let Safari ...
null
CC BY-SA 2.5
null
2008-08-23T21:50:09.837
2008-08-23T21:50:09.837
null
null
1,335
null
24,615
2
null
24,515
39
null
I didn't see any language specified but you can use this for PHP it will generate a RegEx for each instered work so that even intentional mis-spellings (i.e. @ss, i3itch ) will also be caught. ``` <?php /** * @author unkwntech@unkwndesign.com **/ if($_GET['act'] == 'do') { $pattern['a'] = '/[a]/'; $replace['a...
null
CC BY-SA 3.0
null
2008-08-23T21:27:01.017
2011-07-24T17:41:18.370
2011-07-24T17:41:18.370
115
115
null
24,622
1
24,631
null
19
24,454
I can set the PHP include path in the `php.ini`: ``` include_path = /path/to/site/includes/ ``` But then other websites are affected so that is no good. I can set the PHP include in the start of every file: ``` $path = '/path/to/site/includes/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); ``` ...
Setting PHP Include Path on a per site basis?
CC BY-SA 3.0
null
2008-08-23T21:39:54.793
2018-04-03T15:46:56.710
2011-11-28T02:56:16.477
214,668
2,118
[ "php", "include" ]
24,636
2
null
24,626
6
null
The meaning of abstraction given by the Oxford English Dictionary (OED) closest to the meaning intended here is 'The act of separating in thought'. A better definition might be 'Representing the essential features of something without including background or inessential detail.' Information hiding is the principle tha...
null
CC BY-SA 2.5
null
2008-08-23T21:46:56.727
2008-08-23T22:27:04.010
2008-08-23T22:27:04.010
2,639
2,639
null
24,641
2
null
24,620
8
null
I want to give you this message from "Code Complete": > Inheritance - subclasses - tends to work against the primary technical imperative you have as a programmer, which is to manage complexity.For the sake of controlling complexity, you should maintain a heavy bias against inheritance.
null
CC BY-SA 2.5
null
2008-08-23T21:56:07.687
2008-08-23T21:56:07.687
null
null
1,556
null
24,637
2
null
24,626
3
null
Abstraction is hiding details of implementation as you put it. You abstract something to a high enough point that you'll only have to do something very simple to perform an action. Information hiding is hiding implementation details. Programming is hard. You can have a lot of things to deal with and handle. There can...
null
CC BY-SA 3.0
null
2008-08-23T21:47:05.040
2012-10-01T14:21:38.183
2012-10-01T14:21:38.183
392
392
null
24,640
2
null
24,596
39
null
My favorite is the Spring Framework. With 2.5 Spring MVC is soooo kick ass, with new annotations, convention over configuration features, etc. If you're just doing something super simple you could also just try using the regular Servlet API and not bother with a framework.
null
CC BY-SA 2.5
null
2008-08-23T21:55:11.213
2008-08-23T21:55:11.213
null
null
543
null