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
5,448
2
null
2,970
14
null
I know this is a little late in the game, but the URL mentioned for the JavaScript is mentioned in a list of sites known to have been part of the ASPRox bot resurgence that started up in June (at least that's when we were getting flagged with it). Some details about it are mentioned below: [http://www.bloombit.com/Art...
null
CC BY-SA 3.0
null
2008-08-07T22:49:55.830
2016-11-20T00:20:03.630
2016-11-20T00:20:03.630
6,392,939
71
null
5,459
1
19,601
null
11
780
This is how I wanted to do it which would work in PHP 5.3.0+ ``` <?php class MyClass { const CONSTANT = 'Const var'; } $classname = 'MyClass'; echo $classname::CONSTANT; // As of PHP 5.3.0 ?> ``` But I'm restricted to using PHP 5.2.6. Can anyone think of a simple way to simulate ...
Accessing a CONST attribute of series of Classes
CC BY-SA 4.0
0
2008-08-07T22:58:42.617
2019-01-18T10:37:12.193
2019-01-18T10:37:12.193
567,854
117
[ "php", "oop" ]
5,469
2
null
5,374
17
null
Ok, I finally figured it out. Silly problem really, I simply needed to leave out the quotes and the braces. One of those times when I that I'd already tried that. :D Oh, and I mistyped @myId in the first example, the code was actually $myId. ``` <xsl:variable name="myId" select="@id" /> <xsl value-of select="//Ro...
null
CC BY-SA 3.0
null
2008-08-07T23:16:07.947
2013-08-14T23:28:46.837
2013-08-14T23:28:46.837
312
312
null
5,465
2
null
5,460
7
null
Community Server itself has been very solid for me, but if all you need is a blogging engine then it may be overkill. Skinning it, for example, is quite a bit of work (despite their quite powerful Chameleon theme engine). I'd probably look closer at one of the dedicated blog engines out there, like BlogEngine.NET, das...
null
CC BY-SA 2.5
null
2008-08-07T23:13:21.480
2008-08-07T23:13:21.480
null
null
615
null
5,462
2
null
5,460
9
null
I've done quite a few projects using Community Server. If you're okay with the out-of-the-box functionality, or you don't mind sticking to the version you start with, I think you'll be very happy. The times I've run into headaches using CS is when the client wants functionality CS does not provide, but also insists on...
null
CC BY-SA 2.5
null
2008-08-07T23:08:54.110
2008-08-07T23:08:54.110
null
null
521
null
5,460
1
5,462
null
5
2,867
The company I work for is wanting to add blog functionality to our website and they were looking to spend an awful amount of money to have some crap being built on top of a CMS they purchased (sitecore). I pointed them to Telligent's Community Server and we had a sales like meeting today to get the Marketing folks on...
Telligent's Community Server
CC BY-SA 2.5
null
2008-08-07T23:00:30.053
2011-05-05T02:37:41.240
2008-08-08T00:18:28.087
590
590
[ "community-server" ]
5,475
2
null
4,752
1
null
Have you tried removing the SSP using the command line? I found this worked once when we had a broken an SSP and just wanted to get rid of it. The command is: ``` stsadm.exe -o deletessp -title <sspname> [-deletedatabases] ``` The `deletedatbases` switch is optional. --- Also, check in Central Administration u...
null
CC BY-SA 3.0
null
2008-08-07T23:26:19.597
2012-08-17T20:47:05.590
2012-08-17T20:47:05.590
50,776
697
null
5,473
1
21,778
null
1,529
737,450
Is it possible to undo the changes caused by the following command? If so, how? ``` git reset --hard HEAD~1 ```
How can I undo git reset --hard HEAD~1?
CC BY-SA 3.0
0
2008-08-07T23:22:51.273
2023-01-05T13:17:54.103
2014-12-20T15:41:23.577
2,541,573
85
[ "git", "version-control", "git-reset" ]
5,488
2
null
5,482
2
null
If you are using a button or hyperlink or something to trigger the popup to show, could you also add an additional handler to the onClick event of the trigger which should still fire the modal popup and run the javascript at the same time?
null
CC BY-SA 2.5
null
2008-08-07T23:44:27.283
2008-08-07T23:44:27.283
null
null
493
null
5,472
2
null
5,459
-1
null
If you absolutly need to access a constant like that, you can do this: ``` <?php class MyClass { const CONSTANT = 'Const var'; } $classname = 'MyClass'; echo eval( 'return '.$classname.'::CONSTANT;' ); ?> ``` But, if i were you, I'd try not to use eval.
null
CC BY-SA 2.5
null
2008-08-07T23:21:44.877
2008-08-07T23:21:44.877
null
null
550
null
5,493
2
null
5,482
2
null
The ModalPopupExtender modifies the button/hyperlink that you tell it to be the "trigger" element. The onclick script I add triggers before the popup is shown. I want script to fire after the popup is shown. Also, still leaves me with the problem of when I show the modal from server side.
null
CC BY-SA 2.5
null
2008-08-07T23:50:32.917
2008-08-07T23:53:48.697
2008-08-07T23:53:48.697
698
698
null
5,481
2
null
5,396
2
null
Take a look at [this article](http://www.sql-server-performance.com/articles/dba/Configure_Filestream_in_SQL_Server_2008_p1.aspx). I don't know a whole lot about FileStreaming and security, but there are a couple of interesting options in the FileStreaming setup such as allowing remote connections and allow remote clie...
null
CC BY-SA 2.5
null
2008-08-07T23:36:46.673
2008-08-07T23:36:46.673
null
null
493
null
5,474
2
null
5,323
7
null
If you have a public facing website, the real business case is SEO. Accessibility is important and maintaining semantic (X)HTML much easier than maintaining table layouts, but that #1 spot on Google will bring home the bacon. For example: [Monthly web report: 127 million page views for July](http://latimesblogs.l...
null
CC BY-SA 3.0
null
2008-08-07T23:22:57.527
2013-01-27T13:03:59.880
2013-01-27T13:03:59.880
null
60
null
5,497
2
null
5,263
0
null
Does it make any difference if you go ``` newRow.SetParentRow(parentRow, RoleTable.Relations("RoleToRole")) ```
null
CC BY-SA 2.5
null
2008-08-07T23:57:22.670
2008-08-07T23:57:22.670
null
null
493
null
5,501
2
null
2,750
4
null
@Terrapin, re: > If all you have is a bunch of [simple public set/get] properties ... they might as well be fields Properties have other advantages over fields. They're a more explicit contract, they're serialized, they can be debugged later, they're a nice place for extension through inheritance. The clunkier s...
null
CC BY-SA 2.5
null
2008-08-08T00:07:08.967
2008-08-08T00:11:02.500
2008-08-08T00:11:02.500
49
49
null
5,482
1
5,500
null
38
31,189
The ASP.NET AJAX has `OnCancelScript` and `OnOkScript` properties, but it doesn't seem to have an `OnShowScript` property. I'd like to specify a javascript function to run each time the popup is shown. In past situations, I set the `TargetControlID` to a dummy control and provide my own control that first does some ...
How to specify javascript to run when ModalPopupExtender is shown
CC BY-SA 3.0
0
2008-08-07T23:37:30.807
2021-04-24T14:05:24.807
2018-04-05T18:08:56.017
7,600,492
698
[ "asp.net", "javascript", "asp.net-ajax" ]
5,492
2
null
5,460
0
null
Have you had a look at the [Shared Source blog module](http://trac.sitecore.net/Blog) for Sitecore?
null
CC BY-SA 2.5
null
2008-08-07T23:49:13.777
2008-08-14T12:26:50.957
2008-08-14T12:26:50.957
202
202
null
5,503
2
null
5,460
0
null
Expression Engine with the Multi-Site Manager works great for that kind of situation.
null
CC BY-SA 2.5
null
2008-08-08T00:15:04.070
2008-08-08T00:15:04.070
null
null
574
null
5,491
2
null
5,170
9
null
If you are already spending time in Visual Studio, then you can always use the to connect to any .Net compliant database server. Provided you're using Professional or greater, you can create and edit tables and databases, run queries, etc.
null
CC BY-SA 2.5
null
2008-08-07T23:47:57.150
2008-08-07T23:47:57.150
null
null
697
null
5,500
2
null
5,482
30
null
hmmm... I'm that there's a shown event for the MPE... this is off the top of my head, but I think you can add an event handler to the shown event on page_load ``` function pageLoad() { var popup = $find('ModalPopupClientID'); popup.add_shown(SetFocus); } function SetFocus() { $get('TriggerClientId').focu...
null
CC BY-SA 2.5
null
2008-08-08T00:03:41.067
2008-08-08T00:03:41.067
null
null
493
null
5,507
1
5,524
null
55
12,069
Does it make sense, having all of the C#-managed-bliss, to go back to Petzold's Programming Windows and try to produce code w/ pure WinAPI? What can be learn from it? Isn't it just too outdated to be useful?
Does it still make sense to learn low level WinAPI programming?
CC BY-SA 2.5
0
2008-08-08T00:29:13.963
2016-06-15T17:23:46.607
2009-08-22T12:13:57.807
56,285
861
[ "windows", "winapi" ]
5,506
2
null
5,323
0
null
I don't think there is a business reason at all. Technical reason, maybe, even so, barely - it is a huge timesuck the world over, and then you look at it in IE and break down and weep.
null
CC BY-SA 2.5
null
2008-08-08T00:25:46.763
2008-08-08T00:25:46.763
null
null
699
null
5,494
1
12,519
null
3
6,100
I'm using IIS in Windows 2003 Server for a SharePoint intranet. External incoming requests will be using the host header `portal.mycompany.com` and be forced to use SSL. I was wondering if there's a way to set up an alternate host header such as `http://internalportal/` which only accepts requests from the internal ne...
Alternative Hostname for an IIS web site for internal access only
CC BY-SA 3.0
null
2008-08-07T23:53:55.717
2015-08-24T09:30:59.893
2015-08-24T09:30:59.893
155,077
697
[ "sharepoint", "iis", "moss", "wss" ]
5,498
2
null
2,630
8
null
there's an [out-twitter script](http://blog.sapien.com/index.php/2008/06/23/out-twitter/) i use for posting to twitter. it's nice, as it means you can send something to twitter without the risk of being distracted by a browser. i added an alias for it, "twit". so now you can type, for example: ``` PS C:\>"trying out...
null
CC BY-SA 2.5
null
2008-08-08T00:02:35.653
2008-08-08T00:02:35.653
null
null
49
null
5,505
2
null
5,494
1
null
Assuming that [http://internalportal/](http://internalportal/) wasn't accessible from outside the company, you could set up two websites in IIS. The first site, configured to use a host header value of 'portal.mycompany.com', would require SSL. The second site, configured to use a host header value of 'internalportal',...
null
CC BY-SA 2.5
null
2008-08-08T00:24:26.297
2008-08-08T00:24:26.297
null
null
624
null
5,509
1
81,892
null
0
2,060
So my company uses a delightfully buggy program called Rational Purify (as a plugin to Microsoft Visual Developer Studio) to manage memory leaks. The program is deigned to let you click on a memory leak after you have encountered it, and then jump to the line that the leak occurs on. Unfortunately Purify is malfuncti...
Rational Purify failing to jump to memory leaks
CC BY-SA 3.0
null
2008-08-08T00:31:19.823
2018-11-22T14:10:16.917
2018-11-22T14:10:16.917
787,480
159
[ "memory-leaks", "purify" ]
5,510
2
null
5,507
3
null
Learning C or a lower level language can definitely be useful. However, I don't see any obvious advantage in using the unmanaged WinAPI.
null
CC BY-SA 2.5
null
2008-08-08T00:35:21.720
2008-08-08T00:35:21.720
null
null
108
null
5,508
2
null
5,507
16
null
Absolutely. When nobody knows the low level, who will update and write the high level languages? Also, when you understand the low level stuff, you can write more efficient code in a higher level language, and also debug more efficiently.
null
CC BY-SA 2.5
null
2008-08-08T00:31:04.660
2008-08-08T00:31:04.660
null
null
522
null
5,511
1
7,794
null
67
60,805
How are you handling the entry of numeric values in WPF applications? Without a NumericUpDown control, I've been using a TextBox and handling its PreviewKeyDown event with the code below, but it's pretty ugly. Has anyone found a more graceful way to get numeric data from the user without relying on a third-party cont...
Numeric Data Entry in WPF
CC BY-SA 2.5
0
2008-08-08T00:37:55.020
2019-01-11T10:08:40.937
2019-01-11T10:08:40.937
900
615
[ "c#", "wpf" ]
5,525
2
null
5,507
9
null
Analogy: If you build cars for a living (programming), then its very pertinent to know how the engine works (Win32).
null
CC BY-SA 2.5
null
2008-08-08T01:01:44.457
2008-08-08T01:01:44.457
null
null
645
null
5,513
2
null
5,507
3
null
I've seen low level Windows API code... it ain't pretty... I wish I could unlearn it. I think it benefits to learn low level as in C, as you gain a better understanding of the hardware architecture and how all that stuff works. Learning old Windows API... I think that stuff can be left to the people at Microsoft who ...
null
CC BY-SA 2.5
null
2008-08-08T00:40:05.453
2008-08-08T00:40:05.453
null
null
122
null
5,521
2
null
5,507
16
null
The native APIs are the "real" operating system APIs. The .NET library is (with few exceptions) nothing more than a fancy wrapper around them. So yes, I'd say that anybody who can understand .NET with all its complexity, can understand relatively mundane things like talking to the API without the benefit of a middle-ma...
null
CC BY-SA 2.5
null
2008-08-08T00:53:24.663
2008-08-08T00:57:03.593
2008-08-08T00:57:03.593
null
null
null
5,519
2
null
4,911
1
null
If you're going to be using LinqToSql for development, I would recommend using an Int as a primary key. I've had many issues when I had relationships built off of non-Int fields, even when the nvarchar(x) field had constraints to make it a unique field. I'm not sure if this is a known bug in LinqToSql or what, but I'...
null
CC BY-SA 2.5
null
2008-08-08T00:50:04.933
2008-08-08T00:50:04.933
null
null
519
null
5,535
2
null
5,507
8
null
Simple answer, YES.
null
CC BY-SA 2.5
null
2008-08-08T01:16:26.580
2008-08-08T01:16:26.580
null
null
534
null
5,456
2
null
5,428
22
null
The Hungarian Naming Convention can be useful when used correctly, unfortunately it tends to be misused more often than not. Read Joel Spolsky's article [Making Wrong Code Look Wrong](http://www.joelonsoftware.com/articles/Wrong.html) for appropriate perspective and justification. Essentially, type based Hungarian no...
null
CC BY-SA 2.5
null
2008-08-07T22:56:03.883
2008-08-07T22:56:03.883
null
null
332
null
5,530
2
null
5,323
1
null
> *I would let him use whatever his WYSIWYG Editor spits out I just threw-up a little... *ahh hello? You don't think the graphic designer is writing the CSS by hand do you? Funnily enough I have worked with a few designers and the best among them hand-tweak their css. The guy I am thinking of actually does all of...
null
CC BY-SA 2.5
null
2008-08-08T01:09:44.100
2008-08-08T06:02:32.293
2008-08-08T06:02:32.307
1
358
null
5,536
2
null
5,527
11
null
The whole purpose of J# is to ease the transition of Java developers to the .NET environment which didn't work so well (I guessing here) so Microsoft dropped J# from Visual Studio 2008. For your question, "Is there a real benefit of using J#?".. in a nutshell... No..
null
CC BY-SA 2.5
null
2008-08-08T01:19:01.427
2008-08-08T01:19:01.427
null
null
463
null
5,538
2
null
5,527
1
null
One of the killers I've found with J# in the past is that there is no built in support for referencing web services. That alone has been enough to deter me from it ever since.
null
CC BY-SA 2.5
null
2008-08-08T01:21:02.110
2008-08-08T01:21:02.110
null
null
493
null
5,544
1
14,474
null
4
452
I encounter an error of the form: "The model item passed into the dictionary is of type FooViewData but this dictionary requires a model item of type bar" even though I am passing in an object of the correct type (bar) for the typed user control.
In ASP.NET MVC I encounter an incorrect type error when rendering a user control with the correct typed object
CC BY-SA 2.5
null
2008-08-08T01:31:21.963
2012-07-22T13:00:29.490
2012-07-13T06:24:12.023
727,208
364
[ "asp.net-mvc" ]
5,543
2
null
4,684
2
null
VirtualBox also has API's for automating their VM's.
null
CC BY-SA 2.5
null
2008-08-08T01:29:26.803
2008-08-08T01:29:26.803
null
null
645
null
5,524
2
null
5,507
65
null
This question is bordering on religious :) But I'll give my thoughts anyway. I do see value in learing the Win32 API. Most, if not all, GUI libraries (managed or unmanaged) result in calls to the Win32 API. Even the most thorough libraries don't cover 100% of the API, and hence there are always gaps which need to be p...
null
CC BY-SA 2.5
null
2008-08-08T01:00:49.203
2008-08-08T01:00:49.203
null
null
611
null
5,546
2
null
5,544
1
null
What has probably happened is that the object provided when rendering the user control is actually null.
null
CC BY-SA 2.5
null
2008-08-08T01:32:05.567
2008-08-08T01:32:05.567
null
null
364
null
5,540
2
null
4,227
59
null
You can use an [OrderedDictionary](https://learn.microsoft.com/en-us/dotnet/api/system.collections.specialized.ordereddictionary). > Represents a collection of key/value pairs that are accessible by the key or index.
null
CC BY-SA 4.0
null
2008-08-08T01:23:22.887
2020-01-03T06:23:25.930
2020-01-03T06:23:25.930
5,407,188
608
null
5,572
2
null
4,911
0
null
I'm agreeing with Mike Stone also. My company recently implemented a new user table for outside clients (as opposed to internal users who authenticate through LDAP). For the external users, we chose to store the GUID as the primary key, and store the username as varchar with unique constraints on the username field. ...
null
CC BY-SA 2.5
null
2008-08-08T01:56:00.137
2008-08-08T01:56:00.137
null
null
702
null
5,532
2
null
5,527
22
null
J# is no longer included in VS2008. Unless you already have J# code, you should probably stay away. From [j# product page:](http://msdn.microsoft.com/en-us/vjsharp/default.aspx) > Since customers have told us that the existing J# feature set largely meets their needs and usage of J# is declining, Microsoft is r...
null
CC BY-SA 2.5
null
2008-08-08T01:11:58.680
2008-08-08T01:11:58.680
null
null
100
null
5,587
2
null
5,507
2
null
It's important to know what is available with the Windows API. I don't think you need to crank out code with it, but you should know how it works. The .NET Framework contains a lot of functionality, but it doesn't provide managed code equivalents for the entire Windows API. Sometimes you have to get a bit closer to ...
null
CC BY-SA 2.5
null
2008-08-08T02:21:47.853
2008-08-08T02:21:47.853
null
null
206
null
5,573
2
null
5,507
4
null
Learning a new programming language or technology is for one of three reasons: 1. Need: you're starting a project for building a web application and you don't know anything about ASP.NET 2. Enthusiasm: you're very excited about ASP.NET MVC. why not try that? 3. Free time: but who has that anyway. The best reason to le...
null
CC BY-SA 2.5
null
2008-08-08T01:56:33.723
2008-08-08T01:56:33.723
null
null
463
null
5,557
2
null
5,428
14
null
I still use Hungarian Notation when it comes to UI elements, where several UI elements are related to a particular object/value, e.g., lblFirstName for the label object, txtFirstName for the text box. I definitely can't name them both "FirstName" even if is the concern/responsibility of both objects. How do others a...
null
CC BY-SA 2.5
null
2008-08-08T01:44:58.443
2008-08-08T01:44:58.443
null
null
372
null
5,592
2
null
4,677
0
null
You could use modules to the same effect I believe, although its not "the singleton pattern" you can have global state that way (which is what a singleton is ! Naughty global state !).
null
CC BY-SA 2.5
null
2008-08-08T02:36:54.843
2008-08-08T02:36:54.843
null
null
699
null
5,585
2
null
5,494
1
null
You could just add a second host header and internal IP address to the site for internal non-ssl access ``` 172.16.3.1:443:portal.mycompany.com 172.16.3.2:80:internalportal ```
null
CC BY-SA 3.0
null
2008-08-08T02:19:37.140
2012-06-05T16:46:25.127
2012-06-05T16:46:25.127
866,022
419
null
5,604
2
null
5,600
0
null
I too have always heard having an auto-incrementing int is good for performance even if you don't actually use it.
null
CC BY-SA 2.5
null
2008-08-08T03:00:36.810
2008-08-08T03:00:36.810
null
null
590
null
5,527
1
5,532
null
26
4,216
I just saw a [comment of suggesting J#](https://stackoverflow.com/questions/5516/what-happened-to-all-of-the-java-developers-how-can-i-get-started-in-net#5522), and it made me wonder... is there a real, beneficial use of J# over Java? So, my feeling is that the only reason you would even consider using J# is that mana...
Is there a real benefit of using J#?
CC BY-SA 2.5
0
2008-08-08T01:04:02.300
2008-09-12T20:27:48.340
2017-05-23T10:29:17.857
-1
122
[ "java", "j#" ]
5,588
2
null
5,260
1
null
I've worked with the following formula (pseudocode) with some success: ``` now <- number of minutes since the work day started delay <- number of minutes in the delay day <- length of a work day in minutes x <- (now + delay) / day {integer division} y <- (now + delay) % day {modulo remainder} return startoftoday + x...
null
CC BY-SA 2.5
null
2008-08-08T02:22:08.383
2008-08-08T02:22:08.383
null
null
358
null
5,605
1
null
null
3
878
I recently discovered the org-mode in emacs and it works very well for me. I also like www.RememberTheMilk.com. I would like to be able to sync my org-mode file and RTM list. I know that RTM has its API exposed as web services. I am currently looking for a HTTP library that I could use to write my script. I found a cou...
HTTP Libraries for Emacs
CC BY-SA 2.5
null
2008-08-08T03:02:36.367
2009-02-18T19:55:57.653
2008-09-17T08:06:04.883
2,961
617
[ "http", "emacs" ]
5,609
2
null
5,251
0
null
Do you want something that has a server side component or entirely client driven? The best ones I have seen are all flash, alas. I have done little tricks with JS and GWT before, but there is only sophisticated I will get before I go hunting for a library to do it for me.
null
CC BY-SA 2.5
null
2008-08-08T03:09:49.707
2008-08-08T03:09:49.707
null
null
699
null
5,598
1
6,100
null
19
9,198
My gut feel is that document based web services are preferred in practice - is this other peoples experience? Are they easier to support? (I noted that SharePoint uses Any for the "document type" in its WSDL interface, I guess that makes it Document based). Also - are people offering both WSDL and Rest type services ...
Document or RPC based web services
CC BY-SA 3.0
0
2008-08-08T02:42:48.887
2014-01-14T21:18:44.873
2013-08-04T20:37:53.460
814,702
699
[ "web-services", "rest", "wsdl" ]
5,596
2
null
5,425
2
null
If you really want to keep the comment in your page you could use this instead of an HTML comment: ``` <div style="display:none">command --option value --option2 value2 --option3 </div> ``` Or even ``` <div class="comment">command --option value --option2 value2 --option3 </div> ``` and specify: ``` .comment {d...
null
CC BY-SA 2.5
null
2008-08-08T02:39:48.440
2008-08-08T02:39:48.440
null
null
571
null
5,614
2
null
5,179
5
null
I would do the form post in your code behind using HttpWebRequest class. Here is a good helper class to get your started: <[Link](https://web.archive.org/web/20210123193021/http://geekswithblogs.net/rakker/archive/2006/04/21/76044.aspx)> From there, you can just do a Response.Redirect, or perhaps you need to vary your ...
null
CC BY-SA 4.0
null
2008-08-08T03:25:07.447
2022-07-21T14:04:13.767
2022-07-21T14:04:13.767
4,751,173
285
null
5,600
1
5,607
null
41
37,526
I have several tables whose only unique data is a uniqueidentifier (a Guid) column. Because guids are non-sequential (and they're client-side generated so I can't use newsequentialid()), I have made a non-primary, non-clustered index on this ID field rather than giving the tables a clustered primary key. I'm wondering...
Tables with no Primary Key
CC BY-SA 2.5
0
2008-08-08T02:47:15.620
2018-10-21T06:16:54.107
2008-08-18T16:16:41.823
116
615
[ "sql-server", "indexing" ]
5,608
2
null
5,600
7
null
The primary key serves three purposes: - - - The first two can be specified in lots of ways, as you have already done. The third reason is good: - - A primary key doesn't have to be an auto-incrementing number field, so I would say that it's a good idea to specify your guid column as the primary key.
null
CC BY-SA 2.5
null
2008-08-08T03:04:55.037
2008-08-08T03:04:55.037
null
null
116
null
5,611
1
5,820
null
22
8,094
I know that just using `rand()` is predictable, if you know what you're doing, and have access to the server. I have a project that is dependent upon choosing a random number that is as unpredictable as possible. So I'm looking for suggestions, either other built-in functions or user functions, that can generate a r...
Better Random Generating PHP
CC BY-SA 3.0
0
2008-08-08T03:18:56.397
2017-01-28T05:32:42.033
2017-01-28T05:32:42.033
1,454,671
115
[ "php", "security", "random" ]
5,617
2
null
4,973
0
null
I can think of 2 options 1. Use javascript to resize the smaller column on page load. 2. Fake the equal heights by setting the background-color for the column on the container <div/> instead (<div class="separator"/>) with repeat-y
null
CC BY-SA 3.0
null
2008-08-08T03:35:30.997
2013-06-01T02:05:21.930
2013-06-01T02:05:21.930
2,156,756
653
null
5,637
2
null
5,629
2
null
I'd say use it and test extensively. Then let us know if it blew your house up or something. :')
null
CC BY-SA 2.5
null
2008-08-08T04:12:49.813
2008-08-08T04:12:49.813
null
null
61
null
5,626
2
null
5,619
4
null
First port of call would be to fire up [Fiddler](http://www.fiddlertool.com/fiddler/) and analyze the data going to and from the browser. Take a look at the headers, the url actually being called and the params (if any) being passed to the AJAX method and see if it all looks good before getting to the server. If that...
null
CC BY-SA 2.5
null
2008-08-08T03:47:22.703
2008-08-08T03:47:22.703
null
null
493
null
5,639
2
null
4,305
1
null
I've heard good things about Mosso . [http://www.mosso.com/](http://www.mosso.com/)
null
CC BY-SA 2.5
null
2008-08-08T04:16:14.487
2008-08-08T04:16:14.487
null
null
285
null
5,632
2
null
5,425
1
null
Comments at the top of the page before `<html>` will throw IE into quirks mode, which could explain why the page breaks, if that's where your comment appears. For more information, check out the "Triggering different rendering modes" on [this wikipedia page](http://en.wikipedia.org/wiki/Quirks_mode)
null
CC BY-SA 3.0
null
2008-08-08T04:06:14.087
2015-12-15T19:48:04.233
2015-12-15T19:48:04.233
1,016,716
77
null
5,629
1
14,192
null
132
71,985
It is supposed to be backwards compatible with HTML4 and XHTML. [John Resig posted about some of the benefits](http://ejohn.org/blog/html5-doctype/). As long as we don't use any of the new and not supported yet features, would there be any downside to start building sites with this doctype?
Any reason not to start using the HTML 5 doctype?
CC BY-SA 2.5
0
2008-08-08T04:03:10.583
2011-08-20T08:55:04.513
null
null
653
[ "html", "doctype" ]
5,641
2
null
5,194
0
null
Other than the ToList difference, #2 is a lot more readable and natural IMO
null
CC BY-SA 2.5
null
2008-08-08T04:19:00.847
2008-08-08T04:19:00.847
null
null
653
null
5,628
1
30,573
null
22
4,685
I want some links to include a fragment identifier. Like some of the URLs on this site: [Debugging: IE6 + SSL + AJAX + post form = 404 error](https://stackoverflow.com/questions/5619/ie6-ssl-ajax-post-form-404-error) Is there a way to do this with any of the built-in methods in MVC? Or would I have to roll my own HTM...
Is there a way to include a fragment identifier when using Asp.Net MVC ActionLink, RedirectToAction, etc.?
CC BY-SA 3.0
0
2008-08-08T03:54:08.090
2016-02-07T17:47:45.070
2017-05-23T11:53:12.433
-1
653
[ "asp.net-mvc" ]
5,640
2
null
2,328
0
null
I found a fairly elegant solution with [Telerik's RadAjaxManager](http://www.telerik.com/demos/aspnet/prometheus/Ajax/Examples/Common/ViewState/DefaultCS.aspx). It works quite nicely. Essentially you register each control which might invoke a postback, and then register each control which should be re-drawn after that ...
null
CC BY-SA 4.0
null
2008-08-08T04:18:51.737
2020-07-11T15:42:56.537
2020-07-11T15:42:56.537
10,325,630
67
null
5,646
2
null
5,251
0
null
There is also "sparklines" - they are available in lots of flavours (very simple charts though).
null
CC BY-SA 2.5
null
2008-08-08T04:22:53.787
2008-08-08T04:22:53.787
null
null
699
null
5,645
2
null
5,527
1
null
C# syntax is so close to Java (and better in some ways) that you might as well learn C# instead of J#. And since C# is more widely used, you can easily find Java --> C# tutorials on google or check out [http://www.asp.net/learn](http://www.asp.net/learn) and watch some videos.
null
CC BY-SA 2.5
null
2008-08-08T04:22:32.913
2008-08-08T04:22:32.913
null
null
396
null
5,654
2
null
5,629
3
null
My question to you would be why use it if you don't use any of the new/unsupported features. I'm not saying you couldn't play around with it, but why start building sites with a doctype that offers no benefits and could be supplemented by XHTML5.
null
CC BY-SA 2.5
null
2008-08-08T04:28:09.627
2008-08-08T04:28:09.627
null
null
657
null
5,607
2
null
5,600
33
null
When dealing with indexes, you have to determine what your table is going to be used for. If you are primarily inserting 1000 rows a second and not doing any querying, then a clustered index is a hit to performance. If you are doing 1000 queries a second, then not having an index will lead to very bad performance. T...
null
CC BY-SA 4.0
null
2008-08-08T03:04:29.047
2018-10-21T06:16:54.107
2020-06-20T09:12:55.060
-1
581
null
5,679
2
null
5,611
1
null
Variation on @KG, using the milliseconds since EPOCH as the seed for rand?
null
CC BY-SA 2.5
null
2008-08-08T04:48:14.203
2008-08-08T04:48:14.203
null
null
657
null
5,661
2
null
5,649
6
null
> Also, on the Intel Macs, can I use generic x86 asm? or is there a modified instruction set? Any information about post Intel Mac assembly helps. It's the same instruction set; it's the same chips.
null
CC BY-SA 2.5
null
2008-08-08T04:33:25.203
2008-08-08T04:33:25.203
null
null
257
null
5,665
2
null
5,649
1
null
The features available to use are dependent on your processor. Apple uses the same Intel stuff as everybody else. So yes, generic x86 should be fine (assuming you're not on a PPC :D). As far as tools go, I think your best bet is a good text editor that 'understands' assembly.
null
CC BY-SA 2.5
null
2008-08-08T04:35:51.297
2008-08-08T04:35:51.297
null
null
61
null
5,684
2
null
2,328
0
null
I don't understand why you would use a custom control for that, when the built-in ASP.NET AJAX UpdatePanel does the same thing. It just adds more complexity, gives you less support, and makes it more difficult for others to work on your app.
null
CC BY-SA 4.0
null
2008-08-08T04:56:31.880
2021-10-25T12:06:09.353
2021-10-25T12:06:09.353
17,169,050
60
null
5,619
1
5,626
null
6
3,667
The program in question tries to post form data via an AJAX call to a target procedure contained in the same package as the caller. This is done for a site that uses a secure connection (HTTPS). The technology used here is [PLSQL](http://www.orafaq.com/wiki/PL/SQL_FAQ) and the [DOJO](http://dojotoolkit.org/) JavaScrip...
Debugging: IE6 + SSL + AJAX + post form = 404 error
CC BY-SA 3.0
null
2008-08-08T03:38:57.747
2016-05-13T17:20:15.480
2016-05-13T17:20:15.480
634,576
null
[ "ajax", "debugging", "internet-explorer", "ssl", "internet-explorer-6" ]
5,649
1
5,756
null
69
122,496
Does anyone know of any good tools (I'm looking for IDEs) to write assembly on the Mac. Xcode is a little cumbersome to me. Also, on the Intel Macs, can I use generic x86 asm? Or is there a modified instruction set? Any information about post Intel. Also: I know that on windows, asm can run in an emulated environmen...
x86 Assembly on a Mac
CC BY-SA 3.0
0
2008-08-08T04:25:11.630
2021-10-17T01:46:52.130
2017-12-13T16:11:57.523
1,753,960
703
[ "xcode", "macos", "x86", "assembly" ]
5,688
2
null
5,674
0
null
It doesn't appear to be possible.
null
CC BY-SA 2.5
null
2008-08-08T05:01:22.010
2008-08-08T05:01:22.010
null
null
106
null
5,687
2
null
5,629
1
null
if you're going to use the doctype, experiment with the features. As long as they don't go into a production site, and you test them thoroughly, have at it.
null
CC BY-SA 2.5
null
2008-08-08T05:00:37.673
2008-08-08T05:00:37.673
null
null
50
null
5,686
2
null
5,674
4
null
According to [this support message](http://our.fogbugz.com/default.asp?fogbugz.4.25208), the feature is not yet currently implemented: > The FogBugz wiki does not currently support anchors within a document, unfortunately. It's definitely on the list of features we're considering for the next release, though.
null
CC BY-SA 2.5
null
2008-08-08T05:00:35.850
2008-08-08T05:00:35.850
null
null
457
null
5,674
1
11,544,702
null
4
1,084
The StackOverflow transcripts are enormous, and sometimes I want to link to a little bit within it. How do I create an HTML anchor in a FogBugz wiki page?
How do I create an HTML anchor in a FogBugz wiki page?
CC BY-SA 2.5
null
2008-08-08T04:42:52.123
2012-07-18T15:18:14.783
null
null
257
[ "wiki", "fogbugz" ]
5,682
1
5,693
null
2
648
I'm not sure if it's my system, although I haven't done anything unusual with it, but I've started noticing incorrectly rendered characters popping up in web pages, text-files, [like this](http://ejohn.org/blog/html5-doctype/): [http://www.kbssource.com/strange-characters.gif](http://www.kbssource.com/strange-characte...
Is it just me, or are characters being rendered incorrectly more lately?
CC BY-SA 2.5
null
2008-08-08T04:51:27.973
2008-11-05T14:40:26.403
2008-11-05T14:40:26.403
23,855
117
[ "unicode", "utf-8", "fonts" ]
5,667
1
80,353
null
4
5,027
What's the best way to do the semantic equivalent of the traditional sleep() system call from within an Informix SPL routine? In other words, simply "pause" for N seconds (or milliseconds or whatever, but seconds are fine). I'm looking for a solution that does involve linking some new (perhaps written by me) C code ...
Sleep from within an Informix SPL procedure
CC BY-SA 3.0
0
2008-08-08T04:36:30.593
2018-07-25T16:48:46.013
2011-11-21T01:35:22.887
1,288
164
[ "informix", "spl" ]
5,694
1
5,695
null
140
175,133
I got this error today when trying to open a Visual Studio 2008 in Visual Studio 2005: > The imported project "C:\Microsoft.CSharp.targets" was not found.
The imported project "C:\Microsoft.CSharp.targets" was not found
CC BY-SA 3.0
0
2008-08-08T05:08:45.020
2022-09-12T10:13:23.253
2015-06-17T08:54:46.930
2,307,070
493
[ "c#", "visual-studio" ]
5,696
2
null
5,682
0
null
I'm fairly positive it's nothing you can do. I've seen this on the front page of digg alot recently. It more than likely has to do with a character being encoded improperly. Not necessarily a factor of the font, just a mistake made somewhere in translation.
null
CC BY-SA 2.5
null
2008-08-08T05:10:36.983
2008-08-08T05:10:36.983
null
null
50
null
5,699
2
null
5,690
5
null
What type is selectedYear? A DateTime? If so then you might need to convert to a string.
null
CC BY-SA 2.5
null
2008-08-08T05:21:07.477
2008-08-08T05:21:07.477
null
null
653
null
5,707
2
null
5,706
1
null
The reason was that the value I was retrieving was from a form element, but the submit was done through a link + JQuery, not through a form button submit.
null
CC BY-SA 2.5
null
2008-08-08T05:42:03.847
2008-08-08T05:42:03.847
null
null
364
null
5,697
2
null
5,629
-16
null
Personally I'd say no. There is no clear benefit to HTML5 and in fact would go as far as to say that the whole thing is botched from the start. Having specialised tags for header, footers and sidebars is a huge mistake - you've got them already in the form of tags (div) and names (classes/id's). Why do we need the spe...
null
CC BY-SA 2.5
null
2008-08-08T05:10:52.070
2008-08-08T05:10:52.070
null
null
342
null
5,693
2
null
5,682
2
null
It appears that for this particular author, the text was edited in some editor that assumed it wasn't UTF8, and then re-wrote it out in UTF8. I'm basing this off the fact that if I tell my browser to interpret the page as different common encodings, none make it display correctly. This tells me that some conversion was...
null
CC BY-SA 2.5
null
2008-08-08T05:08:02.807
2008-08-08T05:13:32.623
2008-08-08T05:13:32.623
457
457
null
5,698
2
null
5,649
0
null
Forget about finding a IDE to write/run/compile assembler on Mac. But, remember mac is UNIX. See [http://asm.sourceforge.net/articles/linasm.html](http://asm.sourceforge.net/articles/linasm.html). A decent guide (though short) to running assembler via GCC on Linux. You can mimic this. Macs use Intel chips so you want t...
null
CC BY-SA 2.5
null
2008-08-08T05:18:41.320
2008-08-08T05:18:41.320
null
null
534
null
5,695
2
null
5,694
115
null
Open your csproj file in notepad (or notepad++) Find the line: ``` <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> ``` and change it to ``` <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> ```
null
CC BY-SA 2.5
null
2008-08-08T05:10:20.760
2008-08-08T05:10:20.760
null
null
493
null
5,704
1
null
null
7
590
I have been looking for a way to utilize a simple markup language, or just plain HTML, when displaying text in WinForm applications. I would like to avoid embedding a web browser control since in most of the case I just want to highlight a single word or two in a sentence. I have looked at using a RTFControl but I beli...
Is there a lightweight, preferable open source, formattable label control for .NET?
CC BY-SA 4.0
null
2008-08-08T05:36:12.487
2021-01-07T08:15:19.127
2021-01-07T08:15:19.127
null
143
[ ".net" ]
5,690
1
5,699
null
4
3,268
I have a route that I am calling through a RedirectToRoute like this: ``` return this.RedirectToRoute("Super-SuperRoute", new { year = selectedYear }); ``` I have also tried: ``` return this.RedirectToRoute("Super-SuperRoute", new { controller = "Super", action = "SuperRoute", id = "RouteTopic", year = selectedYear...
MVC Preview 4 - No route in the route table matches the supplied values
CC BY-SA 3.0
null
2008-08-08T05:03:42.783
2015-08-31T16:26:12.983
2015-08-31T16:26:12.983
2,185,245
364
[ "asp.net-mvc", "asp.net-mvc-routing" ]
5,708
2
null
5,704
7
null
Well, just use HTML. We have used the following 'FREE' control in some of our applications, and it's just beautiful. We can define the UI in HTML Markup and then render it using this control: [http://www.terrainformatica.com/htmlayout/main.whtm](http://www.terrainformatica.com/htmlayout/main.whtm) Initially, we star...
null
CC BY-SA 3.0
null
2008-08-08T05:46:48.237
2012-01-22T00:59:13.380
2012-01-22T00:59:13.380
1,154,847
380
null
5,706
1
5,709
null
36
27,787
I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Params. What are the differences between these methods that could cause this?
When do Request.Params and Request.Form differ?
CC BY-SA 2.5
0
2008-08-08T05:40:49.713
2012-12-21T10:07:41.333
2012-12-21T10:07:41.333
849,986
364
[ "c#", "asp.net", "request" ]
5,721
2
null
5,428
1
null
I use Hungarian Naming for UI elements like buttons, textboxes and lables. The main benefit is grouping in the Visual Studio Intellisense Popup. If I want to access my lables, I simply start typing lbl.... and Visual Studio will suggest all my lables, nicley grouped together. However, after doing more and more Silverl...
null
CC BY-SA 2.5
null
2008-08-08T06:09:49.703
2008-08-08T06:09:49.703
null
null
1,199,387
null
5,720
2
null
5,682
0
null
It looked for a while like the underscore and angle bracket problem had gone away, but it seems it might not be fixed. here's a small sample, which should look like this: --- #include ``` ____ #include <stdio.h> ``` Update: it looks like it's fixed in display mode, and only broken in edit mode
null
CC BY-SA 2.5
null
2008-08-08T06:07:20.440
2008-08-08T07:44:27.220
2008-08-08T07:44:27.220
116
116
null