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
30,164
2
null
30,145
-1
null
From a security perspective, I know that it is possible to spoof a MAC, though I am not entirely sure how difficult it is or what it entails. Otherwise, if the customers don't have easy access to the hardware or the OS, you should be fairly safe doing this... probably best to put a warning sticker on saying that messi...
null
CC BY-SA 2.5
null
2008-08-27T13:51:38.147
2008-08-27T13:51:38.147
null
null
3,044
null
30,169
2
null
30,148
3
null
All versions of the .Net Framework from 2.0 onwards (i.e. 3.0 and 3.5) use exactly the same core framework files (i.e. the CLR, you'll notice there are no directories relating to 3.0 or 3.5 in the C:\Windows\Microsoft.Net\Framework directory) therefore you shouldn't worry too much about any performance issues. The Cor...
null
CC BY-SA 2.5
null
2008-08-27T13:53:46.207
2008-08-27T13:53:46.207
null
null
1,908
null
30,155
2
null
29,145
1
null
What you described is GORM. It is part of the [Grails](http://grails.org/) framework and is built to work with Hibernate (maybe JPA in the future). When I was first using Grails it seemed backwards. I was more comfortable with a Rails style workflow of making the tables and letting the framework generate scaffolding fr...
null
CC BY-SA 2.5
null
2008-08-27T13:48:38.357
2008-08-27T13:48:38.357
null
null
3,014
null
30,170
1
35,889,456
null
10
7,335
Are there any useful techniques for reducing the repetition of constants in a CSS file? (For example, a bunch of different selectors which should all apply the same colour, or the same font size)?
Avoiding repeated constants in CSS
CC BY-SA 2.5
0
2008-08-27T13:53:51.087
2022-04-11T21:52:01.327
2022-04-11T21:51:43.120
1,946,501
797
[ "html", "css", "css-selectors", "css-variables" ]
30,171
1
30,172
null
5
6,905
Help! I have an Axis web service that is being consumed by a C# application. Everything works great, except that arrays of long values always come across as [0,0,0,0] - the right length, but the values aren't deserialized. I have tried with other primitives (ints, doubles) and the same thing happens. What do I do? ...
Why won't .NET deserialize my primitive array from a web service?
CC BY-SA 2.5
0
2008-08-27T13:53:58.840
2009-06-10T20:27:10.547
2008-08-27T17:23:50.273
96
96
[ "java", ".net", "service", "primitive" ]
30,176
2
null
30,094
2
null
It depends on the complexity of your query. If you're retrieving the data once, then doing a table scan is faster. However, if you're going back to the table more than once for related information in the same query, then the index is faster. Another related strategy is to do the table scan, and put all the data in...
null
CC BY-SA 2.5
null
2008-08-27T13:56:16.620
2008-08-27T13:56:16.620
null
null
2,170
null
30,178
2
null
30,170
5
null
You should comma seperate each id or class for example: ``` h1,h2 { color: #fff; } ```
null
CC BY-SA 3.0
null
2008-08-27T13:56:59.443
2016-01-14T19:19:15.853
2016-01-14T19:19:15.853
2,678,454
1,469
null
30,175
2
null
5,428
1
null
> The original prefix was meant to be used to spot problems in equations, but has somehow devolved into making the code slightly easier to read since you don't have to go look for the variable declaration. With todays smart editors where you can simply hover over any variable to find the full type, and ...
null
CC BY-SA 2.5
null
2008-08-27T13:55:47.730
2008-08-27T13:55:47.730
null
null
3,234
null
30,166
2
null
29,030
0
null
I'm not using a custom "new form", so this might not apply. I added an event receiver to my custom content type and then do my custom code in the ItemAdded or ItemAdding events. This code fires when the event is added to a list. You can use the event receiver properties to get to the parent List, Web, and Site.
null
CC BY-SA 2.5
null
2008-08-27T13:52:34.010
2008-08-27T13:52:34.010
null
null
1,753
null
30,179
2
null
30,170
1
null
As far as I know, without programmatically generating the CSS file, there's no way to, say, define your favorite shade of blue (#E0EAF1) in one and only one spot. You could pretty easily write a computer program to generate the file. Execute a simple find-and-replace operation and then save as a .css file. Go from t...
null
CC BY-SA 3.0
null
2008-08-27T13:57:04.747
2016-01-14T20:02:13.480
2016-01-14T20:02:13.480
2,678,454
83
null
30,180
2
null
30,152
1
null
It may not include files that you normally wouldn't see. Or, the files may be there, but you may be unable to see them when reopening the .zip file in explorer, because they are hidden. You may go into Tools->Folder Options, go to the View tab, and select the radio button to view hidden files and folders.
null
CC BY-SA 2.5
null
2008-08-27T13:57:19.787
2008-08-27T13:57:19.787
null
null
1,862
null
30,177
2
null
30,170
0
null
You can use multiple inheritance in your html elements (e.g. `<div class="one two">`) but I'm not aware of a way of having constants in the CSS files themselves. This link (the first found when googling your question) seems to have a fairly indepth look at the issue: [http://icant.co.uk/articles/cssconstants/](http:/...
null
CC BY-SA 2.5
null
2008-08-27T13:56:35.717
2008-08-27T13:56:35.717
null
null
1,908
null
30,158
2
null
30,148
1
null
Apart from the target framework feature, you'll need to manually add a reference to System.Core.dll to utilise some of the latest features like Linq.
null
CC BY-SA 2.5
null
2008-08-27T13:49:17.543
2008-08-27T13:49:17.543
null
null
3,201
null
30,172
2
null
30,171
7
null
Here's what I ended up with. I have never found another solution out there for this, so if you have something better, by all means, contribute. First, the long array definition in the wsdl:types area: ``` <xsd:complexType name="ArrayOf_xsd_long"> <xsd:complexContent mixed="false"> <xsd:restriction base="so...
null
CC BY-SA 2.5
null
2008-08-27T13:54:06.453
2008-08-27T13:54:06.453
null
null
96
null
30,181
2
null
30,067
6
null
@Juan Manuel Did you ever work in classic ASP? When you had to program all of your own events and "viewstatish" items (like a dropdown recalling its selected value after form submission)? If so, then ASP.NET MVC will not feel that awkward off the bat. I would check out Rob Conery's Awesome Series "[MVC Storefront](htt...
null
CC BY-SA 2.5
null
2008-08-27T13:57:24.607
2008-08-27T19:48:33.327
2008-08-27T19:48:33.327
2,213
2,213
null
30,182
2
null
30,074
0
null
A write lock doesn't help if the file upload failed part way through and the sender hasn't tried resending (and relocking) the file yet.
null
CC BY-SA 2.5
null
2008-08-27T13:58:41.263
2008-08-27T13:58:41.263
null
null
1,755
null
30,163
2
null
30,058
32
null
Exactly. The code that you need to achieve this is something like that: ``` UIApplication *app = [UIApplication sharedApplication]; [app openURL:[NSURL URLWithString: @"http://maps.google.com/maps?q=London"]]; ``` since [as per the documentation](http://developer.apple.com/iphone/library/documentation/UIKit/Referenc...
null
CC BY-SA 3.0
null
2008-08-27T13:51:20.313
2011-06-15T16:37:22.480
2011-06-15T16:37:22.480
368,330
2,183
null
30,150
2
null
30,101
2
null
Also take a look at [Microsoft StyleCop](http://blogs.msdn.com/sourceanalysis/)
null
CC BY-SA 2.5
null
2008-08-27T13:47:06.020
2008-08-27T13:47:06.020
null
null
740
null
30,184
1
30,241
null
19
13,706
I am creating a small modal form that is used in Winforms application. It is basically a progress bar of sorts. But I would like the user to be able to click anywhere in the form and drag it to move it around on the desktop while it is still being displayed. How can I implement this behavior?
Winforms - Click/drag anywhere in the form to move it as if clicked in the form caption
CC BY-SA 2.5
0
2008-08-27T13:59:01.170
2020-03-22T14:15:03.687
2008-09-03T16:09:14.937
507
507
[ ".net", "winforms" ]
30,195
2
null
30,152
0
null
It looks like the Compressed Folder shell extension ignores directories (but not files) whose names begin with a dot, unless explicitly given as a parameter (i.e. selected for the Send To command). It's hard to find out what else it excludes, as I can't even find out the "compressed folder" sendto item is doing in th...
null
CC BY-SA 2.5
null
2008-08-27T14:01:35.890
2008-08-27T14:01:35.890
null
null
1,088
null
30,183
1
30,545
null
29
22,673
When I try to do that I get the following error: > Changes to 64-bit applications are not allowed. --- @Wilka: That option wasn't available until I selected Tools > Options > Projects and Solutions > General and check "Show advanced build configurations". Though I found this hint from your MSDN link. So if you edit ...
How do I enable Edit and Continue on a 64-bit application and VB2008 Express?
CC BY-SA 3.0
0
2008-08-27T13:58:44.913
2013-06-28T14:58:07.327
2020-06-20T09:12:55.060
-1
3,228
[ "vb.net", "visual-studio-2008", "64-bit" ]
30,188
1
30,231
null
6
2,988
I am trying to set a `javascript` `date` so that it can be submitted via `JSON` to a `.NET` type, but when attempting to do this, `jQuery` sets the `date` to a full `string`, what format does it have to be in to be converted to a `.NET` type? ``` var regDate = student.RegistrationDate.getMonth() + "/" + student.Regist...
How can I format a javascript date to be serialized by jQuery
CC BY-SA 3.0
0
2008-08-27T14:00:18.123
2015-12-14T06:58:31.503
2015-12-14T06:58:31.503
3,583,831
2,993
[ "c#", "json", "serialization", "date", "castle-monorail" ]
30,196
2
null
30,074
1
null
The way I check in Windows if a file has been completely uploaded by ftp is to try to rename it. If renaming fails, the file isn't complete. Not very elegant, I admit, but it works.
null
CC BY-SA 2.5
null
2008-08-27T14:02:04.423
2008-08-27T14:02:04.423
null
null
3,236
null
30,189
2
null
30,170
5
null
Elements can belong to more than one class, so you can do something like this: ``` .DefaultBackColor { background-color: #123456; } .SomeOtherStyle { //other stuff here } .DefaultForeColor { color:#654321; } ``` And then in the content portion somewhere: ``` <div class="DefaultBackColor SomeOtherSty...
null
CC BY-SA 2.5
null
2008-08-27T14:00:23.803
2008-08-27T14:00:23.803
null
null
3,043
null
30,194
2
null
25,952
0
null
I've been trying to find the original game I was thinking of - I think it was called 'bots or something like that, and ran on my Mac back in around system 6 days. I'll have to do some digging next time I'm back at my parents place. Thinking more about it over the last day or so, I suppose it's really not all that diff...
null
CC BY-SA 2.5
null
2008-08-27T14:01:35.423
2008-08-27T14:01:35.423
null
null
797
null
30,193
2
null
29,869
16
null
In my opinion, trying to parse HTML with anything other than an HTML parser is just asking for a world of pain. HTML is a complex language (which is one of the major reasons that XHTML was created, which is much simpler than HTML). For example, this: ``` <HTML / <HEAD / <TITLE / > / <P / > ``` is a compl...
null
CC BY-SA 2.5
null
2008-08-27T14:01:27.530
2008-08-27T14:01:27.530
null
null
2,988
null
30,205
2
null
30,183
-1
null
AFAIK Visual Studio Express does not come with 64bit support.
null
CC BY-SA 2.5
null
2008-08-27T14:05:19.640
2008-08-27T14:05:19.640
null
null
832
null
30,204
2
null
30,152
4
null
Send to zipped Folder does not traverse into folders without names before dot (like ".svn"). If you had other folders that begin with dots, those would not be included either. Files without names are not excluded. Hidden attribute does not come into play. Might be a bug, might be by design. Remember that Windows explo...
null
CC BY-SA 2.5
null
2008-08-27T14:05:18.207
2008-08-27T14:05:18.207
null
null
227
null
30,186
2
null
30,099
12
null
Stack objects are handled automatically by the compiler. When the scope is left, it is deleted. ``` { obj a; } // a is destroyed here ``` When you do the same with a 'newed' object you get a memory leak : ``` { obj* b = new obj; } ``` b is not destroyed, so we lost the ability to reclaim the memory b owns...
null
CC BY-SA 2.5
null
2008-08-27T13:59:22.387
2008-08-27T13:59:22.387
null
null
3,186
null
30,206
2
null
28,840
1
null
I'm a big believer in Use Cases, detailing the system behaviour in response to user actions. Collectively these can form a loose set of requirements, and in a SCRUM environment can help you prioritise the Use Cases which will form that particular sprint's implemented features. For example, after talking to your funct...
null
CC BY-SA 2.5
null
2008-08-27T14:05:21.530
2008-08-27T14:05:21.530
null
null
3,217
null
30,210
2
null
30,145
3
null
I don't think that the well-known spoofability of MAC addresses is an issue in this case. I think tweakt is just wanting to use them for initial identification. The device can read its own MAC address, and the installer can (as long as it's printed on a label) read the same number and know, "OK - this is the box that I...
null
CC BY-SA 2.5
null
2008-08-27T14:06:38.967
2008-08-27T14:06:38.967
null
null
619
null
30,209
1
30,221
null
0
492
How would you manage the lifecycle and automated build process when some of the projects (`C#` projects) are part of the actual build system? A is a project that uses `MSBuild` tasks that are implemented in . Both projects are part of the same product (meaning, frequently changes as the product is being developed ...
TFS Lifecycle Management for Build Environment
CC BY-SA 3.0
null
2008-08-27T14:06:35.410
2014-12-17T12:36:01.627
2014-12-17T12:36:01.627
2,296,199
1,228,206
[ "tfs", "msbuild" ]
30,211
1
30,473
null
61
110,493
Is the ZIP compression that is built into Windows XP/Vista/2003/2008 able to be scripted at all? What executable would I have to call from a BAT/CMD file? or is it possible to do it with VBScript? I realize that this is possible using [WinZip](http://en.wikipedia.org/wiki/WinZip), [7-Zip](http://en.wikipedia.org/wiki/...
Can Windows' built-in ZIP compression be scripted?
CC BY-SA 2.5
0
2008-08-27T14:06:52.133
2015-07-23T14:05:44.017
2010-03-25T14:35:26.753
63,550
1,414
[ "windows", "vbscript", "batch-file", "zip", "scripting" ]
30,200
2
null
30,036
11
null
There is no true multi-threading in Javascript, but you can get asynchronous behavior using `setTimeout()` and asynchronous AJAX requests. What exactly are you trying to accomplish?
null
CC BY-SA 3.0
null
2008-08-27T14:03:03.860
2014-03-25T07:55:34.443
2014-03-25T07:55:34.443
941,764
2,284
null
30,218
2
null
30,094
3
null
As everyone else has said, it most certainly would not be faster to add an index than it would be to do a full scan of that column. However, I would suggest tracking the query pattern and find out which column(s) are searched for the most, and add indexes at least for them. You may find out that 3-4 indexes speeds up...
null
CC BY-SA 2.5
null
2008-08-27T14:08:28.883
2008-08-27T14:08:28.883
null
null
2,929
null
30,216
2
null
17,020
0
null
Please tell me what are you doing to /boot that you need more than 64MB on it? Unless you never intend to clean it, anything more is a waste of space. Kernel image + initrd + System.map won't take more than 10MB (probably less - mine weight 5MB) and you really don't need to keep more than two spares. And with the curr...
null
CC BY-SA 2.5
null
2008-08-27T14:08:26.357
2008-08-27T14:08:26.357
null
null
3,205
null
30,214
2
null
28,965
1
null
G'day, A good static analysis tool for security is [FlawFinder](http://www.dwheeler.com/flawfinder/) written by David Wheeler. It does a good job looking for various security exploits, However, it doesn't replace having a knowledgable someone read through your code. As David says on his web page, "A fool with a tool ...
null
CC BY-SA 2.5
null
2008-08-27T14:07:56.140
2008-08-27T14:07:56.140
null
null
2,974
null
30,222
1
30,229
null
125
411,704
I am writing a query in which I have to get the data for only the last year. What is the best way to do this? ``` SELECT ... FROM ... WHERE date > '8/27/2007 12:00:00 AM' ```
SQL Server: Get data for only the past year
CC BY-SA 3.0
0
2008-08-27T14:10:49.720
2023-01-25T14:11:58.173
2012-06-04T13:43:57.843
2,486
2,486
[ "sql", "sql-server", "database", "tsql" ]
30,221
2
null
30,209
2
null
You must factor this out into two separate "projects" otherwise you'll spend ages chasing your tail trying to find out if a broken build is due to changes in the build system or chages in the code being developed. Previously we've factored the two systems out into separate projects in CVS. You want to be able to vary...
null
CC BY-SA 3.0
null
2008-08-27T14:10:44.917
2011-12-09T21:02:45.250
2011-12-09T21:02:45.250
142,162
2,974
null
30,228
2
null
30,145
1
null
The MAC address is as unique as a serial number printed on a manual/sticker. Microsoft does hashing to prevent MAC address spoofing, and to allow a bit more privacy. With the only MAC approach, you can easily match a device to a customer by only being in the same subnet. The hash prevents that, by being opaque to wh...
null
CC BY-SA 2.5
null
2008-08-27T14:12:26.457
2008-08-27T14:12:26.457
null
null
3,186
null
30,229
2
null
30,222
247
null
The following adds -1 years to the current date: ``` SELECT ... From ... WHERE date > DATEADD(year,-1,GETDATE()) ```
null
CC BY-SA 2.5
null
2008-08-27T14:12:28.437
2008-08-27T14:12:28.437
null
null
1,908
null
30,230
1
32,358
null
3
22,034
I have some C# / asp.net code I inherited which has a textbox which I want to make multiline. I did so by adding textmode="multiline" but when I try to insert a newline, the enter key instead submits the form :P I googled around and it seems like the default behavior should be for enter (or control-enter) to insert a ...
enter key to insert newline in asp.net multiline textbox control
CC BY-SA 2.5
0
2008-08-27T14:12:30.717
2023-02-20T11:13:46.593
2010-01-13T14:23:21.420
2,462
2,462
[ "asp.net" ]
30,232
2
null
30,222
5
null
Look up dateadd in BOL ``` dateadd(yy,-1,getdate()) ```
null
CC BY-SA 2.5
null
2008-08-27T14:12:53.990
2008-08-27T14:12:53.990
null
null
740
null
30,231
2
null
30,188
2
null
This [MSDN article](http://msdn.microsoft.com/en-us/library/ey1cdcx8.aspx) has some example Date strings that are parse-able is that what you're looking for? ``` string dateString = "5/1/2008 8:30:52 AM"; DateTime date1 = DateTime.Parse(dateString, CultureInfo.InvariantCulture); ```
null
CC BY-SA 2.5
null
2008-08-27T14:12:48.780
2008-08-27T14:12:48.780
null
null
1,414
null
30,227
2
null
104
14
null
The best explanation of how the garbage collector works is in Jeff Richters [CLR via C#](https://www.microsoftpressstore.com/store/clr-via-c-sharp-9780735667457) book, (Ch. 20). Reading this gives a great grounding for understanding how objects persist. One of the most common causes of rooting objects accidentally is...
null
CC BY-SA 3.0
null
2008-08-27T14:12:23.633
2016-01-19T10:25:19.310
2016-01-19T10:25:19.310
3,305,116
3,237
null
30,233
2
null
15,695
2
null
Stripes is a great framework. We converted a major project from a home grown framework to stripes and it took less than one week. The book referenced above is a great resources, as is the mailing list. There's also an active irc channel #stripes on freenode. It's a very powerful framework that doesn't get in your way...
null
CC BY-SA 2.5
null
2008-08-27T14:13:07.627
2008-08-27T14:13:07.627
null
null
1,310
null
30,236
2
null
5,428
0
null
Original form (The Right Hungarian Notation :) ) where prefix means type (i.e. length, quantity) of value stored by variable is OK, but not necessary in all type of applications. The popular form (The Wrong Hungarian Notation) where prefix means type (String, int) is useless in most of modern programming languages. ...
null
CC BY-SA 2.5
null
2008-08-27T14:14:29.417
2008-08-27T14:14:29.417
null
null
1,483
null
30,237
2
null
30,152
1
null
"Send to --> Compressed (zipped) Folder" creates a zip file. What it puts in there is based on your settings. It does not include hidden files with the default settings. If you have your explorer view settings set as Kibbee mentioned to "Show hidden files and folders", then "Send to --> Compressed (zipped) Folder" w...
null
CC BY-SA 2.5
null
2008-08-27T14:15:55.887
2008-08-27T14:30:40.907
2008-08-27T14:30:40.907
791
791
null
30,240
2
null
30,188
2
null
As travis suggests, you could simply change the parameter or class property (depending on what you are passing back) to a string, the parse it as his example. You may also want to take a look at [this article](http://www.nikhilk.net/DateSyntaxForJSON2.aspx). It suggests that direct conversion for DateTime JSON serial...
null
CC BY-SA 2.5
null
2008-08-27T14:16:30.067
2008-08-27T14:16:30.067
null
null
312
null
30,223
2
null
30,145
2
null
I don't think there's anything magic about what you're doing here - couldn't what you're doing be described as: "At production we burn a unique number into each of our devices which is both readable by the end user (it's on the label) and accessible to the internal processor. Our users have to enter this number into ...
null
CC BY-SA 2.5
null
2008-08-27T14:10:52.827
2008-08-27T14:10:52.827
null
null
987
null
30,187
2
null
29,177
25
null
I was recently wanting to put Drag and Drop functionality in my project and I hadn't come across this issue, but I was intrigued and really wanted to see if I could come up with a better method than the one described in the page you linked to. I hope I clearly understood everything you wanted to do and overall I think...
null
CC BY-SA 3.0
null
2008-08-27T14:00:12.353
2016-02-19T01:43:24.573
2016-02-19T01:43:24.573
49
194
null
30,242
2
null
2,898
1
null
I've just started using OSX. Free editors of note that I've discovered: - [Komodo](http://www.activestate.com/Products/komodo_ide/index.mhtml)- [ERIC](http://www.die-offenbachs.de/eric/index.html)- [PyDev](http://pydev.sourceforge.net/)
null
CC BY-SA 2.5
null
2008-08-27T14:16:51.127
2008-08-27T14:16:51.127
null
null
3,233
null
30,239
1
30,285
null
39
59,095
I have an images folder with a png in it. I would like to set a MenuItem's icon to that png. How do I write this in procedural code?
WPF setting a MenuItem.Icon in code
CC BY-SA 2.5
0
2008-08-27T14:16:08.133
2019-01-11T10:09:09.947
2019-01-11T10:09:09.947
900
3,047
[ "c#", "wpf", "icons", "menuitem" ]
30,243
2
null
16,991
5
null
For very simple Linux support if you like TextMate, try just gedit loaded with the right plugins. Easy to set up and really customizable, I use it for just about everything. There's also a lot of talk about emacs plugins if you're already using that normally. Gedit: [How to set up like TextMate](http://crepuscular-h...
null
CC BY-SA 2.5
null
2008-08-27T14:17:12.733
2008-08-27T14:17:12.733
null
null
3,230
null
30,248
2
null
30,230
0
null
Are you handling the textchanged event for the textbox? That would mean ASP.Net sets the textbox to cause a postback (submit the page) for anything the cause the textbox to lose focus, including the enter key.
null
CC BY-SA 2.5
null
2008-08-27T14:18:37.177
2008-08-27T14:18:37.177
null
null
3,043
null
30,238
2
null
30,099
2
null
In addition to the other answers: The C++ language actually has the `auto` keyword to explicitly declare the storage class of an object. Of course, it's completely needless because this is the implied storage class for local variables and cannot be used anywhere. The opposite of `auto` is `static` (both locally and gl...
null
CC BY-SA 2.5
null
2008-08-27T14:15:57.243
2008-08-27T14:15:57.243
null
null
1,968
null
30,250
2
null
30,101
15
null
Further to @Chris Karcher's answer - you can also automatically format the by hitting +, +. These formatting features work on a variety of file formats - it works wonders on ugly HTML.
null
CC BY-SA 3.0
null
2008-08-27T14:19:14.537
2015-08-20T22:17:06.457
2015-08-20T22:17:06.457
7,226
2,084
null
30,246
2
null
30,230
0
null
I suspect it's (like you say) some custom javascript code. The original asp.net control works fine... you are going to have to check the code
null
CC BY-SA 2.5
null
2008-08-27T14:17:51.017
2008-08-27T14:17:51.017
null
null
1,782
null
30,241
2
null
30,184
26
null
[Microsoft KB Article 320687](http://support.microsoft.com/kb/320687) has a detailed answer to this question. Basically, you override the WndProc method to return HTCAPTION to the WM_NCHITTEST message when the point being tested is in the client area of the form -- which is, in effect, telling Windows to treat the cli...
null
CC BY-SA 4.0
null
2008-08-27T14:16:50.533
2020-03-22T14:15:03.687
2020-03-22T14:15:03.687
3,800,096
3,163
null
30,255
2
null
30,251
1
null
I believe just tabular content. For example, if you printed out a database table or spreadsheet-like data to HTML.
null
CC BY-SA 2.5
null
2008-08-27T14:21:09.073
2008-08-27T14:21:09.073
null
null
572
null
30,235
2
null
3,143
3
null
Here's what I came up with First you'll need to get mbunit to generate both an XML and HTML report. The Command line arguments look like this ``` /rt:Xml /rt:Html /rnf:mbunit /rf:..\reports ``` this will generate the reports into a dir called reports and the file will be called mbunit.xml and mbunit.html next we...
null
CC BY-SA 2.5
null
2008-08-27T14:14:21.570
2008-10-02T18:44:21.023
2008-10-02T18:44:21.023
253
253
null
30,256
2
null
5,428
1
null
When using a dynamically typed language, I occasionally use Apps Hungarian. For statically typed languages I don't. See my explanation [in the other thread](https://stackoverflow.com/questions/26086/how-do-you-make-wrong-code-look-wrong-what-patterns-do-you-use-to-avoid-semanti#26174).
null
CC BY-SA 2.5
null
2008-08-27T14:21:39.743
2008-08-27T14:21:39.743
2017-05-23T12:17:07.823
-1
1,968
null
30,252
2
null
30,222
2
null
`GETDATE()` returns current date . If starts in midnight of current day last year (like in original example) you should use something like: ``` DECLARE @start datetime SET @start = dbo.getdatewithouttime(DATEADD(year, -1, GETDATE())) -- cut time (hours, minutes, ect.) -- getdatewithouttime() function doesn't exist in...
null
CC BY-SA 4.0
null
2008-08-27T14:20:22.163
2020-08-26T21:26:45.230
2020-08-26T21:26:45.230
4,925,121
1,483
null
30,259
2
null
30,251
6
null
I will usually opt for tables to display form-type information (First Name, Last Name, Address, etc.) where lining labels and fields across multiple rows is important. DIVs I use for layout. Of course the table is wrapped in a DIV :)
null
CC BY-SA 2.5
null
2008-08-27T14:22:16.463
2008-08-27T14:22:16.463
null
null
null
null
30,257
2
null
2,898
134
null
![Real programmers set the universal constants at the start such that the universe evolves to contain the disk with the data they want.](https://i.stack.imgur.com/YayAV.png) [http://xkcd.com/378/](http://xkcd.com/378/)
null
CC BY-SA 3.0
null
2008-08-27T14:21:43.050
2012-03-30T04:51:44.030
2012-03-30T04:51:44.030
1,219,121
253
null
30,251
1
30,271
null
116
19,213
> [Why not use tables for layout in HTML?](https://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html) Under what conditions should you choose tables instead of DIVs in HTML coding?
Tables instead of DIVs
CC BY-SA 2.5
0
2008-08-27T14:19:44.583
2018-08-14T07:34:19.807
2017-05-23T10:31:10.703
-1
2,141
[ "html", "css" ]
30,263
2
null
30,251
21
null
Usually whenever you're not using the table to provide a layout. Tables -> data Divs -> layout (mainly)
null
CC BY-SA 2.5
null
2008-08-27T14:22:49.317
2008-08-27T14:22:49.317
null
null
2,695
null
30,262
2
null
30,251
52
null
When the data I am presenting is, indeed, tabular. I find it ridiculous that some web designers used divs on tabular data on some sites. One other use I would have for it would be forms, particularly label : textbox pairs. This could technically be done in div boxes, but it's much, much easier to do this in tables, ...
null
CC BY-SA 2.5
null
2008-08-27T14:22:47.743
2008-08-27T14:22:47.743
null
null
372
null
30,261
2
null
30,230
1
null
I created a sample page with a TextBox and a Button and it worked fine for me: ``` <asp:TextBox runat="server" ID="textbox1" TextMode="MultiLine" /> <br /> <br /> <asp:Button runat="server" ID="button1" Text="Button 1" onclick="button1_Click" /> ``` So it most likely depends on either some other property you have se...
null
CC BY-SA 2.5
null
2008-08-27T14:22:38.507
2008-08-27T14:22:38.507
null
null
1,908
null
30,264
2
null
30,251
1
null
If you would like to have semantically correct HTML, then you should use tables only for tabular data. Otherwise you use tables for everything you want, but there probably is a way to do the same thing using `div`s and CSS.
null
CC BY-SA 2.5
null
2008-08-27T14:22:51.580
2008-08-27T14:22:51.580
null
null
1,633
null
30,267
2
null
29,882
0
null
I can also vouch for Mercurial. Simple to use and powerful to boot!
null
CC BY-SA 2.5
null
2008-08-27T14:23:07.103
2008-08-27T14:23:07.103
null
null
1,349
null
30,266
2
null
30,251
2
null
1) For displaying tabular data. A calendar is one example of tabular data that isn't always obvious at first. 2) I work for a medical billing company, and nearly all of the layout for our internal work is done using CSS. However, from time to time we get paper forms from insurance companies that our billers have to ...
null
CC BY-SA 2.5
null
2008-08-27T14:23:03.653
2008-08-27T14:23:03.653
null
null
3,043
null
30,260
2
null
30,067
0
null
Is the fact that ASP.net MVC is only in 'Preview 5' be a cause for concern when looking into it? I know that StackOverflow was created using it, but is there a chance that Microsoft could implement significant changes to the framework before it is officially out of beta/alpha/preview release?
null
CC BY-SA 2.5
null
2008-08-27T14:22:38.493
2008-08-27T14:22:38.493
null
null
506
null
30,265
2
null
30,251
4
null
Tables were designed for tabular content, not for layout. So, don't ever feel bad if you use them to display data.
null
CC BY-SA 2.5
null
2008-08-27T14:23:02.953
2008-08-27T14:23:02.953
null
null
1,965
null
30,269
2
null
30,251
8
null
Agree with Thomas -- the general rule of thumb is if it makes sense on a spreedsheet, you can use a table. Otherwise not. Just don't use tables as your layout for the page, that's the main problem people have with them.
null
CC BY-SA 2.5
null
2008-08-27T14:23:56.257
2008-08-27T14:23:56.257
null
null
3,230
null
30,268
2
null
30,222
7
null
Well, I think something is missing here. User wants to get data from the last year and not from the last 365 days. There is a huge diference. In my opinion, data from the last year is every data from 2007 (if I am in 2008 now). So the right answer would be: ``` SELECT ... FROM ... WHERE YEAR(DATE) = YEAR(GETDATE()) - ...
null
CC BY-SA 4.0
null
2008-08-27T14:23:22.203
2018-11-14T05:18:41.287
2018-11-14T05:18:41.287
2,275,948
3,221
null
30,275
2
null
26,795
0
null
Have you considered adding the DefaultValue as a static property of the ExtenderProvider, then you can access it without requiring an instance of the provider?
null
CC BY-SA 2.5
null
2008-08-27T14:26:32.943
2008-08-27T14:26:32.943
null
null
1,908
null
30,197
2
null
30,036
111
null
See [http://caniuse.com/#search=worker](http://caniuse.com/#search=worker) for the most up-to-date support info. The following was the state of support circa 2009. --- The words you want to google for are [JavaScript Worker Threads](http://www.google.com/search?q=JavaScript+worker+threads) Apart from from [Gears](ht...
null
CC BY-SA 4.0
null
2008-08-27T14:02:12.037
2021-01-09T17:25:05.697
2021-01-09T17:25:05.697
10,607,772
2,541
null
30,271
2
null
30,251
198
null
The whole "Tables vs Divs" thing just barely misses the mark. It's not "table" or "div". It's about using semantic html. Even the div tag plays only a small part in a well laid out page. Don't overuse it. You shouldn't need that many if you put your html together correctly. Things like lists, field sets, legends,...
null
CC BY-SA 3.0
null
2008-08-27T14:25:11.543
2017-07-26T05:10:28.617
2017-07-26T05:10:28.617
5,399,734
3,043
null
30,273
2
null
30,222
6
null
The most readable, IMO: ``` SELECT * FROM TABLE WHERE Date > DATEADD(yy, -1, CONVERT(datetime, CONVERT(varchar, GETDATE(), 101))) ``` Which: 1. Gets now's datetime GETDATE() = #8/27/2008 10:23am# 2. Converts to a string with format 101 CONVERT(varchar, #8/27/2008 10:23am#, 101) = '8/27/2007' 3. Converts to a da...
null
CC BY-SA 2.5
null
2008-08-27T14:26:07.877
2008-08-27T14:26:07.877
null
null
2,199
null
30,280
2
null
15,040
2
null
Provided this question is properly tagged, you can select LAMP server option during installation of Ubuntu. This will install and configure all required components automatically. A detailed instruction on how to do this can be found, for example, there: [http://www.ubuntugeek.com/ubuntu-804-hardy-heron-lamp-server-setu...
null
CC BY-SA 2.5
null
2008-08-27T14:29:34.013
2008-08-27T14:29:34.013
null
null
3,232
null
30,281
1
32,303
null
21
11,171
I'm using JBoss Seam Framework, but it's seems to me isn't very popular among java developers. I want to know how many java programmers here are using it, and in what kind of projects. Is as good as django, or RoR?
How Popular is the Seam Framework
CC BY-SA 2.5
0
2008-08-27T14:30:29.987
2016-11-30T09:37:50.923
2010-07-22T14:06:44.453
21,234
3,245
[ "java", "frameworks", "seam" ]
30,245
2
null
30,184
5
null
The following code assumes that the ProgressBarForm form has a ProgressBar control with property set to ``` public partial class ProgressBarForm : Form { private bool mouseDown; private Point lastPos; public ProgressBarForm() { InitializeComponent(); } private void progressBar1_Mous...
null
CC BY-SA 2.5
null
2008-08-27T14:17:31.937
2008-08-27T14:17:31.937
null
null
1,196
null
30,285
2
null
30,239
64
null
``` menutItem.Icon = new System.Windows.Controls.Image { Source = new BitmapImage(new Uri("images/sample.png", UriKind.Relative)) }; ```
null
CC BY-SA 3.0
null
2008-08-27T14:31:47.487
2011-12-02T07:15:10.397
2011-12-02T07:15:10.397
8,521
3,163
null
30,274
2
null
30,251
11
null
As many posters have already mentioned, you should use tables to display for tabular data. Tables were introduced in [HTML 3.2](http://www.w3.org/TR/REC-html32.html#body) here is the relevant paragraph from the spec on their usage: > [tables] can be used to markup tabular material or for layout purposes...
null
CC BY-SA 2.5
null
2008-08-27T14:26:27.500
2008-08-27T14:26:27.500
null
null
238
null
30,277
2
null
30,094
9
null
Two questions to think about: 1. How many columns could be nominated for the query? 2. Does the data change frequently? A lot of it? If you have a number of candidate columns, and the data doesn't change , then you might want to consider adding a permanent index on any or even all candidate column. "", I hear. M...
null
CC BY-SA 2.5
null
2008-08-27T14:28:50.223
2008-08-27T18:14:13.507
2008-08-27T18:14:13.507
2,230
2,230
null
30,288
1
130,971
null
5
5,312
Using CFML (ColdFusion Markup Langauge, aka ColdFusion), how can you compare if two single dimension arrays are the same?
How can you test to see if two arrays are the same using CFML?
CC BY-SA 2.5
null
2008-08-27T14:32:52.743
2013-09-16T12:47:45.390
2008-08-27T14:47:16.903
3,242
3,242
[ "coldfusion" ]
30,278
2
null
30,184
15
null
Here is a way to do it using a P/Invoke. ``` public const int WM_NCLBUTTONDOWN = 0xA1; public const int HTCAPTION = 0x2; [DllImport("User32.dll")] public static extern bool ReleaseCapture(); [DllImport("User32.dll")] public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); void Form_Load(ob...
null
CC BY-SA 2.5
null
2008-08-27T14:29:05.683
2008-08-27T14:29:05.683
null
null
1,965
null
30,284
2
null
30,067
2
null
> I dont´t know ASP.NET MVC, but I am very familiar with MVC pattern. I don´t see another way to build professional applications without MVC. And it has to be MVC model 2, like Spring or Struts. By the way, how you people were building web applications without MVC? When you have a situation that some kind of validation...
null
CC BY-SA 2.5
null
2008-08-27T14:31:43.133
2008-08-27T14:31:43.133
null
null
1,965
null
30,294
2
null
30,067
11
null
I have used ASP.NET MVC (I even wrote a HTTPModule that lets you define the routes in web.config), and I still get a bitter taste in my mouth about it. It seems like a giant step backwards in organization and productivity. Maybe its not for some, but I've got webforms figured out, and they present no challenge to me a...
null
CC BY-SA 2.5
null
2008-08-27T14:35:08.463
2008-08-27T14:35:08.463
null
null
1,965
null
30,289
2
null
29,810
1
null
Have a look at Sharepoint. If cost is an issue, Sharepoint portal sevices can also work for you. [Read this](http://www.isaserver.org/img/upl/spskit/1overview/1overview.htm) for more info
null
CC BY-SA 2.5
null
2008-08-27T14:33:03.817
2008-08-27T14:33:03.817
null
null
1,349
null
30,296
2
null
10,313
1
null
From what I'm seeing, it seems that it's not possible to directly access/ manipulate a Network Place from the command line, be it in PowerShell or the plain ol' command prompt. @slipsec (#13899): Thanks for the suggestion, but PowerShell doesn't support the port number in the destination path any more than the `net u...
null
CC BY-SA 2.5
null
2008-08-27T14:35:37.993
2008-08-27T14:35:37.993
null
null
1,245
null
30,295
1
null
null
3
3,176
Currently I am setting up an application that can deploy other web apps to Tomcat 6 clusters. It is set up right now to have a one to one relationship between deployed web application and a cluster. My current reasoning for this is so that I can change the JVM args of the Tomcat server without disrupting other applic...
Should you run one or multiple applications per tomcat cluster?
CC BY-SA 2.5
null
2008-08-27T14:35:20.740
2012-07-02T10:26:33.557
2012-07-02T10:26:33.557
97,160
null
[ "tomcat", "cluster-computing" ]
30,292
2
null
30,288
11
null
There's a very simple way of comparing two arrays using CFML's underlying java. According to a recent blog by Rupesh Kumar of Adobe ([http://coldfused.blogspot.com/](http://coldfused.blogspot.com/)), ColdFusion arrays are an implementation of java lists (java.util.List). So all the Java list methods are available for C...
null
CC BY-SA 3.0
null
2008-08-27T14:34:52.673
2013-09-16T12:47:45.390
2013-09-16T12:47:45.390
21,960
3,242
null
30,287
2
null
30,239
23
null
``` <MenuItem> <MenuItem.Icon> <Image> <Image.Source> <BitmapImage UriSource="/your_assembly;component/your_path_here/Image.png" /> </Image.Source> </Image> </MenuItem.Icon> </MenuItem> ``` Just make sure your image in also included in the project file and marked as resource, and you a...
null
CC BY-SA 3.0
null
2008-08-27T14:32:40.263
2015-07-08T13:17:16.613
2015-07-08T13:17:16.613
839,992
900
null
30,286
1
30,301
null
2
1,945
I have an Asp.NET application (VS2008, Framework 2.0). When I try to set a property on one of the user controls like ``` myUserControl.SomeProperty = someValue; ``` I get a `NullReferenceException`. When I debug, I found out that `myUserControl` is null. How is it possible that a user control handle is null? How do ...
NullReferenceException on User Control handle
CC BY-SA 3.0
null
2008-08-27T14:31:57.707
2016-01-14T04:20:10.410
2016-01-14T04:20:10.410
1,099,045
31,505
[ "asp.net", "user-controls" ]
30,301
2
null
30,286
5
null
Where are you trying to access the property? If you are in onInit, the control may not be loaded yet.
null
CC BY-SA 2.5
null
2008-08-27T14:38:02.573
2008-08-27T14:38:02.573
null
null
733
null
30,305
2
null
30,286
5
null
Where exactly in the code are you attempting to do this? It is possible that you are attempting to access the control too early in the [page lifecycle](http://msdn.microsoft.com/en-us/library/ms178472.aspx) and it has not been instantiated yet.
null
CC BY-SA 2.5
null
2008-08-27T14:39:16.407
2008-08-27T14:39:16.407
null
null
1,758
null
30,303
2
null
29,699
1
null
Parameterized queries are your friend, as suggested by Matt. ``` Command = SELECT * FROM PEOPLE WHERE SURNAME=? ``` They will protect you from headaches involved with - - -
null
CC BY-SA 2.5
null
2008-08-27T14:38:41.230
2008-08-27T14:38:41.230
null
null
1,349
null
30,308
2
null
30,286
0
null
If you created the UserControl during runtime (through ControlCollection.Add), you need to create it on postback too. Another case can be your UserControl does not match the designer.cs page
null
CC BY-SA 2.5
null
2008-08-27T14:41:16.387
2008-08-27T14:41:16.387
null
null
1,195,872
null