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
17,873
2
null
17,870
10
null
``` select * from TABLE where field IN (1,2,3) ``` You can also conveniently combine this with a subquery that only returns one field: ``` select * from TABLE where field IN (SELECT boom FROM anotherTable) ```
null
CC BY-SA 2.5
null
2008-08-20T12:59:58.670
2008-08-20T12:59:58.670
null
null
91
null
17,872
2
null
17,870
35
null
Sure thing, the simplest way is this: ``` select foo from bar where baz in (1,2,3) ```
null
CC BY-SA 2.5
null
2008-08-20T12:59:51.743
2008-08-20T12:59:51.743
null
null
1,951
null
17,874
2
null
17,870
3
null
select * from TABLE where field in (1, 2, 3)
null
CC BY-SA 2.5
null
2008-08-20T13:00:01.133
2008-08-20T13:00:01.133
null
null
212
null
17,877
1
17,923
null
2
1,854
Just looking for the first step basic solution here that keeps the honest people out. Thanks, Mike
How to encrypt connection string in WinForms 1.1 app.config?
CC BY-SA 2.5
null
2008-08-20T13:00:27.360
2012-07-14T00:37:42.407
2008-08-23T13:21:01.513
785
785
[ "database", "winforms" ]
17,875
2
null
17,870
3
null
``` WHERE field IN (1, 2, 3) ```
null
CC BY-SA 2.5
null
2008-08-20T13:00:01.447
2008-08-20T13:00:01.447
null
null
267
null
17,859
2
null
17,679
9
null
Uniqueidentifier fields in Sql server can be indexed, and so are 'backwards'. Guids can be generated from both machine specific info and 'event-time' information. The default Guid in .Net is random, but you can get sequential Guids from it with an extern call: ``` [DllImport( "rpcrt4.dll", SetLastError = true )] sta...
null
CC BY-SA 2.5
null
2008-08-20T12:55:52.877
2008-08-20T12:55:52.877
null
null
905
null
17,871
2
null
10,793
0
null
I am not sure I understand [your response](https://stackoverflow.com/questions/10793/catching-unhandled-exceptions-in-aspnet-usercontrols#15999).. How are you loading your controls and adding them to your controls collection? That was the whole point of the bit added in the "Update" section.. You have the flexibility ...
null
CC BY-SA 2.5
null
2008-08-20T12:59:40.653
2008-08-20T12:59:40.653
2017-05-23T12:18:16.227
-1
832
null
17,887
2
null
17,870
5
null
OR: ``` SELECT foo FROM bar WHERE baz BETWEEN 1 AND 3 ```
null
CC BY-SA 2.5
null
2008-08-20T13:05:32.870
2008-08-20T13:05:32.870
null
null
2,119
null
17,891
2
null
3,486
0
null
You might be able to use an anti-CSRF token to achieve what you're after. This article explains it in more detail: [Cross-Site Request Forgeries](http://shiflett.org/articles/cross-site-request-forgeries)
null
CC BY-SA 3.0
null
2008-08-20T13:06:48.730
2013-01-27T12:44:43.833
2013-01-27T12:44:43.833
null
1,904
null
17,892
2
null
17,878
1
null
You can either use remoting or WCF. See [http://msdn.microsoft.com/en-us/library/aa730857(VS.80).aspx#netremotewcf_topic7](http://msdn.microsoft.com/en-us/library/aa730857(VS.80).aspx#netremotewcf_topic7).
null
CC BY-SA 2.5
null
2008-08-20T13:07:15.017
2008-08-20T13:07:15.017
null
null
1,659
null
17,880
1
19,571
null
2
2,298
There is a rich scripting model for Microsoft Office, but not so with Apple iWork, and specifically the word processor Pages. While there are some AppleScript hooks, it looks like the best approach is to manipulate the underlying XML data. This turns out to be pretty ugly because (for example) page breaks are stored i...
Mac iWork/Pages Automation
CC BY-SA 2.5
0
2008-08-20T13:02:38.070
2009-01-26T00:18:18.977
2009-01-26T00:18:18.977
3,857
1,854
[ "xml", "automation", "applescript", "iwork" ]
17,895
2
null
17,870
1
null
You can still use in for ``` select * from table where field = '1' or field = '2' or field = '3' ``` its just ``` select * from table where field in ('1','2','3') ```
null
CC BY-SA 2.5
null
2008-08-20T13:08:03.003
2008-08-20T13:08:03.003
null
null
2,098
null
17,890
2
null
17,732
2
null
Our database server software contains both production and debug assertions. Debug assertions are just that -- they are removed in production code. Production assertions only happen if (a) some condition exists that should exist and (b) it is not possible to reliably recover from this condition. A production assertion ...
null
CC BY-SA 2.5
null
2008-08-20T13:06:46.127
2008-08-20T13:06:46.127
null
null
1,821
null
17,878
1
17,977
null
23
31,862
Suppose I have two applications written in C#. The first is a third party application that raises an event called "OnEmailSent". The second is a custom app that I've written that I would like to somehow subscribe to the "OnEmailSent" even of the first application. Is there any way that I could somehow attach the seco...
Listen for events in another application
CC BY-SA 3.0
0
2008-08-20T13:01:01.100
2021-11-18T14:35:06.360
2012-04-24T19:40:59.910
1,288
493
[ "c#", "events", "delegates" ]
17,893
1
17,933
null
43
6,730
My current `setup.py` script works okay, but it installs `tvnamer.py` (the tool) as `tvnamer.py` into site-packages or somewhere similar.. Can I make `setup.py` install `tvnamer.py` as `tvnamer`, and/or is there a better way of installing command-line applications?
What's the best way to distribute python command-line tools?
CC BY-SA 3.0
0
2008-08-20T13:07:25.517
2017-10-11T00:41:39.380
2017-10-11T00:41:39.380
8,589,340
745
[ "python", "command-line", "packaging" ]
17,894
2
null
17,770
3
null
I use: 1. Google Notebook - I take notes for projects, books I'm reading, etc 2. Delicious + Firefox plug in - Every time I see a good page I mark it. 3. Windows Journal (in tablet pc) - When I need to draw something and then copy/cut/paste it. I have more distractions here, the web is always very close :) 4. Small M...
null
CC BY-SA 2.5
null
2008-08-20T13:07:52.927
2008-08-20T13:07:52.927
null
null
1,013
null
17,908
2
null
17,098
0
null
Thanks for your answers. I did not mean transport dependant, my mistake. I meant that I'd like the consumer to be able to choose which endpoint to bind to. And since basicHttpBinding and netTcpBinding, amongst others, don't suppport WS-* I need to use something at the at the service level. Davids simple authenticatio...
null
CC BY-SA 2.5
null
2008-08-20T13:15:14.360
2008-08-20T13:15:14.360
null
null
1,851
null
17,921
2
null
15,828
27
null
The ADO.NET approach is quick and easy, but it has a few quirks which you should be aware of, especially regarding how DataTypes are handled. This excellent article will help you avoid some common pitfalls: [http://blog.lab49.com/archives/196](http://blog.lab49.com/archives/196)
null
CC BY-SA 2.5
null
2008-08-20T13:19:17.173
2008-08-20T13:19:17.173
null
null
2,084
null
17,905
2
null
17,878
3
null
You can try [Managed Spy](http://msdn.microsoft.com/en-us/magazine/cc163617.aspx) and for programmatic access > ManagedSpyLib introduces a class called ControlProxy. A ControlProxy is a representation of a System.Windows.Forms.Control in another process. ControlProxy allows you to get or set properties and ...
null
CC BY-SA 2.5
null
2008-08-20T13:12:46.563
2008-08-21T01:11:41.157
2008-08-21T01:11:41.157
275
275
null
17,906
1
18,026
null
34
26,807
I have a rather classic UI situation - two ListBoxes named `SelectedItems` and `AvailableItems` - the idea being that the items you have already selected live in `SelectedItems`, while the items that are available for adding to `SelectedItems` (i.e. every item that isn't already in there) live in `AvailableItems`. Als...
Enabling a button in WPF depending on ListBox.SelectedIndex
CC BY-SA 3.0
0
2008-08-20T13:13:16.470
2023-02-12T10:57:20.907
2016-07-28T12:04:25.620
462,639
2,122
[ "wpf", "listbox" ]
17,923
2
null
17,877
0
null
This might help you along the way: [http://msdn.microsoft.com/en-us/library/aa302403.aspx](http://msdn.microsoft.com/en-us/library/aa302403.aspx) [http://msdn.microsoft.com/en-us/library/aa302406.aspx](http://msdn.microsoft.com/en-us/library/aa302406.aspx) The articles are aimed at ASP.NET but the principles are the...
null
CC BY-SA 3.0
null
2008-08-20T13:19:47.220
2012-07-14T00:37:42.407
2012-07-14T00:37:42.407
419
419
null
17,924
2
null
17,878
0
null
What's the nature of that OnEmailSent event from that third party application? I mean, how do you know the application is triggering such an event? If are planning on doing interprocess communication, the first question you should ask yourself is: Is it really necessary? Without questioning your motives, if you real...
null
CC BY-SA 2.5
null
2008-08-20T13:21:01.957
2008-08-20T13:26:42.663
2008-08-20T13:26:42.663
42
42
null
17,916
2
null
17,532
3
null
Here's another extension method that I use for custom rendering: ``` public static void WriteControls (this HtmlTextWriter o, string format, params object[] args) { const string delimiter = "<2E01A260-BD39-47d0-8C5E-0DF814FDF9DC>"; var controls = new Dictionary<string,Control>(); for(int i =0; ...
null
CC BY-SA 3.0
null
2008-08-20T13:18:31.417
2017-04-20T15:22:37.347
2017-04-20T15:22:37.347
1,659
1,659
null
17,928
1
21,773
null
3
8,143
I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete.
Using an ocx in a console application
CC BY-SA 2.5
0
2008-08-20T13:22:56.320
2010-05-08T19:12:25.553
2008-08-22T05:24:28.687
1,554
1,781
[ "c++", "visual-c++", "console", "activex" ]
17,930
2
null
15,828
8
null
I did a lot of reading from Excel files in C# a while ago, and we used two approaches: - - The latter approach was faster: reading a big table with 20 columns and 200 lines would take 30 seconds via COM, and half a second via ODBC. So I would recommend the database approach if all you need is the data. Cheers, Ca...
null
CC BY-SA 2.5
null
2008-08-20T13:24:35.477
2008-08-20T13:24:35.477
null
null
2,095
null
17,922
1
3,672,519
null
5
2,667
Trying to avoid the .net WebBrowser control (I don't need to navigate to a url, print rendered html or any of the other inbuilt goodies). Wrapping the IE dll seems a bit heavyweight. I simply require something that can display basic html marked up text - an html equivalent of [RichTextBox](http://msdn.microsoft.com/e...
Any recommendations for lightweight .net Win Forms HTML renderer controls?
CC BY-SA 2.5
0
2008-08-20T13:19:34.927
2011-12-12T14:33:09.980
2008-09-09T23:13:45.020
-1
1,853
[ ".net", "winforms", "user-interface", "controls" ]
17,911
1
null
null
1
18,156
I've been having some trouble parsing various types of XML within flash (specifically FeedBurner RSS files and YouTube Data API responses). I'm using a `URLLoader` to load a XML file, and upon `Event.COMPLETE` creating a new XML object. 75% of the time this work fine, and every now and again I get this type of exceptio...
Best Practices for AS3 XML Parsing
CC BY-SA 3.0
null
2008-08-20T13:15:57.057
2016-03-09T06:48:48.790
2016-03-09T06:48:48.790
105,971
1,306
[ "xml", "flash", "actionscript-3", "rss", "fileparse" ]
17,933
2
null
17,893
38
null
Try the `entry_points.console_scripts` parameter in the setup() call. As described in the [setuptools docs](http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation), this should do what I think you want. To reproduce here: ``` from setuptools import setup setup( # other arguments here... ...
null
CC BY-SA 3.0
null
2008-08-20T13:25:23.010
2012-06-28T20:48:32.377
2012-06-28T20:48:32.377
745
1,199
null
17,937
2
null
13,550
0
null
Unfortunaly the [Magic](http://www.magicsoftware.com/) tool doesn't generates code and also it can't implement a design pattern. I don't have control over the code cause as i stated before it doesn't have code to modify. Te bottom line is that it can speed up productivity in some way but it has the impossibility to use...
null
CC BY-SA 2.5
null
2008-08-20T13:25:53.647
2008-08-20T13:25:53.647
null
null
1,130,097
null
17,942
2
null
17,435
3
null
Before it was acquired by Google, [JotSpot](http://www.jot.com/) used server-side JavaScript to let you query their database and display your pages. They used [Rhino](http://www.mozilla.org/rhino) to do it. CouchDB uses server-side JavaScript to create [views](http://wiki.apache.org/couchdb/Views) of their database. A...
null
CC BY-SA 2.5
null
2008-08-20T13:26:54.300
2008-08-20T13:26:54.300
null
null
2,120
null
17,944
1
17,974
null
386
260,800
I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java. If I have items which I want to display in chunks of per page, how many pages will be needed?
How to round up the result of integer division?
CC BY-SA 3.0
0
2008-08-20T13:27:40.210
2022-11-03T18:37:13.840
2022-04-10T04:01:46.377
1,439,305
2,084
[ "java", "c#", "c++", "math" ]
17,932
2
null
15,240
2
null
In C++ you can use the streaming operator to simplify things: ``` #if defined _DEBUG class Trace { public: static Trace &GetTrace () { static Trace trace; return trace; } Trace &operator << (int value) { /* output int */ return *this; } Trace &operator << (short value) { /* output short */ return *this; } ...
null
CC BY-SA 3.0
null
2008-08-20T13:24:41.870
2012-07-03T13:03:30.373
2012-07-03T13:03:30.373
142,162
1,898
null
17,949
2
null
17,944
-5
null
You'll want to do floating point division, and then use the ceiling function, to round up the value to the next integer.
null
CC BY-SA 2.5
null
2008-08-20T13:29:57.333
2008-08-20T13:29:57.333
null
null
1,862
null
17,948
1
18,056
null
1
259
I have a web application written in C# that consumes several internal web services. We have a development tier, a testing tier, and a production tier. Also, we use the `WSDL.exe` command to generate a `Proxies.cs` file for a given tier's web services. When we are ready to deploy our code up the stack from developmen...
Automating WSDL.exe in a Custom Build
CC BY-SA 3.0
null
2008-08-20T13:29:50.143
2014-12-13T07:50:28.137
2014-12-13T07:47:10.070
1,810,429
2,173
[ "asp.net", "build-process", "wsdl" ]
17,950
2
null
17,878
0
null
You can implement a similar scenario with SQL Server 2005 query change notifications by maintaing a persistent SqlConnection with a .NET application that blocks until data changes in the database. See [http://www.code-magazine.com/article.aspx?quickid=0605061](http://www.code-magazine.com/article.aspx?quickid=0605061)...
null
CC BY-SA 2.5
null
2008-08-20T13:30:23.573
2008-08-20T13:30:23.573
null
null
1,659
null
17,953
2
null
17,944
4
null
Another alternative is to use the mod() function (or '%'). If there is a non-zero remainder then increment the integer result of the division.
null
CC BY-SA 2.5
null
2008-08-20T13:30:43.213
2008-08-20T13:30:43.213
null
null
1,061
null
17,951
2
null
17,947
1
null
This kind of prolem can occur if you are calling unmanaged code e.g. a dll. It can occur when Marshalling goes horribly wrong. Can you tell us if you are calling unmanaged code? If so are you using default Marshalling or more specific stuff? From the looks of the stack trace are you using unsafe code e.g. Pointers and...
null
CC BY-SA 2.5
null
2008-08-20T13:30:30.657
2008-08-20T13:30:30.657
null
null
1,816
null
17,939
1
92,215
null
2
652
I heard Joel and Jeff talking about [sIFR](http://www.mikeindustries.com/blog/sifr/) in one of the [early podcasts](https://stackoverflow.fogbugz.com/default.asp?W12621). I've been using it on [www.american-data.com](http://www.american-data.com) and [www.chartright.us](http://www.chartright.us) with some fairly mixed...
When do you use sIFR?
CC BY-SA 3.0
null
2008-08-20T13:26:04.020
2012-04-25T21:15:04.337
2012-04-25T21:15:04.337
1,332,690
1,765
[ "cross-browser", "sifr" ]
17,959
2
null
17,825
0
null
Thanks for the suggestions/comments! After wrestling with windows installer setup I figured out the best way to include the WSE30 redist and pop up a dialog if it is not installed. I'm aware of it not being best practice (and against Microsoft's EULA as mentioned) to simply include the DLL, which is why I thought it s...
null
CC BY-SA 2.5
null
2008-08-20T13:33:55.610
2008-08-20T13:33:55.610
null
null
1,683
null
17,957
2
null
17,944
100
null
For C# the solution is to cast the values to a double (as Math.Ceiling takes a double): ``` int nPages = (int)Math.Ceiling((double)nItems / (double)nItemsPerPage); ``` In java you should do the same with Math.ceil().
null
CC BY-SA 3.0
null
2008-08-20T13:33:04.690
2015-03-29T21:24:08.683
2015-03-29T21:24:08.683
78,561
1,830
null
17,955
1
null
null
0
551
People, We have 4 or 5 utilities that work in conjunction with our application. These utilities are either .bat files, or VB apps, PowerBuilder, etc. I am trying to manage these utils in source control, and am trying to figure out a better way to assign versions to them. Right now, the developers use the version contr...
Solution deployment, CM, InstallShield
CC BY-SA 3.0
null
2008-08-20T13:31:37.267
2011-12-17T04:20:21.720
2011-12-17T04:20:21.720
214,668
null
[ "content-management-system", "versioning", "installshield", "packaging" ]
17,965
1
17,994
null
245
444,958
I have a process in Linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails?
How to generate a core dump in Linux on a segmentation fault?
CC BY-SA 4.0
0
2008-08-20T13:38:14.287
2022-01-27T03:57:26.063
2019-01-21T13:00:40.103
55,075
1,084
[ "linux", "bash", "unix", "coredump", "tcsh" ]
17,964
2
null
13,471
1
null
[Steema Software](http://www.steema.com/) has got a great component called TeeTree which seems to do everything. I'm not sure how much it costs We use it for making pie charts and reports but it seems to do everything, you can get compiled demo's off their site. --- It's a VCL component.
null
CC BY-SA 2.5
null
2008-08-20T13:37:17.050
2008-08-20T13:37:17.050
null
null
1,765
null
17,954
2
null
17,944
82
null
This should give you what you want. You will definitely want x items divided by y items per page, the problem is when uneven numbers come up, so if there is a partial page we also want to add one page. ``` int x = number_of_items; int y = items_per_page; // with out library int pages = x/y + (x % y > 0 ? 1 : 0) // ...
null
CC BY-SA 2.5
null
2008-08-20T13:31:08.797
2008-08-20T13:39:51.383
2008-08-20T13:39:51.383
17
17
null
17,947
1
17,978
null
2
3,194
I cant post the code (proprietary issues) but does anyone know what types of things would cause the following error in C#. It is being thrown by a VOIP client that I wrote (using counterpath api) when the call is ended by the other client. The error is: ``` System.AccessViolationException was unhandled Message="Atte...
C# Corrupt Memory Error
CC BY-SA 4.0
0
2008-08-20T13:28:57.680
2018-05-18T09:14:52.983
2018-05-18T09:14:52.983
886,001
673
[ "c#", "voip" ]
17,961
2
null
17,922
0
null
While it takes a bit of effort, you can disable almost all of the 'extra' functionality of the built in WebBrowser control. If the built in web browser provides all the functionality you need why look elsewhere?
null
CC BY-SA 2.5
null
2008-08-20T13:34:15.233
2008-08-20T13:34:15.233
null
null
1,908
null
17,960
1
5,625,350
null
27
20,498
Has anyone worked out how to get PowerShell to use `app.config` files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in `app.config`/`web.config`.
PowerShell App.Config
CC BY-SA 3.0
0
2008-08-20T13:33:58.057
2018-08-10T05:04:56.330
2011-04-11T18:25:49.030
419
419
[ "powershell", "configuration-files" ]
17,971
2
null
17,320
1
null
As a student I'd recommend forgetting about what you're programming and focusing on the software process itself. Understand how to analyse a problem and ask the right questions; learn every design pattern you can and actually to gain a real understanding and appreciation of object-oriented design; write tests and then...
null
CC BY-SA 2.5
null
2008-08-20T13:40:51.160
2008-08-20T13:40:51.160
null
null
1,517
null
17,970
2
null
17,434
1
null
One specific instance where I use `friend` is when creating [Singleton](http://en.wikipedia.org/wiki/Singleton_pattern) classes. The `friend` keyword lets me create an accessor function, which is more concise than always having a "GetInstance()" method on the class. ``` ///////////////////////// // Header file class ...
null
CC BY-SA 2.5
null
2008-08-20T13:40:41.583
2008-08-20T13:40:41.583
null
null
863
null
17,976
2
null
16,432
0
null
Actually, I ran these tests yesterday, but it was getting late so I didnt put my responses. The bottom line seems that they take both the same time on average. I did the test over 100000 iterations. I'll try with StringBuilder as well, and I'll post the code and results when I get home.
null
CC BY-SA 2.5
null
2008-08-20T13:43:31.030
2008-08-20T13:43:31.030
null
null
920
null
17,974
2
null
17,944
563
null
Found an elegant solution: ``` int pageCount = (records + recordsPerPage - 1) / recordsPerPage; ``` Source: [Number Conversion, Roland Backhouse, 2001](http://www.cs.nott.ac.uk/~rcb/G51MPC/slides/NumberLogic.pdf)
null
CC BY-SA 2.5
null
2008-08-20T13:42:08.257
2008-08-20T13:42:08.257
null
null
2,084
null
17,984
1
19,549
null
6
2,153
Alright, this might be a bit of a long shot, but I have having problems getting AnkhSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be detecting the Internet Explorer proxy configu...
AnkhSVN Cannot Connect Due to Proxy
CC BY-SA 2.5
0
2008-08-20T13:45:48.077
2009-04-30T07:44:06.747
2009-03-22T18:33:26.447
14,444
1,185
[ "visual-studio", "svn", "visual-studio-2005", "proxy", "ankhsvn" ]
17,963
2
null
17,911
1
null
Have you tried checking that the bytes loaded are the same as the total bytes? ``` URLLoader.bytesLoaded == URLLoader.bytesTotal ``` That should tell you if the file has finished loading, it wont help with the compleate event firing to early, but it should tell you if its a problem with the xml been read. I am unsu...
null
CC BY-SA 2.5
null
2008-08-20T13:36:43.027
2008-08-20T13:36:43.027
null
null
2,098
null
17,966
1
26,573
null
2
2,024
I am trying to include a link to my application in the Startup folder with a parameter passed to the program. I think it would work if I created the shortcut locally and then added it to my source. After that I could copy it to the Startup folder on first run. ``` File.userDirectory.resolvePath("Start Menu\\Programs...
Add a shortcut to Startup folder with parameters in Adobe AIR
CC BY-SA 3.0
0
2008-08-20T13:38:53.833
2015-04-17T18:08:22.183
2015-04-17T18:08:22.183
1,215,724
26
[ "air", "adobe" ]
17,980
1
17,989
null
5
3,783
I've searched for this a little but I have not gotten a particularly straight answer. In C (and I guess C++), how do you determine what comes after the % when using `printf`?. For example: ``` double radius = 1.0; double area = 0.0; area = calculateArea( radius ); printf( "%10.1f %10.2\n", radius, area ); ``` I ...
What Comes After The %?
CC BY-SA 3.0
0
2008-08-20T13:44:34.320
2016-03-14T16:14:07.730
2012-04-26T00:34:18.687
1,332,690
2,128
[ "c" ]
17,978
2
null
17,947
3
null
List of some possibilities: - - - - --- In you case it could be a problem with Windows Forms. But the problem is not that it is happening, but rather that it is not being reported correctly; you possibly still have done something wrong. Are you able to determine what control is causing the error using the HWND?...
null
CC BY-SA 2.5
null
2008-08-20T13:44:22.980
2008-08-20T13:51:21.480
2008-08-20T13:51:21.480
42
42
null
17,992
2
null
17,980
1
null
means you want to display a loat with decimal and the displayed number should be characters long.
null
CC BY-SA 2.5
null
2008-08-20T13:50:37.690
2008-08-20T13:50:37.690
null
null
446,497
null
17,985
2
null
17,947
0
null
Here is a more detailed stacktrace. It looks to me like it has something to do with the System.Windows.Form.dll the TargetSite is listed as `{IntPtr DispatchMessageW(MSG ByRef)}` and under module it has System.windows.forms.dll
null
CC BY-SA 2.5
null
2008-08-20T13:46:56.497
2008-08-20T13:46:56.497
null
null
673
null
17,990
2
null
17,984
5
null
Current version of AnkhSVN does not provide a GUI for proxy settings, but you can hand-edit the file (which is a simple .ini) and it should work. Servers file resides in: (or wherever your APP_DATA is)
null
CC BY-SA 2.5
null
2008-08-20T13:50:28.750
2008-08-20T13:50:28.750
null
null
227
null
17,987
2
null
17,980
7
null
``` man 3 printf ``` on a Linux system will give you all the information you need. You can also find these manual pages online, for example at [http://linux.die.net/man/3/printf](http://linux.die.net/man/3/printf)
null
CC BY-SA 2.5
null
2008-08-20T13:48:14.217
2008-08-20T13:48:14.217
null
null
1,694
null
17,993
1
null
null
9
1,940
We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5. Is there any easy way to do this rather than re-coding Java 6 specific code? We'd like to keep our code up to date.
Easy way to backport Java 6 code to Java 5?
CC BY-SA 2.5
0
2008-08-20T13:50:38.907
2015-12-14T07:46:18.110
null
null
738
[ "java", "backport" ]
17,977
2
null
17,878
14
null
In order for two applications (separate processes) to exchange events, they must agree on how these events are communicated. There are many different ways of doing this, and exactly which method to use may depend on architecture and context. The general term for this kind of information exchange between processes is [I...
null
CC BY-SA 2.5
null
2008-08-20T13:44:10.607
2008-08-20T13:44:10.607
null
null
1,709
null
17,989
2
null
17,980
15
null
[http://en.wikipedia.org/wiki/Printf#printf_format_placeholders](http://en.wikipedia.org/wiki/Printf#printf_format_placeholders) is Wikipedia's reference for format placeholders in printf. [http://www.cplusplus.com/reference/clibrary/cstdio/printf.html](http://www.cplusplus.com/reference/clibrary/cstdio/printf.html) is...
null
CC BY-SA 2.5
null
2008-08-20T13:50:05.570
2008-08-20T13:50:05.570
null
null
1,912
null
17,994
2
null
17,965
273
null
This depends on what shell you are using. If you are using bash, then the ulimit command controls several settings relating to program execution, such as whether you should dump core. If you type ``` ulimit -c unlimited ``` then that will tell bash that its programs can dump cores of any size. You can specify a s...
null
CC BY-SA 2.5
null
2008-08-20T13:50:47.143
2008-11-17T22:22:13.107
2008-11-17T22:22:13.107
1,694
1,694
null
17,997
2
null
17,939
0
null
I had plenty of headaches after implementing [sIFR](http://www.mikeindustries.com/blog/sifr/) on my last website project. Most of the problems were to do with browser inconsistencies like you are describing. Text would appear in odd places, not wrap properly or just not display the way I wanted it to. I found that, as ...
null
CC BY-SA 2.5
null
2008-08-20T13:51:25.427
2008-08-20T13:51:25.427
null
null
202
null
17,986
2
null
16,832
2
null
Thanks for all of the help so far, I have things up and running and right now I am working with [Assembla](http://www.assembla.com/tour) as a Subversion server, [TortoiseSVN](http://tortoisesvn.net/) for general Subversion access, and [AnkhSVN](http://ankhsvn.open.collab.net/) for Visual Studio integration. Overall I a...
null
CC BY-SA 2.5
null
2008-08-20T13:48:12.143
2009-02-23T13:54:44.190
2009-02-23T13:54:44.207
1,185
1,185
null
18,004
2
null
17,980
2
null
10.1f means floating point with 10 characters wide with 1 place after the decimal point. If the number has less than 10 digits, it's padded with spaces. 10.2f is the same, but with 2 places after the decimal point. You have these basic types: ``` %d - integer %x - hex integer %s - string %c - char (only one)...
null
CC BY-SA 3.0
null
2008-08-20T13:53:08.247
2015-05-03T23:45:59.177
2015-05-03T23:45:59.177
null
1,084
null
18,010
1
18,027
null
24
7,629
I asked a couple of coworkers about [AnkhSVN](http://ankhsvn.open.collab.net) and neither one of them was happy with it. One of them went as far as saying that AnkhSVN has messed up his devenv several times. What's your experience with AnkhSVN? I really miss having an IDE integrated source control tool.
Is AnkhSVN any good?
CC BY-SA 3.0
0
2008-08-20T13:54:31.800
2021-02-22T13:20:17.100
2012-04-25T18:32:59.950
1,332,690
781
[ "version-control", "ankhsvn" ]
18,013
2
null
17,993
-1
null
You might be able to backport the additional libraries from Java 6 to Java 5, but I imagine it would be rather more trouble that it's worth. Intel Macs with 64-bit processors (so not the original Intel Mac Mini) running Leopard have Java 6, so perhaps you could just target them?
null
CC BY-SA 2.5
null
2008-08-20T13:55:14.403
2008-08-20T13:55:14.403
null
null
2,131
null
17,995
2
null
17,980
1
null
In short, those values after the % tell `printf` how to interpret (or output) all of the variables coming later. In your example, `radius` is interpreted as a float (this the 'f'), and the `10.1` gives information about how many decimal places to use when printing it out. See [this link](http://www.cplusplus.com/refe...
null
CC BY-SA 2.5
null
2008-08-20T13:51:18.733
2008-08-20T13:51:18.733
null
null
863
null
18,006
1
18,033
null
16
14,582
I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table. My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces countless (ok, 146,000) results. Has anybody done anything simi...
Recommendations for a .NET component to access an email inbox
CC BY-SA 2.5
0
2008-08-20T13:53:20.647
2016-09-09T17:49:48.173
null
null
2,084
[ ".net", "email", "imap", "pop3" ]
18,019
2
null
17,993
3
null
Apple released Java 6 on the latest version of OS X. What features are you using specifically from Java6 that aren't in java5?
null
CC BY-SA 2.5
null
2008-08-20T13:57:15.147
2008-08-20T13:57:15.147
null
null
1,310
null
17,999
2
null
17,980
0
null
Man pages contain the information you want. To read what you have above: ``` printf( "%10.2f", 1.5 ) ``` This will print: ``` 1.50 ``` Whereas: ``` printf("%.2f", 1.5 ) ``` Prints: ``` 1.50 ``` Note the justification of both. Similarly: ``` printf("%10.1f", 1.5 ) ``` Would print: ``` 1.5 ``` Any numbe...
null
CC BY-SA 2.5
null
2008-08-20T13:51:59.590
2008-08-20T13:51:59.590
null
null
2,132
null
18,026
2
null
17,906
55
null
Here's your solution. ``` <Button Name="btn1" >click me <Button.Style> <Style> <Style.Triggers> <DataTrigger Binding ="{Binding ElementName=list1, Path=SelectedIndex}" Value="-1"> ...
null
CC BY-SA 3.0
null
2008-08-20T14:00:19.337
2013-05-31T01:00:35.110
2013-05-31T01:00:35.110
null
null
null
18,000
2
null
16,634
3
null
I still believe that a CLR procedure might be the best bet. So, I'm accepting that answer. However, either I'm not that bright or it's extremely difficult to implement. Our SQL Server service is running under a local account because, according to Mircosoft, that's the only way to get an iSeries linked server working fr...
null
CC BY-SA 2.5
null
2008-08-20T13:52:21.633
2008-08-20T13:52:21.633
null
null
162
null
18,032
2
null
18,010
6
null
I tried version 1, and it was unreliable to say the least. I can't say anything about 2.0. If you can afford it, the one I use, [VisualSVN](http://www.visualsvn.com/), is very good and uses TortoiseSVN for all its gui, except for the specialized things related to its VS integration.
null
CC BY-SA 2.5
null
2008-08-20T14:01:24.730
2008-08-20T14:01:24.730
null
null
267
null
18,034
1
18,062
null
23
12,557
How do I create a self signed SSL certificate for an Apache Server to use while testing a web app?
How do I create a self signed SSL certificate to use while testing a web app
CC BY-SA 2.5
0
2008-08-20T14:01:43.280
2019-08-21T22:57:35.133
null
null
1,310
[ "apache", "ssl" ]
18,029
2
null
17,993
1
null
Do you know how much you would have to rewrite if you just went back to Java 5? If you changes the JDK setting in your IDE and try to recompile it should give you a pretty good idea on how big the changes would actually be. For most developers, Java 6 didn't really offer too much in the way of new features/APIs but I...
null
CC BY-SA 2.5
null
2008-08-20T14:00:58.057
2008-08-20T14:00:58.057
null
null
1,471
null
18,027
2
null
18,010
22
null
Older AnkhSVN (pre 2.0) was very crappy and I was only using it for shiny icons in the solution explorer. I relied on Tortoise for everything except reverts. The newer Ankh is a complete rewrite (it is now using the Source Control API of the IDE) and looks & works much better. Still, I haven't forced it to any heavy li...
null
CC BY-SA 4.0
null
2008-08-20T14:00:26.013
2021-02-22T13:20:17.100
2021-02-22T13:20:17.100
1,783,163
227
null
18,021
2
null
18,006
0
null
How about WCF? It's free. If you have an Exchange server: [http://msdn.microsoft.com/en-us/library/bb397812.aspx](http://msdn.microsoft.com/en-us/library/bb397812.aspx) an example for pop3: [http://bartdesmet.net/blogs/bart/archive/2006/09/13/4417.aspx](http://bartdesmet.net/blogs/bart/archive/2006/09/13/4417.aspx)
null
CC BY-SA 2.5
null
2008-08-20T13:58:18.343
2008-08-20T14:06:34.250
2008-08-20T14:06:34.250
1,168
1,168
null
18,033
2
null
18,006
4
null
I recomment [chilkat](http://www.chilkatsoft.com). They have pretty stable components, and you can get their email component for as cheap as $99 for a single developer. Personally, I think going with the whole package of components is a better deal, as it's only $289, and comes with many useful components. I'm not a...
null
CC BY-SA 2.5
null
2008-08-20T14:01:29.303
2008-08-20T14:01:29.303
null
null
1,862
null
18,040
2
null
18,010
13
null
I always had stability issues with AnkhSVN. I couldn't switch everyone to Subversion where I work without an integrated solution. Thank goodness for [VisualSVN](http://www.visualsvn.com/) + [TortoiseSVN](http://tortoisesvn.tigris.org/). VisualSVN isn't free, but it is cheap, and works a treat.
null
CC BY-SA 2.5
null
2008-08-20T14:04:34.710
2008-08-20T14:04:34.710
null
null
1,911
null
18,035
1
null
null
7
1,567
On these questions: - [Which Vista edition is best for a developer machine?](https://stackoverflow.com/questions/17653/which-vista-edition-is-the-best-for-developer-machine)- [Vista or XP for Dev Machine](https://stackoverflow.com/questions/4433/vista-or-xp-for-dev-machine) People are recommending 64 bit, can you exp...
Why go 64 bit OS?
CC BY-SA 3.0
0
2008-08-20T14:02:34.463
2013-07-05T08:55:10.543
2017-05-23T12:19:06.590
-1
486
[ "windows-vista", "windows-xp", "64-bit", "operating-system" ]
18,047
2
null
18,035
5
null
A number of reasons. 1. Yes, you're right it is so you can have more than 3 gig of ram 2. More and more systems are going to be 64 bit soon so it makes sense to develop on what you're going to be running on 3. Some bugs can only be observed when running in 64 bit mode
null
CC BY-SA 2.5
null
2008-08-20T14:07:41.207
2008-08-20T14:07:41.207
null
null
361
null
18,038
2
null
18,034
-3
null
Use OpenSSL ([http://www.openssl.org/](http://www.openssl.org/)) Here's a tutorial: [http://novosial.org/openssl/self-signed/](http://novosial.org/openssl/self-signed/) Here is the good tutorial to start with: [SSH localhost](http://www.akadia.com/services/ssh_test_certificate.html).
null
CC BY-SA 3.0
null
2008-08-20T14:04:08.033
2015-01-27T19:43:10.303
2015-01-27T19:43:10.303
789,671
1,851
null
18,042
2
null
17,299
1
null
> Hmm, I don't have much experience with the STL. Could you give an example? This program creates a vector of ints, sorts it, and displays the results. ``` #include <vector> #include <algorithm> #include <iostream> using namespace std; int main() { vector<int>; vec; vec.push_back(7); vec.push_back(5); ...
null
CC BY-SA 3.0
null
2008-08-20T14:04:48.437
2011-10-17T13:40:09.690
2011-10-17T13:40:09.690
496,830
1,254
null
18,051
2
null
18,035
1
null
Bigger is always best? The RAM thing is the major advantage, and the increased address space. I guess as long as drivers aren't an issue, then why NOT 64bit?
null
CC BY-SA 2.5
null
2008-08-20T14:08:20.580
2008-08-20T14:08:20.580
null
null
1,075
null
18,046
2
null
2,524
2
null
We use another way of debugging, we never use F5 anymore. We use a macro kind of like: [http://blogs.conchango.com/howardvanrooijen/archive/2007/06/24/Attach-to-Web-Server-Macro-for-Visual-Studio.aspx](http://blogs.conchango.com/howardvanrooijen/archive/2007/06/24/Attach-to-Web-Server-Macro-for-Visual-Studio.aspx) (W...
null
CC BY-SA 2.5
null
2008-08-20T14:06:22.940
2008-08-20T14:06:22.940
null
null
2,104
null
18,058
2
null
18,010
0
null
I tried AnkhSVN (1.0.3, just 4 months ago), and it did not work the way I wanted it to (i.e. needed to select things in the browser window instead of based on active file). I ended up making some macros that utilize TortoiseSVN that work much more like what I expected. I've been very happy with using TortoiseSVN via e...
null
CC BY-SA 2.5
null
2008-08-20T14:10:33.913
2008-08-20T14:10:33.913
null
null
1,441
null
18,050
2
null
18,035
1
null
XP 64bit wasn't ready for prime time, there were no drivers for it. In Windows Vista 64-bit this isn't the case. So if you are looking to install Windows Vista go 64-bit if you are keeping XP stay at 32-bit.
null
CC BY-SA 2.5
null
2008-08-20T14:08:18.413
2008-08-20T14:08:18.413
null
null
17
null
18,052
2
null
15,513
2
null
Download ANTS PROFILER, this will give you a perfect overview of the lines causing the slowdown. Also when it's about rendering make sure you don't use to much string concats (like string += "value") but use StringBuilders to improve performance.
null
CC BY-SA 2.5
null
2008-08-20T14:08:51.110
2008-08-20T14:08:51.110
null
null
2,104
null
18,048
2
null
18,035
8
null
Vista, as far as I know, has much better 64 bit support than XP. It is more well advertised than 64 bit XP, and more popular. Driver and software support should be much better for 64-bit Vista. The 64-bit switch is in progress right now in the computing industry. You might as well switch. Microsoft made the serious le...
null
CC BY-SA 2.5
null
2008-08-20T14:07:44.060
2008-08-20T14:07:44.060
null
null
392
null
18,055
2
null
18,034
0
null
Various tools exist that can generate SSLs. Try [OpenSSL](http://www.openssl.org/) for example. Alternatively, there's one in the [IIS 6 resource kit](http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en), if you're on Windows.
null
CC BY-SA 2.5
null
2008-08-20T14:09:15.930
2008-08-20T14:09:15.930
null
null
998
null
18,061
2
null
17,960
6
null
I'm guessing that the settings would have to be in powershell.exe.config in the powershell directory, but that seems to be a bad way of doing things. You can use ConfigurationManager.OpenMappedExeConfiguration to open a configuration file based on the executing DLL name, rather than the application exe, but this would...
null
CC BY-SA 2.5
null
2008-08-20T14:11:34.300
2008-08-20T14:11:34.300
null
null
1,908
null
18,060
2
null
18,035
1
null
This addressable RAM limit is not a problem for a regular user, but it is pretty critical on DB configuration, scientific computing, etc... Does it??? If you want to compile faster you can gain up to 20% compilation time compiling directly from a ramdisk partition. I went from 64 bit XP back to 32 bit due to 90% o...
null
CC BY-SA 2.5
null
2008-08-20T14:10:57.143
2008-08-20T14:10:57.143
null
null
446,497
null
18,059
1
1,493,026
null
3
1,627
I'm using the `System.Windows.Forms.WebBrowser`, to make a view a-la Visual Studio Start Page. However, it seems the control is catching and handling all exceptions by silently sinking them! No need to tell this is a very unfortunate behaviour. ``` void webBrowserNavigating(object sender, WebBrowserNavigatingEventArgs...
Prevent WebBrowser control from swallowing exceptions
CC BY-SA 3.0
null
2008-08-20T14:10:39.810
2020-07-24T20:28:21.057
2012-04-25T20:03:53.870
1,332,690
42
[ ".net", "winforms", "exception", "webbrowser-control" ]
18,072
2
null
17,056
4
null
FreeTextTable should work. ``` INNER JOIN FREETEXTTABLE(Person, (LastName, Firstname, MiddleName), @SearchString) ``` @SearchString should contain the values like 'Phillip Fry' (one long string containing all of the lookup strings separated by spaces). If you would like to search for Fr or Phil, you should use aste...
null
CC BY-SA 2.5
null
2008-08-20T14:14:24.170
2008-08-20T14:14:24.170
null
null
968
null
18,069
2
null
18,035
2
null
64-bit won't be mainstream before most programs are availiable in 64 bit versions. And who make programs? [Developers, developers, developers](http://www.youtube.com/watch?v=8To-6VIJZRE)! See my point? If developers don't make the shift, how is 64-bit programs going to be mainstream? Other than that, there is of cour...
null
CC BY-SA 2.5
null
2008-08-20T14:13:51.707
2008-08-20T14:13:51.707
null
null
1,542
null
18,064
2
null
18,035
1
null
Vista x64 has been a very pleasant experience for me. There are a couple of edge cases, but most software and drivers work fine with it at this point. The biggest practical reason I see to use it is that you can load up on RAM (say 6GB or more) and then dedicate lots of it to virtual machines and other apps that requir...
null
CC BY-SA 2.5
null
2008-08-20T14:11:41.710
2008-08-20T14:11:41.710
null
null
1,436
null
18,056
2
null
17,948
2
null
There are a number of way to do it. A NAnt build script will do it, but I think the most commonly accepted method now is to use MSBuild. See [MSDN](http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx) for details.
null
CC BY-SA 3.0
null
2008-08-20T14:09:52.497
2014-12-13T07:50:28.137
2014-12-13T07:50:28.137
1,810,429
361
null