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,533 | 2 | null | 33,485 | 4 | null | Both personally and professionally, I write C# daily for Windows forms apps and Windows services. Even after years of this, I find it FAR faster to whip out a web app with PHP or Python than to do it with .NET. Maybe things have changed with Silverlight, but to me the learning curve on ASP.NET is ridiculous compared to... | null | CC BY-SA 2.5 | null | 2008-08-28T22:17:54.987 | 2010-09-07T14:31:59.773 | 2010-09-07T14:31:59.773 | 356 | 356 | null |
33,536 | 2 | null | 33,150 | 0 | null | buyutec and Jesse Dearing both have an acceptable answer.
```
[Browsable(true)]
```
lets you see the property in the Properties window. However, the event doesn't show up, which makes no difference to me.
The thing I overlooked earlier was the fact that when you reference a control's even from the tag, it prep-end... | null | CC BY-SA 2.5 | null | 2008-08-28T22:18:14.580 | 2008-08-28T22:18:14.580 | null | null | 2,017 | null |
33,541 | 2 | null | 33,529 | 73 | null | If you're using ASP.NET 2.0 or greater, you can turn it on in the Web.config file. In the <system.web> section, add the following line:
```
<httpCookies httpOnlyCookies="true"/>
```
| null | CC BY-SA 3.0 | null | 2008-08-28T22:19:38.587 | 2014-05-25T06:00:49.820 | 2014-05-25T06:00:49.820 | 3,593,640 | 633 | null |
33,535 | 2 | null | 33,513 | 2 | null |
1. GitHub is a really great option for git.
2. Most of the free, public hosting sights will insist that you license your code with an OSS license (and, possibly, your documentation). That's potentially a different thing that you're talking about (backups).
3. For just backups, you may want to try a for-pay service or ... | null | CC BY-SA 2.5 | null | 2008-08-28T22:18:06.563 | 2008-08-28T22:18:06.563 | null | null | 825 | null |
33,543 | 2 | null | 31,173 | 0 | null | My co-worker has had 3 blue-screens on his machine since installing it. Not totally convinced this is what did it, but it's the only thing he's changed today. I'm uninstalling it for now (and so is he).
| null | CC BY-SA 2.5 | null | 2008-08-28T22:21:33.823 | 2008-08-28T22:21:33.823 | null | null | 633 | null |
33,542 | 2 | null | 33,497 | 1 | null | I agree with Nick. Exception you described is not really "unexpected exception" so you should design you code accordingly taking possible exceptions into account.
Also I would recommend to take a look at documentation of Microsoft Enterprise Library [Exception Handling Block](http://msdn.microsoft.com/en-us/library/cc... | null | CC BY-SA 2.5 | null | 2008-08-28T22:19:56.480 | 2008-08-28T22:42:38.517 | 2008-08-28T22:42:38.517 | 1,196 | 1,196 | null |
33,548 | 2 | null | 31,173 | 2 | null | "translate this" and "edit-page". I think I'd find the Google Apps features useful if they supported hosted domains.
| null | CC BY-SA 2.5 | null | 2008-08-28T22:24:28.670 | 2008-08-28T22:24:28.670 | null | null | 1,806 | null |
33,545 | 1 | 33,598 | null | 2 | 1,757 | I am interested in moving a number of my projects from Visual Studio and Access/Office Basic with a SQL back-end to the Linux world.
Are there any utilities available to move code over to a similar platform on Linux?
| Converter for VB.NET Code to Linux Platform Exist? | CC BY-SA 3.0 | null | 2008-08-28T22:22:55.973 | 2015-07-14T02:21:40.413 | 2015-07-14T02:21:40.413 | 3,555,000 | 3,125 | [
"vb.net",
"linux",
"ms-access"
] |
33,534 | 1 | 33,563 | null | 16 | 23,658 | I'm trying to extend some "base" classes in Python:
```
class xlist (list):
def len(self):
return len(self)
def add(self, *args):
self.extend(args)
return None
class xint (int):
def add(self, value):
self += value
return self
x = xlist([1,2,3])
print x.len() #... | Extending base classes in Python | CC BY-SA 2.5 | 0 | 2008-08-28T22:18:02.740 | 2022-02-16T10:55:42.467 | 2009-01-16T01:18:26.587 | null | 394 | [
"python"
] |
33,549 | 2 | null | 33,217 | 2 | null | Personally, I wouldn't. Trackbacks became completely unusable years ago from all the spammers and even Akismet hasn't been enough to drag them back to usable (obviously IMO). The best way I've seen to handle trackbacks any more is to have a function that will turn an article's "referrer" (you are tracking those, right?... | null | CC BY-SA 2.5 | null | 2008-08-28T22:24:38.950 | 2008-08-28T22:24:38.950 | null | null | 1,336 | null |
33,556 | 2 | null | 33,534 | 0 | null | Ints are immutable and you can't modify them in place, so you should go with option #2 (because option #1 is impossible without some trickery).
| null | CC BY-SA 2.5 | null | 2008-08-28T22:28:36.413 | 2008-08-28T22:28:36.413 | null | null | 3,119 | null |
33,539 | 2 | null | 33,403 | 1 | null | I think the two-process thing might be overkill; plus the interprocess communication will likely have some slowness (although I've never tried such a thing so take my opinion of it as a grain of salt). I work on a data-driven application where each data unit is tiny, but we may have upwards of a billion data units at ... | null | CC BY-SA 2.5 | null | 2008-08-28T22:18:58.400 | 2008-08-28T22:18:58.400 | null | null | 1,490 | null |
33,557 | 2 | null | 33,513 | 2 | null | I use Assembla - You can share your code , but you are not required to. That's a big plus to me.
| null | CC BY-SA 2.5 | null | 2008-08-28T22:29:12.743 | 2008-08-28T22:29:12.743 | null | null | 96 | null |
33,555 | 2 | null | 32,824 | 3 | null | Unfortunately if you look at `System.Web.HttpCachePolicy.UpdateCachedHeaders()` in .NET Reflector you see that there's an if statement specifically checking that the Cacheability is not Private before doing any ETag stuff. In any case, I've always found that `Last-Modified/If-Modified-Since` works well for our data and... | null | CC BY-SA 2.5 | null | 2008-08-28T22:27:44.247 | 2008-08-28T22:27:44.247 | null | null | 1,278 | null |
33,559 | 1 | 34,816 | null | 71 | 22,897 | I played with one of the early beta versions of PowerShell V1, but haven't used it since it went "gold". What is the best way to get started using PowerShell?
Which version of PowerShell should I be using (V1.0 vs 2.0 CTP's)? What are you using PowerShell for? Are there any tools that make using PowerShell easier (tha... | How to get started with PowerShell? | CC BY-SA 3.0 | 0 | 2008-08-28T22:30:54.923 | 2017-03-04T09:03:38.613 | 2014-11-10T22:23:09.980 | 63,550 | 708 | [
"powershell",
"scripting"
] |
33,561 | 2 | null | 33,478 | 1 | null | I've looked at of control libraries ... too many to count. I like the [DevExpress](http://www.devexpress.com) controls as they provided a complete suite for Windows and the Web. They also include charting, gauges and reports. We write apps for Windows and the Web so it makes it to transition between the two.
Thoug... | null | CC BY-SA 2.5 | null | 2008-08-28T22:31:11.507 | 2008-08-28T22:31:11.507 | null | null | 1,768 | null |
33,552 | 2 | null | 32,280 | 4 | null | Both the use of assertions and the throwing of exceptions are valid approaches here. Either mechanism can be used to indicate a programming error, not a runtime error, as is the case here.
- -
The choice really depends on the development practices of the project. The project as a whole needs to decide on an assert... | null | CC BY-SA 2.5 | null | 2008-08-28T22:26:27.197 | 2008-08-28T22:26:27.197 | null | null | 2,649 | null |
33,562 | 2 | null | 26,746 | 2 | null | @Boojiboy - When you are looking at the tables via a linked server, there used to be a column for what schema. It appears that in the latest the new Oracle OLEDB drivers don't show this information any longer.
| null | CC BY-SA 2.5 | null | 2008-08-28T22:31:17.107 | 2008-08-28T22:31:17.107 | null | null | 519 | null |
33,570 | 2 | null | 27,288 | 1 | null | I'd warn again doing a double for loop to pull out each datacell's data, and writing out individually to an excel cell. Instead, use a 2D object array, and loop through your datagrid saving all your data there. You'll then be able to set an excel range equal to that 2D object array.
This will be several orders of ma... | null | CC BY-SA 2.5 | null | 2008-08-28T22:37:10.790 | 2008-08-28T22:37:10.790 | null | null | 3,259 | null |
33,566 | 2 | null | 32,280 | 1 | null | Slightly off-topic, but one feature of [findbugs](http://findbugs.sourceforge.net/) that I think is very useful is to be able to annotate the parameters of methods to describe which parameters should not be passed a null value.
Using static analysis of your code, can then point out locations where the method is cal... | null | CC BY-SA 4.0 | null | 2008-08-28T22:34:06.913 | 2018-12-20T12:55:18.797 | 2018-12-20T12:55:18.797 | 1,997,093 | 2,649 | null |
33,567 | 2 | null | 33,510 | 1 | null | Are you planning a desktop or web application?
Everyone around here seems to think that Mono is great, but I still do not think it is ready for industry use, I would equate mono to where wine is, great idea; when it works it works well, and when it doesn't...well your out of luck. mod_mono for Apache is extremely gli... | null | CC BY-SA 2.5 | null | 2008-08-28T22:34:48.753 | 2008-08-28T22:40:02.780 | 2008-08-28T22:40:02.780 | 1,638 | 1,638 | null |
33,563 | 2 | null | 33,534 | 6 | null | `int` is a value type, so each time you do an assignment, (e.g. both instances of `+=` above), it doesn't modify the object you have on the heap, but replaces the reference with one of the result of the right hand side of the assignment (i.e. an `int`)
`list` isn't a value type, so it isn't bound by the same rules.
thi... | null | CC BY-SA 4.0 | null | 2008-08-28T22:32:40.147 | 2021-04-21T08:19:13.070 | 2021-04-21T08:19:13.070 | 3,789,665 | 2,774 | null |
33,577 | 1 | 119,595 | null | 12 | 24,593 | I want to check out all files in all subdirectories of a specified folder.
(And it is painful to do this using the GUI, because there is no recursive checkout option).
| How do I perform a recursive checkout using ClearCase? | CC BY-SA 2.5 | 0 | 2008-08-28T22:44:22.880 | 2013-02-15T10:36:57.370 | 2010-08-26T18:10:12.637 | 814 | 814 | [
"version-control",
"clearcase"
] |
33,576 | 2 | null | 33,559 | 16 | null | There are a number of PowerShell tools, for example,
- [PowerGUI](http://powergui.org/index.jspa)- [PowerShell Plus](http://www.powershellplus.com/) (not free)- [PowerShell in Action](https://rads.stackoverflow.com/amzn/click/com/1932394907) is a well-regarded book.
And the Powershell team [has a blog](http://blogs.m... | null | CC BY-SA 3.0 | null | 2008-08-28T22:42:57.173 | 2014-11-10T22:25:22.723 | 2014-11-10T22:25:22.723 | 63,550 | 9 | null |
33,582 | 2 | null | 33,559 | 2 | null | Check [PowerGUI](http://www.powergui.org/index.jspa), a PowerShell GUI and script editor. I don't use it yet, but I saw the sample videos and looks good. Also, the site mantains a library with sample scripts.
[Here](http://www.computerperformance.co.uk/powershell/powershell_service.htm) is another excellent PowerShe... | null | CC BY-SA 2.5 | null | 2008-08-28T22:46:34.903 | 2008-08-28T22:46:34.903 | null | null | 394 | null |
33,585 | 2 | null | 31,868 | 1 | null | Not sure on exactly which web service to use, but if you are in a position where you can use the SharePoint .NET API Dlls, then using the SPList and SPLibrary.Items.Add is really easy.
| null | CC BY-SA 2.5 | null | 2008-08-28T22:48:39.233 | 2008-08-28T22:48:39.233 | null | null | 697 | null |
33,584 | 2 | null | 31,500 | 1 | null | @Mike: Thanks for the detailed analysis. There are definately some interesting points you make there. The example I posted is somewhat trivial but the basis of the question came from using NHibernate.
With NHibernate, you can write a clause like this:
```
int[] employeeIds = new int[]{1, 5, 23463, 32523};
NHibernateS... | null | CC BY-SA 2.5 | null | 2008-08-28T22:48:31.060 | 2008-08-28T22:48:31.060 | null | null | 493 | null |
33,564 | 2 | null | 33,497 | 15 | null | IMO, wrapping exceptions (checked or otherwise) has several benefits that are worth the cost:
1) It encourages you to think about the failure modes for the code you write. Basically, you have to consider the exceptions that the code you call may throw, and in turn you'll consider the exceptions you'll throw for the co... | null | CC BY-SA 2.5 | null | 2008-08-28T22:32:53.390 | 2010-05-25T20:29:09.870 | 2010-05-25T20:29:09.870 | 3,488 | 3,488 | null |
33,578 | 2 | null | 33,034 | 5 | null | This kind of session tracking is very likely to be done using a combination of a cookie with a unique id identifying your current session, and the website pairing that id with the last IP address you used to connect to their server. That way, if the IP changes, but you still have the cookie, you're identified and logge... | null | CC BY-SA 2.5 | null | 2008-08-28T22:44:29.587 | 2008-08-28T22:44:29.587 | null | null | 2,984 | null |
33,580 | 2 | null | 33,510 | 2 | null | Just to cite an example: for .NET apps there are the CAB (Composite Application Block) and the Composite Application Guidance for WPF. Both are mainly implementations of a set of several design patterns focused on modularity and loose coupling between components similar to a plug-in architecture: you have an IOC framew... | null | CC BY-SA 2.5 | null | 2008-08-28T22:45:33.983 | 2008-08-28T22:45:33.983 | null | null | 2,954 | null |
33,588 | 2 | null | 16,322 | 7 | null | Mention LINQ to Entities since ADO.NET Entity Framework will be an important .NET module.
| null | CC BY-SA 2.5 | null | 2008-08-28T22:52:29.147 | 2008-08-28T22:52:29.147 | null | null | 1,796 | null |
33,516 | 2 | null | 33,438 | 8 | null | Hibernate is written against the JDBC API. So, you need a JDBC driver that works with the file format you are interested in. Obviously, even for read-only access, this isn't going to perform well, but it might still be useful if that's not a high priority. On a Windows system, you can set up ODBC datasources for delimi... | null | CC BY-SA 2.5 | null | 2008-08-28T22:07:04.733 | 2016-06-03T05:28:46.803 | 2016-06-03T05:28:46.803 | 3,474 | 3,474 | null |
33,591 | 2 | null | 33,510 | 1 | null | If you plan on doing python development, you can always use [pyrex](http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/) to optimize some of the slower parts.
| null | CC BY-SA 2.5 | null | 2008-08-28T22:55:07.003 | 2008-08-28T22:55:07.003 | null | null | 2,147 | null |
33,593 | 2 | null | 33,104 | 0 | null | i believe @pat was refering to this
"As of jQuery 1.2, you can load JSON data located on another domain if you specify a JSONP callback, "
[http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback](http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback)
| null | CC BY-SA 2.5 | null | 2008-08-28T22:59:52.467 | 2008-08-28T22:59:52.467 | null | null | 1,842,864 | null |
33,587 | 2 | null | 33,510 | 1 | null | If you want platform independence, then you'll have to trade off between performance and development effort. C++ may be faster than Java (this is debatable FWIW) but you'll get platform independence a lot more easily with Java. Python and Ruby are in the same boat.
I doubt that .NET would be much faster than Java (the... | null | CC BY-SA 2.5 | null | 2008-08-28T22:51:31.397 | 2008-08-28T22:51:31.397 | null | null | 3,488 | null |
33,461 | 2 | null | 33,412 | 20 | null | >
When setting cookies in your app, use
```
response.setHeader( "Set-Cookie", "name=value; HttpOnly");
```
However, in many webapps, the most important cookie is the session identifier, which is automatically set by the container as the JSESSIONID cookie.
If you only use this cookie, you can write a ServletFilter... | null | CC BY-SA 3.0 | null | 2008-08-28T21:37:36.270 | 2012-06-11T08:57:47.140 | 2012-06-11T08:57:47.140 | 1,820 | 1,820 | null |
33,598 | 2 | null | 33,545 | 4 | null | Here's a link to the [Mono Migration Analyzer](http://www.mono-project.com/MoMA) to get started. It will help you pinpoint Microsoft specific calls, but you'll probably have to do the db conversion and data access layer manually. You may be surprised - mono does have a System.Data.SqlClient namespace so you may not h... | null | CC BY-SA 2.5 | null | 2008-08-28T23:01:58.843 | 2008-08-28T23:01:58.843 | null | null | 2,555 | null |
33,603 | 2 | null | 33,301 | 0 | null | How about use code like the following in your Content Page (C#)?
```
Page.ClientScript.RegisterStartupScript(this.GetType(), "resizeMyPage", "window.onresize=function(){ resizeMyPage();}", true);
```
Thus, you could have a `resizeMyPage` function defined somewhere in the Javascript and it would be run whenever the b... | null | CC BY-SA 3.0 | null | 2008-08-28T23:06:55.713 | 2016-02-08T14:48:56.613 | 2016-02-08T14:48:56.613 | 92,701 | 384 | null |
33,605 | 2 | null | 33,577 | 8 | null | ```
cleartool find somedir -exec "cleartool checkout -nc \"%CLEARCASE_PN%\""
```
Also an article "[ClearCase: The ten best scripts](http://www.ibm.com/developerworks/rational/library/4687.html)" might be helpful
| null | CC BY-SA 2.5 | null | 2008-08-28T23:07:32.933 | 2008-08-28T23:07:32.933 | null | null | 1,196 | null |
33,602 | 2 | null | 33,347 | 2 | null | As @jwmittag mentioned `<canvas>` is an option.
It works in Saffari and Firefox 3, Opera 9, and [people are developing support for IE](http://arstechnica.com/news.ars/post/20080819-mozilla-drags-ie-into-the-future-with-canvas-element-plugin.html).
You could easily capture mouse clicks associated with the current too... | null | CC BY-SA 2.5 | null | 2008-08-28T23:06:27.243 | 2008-08-28T23:06:27.243 | null | null | 3,415 | null |
33,604 | 2 | null | 16,330 | 9 | null | Investigate the post-redirect-get pattern.
[http://weblogs.asp.net/mhawley/archive/tags/MVC/default.aspx](http://weblogs.asp.net/mhawley/archive/tags/MVC/default.aspx)
[http://devlicio.us/blogs/tim_barcz/archive/2008/08/22/prg-pattern-in-the-asp-net-mvc-framework.aspx](http://devlicio.us/blogs/tim_barcz/archive/2008/0... | null | CC BY-SA 2.5 | null | 2008-08-28T23:07:28.550 | 2008-08-28T23:07:28.550 | null | null | 2,676 | null |
33,612 | 2 | null | 10,098 | 2 | null | This is sort of a silly question, but I prefer Rhino Mocks as it represents a more complete understanding of [mocks vs. stubs](http://martinfowler.com/articles/mocksArentStubs.html).
Look deep into TypeMock before committing to the price.
Also, there is no recommended mocking framework for ASP.NET MVC.
Finally - I'd... | null | CC BY-SA 2.5 | null | 2008-08-28T23:10:33.830 | 2008-08-28T23:10:33.830 | null | null | 2,676 | null |
33,609 | 2 | null | 6,579 | 1 | null | I've been working with a team using XP and Scrum practices sprinkled with some lean. It's been very productive.
- helps us keep complete track of what and where everyone is working on.
- has improved our code base and helped remove "silly" bugs being introduced into the system.
- using 1 week iterations has helped ... | null | CC BY-SA 2.5 | null | 2008-08-28T23:08:40.450 | 2008-08-28T23:08:40.450 | null | null | 3,030 | null |
33,590 | 1 | 35,019 | null | 1 | 1,779 | Has anyone looked at [Yahoo's ASTRA](http://developer.yahoo.com/flash/)? It's fairly nifty, but I had some issues creating a custom label for a pie chart. They have an example for a line chart, which overrides an axis's series's label renderer. My solution was to override the `myPieChart.dataTipFunction`. For data tha... | Drawing a custom label on a pie chart in Yahoo's Flash Library ASTRA | CC BY-SA 2.5 | null | 2008-08-28T22:54:37.690 | 2008-09-16T01:54:43.130 | 2020-06-20T09:12:55.060 | -1 | 459 | [
"flash",
"actionscript-3",
"datatipfunction"
] |
33,510 | 1 | 33,580 | null | 1 | 550 | I hope this question does not come off as broad as it may seem at first. I am designing a software application that I would like to be both cross-platform and modular. I am still in the planning phase and can pick practically any language and toolset.
This makes things harder, not easier, because there are seemingly so... | What is the best approach to both modularity and platform independence? | CC BY-SA 4.0 | null | 2008-08-28T22:03:58.093 | 2022-10-07T00:50:00.917 | 2022-10-07T00:50:00.917 | 11,107,541 | 958 | [
"compiled",
"interpreted-language"
] |
33,597 | 2 | null | 32,640 | 0 | null | I find that long mocking procedure to be too much friction.
The best way we have found - using ASP.NET MVC on a real project - is to abstract the HttpContext to an IWebContext interface that simply passes through. Then you can mock the IWebContext with no pain.
Here is an [example](http://code.google.com/p/tarantino/... | null | CC BY-SA 2.5 | null | 2008-08-28T23:01:25.523 | 2008-08-28T23:01:25.523 | null | null | 2,676 | null |
33,619 | 1 | 33,628 | null | 1 | 697 | I'm really asking this by proxy, another team at work has had a change request from our customer.
The problem is that our customer doesn't want their employees to login with one user more than one at the same time. That they are getting locked out and sharing logins.
Since this is on a web farm, what would be the be... | Concurrent logins in a web farm | CC BY-SA 3.0 | null | 2008-08-28T23:17:43.017 | 2017-02-21T01:17:09.017 | 2017-02-21T01:17:09.017 | 6,220,207 | 1,602 | [
"asp.net",
"authentication"
] |
33,622 | 2 | null | 32,612 | 6 | null | Session management:
[http://code.google.com/p/dot-net-reference-app/source/browse/trunk/src/Infrastructure/Impl/HybridSessionBuilder.cs](http://code.google.com/p/dot-net-reference-app/source/browse/trunk/src/Infrastructure/Impl/HybridSessionBuilder.cs)
Session per request:
[http://code.google.com/p/dot-net-reference... | null | CC BY-SA 2.5 | null | 2008-08-28T23:20:08.207 | 2008-08-28T23:20:08.207 | null | null | 2,676 | null |
33,626 | 2 | null | 19,201 | 4 | null | Well, all I can say is that I completely agree. The back-end is great but the UI sucks. The stream functionality is great because it makes merging no brainier as all changes from parent streams are automatically propagated to all children. I wrote [a post about Accurev UI](http://pabich.eu/blog/archive/2008/01/30/accur... | null | CC BY-SA 2.5 | null | 2008-08-28T23:22:31.307 | 2008-08-28T23:22:31.307 | null | null | 3,323 | null |
33,594 | 1 | null | null | 4 | 14,260 | I need to `ShellExecute` something as another user, currently I start a helper process with `CreateProcessAsUser` that calls `ShellExecute`, but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this?
@PabloG: ImpersonateLoggedOnUser does not work:
will just start calc as th... | CreateProcessAsUser vs ShellExecute | CC BY-SA 3.0 | 0 | 2008-08-28T23:00:05.137 | 2012-04-25T23:43:53.283 | 2012-04-25T23:43:53.283 | 1,332,690 | 3,501 | [
"winapi",
"windows-nt"
] |
33,618 | 2 | null | 33,262 | 157 | null | Whoa there!
There's a potentially serious problem with this code, because it ignores the character encoding specified in the `String` (which is UTF-8 by default). When you call `String.getBytes()` the platform default encoding is used to encode Unicode characters to bytes. So, the parser may think it's getting UTF-8 ... | null | CC BY-SA 2.5 | null | 2008-08-28T23:16:54.800 | 2008-08-28T23:16:54.800 | null | null | 3,474 | null |
33,628 | 2 | null | 33,619 | 7 | null | You could look at using a distributed cache system like [memcached](http://www.danga.com/memcached/)
It would solve this problem pretty well (it's MUCH faster than a database), and is also excellent for caching pretty much anything else too
| null | CC BY-SA 2.5 | null | 2008-08-28T23:22:58.670 | 2008-08-28T23:22:58.670 | null | null | 234 | null |
33,633 | 2 | null | 33,630 | 0 | null | Something we found out recently: with MySQL running on Win32, you can only use up to 2GB per process. On Win64, the memory is not managed as well and a single MySQL instance will run your memory into the ground. Ours used up all 16GB we have. So regarding how much memory 1 64-bit process can use: the answer is however ... | null | CC BY-SA 2.5 | null | 2008-08-28T23:28:51.603 | 2008-08-28T23:28:51.603 | null | null | 356 | null |
33,630 | 1 | 33,659 | null | 2 | 4,614 | Obviously, that's 64-bit windows.
Also, what's the maximum amount of memory a single 64-bit process can use?
I was kind of counting on using it all...
(Yes, I know what I'm doing, please don't tell me that if I need that much RAM i must be doing something wrong)
Also, is this the same for a .Net 2.0 process? Or is t... | What's the maximum amount of RAM I can use in a Windows box? | CC BY-SA 2.5 | null | 2008-08-28T23:25:02.783 | 2012-04-01T20:43:38.730 | 2008-08-29T01:25:57.530 | 1,414 | 3,314 | [
"windows",
"memory",
".net-2.0",
"64-bit",
"hardware"
] |
33,623 | 2 | null | 33,619 | 6 | null | It's just a cost of doing business.
Yes, caching to a database is slower than caching on your webserver. But you've got to store that state information in a centralized location, otherwise one webserver isn't going to know what users are logged into another.
Assumption: You're trying to prevent multiple concurrent l... | null | CC BY-SA 2.5 | null | 2008-08-28T23:20:57.003 | 2008-08-28T23:20:57.003 | null | null | 3,521 | null |
33,636 | 2 | null | 33,630 | 0 | null | [According to wikipedia](http://en.wikipedia.org/wiki/Windows_XP_editions#Advantages) you can have 128 GB of physical RAM in a 64-bit Windows XP computer.
| null | CC BY-SA 2.5 | null | 2008-08-28T23:29:45.720 | 2008-08-28T23:29:45.720 | null | null | 2,654 | null |
33,637 | 1 | 33,707 | null | 33 | 294,390 | I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge?
| How does GPS in a mobile phone work exactly? | CC BY-SA 2.5 | 0 | 2008-08-28T23:29:57.607 | 2016-02-27T15:12:04.087 | 2009-10-07T22:16:28.640 | 147,141 | 1,782 | [
"gps",
"mobile-phones"
] |
33,635 | 2 | null | 33,630 | 6 | null | What version of windows? it differs from XP to vista and from home to business versions of vista, and I would guess again for server.
see [here for more info on maximum ram for diffrent windows versions](http://msdn.microsoft.com/en-us/library/aa366778.aspx)
for Windows Server 2008 Datacenter MS quote 2 TB of physica... | null | CC BY-SA 2.5 | null | 2008-08-28T23:29:42.070 | 2008-08-28T23:41:18.500 | 2008-08-28T23:41:18.500 | 2,098 | 2,098 | null |
33,646 | 2 | null | 33,471 | 1 | null | You could use the --diff3-cmd parameter to specify which merging tool to use (usually diff3 from diffutils).
| null | CC BY-SA 2.5 | null | 2008-08-28T23:33:34.150 | 2008-08-28T23:33:34.150 | null | null | 3,069 | null |
33,645 | 2 | null | 33,630 | 0 | null | This is a Windows Server machine.
As for which edition (Datacenter, Enterprise, etc)... Whatever it takes to give my little .Net Process as much memory as it can.
| null | CC BY-SA 2.5 | null | 2008-08-28T23:33:29.033 | 2008-08-28T23:33:29.033 | null | null | 3,314 | null |
33,638 | 1 | 33,656 | null | 7 | 701 | As you develop an application database changes inevitably pop up. The trick I find is keeping your database build in step with your code. In the past I have added a build step that executed SQL scripts against the target database but that is dangerous in so much as you could inadvertanly add bogus data or worse.
M... | Testing and Managing database versions against code versions | CC BY-SA 2.5 | 0 | 2008-08-28T23:30:16.780 | 2010-10-23T09:00:30.647 | null | null | 2,894 | [
"database",
"version-control",
"testing",
"build-process"
] |
33,639 | 2 | null | 33,630 | 1 | null | We run Windows boxes with 16 gigs of memory, but that is because we are running multiple VM Ware instances, I presume you mean in a single instance. On Vista it depends upon the edition. It breaks out like this:
> 8 GB
16 GB
128+ GB
| null | CC BY-SA 2.5 | null | 2008-08-28T23:31:21.223 | 2008-08-28T23:31:21.223 | null | null | 2,213 | null |
33,611 | 2 | null | 32,333 | 9 | null | I don't think this is a concern.
Yes, the mythical "somebody" can replace the implementation of MD5 with something insecure. But in order to do that, the mythical somebody must actually be able to get his code into the Ruby process. And if he can do that, then he presumably could also inject his code into a Java proce... | null | CC BY-SA 2.5 | null | 2008-08-28T23:09:11.183 | 2008-08-28T23:09:11.183 | null | null | 2,988 | null |
33,653 | 2 | null | 33,619 | 1 | null | It depends on how the authentication is done. If you store the last successful login datetime (whatever the backend), so maybe you can change the schema to store a flag "logged_in" and that won't involve an extra performance cost. (ok, it's not clean at all)
| null | CC BY-SA 2.5 | null | 2008-08-28T23:36:37.373 | 2008-08-28T23:36:37.373 | null | null | 3,069 | null |
33,656 | 2 | null | 33,638 | 3 | null | Version numbers embedded in the database are helpful. You have two choices, embedding values into a table (allows versioning multiple items) that can be queried, or having an explictly named object (such as a table or somesuch) you can test for.
When you release to production, do you have a rollback plan in the event... | null | CC BY-SA 2.5 | null | 2008-08-28T23:38:10.893 | 2008-08-28T23:46:10.377 | 2008-08-28T23:46:10.390 | 3,521 | 3,521 | null |
33,659 | 2 | null | 33,630 | 1 | null | From [http://technet.microsoft.com/en-us/library/cc758523.aspx](http://technet.microsoft.com/en-us/library/cc758523.aspx)
- Windows Server 2003, 64 bit Datacenter Edition supports physical memory up to 512GB
A single process should be able to use most of it, some will be used by the OS.
The answer from Re0sless is ... | null | CC BY-SA 2.5 | null | 2008-08-28T23:40:25.040 | 2008-08-29T00:21:22.630 | 2008-08-29T00:21:22.630 | 1,834 | 1,834 | null |
33,651 | 2 | null | 33,497 | 0 | null | You can catch unchecked exceptions without needing to wrap them. For example, the following is valid Java.
```
try {
throw new IllegalArgumentException();
} catch (Exception e) {
System.out.println("boom");
}
```
So in your action/controller you can have a try-catch block around the logic where the Hibernate... | null | CC BY-SA 2.5 | null | 2008-08-28T23:36:12.693 | 2008-08-28T23:36:12.693 | null | null | 3,087 | null |
33,642 | 2 | null | 33,637 | 12 | null | There's 3 satellites at least that you must be able to receive from of the 24-32 out there, and they each broadcast a time from a synchronized atomic clock. The differences in those times that you receive at any one time tell you how long the broadcast took to reach you, and thus where you are in relation to the satell... | null | CC BY-SA 3.0 | null | 2008-08-28T23:32:23.060 | 2011-06-28T19:43:51.470 | 2011-06-28T19:43:51.470 | 29,693 | 459 | null |
33,661 | 2 | null | 33,594 | 0 | null | You can wrap the ShellExecute between ImpersonateLoggedOnUser / RevertToSelf
links:
ImpersonateLoggedOnUser: [http://msdn.microsoft.com/en-us/library/aa378612(VS.85).aspx](http://msdn.microsoft.com/en-us/library/aa378612(VS.85).aspx)
RevertToSelf: [http://msdn.microsoft.com/en-us/library/aa379317.aspx](http://msdn.mi... | null | CC BY-SA 2.5 | null | 2008-08-28T23:40:43.680 | 2008-08-28T23:40:43.680 | null | null | 394 | null |
33,667 | 2 | null | 33,664 | 9 | null | The fact that the L2S designer doesn't support syncing with the database structure is a huge limitation in my mind. However, there is an add-in available that provides some re-sync capabilities:
[http://www.huagati.com/dbmltools/](http://www.huagati.com/dbmltools/)
Unfortunately, it's no longer free.
| null | CC BY-SA 2.5 | null | 2008-08-28T23:46:23.387 | 2008-08-28T23:46:23.387 | null | null | 9 | null |
33,666 | 2 | null | 33,638 | 1 | null | > You should be able to create your database from scratch into a known state.
While being able to do so is helpful (especially in the early stages of a new project), many (most?) databases will quickly become far too large for that to be possible. Also, if you have any BLOBs then you're going to have problems generati... | null | CC BY-SA 2.5 | null | 2008-08-28T23:45:32.063 | 2008-08-28T23:45:32.063 | null | null | 3,488 | null |
33,664 | 1 | 36,749 | null | 33 | 8,983 | I've just started using Linq to SQL, and I'm wondering if anyone has any best practices they can share for managing dbml files.
- - -
Any other tips and tricks welcome.
| Best Practices for Managing Linq to SQL Dbml Files? | CC BY-SA 2.5 | 0 | 2008-08-28T23:42:14.037 | 2013-08-24T16:06:29.003 | 2013-08-24T16:06:29.003 | 861,716 | 637 | [
"linq-to-sql"
] |
33,615 | 2 | null | 31,854 | 4 | null | [C++: The Most Powerful Language for .NET Framework Programming](http://msdn.microsoft.com/en-us/library/ms379617%28VS.80%29.aspx#vs05cplus_topic12)
I was about to approach a project that needed to marshal structured data across the C++/C# boundary, but I found what could be a better way (especially if you know C++ an... | null | CC BY-SA 2.5 | null | 2008-08-28T23:13:18.957 | 2008-08-28T23:13:18.957 | null | null | 2,543 | null |
33,670 | 2 | null | 79 | 4 | null | if you're not going to be using mylyn just uncheck that dependency. I'm not really familiar with Aptana, but in eclipse you can expand whats being installed and uncheck anything you don't need.
| null | CC BY-SA 2.5 | null | 2008-08-28T23:47:09.780 | 2008-08-28T23:47:09.780 | null | null | 1,425 | null |
33,663 | 2 | null | 33,534 | 30 | null | Your two `xint` examples don't work for two different reasons.
The first doesn't work because `self += value` is equivalent to `self = self + value` which just reassigns the local variable `self` to a different object (an integer) but doesn't change the original object. You can't really get this
```
>>> x = xint(10)... | null | CC BY-SA 2.5 | null | 2008-08-28T23:41:55.720 | 2008-08-29T16:55:52.260 | 2008-08-29T16:55:52.260 | 3,002 | 3,002 | null |
33,668 | 2 | null | 33,438 | 0 | null | Like erickson said, your only hope is in finding a JDBC driver for that task. There is maybe [xlsql](https://xlsql.dev.java.net/) (CSV, XML and Excel driver) which could fit the task. After that, you just have to either find or write the most simple Hibernate Dialect which fits your driver.
| null | CC BY-SA 3.0 | null | 2008-08-28T23:46:49.907 | 2015-04-20T05:25:47.520 | 2015-04-20T05:25:47.520 | 725,306 | 3,069 | null |
33,677 | 2 | null | 33,334 | 1 | null | You can use Reflector to search for uses of the Switch class and its subclasss (BooleanSwitch, TraceSwitch, etc). The various switches are hardcoded by name, so AFAIK there's no master list somewhere.
| null | CC BY-SA 2.5 | null | 2008-08-28T23:53:10.967 | 2008-08-28T23:53:10.967 | null | null | 9 | null |
33,669 | 2 | null | 31,567 | 1 | null | @[lubos hasko](https://stackoverflow.com/questions/31567/how-to-properly-cast-objects-created-through-reflection#31638)
You nailed it on the nose. My original design did have three different assemblies with both the host and plugin implementation referencing the plugin interface assembly.
I tried a separate solution... | null | CC BY-SA 2.5 | null | 2008-08-28T23:47:08.283 | 2008-08-28T23:47:08.283 | 2017-05-23T10:27:50.457 | -1 | 1,880 | null |
33,671 | 2 | null | 1,711 | 7 | null | While I agree that many of the books above are must-reads (Pragmatic Programmer, Mythical Man-Month, Art of Computer Programming, and SICP come to mind immediately), I'd like to go in a slightly different direction and recommend [A Discipline of Programming](https://rads.stackoverflow.com/amzn/click/com/013215871X) by ... | null | CC BY-SA 2.5 | null | 2008-08-28T23:47:12.153 | 2008-08-28T23:47:12.153 | null | null | 3,525 | null |
33,681 | 2 | null | 32,003 | 1 | null | > Crono wrote:> Are Environment variables defined via "set" not meant for the current session only? Can I persist them?
They are set for the current process, and by default inherited by any process that it creates. They are not persisted to the registry. Their scope can be limited in cmd scripts with "setlocal" (and ... | null | CC BY-SA 2.5 | null | 2008-08-28T23:56:51.723 | 2008-08-28T23:56:51.723 | 2020-06-20T09:12:55.060 | -1 | 2,574 | null |
33,673 | 2 | null | 33,475 | 0 | null | what if you do the following:
## ssh <remote host> '<your command> ;<your regexp using awk or something>'
For example
## ssh <remote host> '<your program>; ps aux | awk \'/root/ {print $2}\''
This will connect to , execute and then print each PSID for any user root or any process with root in its description... | null | CC BY-SA 3.0 | null | 2008-08-28T23:50:19.587 | 2013-05-27T07:43:56.187 | 2013-05-27T07:43:56.187 | 296,974 | 3,467 | null |
33,648 | 2 | null | 32,333 | 4 | null | > Java provides lots of other tools for defensive programming
Initially I thought you were talking about [normal defensive programming](http://en.wikipedia.org/wiki/Defensive_programming#Some_Defensive_programming_techniques),
wherein the idea is to defend the program (or your subset of it, or your single function) f... | null | CC BY-SA 2.5 | null | 2008-08-28T23:34:07.393 | 2008-08-28T23:34:07.393 | null | null | 234 | null |
33,687 | 2 | null | 25,999 | 5 | null | If your game has a replay system built in, you can submit replays to the server and have the server calculate the score from the replay.
This method isn't perfect, you can still cheat by slowing down the game (if it is action-based), or by writing a bot.
| null | CC BY-SA 2.5 | null | 2008-08-29T00:00:52.120 | 2008-08-29T00:00:52.120 | null | null | 2,581 | null |
33,691 | 2 | null | 4,689 | 0 | null | Lucida Console or Lucida Sans Typewriter, as small as possible so I can maximize the amount of code on the screen. Occasionally Courier or Monaco (e.g. Monaco in TextMate).
| null | CC BY-SA 2.5 | null | 2008-08-29T00:10:07.730 | 2008-08-29T00:10:07.730 | null | null | 3,525 | null |
33,684 | 2 | null | 3,088 | 1 | null | Begin by asking him this question: ""
Then choose a set of activities that fit his answer, and choose a language that allows those things to be done. All the better if it's a simple (or simplifiable) scripting environment (e.g. Applescript, Ruby, any shell (Ksh, Bash, or even .bat files).
The reasons are:
1. If he'... | null | CC BY-SA 2.5 | null | 2008-08-28T23:59:23.527 | 2008-08-28T23:59:23.527 | null | null | 3,525 | null |
33,679 | 2 | null | 32,280 | 0 | null | In a Java way, assuming the null comes from a programming error (ie. should never go outside the testing phase), then leave the system throw it, or if there are side-effects reaching that point, check for null at the beginning and throw either IllegalArgumentException or NullPointerException.
If the null could come fr... | null | CC BY-SA 3.0 | null | 2008-08-28T23:55:19.217 | 2017-12-27T12:30:12.783 | 2017-12-27T12:30:12.783 | 3,824,919 | 3,069 | null |
33,688 | 2 | null | 31,913 | 4 | null | For a generic implementation of [Vistor](http://en.wikipedia.org/wiki/Visitor_pattern), I'd suggest the [Loki Visitor](http://loki-lib.sourceforge.net/index.php?n=Pattern.Visitor), part of the [Loki library](http://loki-lib.sourceforge.net/index.php?n=Main.HomePage).
| null | CC BY-SA 2.5 | null | 2008-08-29T00:02:18.950 | 2008-08-29T00:02:18.950 | null | null | 3,521 | null |
33,690 | 2 | null | 33,619 | 3 | null | A database operation at login and logout won't cause a performance problem.
- -
Your biggest potential problem might be:
-
| null | CC BY-SA 2.5 | null | 2008-08-29T00:10:00.053 | 2008-08-29T00:48:40.787 | 2008-08-29T00:48:40.787 | 116 | 116 | null |
33,692 | 2 | null | 2,481 | 3 | null | Why use a `BST` at all? From your description a dictionary will work just as well, if not better.
The only reason for using a `BST` would be if you wanted to list out the contents of the container in key order. It certainly doesn't sound like you want to do that, in which case go for the hash table. `O(1)` insertion ... | null | CC BY-SA 3.0 | null | 2008-08-29T00:10:46.930 | 2013-02-07T14:40:03.283 | 2013-02-07T14:40:03.283 | 395,659 | 806 | null |
33,694 | 2 | null | 33,386 | 0 | null | Though it's probably not usable in an embedded environment, I've had good luck with [WinDbg](http://en.wikipedia.org/wiki/WinDbg) for debugging release-mode Windows applications. Even if the application is not compiled with symbol information, you can at least get a usable stack trace and plenty of other useful crash ... | null | CC BY-SA 2.5 | null | 2008-08-29T00:17:35.667 | 2008-08-29T00:17:35.667 | null | null | 3,126 | null |
33,695 | 2 | null | 1,644 | 0 | null | My most regular listens are:
- - - -
Also, if you haven't heard the OOPSLA 2007 podcasts (keynote/main sessions recorded and podcasted) they're definitely worth a listen, although it's a fairly short run.
| null | CC BY-SA 2.5 | null | 2008-08-29T00:19:20.513 | 2008-08-29T00:19:20.513 | null | null | 3,525 | null |
33,683 | 2 | null | 33,334 | 2 | null | As you suspected, Remote.Disable stops the app from attaching debug info to remote requests. It's defined inside the .NET framework methods that make the SOAP request.
The basic situation is that these switches can be defined anywhere in code, you just need to create a new System.Diagnostics.BooleanSwitch with the na... | null | CC BY-SA 2.5 | null | 2008-08-28T23:57:57.460 | 2008-08-29T00:05:21.327 | 2008-08-29T00:05:21.327 | 2,975 | 2,975 | null |
33,685 | 1 | 39,161 | null | 5 | 8,650 | This is a sql 2000 database that I am working with.
I have what I call a staging table that is a raw data dump of data, so everything is ntext or nvarchar(255).
I need to cast/convert all of this data into the appropriate data types (ie int, decimal, nvarchar, etc.)
The way I was going to do this was to iterate thr... | SQL 2000 'TRY CATCH like' Error Handling | CC BY-SA 2.5 | null | 2008-08-28T23:59:43.790 | 2009-06-10T16:24:25.887 | 2017-05-23T12:19:33.570 | -1 | 1,950 | [
"sql-server"
] |
33,693 | 2 | null | 33,638 | 0 | null | I like the way that Django does it. You build models and the when you run a syncdb it applies the models that you have created. If you add a model you just need to run syncdb again. This would be easy to have your build script do every time you made a push.
The problem comes when you need to alter a table that is alr... | null | CC BY-SA 2.5 | null | 2008-08-29T00:15:26.890 | 2008-08-29T00:15:26.890 | null | null | 1,797 | null |
33,701 | 2 | null | 33,696 | 3 | null | Get [Cocoa Programming For Mac OS X](https://rads.stackoverflow.com/amzn/click/com/0321503619) by Aaron Hillegass. This should get you on your way to Cocoa programming. You can look up C-related programming as things come up.
[K&R C Programming Language](https://rads.stackoverflow.com/amzn/click/com/0131103628) is t... | null | CC BY-SA 2.5 | null | 2008-08-29T00:29:51.427 | 2008-08-29T00:29:51.427 | null | null | 3,467 | null |
33,696 | 1 | 33,736 | null | 4 | 942 | I'm a PHP developer, and I use the MVC pattern and object-oriented code. I really want to write applications for the iPhone, but to do that I need to know Cocoa, but to do that I need to know Objective-C 2.0, but to do that I need to know C, and to do that I need to know about compiled languages (versus interpreted).
... | Cocoa tips for PHP developers? | CC BY-SA 4.0 | 0 | 2008-08-29T00:19:55.567 | 2019-01-18T11:11:22.410 | 2019-01-18T11:11:22.410 | 567,854 | 3,407 | [
"php",
"c",
"objective-c",
"cocoa"
] |
33,702 | 2 | null | 33,696 | 1 | null | No need to start with plain C. Start with an excellent book instead: [Cocoa Programming for Mac OS X](https://rads.stackoverflow.com/amzn/click/com/0321503619).
| null | CC BY-SA 2.5 | null | 2008-08-29T00:30:21.610 | 2008-08-29T00:30:21.610 | null | null | 338 | null |
33,698 | 2 | null | 33,630 | 5 | null |
# Link

| null | CC BY-SA 3.0 | null | 2008-08-29T00:24:22.390 | 2012-04-01T20:43:38.730 | 2012-04-01T20:43:38.730 | 1,219,121 | 1,950 | null |
33,704 | 2 | null | 31,077 | 0 | null | Oh sweet, this is an air app. I'll go with the HTML view. I can't convert them to SWF because the client will be uploading the files.
| null | CC BY-SA 2.5 | null | 2008-08-29T00:31:26.150 | 2008-08-29T00:31:26.150 | null | null | 26 | null |
33,689 | 2 | null | 31,865 | 1 | null | >
Ahh... I know of 2 ways to accomplish this:
You can embed internet explorer into an application, and hook into it and intercept certain kinds of URL's and so on
I saw this done a few years ago - a telephony application embedded internet explorer in itself, and loaded some specially formatted webpages.
In the web... | null | CC BY-SA 2.5 | null | 2008-08-29T00:08:04.380 | 2008-08-29T00:08:04.380 | null | null | 234 | null |