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,647
2
null
24,623
1
null
Try the Spring Framework. DAOs are initialized via Dependency Injection and are just plain 'ole Java objects. Then, the methods on the DAO should just use Domain Objects that are used at all layers of the Application.
null
CC BY-SA 2.5
null
2008-08-23T21:58:08.057
2008-08-23T21:58:08.057
null
null
543
null
24,654
2
null
24,515
1
null
You could always convince the client to have a session of users just constantly posting expletives and make an easy solution to add them to the system. It is a lot of work but it will probably be more representative of the community.
null
CC BY-SA 2.5
null
2008-08-23T22:03:13.503
2008-08-23T22:03:13.503
null
null
2,025
null
24,643
2
null
24,551
7
null
Assuming the type in your example, definitely prefer to initialize fields in the constructor. The exceptional cases are: - - I always think of the field listing at the top of a class as the table of contents (what is contained herein, not how it is used), and the constructor as the introduction. Methods of course ar...
null
CC BY-SA 2.5
null
2008-08-23T21:56:29.853
2008-08-23T21:56:29.853
null
null
2,637
null
24,648
1
24,682
null
20
5,738
I'd like to gain better knowledge of operating system internals. Process management, memory management, and stuff like that. I was thinking of learning by getting to know either linux or BSD kernel. Which one kernel is better for learning purposes? What's the best place to start? Can you recommend any good books?
What's the best way to get to know linux or BSD kernel internals?
CC BY-SA 2.5
0
2008-08-23T21:58:53.500
2016-10-27T14:38:38.773
2009-08-22T13:41:03.493
1,534
1,534
[ "linux", "operating-system", "kernel", "bsd", "osdev" ]
24,621
2
null
24,620
9
null
How about if you are not sure about the interface yet and don't want any other code depending on the present interface? [That's off the top of my head, but I'd be interested in other reasons as well!] Edit: A bit of googling gave the following: [http://codebetter.com/blogs/patricksmacchia/archive/2008/01/05/rambling-o...
null
CC BY-SA 2.5
null
2008-08-23T21:37:29.260
2008-08-23T21:46:32.123
2008-08-23T21:46:32.123
2,638
2,638
null
24,657
2
null
24,541
1
null
> I know this method can hardly be called automatic but why don't you use a few simple SELECT INTO statements? Because I'd have to reconstruct the schema, constraints and indexes first. Thats the part I want to automate...Getting the data is the easy part. Thanks for your suggestions everyone, looks like this is easy...
null
CC BY-SA 2.5
null
2008-08-23T22:08:18.047
2008-08-23T22:08:18.047
null
null
1,965
null
24,660
2
null
24,610
3
null
[ViEmu](http://www.viemu.com/) works great. I've been using it for about a year now and couldn't imagine coding in Visual Studio without it. Why can't you test it at work? It has a 30 day free trial.
null
CC BY-SA 2.5
null
2008-08-23T22:12:18.007
2008-08-23T22:12:18.007
null
null
163
null
24,659
2
null
24,551
4
null
What if I told you, it depends? I in general initialize everything and do it in a consistent way. Yes it's overly explicit but it's also a little easier to maintain. If we are worried about performance, well then I initialize only what has to be done and place it in the areas it gives the most bang for the buck. In...
null
CC BY-SA 3.0
null
2008-08-23T22:09:35.300
2012-04-10T19:46:15.787
2012-04-10T19:46:15.787
1,098,249
1,327
null
24,661
2
null
24,620
0
null
> I exposed a minimal interface to interact with the client API, and it would have been awesome to extend the client API class and then just add an implements clause with my new interface. The methods that I had in the interface that matched the actual interface would then need no further details and so I wouldn't have...
null
CC BY-SA 2.5
null
2008-08-23T22:13:44.867
2008-08-23T22:13:44.867
null
null
2,131
null
24,663
2
null
23,899
4
null
Since a complete rewrite of a working system can be very dangerous i can only give you a small tip: Set up exuberant tags, ctags, on your project. This way you can jump to the definition of a function and sub easy, which i think helps a lot. On separating logic from "views". VBScript supports som kind of OO with class...
null
CC BY-SA 2.5
null
2008-08-23T22:20:00.483
2009-11-04T11:02:51.483
2009-11-04T11:02:51.483
2,639
2,639
null
24,664
2
null
24,644
0
null
My guess is that this is possible, I did find [this](http://msdn.microsoft.com/en-us/library/bb776794(VS.85).aspx) which is for monitoring operations (including rename) on a folder, but there does not appear to be a similar method for files. @Richard, FileSystemWatcher is good if you only need to monitor changes, but...
null
CC BY-SA 2.5
null
2008-08-23T22:21:11.713
2008-08-23T22:35:42.427
2008-08-23T22:35:42.427
163
163
null
24,652
2
null
24,620
0
null
Not everything that's important in a class is asserted easily in code. There can be semantics and relationships present that are easily broken by inheriting and overriding methods. Overriding one method at a time is an easy way to do this. You design a class/object as a single meaningful entity and then someone comes ...
null
CC BY-SA 2.5
null
2008-08-23T22:01:43.553
2008-08-23T22:01:43.553
null
null
855
null
24,644
1
24,671
null
7
1,908
Is there any way, in any language, to hook my program when a user renames a file? For example: A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to this event and pops up a message saying "Are you sure you want to rename C:\...
Hooking my program with windows explorer's rename event
CC BY-SA 3.0
null
2008-08-23T21:56:47.810
2017-12-14T09:53:26.277
2017-12-14T09:53:26.277
3,817,004
2,644
[ "c#", ".net", "file", "io" ]
24,668
2
null
24,648
7
null
As a Linux user I'd say Linux has a great community for people to learn about the kernel. [http://kernelnewbies.org](http://kernelnewbies.org) is a great place to start asking questions and learning about how the kernel works. I can't make a book reccomendation, but once you've read the starting material on kernelnewbi...
null
CC BY-SA 2.5
null
2008-08-23T22:27:51.730
2008-08-23T22:27:51.730
null
null
2,647
null
24,670
2
null
10,228
8
null
If you want your tests to share various helper objects and settings, you can use `setUp()`, `tearDown()` to add to the `sharedFixture` property.
null
CC BY-SA 2.5
null
2008-08-23T22:30:48.447
2008-08-23T22:30:48.447
null
null
2,506
null
24,645
2
null
24,620
1
null
I am in agreement with jjnguy... I think the reasons to seal a class are few and far between. Quite the contrary, I have been in the situation more than once where I want to extend a class, but couldn't because it was sealed. As a perfect example, I was recently creating a small package (Java, not C#, but same princi...
null
CC BY-SA 2.5
null
2008-08-23T21:57:11.973
2008-08-23T22:02:20.260
2008-08-23T22:02:20.260
122
122
null
24,658
2
null
24,610
6
null
ViEmu works great with Visual Studio. I used Vi(m) strictly in Linux, but I was turned on to bringing the Vi(m) editing process into the Windows world by [JP Boodhoo](http://www.jpboodhoo.com/). JP [praises](http://blog.jpboodhoo.com/HookedOnVIM.aspx) about it also.
null
CC BY-SA 2.5
null
2008-08-23T22:08:49.607
2008-08-23T22:08:49.607
null
null
1,117
null
24,665
2
null
24,620
0
null
> (…) if the JIT compiler sees a call to a virtual method using a sealed types, the JIT compiler can produce more efficient code by calling the method non-virtually.(…) That's a great reason indeed. Thus, for performance-critical classes, `sealed` and friends make sense. All the other reasons I've seen mentioned so ...
null
CC BY-SA 2.5
null
2008-08-23T22:24:49.927
2008-08-23T22:24:49.927
null
null
1,600
null
24,676
2
null
5,078
2
null
@svrist mentioned EC2. EC2 provides an API for opening and closing ports remotely. This way, you can keep your box running. If you need to give a demo from a coffee shop or a client's office, you can grab your IP and add it to the ACL.
null
CC BY-SA 2.5
null
2008-08-23T22:37:56.557
2008-08-23T22:37:56.557
null
null
2,506
null
24,678
1
25,124
null
133
103,923
I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one?
JavaScript editor within Eclipse
CC BY-SA 3.0
0
2008-08-23T22:42:50.757
2018-04-05T06:40:55.387
2014-06-27T09:16:48.200
617,450
2,648
[ "javascript", "eclipse", "plugins", "editor" ]
24,671
2
null
24,644
5
null
You can probably solve this by using the [FileSystemWatcher class](http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx) in .NET framework. From the class remarks: > You can watch for renaming, deletion, or creation of files or directories. For example, to watch for renaming of text files, s...
null
CC BY-SA 2.5
null
2008-08-23T22:31:11.813
2008-08-23T22:31:11.813
null
null
298
null
24,673
2
null
22,696
1
null
Would a query suit? For example: ``` INSERT INTO ToUpdate ( Field1, Field2 ) SELECT e.H1, e.H2 FROM (SELECT * FROM [Sheet1$] IN '' [Excel 8.0;HDR=YES;IMEX=1;database=C:\Docs\LTD.xls]) As e LEFT JOIN ToUpdate ON (e.H2 = ToUpdate.Field2) AND (e.H1 = ToUpdate.Field1) WHERE ToUpdate.Field1 Is Null AND ToUpdate.Field2 Is N...
null
CC BY-SA 2.5
null
2008-08-23T22:34:33.647
2008-08-23T22:34:33.647
null
null
2,548
null
24,681
2
null
24,675
9
null
Firstly, as I think Knuth said, "Premature optimization is the root of all evil". If you don't have to deal with these issues right now then don't, focus on delivering something that works correctly first. That being said, if the optimizations can't wait. Try profiling your database queries, figure out what's slow a...
null
CC BY-SA 2.5
null
2008-08-23T22:50:17.120
2008-08-23T22:50:17.120
null
null
2,594
null
24,675
1
24,689
null
253
26,993
Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques. --- I'm developing a tool in that could attain quite a lot of users, if it works out right...
Tactics for using PHP in a high-load site
CC BY-SA 2.5
0
2008-08-23T22:37:49.707
2016-01-15T15:32:42.777
2011-11-25T22:18:16.563
466,826
2,025
[ "php", "performance", "high-load" ]
24,679
2
null
24,675
9
null
[APC](http://us.php.net/apc) is an absolute must. Not only does it make for a great caching system, but the gain from the auto-cached PHP files is a godsend. As for the multiple database idea, I don't think you would get much out of having different databases on the same server. It may give you a bit of a gain in sp...
null
CC BY-SA 2.5
null
2008-08-23T22:45:58.067
2008-08-23T22:45:58.067
null
null
1,662
null
24,682
2
null
24,648
12
null
In college, I had an operating systems class where we used a [book by Tanenbaum](https://rads.stackoverflow.com/amzn/click/com/0003458903). In the class, we implemented a device driver in the [Minix operating system](http://minix1.woodhull.com/teaching/teach_ver.html). It was a lot of fun, and we learned a lot. One ...
null
CC BY-SA 2.5
null
2008-08-23T22:51:16.073
2008-08-23T22:51:16.073
null
null
122
null
24,680
1
24,704
null
20
16,249
My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy project in Visual Basic 6.0, so I have a couple of questions: - -
Using Subversion with Visual Basic 6
CC BY-SA 3.0
0
2008-08-23T22:46:06.100
2014-06-04T13:11:41.983
2014-06-04T13:11:41.983
15,639
217
[ "svn", "vb6" ]
24,683
2
null
24,678
1
null
Didn't use eclipse for a while, but there are [ATF](http://www.eclipse.org/atf/) and [Aptana](http://www.aptana.com/).
null
CC BY-SA 2.5
null
2008-08-23T22:51:26.197
2008-08-23T22:51:26.197
null
null
1,026
null
24,667
2
null
24,648
5
null
- [Linux Device Drivers](https://rads.stackoverflow.com/amzn/click/com/0596005903)- [Linux Core Kernel Commentary](https://rads.stackoverflow.com/amzn/click/com/1576104699)- [Operating Systems Design and Implementation](https://rads.stackoverflow.com/amzn/click/com/0131429388) I had previously bought these books on re...
null
CC BY-SA 2.5
null
2008-08-23T22:26:45.210
2008-08-23T22:26:45.210
null
null
163
null
24,686
2
null
24,675
6
null
Profiling your app with something like Xdebug (like tj9991 recommended) is definitely going to be a must. It doesn't make a whole lot of sense to just go around optimizing things blindly. Xdebug will help you find the real bottlenecks in your code so you can spend your optimization time wisely and fix chunks of code th...
null
CC BY-SA 2.5
null
2008-08-23T22:54:21.697
2008-08-23T22:54:21.697
null
null
1,384
null
24,691
2
null
24,680
3
null
My guess would be to not bother with integration and just use Tortoise SVN in Windows Explorer. As for file types to ignore, give it a test, checkout, build, and see if any files changed (for modern Visual Studio I tend to ignore the .suo files)
null
CC BY-SA 2.5
null
2008-08-23T23:03:43.873
2008-08-23T23:03:43.873
null
null
163
null
24,685
2
null
24,675
43
null
I've worked on a few sites that get millions/hits/month backed by PHP & MySQL. Here are some basics: 1. Cache, cache, cache. Caching is one of the simplest and most effective ways to reduce load on your webserver and database. Cache page content, queries, expensive computation, anything that is I/O bound. Memcache is...
null
CC BY-SA 2.5
null
2008-08-23T22:54:17.843
2008-08-23T22:54:17.843
null
null
956
null
24,694
2
null
24,596
5
null
I've heard good things about the Spring Framework too. In general, though, I've been underwhelmed by most Java web frameworks I've looked at (esp Struts). For a simple app I'd definitely consider using "raw" servlets and JSPs and not worry about adopting a framework. If the servlets are well written, it should be ...
null
CC BY-SA 2.5
null
2008-08-23T23:10:20.393
2008-08-23T23:10:20.393
null
null
2,649
null
24,708
1
24,746
null
5
226
I'm thinking of creating a small offline blog editor for personal use and I don't know how do the APIs work. Where can I find this information? I'm particularly looking for the most common providers: Blogger, Wordpress, MovableType, Live Spaces (not sure if this has an API) etc.
Where do I find information about Blog APIs and how to use them?
CC BY-SA 2.5
null
2008-08-23T23:41:03.317
2015-10-08T01:04:26.293
null
null
2,644
[ "api", "blogs" ]
24,704
2
null
24,680
16
null
I would agree that Tortoise SVN in Windows Explorer would be the best way to use SVN with VB6. The biggest change you will find migrating to SVN is the idea of "Check out" and "Check in" aren't exactly the same as "Update" and "Commit". . . thus, any IDE integration with VB6 is limited because VB6 supports MSSCCI, a c...
null
CC BY-SA 2.5
null
2008-08-23T23:33:46.610
2008-08-23T23:33:46.610
null
null
2,258
null
24,687
2
null
24,439
5
null
Absolutely, however, it does depend somewhat on what you expect "replacing" to mean. You can develop an extension to provide a new set of menus or dropdown toolbar of some kind like the [Google Bookmarks toolbar](http://cybernetnews.com/wp-content/uploads/2006/04/GoogleBookmarks.png) for example, or like the [Delicious...
null
CC BY-SA 2.5
null
2008-08-23T22:59:47.003
2008-08-23T22:59:47.003
null
null
1,627
null
24,718
2
null
11,801
1
null
It is not merely "OK"; it is a good idea. Anything to encourage the laggards to keep current is a good thing.
null
CC BY-SA 2.5
null
2008-08-24T00:15:31.503
2008-08-24T00:15:31.503
null
null
2,131
null
24,689
2
null
24,675
94
null
No two sites are alike. You really need to get a tool like [jmeter](http://jakarta.apache.org/jmeter/) and benchmark to see where your problem points will be. You can spend a lot of time guessing and improving, but you won't see real results until you measure and compare your changes. For example, for many years, the...
null
CC BY-SA 2.5
null
2008-08-23T23:03:03.703
2008-08-23T23:03:03.703
null
null
2,506
null
24,723
1
535,022
null
31
93,125
Jeff actually posted about this in [Sanitize HTML](http://refactormycode.com/codes/333-sanitize-html). But his example is in C# and I'm actually more interested in a Java version. Does anyone have a better version for Java? Is his example good enough to just convert directly from C# to Java? [Update] I have put a bount...
Best regex to catch XSS (Cross-site Scripting) attack (in Java)?
CC BY-SA 3.0
0
2008-08-24T00:21:10.413
2022-11-13T08:59:54.290
2020-06-20T09:12:55.060
-1
1,406
[ "java", "html", "regex", "xss" ]
24,720
2
null
24,715
-2
null
I'd suggest making your table have 1 tag per record, like this: ``` apple -> fruit apple -> red apple -> food banana -> fruit banana -> yellow banana -> food ``` Then you could just ``` SELECT object WHERE tag = 'fruit' OR tag = 'food'; ``` If you really want to do it your way though, you could do it like th...
null
CC BY-SA 2.5
null
2008-08-24T00:17:39.483
2008-08-24T00:17:39.483
null
null
813
null
24,695
2
null
24,622
0
null
You can set `include_path` in your php.ini file too. I'm a perl guy, so I expect to be able to load includes and have `include` do the right thing. I have all my includes in a specific directory, which is added to `include_path`. I can do things like ``` require_once "ClassName.php"; ``` I don't need to worry about...
null
CC BY-SA 3.0
null
2008-08-23T23:11:12.890
2017-01-09T12:47:21.940
2017-01-09T12:47:21.940
4,380,409
2,506
null
24,728
2
null
24,626
1
null
Abstraction allows you to treat a complex process as a simple process. For example, the standard "file" abstraction treats files as a contiguous array of bytes. The user/developer does not even have to think about issues of clusters and fragmentation. (Abstraction normally appears as classes or subroutines.) Informati...
null
CC BY-SA 2.5
null
2008-08-24T00:29:47.787
2008-08-24T00:29:47.787
null
null
891
null
24,731
1
24,743
null
5
2,016
I am thinking about providing a version of say, the database schema and the `dlls` for business logic in the footer of my web application. Is this advised? Are there any pitfalls, or pointers of how to do this best? Usability concerns?
Displaying version of underlying software in footer of web app?
CC BY-SA 3.0
null
2008-08-24T00:38:00.653
2017-06-09T09:51:05.820
2017-06-09T09:51:05.820
1,055,241
1,220
[ "web-applications", "assemblies", "versioning" ]
24,732
2
null
24,648
6
null
Aside from the good books already mentioned (Opeating System Design & Implementation is particularly good), get a hold of a 1.x release Linux Kernel, load it into VMWare or VirtualBox and start playing around from there. You will need to spend a lot of time browsing source code. For this, check out [http://lxr.linux....
null
CC BY-SA 2.5
null
2008-08-24T00:40:14.157
2008-08-24T00:46:09.773
2008-08-24T00:46:09.773
1,693
1,693
null
24,707
2
null
24,596
59
null
I've used [Tapestry 3](http://tapestry.apache.org/tapestry3/), [Wicket](http://wicket.apache.org/), [Echo](http://echo.nextapp.com/site/), and [JSF](http://www.oracle.com/technetwork/java/javaee/javaserverfaces-139869.html) fairly extensively. I'd really recommend you look those over and pick the one that appears the ...
null
CC BY-SA 2.5
null
2008-08-23T23:39:36.317
2010-12-15T15:21:32.300
2010-12-15T15:21:32.300
34,088
1,432
null
24,733
2
null
24,731
2
null
IMO, the only reasons to show version numbers are: - - So if these things are important for your bug reports, then expose them. If not, then don't.
null
CC BY-SA 2.5
null
2008-08-24T00:40:47.790
2008-08-24T00:40:47.790
null
null
1,554
null
24,738
2
null
24,734
2
null
You've guessed correctly: you're asking for nodes not in a namespace, but these nodes are in a namespace. Description of the problem and solution: [http://weblogs.asp.net/wallen/archive/2003/04/02/4725.aspx](http://weblogs.asp.net/wallen/archive/2003/04/02/4725.aspx)
null
CC BY-SA 2.5
null
2008-08-24T00:43:43.227
2008-08-24T00:43:43.227
null
null
1,554
null
24,684
2
null
24,626
2
null
See Joel's post on the Law of Leaky Abstractions [JoelOnsoftware](http://www.joelonsoftware.com/articles/LeakyAbstractions.html) Basically, abstracting gives you the freedom of thinking of higher level concepts. A non-programming analogy is that most of us do not know where our food comes from, or how it is produced...
null
CC BY-SA 3.0
null
2008-08-23T22:53:48.813
2017-09-14T14:21:37.410
2017-09-14T14:21:37.410
6,494,677
2,470
null
24,737
2
null
24,680
1
null
For the server side, VisualSVN Server, is a super simple solution, we are running it in a vmware virtual, and its humming along. If you are a command line guy, I really like the command line interface for svn, I find it less confusing to get to certain actions than tortoise, such as status of the folder. But if you ar...
null
CC BY-SA 2.5
null
2008-08-24T00:43:07.317
2008-08-24T00:43:07.317
null
null
1,220
null
24,740
2
null
24,734
6
null
You might need to add a XmlNamespaceManager. ``` XmlDocument document = new XmlDocument(); XmlNamespaceManager nsmgr = new XmlNamespaceManager(document.NameTable); nsmgr.AddNamespace("creativeCommons", "http://backend.userland.com/creativeCommonsRssModule"); // AddNamespace for other namespaces too. document.Load(feed...
null
CC BY-SA 2.5
null
2008-08-24T00:45:22.693
2008-08-24T00:45:22.693
null
null
2,148
null
24,743
2
null
24,731
6
null
I quite like what is done e.g. [here](http://episteme.arstechnica.com/). If you look towards the bottom of the page, there's a piece of text "powered by eve community". If you click that text you get a small chunk of technical information. To me, this is a nice tradeoff between having the (useful) information readil...
null
CC BY-SA 2.5
null
2008-08-24T00:48:37.913
2008-08-24T00:48:37.913
null
null
2,131
null
24,715
1
24,754
null
3
4,833
I'm implementing a tagging system for a website. There are multiple tags per object and multiple objects per tag. This is accomplished by maintaining a table with two values per record, one for the ids of the object and the tag. I'm looking to write a query to find the objects that match a given set of tags. Suppose I...
SQL many-to-many matching
CC BY-SA 2.5
0
2008-08-24T00:09:34.760
2013-06-11T15:15:18.057
2008-08-24T00:37:07.817
658
658
[ "sql", "many-to-many", "tagging" ]
24,730
1
24,744
null
3
13,004
I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages :( I'm getting this message when it tries to connect to my local database: ``` Line 38: Mast...
What is this 'Multiple-step OLE DB' error?
CC BY-SA 2.5
null
2008-08-24T00:35:22.390
2009-05-20T13:18:18.460
2008-10-10T09:17:37.013
6,461
1,965
[ "asp-classic", "oledb", "ado" ]
24,734
1
24,755
null
16
8,401
I'm trying to add support for stackoverflow feeds in my rss reader but and have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet. I have gotten it to work by removing all attributes from the tag, but that's a hack and I would like to do it properly. So, how d...
SelectNodes not working on stackoverflow feed
CC BY-SA 3.0
0
2008-08-24T00:40:48.773
2017-05-06T14:32:49.630
2017-05-06T14:32:49.630
2,449,905
1,147
[ "c#", ".net", "rss", "atom-feed" ]
24,745
2
null
24,715
0
null
@Kyle: Your query should be more like: Your query was looking for rows where the tag was both fruit AND food, which is impossible seeing as the field can only have one value, not both at the same time.
null
CC BY-SA 2.5
null
2008-08-24T00:49:59.890
2008-08-24T00:49:59.890
null
null
1,693
null
24,748
2
null
24,626
163
null
Go to the source! Grady Booch says (in Object Oriented Analysis and Design, page 49, second edition): > Abstraction and encapsulation are complementary concepts: abstraction focuses on the observable behavior of an object... encapsulation focuses upon the implementation that gives rise to this behavior... encaps...
null
CC BY-SA 3.0
null
2008-08-24T00:57:31.370
2014-01-07T06:30:53.997
2014-01-07T06:30:53.997
1,719,067
2,536
null
24,746
2
null
24,708
3
null
See the following links: [Blogger](http://www.blogger.com/developers/api/1_docs/) [Wordpress](http://codex.wordpress.org/Plugin_API) [Live Spaces](http://msdn.microsoft.com/en-us/library/bb447732.aspx)
null
CC BY-SA 3.0
null
2008-08-24T00:52:54.983
2015-10-08T01:04:26.293
2015-10-08T01:04:26.293
67,579
1,975,282
null
24,755
2
null
24,734
9
null
Don't confuse the namespace names in the XML file with the namespace names for your namespace manager. They're both shortcuts, and they don't necessarily have to match. So you can register "[http://www.w3.org/2005/Atom](http://www.w3.org/2005/Atom)" as "atom", and then do a SelectNodes for "atom:entry".
null
CC BY-SA 2.5
null
2008-08-24T01:03:03.587
2008-08-24T01:03:03.587
null
null
1,554
null
24,750
2
null
24,708
1
null
The Blogger API link you provided says: > This documentation is provided for historical interest only. The Blogger 1.0 API is no longer supported and must not be used for new client development. Please use our GData API instead. So the correct one probably is: [http://code.google.com/apis/blogger/](http://co...
null
CC BY-SA 2.5
null
2008-08-24T01:00:03.563
2008-08-24T01:00:03.563
null
null
2,644
null
24,753
2
null
24,734
0
null
I just want to use.. ``` XmlNodeList itemList = xmlDoc.DocumentElement.SelectNodes("entry"); ``` but, what namespace do the tags fall under? I would assume xmlns="http://www.w3.org/2005/Atom", but it has no title so how would I add that namespace? ``` XmlDocument document = new XmlDocument(); XmlNamespaceManager n...
null
CC BY-SA 2.5
null
2008-08-24T01:00:40.130
2008-08-24T01:00:40.130
null
null
1,147
null
24,744
2
null
24,730
4
null
I ran into this a long time ago with working in ASP. I found this knowledge base article and it helped me out. I hope it solves your problem. [http://support.microsoft.com/kb/269495](http://support.microsoft.com/kb/269495) If this doesn't work and everything checks out, then it is probably your connection string. ...
null
CC BY-SA 2.5
null
2008-08-24T00:49:21.233
2008-08-24T00:55:38.910
2008-08-24T00:55:38.927
1,117
1,117
null
24,754
2
null
24,715
4
null
Given: - - - tags table (primary key id)``` SELECT distinct o.* from object o join objecttags ot on o.Id = ot.objectid join tags t on ot.tagid = t.id where t.Name = 'fruit' or t.name = 'food'; ``` This seems backwards, since you want and, but the issue is, 2 tags aren't on the same row, and theref...
null
CC BY-SA 3.0
null
2008-08-24T01:02:22.747
2013-06-11T15:15:18.057
2013-06-11T15:15:18.057
2,156,756
1,220
null
24,761
2
null
24,715
0
null
I recommend the following schema. ``` Objects: objectID, objectName Tags: tagID, tagName ObjectTag: objectID,tagID ``` With the following query. ``` select distinct objectName from ObjectTab ot join object o on o.objectID = ot.objectID join tabs t on t.tagID = ot.tagID where tagN...
null
CC BY-SA 2.5
null
2008-08-24T01:15:31.857
2008-08-24T01:15:31.857
null
null
1,293
null
24,759
2
null
24,715
0
null
Combine Steve M.'s suggestion with Jeremy's you'll get a single record with what you are looking for: ``` select object from tblTags where tag = @firstMatch and ( @secondMatch is null or (object in (select object from tblTags where tag = @secondMatch) ) ``` Now, that doesn't scale very we...
null
CC BY-SA 2.5
null
2008-08-24T01:11:25.517
2008-08-24T01:11:25.517
null
null
149
null
24,763
2
null
22,598
0
null
A site for web tutorials including ASP.net can be found [here](http://msconline.maconstate.edu/tutorials/default.aspx).
null
CC BY-SA 2.5
null
2008-08-24T01:16:18.533
2008-08-24T01:16:18.533
null
null
978
null
24,757
2
null
24,731
10
null
do this. It gives away free information to a potential attacker and makes their job easier. If there are exploits known for your given version of the software, there's no need to tell them that. There are actually search engines built on top of Google who use this information incontinence to power massive exploits (e....
null
CC BY-SA 2.5
null
2008-08-24T01:06:46.637
2008-08-24T01:06:46.637
null
null
1,968
null
24,762
2
null
24,680
12
null
Since Subversion uses an update/edit/commit cycle (rather than checkin/checkout), you will need to be especially careful with binary files. Most forms in VB6 consist of two files: MyForm.frm and MyForm.frx. The *.frx files are binary, and thus cannot be merged. Given that, I would set up Subversion to require "locki...
null
CC BY-SA 2.5
null
2008-08-24T01:15:53.307
2008-08-24T01:15:53.307
null
null
863
null
24,758
2
null
24,715
4
null
Oh gosh I may have mis-interpreted your original comment. The easiest way to do this in SQL would be to have three tables: ``` 1) Tags ( tag_id, name ) 2) Objects (whatever that is) 3) Object_Tag( tag_id, object_id ) ``` Then you can ask virtually any question you want of the data quickly, easily, and efficiently ...
null
CC BY-SA 2.5
null
2008-08-24T01:07:37.227
2008-08-24T01:15:53.417
2008-08-24T01:15:53.417
2,590
2,590
null
24,768
2
null
24,515
4
null
I would say to just remove posts as you become aware of them, and block users who are overly explicit with their postings. You can say very offensive things without using any swear words. If you block the word ass (aka donkey), then people will just type a$$ or /\55, or whatever else they need to type to get past the...
null
CC BY-SA 2.5
null
2008-08-24T01:23:18.280
2008-08-24T01:23:18.280
null
null
1,862
null
24,772
1
24,783
null
145
88,379
What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere?
How do I write a Firefox Addon?
CC BY-SA 2.5
0
2008-08-24T01:26:34.467
2022-11-06T22:56:55.130
2013-03-19T19:25:18.110
null
1,490
[ "firefox", "firefox-addon", "add-on" ]
24,766
2
null
24,708
1
null
MovableType API : [http://www.sixapart.com/developers/xmlrpc/movable_type_api/](http://www.sixapart.com/developers/xmlrpc/movable_type_api/) MetaWeblog API : [http://www.xmlrpc.com/metaWeblogApi](http://www.xmlrpc.com/metaWeblogApi)
null
CC BY-SA 2.5
null
2008-08-24T01:17:50.323
2008-08-24T01:17:50.323
null
null
2,644
null
24,774
2
null
24,772
5
null
This is a great resource to start learning how to build a FireFox extension: [How to create Firefox extensions](http://web.archive.org/web/20110715191248/http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/) This is an awesome tutorial and will covers most type of extensions.
null
CC BY-SA 3.0
null
2008-08-24T01:28:40.717
2012-01-09T20:48:31.940
2012-01-09T20:48:31.940
1,627
1,627
null
24,790
2
null
24,262
0
null
I was able to solve the problem, Michal pointed me to the right direction. The problem was that I tried to use File.Copy to copy a file from one location to another, while the Copy method does only copy all the contents from one file to another(creating the destination file if it does not already exists). The solution ...
null
CC BY-SA 2.5
null
2008-08-24T01:54:40.937
2008-08-24T01:54:40.937
null
null
2,605
null
24,795
2
null
24,408
0
null
I think serving up files from WebDAV might be what you're looking for.
null
CC BY-SA 2.5
null
2008-08-24T02:03:54.627
2008-08-24T02:03:54.627
null
null
645
null
24,779
2
null
24,772
20
null
Here's the official starter page from Mozilla for writing your first extension. [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension)
null
CC BY-SA 4.0
null
2008-08-24T01:31:59.447
2022-11-06T22:56:55.130
2022-11-06T22:56:55.130
1,989,425
194
null
24,794
2
null
24,648
0
null
When I was at uni I spent a semester studying operating systems, and as part of this had an assignment where we had to implement a RAM-based filesystem in Linux. It was a fantastic way to get to understand the internals of the Linux keurnel and to get a grasp on how everything fits together - And a heck of a lot of fu...
null
CC BY-SA 2.5
null
2008-08-24T02:01:09.157
2008-08-24T02:01:09.157
null
null
1,517
null
24,783
2
null
24,772
98
null
We tried to make [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions) answer all those questions. The first three links in the documentation section are about getting started (that includes something like Adam's link, before it ...
null
CC BY-SA 4.0
null
2008-08-24T01:42:07.893
2022-11-06T22:54:16.743
2022-11-06T22:54:16.743
1,989,425
1,026
null
24,797
1
25,073
null
30
80,017
What is the best way to convert a UTC datetime into local datetime. It isn't as simple as a getutcdate() and getdate() difference because the difference changes depending on what the date is. CLR integration isn't an option for me either. The solution that I had come up with for this problem a few months back was to ...
Effectively Converting dates between UTC and Local (ie. PST) time in SQL 2005
CC BY-SA 2.5
0
2008-08-24T02:08:15.553
2021-12-05T14:03:03.317
2008-08-24T20:38:46.927
1,950
1,950
[ "sql-server" ]
24,804
2
null
17,175
0
null
I know this is probably difficult to implement in Silverlight since it is probably resource intensive, but it would be nice if the VisualBrush was supported.
null
CC BY-SA 2.5
null
2008-08-24T02:20:21.747
2008-08-24T02:20:21.747
null
null
2,657
null
24,803
2
null
24,648
1
null
There's no substitute for diving into the code. Try to find a driver or subsystem that you're interested in and poke around with it. With tools like [VMware Workstation](http://vmware.com/workstation) it's super easy to make whatever changes you want, snapshot the VM, and run your modified kernel. If the kernel pani...
null
CC BY-SA 2.5
null
2008-08-24T02:19:04.810
2008-08-24T02:19:04.810
null
null
156
null
24,781
2
null
24,644
0
null
[IFileOperationProgressSink.PreRenameItem](http://msdn.microsoft.com/en-us/library/bb775745(VS.85).aspx) is the closest supported thing I know of. Unfortunately, it's not a hook into Explorer - so you can only use it for your own `IFileOperation` actions. Depending on your needs, you can write a shell extension to do y...
null
CC BY-SA 3.0
null
2008-08-24T01:37:02.163
2013-06-11T14:27:32.757
2017-05-23T12:01:24.217
-1
2,199
null
24,799
2
null
18,450
5
null
MoMA is a great tool for this, as someone else suggested. The biggest sources of incompatibility these days are applications which DllImport (or P/Invoke) into Win32 libraries. Some assemblies aren't implemented, but most of them are Windows-only and really wouldn't make sense on Linux. I think it's fairly safe to s...
null
CC BY-SA 2.5
null
2008-08-24T02:12:54.607
2008-08-24T02:12:54.607
null
null
156
null
24,815
2
null
24,812
1
null
I've always found [Steve Woodcock's Game AI site](http://www.gameai.com/) to be a great reference. It includes discussion, source code, and pointers to books, conferences, etc.
null
CC BY-SA 2.5
null
2008-08-24T02:47:36.473
2008-08-24T02:47:36.473
null
null
2,659
null
24,806
2
null
17,948
1
null
Our company uses a combination of NANT + Cruise Control + Custom Utility apps to build our products. More specifically, the [task](http://nant.sourceforge.net/release/latest/help/tasks/exec.html) in NANT will allow you to fire off those command-line applications such as WSDL.exe
null
CC BY-SA 2.5
null
2008-08-24T02:28:22.010
2008-08-24T02:28:22.010
null
null
2,657
null
24,808
2
null
23,962
1
null
Others have answered your question well and accurately - you're looking for memoization. Programming languages with [tail call optimization](http://en.wikipedia.org/wiki/Tail_recursion) (mostly functional languages) can do certain cases of recursion without stack overflow. It doesn't directly apply to your definition...
null
CC BY-SA 2.5
null
2008-08-24T02:34:04.757
2008-08-24T02:34:04.757
null
null
1,164,871
null
24,816
1
25,207
null
652
753,425
Does anyone know of an easy way to escape HTML from strings in [jQuery](http://jquery.com/)? I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks). I'm sure it's possible to extend jQuery to do this, but I don't know enoug...
Escaping HTML strings with jQuery
CC BY-SA 2.5
0
2008-08-24T02:52:42.280
2022-01-12T07:18:38.210
2012-05-01T10:47:46.683
894,284
2,657
[ "javascript", "jquery", "string", "escaping" ]
24,813
1
24,825
null
11
2,824
Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know [one answer](http://forums.msdn.microsoft.com/en-US/msbuild/thread/6e213531-9d88-43ef-8262-fe0e4e7f479a/) was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to instal...
Automating MSI Build Process
CC BY-SA 3.0
0
2008-08-24T02:42:07.797
2016-12-20T05:22:17.113
2016-12-20T05:22:17.113
1,380,867
2,657
[ "build-process", "build-automation" ]
24,820
2
null
24,813
1
null
We use [Wix](http://wix.sourceforge.net/) to automate MSI builds for IronPython and IronRuby. EDIT: to clarify, this probably means starting over from scratch when building your installer. While Wix has a mechanism to create a configuration directly from a preexisting MSI file, I've never gotten a satisfactory result...
null
CC BY-SA 2.5
null
2008-08-24T02:59:32.857
2008-08-24T02:59:32.857
null
null
533
null
24,826
2
null
14,646
20
null
There's no such thing as a project description, really. There's a column in the Projects page which is used so you can see which project is the default, built-in inbox, and we couldn't think of anything better to put as the column header for that column.
null
CC BY-SA 2.5
null
2008-08-24T03:22:54.313
2008-08-24T03:22:54.313
null
null
4
null
24,812
1
24,927
null
23
1,913
I've been asked to help out on an XNA project with the AI. I'm not totally new to the concepts (pathfinding, flocking, etc.) but this would be the first "real" code. I'd be very thankful for any resources (links or books); I want to make sure I do this right.
Recommendations needed for good AI references
CC BY-SA 2.5
0
2008-08-24T02:40:19.097
2010-05-22T22:04:04.030
2010-05-22T22:04:04.030
164,901
null
[ "xna", "artificial-intelligence" ]
24,823
1
25,016
null
0
1,063
I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itself runs another process asynchronously and may take anywhere from seconds to many hours to complete. Thi...
Implementing a custom Windows Workflow activity that executes an asynchronous operation
CC BY-SA 2.5
0
2008-08-24T03:05:47.303
2011-07-05T03:49:06.910
2011-07-05T03:49:06.910
102,937
404
[ "asynchronous", "workflow", "workflow-foundation", "workflow-activity" ]
24,825
2
null
24,813
8
null
Short of the method you mentioned above (devenv), there is no way to do this with the current version of MSBuild. The method the Visual Studio team uses to run their MSI builds is with [Windows Installer XML](http://wix.sourceforge.net/). You can learn more about using WiX to deploy setup packages [here](http://msdn....
null
CC BY-SA 2.5
null
2008-08-24T03:11:46.400
2008-08-24T03:11:46.400
null
null
2,658
null
24,832
2
null
24,829
2
null
1. Any references or value types that an object own live in the heap. 2. Only if you're casting ints to Objects.
null
CC BY-SA 2.5
null
2008-08-24T03:52:14.523
2008-08-24T03:52:14.523
null
null
429
null
24,839
2
null
11,676
0
null
The action pack is fantastic value, you can use the Windows Server from that, as well as SharePoint Enterprise / Standard.
null
CC BY-SA 2.5
null
2008-08-24T04:16:11.063
2008-08-24T04:16:11.063
null
null
697
null
24,821
1
null
null
8
6,677
This problem started [on a different board](http://forums.asp.net/t/1304033.aspx), but [Dave Ward](https://stackoverflow.com/users/60/dave-ward), who was very prompt and helpful there is also here, so I'd like to pick up here for hopefully the last remaining piece of the puzzle.­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­...
Why is Response.BufferOutput = False, not working?
CC BY-SA 3.0
null
2008-08-24T03:02:15.423
2017-09-26T11:39:27.820
2017-05-23T12:25:51.473
-1
1,953
[ "asp.net", "javascript", "html" ]
24,819
2
null
17,175
10
null
I'm actually on the silverlight team.. so I can also pass along suggestions. Not really sure how much i can divulge, but webcam is being worked on. I can definitely agree with the desire to gen wav files. I wanted to speed up/slow down sounds for a piano demo.. Carl - that's the plan. Though linux support is being ...
null
CC BY-SA 2.5
null
2008-08-24T02:55:37.403
2008-08-24T02:55:37.403
null
null
1,164,871
null
24,850
2
null
24,849
15
null
You need to use [setTimeout](http://www.w3schools.com/jsref/met_win_settimeout.asp) and pass it a callback function. The reason you can't use sleep in javascript is because you'd block the entire page from doing anything in the meantime. Not a good plan. Use Javascript's event model and stay happy. Don't fight it!
null
CC BY-SA 3.0
null
2008-08-24T05:14:30.800
2016-03-22T22:29:10.407
2016-03-22T22:29:10.407
429
429
null
24,849
1
24,852
null
200
479,279
Is there any JavaScript method similar to the jQuery `delay()` or `wait()` (to delay the execution of a script for a specific amount of time)?
Execute script after specific delay using JavaScript
CC BY-SA 3.0
0
2008-08-24T05:10:57.347
2022-04-28T12:25:47.530
2017-01-12T03:22:18.403
6,381,711
184
[ "javascript", "settimeout" ]
24,845
2
null
23,961
1
null
Preventing security breaches requires different strategies for different attacks. For instance, it would not be unusual to block traffic from certain sources during a denial of service attack. If a user fails to provide proper credentials more than 3 times the IP address is blocked or the account is locked. When Scan...
null
CC BY-SA 2.5
null
2008-08-24T04:55:49.753
2008-08-24T04:55:49.753
null
null
2,580
null
24,846
2
null
24,829
2
null
The best resource I've seen for this is the book CLR via C# by Jeffrey Richter. It's well worth reading if you do any .NET development. Based on that text, my understanding is that the value types within a reference type do live in the heap embedded in the parent object. Reference types are on the heap. Boxing and ...
null
CC BY-SA 2.5
null
2008-08-24T04:58:41.900
2008-08-24T05:06:59.850
2008-08-24T05:06:59.850
855
855
null