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
16,175
2
null
16,003
1
null
Why don't you create rights & profiles to manage wich pages a user can see? I usually create a user class which implements the IPrincipal security interface. On every request to your application, you check the rights of a particular user and output the SiteMap's nodes allowed for this user.
null
CC BY-SA 2.5
null
2008-08-19T13:44:31.223
2008-08-19T13:44:31.223
null
null
296
null
16,180
2
null
16,164
0
null
there are many examples. Here are a couple. SharePoint provides RSS feeds from its lists. Many faceted navigation products allow you to get an RSS feed based on a selected filter. For example, you can navigate to view 24" LCD Monitors on newegg.com and then get an RSS feed of that view.
null
CC BY-SA 2.5
null
2008-08-19T13:45:31.957
2008-08-19T13:45:31.957
null
null
1,533
null
16,178
1
16,229
null
15
14,059
I need to programatically determine whether .NET 3.5 is installed. I thought it would be easy: ``` <% Response.Write(Environment.Version.ToString()); %> ``` Which returns "2.0.50727.1434" so no such luck... In my research I have that there are some rather obscure registry keys I can look at but I'm not sure if that...
Best Way To Determine If .NET 3.5 Is Installed
CC BY-SA 2.5
0
2008-08-19T13:45:03.017
2009-10-23T13:30:05.790
2008-08-23T05:14:35.240
893
285
[ ".net", ".net-3.5", "installation", "registry" ]
16,181
2
null
16,164
0
null
[Mantis](http://www.mantisbt.org/) bug tracker includes RSS feeds although I wish they were more configurable. Also we use [MediaWiki](http://www.mediawiki.org/wiki/MediaWiki) for documentation which has all sorts of RSS Feeds including a per page watch, and recent changes.
null
CC BY-SA 2.5
null
2008-08-19T13:46:33.157
2008-08-19T13:46:33.157
null
null
1,104
null
16,184
2
null
16,074
2
null
I was hoping for something a little more automatic. VS will create a new .suo file every time the project is saved. So I would have to delete that file every time I open the project. I also don't want to have to remember to close all the files before closing VS. Other IDEs that I have used have similar functionality...
null
CC BY-SA 2.5
null
2008-08-19T13:48:05.273
2008-08-19T13:48:05.273
null
null
1,749
null
16,182
2
null
16,167
37
null
Visual Assist X by Whole Tomato software is not free, but it's absolutely worth the money if you use Visual Studio for C++. [http://www.wholetomato.com/](http://www.wholetomato.com/)
null
CC BY-SA 2.5
null
2008-08-19T13:46:52.420
2008-08-19T13:46:52.420
null
null
1,546
null
16,186
2
null
13,607
1
null
One of the fastest ways is to use python with a gui binding like pyQt, PyFLTK, tkinter, wxPython or even via pygame which uses SDL. Its easy fast and platform independent. Also the management of the packages is unbeatable. See: - [http://wiki.python.org/moin/PyQt](http://wiki.python.org/moin/PyQt)- [http://www.fltk....
null
CC BY-SA 2.5
null
2008-08-19T13:49:31.153
2008-08-19T13:49:31.153
null
null
1,168
null
16,104
2
null
16,100
2,016
null
In .NET Core and .NET Framework ≥4.0 [there is a generic parse method](https://msdn.microsoft.com/en-us/library/dd783499%28v=vs.110%29.aspx): ``` Enum.TryParse("Active", out StatusEnum myStatus); ``` This also includes C#7's new inline `out` variables, so this does the try-parse, conversion to the explicit enum type a...
null
CC BY-SA 4.0
null
2008-08-19T12:54:28.533
2020-12-14T19:39:07.953
2020-12-14T19:39:07.953
279,112
905
null
16,191
2
null
16,067
1
null
In my experience, there are two easy ways to call into C code from Python code. There are other approaches, all of which are more annoying and/or verbose. The first and easiest is to compile a bunch of C code as a separate shared library and then call functions in that library using ctypes. Unfortunately, passing an...
null
CC BY-SA 3.0
null
2008-08-19T13:52:23.033
2014-11-14T01:47:04.183
2014-11-14T01:47:04.183
2,213,647
1,694
null
16,193
2
null
16,164
1
null
With our internal [TRAC](http://trac.edgewall.com/) server, I'm subscribed to the timeline view for each project that I work on. It's great for keeping track of checkins and bug tickets. This is pretty exclusive to a developer position though. I also am subscribed to the recent changes for our installation of [MediaWi...
null
CC BY-SA 2.5
null
2008-08-19T13:53:39.257
2008-08-19T13:53:39.257
null
null
1,414
null
16,165
2
null
16,142
13
null
The is the development line that holds the latest source code and features. It should have the latest bug fixes in it as well as the latest features added to the project. The are usually used to do something away from the trunk (or other development line) that would otherwise the build. New features are often built...
null
CC BY-SA 2.5
null
2008-08-19T13:37:32.893
2008-08-19T13:37:32.893
null
null
810
null
16,188
2
null
16,007
9
null
I've accepted Fredriks answer as it appears to solve the problem with the least amount of effort however the Request object doesn't appear to conatin the ResolveUrl method. This can be accessed through the Page object or an Image control object: ``` myImage.ImageUrl = Page.ResolveUrl(photoURL); myImage.ImageUrl = myIm...
null
CC BY-SA 2.5
null
2008-08-19T13:51:26.593
2008-08-19T13:51:26.593
null
null
1,762
null
16,187
2
null
16,178
3
null
That is because technically .NET 3.5 is an extension of the 2.0 framework. The quickest way is to include an assembly from .NET 3.5 and see if it breaks. ``` System.Web.Extensions ``` Is a good assembly that is only included in version 3.5. Also it seems that you are using ASP.NET to run this check, this really ...
null
CC BY-SA 2.5
null
2008-08-19T13:50:43.023
2008-08-19T13:50:43.023
null
null
17
null
16,167
1
16,182
null
27
18,057
The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support. I have seen [Refactor!](http://www.devexpress.com/Products/Visual_Studio_Add-in/RefactorCPP/index.xml) and am currently trying it out, but maybe one of...
Good refactoring support for C++
CC BY-SA 2.5
0
2008-08-19T13:39:29.673
2009-07-31T00:46:51.620
2008-09-18T13:11:41.350
1,830
1,830
[ "c++", "visual-studio", "refactoring" ]
16,198
2
null
15,995
7
null
@Blair Conrad: You could also implement your glob/reduce using sum, like so: ``` files = sum([glob.glob(f) for f in args], []) ``` This is less verbose than either of your two examples, is perfectly Pythonic, and is still only one line of code. So to answer the original question, I personally try to avoid using red...
null
CC BY-SA 2.5
null
2008-08-19T13:57:22.133
2008-08-19T13:57:22.133
null
null
1,694
null
16,189
2
null
5,136
1
null
Perhaps try [ctypes](http://python.net/crew/theller/ctypes/)instead of SWIG. If it has been included as a part of Python 2.5, then it must be good :-)
null
CC BY-SA 2.5
null
2008-08-19T13:51:47.747
2008-08-19T13:51:47.747
null
null
985
null
16,163
2
null
16,142
922
null
Hmm, not sure I agree with Nick re tag being similar to a branch. A tag is just a marker - [Trunk](http://svnbook.red-bean.com/en/1.8/svn.tour.importing.html#svn.tour.importing.layout) would be the main body of development, originating from the start of the project until the present.- [Branch](http://svnbook.red-bean....
null
CC BY-SA 4.0
null
2008-08-19T13:35:21.603
2019-04-04T01:12:16.783
2019-04-04T01:12:16.783
2,833,055
372
null
16,199
1
16,304
null
4
3,958
I'm looking to create a dashboard type gui for a web application. I'm looking for the user to be able to drag and drop different elements (probably either image buttons, anchor tags, or maybe just divs) to different (defined) places and be able to save their setup (in a cookie or on the server). I'm working with c# i...
Web App - Dashboard Type GUI - Interface
CC BY-SA 2.5
0
2008-08-19T13:57:33.820
2010-02-19T18:20:21.620
null
null
1,491,425
[ "c#", "asp.net", "javascript", "user-interface" ]
16,215
2
null
4,689
2
null
I'm going to make some enemies with this, but I actually use -- -- a non-monospace font! I occasionally switch back to a monospace to disambiguate something, but mostly find that a good clean sans-serif font is easiest to read and doesn't waste screen estate. An IDE with good syntax colouring helps.
null
CC BY-SA 2.5
null
2008-08-19T14:03:17.770
2008-08-19T14:03:17.770
null
null
1,000
null
16,224
2
null
16,209
0
null
You need to pick a type in your assembly and then do the following: ``` typeof(Some.Object.In.My.Assembly).Assembly.GetName().Version; ```
null
CC BY-SA 2.5
null
2008-08-19T14:06:58.247
2008-08-19T14:06:58.247
null
null
17
null
16,212
2
null
2,702
15
null
GROUP BY is similar to DISTINCT in that it groups multiple records into one. This example, borrowed from [http://www.devguru.com/technologies/t-sql/7080.asp](http://www.devguru.com/technologies/t-sql/7080.asp), lists distinct products in the Products table. ``` SELECT Product FROM Products GROUP BY Product Product ...
null
CC BY-SA 2.5
null
2008-08-19T14:02:49.113
2008-08-19T14:02:49.113
null
null
357
null
16,222
2
null
12,556
11
null
We evaluated GI a few months ago for a project but didn't end up selecting it. The IDE-in-a-browser (which is itself build with GI) actually works surprisingly well, though there are some features you normally expect from an editor that it lacks, most notably (and irritatingly) an Undo command. It's also impossible to...
null
CC BY-SA 2.5
null
2008-08-19T14:06:46.810
2008-08-19T23:00:04.353
2008-08-19T23:00:04.353
588
588
null
16,177
2
null
16,145
0
null
Add the error to a hidden list with that users name. Set the visibility on the list (for users) to only read/write their own values. Then use a custom web part or FlexListViewer to view the contents of that list and display it to the user. Once they acknowledge that error, remove it from the list. If necessary, you ca...
null
CC BY-SA 2.5
null
2008-08-19T13:44:59.210
2008-08-19T15:45:54.927
2008-08-19T15:45:54.927
805
805
null
16,225
2
null
16,209
0
null
via reflection you can get the Assembly object which contains the assembly version.
null
CC BY-SA 2.5
null
2008-08-19T14:07:26.653
2008-08-19T14:07:26.653
null
null
1,168
null
16,231
2
null
15,635
1
null
@monjardin The main reason we use it is because of the re-factoring/search tools provided through Visual Assist X (by Whole Tomato). Although there are a number of other nice to haves like Intelli-sense. We are also investigating integrations with our other tools AccuRev, Bugzilla and Totalview to complete the envir...
null
CC BY-SA 2.5
null
2008-08-19T14:10:22.513
2008-08-19T14:10:22.513
null
null
1,881
null
16,230
2
null
16,199
0
null
I used the Microsoft ASP.Net Ajax and AjaxControlToolkit to do something like this. They have a ResizeableControl and a DragPanel. I used these, then hosted an IFrame inside the panel to display the content. Worked pretty well. --- This site: [http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax](http://...
null
CC BY-SA 2.5
null
2008-08-19T14:09:59.847
2008-08-19T14:09:59.847
null
null
733
null
16,238
2
null
16,209
1
null
Yeah, attributes cannot have anything but constants in them, so you cannot use reflection to get the version number. The WebServiceAttribute class is sealed too, so you cannot inherit it and do what you want from there. A solution might be to use some kind of placeholder text as the Name, and set up an MsBuild task to...
null
CC BY-SA 2.5
null
2008-08-19T14:15:36.373
2008-08-19T14:15:36.373
null
null
1,710
null
16,233
1
16,255
null
26
9,233
The collection of fonts available to a web developer is depressingly limited. I remember reading long ago about TrueDoc, as a way of shipping fonts alongside a website - but it seems to have languished. Has anybody used this, or something similar? Is it supported by enough browsers? Am I missing a good solution? Note ...
Fonts on the Web
CC BY-SA 2.5
0
2008-08-19T14:13:18.560
2014-05-03T17:56:12.340
2008-08-21T13:12:30.347
1,000
1,000
[ "html", "css", "fonts" ]
16,241
2
null
15,674
3
null
Hm, where I work we have all our projects in the same repository. I really don't see the benefit of separating them, doesn't that just create a lot of extra work -creating new repositories, granting access to people, etc? I guess separate repositories makes sense if the projects are completely unrelated, and you have, ...
null
CC BY-SA 2.5
null
2008-08-19T14:15:52.143
2008-08-19T14:15:52.143
null
null
1,920
null
16,229
2
null
16,178
3
null
You could try: ``` static bool HasNet35() { try { AppDomain.CurrentDomain.Load( "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"); return true; } catch { return false; } } ``` @[Nick](https://stackoverflow.com/questions/16178...
null
CC BY-SA 2.5
null
2008-08-19T14:09:42.313
2008-08-19T14:29:21.087
2017-05-23T11:45:49.073
-1
419
null
16,247
2
null
16,233
1
null
CSS2 offers: ``` @font-face { font-family: Garamond; src: url(garamond.eot), url(garamond.pfr); } ```
null
CC BY-SA 3.0
null
2008-08-19T14:18:01.157
2014-05-03T17:52:24.120
2014-05-03T17:52:24.120
707,111
1,168
null
16,243
2
null
3,112
12
null
Another solution would be to wrap the call to the server and have it always return an array to simplify the rest of your life: ``` sub call_to_service { my $returnValue = service::call(); if (ref($returnValue) eq "ARRAY") { return($returnValue); } else { return( [$returnValue] )...
null
CC BY-SA 2.5
null
2008-08-19T14:16:57.493
2008-08-19T14:16:57.493
null
null
1,917
null
16,248
1
35,683
null
40
48,728
I'd like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs. It seems the best version number to use would just be the current revision number from Subversion. Is there an easy way to hook this number into a (C++ in my case) header file or s...
Getting the subversion repository number into code
CC BY-SA 2.5
0
2008-08-19T14:19:06.227
2017-04-18T09:26:41.893
2008-09-09T21:13:41.563
-1
1,169
[ "svn", "debugging", "testing", "revision", "versions" ]
16,251
2
null
16,074
5
null
I never realized how much that annoyed me as well! I haven't been able to find a setting, but in `Options > Environment > Keyboard` you can bind a shortcut to `Window.CloseAllDocuments`. `ALT+X` was unbound for me so I just used that. I'm interested if there's some hidden setting to automatically do this on solution ex...
null
CC BY-SA 2.5
null
2008-08-19T14:19:57.177
2008-08-19T14:19:57.177
null
null
1,414
null
16,203
2
null
16,142
97
null
In addition to what Nick has said you can find out more at [Streamed Lines: Branching Patterns for Parallel Software Development](http://www.cmcrossroads.com/bradapp/acme/branching/) ![enter image description here](https://i.stack.imgur.com/oBsKl.gif) In this figure `main` is the trunk, `rel1-maint` is a branch and `...
null
CC BY-SA 3.0
null
2008-08-19T13:58:18.107
2012-05-03T00:46:06.510
2012-05-03T00:46:06.510
385,273
486
null
16,261
2
null
16,199
0
null
You might want to look at [DropThings](http://www.codeplex.com/dropthings) on [Codeplex](http://www.codeplex.com).
null
CC BY-SA 2.5
null
2008-08-19T14:25:23.390
2008-08-19T14:25:23.390
null
null
1,233
null
16,245
2
null
16,155
6
null
[@cmcculloh](https://stackoverflow.com/questions/16155/making-one-interface-overwrite-a-method-it-inherits-from-another-interface-in-p#16196) Yeah, in Java you don't define constructors in Interfaces. This allows you to both extend interfaces and also have a class that implements multiple interfaces (both allowed, and...
null
CC BY-SA 2.5
null
2008-08-19T14:17:20.923
2008-08-19T17:37:51.567
2017-05-23T12:32:32.293
-1
75
null
16,267
2
null
16,161
0
null
Doesn't the %c parameter pass in the command issued (including the files being committed)?
null
CC BY-SA 2.5
null
2008-08-19T14:28:19.747
2008-08-19T14:28:19.747
null
null
1,223
null
16,202
2
null
16,178
1
null
@komradekatz, your solution below from MSDN for convenience for others looking into this. I do not like this solution because it uses the user agent to determine the version. This is not viable for what I need (I am writing a class library that needs to know whether .NET 3.5 is installed). I also question how reliable ...
null
CC BY-SA 2.5
null
2008-08-19T13:58:14.660
2008-08-19T13:58:14.660
null
null
285
null
16,268
2
null
14,530
8
null
> A DBA has no freedom to make changes to the data model without forcing you to change your compiled code. With stored procedures, you can hide these sorts of changes to an extent, since the parameter list and results set(s) returned from a procedure represent its contract, and the innards can be change...
null
CC BY-SA 2.5
null
2008-08-19T14:28:23.010
2008-08-19T14:28:23.010
null
null
493
null
16,218
2
null
16,199
1
null
I prefer using jQuery for AJAXy stuff like that. It also has a lot of very good plugins that make writing client-side code very easy. Here is the plugin page specifically for Drag-n-Drop. [http://plugins.jquery.com/project/Plugins/category/45](http://plugins.jquery.com/project/Plugins/category/45) Ajax callback a...
null
CC BY-SA 2.5
null
2008-08-19T14:04:57.330
2008-08-19T14:04:57.330
null
null
1,749
null
16,254
2
null
16,233
0
null
> Note that a responsible web developer does not use fonts that are only available on Windows (and especially ones that are only available on Vista), nor do they use a technology that isn't supported by at least the majority of browsers. Well… You can, as long as you know how it will render on non-Vista/non-Windows OS...
null
CC BY-SA 2.5
null
2008-08-19T14:22:03.583
2008-08-19T14:22:03.583
null
null
1,730
null
16,270
2
null
16,265
1
null
pretty sure Money maps to System.Decimal [Check here](http://msdn.microsoft.com/en-us/library/bb386947.aspx)
null
CC BY-SA 2.5
null
2008-08-19T14:29:04.490
2008-08-19T14:29:04.490
null
null
1,075
null
16,278
2
null
15,674
3
null
At my workplace, we have two repositories. One with public read access, and one for everything else. I'd use just one for everything, but we need different access rights for public/private projects. That said, I personally don't see the problem with the revision numbers incrementing on every update. The revision numbe...
null
CC BY-SA 2.5
null
2008-08-19T14:31:38.710
2008-08-19T14:31:38.710
null
null
30
null
16,272
2
null
16,145
0
null
Personally I would log it to either a log file or the event log depending on the issue. I think storing it using a users permissions would be a bad idea, what happens if that user does not have the correct rights? or worse still they get elevated permissions by browsing the list in explorer view? The log file would ...
null
CC BY-SA 2.5
null
2008-08-19T14:29:27.390
2008-08-19T14:29:27.390
null
null
null
null
16,276
2
null
16,248
27
null
Two ways: Embed or within the code. Then set property on the file. This will give you the last modified revision of that source file. Good for smaller projects and scripts. Alternatively, use a Makefile driven process and the command line tool svnversion. (Language specific - this should work for C/C++) ``` echo ...
null
CC BY-SA 2.5
null
2008-08-19T14:30:18.310
2008-08-19T14:39:59.257
2008-08-19T14:39:59.257
1,480
1,480
null
16,280
2
null
16,113
2
null
It seems that as javascript page-tagging becomes the more popular choice as a way of processing web stats, there's not as much work being done on log-based analysis tools anymore in the marketplace. My office used to use a product called LiveStats.XSP. It wasn't the greatest tool by any means, but it did have some nic...
null
CC BY-SA 2.5
null
2008-08-19T14:31:44.327
2008-08-19T14:39:11.350
2008-08-19T14:39:11.350
649
649
null
16,265
1
16,335
null
1
1,969
I'm working with LINQ for the first time and wanted to get the Mapping to work when I have a money type in SQL, but my domain object property is of type double. How can I express this in the XML file, or in code so that the mapping does not throw the usual "invalid cast" exception?
LINQ to SQL Mapping From Money to Double
CC BY-SA 2.5
null
2008-08-19T14:27:08.737
2008-10-23T22:29:00.563
2008-09-06T00:32:36.470
1,659
null
[ "linq", "linq-to-sql", "orm" ]
16,269
2
null
12,709
2
null
``` Dim returnXDoc As New XmlDocument(xDoc.NameTable) returnXDoc = xDoc.Clone() ``` The first line here is redundant - you are creating an instance of an XmlDocument, then reassigning the variable: ``` Dim returnXDoc As XmlDocument = xDoc.Clone() ``` This does the same. Seeing as you appear to be inserting each X...
null
CC BY-SA 2.5
null
2008-08-19T14:28:49.483
2008-08-19T14:28:49.483
null
null
1,908
null
16,264
2
null
16,248
5
null
You can use the `svn:keywords` property to enable the `Rev` keyword. You can then use `$Rev$` in your code and SVN will expand it automatically when updating to `$Rev: 256 $` which can then parse... [More info on the Subversion manual](http://svnbook.red-bean.com/en/1.0/ch07s02.html#svn-ch-7-sect-2.3.4)
null
CC BY-SA 2.5
null
2008-08-19T14:26:10.737
2008-08-19T14:26:10.737
null
null
268
null
16,297
2
null
7,773
4
null
You need to be wary of [XSS](http://en.wikipedia.org/wiki/Cross-site_scripting) when doing stuff like this: ``` document.getElementById('<%= Label1.ClientID %>').style.display ``` The chances are that no-one will be able to tamper with the ClientID of Label1 in this instance, but just to be on the safe side you migh...
null
CC BY-SA 2.5
null
2008-08-19T14:41:24.277
2008-08-19T14:41:24.277
null
null
1,904
null
16,294
2
null
11,345
4
null
The issue is that an element without a namespace is declared to be in the NULL namespace - therefore if //foo matched against the namespace you consider to be the 'default' there would be no way to refer to an element in the null namespace. Remember as well that the prefix for a namespace is only a shorthand conventio...
null
CC BY-SA 2.5
null
2008-08-19T14:38:33.190
2008-08-19T14:38:33.190
null
null
1,908
null
16,209
1
16,238
null
2
1,551
Can anyone suggest a way of getting version information into a Web Service? (VB.NET) I would like to dynamically use the assembly version in the title or description, but the attributes require constants. Is manually writing the version info as a string the only way of displaying the information on the .asmx page?
Displaying Version Information in a Web Service
CC BY-SA 3.0
null
2008-08-19T14:02:01.237
2015-10-07T07:38:00.533
2015-10-07T07:38:00.533
356,528
982
[ "vb.net", "web-services", "versions" ]
16,298
1
16,311
null
46
208,256
I have 2 hosts and I would like to point a subdomain on host one to a subdomain on host two: ``` subdomain.hostone.com --> subdomain.hosttwo.com ``` I added a CNAME record to host one that points to subdomain.hosttwo.com but all I get is a '' Error. Can anyone see what I'm doing wrong?
How to redirect siteA to siteB with A or CNAME records
CC BY-SA 2.5
0
2008-08-19T14:42:29.440
2015-11-28T17:56:08.550
2008-08-23T16:29:05.727
2,134
117
[ "dns", "web-hosting", "cname" ]
16,299
2
null
16,178
2
null
@Kev, really like your solution. Thanks for the help. Using the registry the code would look something like this: ``` RegistryKey key = Registry .LocalMachine .OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5"); return (key != null); ``` I would be curious if either of these would wor...
null
CC BY-SA 2.5
null
2008-08-19T14:42:47.830
2008-08-19T14:42:47.830
null
null
285
null
16,255
2
null
16,233
20
null
Safari, and to a lesser extent, Firefox 3 have support for `@font-face` in CSS, which lets you use custom fonts. You need to have the appropriate licence to distribute the font files though. These articles explain it in more detail: - [http://www.css3.info/preview/web-fonts-with-font-face/](http://www.css3.info/previe...
null
CC BY-SA 3.0
null
2008-08-19T14:22:04.720
2014-05-03T17:51:28.023
2014-05-03T17:51:28.023
707,111
1,904
null
16,306
1
16,318
null
7
4,885
What would be the easiest way to separate the directory name from the file name when dealing with `SaveFileDialog.FileName` in C#?
How to get only directory name from SaveFileDialog.FileName
CC BY-SA 3.0
0
2008-08-19T14:44:59.667
2019-08-17T15:09:20.840
2013-12-16T15:13:58.910
null
41
[ "c#", "string", "parsing" ]
16,304
2
null
16,199
4
null
I have been looking at this kind of functionality myself recently and have decided on using jQuery with the help of [jQuery UI](http://ui.jquery.com/). I came across a large amount of information that also suggested [Yahoo UI](http://developer.yahoo.com/yui/) (YUI), I had already started learning [jQuery](http://jQuery...
null
CC BY-SA 2.5
null
2008-08-19T14:44:28.747
2008-08-19T14:44:28.747
null
null
1,403
null
16,310
2
null
16,298
0
null
It's probably best/easiest to set up a [301 redirect](http://www.webconfs.com/how-to-redirect-a-webpage.php). No DNS hacking required.
null
CC BY-SA 2.5
null
2008-08-19T14:46:09.447
2008-08-19T14:46:09.447
null
null
1,412
null
16,307
2
null
16,298
2
null
It sounds like the web server on hosttwo.com doesn't allow undefined domains to be passed through. You also said you wanted to do a redirect, this isn't actually a method for redirecting. If you bought this domain through GoDaddy you may just want to use their redirection service.
null
CC BY-SA 2.5
null
2008-08-19T14:45:07.997
2008-08-19T14:45:07.997
null
null
17
null
16,311
2
null
16,298
14
null
Try changing it to "subdomain -> subdomain.hosttwo.com" The `CNAME` is an alias for a certain domain, so when you go to the control panel for hostone.com, you shouldn't have to enter the whole name into the `CNAME` alias. As far as the error you are getting, can you log onto subdomain.hostwo.com and check the logs?
null
CC BY-SA 3.0
null
2008-08-19T14:46:12.677
2015-11-28T17:56:08.550
2015-11-28T17:56:08.550
1,296,707
1,219
null
16,316
2
null
16,306
2
null
You could construct a FileInfo object. It has a Name, FullName, and DirectoryName property. ``` var file = new FileInfo(saveFileDialog.FileName); Console.WriteLine("File is: " + file.Name); Console.WriteLine("Directory is: " + file.DirectoryName); ```
null
CC BY-SA 2.5
null
2008-08-19T14:47:38.600
2008-08-19T14:47:38.600
null
null
632
null
16,305
2
null
16,164
0
null
I just added RSS feeds to the ticketing system I use at work ([TicketDesk](http://www.codeplex.com/ticketdesk)) and that feature should be in the next release of the product. It's nice because it basically provides me a custom search view of outstanding trouble tickets or work requests that comes to me rather then m...
null
CC BY-SA 2.5
null
2008-08-19T14:44:32.773
2008-08-19T14:44:32.773
null
null
1,233
null
16,315
2
null
16,306
1
null
The Path object in `System.IO` parses it pretty nicely.
null
CC BY-SA 3.0
null
2008-08-19T14:47:31.970
2012-08-11T16:09:19.727
2012-08-11T16:09:19.727
1,477,076
733
null
16,313
2
null
16,306
0
null
Since the forward slash is not allowed in the filename, one simple way is to divide the SaveFileDialog.Filename using String.LastIndexOf; for example: ``` string filename = dialog.Filename; string path = filename.Substring(0, filename.LastIndexOf("\")); string file = filename.Substring(filename.LastIndexOf("\") + 1); ...
null
CC BY-SA 2.5
null
2008-08-19T14:46:44.423
2008-08-19T14:46:44.423
null
null
1,185
null
16,320
1
null
null
3
751
I've seen projects where the classes in the DB layer have just static functions in them and other projects where those classes need to be instantiated to get access to the member functions. > Which is "better" and why?
Should DB layer members be static or instance?
CC BY-SA 4.0
null
2008-08-19T14:49:55.210
2018-07-21T14:43:55.883
2018-07-21T14:43:55.883
1,557,119
1,463
[ "database", "orm", "class-design" ]
16,318
2
null
16,306
15
null
Use: ``` System.IO.Path.GetDirectoryName(saveDialog.FileName) ``` (and the corresponding `System.IO.Path.GetFileName`). The Path class is really rather useful.
null
CC BY-SA 3.0
null
2008-08-19T14:49:07.553
2015-12-15T02:18:55.140
2015-12-15T02:18:55.140
3,330,348
1,200
null
16,308
2
null
16,178
3
null
A good resource I found: [http://www.walkernews.net/2008/05/16/how-to-check-net-framework-version-installed/](http://www.walkernews.net/2008/05/16/how-to-check-net-framework-version-installed/)
null
CC BY-SA 2.5
null
2008-08-19T14:45:36.623
2008-08-19T14:53:06.470
2008-08-19T14:53:06.470
285
285
null
16,324
2
null
16,298
0
null
You can do this a number of non-DNS ways. The landing page at subdomain.hostone.com can have an [HTTP redirect](http://www.activejump.com/o-6.shtml). The webserver at hostone.com can be configured to redirect (easy in Apache, not sure about IIS), etc.
null
CC BY-SA 2.5
null
2008-08-19T14:50:48.003
2008-08-19T14:50:48.003
null
null
1,886
null
16,317
1
null
null
24
19,896
I'm aware of some of the test data generators out there, but most seem to just fill name and address style databases [feel free to correct me]. We have a large integrated and normalised application - e.g. invoices have part numbers linked to stocking tables, customer numbers linked to customer tables, change logs link...
Creating test data in a database
CC BY-SA 2.5
0
2008-08-19T14:47:58.227
2015-03-11T03:37:03.943
null
null
1,223
[ "database", "integration-testing" ]
16,330
1
33,604
null
5
4,392
If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?
How do I handle page flow in MVC (particularly asp.net)
CC BY-SA 3.0
0
2008-08-19T14:53:06.593
2019-04-01T20:07:34.853
2019-04-01T20:07:34.853
100,297
1,946
[ "asp.net-mvc" ]
16,332
2
null
16,326
1
null
Burn it to a DVD and install it from there. Also remove any development software that you don't need from Visual Studio, such as C++, VB.NET, Crystal Reports, etc.
null
CC BY-SA 2.5
null
2008-08-19T14:53:23.550
2008-08-19T14:53:23.550
null
null
17
null
16,326
1
22,404
null
-2
1,037
I am trying to run the [VS 2008 SP1 installer](http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en), but it says that I need 6,366MB of available space, and my C drive currently only has 2,452MB available. Is there any good way to install that doesn't require so ...
How can in install VS 2008 without using ~6.5GB of space on my C drive?
CC BY-SA 3.0
null
2008-08-19T14:51:53.257
2013-04-17T20:48:44.390
2013-04-17T20:48:44.390
1,454,806
1,414
[ "installation", "diskspace", "visual-studio-2008-sp1" ]
16,335
2
null
16,265
1
null
In the DBML XML file, you can set the Expression attribute of a Column element to something like this: ``` <Column Name="Table1.Amount" DbType="smallint" Type="System.Int32" Expression="CAST(Table1.Amount as int)" /> ```
null
CC BY-SA 2.5
null
2008-08-19T14:53:49.383
2008-10-23T22:29:00.580
2008-10-23T22:29:00.580
1,659
1,659
null
16,333
2
null
2,898
8
null
I find Geany ([http://geany.uvena.de/](http://geany.uvena.de/)) quite good.
null
CC BY-SA 2.5
null
2008-08-19T14:53:27.390
2008-08-19T14:53:27.390
null
null
1,912
null
16,312
2
null
15,805
0
null
The program probably needs some more info put into its properties. It needs to "Run As", instead of just running. Maybe this application should be developed as a service, instead of a program to be launched, or you could have service that launches the program when its determined the best window of opportunity.
null
CC BY-SA 2.5
null
2008-08-19T14:46:37.683
2008-08-19T14:46:37.683
null
null
1,935
null
16,336
2
null
16,317
8
null
Where I work we use [RedGate Data Generator](http://www.red-gate.com/products/SQL_Data_Generator/index.htm) to generate test data. Since we work in the banking domain. When we have to work with nominative data (Credit card numbers, personnal ID, phone numbers) we developed an application that can these database field...
null
CC BY-SA 3.0
null
2008-08-19T14:54:23.703
2015-03-11T03:37:03.943
2015-03-11T03:37:03.943
16,076
1,291
null
16,337
2
null
16,330
-1
null
There are a couple ways, create an action for each step of the wizard process, or create a parameter that is passed in to the action method. Like that will allow you to know what the state of the wizard is in.
null
CC BY-SA 2.5
null
2008-08-19T14:54:53.033
2008-08-19T14:54:53.033
null
null
17
null
16,347
2
null
15,219
2
null
Here's an example from one of my pages: ``` UltraWebGrid uwgMyGrid = new UltraWebGrid(); uwgMyGrid.Columns.Add("colTest", "Test Dropdown"); uwgMyGrid.Columns.FromKey("colTest").Type = ColumnType.DropDownList; uwgMyGrid.Columns.FromKey("colTest").ValueList.ValueListItems.Insert(0, "ONE", "Choice 1"); uwgMyGrid.Columns....
null
CC BY-SA 2.5
null
2008-08-19T14:59:43.537
2008-08-19T15:08:30.493
2008-08-19T15:08:30.493
1,373
1,373
null
16,328
2
null
16,178
1
null
Another interesting find is the presence of assemblies here: > C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 You'd think Microsoft would build a check for "latest version" into the framework.
null
CC BY-SA 2.5
null
2008-08-19T14:52:48.233
2008-08-19T14:52:48.233
null
null
285
null
16,342
2
null
16,320
1
null
It's all about the purpose of the DB Layer. If you use an instance to access the DB layer, you are allowing multiple versions of that class to exist. This is desirable if you want to use the same DB layer to access multiple databases for example. So you might have something like this: ``` DbController acrhive = new D...
null
CC BY-SA 2.5
null
2008-08-19T14:57:01.407
2008-08-19T14:57:01.407
null
null
493
null
16,348
2
null
12,576
1
null
The ones I can think of... - [Loop invariants](http://hudzilla.org/phpwiki/index.php?title=Get_your_loops_right_first) are always a good one to watch.- Write E_STRICT and E_NOTICE compliant code, particularly if you are logging errors.- Avoid the @ operator.- Absolute paths for requires and includes.- Use strpos, str_...
null
CC BY-SA 2.5
null
2008-08-19T14:59:57.500
2008-08-19T14:59:57.500
null
null
1,248
null
16,327
2
null
3,088
1
null
There is a book called . I can't remember who wrote it, but it goes through the basics of a lot of stuff that we (programmers) know and take for granted that people we talk to know also. Everything from how do you count binary to how processors work. It doesn't have anything dealing with programming languages in it ...
null
CC BY-SA 2.5
null
2008-08-19T14:52:48.043
2008-08-19T14:52:48.043
null
null
1,942
null
16,349
2
null
16,320
-2
null
It depends which model you subscribe to. ORM (Object Relational Model) or Interface Model. ORM is very popular right now because of frameworks like nhibernate, LINQ to SQL, Entity Framework, and many others. The ORM lets you customize some business constraints around your object model and pass it around with out act...
null
CC BY-SA 2.5
null
2008-08-19T15:00:43.350
2008-08-19T15:00:43.350
null
null
17
null
16,351
2
null
16,167
3
null
Mozilla's Taras Glek worked the last year or two on C++ analysis and code rewriting tools. His blog is at [http://blog.mozilla.com/tglek/](http://blog.mozilla.com/tglek/), you can find links to the tools they created there. They are of course free and open-source. No GUI, but I thought I'd link it in case it's interest...
null
CC BY-SA 2.5
null
2008-08-19T15:01:15.203
2008-08-19T15:01:15.203
null
null
1,026
null
16,353
2
null
16,317
0
null
Joel also mentioned RedGate in [podcast #11](https://blog.stackoverflow.com/2008/06/podcast-11/)
null
CC BY-SA 4.0
null
2008-08-19T15:03:26.620
2008-08-19T15:03:26.620
2021-01-18T12:38:11.483
-1
1,533
null
16,361
2
null
16,320
0
null
As lomaxx mentioned, it's all about the purpose of the DB model. I find it best to use static classes, as I usually only want one instance of my DAL classes being created. I'd rather use static methods than deal with the overhead of potentially creating multiple instances of my DAL classes where only 1 should exist th...
null
CC BY-SA 2.5
null
2008-08-19T15:08:47.263
2008-08-19T15:08:47.263
null
null
392
null
16,362
2
null
9,256
3
null
Using the ACPrintManager I was able to get firefox 3 to print perfectly! The one thing I had to add to the example was to check if stage was null, and callLater if the stage was null. ``` private function initPrint():void { //if we don't have a stage, wait until the next frame and try again if ( stage == nul...
null
CC BY-SA 2.5
null
2008-08-19T15:09:16.437
2008-08-19T15:09:16.437
null
null
22
null
16,363
1
16,390
null
13
3,910
Starting with 2005, VS started this behavior of when starting debugging session it spawns up a webserver for every project in a solution. I have a solution with 15 projects so it takes a while and is a waste of resources. Is there a way to configure it differently besides just using IIS?
How do you configure VS2008 to only open one webserver in a solution with multiple projects?
CC BY-SA 2.5
0
2008-08-19T15:09:30.663
2012-07-17T14:45:07.723
null
null
1,940
[ "visual-studio", "debugging" ]
16,369
2
null
14,828
0
null
You should be able to expose the underlying error message by setting the following in the web.config: ``` customErrors mode="Off" ``` Could you elaborate on "and uploading the site files"? New instance of DNN? updating an existing site? upgrading DNN version? If upgrade or update -- what files are you adding/overwri...
null
CC BY-SA 2.5
null
2008-08-19T15:10:29.820
2008-08-19T15:10:29.820
null
null
326
null
16,375
2
null
15,899
1
null
If you don't know the schema the XStream solution probably isn't the way to go. At least XStream is on your radar now, might come in handy in the future!
null
CC BY-SA 3.0
null
2008-08-19T15:15:36.267
2013-01-23T06:30:24.407
2013-01-23T06:30:24.407
1,410,342
1,174
null
16,372
2
null
15,700
0
null
Nope, you must save in order for the EntLib (and, I suspect, any other tool) to see the changes.
null
CC BY-SA 2.5
null
2008-08-19T15:13:48.313
2008-08-19T15:13:48.313
null
null
1,886
null
16,378
2
null
16,340
2
null
If you are looking for performance, I tested a few hash keys, and I recommend [Bob Jenkin's hash function](http://burtleburtle.net/bob/hash/doobs.html). It is both crazy fast to compute and will give as few collisions as the cryptographic hash you used until now. I don't know C# at all, and I don't know if it can lin...
null
CC BY-SA 3.0
null
2008-08-19T15:16:24.720
2015-06-27T10:03:04.287
2015-06-27T10:03:04.287
63,550
446,497
null
16,376
2
null
10,870
0
null
Yes, drag and drop is different in AIR. I HATE that! It takes a lot of playing around to figure out how to get things to work the same as custom dnd that was built in flex. As for the coordinates, maybe play around with localToContent, and localToGlobal methods. They may help in translating the coordinates to somethin...
null
CC BY-SA 2.5
null
2008-08-19T15:16:08.433
2008-08-19T15:16:08.433
null
null
22
null
16,323
2
null
16,298
1
null
You can only make DNS name pont to a different IP address, so if You you are using virtual hosts redirecting with DNS won't work. When you enter subdomain.hostone.com in your browser it will use DNS to get it's IP address (if it's a CNAME it will continue trying until it gets IP from A record) then it will connect to ...
null
CC BY-SA 2.5
null
2008-08-19T14:50:47.160
2008-08-19T14:50:47.160
null
null
1,534
null
16,339
2
null
16,326
1
null
Since hard drives are very cheap these days, I would suggest buying a larger hard drive and installing VS on that drive. You should never run your OS hard drive close to max capacity, this can seriously reduce the performance of your system. Also, you may be able to install VS but I'm quite sure it'll use alot of dis...
null
CC BY-SA 2.5
null
2008-08-19T14:55:25.217
2008-08-19T14:55:25.217
null
null
383
null
16,381
2
null
16,340
70
null
The hash code of an object does not need to be unique. The checking rule is: - `Equals`- All you want is a `GetHashCode` algorithm that splits up your collection into roughly even groups - it shouldn't form the key as the `HashTable` or `Dictionary<>` will need to use the hash to optimise retrieval. How long do ...
null
CC BY-SA 3.0
null
2008-08-19T15:17:05.937
2017-03-01T10:51:00.837
2017-03-01T10:51:00.837
240,733
905
null
16,390
2
null
16,363
23
null
Some details here on why it does it and how you can overcome it: [http://vishaljoshi.blogspot.com/2007/12/tips-tricks-start-up-options-and.html](http://vishaljoshi.blogspot.com/2007/12/tips-tricks-start-up-options-and.html) > There are instances when you might have many web applications or web sites in the same solut...
null
CC BY-SA 2.5
null
2008-08-19T15:20:20.720
2008-08-19T15:20:20.720
null
null
770
null
16,386
2
null
5,374
5
null
You seem to have got confused with use of a variable (which is just $variable) and Attribute Value Templates, which allow you to put any XPath expression in some attributes, e.g. ``` <newElement Id="{@Id}"/> ``` They can obviously be combined, so you can include a variable in an Attribute Value Template, such as: ...
null
CC BY-SA 2.5
null
2008-08-19T15:19:25.887
2008-08-19T15:25:43.220
2008-08-19T15:25:43.220
1,908
1,908
null
16,396
1
20,786
null
32
54,740
Is there a way to easily convert Crystal Reports reports to Reporting Services RDL format? We have quite a few reports that will be needing conversion soon. I know about the manual process (which is basically rebuilding all your reports from scratch in SSRS), but my searches pointed to a few possibilities with automa...
Easy way for Crystal Reports to MS SQL Server Reporting Services conversion
CC BY-SA 3.0
0
2008-08-19T15:23:17.983
2017-02-19T08:36:26.990
2014-01-31T21:09:57.157
58,880
1,165,587
[ "sql-server", "reporting-services", "crystal-reports", "migration" ]