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
40,723
1
40,739
null
2
220
For a typical business application, should the focus be on client processing via AJAX i.e. pull the data from the server and process it on the client or would you suggest a more classic ASP.Net approach with the server being responsible for handling most of the UI events? I find it hard to come up with a good 'default ...
Server centered vs. client centered architecture
CC BY-SA 2.5
0
2008-09-02T21:28:22.820
2009-02-27T16:55:43.800
null
null
2,133
[ ".net", "architecture" ]
40,721
2
null
40,705
2
null
If you are running the scripts then you can set your PATH variable to point to a private bin directory first: ``` $ mkdir ~/bin $ ln -s `which python2.4` ~/bin/python $ export PATH=~/bin:$PATH ``` Then when you execute your python script it'll use python 2.4. You'll have to change your login scripts to change your P...
null
CC BY-SA 2.5
null
2008-09-02T21:28:03.320
2008-09-02T21:28:03.320
null
null
3,978
null
40,705
1
40,715
null
13
4,728
At the beginning of all my executable Python scripts I put the [shebang](http://en.wikipedia.org/wiki/Shebang_(Unix)) line: ``` #!/usr/bin/env python ``` I'm running these scripts on a system where `env python` yields a Python 2.2 environment. My scripts quickly fail because I have a manual check for a compatible Py...
Python deployment and /usr/bin/env portability
CC BY-SA 2.5
0
2008-09-02T21:21:14.383
2013-10-04T18:27:17.367
2008-09-25T02:19:15.280
410
3,594
[ "python", "executable", "environment", "shebang" ]
40,726
2
null
40,692
1
null
You can certainly create RESTful web services in ASP.NET 2.0, for [example](http://blogs.msdn.com/dseven/archive/2007/02/10/boise-code-camp-enabling-rest-in-asp-net.aspx), but there are no high-level APIs to do all the donkey work for you, as provided by WCF in .NET 3.5.
null
CC BY-SA 2.5
null
2008-09-02T21:28:39.247
2008-09-02T21:28:39.247
null
null
2,562
null
40,716
1
null
null
2
2,406
Although the general case is undecidable, many people still do solve problems that are equivilent well enough for day to day use. In cohen's phd thesis on computer viruses, he showed how virus scanning is equivilent to the halting problem, yet we have an entire industry based around this challenge. I also have seen m...
Is solving the halting problem easier than people think?
CC BY-SA 2.5
0
2008-09-02T21:25:49.753
2023-02-25T20:32:21.220
2022-07-08T21:33:31.563
12,923,651
4,319
[ "language-agnostic", "halting-problem" ]
40,729
2
null
40,525
0
null
I'm an idiot. I forgot the whole "a function can't own another function" thing, so I figured out another way to do it. Thanks!
null
CC BY-SA 2.5
null
2008-09-02T21:29:33.083
2008-09-02T21:29:33.083
null
null
557
null
40,732
2
null
16,396
2
null
We're in a very similar situation at the moment. Dozens of crystal reports in place and we're shifting to Reporting Services (mainly for its ease of deployment and more flexible UI for the end user) - our solution is to leave them be, but anything new is being created in RptgSvcs. Ideally we'd translate them, but the ....
null
CC BY-SA 2.5
null
2008-09-02T21:32:06.087
2008-09-02T21:32:06.087
null
null
2,902
null
40,731
2
null
40,692
1
null
Well, of course you could always implement the spec yourself. It's just that there's nothing built-in to support it. If you use Nathan Lee's solution, do it as an http handler (.ashx) rather than an aspx. You can just about copy/paste his code into a new handler file.
null
CC BY-SA 2.5
null
2008-09-02T21:30:47.010
2008-09-02T21:30:47.010
null
null
3,043
null
40,733
1
3,211,015
null
64
30,928
I am setting the `.Content` value of a Label to a string that contains underscores; the first underscore is being interpreted as an accelerator key. Without changing the underlying string (by replacing all `_` with `__`), is there a way to disable the accelerator for Labels?
Disable WPF label accelerator key (text underscore is missing)
CC BY-SA 3.0
0
2008-09-02T21:32:37.320
2018-10-09T09:52:59.180
2012-06-15T08:47:41.453
63,550
2,258
[ "wpf", "user-interface" ]
40,725
2
null
37,048
2
null
I'm taking a look at : [http://code.google.com/p/fjcore/source/checkout](http://code.google.com/p/fjcore/source/checkout) A dependency free image processing library.
null
CC BY-SA 2.5
null
2008-09-02T21:28:32.930
2008-09-02T21:28:32.930
null
null
580
null
40,728
2
null
40,692
5
null
I have actually created a REST web service with asp.net 2.0. Its really no different than creating a web page. When I did it, I really didn't have much time to research how to do it with an asmx file so I did it in a standard aspx file. I know thier is extra overhead by doing it this way but as a first revision it was...
null
CC BY-SA 2.5
null
2008-09-02T21:28:51.853
2008-09-02T21:28:51.853
null
null
3,453
null
40,730
1
40,754
null
2,275
1,192,556
How do you give a C# auto-property an initial value? I either use the constructor, or revert to the old syntax. ``` class Person { public Person() { Name = "Initial Name"; } public string Name { get; set; } } ``` (with an initial value) ``` private string name = "Initial Name"; public...
What is the best way to give a C# auto-property an initial value?
CC BY-SA 4.0
0
2008-09-02T21:29:41.227
2022-12-25T01:02:07.177
2020-03-03T11:48:09.390
12,780,337
946
[ "c#", "constructor", "getter", "setter", "automatic-properties" ]
40,735
1
null
null
4
6,756
This is not a question with a precise answer (strictly speaking the answer would be best captured by a poll, but that functionality is not available), but I am genuinely interested in the answer, so I will ask it anyway. Over the course of your career, how much time have you spent on [greenfield](http://en.wikipedia.o...
Brownfield vs Greenfield development?
CC BY-SA 2.5
0
2008-09-02T21:33:02.280
2012-09-11T23:38:47.987
2009-07-30T14:11:27.350
3,260
3,305
[ "projects", "sdlc" ]
40,737
1
43,733
null
11
14,102
[In this question](https://stackoverflow.com/questions/32230/tracking-down-where-disk-space-has-gone-on-linux) someone asked for ways to display disk usage in Linux. I'd like to take this one step further down the cli-path... how about a shell script that takes the output from something like a reasonable answer to the ...
Generate disk usage graphs/charts with CLI only tools in Linux
CC BY-SA 2.5
0
2008-09-02T21:33:39.970
2018-03-21T06:06:39.657
2017-05-23T11:54:00.770
-1
4,162
[ "linux", "shell", "storage", "diskspace", "disk" ]
40,739
2
null
40,723
1
null
It really depends on the application and the situation, but just keep in mind that every hit to the server is costly, both in adding load (perhaps minimally), but also in terms of UI responsiveness. I am of the mind that doing things in JavaScript when possible is a good idea, if it can make your UI feel snappier. Of...
null
CC BY-SA 2.5
null
2008-09-02T21:34:34.443
2008-09-02T21:34:34.443
null
null
122
null
40,738
2
null
40,723
1
null
It depends greatly on the application and user. In the general case, however, you'll always scale better and the user will have a better experience if as much of the processing as possible happens on the client. Further, with Google Gears and other such frameworks it's possible to separate the client from the network...
null
CC BY-SA 2.5
null
2008-09-02T21:34:08.703
2009-02-27T16:55:43.800
2009-02-27T16:55:43.800
5,640
2,915
null
40,745
2
null
39,399
1
null
I would create a filter and bounce all requests to root back with forward responce. Hacks with creating home.do page looks ugly to me (One more thing to remember for you and investigate for someone who will support your code).
null
CC BY-SA 2.5
null
2008-09-02T21:39:32.233
2008-09-02T21:39:32.233
null
null
4,052
null
40,743
2
null
38,647
2
null
Entity-SQL (eSQL) allows you to do things such as dynamic queries more easily than LINQ to Entities. However, if you don't have a scenario that requires eSQL, I would be hesitant to rely on it over LINQ because it will be much harder to maintain (e.g. no more compile-time checking, etc). I believe LINQ allows you to ...
null
CC BY-SA 2.5
null
2008-09-02T21:38:03.530
2008-09-02T21:38:03.530
null
null
2,069
null
40,749
2
null
40,632
4
null
Basically, a continuation is the ability for a function to stop execution and then pick back up where it left off at a later point in time. In C#, you can do this using the yield keyword. I can go into more detail if you wish, but you wanted a concise explanation. ;-)
null
CC BY-SA 2.5
null
2008-09-02T21:41:53.130
2008-09-02T21:41:53.130
null
null
2,147
null
40,748
2
null
40,692
1
null
You can do RESTful web services easily by implementing the spec using IHTTPHandlers.
null
CC BY-SA 2.5
null
2008-09-02T21:41:15.443
2008-09-02T21:41:15.443
null
null
1,965
null
40,747
2
null
40,602
16
null
The easiest answer is probably that they are suited for practically any problem. Don't forget that a computer itself is also a state machine. Regardless of that, state machines are typically used for problems where there is some stream of input and the activity that needs to be done at a given moment depends the last ...
null
CC BY-SA 2.5
null
2008-09-02T21:40:38.627
2008-09-02T21:40:38.627
null
null
4,285
null
40,750
2
null
40,735
3
null
I think it's typical for professionals who deal with customers to spend more time in brownfield development. The reason is that customers typically aren't willing to throw out their existing software to adopt the "latest and greatest" (green) software. Developers in research or academics, however, may be more likely ...
null
CC BY-SA 2.5
null
2008-09-02T21:42:09.997
2008-09-02T21:42:09.997
null
null
2,069
null
40,708
2
null
40,703
4
null
From the [Google Site](http://www.google.com/support/chrome/bin/answer.py?answer=95760&query=bug&topic=&type=) 1. Click the Page menu page menu. 2. Select Report a bug or broken website. 3. Choose an issue type from the drop-down menu. The web address of the webpage you're on is recorded automatically. 4. If possible...
null
CC BY-SA 2.5
null
2008-09-02T21:22:17.470
2008-09-02T21:22:17.470
null
null
1,153
null
40,752
2
null
39,454
2
null
The feeling I get from Matthew MacDonald's is that it's not possible: > There's one exception to WPF's software support. Due to poor driver support, WPF only performs antialiasing for 3-D drawings if you're running your application on Windows Vista (and you have a native Windows Vista driver for your video card). I...
null
CC BY-SA 2.5
null
2008-09-02T21:43:52.223
2008-09-02T21:43:52.223
null
null
2,547
null
40,751
2
null
40,651
22
null
@Mark Biek Your keyExists closely matches my standard Exists() function. To make the class more useful for COM-exposed collections and checking for numeric indexes, I'd recommend changing sKey and myCollection to not be typed. If the function is going to be used with a collection of objects, 'set' is required (on the ...
null
CC BY-SA 3.0
null
2008-09-02T21:42:50.493
2014-06-09T18:23:18.353
2014-06-09T18:23:18.353
2,314
2,314
null
40,753
2
null
40,335
3
null
That depends on your definition of which disk drive Windows used to boot. I can think of 3 different answers on a standard BIOS system (who knows what an EFI system does): 1. The drive that contains the active MBR 2. The active partition, with NTLDR (the system partition) 3. The partition with Windows on it (the boot...
null
CC BY-SA 2.5
null
2008-09-02T21:45:04.933
2008-09-02T21:45:04.933
null
null
2,199
null
40,736
2
null
40,632
9
null
A heads up, this example is not concise nor exceptionally clear. This is a demonstration of a powerful application of continuations. As a VB/ASP/C# programmer, you may not be familiar with the concept of a system stack or saving state, so the goal of this answer is a demonstration and not an explanation. Continuations...
null
CC BY-SA 2.5
null
2008-09-02T21:33:21.560
2008-09-02T21:38:56.977
2008-09-02T21:38:56.977
658
658
null
40,742
2
null
40,452
0
null
I tested your scenario using 2 sample pages using XmlHttpRequest option. Custom headers are available in the aspx page posted to, using XmlHttpRequest. Create the following 2 pages. Make sure the aspx page is in a solution , so that you can run the in the debugger, set break point and inspect the Request.Header collec...
null
CC BY-SA 2.5
null
2008-09-02T21:37:46.510
2008-09-02T21:37:46.510
null
null
1,647
null
40,734
2
null
40,730
5
null
Have you tried using the [DefaultValueAttribute](http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx) or [ShouldSerialize and Reset methods](http://msdn.microsoft.com/en-us/library/53b8022e%28VS.71%29.aspx) in conjunction with the constructor? I feel like one of these two methods i...
null
CC BY-SA 2.5
null
2008-09-02T21:32:41.657
2008-09-02T21:38:10.677
2008-09-02T21:38:10.677
2,547
2,547
null
40,762
2
null
40,242
4
null
First pick up a copy of Michael Feather's Working [Effectively with Legacy Code](https://rads.stackoverflow.com/amzn/click/com/0131177052). Then identify how best to test the existing code. The worst case is that you are stuck with just some high level regression tests (or nothing at all) and If you are lucky there ...
null
CC BY-SA 2.5
null
2008-09-02T21:48:52.897
2008-09-02T21:48:52.897
null
null
3,305
null
40,760
2
null
38,239
6
null
I'd highly recommend reading ["What Every Computer Scientist Should Know About Floating-Point Arithmetic"](http://docs.sun.com/source/806-3568/ncg_goldberg.html). A lot of problems I encounter on a regular basis come from issues with floating point programming.
null
CC BY-SA 2.5
null
2008-09-02T21:48:23.333
2008-09-02T21:48:23.333
null
null
3,514
null
40,768
2
null
26,450
1
null
How about: ``` session.replicate(entity, ReplicationMode.OVERWRITE); ``` ?
null
CC BY-SA 2.5
null
2008-09-02T21:51:01.970
2008-09-02T21:51:01.970
null
null
4,052
null
40,763
2
null
28,197
2
null
I try to follow the PSP 2.1 process when possible. It really helps me keep a focus on not skipping important, but less exciting, portions of a project. Usually this is design and design review for small projects. To keep track of time you can use the PSP Dashboard, which has a bunch of built in features and scripts ...
null
CC BY-SA 2.5
null
2008-09-02T21:49:02.227
2008-09-02T21:49:02.227
null
null
4,316
null
40,765
2
null
40,716
0
null
The Halting Problem is really only interesting if you look at it in the general case, since if the Halting problem were decidable, all other undecidable problems would also be decidable via reduction. So, my opinion on this question is, no, it is not easy in the cases that matter. That said, in the real world, it may...
null
CC BY-SA 2.5
null
2008-09-02T21:49:50.570
2008-09-02T21:49:50.570
null
null
4,257
null
40,754
2
null
40,730
2,895
null
In C# 5 and earlier, to give auto implemented properties an initial value, you have to do it in a constructor. Since [C# 6.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-60), you can specify initial value in-line. The syntax is: ``` public int X { get; set; } = x; // C# 6 ...
null
CC BY-SA 4.0
null
2008-09-02T21:46:23.683
2022-10-05T12:17:27.463
2022-10-05T12:17:27.463
1,366,033
77
null
40,769
1
40,871
null
1
594
How do I determine the (local-) path for the "Program Files" directory on a remote computer? There does not appear to any version of SHGetFolderPath (or related function) that takes the name of a remote computer as a parameter. I guess I could try to query HKLM\Software\Microsoft\Windows\CurrentVersion\ProgramFilesDir...
Path to Program-Files on remote computer
CC BY-SA 2.5
0
2008-09-02T21:53:21.700
2015-01-03T15:30:15.477
2015-01-03T15:30:15.477
2,171,120
3,923
[ "winapi" ]
40,764
1
40,782
null
160
182,599
Are all of these equal? Under what circumstances should I choose each over the others? - var.ToString()- CStr(var)- CType(var, String)- DirectCast(var, String) --- [NotMyself](https://stackoverflow.com/users/303/notmyself) -
How should I cast in VB.NET?
CC BY-SA 2.5
0
2008-09-02T21:49:32.910
2023-01-06T23:09:34.360
2017-05-23T11:54:36.703
-1
83
[ ".net", "vb.net", "casting" ]
40,771
2
null
40,764
8
null
I prefer the following syntax: ``` Dim number As Integer = 1 Dim str As String = String.TryCast(number) If str IsNot Nothing Then ``` Hah you can tell I typically write code in C#. 8) The reason I prefer TryCast is you do not have to mess with the overhead of casting exceptions. Your cast either succeeds or your ...
null
CC BY-SA 3.0
null
2008-09-02T21:54:36.597
2012-03-27T03:42:20.433
2012-03-27T03:42:20.433
707,111
303
null
40,772
2
null
40,716
2
null
As a day-to-day programmer, I'd say it's worthwhile to continue as far down the to solving halting-style problems, even if you only approach that limit and never reach it. As you pointed out, virus scanning proves valuable. Google search doesn't pretend to be the absolute answer to "find me the best X for Y," but it's...
null
CC BY-SA 2.5
null
2008-09-02T21:55:01.167
2008-09-02T21:55:01.167
null
null
null
null
40,757
2
null
40,511
19
null
Steve, you have a completely wrong mental model of what is a C function. ``` someType resultFunc = calloc( 1024, 1 ); memcpy( resultFunc, &isNot, 1024 ); ``` From your code fragment, I can surmise that you think that you can copy function's compiled code into a block of memory, and then reuse it. This kind of thing...
null
CC BY-SA 2.5
null
2008-09-02T21:47:07.957
2008-10-10T07:21:33.643
2008-10-10T07:21:33.643
3,560
null
null
40,773
1
null
null
3
10,342
I am looking for a simple system to manage inbound emails from a support mailbox for a group with about 3 support people. I've looked at [OTRS](http://otrs.org/) which seems to have the features that we need. Unfortunately, so far the UI still looks like a confusing mess. Are there any good FOSS tools that would mee...
Ticket Tracking Software w/ Good Email Integration and Decent Navigation?
CC BY-SA 2.5
null
2008-09-02T21:56:17.433
2014-12-08T23:20:23.463
null
null
1,432
[ "bug-tracking", "email", "ticket-system" ]
40,779
1
40,793
null
7
1,379
I've inherited a .NET application that automatically updates it's version number with each release. The problem, as I see it, is the length and number of digits in the version number. An example of the current version number format is `3.5.3167.26981` which is a mouthful for the users to say when they are reporting bu...
How to change Build Numbering format in Visual Studio
CC BY-SA 3.0
0
2008-09-02T22:02:14.393
2017-05-22T04:14:08.880
2017-05-22T04:14:08.880
1,466,970
3,799
[ "visual-studio" ]
40,782
2
null
40,764
172
null
Those are all slightly different, and generally have an acceptable usage. - `var.`[ToString](http://msdn.microsoft.com/en-us/library/system.object.tostring.aspx)`()``var`- [CStr](http://msdn.microsoft.com/en-us/library/0zk841e9.aspx)`(var)``CType`- [CType](http://msdn.microsoft.com/en-us/library/4x2877xb.aspx)`(var, S...
null
CC BY-SA 2.5
null
2008-09-02T22:03:59.413
2008-09-19T16:48:39.920
2017-05-23T11:54:36.703
-1
2,688
null
40,777
2
null
40,716
16
null
> Is solving the halting problem easier than people think? I think it is exactly as difficult as people think. > Will types become turing complete over time? [My dear, they already are!](http://en.wikipedia.org/wiki/C%2B%2B#Templates) > dependant types do seem like a good development? Very much so. I think there ...
null
CC BY-SA 2.5
null
2008-09-02T21:59:05.603
2008-09-02T21:59:05.603
null
null
2,131
null
40,788
2
null
40,779
0
null
At a previous company we did something like this by writing an Ant task to get the current Subversion changeset string, which we used as the build number, appended after the major, minor, and tertiary numbers. You could do something like this with Visual Studio as well.
null
CC BY-SA 2.5
null
2008-09-02T22:06:38.877
2008-09-02T22:06:38.877
null
null
3,114
null
40,791
2
null
40,779
0
null
Use a '*' wildcard in the AssemblyVersion attribute. Documentation is [here](http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx). Note that if the application is built from multiple assemblies, the version you care most about is the one for the .exe.
null
CC BY-SA 2.5
null
2008-09-02T22:07:56.080
2008-09-02T22:07:56.080
null
null
3,776
null
40,784
2
null
40,733
35
null
You could override the RecognizesAccessKey property of the ContentPresenter that is in the default template for the label. For example: ``` <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid> <Grid.Resources> <Style x:Key="{...
null
CC BY-SA 3.0
null
2008-09-02T22:06:09.767
2011-11-17T09:18:54.153
2011-11-17T09:18:54.153
111,734
748
null
40,795
2
null
40,716
0
null
Incidentally, I think that the Turing completeness of templates shows that halting is overrated. Most languages guarantee that their compilers will halt; not so C++. Does this diminish C++ as a language? I don't think so; it has many flaws, but compiles that don't always halt aren't one of them.
null
CC BY-SA 2.5
null
2008-09-02T22:10:39.537
2008-09-02T22:10:39.537
null
null
2,131
null
40,785
2
null
40,637
4
null
You could use the worksheet function =TODAY(), but obviously this would be updated to the current date whenever the workbook is recalculated. The only other method I can think of is, as 1729 said, to code the Workbook_Open event: ``` Private Sub Workbook_Open() ThisWorkbook.Worksheets("Sheet1").Range("A1").Value ...
null
CC BY-SA 2.5
null
2008-09-02T22:06:16.660
2008-09-02T22:06:16.660
null
null
1,826
null
40,800
2
null
40,590
2
null
It looks like I just needed to be more specific in my element selector although it is weird that a hard coded number would work. ``` jQuery('#pagination-digg li').eq(currentPage).addClass("active"); ```
null
CC BY-SA 2.5
null
2008-09-02T22:13:31.013
2008-09-02T22:13:31.013
null
null
2,601
null
40,783
2
null
13,279
2
null
The directionality question is easy to answer for East Asian languages: websites are left-to-right, top-to-bottom as per usual. In fact, the general web design layout principles much the same. Have a look at the websites of a [newspaper](http://www.yomiuri.co.jp/) (name top left, navigation bar under with "Home" on th...
null
CC BY-SA 2.5
null
2008-09-02T22:05:22.513
2008-09-02T22:05:22.513
null
null
3,665
null
40,808
2
null
40,773
4
null
My company recently started using Mojo Helpdesk: [www.mojohelpdesk.com](http://www.mojohelpdesk.com). It's a hosted service, not FOSS, but it's pretty cheap and the interface is slick.
null
CC BY-SA 3.0
null
2008-09-02T22:16:42.300
2013-03-05T21:53:55.357
2013-03-05T21:53:55.357
300,041
2,527
null
40,801
2
null
38,949
1
null
How are you doing the cross-platform calls? Is it all called from Java? [http://java.sun.com/docs/books/tutorial/i18n/text/string.html](http://java.sun.com/docs/books/tutorial/i18n/text/string.html) might be useful. I'm a bit confused about exactly what you are trying to do. Is the database essentially interface bet...
null
CC BY-SA 2.5
null
2008-09-02T22:14:00.480
2008-09-02T22:14:00.480
null
null
4,332
null
40,810
2
null
4,689
2
null
Neep Alt 13/17 is very good.
null
CC BY-SA 2.5
null
2008-09-02T22:17:31.797
2008-09-02T22:17:31.797
null
null
4,118
null
40,787
1
40,869
null
6
5,293
I'd like to keep a "compile-counter" for one of my projects. I figured a quick and dirty way to do this would be to keep a text file with a plain number in it, and then simply call upon a small script to increment this each time I compile. How would I go about doing this using the regular Windows command line? I don'...
How do I increment a value in a textfile using the regular Windows command-line?
CC BY-SA 3.0
0
2008-09-02T22:06:36.613
2016-12-19T19:11:44.613
2016-12-19T19:11:44.613
6,392,939
914
[ "windows", "command-line", "text-files" ]
40,812
2
null
40,773
2
null
[RT - Request Tracker](http://bestpractical.com/rt/) handles inbound mail. I'm working to add inbound mail support to [TicketDesk](http://codeplex.com/ticketdesk), but that might be a little while before that makes it into a release.
null
CC BY-SA 2.5
null
2008-09-02T22:19:17.677
2008-09-02T22:19:17.677
null
null
1,233
null
40,818
2
null
40,773
0
null
We use FogBugz...er, "fooogzeeebugzo"...and while it may be a bit expensive for your needs, it works very well.
null
CC BY-SA 2.5
null
2008-09-02T22:22:08.060
2008-09-02T22:22:08.060
null
null
3,880
null
40,814
1
40,830
null
103
127,296
I need to execute a large set of SQL statements (creating a bunch of tables, views and stored procedures) from within a C# program. These statements need to be separated by `GO` statements, but `SqlCommand.ExecuteNonQuery()` does not like `GO` statements. My solution, which I suppose I'll post for reference, was to sp...
Execute a large SQL script (with GO commands)
CC BY-SA 3.0
0
2008-09-02T22:20:02.353
2022-06-02T17:20:33.780
2015-08-20T13:53:43.417
505,893
369
[ "c#", "sql-server" ]
40,813
2
null
40,716
0
null
I don't know how hard people think it is, so I can't say if it is easier. However, you are right in your observation that undecidability of a problem (in general) does not mean that all instances of that problem are undecidable. For instance, I can easily tell you that a program like `while false do something` terminat...
null
CC BY-SA 2.5
null
2008-09-02T22:19:42.883
2008-09-02T22:19:42.883
null
null
4,285
null
40,797
2
null
40,764
8
null
[MSDN](https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/functions/type-conversion-functions) seems to indicate that the Cxxx casts for specific types can improve performance in VB .NET because they are converted to inline code. For some reason, it also suggests [DirectCast](http://msdn.microsof...
null
CC BY-SA 4.0
null
2008-09-02T22:12:07.600
2023-01-06T23:09:34.360
2023-01-06T23:09:34.360
234,954
2,547
null
40,816
1
40,846
null
24
59,796
If I have an HTML helper like so: ``` Name:<br /> <%=Html.TextBox("txtName",20) %><br /> ``` How do I apply a CSS class to it? Do I have to wrap it in a span? Or do I need to somehow utilize the HtmlAttributes property of the helper?
Styling HTML helpers ASP.NET MVC
CC BY-SA 3.0
0
2008-09-02T22:21:17.827
2018-10-18T20:03:20.900
2011-04-09T10:20:41.337
63,550
230
[ "css", "asp.net-mvc", "html-helper" ]
40,825
2
null
40,773
0
null
bugzilla is more of an issue tracker than a request tracker, but it can be configured to handle email-based status tracking. That said, I think Steven has it- RT is the standard recommendation for this that I've seen.
null
CC BY-SA 2.5
null
2008-09-02T22:26:48.623
2008-09-02T22:26:48.623
null
null
4,276
null
40,824
2
null
40,814
2
null
I also faced the same problem, and I could not find any other way but splitting the single SQL operation in separate files, then executing all of them in sequence. Obviously the problem is not with lists of DML commands, they can be executed without GO in between; different story with DDL (create, alter, drop...)
null
CC BY-SA 2.5
null
2008-09-02T22:26:14.227
2008-09-02T22:26:14.227
null
null
1,178
null
40,826
2
null
40,787
2
null
It would be an new shell (but I think it is worth it), but from PowerShell it would be ``` [int](get-content counter.txt) + 1 | out-file counter.txt ```
null
CC BY-SA 2.5
null
2008-09-02T22:26:54.740
2008-09-02T22:26:54.740
null
null
1,233
null
40,774
2
null
36,748
0
null
Use or extend System.ComponentModel.BackgroundWorker: [http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx](http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx) Personally, I find this to be the easiest way to perform asynchronous operations in client app...
null
CC BY-SA 2.5
null
2008-09-02T21:57:32.050
2008-09-02T21:57:32.050
null
null
946
null
40,827
2
null
40,814
39
null
This is what I knocked together to solve my immediate problem. ``` private void ExecuteBatchNonQuery(string sql, SqlConnection conn) { string sqlBatch = string.Empty; SqlCommand cmd = new SqlCommand(string.Empty, conn); conn.Open(); sql += "\nGO"; // make sure last batch is executed. try { ...
null
CC BY-SA 2.5
null
2008-09-02T22:27:47.873
2008-09-02T22:35:08.730
2008-09-02T22:35:08.730
369
369
null
40,831
2
null
40,651
5
null
As pointed out by Thomas, you need to Set an object instead of Let. Here's a general function from my library that works for value and object types: ``` Public Function Exists(ByVal key As Variant, ByRef col As Collection) As Boolean 'Returns True if item with key exists in collection On Error Resume Next Const ERR...
null
CC BY-SA 2.5
null
2008-09-02T22:29:36.370
2008-09-02T22:29:36.370
null
null
4,333
null
40,822
2
null
40,577
2
null
I hacked this together with the ActiveSupport gem: ``` require 'active_support' def string_to_date(date_string) parts = date_string.split return parts[0].to_i.send(parts[1]) end sinces = ['1 hour', '1 day', '3 days'] sinces.each do |since| puts "#{since} ago: #{string_to_date(since).ago(Time.now)}" end ``` [...
null
CC BY-SA 2.5
null
2008-09-02T22:25:03.653
2008-09-02T23:02:05.030
2008-09-02T23:02:05.030
4,195
4,195
null
40,832
2
null
40,723
0
null
Do you need to trust the data? If so, be aware that it's trivial to tamper with client-processed data in nasty and malicious ways. If that's the case, you'll want to process info on the server. Also, be aware that it can be a lot harder to code javascript apps so they are stable, reliable, and bug free. Can you lock d...
null
CC BY-SA 2.5
null
2008-09-02T22:29:53.733
2008-09-02T22:29:53.733
null
null
4,276
null
40,839
2
null
40,814
11
null
You can use [SQL Management Objects](http://msdn.microsoft.com/en-us/library/ms162557.aspx) to perform this. These are the same objects that Management Studio uses to execute queries. I believe `Server.ConnectionContext.ExecuteNonQuery()` will perform what you need.
null
CC BY-SA 3.0
null
2008-09-02T22:33:23.930
2015-08-20T13:58:00.513
2015-08-20T13:58:00.513
505,893
637
null
40,828
2
null
36,014
2
null
I downloaded the sample VS2008 project, and am a bit stumped here too. I was able to get past the exceptions however, although probably not in a way that will work will great for you. But here's what I found: This [mailing list post](http://www.antlr.org:8080/pipermail/antlr-interest/2008-February/026657.html) had a...
null
CC BY-SA 2.5
null
2008-09-02T22:27:54.363
2008-09-02T22:27:54.363
null
null
4,299
null
40,840
1
40,866
null
0
1,116
I have a custom installer action that updates the PATH environment, and creates an additional environment variable. Appending a directory to the existing path variable is working fine, but for some reason my attempts to create a new environment variable have been unsuccessful. The code I am using is: ``` using (Regist...
Cannot create an environment variable in the registry
CC BY-SA 2.5
0
2008-09-02T22:34:03.630
2008-11-19T19:15:36.743
2008-09-02T22:59:05.363
3,114
3,114
[ "c#", "registry", "environment" ]
40,793
2
null
40,779
3
null
In one of the project files, probably AssemblyInfo.cs, the assembly version attribute is set to `[assembly: AssemblyVersion("3.5.*")]` or something similar. The * basically means it lets Visual Studio automatically set the build and revision number. You can change this to a hard coded value in the format `<major vers...
null
CC BY-SA 2.5
null
2008-09-02T22:09:40.350
2008-09-02T22:09:40.350
null
null
507
null
40,848
2
null
40,471
21
null
For threaded apps, you can often get away with ConcurrentHashMap- depends on your performance requirements.
null
CC BY-SA 2.5
null
2008-09-02T22:38:59.843
2008-09-02T22:38:59.843
null
null
4,276
null
40,845
1
40,891
null
17
5,030
Has anyone had a chance to dig into how [F# Units of Measure](http://blogs.msdn.com/andrewkennedy/archive/2008/08/20/units-of-measure-in-f-part-one-introducing-units.aspx) work? Is it just type-based chicanery, or are there CLR types hiding underneath that could (potentially) be used from other .net languages? Will it...
How do F# units of measure work?
CC BY-SA 3.0
0
2008-09-02T22:37:37.163
2020-11-30T07:27:57.617
2011-09-20T10:14:17.327
133
2,495
[ ".net", "f#", "functional-programming", "units-of-measurement" ]
40,830
2
null
40,814
121
null
Use SQL Server Management Objects (SMO) which understands GO separators. See my blog post here: [http://weblogs.asp.net/jongalloway/Handling-_2200_GO_2200_-Separators-in-SQL-Scripts-2D00-the-easy-way](http://weblogs.asp.net/jgalloway/archive/2006/11/07/Handling-_2200_GO_2200_-Separators-in-SQL-Scripts-_2D00_-the-easy-w...
null
CC BY-SA 3.0
null
2008-09-02T22:29:04.110
2016-07-12T09:32:26.730
2016-07-12T09:32:26.730
159,270
5
null
40,847
2
null
40,816
2
null
Use the `htmlAttributes` parameter with an anonymous type, like tihs: ``` <%=Html.TextBox("txtName","20", new { @class = "test"}) %> ```
null
CC BY-SA 3.0
null
2008-09-02T22:38:10.673
2011-04-09T10:21:38.653
2011-04-09T10:21:38.653
63,550
2,676
null
40,850
2
null
40,814
6
null
The "GO" batch separator keyword is actually used by SQL Management Studio itself, so that it knows where to terminate the batches it is sending to the server, and it is not passed to SQL server. You can even change the keyword in Management Studio, should you so desire.
null
CC BY-SA 2.5
null
2008-09-02T22:40:12.897
2008-09-02T22:40:12.897
null
null
4,286
null
40,846
2
null
40,816
38
null
You can pass it into the TextBox call as a parameter. ``` Name:<br/> <%= Html.TextBox("txtName", "20", new { @class = "hello" }) %> ``` This line will create a text box with the value 20 and assign the class attribute with the value hello. I put the @ character in front of the class, because class is a reserved...
null
CC BY-SA 2.5
null
2008-09-02T22:37:58.427
2008-09-02T22:37:58.427
null
null
1,117
null
40,851
2
null
40,773
0
null
The on-demand version of Fogbugz is a pretty cheap option for just a few people, and works really well. We did that for a while before moving it inhouse.
null
CC BY-SA 2.5
null
2008-09-02T22:42:08.633
2008-09-02T22:42:08.633
null
null
2,102
null
40,855
2
null
40,773
0
null
I've used fogbugz for over 12 months now and more and more I'm finding one of the most valuable features is the in built email support. I've got an on demand account and I'm finding more and more that I don't even check my email in the morning as all my business correspondence is put straight into fogbugz.
null
CC BY-SA 2.5
null
2008-09-02T22:45:50.607
2008-09-02T22:45:50.607
null
null
493
null
40,859
1
null
null
1
813
Is there an IDE that I can load on a Blackberry, E71, or an iPhone?
IDE for use on a Java-enabled smart phone?
CC BY-SA 2.5
null
2008-09-02T22:49:26.340
2008-10-13T17:16:04.083
null
null
4,263
[ "ide" ]
40,819
2
null
39,357
3
null
You can try and cut stuff out with vLite, but unless you cut out a real lot it's not going to save a ton of drive space. Here's your best bets: - - - - - Once you have the base machine configured, I would suggest using VMware workstation and the awesome Linked Clones feature, which will let you create a completely n...
null
CC BY-SA 2.5
null
2008-09-02T22:22:19.167
2008-09-02T22:22:19.167
null
null
291
null
40,856
2
null
40,787
1
null
If you don't mind running a Microscoft Windows Based Script then this jscript will work OK. just save it as a .js file and run it from dos with "wscript c:/script.js". ``` var fso, f, fileCount; var ForReading = 1, ForWriting = 2; var filename = "c:\\testfile.txt"; fso = new ActiveXObject("Scripting.FileSystemObjec...
null
CC BY-SA 2.5
null
2008-09-02T22:45:50.623
2008-09-02T22:51:03.107
2008-09-02T22:51:03.107
2,098
2,098
null
40,849
2
null
38,409
11
null
You'll get what you want with YAML. But there is a little problem with your string. YAML expects that there's a space behind the comma. So we need this ``` str = "[[this, is], [a, nested], [array]]" ``` Code: ``` require 'yaml' str = "[[this, is],[a, nested],[array]]" ### transform your string in a valid YAML-Stri...
null
CC BY-SA 2.5
null
2008-09-02T22:39:27.503
2008-09-02T22:39:27.503
null
null
4,195
null
40,861
2
null
40,814
2
null
If you don't want to go the SMO route you can search and replace "GO" for ";" and the query as you would. Note that soly the the last result set will be returned.
null
CC BY-SA 2.5
null
2008-09-02T22:53:51.790
2008-09-02T22:53:51.790
null
null
1,293
null
40,844
2
null
40,773
1
null
Scope out [SmarterTrack](http://www.smartertools.com/SmarterTrack/Features/Customer-Service-Software-Web-Interface.aspx), [Help Desk Software](http://www.smartertools.com/smartertrack/help-desk-software.aspx) from SmarterTools:
null
CC BY-SA 3.0
null
2008-09-02T22:36:42.593
2011-07-19T17:48:33.020
2011-07-19T17:48:33.020
180,239
null
null
40,853
1
40,867
null
32
17,985
I have some code like this in a winforms app I was writing to query a user's mail box Storage Quota. ``` DirectoryEntry mbstore = new DirectoryEntry( @"LDAP://" + strhome, m_serviceaccount, [m_pwd], AuthenticationTypes.Secure); ``` No matter what approach I tried (like `SecureString`), I a...
How to store passwords in Winforms application?
CC BY-SA 2.5
0
2008-09-02T22:43:39.520
2014-08-17T20:41:51.383
2014-08-17T20:41:51.383
2,246,344
4,337
[ "winforms", "security", "passwords" ]
40,864
2
null
40,840
1
null
What OS is this? Is it on a 64-bit system? What is the nature of the failure: silent or is an exception thrown? You could try running [ProcessMonitor](http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) and seeing if it sees the attempt to set the value.
null
CC BY-SA 2.5
null
2008-09-02T22:57:09.253
2008-09-02T22:57:09.253
null
null
3,631
null
40,866
2
null
40,840
1
null
Is there any reason that you have to do it through the registry? If not, you can use Environment.SetEnvironmentVariable() since .NET 2.0. It allows you to set on a machine, process or user basis.
null
CC BY-SA 2.5
null
2008-09-02T22:58:11.437
2008-09-02T22:58:11.437
null
null
441
null
40,860
2
null
40,773
2
null
[FogBugz](http://www.fogcreek.com/fogbugz/) is great as others have mentioned. I use it for my bug/feature tracking system, but I like to separate out my support ticketing system for my support staff to use. Another tool that has great email integration also is called [HelpSpot](http://www.userscape.com/products/help...
null
CC BY-SA 3.0
null
2008-09-02T22:52:43.163
2013-03-05T21:58:14.800
2013-03-05T21:58:14.800
300,041
1,117
null
40,862
2
null
40,737
1
null
I guess there are a couple of options: 1. For a pure CLI solution, use something like gnuplot. See here for example usage. I haven't used gnuplot since my student days :-) 2. Not really a pure CLI solution, but download something like JFreeChart and write a simple Java app that reads stdin and creates your chart. ...
null
CC BY-SA 2.5
null
2008-09-02T22:55:05.077
2008-09-02T22:55:05.077
null
null
3,295
null
40,871
2
null
40,769
1
null
Many of the standard paths require a user to be logged in, especially the SH* functions as those are provided by the "shell", that is, Explorer. I suspect the only way you're going to get the right path is through the registry like you already mentioned.
null
CC BY-SA 2.5
null
2008-09-02T23:00:49.120
2008-09-02T23:00:49.120
null
null
645
null
40,869
2
null
40,787
12
null
You can try a plain old batchfile. ``` @echo off for /f " delims==" %%i in (counter.txt) do set /A temp_counter= %%i+1 echo %temp_counter% > counter.txt ``` assuming the count.bat and counter.txt are located in the same directory.
null
CC BY-SA 2.5
null
2008-09-02T22:59:38.920
2008-09-02T22:59:38.920
null
null
1,462
null
40,872
2
null
40,859
0
null
Not that I know of, typically you'll develop apps on a desktop machine (PC/MAC whatever) and download/control the application on the phone. Also I don't think Java is available on a standard (non-cracked) iPhone.
null
CC BY-SA 2.5
null
2008-09-02T23:01:14.750
2008-09-02T23:01:14.750
null
null
4,071
null
40,865
2
null
40,853
2
null
If you store it as a secure string and save the secure string to a file (possibly using [Isolated Storage](http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.aspx), the only time you will have a plain text password is when you decrypt it to create your mbstore. Unfortunately, the constructor does not ta...
null
CC BY-SA 2.5
null
2008-09-02T22:57:09.783
2008-09-02T22:57:09.783
null
null
1,233
null
40,867
2
null
40,853
26
null
The sanctified method is to use CryptoAPI and the Data Protection APIs. To encrypt, use something like this (C++): ``` DATA_BLOB blobIn, blobOut; blobIn.pbData=(BYTE*)data; blobIn.cbData=wcslen(data)*sizeof(WCHAR); CryptProtectData(&blobIn, description, NULL, NULL, NULL, CRYPTPROTECT_LOCAL_MACHINE | CRYPTPROTECT_UI_...
null
CC BY-SA 2.5
null
2008-09-02T22:58:13.183
2008-09-02T22:58:13.183
null
null
3,146
null
40,868
2
null
39,843
29
null
Here's how I've done this in my current project. First I've defined a class (as @Daren Thomas said - just a plain old C# class, no associated XAML file), like this (and yes, this is a real class - best not to ask): ``` public class PigFinderPage : Page { /* add custom events and properties here */ } ``` Then I ...
null
CC BY-SA 2.5
null
2008-09-02T22:58:19.127
2008-09-02T22:58:19.127
null
null
615
null
40,863
1
41,206
null
20
7,307
Basically I'm going to go a bit broad here and ask a few questions to get a bit of a picture of how people are handling UI these days. Lately I've found it pretty easy to do some fancy things with UI design and with WPF specifically we're finding new ways to do layouts that are better looking and more functional for t...
Business Application UI Design
CC BY-SA 2.5
0
2008-09-02T22:56:14.217
2012-02-04T18:30:53.303
null
null
3,717
[ "wpf", "user-interface" ]
40,880
2
null
40,873
2
null
An out-of-the-box idea, but could you use a "replace" function to strip out any instances of "(", "-" and " ", and then use an "isnumeric" function to test whether the resulting string is a number? Then you could do the same to the phone number string you're searching for and compare them as integers. Of course, this...
null
CC BY-SA 2.5
null
2008-09-02T23:03:52.497
2008-09-02T23:03:52.497
null
null
615
null