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
28,838
2
null
28,820
6
null
I work on windows mobile full time and have never really come across a good Windows Mobile scripting implementation unfortunately. For some reason MS has never seen the need for it. For example, even though you can actually get a command console on WM, it does not support running batch files, even though all the comm...
null
CC BY-SA 2.5
null
2008-08-26T18:53:07.680
2008-08-26T18:53:07.680
null
null
194
null
28,833
2
null
28,826
0
null
The [Expression site](http://www.microsoft.com/expression/) is the first place to start. These are tools that bridge the developer/designer gap for building rich internet applications with Silverlight and WPF. They compete with Adobe Studio products. Whilst Visual Studio is good for working with code, it has some weak...
null
CC BY-SA 2.5
null
2008-08-26T18:51:49.180
2008-08-26T18:51:49.180
null
null
636
null
28,693
2
null
27,243
2
null
I found the answer here: [http://blog.domaindotnet.com/2008/08/24/nhibernate-20-gold-released-must-wait-for-linq-to-nhibernate/](http://blog.domaindotnet.com/2008/08/24/nhibernate-20-gold-released-must-wait-for-linq-to-nhibernate/) # gold release 2.0.0.GA ## BREAKING CHANGES from NH1.2.1GA to NH2.0.0 - ## In...
null
CC BY-SA 2.5
null
2008-08-26T17:36:49.687
2008-08-26T17:36:49.687
null
null
2,849
null
28,840
1
null
null
-1
422
We are a small team of 3 developers (2 experienced but new to this particular business sector) developing a functionally complex product. We're using Scrum and have a demo at the end of each sprint. Its clear that the functional team have plenty of ideas but these are not well communicated to the development team an...
Scrum - How to get better input from the functional/commercial team
CC BY-SA 3.0
null
2008-08-26T18:54:01.640
2017-12-25T12:41:37.290
2017-12-25T12:41:37.290
2,442,804
2,839
[ "scrum", "methodology", "requirements" ]
28,846
2
null
28,840
0
null
Are they participating in the stand-up meetings? You could propose to have a representative at each (or some) of them, to ask them for input before the end of the sprint
null
CC BY-SA 2.5
null
2008-08-26T18:57:22.897
2008-08-26T18:57:22.897
null
null
1,782
null
28,849
2
null
11,491
0
null
What Steve says is right, but I guess that if your code had to support several languages, you could have a factory method that encapsulates a set of methods that do the relevant toUpper or toLower based on that language.
null
CC BY-SA 2.5
null
2008-08-26T18:58:13.440
2008-08-26T18:58:13.440
null
null
3,081
null
28,845
2
null
28,826
1
null
EDIT: Okay, I type too slow so most of what I had to say was already mentioned, so I'll strip it out except for... The BIG thing to take note of is that the WSYWIG designer they used in Expression Web made it's way into Visual Studio 2008, which is a VERY GOOD thing. There is now EXCELLENT support for CSS, a better ed...
null
CC BY-SA 2.5
null
2008-08-26T18:56:22.337
2008-08-26T18:56:22.337
null
null
71
null
28,843
1
33,738
null
6
2,592
I prefer [SlickEdit](http://www.slickedit.com/) for my IDE but the only way I can get it to update the tag files to incorporate code changes is to recreate the project and/or run start a re-tag manually. Is there a way to setup Slick Edit so that it automatically incorporates changes in the code base that happen after ...
Can SlickEdit automatically update its tag files?
CC BY-SA 3.0
0
2008-08-26T18:54:48.860
2012-04-25T21:22:51.547
2012-04-25T21:22:51.547
1,332,690
3,022
[ "ide", "slickedit" ]
28,848
2
null
26,148
0
null
> Good suggestions, but rest assured, we have tried all of the usual troubleshooting. What I'm hoping is that this is a .NET issue that someone might know about, that we can work on solving. My feeling is that no matter how bizarre the underlying cause, the usual troubleshooting steps are your best bet for locating th...
null
CC BY-SA 2.5
null
2008-08-26T18:57:56.390
2008-08-26T18:57:56.390
null
null
1,990
null
28,851
2
null
1,644
6
null
If you're interested in Linux, [Linux Action Show](http://www.linuxactionshow.com/) is a wonderful podcast ! It's about Linux news, distributions and softwares releases and also Linux based hardware testing (like drobo, Amazon Kindle and so on). It's very good quality and the hosts, Brian and Chris, sounds amazing. I...
null
CC BY-SA 2.5
null
2008-08-26T18:58:16.077
2009-05-27T19:02:16.487
2009-05-27T19:02:16.487
4,596
3,122
null
28,853
2
null
28,840
1
null
Sometimes the easiest way to get input from people is to force it out of them. My company used SCRUM on a project, and found very quickly that people tend to keep to themselves when they already know what they're doing. We ended up organizing weekly meetings where team members were required to display something that ...
null
CC BY-SA 2.5
null
2008-08-26T18:58:52.923
2008-08-26T18:58:52.923
null
null
3,018
null
28,847
2
null
22,309
3
null
IDA Pro will definitely do ARM disassembly. And they (Datarescue) once arranged me a licence at about 11PM local time, so I like to recommend them... I see from [http://www.datarescue.com/idabase/](http://www.datarescue.com/idabase/) that there's been some rearrangement of the company, but I guess it's still a good p...
null
CC BY-SA 2.5
null
2008-08-26T18:57:33.580
2008-08-26T18:57:33.580
null
null
987
null
28,855
2
null
28,817
0
null
I don't know of any tool that can help you, but if you are writing your own, I can save you from one headace: Directories in CVS cannot be tagget. Only the files within them have tags (and that is what determines what is checked out when you check out a directory on a specific tag).
null
CC BY-SA 2.5
null
2008-08-26T18:59:22.330
2008-08-26T18:59:22.330
null
null
3,102
null
28,850
2
null
28,826
8
null
The idea is that designers will work in Expression Design (to design vector artwork) and Expression Blend (to build and style XAML interactions, as well as to define timeline based animations and interactions). Developers will work on the application in Visual Studio. Visual Studio includes very basic XAML editing cap...
null
CC BY-SA 2.5
null
2008-08-26T18:58:15.343
2008-08-26T18:58:15.343
null
null
5
null
28,844
2
null
28,826
18
null
Expression Studio is basically a design studio. It consists of a bunch of design software that Microsoft has bought for the most part. The audience is designers, not developers. The gist of the software is that Expression Blend enables designers and programmers to work seamlessly together in letting the designer create...
null
CC BY-SA 2.5
null
2008-08-26T18:54:56.520
2008-09-24T01:09:11.417
2008-09-24T01:09:11.417
234
1,968
null
28,856
2
null
28,832
2
null
The finalize method is never invoked more than once by a JVM for any given object. You shouldn't be relying on finalize anyway because there's no guarantee that it will be invoked. If you're calling finalize because you need to execute clean up code then better to put it into a separate method and make it explicit, e.g...
null
CC BY-SA 2.5
null
2008-08-26T18:59:31.907
2008-08-26T18:59:31.907
null
null
1,450
null
28,854
2
null
28,840
2
null
Have you tried working with your customer to define / formulate ? Using something like Fit to come up with these tests - would result in better specs as well as force the customer to think about what is really required. The icing on the cake is instant-doc-executable specs at the end of this process. That is of course...
null
CC BY-SA 2.5
null
2008-08-26T18:59:07.133
2008-08-26T19:05:03.250
2008-08-26T19:05:03.250
1,695
1,695
null
28,868
2
null
28,768
3
null
I have used SubSonic and EntitySpaces. Once you get the hang of them, I beleive they can save you time, but as complexity of your app and volume of data grow, you may outgrow these tools. You start to lose time trying to figure out if something like a performance issue is related to the ORM or to your code. So, to a...
null
CC BY-SA 2.5
null
2008-08-26T19:05:45.590
2008-08-26T19:05:45.590
null
null
1,865
null
28,859
2
null
28,716
5
null
I use APC because it was easy to install in windows and I'm developing on WAMP. Integrating APC into PHP6 was discussed here: [http://www.php.net/~derick/meeting-notes.html#add-an-opcode-cache-to-the-distribution-apc](http://www.php.net/~derick/meeting-notes.html#add-an-opcode-cache-to-the-distribution-apc) And ther...
null
CC BY-SA 2.5
null
2008-08-26T19:00:26.383
2008-08-26T19:00:26.383
null
null
2,926
null
28,863
2
null
1,644
5
null
[http://herdingcode.com/](http://herdingcode.com/)
null
CC BY-SA 2.5
null
2008-08-26T19:03:31.803
2008-08-26T19:03:31.803
null
null
1,782
null
28,839
1
28,873
null
4
2,556
I had been happily coding along on a decent sized solution (just over 13k LOC, 5 projects) which utilizes Linq to Sql for it's data access. All of sudden I performed a normal build and I received a sweet, sweet ambiguous message: I had not touched my data access layer for weeks and no adjustments had been made to t...
What causes Visual Studio to fail to load an assembly incorrectly?
CC BY-SA 3.0
null
2008-08-26T18:53:57.117
2013-01-29T14:45:38.150
2011-09-15T13:08:23.767
419
2,213
[ "visual-studio", "visual-studio-2008", "linq-to-sql" ]
28,858
1
null
null
44
14,058
Saw a post about hidden features in C# but not a lot of people have written linq/lambdas example so... I wonder... > What's the coolest (as in the most elegant) use of the C# LINQ and/or Lambdas/anonymous delegates you have ever saw/written? Bonus if it has went into production too!
Coolest C# LINQ/Lambdas trick you've ever pulled?
CC BY-SA 2.5
0
2008-08-26T19:00:22.357
2014-08-05T13:53:26.383
2009-08-18T15:42:02.393
3,055
3,055
[ "c#", "linq", "functional-programming", "lambda" ]
28,867
2
null
28,858
27
null
The [LINQ Raytracer](http://blogs.msdn.com/lukeh/archive/2007/10/01/taking-linq-to-objects-to-extremes-a-fully-linqified-raytracer.aspx) certainly tops my list =) I'm not quite sure if qualifies as elegant but it is most certainly the coolest linq-expression I've ever seen! Oh, and just to be extremely clear; I did ...
null
CC BY-SA 2.5
null
2008-08-26T19:04:51.973
2008-08-26T19:11:17.947
2008-08-26T19:11:17.947
2,114
2,114
null
28,873
2
null
28,839
1
null
TBH, I have had a couple of instances like this where files "seemed to go crazy".. However, upon investigation it has appeared that the files have changed in some way, shape or form.. (e.g. sometimes changes can be made to the file by inadvertantly changing a property somewhere that unrelated). I think there are too ...
null
CC BY-SA 2.5
null
2008-08-26T19:11:59.350
2008-08-26T19:11:59.350
null
null
832
null
28,874
2
null
28,708
0
null
OK, sorry that didn't work... I am no expert on ASP.NET impersonation, I tend to use app pools which I don't think you can do on W2K Have you tried writing a tiny little test app which does the same query, and then running that as various users? I am reluctant to post a chunk of MS framework code here, but you c...
null
CC BY-SA 2.5
null
2008-08-26T19:12:07.760
2008-08-26T19:12:07.760
null
null
987
null
28,880
2
null
28,578
0
null
The problem is I'm worried about breaking the build in the meantime while I'm moving folders in StarTeam. I suppose the only way to avoid that is to be ready to upload updated project files as soon as I move things around in StarTeam and do it as quickly as possible.
null
CC BY-SA 2.5
null
2008-08-26T19:14:16.287
2008-08-26T19:14:16.287
null
null
327
null
28,881
1
28,903
null
17
7,803
Using the same command with the same input produces different results on different machines. How do I fix that?
Why doesn't **sort** sort the same on every machine?
CC BY-SA 2.5
0
2008-08-26T19:15:47.267
2020-10-23T16:49:52.757
2008-09-16T00:07:26.087
1,438
1,438
[ "bash", "unix", "sorting", "ksh" ]
28,882
2
null
28,877
1
null
this is because if the data you insert is not in the order of the index, SQL will have to split pages to make room for additional rows to keep them together logically
null
CC BY-SA 2.5
null
2008-08-26T19:16:28.747
2008-08-26T19:16:28.747
null
null
740
null
28,871
2
null
28,577
2
null
You should store the current language somewhere (in a [singleton](http://www.yoda.arachsys.com/csharp/singleton.html), for instance) and in the product.Name property use the language setting to get the correct string. This way you only have to write the language specific code once for each field rather than thinking a...
null
CC BY-SA 2.5
null
2008-08-26T19:08:53.837
2008-08-26T19:08:53.837
null
null
327
null
28,876
2
null
3,088
1
null
I don't know for sure what will be the best for your brother, but I know I started with python. I've been playing various games from a very early age and wanted to make my own, so my uncle introduced me to python with the [pygame](http://www.pygame.org/) library. It has many tutorials and makes it all easy (WAY easier ...
null
CC BY-SA 2.5
null
2008-08-26T19:12:37.413
2008-08-26T19:12:37.413
null
null
3,119
null
28,884
2
null
28,877
3
null
You should NEVER EVER create an index on an empty table if you are going to massively load it right afterwards. Indexes have to be maintained as the data on the table changes, so imagine as if for every insert on the table the index was being recalculated (which is an expensive operation). Load the table first and crea...
null
CC BY-SA 2.5
null
2008-08-26T19:17:34.173
2011-03-25T21:26:54.217
2011-03-25T21:26:54.217
2,697
2,697
null
28,891
2
null
7,864
3
null
> The question is about the Active Record design pattern. Not an orm Tool. The original question is tagged with rails and refers to Twitter which is built in Ruby on Rails. The ActiveRecord framework within Rails is an implementation of Fowler's Active Record design pattern.
null
CC BY-SA 2.5
null
2008-08-26T19:19:25.370
2008-08-26T19:19:25.370
null
null
1,450
null
28,878
1
null
null
17
30,399
I'm translating my C# code for YouTube video comments into PHP. In order to properly nest comment replies, I need to re-arrange XML nodes. In PHP I'm using DOMDocument and DOMXPath which closely corresponds to C# XmlDocument. I've gotten pretty far in my translation but now I'm stuck on getting the parent node of a DOM...
Determine Parent Node Of DOMElement
CC BY-SA 4.0
0
2008-08-26T19:14:01.170
2019-01-18T11:15:18.677
2019-01-18T11:15:18.677
567,854
2,601
[ "php", "xml", "dom" ]
28,857
2
null
28,713
3
null
This is a CSS question: the width includes the border and padding widths, which have different defaults for INPUT and TEXTAREA in different browsers, so make those the same as well: ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>width</title> <style ...
null
CC BY-SA 2.5
null
2008-08-26T18:59:54.980
2008-08-26T18:59:54.980
null
null
2,670
null
28,888
2
null
28,877
2
null
After performing large data manipulation operations, you frequently have to update the underlying indexes. You can do that by using the UPDATE STATISTICS [table] statement. The other option is to drop and recreate the index which, if you are doing large data insertions, will likely perform the inserts much faster. Y...
null
CC BY-SA 2.5
null
2008-08-26T19:19:15.463
2008-08-26T19:19:15.463
null
null
312
null
28,892
2
null
28,877
42
null
If you create a clustered index, it affects the way the data is physically ordered on the disk. It's better to add the index after the fact and let the database engine reorder the rows when it knows how the data is distributed. For example, let's say you needed to build a brick wall with numbered bricks so that those ...
null
CC BY-SA 2.5
null
2008-08-26T19:19:27.710
2008-08-26T19:24:49.477
2008-08-26T19:24:49.477
5
5
null
28,894
1
28,947
null
19
11,838
For years I have been using the DEBUG compiler constant in VB.NET to write messages to the console. I've also been using System.Diagnostics.Debug.Write in similar fashion. It was always my understanding that when RELEASE was used as the build option, that all of these statements were left out by the compiler, freeing...
.NET Compiler -- DEBUG vs. RELEASE
CC BY-SA 2.5
0
2008-08-26T19:20:09.470
2010-03-16T15:27:43.927
null
null
3,059
[ ".net", "compiler-construction", "debugging" ]
28,897
2
null
28,877
6
null
It's because the database server has to do calculations each and every time you insert a new row. Basically, you end up reindexing the table each time. It doesn't seem like a very expensive operation, and it's not, but when you do that many of them together, you start to see the impact. That's why you usually want t...
null
CC BY-SA 2.5
null
2008-08-26T19:20:57.800
2008-08-26T19:20:57.800
null
null
2,363
null
28,901
2
null
28,881
3
null
This is probably due to different settings of the [locale environment variables](http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.nls/doc/nlsgdrf/locale_env.htm). `sort` will use these settings to determine how to compare strings. By setting these environment variables the way you want befo...
null
CC BY-SA 2.5
null
2008-08-26T19:21:42.977
2008-08-26T19:21:42.977
null
null
893
null
28,893
2
null
28,881
5
null
This can be the result of locale differences: ``` $ echo 'CO2_ CO_' | env LC_ALL=C sort CO2_ CO_ $ echo 'CO2_ CO_' | env LC_ALL=en_US sort CO_ CO2_ ``` Setting the LC_ALL environment variable to the same value should correct the problem.
null
CC BY-SA 2.5
null
2008-08-26T19:19:31.157
2008-08-26T19:19:31.157
null
null
1,438
null
28,877
1
null
null
16
14,757
I have a sproc that puts 750K records into a temp table through a query as one of its first actions. If I create indexes on the temp table before filling it, the item takes about twice as long to run compared to when I index after filling the table. (The index is an integer in a single column, the table being indexed...
Why does SQL Server work faster when you index a table after filling it?
CC BY-SA 2.5
null
2008-08-26T19:13:14.917
2022-12-07T09:14:50.290
2008-08-26T21:51:50.980
1,797
1,327
[ "sql-server", "performance", "indexing" ]
28,902
2
null
28,877
1
null
This due to the fact that when SQL Server indexes table with data it is able to produce exact statistics of values in indexed column. At some moments SQL Server will recalculate statistics, but when you perform massive inserts the distribution of values may change after the statistics was calculated last time. The fac...
null
CC BY-SA 2.5
null
2008-08-26T19:21:50.373
2008-08-26T19:21:50.373
null
null
2,586
null
28,896
1
28,917
null
10
783
I'm currently designing a program that will involve some physics (nothing too fancy, a few balls crashing to each other) What's the most exact datatype I can use to represent position (without a feeling of discrete jumps) in c#? Also, what's the smallest ammount of time I can get between t and t+1? One tick? EDIT: C...
Datatypes for physics
CC BY-SA 2.5
0
2008-08-26T19:20:35.493
2010-05-20T22:19:37.000
2009-02-24T18:23:59.887
6,688
1,782
[ "c#", "types", "physics" ]
28,885
2
null
27,492
2
null
In general, avoid allocating from the heap unless you have to. If you have to, use reference counting for objects that are long-lived and need to be shared between diverse parts of your code. Sometimes you need to allocate objects dynamically, but they will only be used within a certain span of time. For example, in a...
null
CC BY-SA 2.5
null
2008-08-26T19:18:03.237
2008-08-26T19:18:03.237
null
null
3,121
null
28,908
2
null
28,708
0
null
I can enumerate the process (ie, the GetProcessById function works), and we have other code that gets the EXE name and other bits of information. I will give the test app a try. I'm also going to attempt to use WMI to get this information if I can't get the C# implementation working properly in short order (this is no...
null
CC BY-SA 2.5
null
2008-08-26T19:23:44.017
2008-08-26T19:23:44.017
null
null
1,975,282
null
28,904
2
null
28,877
3
null
Think of it this way. > Given unorderedList = {5, 1,3} orderedList = {1,3,5}add 2 to both lists. unorderedList = {5, 1,3,2} orderedList = {1,2,3,5} What list do you think is easier to add to? Btw ordering your input before load will give you a boost.
null
CC BY-SA 2.5
null
2008-08-26T19:22:08.873
2008-08-26T19:22:08.873
2020-06-20T09:12:55.060
-1
1,293
null
28,907
2
null
28,894
-6
null
In my experience choosing between Debug and Release in VB.NET makes no difference. You may add custom actions to both configuration, but by default I think they are the same. Using Release will certainly not remove the System.Diagnostics.Debug.Write statements.
null
CC BY-SA 2.5
null
2008-08-26T19:23:42.957
2008-08-26T19:23:42.957
null
null
1,508
null
28,905
2
null
28,877
1
null
If you have an index on a table, as you add data to the table SQL Server will have to re-order the table to make room in the appropriate place for the new records. If you're adding a lot of data, it will have to reorder it over and over again. By creating an index only after the data is loaded, the re-order only need...
null
CC BY-SA 2.5
null
2008-08-26T19:22:14.553
2008-08-26T19:22:14.553
null
null
3,043
null
28,913
2
null
28,894
1
null
What I do is encapsulate the call to Debug in my own class and add a precompiler directive ``` public void Debug(string s) { #if DEBUG System.Diagnostics.Debug(...); #endif } ```
null
CC BY-SA 2.5
null
2008-08-26T19:25:58.333
2008-08-26T19:25:58.333
null
null
1,782
null
28,906
2
null
28,832
30
null
According to this simple test program, the JVM will still make its call to finalize() even if you explicitly called it: ``` private static class Blah { public void finalize() { System.out.println("finalizing!"); } } private static void f() throws Throwable { Blah blah = new Blah(); blah.finalize(); } public ...
null
CC BY-SA 2.5
null
2008-08-26T19:23:06.483
2008-08-26T19:23:06.483
null
null
1,471
null
28,883
2
null
28,858
1
null
I was trying to come up with a cool way to build a navigation control for a website I was building. I wanted to use regular HTML unordered list elements (employing the standard [CSS "Sucker Fish" look](http://www.alistapart.com/articles/dropdowns)) with a top-navigation mouse-over effect that reveals the drop down item...
null
CC BY-SA 2.5
null
2008-08-26T19:16:43.800
2008-08-26T19:29:39.650
2008-08-26T19:29:39.667
2,213
2,213
null
28,918
2
null
28,896
0
null
I think you should be able to get away with the Decimal data type with no problem. It has the most precision available. However, the double data type should be just fine. Yes, a tick is the smallest I'm aware of (using the System.Diagnostics.Stopwatch class).
null
CC BY-SA 2.5
null
2008-08-26T19:28:22.040
2008-08-26T19:28:22.040
null
null
2,982
null
28,889
2
null
26,195
1
null
@Greg Hewgill: thanks for the script! I had a couple of issues with it though, so here's what I'd change: line 21: ``` < map <silent> <C-d> :call <SID>scmToggle()<CR> -- > map <silent> <C-h> :call <SID>scmToggle()<CR> ``` I use - for page-down (too lazy to move all that way over to PdDn), so had to switch to Ctrl-h...
null
CC BY-SA 3.0
null
2008-08-26T19:19:19.660
2015-08-20T22:17:52.987
2015-08-20T22:17:52.987
7,226
24
null
28,914
2
null
28,896
0
null
I'm not sure I understand your last question, could you please clarify? Edit: I might still not understand, but you can use any type you want (for example, doubles) to represent time (if what you actually want is to represent the discretization of time for your physics problem, in which case the tick is irrelevant). ...
null
CC BY-SA 2.5
null
2008-08-26T19:26:42.670
2008-08-26T19:34:05.537
2008-08-26T19:34:05.537
2,638
2,638
null
28,915
2
null
26,719
1
null
I know Xenocode can merge assemblies into one but I am not sure if it will internalize other non-primary assemblies. I have found the /internalize switch in ILMerge that "internalize" all assemblies except the primary one. Pretty useful!
null
CC BY-SA 2.5
null
2008-08-26T19:27:04.167
2008-08-26T19:27:04.167
null
null
1,508
null
28,922
1
28,924
null
3
216
I have an SQL server database that I am querying and I only want to get the information when a specific row is null. I used a where statement such as: ``` WHERE database.foobar = NULL ``` and it does not return anything. However, I know that there is at least one result because I created an instance in the database ...
SQLServer Get Results Where Value Is Null
CC BY-SA 4.0
0
2008-08-26T19:32:20.783
2019-03-23T13:06:51.270
2019-03-23T13:06:51.270
7,338,544
2,486
[ "sql", "sql-server", "oracle" ]
28,917
2
null
28,896
9
null
In .Net a `decimal` will be the most precise datatype that you could use for position. I would just write a class for the position: ``` public class Position { decimal x; decimal y; decimal z; } ``` As for time, your processor can't give you anything smaller than one tick. Sounds like an fun project! ...
null
CC BY-SA 2.5
null
2008-08-26T19:27:49.203
2008-08-26T19:27:49.203
null
null
2,363
null
28,920
2
null
28,858
4
null
[http://igoro.com/archive/extended-linq-additional-operators-for-linq-to-objects/](http://igoro.com/archive/extended-linq-additional-operators-for-linq-to-objects/) [http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/](http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/)
null
CC BY-SA 2.5
null
2008-08-26T19:30:15.313
2008-08-26T19:30:15.313
null
null
2,437
null
28,903
2
null
28,881
24
null
The [man-page](http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/sort.1.html) on OS X says: > ******* WARNING ******* The locale specified by the environment affects sort order. Set LC_ALL=C to get the traditional sort order that uses native byte values. which might explain things. If some of yo...
null
CC BY-SA 4.0
null
2008-08-26T19:21:56.177
2020-10-23T16:49:52.757
2020-10-23T16:49:52.757
2,430,549
2,010
null
28,924
2
null
28,922
6
null
Correct syntax is WHERE database.foobar IS NULL. See [http://msdn.microsoft.com/en-us/library/ms188795.aspx](http://msdn.microsoft.com/en-us/library/ms188795.aspx) for more info
null
CC BY-SA 2.5
null
2008-08-26T19:33:04.277
2008-08-26T19:33:04.277
null
null
2,688
null
28,919
2
null
28,756
17
null
The solution depends on why you don't want to enumerate through the collection. If it's because enumerating the collection might be slow, then there is no solution that will be faster. You might want to consider using an ICollection instead if possible. Unless the enumeration is remarkably slow (e.g. it reads items fro...
null
CC BY-SA 2.5
null
2008-08-26T19:29:11.073
2008-08-26T19:52:41.640
2020-06-20T09:12:55.060
-1
214
null
28,931
2
null
28,896
0
null
For a simulation you're probably better off using a decimal/double (same type as position) for a dimensionless time, then converting it from/to something meaningful on input/output. Otherwise you'll be performing a ton of cast operations when you move things around. You'll get arbitrary precision this way, too, becau...
null
CC BY-SA 2.5
null
2008-08-26T19:35:47.763
2008-08-26T19:35:47.763
null
null
1,807
null
28,930
2
null
28,922
2
null
Read [Testing for Null Values](http://wiki.lessthandot.com/index.php/SQL_Server_programming_Hacks_-_Testing_for_Null_Values), you need IS NULL not = NULL
null
CC BY-SA 2.5
null
2008-08-26T19:35:35.143
2008-08-26T19:35:35.143
null
null
740
null
28,929
2
null
28,922
1
null
Is it an SQL Server database? If so, use `IS NULL` instead of making the comparison ([MSDN](http://msdn.microsoft.com/en-us/library/aa933227(SQL.80).aspx)).
null
CC BY-SA 2.5
null
2008-08-26T19:35:31.727
2008-08-26T19:35:31.727
null
null
2,841
null
28,933
2
null
28,820
2
null
The closest thing to a scripting environment on Windows Mobile is the Configuration Service Provider interface. While it is not a scripting language , it does allow one to do a lot of the same type of things such as modify registry settings, copy and delete files and directories, install and uninstall applications and...
null
CC BY-SA 2.5
null
2008-08-26T19:36:21.710
2008-08-26T19:36:21.710
null
null
1,954
null
28,935
2
null
25,661
7
null
I've never attempted it myself, but hearing plenty about other people who've tried, it's not a road you want to go down. There is the alternative of putting the gui in pygame itself. There are plenty of gui toolkits built specifically for pygame that you could use. Most of them are rather unfinished, but there are 2 b...
null
CC BY-SA 2.5
null
2008-08-26T19:36:24.877
2008-08-26T19:36:24.877
null
null
3,119
null
28,925
2
null
28,757
-1
null
I would agree with [Kibbee](https://stackoverflow.com/users/1862/kibbee). I wanted to jump in with SVN so I installed the daemon and had everything up and running in no time. It took me longer to get all the commands down for adding and committing files than the installation.
null
CC BY-SA 2.5
null
2008-08-26T19:33:06.617
2008-08-26T19:33:06.617
2017-05-23T12:33:26.220
-1
2,863
null
28,934
2
null
28,894
1
null
Using the DEBUG compiler symbol will, like you said, actually omit the code from the assembly. I believe that System.Diagnostics.Debug.Write will always output to an attached debugger, even if you've built in Release mode. Per the [MSDN article](http://msdn.microsoft.com/en-us/library/system.diagnostics.debug.write.a...
null
CC BY-SA 2.5
null
2008-08-26T19:36:24.393
2008-08-26T19:44:23.577
2008-08-26T19:44:23.577
2,773
2,773
null
28,932
1
3,541,878
null
174
114,821
What is the the best JavaScript compressor available? I'm looking for a tool that: - - -
Best JavaScript compressor
CC BY-SA 2.5
0
2008-08-26T19:36:20.273
2016-05-24T22:41:41.463
2011-01-31T09:14:30.147
63,550
1,363
[ "javascript", "compression" ]
28,939
2
null
28,932
3
null
[JSMin](http://crockford.com/javascript/jsmin) is another one.
null
CC BY-SA 2.5
null
2008-08-26T19:41:56.253
2008-08-26T19:41:56.253
null
null
305
null
28,937
2
null
28,716
6
null
I have run several [benchmarks with eAcclerator, APC, XCache](http://blogs.interdose.com/dominik/2008/04/11/benchmarking-php-eaccelerator-und-andere-opcode-caches/), and Zend Optimizer (even though Zend is an optimizer, not a cache). [Benchmark Results http://blogs.interdose.com/dominik/wp-content/uploads/2008/04/op...
null
CC BY-SA 3.0
null
2008-08-26T19:37:52.440
2015-06-20T21:50:57.320
2015-06-20T21:50:57.320
2,632,129
999
null
28,928
2
null
15,681
1
null
Xcode is the standard for editing source files, though you can use another editor in conjunction with the command line xcodebuild tool if you really want. I used Vim for all my Cocoa editing before finally giving in to Xcode. It's not the greatest IDE in the world, but it gets the job done, and the recent 3.x release...
null
CC BY-SA 2.5
null
2008-08-26T19:34:51.497
2008-08-26T19:34:51.497
null
null
null
null
28,941
1
28,955
null
2
535
Here is the scenario: I'm writing an app that will watch for any changes in a specific directory. This directory will be flooded with thousands of files a minute each with an "almost" unique GUID. The file format is this: GUID.dat where GUID == xxxxxxxxxxxxxxxxxxxxxxxxxxxxx (the internal contents aren't relevant, bu...
Best architecture for handling file system changes?
CC BY-SA 3.0
null
2008-08-26T19:42:47.483
2017-08-04T14:41:55.507
2017-08-04T14:41:55.507
1,836,618
750
[ ".net", "architecture", "concurrency", "filesystemwatcher" ]
28,944
2
null
28,878
27
null
[DOMElement](http://no2.php.net/manual/en/class.domelement.php) is a subclass of [DOMNode](http://no2.php.net/manual/en/class.domnode.php), so it does have parent_node property. Just use $domNode->parentNode; to find the parent node. In your example, the parent node of $importnode is null, because it has been imported...
null
CC BY-SA 2.5
null
2008-08-26T19:44:21.737
2008-08-26T19:44:21.737
null
null
1,585
null
28,942
2
null
28,932
5
null
Try [JSMin](http://www.crockford.com/javascript/jsmin.html), got C#, Java, C and other ports and readily available too.
null
CC BY-SA 2.5
null
2008-08-26T19:42:48.153
2008-08-26T19:42:48.153
null
null
3,055
null
28,946
1
28,963
null
3
3,704
Hey everyone, I'm using Virtual PC and working with a virtual hard disk (*.vhd) that is only sized at 8.2 GB. I would like to double the size to something like 16-20GB. I see options for compacting the VHD but nothing to expand it. It's set to "dynamically expand" but I'm installing some software and it doesn't seem to...
Expanding Virtual Disk
CC BY-SA 2.5
0
2008-08-26T19:45:49.283
2012-08-22T17:59:01.503
2009-08-05T02:21:06.213
6,268
64
[ "virtualization", "virtual-pc", "vhd" ]
28,947
2
null
28,894
22
null
The preferred method is to actually use the conditional attribute to wrap your debug calls, not use the compiler directives. #ifs can get tricky and can lead to weird build problems. An example of using a conditional attribute is as follows (in C#, but works in VB.NET too): ``` [ Conditional("Debug") ] private void ...
null
CC BY-SA 2.5
null
2008-08-26T19:45:54.900
2008-08-26T19:45:54.900
null
null
2,848
null
28,953
2
null
28,932
1
null
[Here's the source code](http://blog.madskristensen.dk/post/Optimize-WebResourceaxd-and-ScriptResourceaxd.aspx) of an HttpHandler which does that, maybe it'll help you
null
CC BY-SA 2.5
null
2008-08-26T19:48:33.770
2008-08-26T19:48:33.770
null
null
1,782
null
28,949
1
29,038
null
28
15,193
After reading [this question](https://stackoverflow.com/questions/28832/java-and-manually-executing-finalize), I was reminded of when I was taught Java and told never to call finalize() or run the garbage collector because "it's a big black box that you never need to worry about". Can someone boil the reasoning for thi...
Why do you not explicitly call finalize() or start the garbage collector?
CC BY-SA 2.5
0
2008-08-26T19:46:46.367
2018-10-30T11:09:32.920
2017-05-23T12:13:37.900
-1
572
[ "java", "garbage-collection" ]
28,938
2
null
28,932
43
null
[YUI Compressor](http://developer.yahoo.com/yui/compressor/) is the way to go. It has a great compression rate, is well tested and is in use among many top sites, and, well, personally recommended by me. I've used it for my projects without a single JavaScript error or hiccup. And it has nice documentation. CSS com...
null
CC BY-SA 3.0
null
2008-08-26T19:39:44.010
2011-08-14T23:39:34.730
2011-08-14T23:39:34.730
49,485
1,335
null
28,955
2
null
28,941
3
null
A couple of things that I have in my head: - - - Sorry no answer as yet, just would like to know more about the problem :)
null
CC BY-SA 2.5
null
2008-08-26T19:48:48.107
2008-08-26T19:48:48.107
null
null
832
null
28,957
2
null
28,946
0
null
Never worked with Virtual PC but from other virtualization software I know I guess that dynamically expand means that initially the .vhd file will take less space in the HD than the specified and will dynamically grow as you keep installing programs or adding files into the virtual drive UP TO the specified size. For ...
null
CC BY-SA 2.5
null
2008-08-26T19:49:29.963
2008-08-26T19:49:29.963
null
null
2,697
null
28,952
1
488,509
null
31
73,714
Is it possible to get a breakdown of CPU utilization ? I'm ideally looking for a Task Manager type interface for SQL server, but instead of looking at the CPU utilization of each PID (like `taskmgr`) or each SPID (like `spwho2k5`), I want to view the total CPU utilization of each database. Assume a single SQL instance...
CPU utilization by database?
CC BY-SA 3.0
0
2008-08-26T19:48:09.437
2017-11-27T17:29:18.890
2017-11-27T17:29:18.890
1,387,817
1,690
[ "sql-server", "monitoring" ]
28,961
1
322,393
null
8
1,099
I have a medium sized application that runs as a .net web-service which I do not control, and I want to create a loose pythonic API above it to enable easy scripting. I wanted to know what is the best/most practical solution for using web-services in python. Edit: I need to consume a complex soap WS and I have no con...
What's the best way to use web services in python?
CC BY-SA 2.5
0
2008-08-26T19:49:54.517
2015-11-02T06:26:22.957
2009-03-27T02:58:15.000
76,310
3,117
[ "python", "web-services", "soap" ]
28,960
2
null
28,949
0
null
The GC does a lot of optimization on when to properly finalize things. So unless you're familiar with how the GC actually works and how it tags generations, manually calling finalize or start GC'ing will probably hurt performance than help.
null
CC BY-SA 2.5
null
2008-08-26T19:49:48.620
2008-08-26T19:56:36.840
2008-08-26T19:56:36.840
3,055
3,055
null
28,956
2
null
28,708
2
null
Process of .Net 1.1 uses the Performance Counters to get the information. Either they are disabled or the user does not have administrative rights. Making sure the Performance Counters are enabled and the user is an administrator should make your code work. Actually the "Performance Counter Users Group" should enough....
null
CC BY-SA 2.5
null
2008-08-26T19:49:18.293
2008-08-26T20:00:36.597
2008-08-26T20:00:36.597
1,242
1,242
null
28,963
2
null
28,946
1
null
[VHD Resizer](http://vmtoolkit.com/files/folders/converters/entry87.aspx)
null
CC BY-SA 2.5
null
2008-08-26T19:50:44.640
2008-08-26T19:50:44.640
null
null
2,134
null
28,950
1
28,970
null
10
9,721
Does anyone have links to documentation or guides on making the decision between REST vs. SOAP? I understand both of these but am looking for some references on the key decision points, eg, security, which may make you lean towards one or the other.
Guide to choosing between REST vs SOAP services?
CC BY-SA 2.5
0
2008-08-26T19:46:56.553
2017-07-10T02:17:04.043
null
null
636
[ "architecture", "rest", "soap" ]
28,962
2
null
28,894
2
null
I read the article too, and it led me to believe that when DEBUG was not defined, that the ConditionalAttribute declared on System.Debug functions would cause the compiler to leave out this code completely. I assume the same thing to be true for TRACE. That is, the System.Diagnostics.Debug functions must have Conditi...
null
CC BY-SA 2.5
null
2008-08-26T19:50:28.523
2008-08-26T19:50:28.523
null
null
3,059
null
28,969
2
null
28,941
2
null
I suggest you take a look at the [SHChangeNotify](http://msdn.microsoft.com/en-us/library/bb762118(VS.85).aspx) API call, which can notify you of all kinds of shell events. To monitor file creation and deletion activity, you may want to pay special attention to the SHCNE_CREATE and SHCNE_DELETE arguments.
null
CC BY-SA 2.5
null
2008-08-26T19:52:57.833
2008-08-26T19:52:57.833
null
null
672
null
28,967
2
null
28,965
1
null
SQL injection
null
CC BY-SA 2.5
null
2008-08-26T19:52:18.693
2008-08-26T19:52:18.693
null
null
3,018
null
28,972
2
null
28,965
1
null
[XSS](http://en.wikipedia.org/wiki/Cross-site_scripting) (Cross Site Scripting) Attacks
null
CC BY-SA 2.5
null
2008-08-26T19:54:12.447
2008-08-26T19:54:12.447
null
null
1,992
null
28,965
1
29,084
null
17
1,927
Watching SO come online has been quite an education for me. I'd like to make a checklist of various vunerabilities and exploits used against web sites, and what programming techniques can be used to defend against them. - - - - - - [sockpuppeting](http://en.wikipedia.org/wiki/Internet_sock_puppet)[meatpuppeting](http...
Checklist for Web Site Programming Vulnerabilities
CC BY-SA 3.0
0
2008-08-26T19:51:32.187
2015-07-14T07:49:37.057
2015-07-14T07:49:37.057
3,218,692
116
[ "security", "defensive-programming" ]
28,954
2
null
28,932
126
null
Revisiting this question a few years later, [UglifyJS](http://github.com/mishoo/UglifyJS), seems to be the best option as of now. As stated below, it runs on the NodeJS platform, but can be easily modified to run on any JavaScript engine. --- Old answer below--- Google released [Closure Compiler](https://github.com/...
null
CC BY-SA 3.0
null
2008-08-26T19:48:34.927
2016-05-24T22:41:41.463
2017-05-23T11:46:22.797
-1
238
null
28,974
2
null
28,952
15
null
SQL Server (starting with 2000) will install performance counters (viewable from Performance Monitor or Perfmon). One of the counter categories (from a SQL Server 2005 install is:) - SQLServer:Databases With one instance for each database. The counters available however do not provide a CPU % Utilization counter or...
null
CC BY-SA 2.5
null
2008-08-26T19:55:22.553
2008-08-26T19:55:22.553
null
null
1,341
null
28,970
2
null
28,950
6
null
[Google first hit](http://www.prescod.net/rest/rest_vs_soap_overview/) seems pretty comprehensive. I think the problem here is there are too many advocates of one or the other, may be better of googling and getting more of a handle of the pro's/con's yourself and making your own decision. I know that sounds kinda lam...
null
CC BY-SA 2.5
null
2008-08-26T19:53:04.103
2008-08-26T19:53:04.103
null
null
832
null
28,976
2
null
28,949
1
null
Assuming finalizers are similar to their .NET namesake then you only really need to call these when you have resources such as file handles that can leak. Most of the time your objects don't have these references so they don't need to be called. It's bad to try to collect the garbage because it's not really your garba...
null
CC BY-SA 2.5
null
2008-08-26T19:55:52.333
2008-08-26T19:55:52.333
null
null
636
null
28,966
2
null
28,922
3
null
Comparison to NULL will be false every time. You want to use IS NULL instead. ``` x = NULL -- always false x <> NULL -- always false x IS NULL -- these do what you want x IS NOT NULL ```
null
CC BY-SA 2.5
null
2008-08-26T19:51:41.907
2008-08-26T23:34:53.853
2008-08-26T23:34:53.853
116
116
null
28,984
2
null
3,057
0
null
I've actually done a small test like this in python on a website I maintain and found that they are almost equivalent in speed, with the procedural approach winning by something like ten-thousandths of a second, but that the OO code was so significantly cleaner I didn't continue the exercise any longer than one iterati...
null
CC BY-SA 2.5
null
2008-08-26T20:01:09.310
2008-08-26T20:01:09.310
null
null
3,119
null
28,978
2
null
28,965
2
null
Obviously test every field for vulnerabilities: - `mysql_real_escape_string`- - - Search for infinite loops (the only indirect thing (if a lot of people found it accidentally) that could kill a server really).
null
CC BY-SA 2.5
null
2008-08-26T19:56:27.857
2008-08-26T19:56:27.857
null
null
2,025
null