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
33,368
2
null
30,788
1
null
You can give [Redemption](http://www.dimastr.com/redemption/) a try. It should be suitable for what you need.
null
CC BY-SA 3.0
null
2008-08-28T20:53:42.427
2011-06-21T21:53:09.443
2011-06-21T21:53:09.443
1,256,645
1,256,645
null
33,347
1
33,502
null
18
8,428
I'm considering developing a website similar to stackoverflow, but the answers may also consist of drawings (schematics, in this case). I want to have an area in the answer form where they can make this schematic without requiring special plugins, etc. 1. Are we to the point where SVG has or should have critical m...
Scripting SVG
CC BY-SA 2.5
0
2008-08-28T20:39:52.290
2011-05-17T17:05:01.280
2008-08-28T20:42:58.943
1,414
2,915
[ "javascript", "ajax", "svg" ]
33,365
2
null
33,341
6
null
Under the hood, you can access the attributes of the item and assign it a CSS style. So you should be able to then programmatically assign it by specifying: ``` RadioButtonList.Items(1).CssClass.Add("visibility", "hidden") ``` and get the job done.
null
CC BY-SA 3.0
null
2008-08-28T20:52:07.907
2012-08-28T20:53:53.963
2012-08-28T20:53:53.963
71
71
null
33,354
2
null
8,472
1
null
Our form spam has been drastically cut after implementing the honeypot captcha method as mentioned previously. I believe we haven't received any since implementing it.
null
CC BY-SA 2.5
null
2008-08-28T20:46:33.710
2008-08-28T20:46:33.710
null
null
2,535
null
33,381
2
null
32,966
3
null
Another totally different approach would be to use acts_as_authenticated and authorization plugins. The tables will be built by the plugins (ie , and _users). From the doc: > The authorization plugin provides the following: - A simple way of checking authorization at either the class or instance method level using #...
null
CC BY-SA 2.5
null
2008-08-28T20:57:43.527
2008-08-28T20:57:43.527
null
null
341
null
33,371
2
null
33,341
0
null
I haven't tested it, but I'd assume (for C#) ``` foreach(ListItem myItem in rbl.Items) { if(whatever condition) myItem.Attributes.Add("visibility","hidden"); } ```
null
CC BY-SA 3.0
null
2008-08-28T20:54:51.800
2014-01-20T18:50:17.837
2014-01-20T18:50:17.837
1,221,571
514
null
33,382
2
null
33,223
2
null
See [this question](https://stackoverflow.com/questions/12768/how-is-the-html-on-this-site-so-clean) for more discussion, including use of MVC. This site uses ASP.NET and the markup is pretty clean. Check out the HTML/CSS on MicrosoftPDC.com (a site I'm working on) - it uses ASP.NET webforms, but we're designing with c...
null
CC BY-SA 2.5
null
2008-08-28T20:57:54.603
2008-08-28T20:57:54.603
2017-05-23T10:27:50.457
-1
5
null
33,349
1
null
null
0
2,472
I using SharePoint Designer to create a workflow. I'm trying to get at a sub-folder in a document library in the "Define Workflow Lookup" dialog. There are two issues with this: 1. I can't look up items by URL Path. If I look up by Title, I can output the URL Path, but selecting by path doesn't work. What fields can...
Looking up document library items in a SharePoint workflow
CC BY-SA 3.0
null
2008-08-28T20:44:06.943
2016-12-13T19:15:03.353
2013-05-17T14:25:51.137
1,012,641
1,533
[ "sharepoint", "moss", "workflow", "sharepoint-designer" ]
33,383
2
null
32,664
1
null
What is the point of the exercise? As people pointed out already, you could have a non-generic function taking the largest item, and compiler will automatically convert up smaller ints for you. ``` static bool IntegerFunction(Int64 value) { } ``` If your function is on performance-critical path (very unlikely, IMO...
null
CC BY-SA 2.5
null
2008-08-28T20:59:00.667
2008-08-28T20:59:00.667
null
null
838
null
33,374
2
null
33,338
0
null
I honestly have never seen this message and I work with Visual Studio for at least 8 hours a day. Is this reproducible on other machines? If so is there anything weird or abnormal in your code that could cause this to crash?
null
CC BY-SA 2.5
null
2008-08-28T20:56:03.280
2008-08-28T20:56:03.280
null
null
17
null
33,390
1
33,405
null
3
836
What's the best lifetime model for a `DataContext`? Should I just create a new one whenever I need it (aka, function level), should I keep one available in each class that would use it (class level), or should I create a static class with a static DataContext (app-domain level)? Are there any considered best practices ...
Best use pattern for a DataContext
CC BY-SA 3.0
0
2008-08-28T21:02:15.903
2017-06-09T10:23:43.157
2017-06-09T10:23:08.127
1,055,241
1,194
[ "linq-to-sql", ".net-3.5" ]
33,394
2
null
33,386
0
null
How about using Trace statements. They are there for Release mode value checking. ``` Trace.WriteLine(myVar); ```
null
CC BY-SA 2.5
null
2008-08-28T21:03:41.937
2008-08-28T21:03:41.937
null
null
1,747
null
33,386
1
null
null
7
3,769
Im sure this has happened to folks before, something works in debug mode, you compile in release, and something breaks. This happened to me while working on a Embedded XP environment, the best way i found to do it really was to write a log file to determine where it would go wrong. What are your experiences/ discover...
Best Ways to Debug a Release Mode Application
CC BY-SA 2.5
0
2008-08-28T21:00:24.517
2009-05-26T15:19:59.087
2008-08-29T01:41:40.537
1,414
514
[ "debugging", "embedded" ]
33,364
2
null
33,263
1
null
In the master page I define a public property that toggles security checking, defaulted to true. I also declare a string that is a ; delimited list of roles needed for that page. in the page load of my master page I do the following ``` if (_secure) { if (Request.IsAuthenticated) { if (_role.Length > 0) ...
null
CC BY-SA 2.5
null
2008-08-28T20:51:53.867
2008-08-28T20:51:53.867
null
null
2,763
null
33,393
2
null
33,386
0
null
If it's only a small portion of the application that needs debugging then you can change those source files only to be built without optimisations. Presumably you generate debug info for all builds, and so this makes the application run mostly as it would in release, but allows you to debug the interesting parts prope...
null
CC BY-SA 2.5
null
2008-08-28T21:03:30.080
2008-08-28T21:03:30.080
null
null
755
null
33,384
2
null
9,033
75
null
I like looking up stuff in a list like:- ``` bool basketContainsFruit(string fruit) { return new[] { "apple", "orange", "banana", "pear" }.Contains(fruit); } ``` Rather than:- ``` bool basketContainsFruit(string fruit) { return fruit == "apple" || fruit == "orange" || fruit == "banana" || fruit == "pear"; }...
null
CC BY-SA 3.0
null
2008-08-28T20:59:59.060
2011-08-04T09:01:21.477
2011-08-04T09:01:21.477
3,394
3,394
null
33,395
1
null
null
1
3,506
I'm using the [ASP.NET Login Controls](http://msdn.microsoft.com/en-us/library/ms178329.aspx) and [Forms Authentication](http://msdn.microsoft.com/en-us/library/aa480476.aspx) for membership/credentials for an ASP.NET web application. And I'm using a [site map](http://msdn.microsoft.com/en-us/library/yy2ykkab.aspx) fo...
How do I filter nodes of TreeView and Menu controls with sitemap data sources based on user permissions?
CC BY-SA 2.5
null
2008-08-28T21:04:01.793
2008-09-18T13:52:23.920
2017-05-23T12:10:51.083
-1
83
[ "asp.net", "forms-authentication", "sitemap" ]
33,400
2
null
33,395
1
null
I'm not sure how this question is any different than your [other question](https://stackoverflow.com/questions/33263/how-do-i-best-handle-role-based-permissions-using-forms-authentication-on-my-as), but I'll try to answer it anyways. If you want a tutorial on how to implement role-based authentication, check out the...
null
CC BY-SA 2.5
null
2008-08-28T21:06:23.193
2008-08-28T21:06:23.193
2017-05-23T12:34:56.773
-1
1,574
null
33,402
2
null
33,390
0
null
I think Jeff Atwood talked about this in the [Herding Code podcast](http://herdingcode.com/?p=36), when he was questioned about the exact same thing. Listen to it towards the last 15-20 minutes or so. I think in SO, the datacontext is created in the Controller class. Not sure about a lot of details here. But that's wh...
null
CC BY-SA 2.5
null
2008-08-28T21:06:32.507
2008-08-28T21:06:32.507
null
null
1,747
null
33,344
2
null
28,599
1
null
If you want to generate certificates, you need to cause the client to generate a key pair, and send you at least the public key. You can do this in Firefox via a Javascript call, it's [crypto.generateCRMFRequest](http://developer.mozilla.org/en/GenerateCRMFRequest). I'm guessing there are browser-specific methods avail...
null
CC BY-SA 2.5
null
2008-08-28T20:39:27.220
2008-08-28T20:39:27.220
null
null
3,474
null
33,401
2
null
33,386
0
null
I agree on log file debugging to narrow it down. I've used "Entering FunctionName" "Leaving FunctionName" until I can find what method it enters before the crash. Then I add more log messages re-compile and re-release.
null
CC BY-SA 2.5
null
2008-08-28T21:06:29.073
2008-08-28T21:06:29.073
null
null
2,926
null
33,398
2
null
33,386
3
null
Make sure you have good debug symbols available (you can do this even with a release build, even on embedded devices). You should be able to get a stack trace and hopefully the values of some variables. A good knowledge of assembly language is probably also useful at this point. My experience is that generally the bug...
null
CC BY-SA 2.5
null
2008-08-28T21:05:47.047
2008-08-28T23:59:04.900
2008-08-28T23:59:04.900
3,146
3,146
null
33,337
2
null
33,265
3
null
It appears from the MSDN article you linked to it was provided to allow for nullable boolean types prior to the Nullable (i.e. int?, bool?, etc.) type being introducted into the language in C#2. Thus you would store an internal value indicating whether the value is true or false or null, i.e. in your example >0 for tru...
null
CC BY-SA 2.5
null
2008-08-28T20:36:10.893
2008-08-28T20:51:47.957
2008-08-28T20:51:47.957
3,394
3,394
null
33,391
2
null
33,265
66
null
You can use it to override the `&&` and `||` operators. The `&&` and `||` operators can't be overridden, but if you override `|`, `&`, `true` and `false` in exactly the right way the compiler will call `|` and `&` when you write `||` and `&&`. For example, look at this code (from [http://ayende.com/blog/1574/nhiberna...
null
CC BY-SA 3.0
null
2008-08-28T21:02:48.333
2015-08-19T13:06:01.273
2015-08-19T13:06:01.273
60,188
3,509
null
33,396
2
null
33,395
1
null
I had to set securityTrimmingEnabled to "true" in my web.config file. ``` <?xml version="1.0"?> <configuration> ... <system.web> ... <siteMap defaultProvider="default"> <providers> <clear/> <add name="default" type="System.Web.XmlS...
null
CC BY-SA 2.5
null
2008-08-28T21:04:47.503
2008-08-28T21:04:47.503
null
null
83
null
33,408
2
null
33,386
0
null
Besides playing with turning off optimization and/or turning on debug information for your Release build as [pauldoo](https://stackoverflow.com/users/755/pauldoo) said, a log file will good data can really help. I once wrote a "trace" app that would capture trace logs for the app if it was running when the release buil...
null
CC BY-SA 2.5
null
2008-08-28T21:08:53.453
2008-08-28T21:08:53.453
2017-05-23T12:33:27.093
-1
1,441
null
33,415
2
null
33,409
0
null
I would test against [SUBSTRING](http://msdn.microsoft.com/en-us/library/ms187748.aspx)(textColumn, 0, 1)
null
CC BY-SA 2.5
null
2008-08-28T21:11:00.483
2008-08-28T21:11:00.483
null
null
2,688
null
33,425
2
null
33,409
338
null
``` where datalength(mytextfield)=0 ```
null
CC BY-SA 3.0
null
2008-08-28T21:14:17.417
2012-04-17T14:54:02.470
2012-04-17T14:54:02.470
142,162
1,219
null
33,424
2
null
33,403
2
null
List uses an array internally and Dictionary uses an hash table. They are faster then the older non-generic classes ArrayList and HashTable because you don't have the cost of converting everything to/from object (boxing, unboxing and type checking) and because MS optimized them better then the old classes.
null
CC BY-SA 2.5
null
2008-08-28T21:14:11.863
2008-08-28T21:14:11.863
null
null
3,509
null
33,409
1
33,425
null
209
514,857
I am using SQL Server 2005. I have a table with a text column and I have many rows in the table where the value of this column is not null, but it is empty. Trying to compare against '' yields this response: > The data types text and varchar are incompatible in the not equal to operator. Is there a special function...
How do I check if a SQL Server text column is empty?
CC BY-SA 2.5
0
2008-08-28T21:09:00.143
2021-07-29T09:26:59.037
2013-05-25T07:09:16.680
92,389
1,214
[ "sql-server", "sql-server-2005", "sqldatatypes", "notnull", "emptydatatext" ]
33,403
1
null
null
9
1,521
I'm creating an app that holds loads of loads of user data in memory, and it's mostly keeping it all in List<T> structures (and some Dictionary<T,T> when I need lookup). And I'm wondering... How efficient are Lists? How much memory overhead do I get for each of them? (that is, memory space in addition to what the obj...
.Net 2.0 - How efficient are Generic Lists?
CC BY-SA 2.5
null
2008-08-28T21:06:57.903
2011-09-15T16:57:07.490
2010-10-02T20:50:03.823
3,314
3,314
[ ".net", "performance", "generics", "list", "memory" ]
33,412
1
1,088,009
null
77
187,683
After reading Jeff's blog post on [Protecting Your Cookies: HttpOnly](http://www.codinghorror.com/blog/archives/001167.html). I'd like to implement HttpOnly cookies in my web application. How do you tell tomcat to use http only cookies for sessions?
How do you configure HttpOnly cookies in tomcat / java webapps?
CC BY-SA 2.5
0
2008-08-28T21:09:30.707
2021-05-29T05:54:51.450
2008-08-31T14:52:47.500
1,820
1,310
[ "java", "security", "cookies", "xss", "httponly" ]
33,407
2
null
33,403
2
null
Lists are arrays underneath, so the performance hit of adding an item, unless it is at the end, will be very costly. Otherwise they will be basically as fast as an array.
null
CC BY-SA 2.5
null
2008-08-28T21:08:51.907
2008-08-28T21:08:51.907
null
null
1,490
null
33,427
2
null
33,403
4
null
Maybe you should consider using some type of in-memory database if you have that much data that has to be held in the memory,
null
CC BY-SA 2.5
null
2008-08-28T21:14:49.630
2008-08-28T21:14:49.630
null
null
380
null
33,432
2
null
33,403
2
null
If you need efficiency in inserting or removing at random places in the list there is a LinkedList data structure - the [MSDN Article](http://msdn.microsoft.com/en-us/library/he2s3bh7.aspx) gives details. Obviously being a linked list random access isn't efficient.
null
CC BY-SA 2.5
null
2008-08-28T21:18:20.810
2008-08-28T21:18:20.810
null
null
3,394
null
33,430
2
null
33,223
0
null
Yes - it's a pipe dream. Since working with a professional web designer on a joint project who HATED the output of ASP.net server side controls I stopped using them. I essentially had to write ASP.net apps like you would write a modern PHP app. If you have a heavy business layer then your page or UI code can be mini...
null
CC BY-SA 2.5
null
2008-08-28T21:16:50.173
2008-08-28T21:16:50.173
null
null
2,763
null
33,429
2
null
32,020
2
null
Call it laziness but I kind of gave up looking a while after I found SoapUI - its not perfect (what is) but it does its job very well (especially given the price). More importantly given that there is scripting to allow you to set up automated tests we're heading towards an investment in the product. Might be nice if...
null
CC BY-SA 3.0
null
2008-08-28T21:15:38.303
2011-08-30T22:29:07.427
2011-08-30T22:29:07.427
31,493
1,070
null
33,426
2
null
32,930
2
null
At my last job I was tasked with finding a cross platform and preferably free way to write our application specific files to cd/dvd. I quickly found that writing CD's wasn't hard on windows, but I couldn't write DVD's easily, and that only worked on windows. I ended up writing a wrapper around [cdrecord](http://cdrec...
null
CC BY-SA 2.5
null
2008-08-28T21:14:41.973
2008-08-28T21:14:41.973
null
null
3,494
null
33,434
2
null
32,694
0
null
hmm, you're not supposed to have to restart the ypserver to have updates take effect; the in /var/yp ought to do the trick. you might want to check the Makefile in /var/yp to be sure it's triggering on the right conditions (namely, passwd.by* should check the timestamp on /etc/passwd in some fashion, versus its curr...
null
CC BY-SA 2.5
null
2008-08-28T21:20:26.560
2008-08-28T21:20:26.560
null
null
null
null
33,437
2
null
33,265
27
null
Shog9 and Nir: thanks for your answers. Those answers pointed me to [Steve Eichert article](http://steve.emxsoftware.com/NET/Overloading+the++and++operators) and it pointed me to [msdn](http://msdn.microsoft.com/en-us/library/aa691312.aspx): > The operation x && y is evaluated as T.false(x) ? x : T.&(x, y), where T.fa...
null
CC BY-SA 2.5
null
2008-08-28T21:23:27.397
2008-09-03T16:12:53.460
2008-09-03T16:12:53.460
2,361
2,361
null
33,442
2
null
26,762
0
null
I've used personally and managed a number of teams for a few years who have been doing Perforce & Visual Studio. It works perfectly well. There can be a couple of binding/rebinding gotchas, but these are generally easy to sort out - Perforce knowledgebase and/or the mailing list is a good source of info. Never had any...
null
CC BY-SA 2.5
null
2008-08-28T21:27:26.823
2008-08-28T21:27:26.823
null
null
2,102
null
33,405
2
null
33,390
5
null
You pretty much need to keep the same data context available throughout the lifetime of the operations you want to perform if you're ever going to be storing changes which are to be `.SubmitChanges()`'d later, as otherwise you will lose those changes. If you're just querying stuff then it's fine to create them as need...
null
CC BY-SA 3.0
null
2008-08-28T21:08:12.470
2017-06-09T10:23:43.157
2017-06-09T10:23:43.157
1,055,241
3,394
null
33,444
2
null
33,104
0
null
@jmein - you've described how to create a modal popup (which is exactly what jqModal does) however you've missed that the content of the modal window is served from another domain. The two domains involved belong to two separate companies so can't be combined in the way you describe.
null
CC BY-SA 2.5
null
2008-08-28T21:27:41.253
2008-08-28T21:27:41.253
null
null
1,456
null
33,440
2
null
33,301
4
null
Place the following in your content page: ``` <script type="text/javascript"> // here is a cross-browser compatible way of connecting // handlers to events, in case you don't have one function attachEventHandler(element, eventToHandle, eventHandler) { if(element.attachEvent) { element.attachEvent(eventToH...
null
CC BY-SA 2.5
null
2008-08-28T21:25:35.003
2008-08-28T21:25:35.003
null
null
1,790
null
33,450
2
null
33,403
2
null
The LinkedList object would take less time to add to and remove from because of the nature of linked lists. When you add an element it does not have to resize an array like a normal list does. Other than that improvement I would suspect that the LinkedList would perform about the same as a normal List. See this on W...
null
CC BY-SA 2.5
null
2008-08-28T21:29:49.017
2008-08-28T21:29:49.017
null
null
1,804
null
33,438
1
33,516
null
8
8,021
I am using [Hibernate](http://www.hibernate.org/) in a Java application to access my Database and it works pretty well with MS-SQL and MySQL. But some of the data I have to show on some forms has to come from Text files, and by Text files I mean Human-Readable files, they can be CSV, Tab-Delimited, or even a key, value...
Using Hibernate to work with Text Files
CC BY-SA 2.5
0
2008-08-28T21:24:19.780
2016-06-03T05:28:46.803
2008-08-28T21:30:54.757
2,274
2,274
[ "java", "database", "hibernate", "text-files" ]
33,449
1
30,211,736
null
39
92,633
Is there a way to call out from a TSQL stored procedure or function to a webservice?
Can you call a webservice from TSQL code?
CC BY-SA 2.5
0
2008-08-28T21:29:35.353
2020-02-21T14:00:49.957
null
null
1,874
[ "sql-server", "web-services", "tsql" ]
33,458
2
null
3,748
7
null
SQL Server 2008 offers a solution that has the best of both worlds : [The filestream data type](http://msdn.microsoft.com/en-us/library/cc716724.aspx). Manage it like a regular table and have the performance of the file system.
null
CC BY-SA 2.5
null
2008-08-28T21:37:10.623
2008-08-28T21:37:10.623
null
null
1,796
null
33,455
2
null
33,449
10
null
Not in T-SQL code itself, but with SQL Server 2005 and above, they've enabled the ability to write CLR stored procedures, which are essentially functions in .NET code and then expose them as stored procedures for consumption. You have most of the .NET framework at your fingertips for this, so I can see consumption of a...
null
CC BY-SA 2.5
null
2008-08-28T21:34:57.773
2008-08-28T21:34:57.773
null
null
71
null
33,448
2
null
33,347
2
null
1/ probably never - if IE wanted to add it, then I would have though it would have done so by now; but there are workarounds using [SilverLight](http://www.intertwingly.net/blog/2007/05/04/Inline-SVG-in-MSIE) and [Gecko](http://starkravingfinkle.org/blog/2006/03/svg-in-ie-update/) to provide rendering. On the other han...
null
CC BY-SA 2.5
null
2008-08-28T21:29:08.397
2008-08-28T21:29:08.397
null
null
1,527
null
33,457
1
33,742
null
0
6,772
Does anyone have a definitive answer to whether [Sql Server Management Objects](http://msdn.microsoft.com/en-us/library/ms162557.aspx) is compatible with Sql Server 7.0? The docs state: > Because SMO is compatible with SQL Server version 7.0, SQL Server 2000, SQL Server 2005, and SQL Server 2008, you easily manage a m...
SMO and Sql Server 7.0
CC BY-SA 2.5
null
2008-08-28T21:36:43.637
2012-07-01T13:12:59.593
null
null
2,199
[ "sql-server", "smo" ]
33,464
2
null
33,403
1
null
If you are concerned about memory usage, the real key is to store your array on disk and map just the parts you need into memory at that time. The key is to use FILE_FLAG_NO_BUFFERING and always read/write exactly one sector's worth of data.
null
CC BY-SA 2.5
null
2008-08-28T21:39:56.047
2008-08-28T21:39:56.047
null
null
1,490
null
33,459
1
33,519
null
8
34,121
Is it possible to use a flash document embedded in HTML as a link? I tried just wrapping the `object` element with an `a` like this: ``` <a href="http://whatever.com"> <object ...> <embed ... /> </object> </a> ``` In Internet Explorer, that made it show the location in the status bar like a link, bu...
How do you use a flash object as a link?
CC BY-SA 2.5
0
2008-08-28T21:37:13.697
2011-07-18T12:38:13.970
null
null
2,214
[ "html", "flash" ]
33,465
1
null
null
1
430
Working on a little side project web app... I'd like to have it set up so that, when users send email to a certain account, I can kick off a PHP script that reads the email, pulls out some key info, and writes it to a database. What's the best way to do this? A cron job that checks for new email? The app is running ...
Need a way to kick of a php script each time a particular account receives an email
CC BY-SA 4.0
0
2008-08-28T21:40:01.660
2019-01-18T11:11:47.053
2019-01-18T11:11:47.053
567,854
null
[ "php", "email" ]
33,466
2
null
33,306
3
null
The default allocator for STL containers uses operator new and delete, so it's whatever those route to for the type being contained. (In general, it comes from the heap unless you do something to override that.) You will not get a stack overflow from allocating 5 million strings. Even if you made a stack based allocat...
null
CC BY-SA 3.0
null
2008-08-28T21:41:43.030
2012-07-03T14:55:39.630
2012-07-03T14:55:39.630
142,162
1,799
null
33,433
2
null
9,272
5
null
Alternatively from P4Win, use the ""Local Files not in Depot" option on the left hand view panel. I don't use P4V much, but I think the equivalent is to select "Hide Local Workspace Files" in the filter dropdown of the Workspace view tab.p4 help fstat In P4V 2015.1 you'll find these options under the filter button li...
null
CC BY-SA 3.0
null
2008-08-28T21:19:01.103
2016-07-07T01:11:37.843
2016-07-07T01:11:37.843
332,922
2,102
null
33,439
2
null
32,930
0
null
Did your cdrecord methodology support dvd burning? And is there an easy way to redistribute/install cygwin with an application? StarBurn looks pretty good at first glance, although I'm a little hesitant to go with unproven libraries that have to handle something this complicated (especially with the number of types o...
null
CC BY-SA 2.5
null
2008-08-28T21:24:48.173
2008-08-28T21:24:48.173
null
null
327
null
33,456
2
null
33,412
10
null
For session cookies it doesn't seem to be supported in Tomcat yet. See the bug report [Need to add support for HTTPOnly session cookie parameter](https://issues.apache.org/bugzilla/show_bug.cgi?id=44382). A somewhat involved work-around for now can be found [here](http://manicode.blogspot.com/2008/03/httponly-support-f...
null
CC BY-SA 2.5
null
2008-08-28T21:36:07.973
2008-08-28T21:36:07.973
null
null
1,827
null
33,473
2
null
33,403
0
null
The .Net List doesn't use a linked list. It is an array, it starts with 4 positions by default and I think it doubles in size as you add things. So performance can vary a bit depending on how you use it. --- If your using VS 2008 run the profiler before you get too far down this rat hole. When we started actual...
null
CC BY-SA 3.0
null
2008-08-28T21:46:07.777
2011-09-15T16:57:07.490
2011-09-15T16:57:07.490
53,114
1,327
null
33,474
2
null
9,033
40
null
A couple other attributes from the [System.Diagnostics](http://msdn.microsoft.com/en-us/library/system.diagnostics.aspx) namespace are quite helpful. [DebuggerBrowsable](http://msdn.microsoft.com/en-us/library/system.diagnostics.debuggerbrowsableattribute.aspx) will let you hide variables from the debugger window (we ...
null
CC BY-SA 2.5
null
2008-08-28T21:46:35.407
2008-08-28T21:46:35.407
null
null
2,688
null
33,471
1
164,940
null
4
1,576
Is there a way to tell subversion "update/merge unless it would cause a conflict"? I know you can use `--dry-run` / `status -u` to check before running the update, but I often have others running updates and getting broken webpages because they don't notice the "C index.php" line. I've also noticed that svn doesn't...
Subversion: Fail update when there are conflicts?
CC BY-SA 2.5
null
2008-08-28T21:44:08.593
2008-10-02T23:24:29.227
2008-08-29T01:36:49.050
1,414
1,806
[ "svn", "command-line", "merge", "conflict" ]
33,478
1
35,561
null
0
2,509
Do you have a good experience with a control library? Something that is kind of robust, well documented, consistent (across different controls) and quite well integrated into the Visual Studio.
Can you recommend an ASP.NET control library?
CC BY-SA 2.5
0
2008-08-28T21:49:51.327
2013-04-22T14:52:17.137
2008-09-10T18:13:51.160
-1
223
[ "asp.net", "controls" ]
33,480
2
null
33,478
2
null
We're huge fans of [Telerik](http://www.telerik.com/products/aspnet-ajax/overview.aspx) here. Their control are all of the things you mention.
null
CC BY-SA 2.5
null
2008-08-28T21:50:46.177
2008-08-28T21:50:46.177
null
null
2,688
null
33,476
1
34,454
null
19
10,911
There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using valuebindings/expressions (not literal bindings), but I'm interested in explanations on them as...
JSF Lifecycle and Custom components
CC BY-SA 4.0
0
2008-08-28T21:48:57.053
2018-05-15T14:07:59.480
2018-05-15T14:07:59.480
1,797,006
1,432
[ "java", "jsf", "jakarta-ee", "custom-component" ]
33,479
2
null
33,465
1
null
if you have control of a mail transfer agent that is configurable to allow .forwards or similar configurable delivery options (qmail, postfix, and sendmail all are), i'd just set the script up in your .forward, .procmailrc, or other similar programmable delivery mechanism. when doing this, you should do some serious i...
null
CC BY-SA 2.5
null
2008-08-28T21:49:55.570
2008-08-28T21:49:55.570
null
null
null
null
33,483
2
null
33,471
1
null
Perhaps a better way is to use a graphical tool? Or write a script to do the update that redirects the output to a file and does a "cat svnupdate.log | grep "^C "" at the end to show you any conflicts? With the graphical tools that I use (TortoiseSVN and Netbeans), they make a nasty noise at the end and present you w...
null
CC BY-SA 2.5
null
2008-08-28T21:51:18.140
2008-08-28T21:51:18.140
null
null
1,432
null
33,482
2
null
32,649
-1
null
"and also is there a way of getting LINQ to ignore the issue and simply commit the data regardless?" You can set the 'Update Check' property on your entity to 'Never' to stop that field being used for optimistic concurrency checking. You can also use: ``` db.SubmitChanges(ConflictMode.ContinueOnConflict) ```
null
CC BY-SA 2.5
null
2008-08-28T21:51:12.383
2008-08-28T21:51:12.383
null
null
2,785
null
33,485
1
34,080
null
22
29,852
I'm starting a new web project and I am considering two presentation frameworks. I am thinking either about ASP.NET MVC or Silverlight. I would tend toward Silverlight since I'm quite experienced .NET developer while I have just a basic knowledge of ASP.NET controls.
ASP.NET vs. Silverlight
CC BY-SA 2.5
0
2008-08-28T21:51:58.870
2012-11-16T21:18:22.847
null
null
223
[ "asp.net", "silverlight" ]
33,469
1
33,795
null
17
4,505
So I just fixed a bug in a framework I'm developing. The pseudo-pseudocode looks like this: ``` myoldObject = new MyObject { someValue = "old value" }; cache.Insert("myObjectKey", myoldObject); myNewObject = cache.Get("myObjectKey"); myNewObject.someValue = "new value"; if(myObject.someValue != cache.Get("myObjectKey"...
Caching Patterns in ASP.NET
CC BY-SA 2.5
0
2008-08-28T21:43:16.163
2012-02-23T14:50:29.303
null
null
1,212
[ "asp.net", "caching" ]
33,488
2
null
33,465
0
null
You can use a [.forward](http://activecampaign.com/support/tt/index.php?action=kb&article=145) file. Just place the full path of your PHP script into the file, after a pipe sign: ``` |/full/path/to/script.php ```
null
CC BY-SA 3.0
null
2008-08-28T21:53:14.360
2012-11-13T09:46:58.420
2012-11-13T09:46:58.420
1,428,679
238
null
33,486
2
null
33,475
3
null
> ``` s = p.stderr.readline() ``` I suspect it's the above line. When you invoke a command directly through ssh, you don't get your full pty (assuming Linux), and thus no stderr to read from. When you log in interactively, stdin, stdout, and stderr are set up for you, and so your script works.
null
CC BY-SA 2.5
null
2008-08-28T21:53:10.850
2008-08-28T21:53:10.850
null
null
3,279
null
33,472
2
null
33,465
0
null
The Cronjob is the common solution to such a task. [Checking for new Mails with PHP](http://php.net/manual/en/function.imap-getmailboxes.php) is no Problem. If you run a qmail-server (maybe other servers can do this too?) you can [fire a script](http://www.faqts.com/knowledge_base/view.phtml/aid/34099/fid/139) on every...
null
CC BY-SA 2.5
null
2008-08-28T21:45:52.473
2008-08-28T21:45:52.473
null
null
1,462
null
33,489
2
null
33,478
3
null
Well, I can only speak about [the Infragistics controls](http://www.infragistics.com/) - they have a lot of bang for your buck and are well documented, very consistent and are well integrated with the standard ASP.NET programming model, etc. --- Begin rant: I personally think they are bloated and past their prime...
null
CC BY-SA 2.5
null
2008-08-28T21:53:34.233
2008-08-28T21:53:34.233
null
null
1,790
null
33,494
2
null
33,478
0
null
[ComponentArt](http://www.componentart.com) has some pretty cool controls. You might want to check out [Telerik](http://www.telerik.com) as well. Both companies offer pretty easy to use controls that look nice.
null
CC BY-SA 2.5
null
2008-08-28T21:56:54.257
2008-08-28T21:56:54.257
null
null
447
null
33,484
1
33,981
null
3
686
So I've looked at [this use](http://mjtemplate.org/examples/freebase/names.html?name=%EB%A1%9C%EB%A7%88&lang=ko) of the [freebase](http://freebase.com) API and I was really impressed with the translations of the name that it found. IE Rome, Roma, Rom, Rzym, Rooma,로마, 罗马市. This is because I have a database of some 5000+...
Can I export translations of place names from freebase.com
CC BY-SA 2.5
0
2008-08-28T21:51:40.480
2009-01-19T05:30:04.460
null
null
459
[ "translation", "freebase" ]
33,498
2
null
33,485
0
null
It's hard to recommend one over the other without knowing what your application is. Whatever you do decide, make sure you keep your target audience in mind; not everyone is going to have Silverlight installed on their computers. Personally, unless I was designing an incredibly interactive and beautiful web app, I wou...
null
CC BY-SA 2.5
null
2008-08-28T21:58:23.677
2008-08-28T21:58:23.677
null
null
1,574
null
33,495
1
33,855
null
3
404
I'm trying to read through the documentation on [Berkeley DB XML](http://www.oracle.com/technology/products/berkeley-db/index.html), and I think I could really use a developer's blog post or synopsis of when they had a problem that found the XML layer atop Berkeley DB was the exact prescription for. Maybe I'm not get...
Could you make a case for using Berkeley DB XML
CC BY-SA 3.0
null
2008-08-28T21:57:24.193
2017-08-04T14:35:00.947
2017-08-04T14:35:00.947
1,836,618
459
[ "berkeley-db", "berkeley-db-xml" ]
33,504
2
null
33,471
1
null
@jsight: TortoiseSVN is great, but I primarily develop in a *NIX environment, without X. So I'm usually using (restricted to) the command line. In re your script suggestion, that's what I'm working on now - which is why I'm annoyed that I can't just check $?. Right now I'm skipping the "output to a file" and using a...
null
CC BY-SA 2.5
null
2008-08-28T22:01:21.703
2008-08-28T22:01:21.703
null
null
1,806
null
33,500
2
null
31,722
17
null
There's another nice trick you can use to significantly improve the look of a rendered HTML diff. Although this doesn't fully solve the initial problem, it will make a significant difference in the appearance of your rendered HTML diffs. Side-by-side rendered HTML will make it very difficult for your diff to line up ...
null
CC BY-SA 3.0
null
2008-08-28T22:00:34.093
2012-10-03T03:05:06.257
2012-10-03T03:05:06.257
135,978
1,335
null
33,475
1
33,486
null
2
3,649
I need to launch a server on the remote machine and retrieve the port number that the server process is lsitening on. When invoked, the server will listen on a random port and output the port number on stderr. I want to automate the process of logging on to the remote machine, launching the process, and retrieving th...
ssh hangs when command invoked directly, but exits cleanly when run interactive
CC BY-SA 2.5
0
2008-08-28T21:48:09.363
2013-05-27T07:43:56.187
null
null
742
[ "python", "ssh" ]
33,507
2
null
33,469
1
null
I've done similar things, but I got around it by cloning too. The difference is that I had the cache do the cloning. When you put an object into the cache, the cache will clone the object first and store the cloned version (so you can mutate the original object without poisoning the cache). When you get an object from ...
null
CC BY-SA 2.5
null
2008-08-28T22:02:53.150
2008-08-28T22:02:53.150
null
null
3,488
null
33,452
2
null
31,913
0
null
I am having trouble understanding your requirements. But Ill state - in my own words as it were - what I understand the situation to be: - You have abstract Parameter class, which is subclassed eventually to some concrete classes (eg: ParameterLimitedInt).- You have a seperate GUI system which will be passed these par...
null
CC BY-SA 2.5
null
2008-08-28T21:31:24.897
2008-08-28T21:31:24.897
null
null
2,714
null
33,508
2
null
32,458
-1
null
How can your guy run the test again when it has failed to see if he has fixed it? I.e. he loses repeatability of tests. While I think there is probably some value in flinging a load of random data at tests, as mentioned in other replies it falls more under the heading of load testing than anything else. It is pretty m...
null
CC BY-SA 2.5
null
2008-08-28T22:02:54.743
2008-08-28T22:55:07.627
2008-08-28T22:55:07.627
2,102
2,102
null
33,503
2
null
32,930
1
null
My cdrecord method did support dvd burning, I just looked over the code, and boy did I forget how much time and effort I put into that class. cdrecord has no problem burning just about any type of media you throw at it, but since it is a stand alone application, I had to do a lot of parsing to get useful information. ...
null
CC BY-SA 2.5
null
2008-08-28T22:00:58.303
2008-08-28T22:00:58.303
null
null
3,494
null
33,502
2
null
33,347
7
null
Unfortunately, I don't have an answer, but I do have three pointers to projects that you could look at. The first is the [Lively Kernel](http://Research.Sun.Com/projects/lively/) by Dan Ingalls (yes, Dan Ingalls) at Sun Labs. It is an implementation of a Smalltalk Virtual World in JavaScript on top of SVG. More preci...
null
CC BY-SA 2.5
null
2008-08-28T22:00:41.160
2008-08-28T22:00:41.160
null
null
2,988
null
33,514
2
null
33,497
1
null
Since you're currently using hibernate the easiest thing to do is just check for that exception and wrap it in either a custom exception or in a custom result object you may have setup in your framework. If you want to ditch hibernate later just make sure you wrap this exception in only 1 place, the first place you ca...
null
CC BY-SA 2.5
null
2008-08-28T22:05:52.130
2008-08-28T22:05:52.130
null
null
3,030
null
33,513
1
33,528
null
4
1,653
Right now, I keep all of my projects on my laptop. I'm thinking that I shouldn't do this, but instead use a version control system and check them in/out from an external hosting repository (Google Code, SourceForge, etc). I see several benefits here - first, I don't have to worry about losing my code if my computer cra...
Should I use a software hosting solution for my personal projects?
CC BY-SA 2.5
null
2008-08-28T22:05:04.083
2016-07-09T05:43:39.110
null
null
572
[ "version-control", "projects", "project-hosting" ]
33,517
2
null
33,510
0
null
With my limited Mono experience I can say I'm quite sold on it. The fact that there is active development and a lot of ongoing effort to bring it up to spec with the latest .Net technologies is encouraging. It is incredibly useful to be able to use existing .Net skills on multiple platforms. I had similar issues wit...
null
CC BY-SA 2.5
null
2008-08-28T22:08:02.640
2008-08-28T22:08:02.640
null
null
327
null
33,515
2
null
33,513
8
null
[Assembla](http://www.assembla.com/) is --- EDIT: Yes, this is a good idea - I used to use a personal copy of [Vault](http://www.sourcegear.com/vault/) and found it was more than I cared to manage (in case my server went down or hard drive crashed - not only was it painful to worry about losing and backing up dat...
null
CC BY-SA 2.5
null
2008-08-28T22:06:45.450
2008-08-28T22:06:45.450
null
null
1,790
null
33,519
2
null
33,459
1
null
Though the object really should respond to being wrapped in an a href tag, you could open the swf in vim and just throw in an `_root.onPress=function(){getURL("http://yes.no/");};` or if it's AS3, something like `_root.addEventHandler(MouseEvent.PRESS, function (e:event) {getURL("http://yes.no/");});` But if editing th...
null
CC BY-SA 2.5
null
2008-08-28T22:09:06.130
2008-08-28T22:09:06.130
null
null
459
null
33,520
2
null
33,513
0
null
Online backup is cheap and easy. Why would you not?
null
CC BY-SA 2.5
null
2008-08-28T22:09:36.707
2008-08-28T22:09:36.707
null
null
356
null
33,523
2
null
33,485
0
null
It is mainly going to be an iternal product so browsers are not an issue. It's more about the price of development. Is it easier to learn Silverlight model or ASP.NET model? I expect that Silverlight is based on WebServices and so it might clearly divide my application code into a business logic (service) and presentat...
null
CC BY-SA 2.5
null
2008-08-28T22:11:07.267
2008-08-28T22:11:07.267
null
null
223
null
33,525
2
null
32,058
2
null
I ran into something similar a bit ago and [blogged about it](http://theruntime.com/blogs/jacob/archive/2008/01/28/getting-at-the-details.aspx). I'm not certain if it is precisely applicable, but might be. The code is simple enough once you realize that you have to go through a MessageFault object. In my case, I knew t...
null
CC BY-SA 2.5
null
2008-08-28T22:13:05.013
2008-08-28T22:13:05.013
null
null
1,336
null
33,526
2
null
8,472
2
null
Do you ever plan to provide an API for Stackoverflow that would allow manipulation of questions/answers programmatically? If so, how is CAPTCHA based protection going to fit into this? While providing just a rich read-only interface via Atom syndication feeds would allow people to create some interesting smart-clients...
null
CC BY-SA 2.5
null
2008-08-28T22:13:24.810
2008-08-28T22:13:24.810
null
null
2,029
null
33,497
1
33,564
null
4
3,154
Unchecked exceptions are alright if you want to handle every failure the same way, for example by logging it and skipping to the next request, displaying a message to the user and handling the next event, etc. If this is my use case, all I have to do is catch some general exception type at a high level in my system, an...
How do I recover from an unchecked exception?
CC BY-SA 2.5
0
2008-08-28T21:57:40.480
2010-05-25T20:29:09.870
2008-08-28T22:15:43.790
3,474
3,474
[ "c#", "java", "api", "exception" ]
33,528
2
null
33,513
4
null
After losing some freelance work to a hard drive crash, I've become keen on the philosophy that "It doesn't exist until its in source control". As I don't want to necessarily share the source for my projects with the rest of the world, I pay for webhosting (using [Dreamhost](http://www.dreamhost.com) who have great dea...
null
CC BY-SA 2.5
null
2008-08-28T22:14:11.643
2008-08-28T22:48:12.357
2008-08-28T22:48:12.357
327
327
null
33,529
1
33,541
null
53
129,156
Inspired by this CodingHorror article, "[Protecting Your Cookies: HttpOnly](http://www.codinghorror.com/blog/archives/001167.html)" How do you set this property? Somewhere in the web config?
How exactly do you configure httpOnlyCookies in ASP.NET?
CC BY-SA 2.5
0
2008-08-28T22:14:16.650
2016-09-15T13:01:53.873
2008-08-31T14:32:30.623
1,820
1,842
[ "asp.net", "cookies", "xss", "httponly" ]
33,509
2
null
33,497
3
null
I like to repackage exceptions between the "tiers" of my application, so for example a DB-specific exception is repackaged inside of another exception which is meaningful in the context of my application (of course, I leave the original exception as a member so I don't clobber the stack trace). That said, I think that...
null
CC BY-SA 2.5
null
2008-08-28T22:02:57.940
2008-08-28T22:02:57.940
null
null
1,490
null
33,532
2
null
33,529
11
null
With props to Rick (second comment down in the blog post mentioned), here's the [MSDN article](http://msdn.microsoft.com/en-us/library/system.web.configuration.httpcookiessection.httponlycookies.aspx) on httpOnlyCookies. Bottom line is that you just add the following section in your system.web section in your web.conf...
null
CC BY-SA 3.0
null
2008-08-28T22:17:45.253
2013-07-26T23:27:00.043
2013-07-26T23:27:00.043
71
71
null
33,530
2
null
33,485
3
null
Don't forget Silverlight is going to require a plug-in to use, and to my knowledge it has not been "natively" added to IE, let alone the rest of the browsers. So there could be tons of maintenance/support issues with that alone. PDF files are considered "ubiquitous" by now, but you still run into a user or two that doe...
null
CC BY-SA 2.5
null
2008-08-28T22:15:21.983
2008-08-28T22:15:21.983
null
null
71
null