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
26,801
2
null
26,771
1
null
If you are training new people in your company, then attaching them as intern resources on a live project is very rewarding. This increases the work load of the main developers a little (because they have to review all the work that the intern does), but goes a long way in terms of training and development of the pers...
null
CC BY-SA 2.5
null
2008-08-25T20:32:53.767
2008-08-25T20:32:53.767
null
null
380
null
26,803
2
null
26,799
13
null
1. All important files are in version control (Subversion) My subversion layout generally matches the file layout on my web server so I can just do a checkout and all of my library files and things are in the correct places. 2. Twice-daily backups to an external hard drive 3. Nightly rsync backups to a remote server. ...
null
CC BY-SA 2.5
null
2008-08-25T20:34:33.340
2008-08-25T20:44:20.930
2008-08-25T20:44:20.947
305
305
null
26,796
1
26,807
null
35
23,707
What is the best way to use ResolveUrl() in a Shared/static function in Asp.Net? My current solution for VB.Net is: ``` Dim x As New System.Web.UI.Control x.ResolveUrl("~/someUrl") ``` Or C#: ``` System.Web.UI.Control x = new System.Web.UI.Control(); x.ResolveUrl("~/someUrl"); ``` But I realize that isn't the bes...
ASP.Net: Using System.Web.UI.Control.ResolveUrl() in a shared/static function
CC BY-SA 2.5
0
2008-08-25T20:31:32.460
2020-02-28T10:47:54.970
null
null
1,414
[ "c#", "asp.net", "vb.net", "static", "resolveurl" ]
26,785
2
null
26,762
12
null
I used Perforce at my last 3 jobs (my current job I'm using Subversion, which I don't like nearly as much.) I'm a big fan of Perforce, and moving from SourceSafe it will seem like Nirvana. Just getting atomic checkin will be a big boost for your company. Otherwise, Perforce is fast, it has good tools, and the workflow ...
null
CC BY-SA 2.5
null
2008-08-25T20:26:40.023
2008-08-25T20:26:40.023
null
null
1,329,401
null
26,800
1
26,805
null
12
9,709
I'm using XPath in .NET to parse an XML document, along the lines of: ``` XmlNodeList lotsOStuff = doc.SelectNodes("//stuff"); foreach (XmlNode stuff in lotsOStuff) { XmlNode stuffChild = stuff.SelectSingleNode("//stuffChild"); // ... etc } ``` The issue is that the XPath Query for `stuffChild` is always retu...
XPath and Selecting a single node
CC BY-SA 3.0
0
2008-08-25T20:32:36.170
2017-04-28T12:33:36.277
2017-04-28T12:33:36.277
3,641,067
1,965
[ ".net", "xpath" ]
26,802
2
null
26,762
1
null
Perforce works fine with Visual Studio, including "offline" mode where VS will make your local files writable and sync with the server later. I tend to use the Perforce GUI for many operations (submits, diffs) just because it's quicker/better, but the process of the IDE checking things out is seamless. Perforce in my...
null
CC BY-SA 2.5
null
2008-08-25T20:33:03.220
2008-08-25T20:33:03.220
null
null
1,043
null
26,812
2
null
26,796
3
null
I tend to use HttpContext.Current to get the page, then run any page/web control methods off that.
null
CC BY-SA 2.5
null
2008-08-25T20:37:09.967
2008-08-25T20:37:09.967
null
null
905
null
26,795
1
null
null
2
1,702
I have an extender (IExtenderProvider) which extends certain types of controls with additional properties. For one of these properties, I have written a UITypeEditor. So far, all works just fine. The extender also has a couple of properties itself, which I am trying to use as a sort of default for the UITypeEditor....
UITypeEditor and IExtenderProvider
CC BY-SA 3.0
0
2008-08-25T20:31:14.817
2011-05-26T14:09:44.133
2011-05-26T14:09:44.133
null
2,899
[ ".net", "winforms", "design-time", "uitypeeditor", "iextenderprovider" ]
26,807
2
null
26,796
48
null
I use [System.Web.VirtualPathUtility.ToAbsolute](http://msdn.microsoft.com/en-us/library/system.web.virtualpathutility.aspx).
null
CC BY-SA 2.5
null
2008-08-25T20:35:46.037
2008-08-25T20:35:46.037
null
null
60
null
26,809
1
26,832
null
46
59,470
I frequently have problems dealing with `DataRows` returned from `SqlDataAdapters`. When I try to fill in an object using code like this: ``` DataRow row = ds.Tables[0].Rows[0]; string value = (string)row; ``` What is the best way to deal with `DBNull's` in this type of situation.
What is the best way to deal with DBNull's
CC BY-SA 3.0
0
2008-08-25T20:36:30.840
2016-03-14T09:58:38.200
2016-03-14T09:58:38.200
5,233,656
2,191
[ "c#", ".net", "sql-server" ]
26,808
2
null
26,799
1
null
A little preparation helps: - - - - Backup: - - Failure and Recovery - - Of course there are tweaks here and there (incremental backup, archiving, etc.) which you have to do to make this process real.
null
CC BY-SA 2.5
null
2008-08-25T20:36:00.157
2008-08-25T20:36:00.157
null
null
380
null
26,810
2
null
26,799
1
null
If you are talking absolute least amount of restore time... I've often setup machines to do Ghost (Symantec or something similar) backups on a nightly basis to either an image or just a direct copy to another drive. That way all you have to do is reimage the machine from the image or just swap the drives. You can be ...
null
CC BY-SA 2.5
null
2008-08-25T20:36:54.957
2008-08-25T20:36:54.957
null
null
194
null
26,816
1
26,830
null
19
21,726
is there a way to abort threads created with QueueUserWorkItem? Or maybe I don't need to? What happens if the main application exits? Are all thread created from it aborted automatically?
How to abort threads created with ThreadPool.QueueUserWorkItem
CC BY-SA 2.5
0
2008-08-25T20:38:09.370
2009-06-10T14:30:01.890
2008-08-28T17:59:13.347
1,782
1,782
[ "c#", "multithreading" ]
26,823
2
null
26,799
0
null
Maybe just a simple hardware hard disk raid would be a good start. This way if one drive fails, you still have the other drive in the raid. If something other than the drives fail you can pop these drives into another system and get your files quickly.
null
CC BY-SA 2.5
null
2008-08-25T20:39:12.177
2008-08-25T20:39:12.177
null
null
1,989
null
26,820
2
null
26,816
2
null
Yes, they will. However, if you are using unmanaged resources in those threads, you may end up in a lot of trouble.
null
CC BY-SA 2.5
null
2008-08-25T20:38:49.523
2008-08-25T20:38:49.523
null
null
380
null
26,819
2
null
26,799
6
null
I use [Mozy](http://mozy.com/), and rarely think about it. That's one weight off my shoulders that I won't ever miss.
null
CC BY-SA 2.5
null
2008-08-25T20:38:28.137
2008-08-25T20:38:28.137
null
null
60
null
26,805
2
null
26,800
10
null
`//` at the beginning of an XPath expression starts from the document root. Try ".//stuffChild". . is shorthand for self::node(), which will set the context for the search, and // is shorthand for the descendant axis. So you have: ``` XmlNode stuffChild = stuff.SelectSingleNode(".//stuffChild"); ``` which transla...
null
CC BY-SA 3.0
null
2008-08-25T20:35:29.003
2016-01-20T14:50:24.227
2016-01-20T14:50:24.227
2,392,870
96
null
26,830
2
null
26,816
15
null
You don't need to abort them. When your application exits, .NET will kill any threads with IsBackground = true. The .NET threadpool has all its threads set to IsBackground = true, so you don't have to worry about it. Now if you're creating threads by newing up the Thread class, then you'll either need to abort them or...
null
CC BY-SA 2.5
null
2008-08-25T20:41:02.233
2008-08-25T20:41:02.233
null
null
536
null
26,826
1
26,838
null
3
587
What is the general feeling amongst developers regarding the changing of files in the 12 hive. For example if you were asked to remove the sign is a different user menu item, you would need to modify the relevent user control on the filesystem. Now if you just go and modify it via notepad or copy over and then if you ...
Modifying SharePoint System Files
CC BY-SA 2.5
null
2008-08-25T20:40:46.120
2008-09-22T15:36:06.420
null
null
2,758
[ "sharepoint" ]
26,828
2
null
22,278
1
null
You could also take a look at Prado. [http://www.pradosoft.com/](http://www.pradosoft.com/) It uses Active Record and DAO. Also if you use .Net then some of the formatting and conventions are similar.
null
CC BY-SA 2.5
null
2008-08-25T20:40:54.417
2008-08-25T20:40:54.417
null
null
2,863
null
26,833
2
null
26,799
0
null
I'm just sorting this out at work for the team. An image with all common tools is on Network. (We actually have a hotswap machine ready). All work in progress is on network too. So Developers machine goes boom. Use hotswap machine and continue. Downtime ~15 mins + coffee break.
null
CC BY-SA 2.5
null
2008-08-25T20:42:21.450
2008-08-25T20:42:21.450
null
null
1,116
null
26,832
2
null
26,809
38
null
Nullable types are good, but only for types that are not nullable to begin with. To make a type "nullable" append a question mark to the type, for example: ``` int? value = 5; ``` I would also recommend using the "`as`" keyword instead of casting. You can only use the "as" keyword on nullable types, so make sur...
null
CC BY-SA 3.0
null
2008-08-25T20:41:24.323
2013-12-26T16:38:31.487
2017-05-23T11:53:17.133
-1
392
null
26,813
2
null
26,800
2
null
The `//` you use in front of `stuffChild` means you're looking for `stuffChild` elements, starting from the root. If you want to start from the current node (decendants of the current node), you should use `.//`, as in: ``` stuff.SelectSingleNode(".//stuffChild"); ```
null
CC BY-SA 2.5
null
2008-08-25T20:37:10.357
2008-08-25T20:37:10.357
null
null
2,597
null
26,836
2
null
15,674
4
null
We just have one repository with everything in it, pretty much exactly like your example. I can't see anything wrong with this - the only requirement for the revision number is that it is - - - It doesn't matter if it increases by 1 or 50 with each commit as far as I'm concerned. @grom: > Then whenever I start a ...
null
CC BY-SA 2.5
null
2008-08-25T20:43:29.543
2008-08-25T20:43:29.543
null
null
234
null
26,827
2
null
24,207
2
null
I think there's probably a bug somewhere in your composition of sec and usec. I can't really say what exactly without knowing the kinds of errors you're seeing. A rough guess would be that usec can never be > 999999, so you're relying on overflow to know when to adjust sec. It could also just be a problem with your dur...
null
CC BY-SA 2.5
null
2008-08-25T20:40:53.810
2008-08-27T13:51:11.093
2008-08-27T13:51:11.093
2,146
2,146
null
26,839
2
null
26,816
3
null
The threadpool uses background threads. Hence, they will all be closed automatically when the application exits. If you want to abort a thread yourself, you'll have to either manage the thread yourself (so you can call Thread.Abort() on the thread object) or you will have to set up some form of notification mechanism ...
null
CC BY-SA 2.5
null
2008-08-25T20:44:37.513
2008-08-25T20:44:37.513
null
null
611
null
26,817
2
null
26,800
1
null
If "stuffChild" is a child node of "stuff", then your xpath should just be: ``` XmlNode stuffChild = stuff.SelectSingleNode("stuffChild"); ```
null
CC BY-SA 2.5
null
2008-08-25T20:38:13.347
2008-08-25T20:38:13.347
null
null
803
null
26,834
1
26,996
null
3
982
I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data. There's no clear single model (that maps to a table at least) that seems to make sense as the starting point for...
How to represent cross-model information in MVC?
CC BY-SA 2.5
null
2008-08-25T20:42:40.077
2015-10-08T07:27:06.227
2008-08-26T09:53:25.107
1,060
1,060
[ "ruby-on-rails", "model-view-controller", "design-patterns" ]
26,841
2
null
26,809
1
null
You can also test with [Convert.IsDBNull (MSDN)](http://msdn.microsoft.com/en-us/library/system.convert.isdbnull.aspx).
null
CC BY-SA 2.5
null
2008-08-25T20:45:16.873
2008-08-25T20:45:16.873
null
null
1,291
null
26,825
1
26,912
null
2
4,616
I have a CollapsiblePanelExtender that will not collapse. I have "collapsed" set to true and all the ControlID set correctly. I try to collapse and it goes through the animation but then expands almost instantly. This is in an User Control with the following structure. ``` <asp:UpdatePanel ID="UpdatePanel1" runat="...
Uncollapsible CollapsiblePanelExtender
CC BY-SA 2.5
null
2008-08-25T20:39:24.593
2015-02-05T09:51:06.833
2013-09-27T10:08:34.777
71,059
2,894
[ "asp.net" ]
26,838
2
null
26,826
2
null
I have done a bit of SharePoint development, and I must tell you that messing with the 12-hive is a ticket to a world of pain if you ever want to move the app. I'd rather hack up some javascript to hide it, at least that can be bound to the master page, which is much more portable. And remember, you never know when th...
null
CC BY-SA 2.5
null
2008-08-25T20:44:09.480
2008-08-25T20:44:09.480
null
null
960
null
26,818
2
null
26,799
2
null
I use [TimeMachine](http://www.apple.com/macosx/features/timemachine.html).
null
CC BY-SA 2.5
null
2008-08-25T20:38:27.403
2008-08-25T20:38:27.403
null
null
2,168
null
26,846
2
null
26,834
0
null
Controllers don't have to be lightweight. However if you have some calculations that only rely on the model/s then you probably just need some sort of model wrapper for the models to perform the calculation. You can then place that into the API for the view so the view gets the end result.
null
CC BY-SA 2.5
null
2008-08-25T20:46:13.033
2008-08-25T20:46:13.033
null
null
1,143
null
26,850
2
null
26,843
1
null
Note sure about #2 but you can download [SQL Server Express 2005 here](http://www.microsoft.com/sql/editions/express/default.mspx).
null
CC BY-SA 2.5
null
2008-08-25T20:47:01.953
2008-08-25T20:47:01.953
null
null
305
null
26,835
2
null
26,771
2
null
Some good rewarding projects, in terms of what you can learn and which are quite scalable in terms of complexity, features are: - - - - The key is to pick a project simple enough, so that some of its features are immediately apparent, when you look at the project title. And when really given a thought, will reveal m...
null
CC BY-SA 2.5
null
2008-08-25T20:42:56.677
2008-08-25T20:42:56.677
null
null
1,311
null
26,845
1
27,033
null
37
2,935
I'd like to hear from people who are using distributed version control (aka distributed revision control, decentralized version control) and how they are finding it. What are you using, Mercurial, Darcs, Git, Bazaar? Are you still using it? If you've used client/server rcs in the past, are you finding it better, worse ...
Do you use distributed version control?
CC BY-SA 2.5
0
2008-08-25T20:46:10.427
2009-05-08T16:37:04.097
2009-04-10T16:30:58.597
287
1,329,401
[ "version-control", "dvcs", "revision" ]
26,843
1
26,862
null
3
627
I am starting a new project at work and I want to start using some of the newer technologies I've been reading about, LINQ and Generics being the main ones. Up until now I have been developing these types of applications with MySQL as clients were unwilling to pay the large licence costs for MSSQL. I have played a...
New Project : MySQL or SQL 2005 Express
CC BY-SA 3.0
0
2008-08-25T20:45:47.603
2015-09-21T03:02:00.450
2015-09-21T02:31:55.163
4,779,472
2,720
[ "mysql", "sql-server" ]
26,851
2
null
26,762
4
null
We used Perforce for well over a year before switching to SVN recently. While I did like the tools (for example, visual diff and merge and the admin bits), we had some really tiresome issues with binding, as Chris mentions; otherwise, the VS integration is satisfactory. If anything, I find working with SVN easier and m...
null
CC BY-SA 2.5
null
2008-08-25T20:47:19.380
2008-08-25T20:47:19.380
null
null
2,899
null
26,842
1
30,538
null
2
2,000
I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the [AuthCAS](http://search.cpan.org/dist/AuthCAS) Perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the ticket my script returns with the follo...
Why can't I connect to my CAS server with Perl's AuthCAS?
CC BY-SA 3.0
null
2008-08-25T20:45:32.927
2011-11-21T03:38:09.910
2011-11-21T03:38:09.910
50,049
171
[ "perl", "apache", "authentication", "ssl", "cgi" ]
26,854
1
129,235
null
0
988
Trying to use a guid as a resource id in a rest url but cant find any resource on how to. My best right now (not working though) is: [http://localhost:49157/PhotogalleryDS.svc/gallery](http://localhost:49157/PhotogalleryDS.svc/gallery)('1d03beb3-6d63-498b-aad7-fab0b1480996') (I've tried duouble/single quotes. And also ...
guid REST URL for ado.net dataservice call?
CC BY-SA 2.5
null
2008-08-25T20:48:17.240
2008-09-24T19:14:15.677
2008-08-26T07:28:29.073
403
403
[ "rest", "wcf-data-services" ]
26,847
2
null
7,913
1
null
I use a post-commit script similar to this [one](http://gurge.com/blog/2006/09/10/subversion-post-commit-email-hook-in-ruby/). It's sends a nice HTML email. I updated it some where it highlights code that was removed in red and highlights code that was added in blue.
null
CC BY-SA 3.0
null
2008-08-25T20:46:24.203
2013-10-09T11:20:13.503
2013-10-09T11:20:13.503
761,095
456,684
null
26,853
2
null
26,809
9
null
Add a reference to `System.Data.DataSetExtensions`, that adds Linq support for querying data tables. This would be something like: ``` string value = ( from row in ds.Tables[0].Rows select row.Field<string>(0) ).FirstOrDefault(); ```
null
CC BY-SA 2.5
null
2008-08-25T20:47:40.160
2008-08-25T20:47:40.160
null
null
905
null
26,852
2
null
26,771
4
null
As has been stated a few times, what you are trying to teach the beginner is very important to the project. My advice to you for planning something like this: 1) Avoid making a computer game A computer game, while fun to build, doesn't reward the programmer with results early on (it's very complex). You want to conc...
null
CC BY-SA 2.5
null
2008-08-25T20:47:34.450
2008-08-25T20:47:34.450
null
null
1,429
null
26,848
2
null
26,834
1
null
Why not create a model that doesn't inherit [ActiveRecord::Base](http://api.rubyonrails.org/classes/ActiveRecord/Base.html) and execute the logic there (think the Cart class in Agile...With Rails).
null
CC BY-SA 3.0
null
2008-08-25T20:46:38.337
2015-10-08T07:25:21.930
2015-10-08T07:25:21.930
67,579
1,344
null
26,858
2
null
26,799
45
null
There's an important distinction between backing up your development machine and backing up your work. For a development machine your best bet is an imaging solution that offers as near a "one-click-restore" process as possible. TimeMachine (Mac) and Windows Home Server (Windows) are both excellent for this purpose. N...
null
CC BY-SA 2.5
null
2008-08-25T20:49:56.253
2009-03-14T00:38:55.167
2009-03-14T00:38:55.167
1,043
1,043
null
26,861
2
null
26,845
1
null
Using Subversion with SourceForge and other servers over a number of different connections with medium sized teams and it's working very well.
null
CC BY-SA 2.5
null
2008-08-25T20:52:06.420
2008-08-25T20:52:06.420
null
null
1,463
null
26,855
1
26,960
null
4
442
I'm currently using the module `URI::URL` to generate a full URL from a relative URL; however, it isn't running as fast as I'd like it to be. Does anyone know another way to do this that may be faster?
What's the fastest way to determine a full URL from a relative URL (given a base URL)
CC BY-SA 3.0
null
2008-08-25T20:49:17.673
2014-03-08T23:52:52.063
2014-03-08T23:52:52.063
1,644,214
2,901
[ "regex", "performance", "perl", "uri", "perl-module" ]
26,859
2
null
26,422
2
null
bdukes site has more options, but here are the ones MSDN has published... [http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx](http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx)
null
CC BY-SA 2.5
null
2008-08-25T20:51:26.607
2008-08-25T20:51:26.607
null
null
2,849
null
26,863
1
26,868
null
130
138,778
I had a plugin installed in Visual Studio 2008, and it created some extra dockable windows. I have uninstalled it, and I can't get rid of the windows it created - I close them, but they always come back. They're just empty windows now, since the plugin is no longer present, but nothing I've tried gets rid of them. I...
How do I REALLY reset the Visual Studio window layout?
CC BY-SA 2.5
0
2008-08-25T20:53:21.067
2022-02-18T13:46:42.280
2008-08-29T14:52:39.077
2,348
2,348
[ "visual-studio" ]
26,856
2
null
25,846
0
null
Don't export CFLAGS from your .bash_profile or any other dot file. Your home directory could live on for decades, the system you're currently using is transient. There's a guide on Apple's web site, [Porting UNIX/Linux Applications to Mac OS X](http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/)...
null
CC BY-SA 2.5
null
2008-08-25T20:49:37.423
2008-08-25T20:49:37.423
null
null
714
null
26,860
1
null
null
4
1,391
I'm a web developer, and I want to make the web sites I develop more accessible to those using screen readers. What limitations do screen readers have that I should be most aware of, and what can I do to avoid hitting these limitations. This question was sparked by reading another question about [non-image based capt...
Limitations of screen readers
CC BY-SA 2.5
0
2008-08-25T20:51:33.923
2014-03-03T22:08:44.833
2017-05-23T12:01:23.407
-1
1,862
[ "html", "browser", "accessibility" ]
26,857
1
26,881
null
36
103,872
Using C# and ASP.NET I want to programmatically fill in some values (4 text boxes) on a web page (form) and then 'POST' those values. How do I do this? Edit: Clarification: There is a service (www.stopforumspam.com) where you can submit ip, username and email address on their 'add' page. I want to be able to create a ...
How do you programmatically fill in a form and 'POST' a web page?
CC BY-SA 2.5
0
2008-08-25T20:49:47.453
2020-03-22T16:14:57.850
2008-08-25T21:00:10.130
1,463
1,463
[ "c#", "asp.net" ]
26,865
2
null
15,731
4
null
Actually I think [Poster](https://addons.mozilla.org/en-US/firefox/addon/2691) is what you're looking for. [A Screen shot of an older Poster version](https://addons.mozilla.org/img/uploads/previews/full/19/19951.png)
null
CC BY-SA 2.5
null
2008-08-25T20:53:56.150
2011-01-26T07:51:42.697
2011-01-26T07:51:42.697
298,479
459
null
26,869
2
null
26,843
1
null
Sql express has more features, and is a lot more powerful, but will only run on windows boxes. If you ever need to scale Sql express can be switched easily to a commercial variant. MySql doesn't support half the features, but does have most of the basic ones you actually need, and will run on windows or *nix boxes. It...
null
CC BY-SA 2.5
null
2008-08-25T20:55:33.260
2008-08-25T20:55:33.260
null
null
905
null
26,870
2
null
26,799
2
null
For my home and development machines I use [Acronis True Image](http://www.acronis.com/homecomputing/products/trueimage/). In my opinion, with the HD cheap prices nothing replaces a full incremental daily HD backup.
null
CC BY-SA 2.5
null
2008-08-25T20:55:33.337
2008-08-25T20:55:33.337
null
null
1,291
null
26,871
2
null
26,863
1
null
If you've ever backed up your settings (Tools -> Import and Export Settings), you can restore the settings file to get back to a prior state. This is the only thing that I've found to work.
null
CC BY-SA 2.5
null
2008-08-25T20:55:45.990
2008-08-25T20:55:45.990
null
null
2,849
null
26,862
2
null
26,843
6
null
The answer to the question on any project in regards to what platform/technologies to use is: 1. Yes express can still be downloaded. 2. Will it fit your requirements? That depends on your requirements, of course. I have deployed MSSQL2005 Express on several enterprise level projects which I knew had a fixed databas...
null
CC BY-SA 3.0
null
2008-08-25T20:52:14.530
2015-09-21T03:02:00.450
2015-09-21T03:02:00.450
4,779,472
2,213
null
26,878
2
null
26,843
1
null
Why not go to Sql server express 2008?
null
CC BY-SA 2.5
null
2008-08-25T21:00:51.967
2008-08-25T21:00:51.967
null
null
null
null
26,872
2
null
26,685
14
null
Separation of concerns is the biggy. Being able to tease these components apart makes the code easier to re-use and independently test. If you don't actually know what MVC is, be careful about trying to understand people's opinions as there is still some contention about what the "Model" is (whether it is the business...
null
CC BY-SA 3.0
null
2008-08-25T20:57:21.353
2015-02-04T21:39:22.387
2015-02-04T21:39:22.387
1,549,726
1,143
null
26,880
2
null
26,685
1
null
One con I can think of is if you need really fast access to your data in your view (for example, game animation data like bone positions.) It is very inefficient to keep a layer of separation in this case. Otherwise, for most other applications which are more data driven than graphics driven, it seems like a logical w...
null
CC BY-SA 2.5
null
2008-08-25T21:01:27.473
2008-08-25T21:01:27.473
null
null
1,329,401
null
26,875
1
26,921
null
2
1,286
I have a large exiting C++ project involving: - - - It all builds fine on Windows using VS8, Linux using QMake (project uses Qt a lot). I also build it on OS X using QMake but I was wanting to setup an Xcode project to handle it in an IDE. I'm struggling to setup proper configuration to easily define dependencies, ...
Setting up a large Xcode project
CC BY-SA 3.0
0
2008-08-25T20:58:03.130
2011-10-30T22:01:39.600
2011-10-30T22:01:18.603
345,188
2,711
[ "xcode" ]
26,877
1
26,884
null
14
3,512
In C#, what is the difference (if any) between these two lines of code? ``` tmrMain.Elapsed += new ElapsedEventHandler(tmrMain_Tick); ``` and ``` tmrMain.Elapsed += tmrMain_Tick; ``` Both appear to work exactly the same. Does C# just assume you mean the former when you type the latter?
Difference between wiring events with and without "new"
CC BY-SA 3.0
0
2008-08-25T20:59:54.247
2014-07-06T20:50:59.463
2014-07-06T20:50:59.463
661,933
369
[ "c#", "events", "syntax", "delegates" ]
26,873
2
null
26,685
3
null
I think another benefit of using the MVC pattern is that it opens up the doors to other to the design, such as MVP/Presenter first and the many other MV* patterns. Without this fundamental segregation of the design "components" the adoption of these techniques would be much more difficult. I think it helps to make you...
null
CC BY-SA 2.5
null
2008-08-25T20:57:21.790
2008-08-25T20:57:21.790
2020-06-20T09:12:55.060
-1
832
null
26,881
2
null
26,857
49
null
The code will look something like this: ``` WebRequest req = WebRequest.Create("http://mysite/myform.aspx"); string postData = "item1=11111&item2=22222&Item3=33333"; byte[] send = Encoding.Default.GetBytes(postData); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.ContentLength = sen...
null
CC BY-SA 4.0
null
2008-08-25T21:01:37.037
2020-03-22T16:14:57.850
2020-03-22T16:14:57.850
35,142
1,627
null
26,868
2
null
26,863
160
null
Have you tried this? In Visual Studio go to > > Be sure you your settings before you do this. I made the mistake of trying this to fix an issue and didn't realize it would undo all my appearance settings and toolbars as well. Took a lot of time to get back to the way I like things.
null
CC BY-SA 3.0
null
2008-08-25T20:55:13.510
2015-10-08T23:06:24.857
2015-10-08T23:06:24.857
75,500
299
null
26,879
1
26,924
null
0
1,059
I have a website that is perfectely centered aligned. The CSS code works fine. The problem doesn't really have to do with CSS. I have headers for each page that perfectely match eachother. However, when the content gets larger, Opera and FireFox show a scrollbar at the left so you can scroll to the content not on the ...
Browser scrollbar
CC BY-SA 2.5
0
2008-08-25T21:01:14.713
2008-09-26T20:15:56.750
2008-09-26T20:15:56.750
2,134
null
[ "browser" ]
26,884
2
null
26,877
26
null
I did this ``` static void Hook1() { someEvent += new EventHandler( Program_someEvent ); } static void Hook2() { someEvent += Program_someEvent; } ``` And then ran ildasm over the code. The generated MSIL was exactly the same. So to answer your question, yes they are the same thing. The compiler is just in...
null
CC BY-SA 2.5
null
2008-08-25T21:02:27.847
2008-08-25T21:07:28.630
2008-08-25T21:07:28.630
234
234
null
26,888
2
null
26,799
0
null
We have a corporate solution pushed down on us called Altiris, which works when it wants to. It depends on whether or not it's raining outside. I think Altiris might be a rain-god, and just doesn't know it. I am actually delighted when it's not working, because it means that I can have my 99% of CPU usage back, thank y...
null
CC BY-SA 2.5
null
2008-08-25T21:03:50.713
2008-08-25T21:03:50.713
null
null
null
null
26,886
2
null
26,845
0
null
> Using Subversion Subversion isn't distributed, so that makes me think I need a wikipedia link in case people aren't sure what I'm talking about :)
null
CC BY-SA 2.5
null
2008-08-25T21:03:09.700
2008-08-25T21:03:09.700
null
null
1,329,401
null
26,883
2
null
17,561
1
null
Here's my development oriented add-ons for [Firefox 3](http://www.mozilla.com/en-US/firefox/): 1. Web Developer 2. Firebug Firecookie FirePHP Rainbow 3. TamperData 4. Poster 5. FireFTP 6. ReloadEvery 7. Selenium IDE
null
CC BY-SA 2.5
null
2008-08-25T21:01:38.893
2008-08-25T21:01:38.893
null
null
459
null
26,890
2
null
26,455
0
null
I don't actually use Design by Contract, on a daily basis. I do, however know that it has been incorporated into the [D](http://www.digitalmars.com/d/2.0/dbc.html) language, as part of the language.
null
CC BY-SA 2.5
null
2008-08-25T21:04:00.713
2008-08-25T21:04:00.713
null
null
1,337
null
26,893
2
null
26,877
2
null
I don't think there's any difference. Certainly resharper says the first line has redundant code.
null
CC BY-SA 2.5
null
2008-08-25T21:05:48.790
2008-08-25T21:05:48.790
null
null
233
null
26,894
2
null
26,855
0
null
Perhaps I got the wrong end of the stick but wouldn't, ``` $full_url = $base_url . $relative_url ``` work? IIRC Perl text processing is pretty quick. Ah sure yes of course. Sorry I can't help, my Perl is pretty rusty.
null
CC BY-SA 2.5
null
2008-08-25T21:05:56.230
2008-08-26T12:53:37.310
2008-08-26T12:53:37.310
199
199
null
26,891
2
null
26,879
0
null
Are you aligning with percentage widths or fixed widths? I'm also guessing you're applying a background to the body - I've had this problem myself. It'll be much easier to help you if you upload the page so we can see the source code however.
null
CC BY-SA 2.5
null
2008-08-25T21:04:53.813
2008-08-25T21:04:53.813
null
null
2,025
null
26,897
1
27,006
null
37
26,769
Are there any good recommendations anyone can provide for a good Javascript editor on Windows? I currently use combinations of FireBug and TextPad but would hate to miss out on the party if there are better options out there. Thanks.
Recommendations for Javascript Editor on Windows?
CC BY-SA 2.5
0
2008-08-25T21:06:49.053
2012-02-27T06:33:39.187
2008-09-11T02:13:57.650
-1
1,627
[ "javascript", "editor" ]
26,882
1
null
null
3
13,927
My asp.net page will render different controls based on which report a user has selected e.g. some reports require 5 drop downs, some two checkboxes and 6 dropdowns). They can select a report using two methods. With `SelectedReport=MyReport` in the query string, or by selecting it from a dropdown. And it's a common ca...
Postback with Modified Query String from Dropdown in ASP.NET
CC BY-SA 2.5
null
2008-08-25T21:01:37.317
2013-06-06T17:32:51.523
2008-08-25T21:51:11.957
233
233
[ "asp.net", "postback", "query-string" ]
26,900
2
null
26,845
4
null
Not using distributed source control myself, but maybe these related questions and answers give you some insights: - [Distributed source control options](https://stackoverflow.com/questions/237/distributed-source-control-options)- [Why is git better than Subversion](https://stackoverflow.com/questions/871/why-is-git-b...
null
CC BY-SA 2.5
null
2008-08-25T21:07:12.327
2008-08-25T21:07:12.327
2017-05-23T12:19:30.550
-1
1,793
null
26,902
2
null
26,882
0
null
If it's an automatic post when the data changes then you should be able to redirect to the new query string with a server side handler of the dropdown's 'onchange' event. If it's a button, handle server side in the click event. I'd post a sample of what I'm talking about but I'm on the way out to pick up the kids.
null
CC BY-SA 2.5
null
2008-08-25T21:07:37.397
2008-08-25T21:07:37.397
null
null
null
null
26,901
2
null
26,897
10
null
I use NotePad++ and am happy (of course, that is when I am not using Visual Studio). NotePad++ contains support for intellisense type feature as well.
null
CC BY-SA 2.5
null
2008-08-25T21:07:34.883
2008-08-25T21:07:34.883
null
null
380
null
26,889
2
null
26,860
0
null
Have a look at [ARIA](http://www.w3.org/WAI/), it's a standard for developing accessible rich-web-client applications.
null
CC BY-SA 2.5
null
2008-08-25T21:03:51.960
2008-08-26T07:09:37.620
2008-08-26T07:09:37.620
905
905
null
26,905
2
null
26,897
4
null
The best that I've ever used is Netbeans, although its kind of heavyweight for some tasks due to being a fullblown multi-language IDE (not just Javascript). I've also had pretty good experiences with Aptana IDE, though, and I hear that IntelliJ is good if you don't mind paying the price.
null
CC BY-SA 2.5
null
2008-08-25T21:09:11.247
2008-08-25T21:09:11.247
null
null
1,432
null
26,904
1
27,828
null
3
2,157
I have a large exiting C++ project involving: - - - The project uses QMake (part of Trolltech's Qt) to build the production version on Linux, but I've been playing around at building it on MacOS. I can build in on MacOS using QMake just fine but I'm having trouble producing the final .app. It needs collecting all t...
Getting QMake to generate a proper .app
CC BY-SA 2.5
0
2008-08-25T21:08:45.553
2015-04-18T17:59:54.230
null
null
2,711
[ "xcode", "qt", "qmake" ]
26,903
1
27,454
null
10
4,631
Is there a way? I need all types that implement a specific interface to have a parameterless constructor, can it be done? I am developing the base code for other developers in my company to use in a specific project. There's a proccess which will create instances of types (in different threads) that perform certain ...
How can you require a constructor with no parameters for types implementing an interface?
CC BY-SA 2.5
null
2008-08-25T21:08:45.147
2021-01-03T15:16:17.897
2008-09-24T15:52:52.463
1,782
1,782
[ "c#", ".net", "constructor", "interface", "oop" ]
26,906
2
null
26,897
1
null
[Editra](http://editra.org/index.php) may be worth a look, the code colouring isn't bad, and I believe it has plugins to enable script execution.. Although I have used this myself.
null
CC BY-SA 2.5
null
2008-08-25T21:09:14.990
2008-08-25T21:09:14.990
null
null
832
null
26,907
2
null
26,879
0
null
``` #middle { position: relative; margin: 0px auto 0px auto; width: 1000px; max-width: 1000px; } ``` is my centered DIV
null
CC BY-SA 2.5
null
2008-08-25T21:09:36.067
2008-08-25T21:09:36.067
null
null
null
null
26,908
2
null
26,882
0
null
Have you tried to modify the Request.QueryString[] on the SelectedIndexChanged for the DropDown? That should do the trick.
null
CC BY-SA 2.5
null
2008-08-25T21:09:52.290
2008-08-25T21:09:52.290
null
null
2,894
null
26,896
2
null
18,943
3
null
There are lots of ways to obscure a password: you could store the credentials in rot13 format, or BASE64, or use the same [password-scrambling algorithm](http://www.cvsnt.org/cvsclient/Password-scrambling.html) that CVS uses. The real trick though is making your applications aware of the scrambling algorithm. For the...
null
CC BY-SA 2.5
null
2008-08-25T21:06:27.540
2008-08-25T21:06:27.540
null
null
737
null
26,913
2
null
26,877
0
null
Wasn't the `new XYZEventHandler` require until C#2003, and you were allowed to omit the redundant code in C#2005?
null
CC BY-SA 2.5
null
2008-08-25T21:13:04.090
2008-08-25T21:13:04.090
null
null
1,810
null
26,912
2
null
26,825
3
null
I am sorry I do not have time to trouble-shoot your code, so this is from the hip. There is a good chance that this a client-side action that is failing. Make certain that your page has the correct doctype tag if you took it out of your page or masterPage. Furthermore, attempt to set the ClientState as well: DDE.Clie...
null
CC BY-SA 2.5
null
2008-08-25T21:12:24.797
2008-08-25T21:12:24.797
null
null
2,213
null
26,895
2
null
26,877
-1
null
I think the one way to really tell would be to look at the MSIL produced for the code.. Tends to be a good acid test.. I have funny concerns that it may somehow mess with GC.. Seems odd that there would be all the overhead of declaring the new delegate type if it never needed to be done this way, you know?
null
CC BY-SA 2.5
null
2008-08-25T21:06:26.183
2008-08-25T21:06:26.183
null
null
832
null
26,911
2
null
26,879
0
null
Well you don't need the `position: relative;` - it should work fine without it. I take it that `div` to be `1000px` wide? It would still be a lot easier to answer this with the actual website.
null
CC BY-SA 2.5
null
2008-08-25T21:11:59.087
2008-08-25T21:11:59.087
null
null
2,025
null
26,918
2
null
26,825
0
null
Also check that the you have the following property set: ``` AutoExpand="False" ``` One of the features of the collapsible panel is that it will auto expand when you put your mouse over it, and this tag will make sure that doesn't happen.
null
CC BY-SA 2.5
null
2008-08-25T21:15:39.903
2008-08-25T21:15:39.903
null
null
71
null
26,874
2
null
26,860
3
null
> Are screen readers really so primitive that they would read text that isn't even displayed on the screen? What you have to remember is that any HTML parser doesn't read the screen - it reads the source markup. Whta you see on the screen is the browser's attempt to apply CSS to the source code. It's irrelevant. > Yo...
null
CC BY-SA 2.5
null
2008-08-25T20:58:02.553
2008-08-25T20:58:02.553
null
null
2,025
null
26,909
2
null
26,903
0
null
I don't think so. You also can't use an abstract class for this.
null
CC BY-SA 2.5
null
2008-08-25T21:10:24.970
2008-08-25T21:10:24.970
null
null
380
null
26,919
2
null
26,877
4
null
It used to be (.NET 1.x days) that the long form was the only way to do it. In both cases you are newing up a delegate to point to the Program_someEvent method.
null
CC BY-SA 2.5
null
2008-08-25T21:15:55.363
2008-08-25T21:15:55.363
null
null
748
null
26,920
2
null
24,596
25
null
I recommend the component oriented [Wicket](http://wicket.apache.org) framework. It allows you to write your web application in plain old Java code, you can use POJOs as the model for all components and don't need to mess around with huge XML configuration files. I had successfully developed an online banking applica...
null
CC BY-SA 2.5
null
2008-08-25T21:16:28.047
2008-08-25T21:16:28.047
null
null
2,367
null
26,921
2
null
26,875
3
null
[Step in to Xcode](https://rads.stackoverflow.com/amzn/click/com/0321334221) may be the book you're looking for. It's got a whole section devoted to using AppleScript to automate configuration includes. I've been going through the book myself on O'Reilly Safari as I've found myself in a situation similar to yourself!
null
CC BY-SA 3.0
null
2008-08-25T21:16:36.533
2011-10-30T22:01:39.600
2011-10-30T22:01:39.600
345,188
1,329,401
null
26,925
1
null
null
0
5,642
> [Pre-build task - deleting the working copy in CruiseControl.NET](https://stackoverflow.com/questions/8127/pre-build-task-deleting-the-working-copy-in-cruisecontrol-net) I would like to delete my working directory during the cruisecontrol build process...I'm sure this is easy, but I have been unable to find a...
How do I delete a directory with cc.net / cruiscontrol?
CC BY-SA 2.5
0
2008-08-25T21:17:58.493
2013-01-24T10:09:32.103
2017-05-23T12:14:30.900
-1
1,638
[ "cruisecontrol.net", "cruisecontrol" ]
26,926
2
null
26,799
0
null
I don't. We do continuous integration, submit code often to the central source control system (which is backed up like crazy!). If my machine dies at most I've lost a couple of days work. And all I need to do is get a clean disk at setup the dev environment from a ghost image or by spending a day sticking CDs in, ...
null
CC BY-SA 2.5
null
2008-08-25T21:18:08.277
2008-08-25T21:18:08.277
null
null
2,711
null
26,928
2
null
26,903
22
null
Not to be too blunt, but you've misunderstood the purpose of interfaces. An interface means that several people can implement it in their own classes, and then pass instances of those classes to other classes to be used. Creation creates an unnecessary strong coupling. It sounds like you really need some kind of regi...
null
CC BY-SA 2.5
null
2008-08-25T21:19:44.450
2008-08-25T21:19:44.450
null
null
1,554
null