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
11,318
1
11,404
null
24
28,281
Imagine you want to animate some object on a WinForm. You setup a timer to update the state or model, and override the paint event of the Form. But from there, what's the best way to continually repaint the Form for the animation? - - - - Each time I need to do this I discover a new method with a new drawback. What ...
Simple animation in WinForms
CC BY-SA 2.5
0
2008-08-14T16:44:42.060
2021-04-21T23:24:11.210
null
null
322
[ ".net", "winforms", "animation" ]
11,301
2
null
11,288
1
null
"Brute force" method you mention is actually ideal solution. Mind you, all objects are in RAM, there is no I/O bottleneck, so you can pretty much sort and filter millions of objects in less than a second on any modern computer. The most elegant way to work with collections is System.Linq namespace in .NET 3.5 > Thank...
null
CC BY-SA 2.5
null
2008-08-14T16:38:03.430
2008-08-14T22:20:22.180
2008-08-14T22:20:22.180
275
275
null
11,317
2
null
1,644
8
null
Besides Stack Overflow of course, here are mine. - [Hanselminutes](http://www.hanselminutes.com/hanselminutes_mp3Direct.xml)- [.NET Rocks!](http://feeds.feedburner.com/netRocksFullMp3Downloads)- [RunAs Radio](http://feeds.feedburner.com/RunasRadio) I can't believe the size of some of these lists. With podcasts, I lik...
null
CC BY-SA 2.5
null
2008-08-14T16:43:53.043
2009-09-14T09:21:53.790
2009-09-14T09:21:53.790
63,550
1,336
null
11,305
1
11,325
null
85
403,159
I work in VBA, and want to parse a string eg ``` <PointN xsi:type='typens:PointN' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema'> <X>24.365</X> <Y>78.63</Y> </PointN> ``` and get the X & Y values into two separate integer variables. I'm a newbie when it...
How to parse XML using vba
CC BY-SA 3.0
0
2008-08-14T16:41:25.903
2020-07-28T08:57:17.637
2019-05-27T00:52:45.690
1,011,722
895
[ "xml", "vba", "parsing", "xml-parsing" ]
11,321
2
null
10,872
3
null
My advice would be that you don't push your friend too hard. If you're going to suggest they take up programming, only mention it casually. Suggesting recreational computer programming to someone "unenlightened" could be taken about the same way as suggesting they do some recreational mathematics, or stamp collecting...
null
CC BY-SA 2.5
null
2008-08-14T16:45:34.227
2008-08-14T16:45:34.227
null
null
1,347
null
11,323
2
null
11,311
19
null
That's not possible with a WinForms label as it is. The label has to have exactly one font, with exactly one size and one face. You have a couple of options: 1. Use separate labels 2. Create a new Control-derived class that does its own drawing via GDI+ and use that instead of Label; this is probably your best option...
null
CC BY-SA 2.5
null
2008-08-14T16:45:50.810
2008-08-14T16:45:50.810
null
null
1,975,282
null
11,329
2
null
11,318
4
null
What you're doing is the only solution I've ever used in WinForms (a timer with constant redrawings). There are a bunch of techniques that you can use to make the user's experience with it smoother (such as double-buffering). You might want to give WPF a try. There are built-in facilities for doing animations in WPF, ...
null
CC BY-SA 2.5
null
2008-08-14T16:50:10.753
2008-08-14T16:50:10.753
null
null
1,975,282
null
11,312
2
null
11,291
14
null
Generally, the way you implement it is simply to add the required function to your view's controller, and set its delegate. For example, if you want code to run when the view loads, you just delegate your view to the controller, and implement the awakeFromNib function. So, to detect a key press in a text view, make su...
null
CC BY-SA 2.5
null
2008-08-14T16:43:05.883
2008-08-14T16:43:05.883
null
null
1,975,282
null
11,335
2
null
11,330
7
null
You'd probably need to redefine the function pointer to take additional arguments. ``` void foreachMove( void (*action)(chess_move*, int), chess_game* game ) ```
null
CC BY-SA 2.5
null
2008-08-14T16:58:47.600
2008-08-14T16:58:47.600
null
null
390
null
11,320
2
null
11,311
1
null
I Would also be interested in finding out if it is possible. When we couldn't find a solution we resorted to Component Ones 'SuperLabel' control which allows HTML markup in a label.
null
CC BY-SA 2.5
null
2008-08-14T16:45:14.430
2008-08-14T16:45:14.430
null
null
770
null
11,330
1
null
null
9
15,217
Let's say I'm creating a chess program. I have a function ``` void foreachMove( void (*action)(chess_move*), chess_game* game); ``` which will call the function pointer action on each valid move. This is all well and good, but what if I need to pass more parameters to the action function? For example: ``` chess_mov...
Passing more parameters in C function pointers
CC BY-SA 2.5
null
2008-08-14T16:51:07.180
2016-11-24T22:22:23.523
2008-09-09T21:13:55.510
-1
432
[ "c", "architecture", "pointers" ]
11,342
2
null
11,311
17
null
Not really, but you could fake it with a read-only RichTextBox without borders. RichTextBox supports Rich Text Format (rtf).
null
CC BY-SA 2.5
null
2008-08-14T17:07:39.970
2008-08-14T17:07:39.970
null
null
631
null
11,338
1
null
null
12
14,502
I'm working on building an app to scan directly from TWAIN scanner to a Java applet. I'm already aware of [Morena](http://www.gnome.sk/Twain/jtp.html) and [JTwain](http://asprise.com/product/jtwain/), but they cost money. I need free. I could re-invent the wheel with JNI, but it seems like someone has probably already ...
Getting Java and TWAIN to play together nicely
CC BY-SA 2.5
0
2008-08-14T17:04:25.310
2018-08-01T15:59:48.440
2011-05-15T12:59:22.657
21,234
1,318
[ "java", "java-native-interface", "twain", "image-scanner" ]
11,341
1
13,431
null
2
809
I would like to automatically generate PDF documents from [WebObjects](https://en.wikipedia.org/wiki/WebObjects) based on mulitpage forms. Assuming I have a class which can assemble the related forms (java/wod files) is there a good way to then parse the individual forms into a PDF instead of going to the screen?
Create PDFs from multipage forms in WebObjects
CC BY-SA 4.0
null
2008-08-14T17:06:46.493
2018-08-08T13:56:34.303
2018-08-08T13:56:34.303
770,254
1,104
[ "java", "pdf", "webobjects" ]
11,343
2
null
10,872
0
null
You could tell him how into programmers girls are.. you know, lie.
null
CC BY-SA 2.5
null
2008-08-14T17:08:44.693
2008-08-14T17:08:44.693
null
null
1,104
null
11,340
2
null
34
34
null
I don't think you have anything to worry about. If `System.totalMemory` goes down you can relax. It may very well be the OS that doesn't reclaim the newly freed memory (in anticipation of the next time Flash Player will ask for more memory). Try doing something else that is very memory intensive and I'm sure that you'...
null
CC BY-SA 4.0
null
2008-08-14T17:05:34.857
2018-05-30T15:54:44.000
2018-05-30T15:54:44.000
5,321,363
1,109
null
11,334
2
null
11,279
0
null
It's a maximum of 65535 for each of the 4 values, but when using 1.0.* or 1.0.*.*, the Assembly Linker will use a coded timestamp (so it's not a simple auto-increment, and it can repeat!) that will fit 65535. See my answer to [this question](https://stackoverflow.com/questions/650/automatically-update-version-number#6...
null
CC BY-SA 2.5
null
2008-08-14T16:57:12.907
2008-08-14T16:57:12.907
2017-05-23T10:32:51.507
-1
91
null
11,339
2
null
10,872
1
null
I'll follow up on Carl Russmann's comments by suggesting that you shouldn't push too hard on your friend. Most readers of this site find programming to be interesting and fun, but we are really weird. For most people, learning programming would be very hard work, with little short-term benefit. Most people have n...
null
CC BY-SA 2.5
null
2008-08-14T17:04:36.823
2009-11-06T17:49:35.397
2009-11-06T17:49:35.397
1,175
1,175
null
11,311
1
11,323
null
23
53,183
Is it possible to format certain text in a WinForm Label instead of breaking the text into multiple labels? Please disregard the HTML tags within the label's text; it's only used to get my point out. For example: ``` Dim myLabel As New Label myLabel.Text = "This is <b>bold</b> text. This is <i>italicized</i> text."...
Formatting text in WinForm Label
CC BY-SA 2.5
0
2008-08-14T16:43:03.903
2018-08-04T23:56:52.157
2008-08-14T16:52:59.093
299
299
[ "winforms", "text", "formatting", "label" ]
11,347
2
null
4,689
14
null
[ProFont](http://www.tobias-jung.de/seekingprofont/). Am I the only one still using it?
null
CC BY-SA 2.5
null
2008-08-14T17:10:59.370
2008-08-14T17:10:59.370
null
null
1,347
null
11,345
1
149,088
null
17
10,749
What is the story behind XPath and support for namespaces? Did XPath as a specification precede namespaces? If I have a document where elements have been given a default namespace: ``` <foo xmlns="uri" /> ``` It appears as though some of the XPath processor libraries won't recognize `//foo` because of the namespac...
XPATHS and Default Namespaces
CC BY-SA 3.0
0
2008-08-14T17:09:43.867
2020-07-01T18:05:32.580
2011-12-20T18:58:39.020
592,746
64
[ "c#", "xml", "xpath", "namespaces" ]
11,352
2
null
2,840
13
null
If you're trying to get it in one statement (the total plus the paging). You might need to explore SQL Server support for the partition by clause (windowing functions in ANSI SQL terms). In Oracle the syntax is just like the example above using row_number(), but I have also added a partition by clause to get the tota...
null
CC BY-SA 3.0
null
2008-08-14T17:15:31.997
2018-02-22T17:01:24.063
2018-02-22T17:01:24.063
305,953
700
null
11,325
2
null
11,305
58
null
This is a bit of a complicated question, but it seems like the most direct route would be to load the XML document or XML string via MSXML2.DOMDocument which will then allow you to access the XML nodes. You can find more on MSXML2.DOMDocument at the following sites: - [Manipulating XML files with Excel VBA & Xpath](h...
null
CC BY-SA 3.0
null
2008-08-14T16:47:07.437
2017-07-28T13:27:02.517
2017-07-28T13:27:02.517
1,185
1,185
null
11,373
2
null
10,499
1
null
Shouldn't it always be "$ORACLE_ HOME/network/admin/tnsnames.ora"? Then you can just do "echo $oracle_ home" or the *nix equivalent. @Pete Holberton You are entirely correct. Which reminds me, there's another monkey wrench in the works called TWO_ TASK According [http://www.orafaq.com/wiki/TNS_ADMIN](http://www.orafa...
null
CC BY-SA 2.5
null
2008-08-14T17:23:45.723
2008-08-28T20:04:29.223
2008-08-28T20:04:29.223
685
685
null
11,370
2
null
11,345
0
null
If you are trying to use xslt you can add the namespace in to the stylesheet declaration. If you do that, you must make sure that there is a prefix or it will not work. If the source XML does not have a prefix, that is still fine, you add your own prefix in the stylesheet. ``` <xsl:stylesheet xmlns:fb="uri" ...
null
CC BY-SA 3.0
null
2008-08-14T17:22:27.943
2015-04-13T14:49:30.577
2015-04-13T14:49:30.577
52,070
312
null
11,359
1
92,557
null
8
18,161
I'm looking for some software to monitor a single server for performance alerts. Preferably free and with a reasonable default configuration. Edit: To clarify, I would like to run this software on a Windows machine and monitor a remote Windows server for CPU/memory/etc. usage alerts (not a single application). Edit: ...
What is good server performance monitoring software for Windows?
CC BY-SA 2.5
0
2008-08-14T17:17:30.013
2020-07-08T08:08:10.720
2009-03-12T19:07:00.417
327
327
[ "windows", "performance", "sysadmin" ]
11,363
2
null
11,330
13
null
Ah, if only C supported closures... Antonio is right; if you need to pass extra parameters, you'll need to redefine your function pointer to accept the additional arguments. If you don't know exactly what parameters you'll need, then you have at least three choices: 1. Have the last argument in your prototype be a v...
null
CC BY-SA 2.5
null
2008-08-14T17:19:28.183
2008-08-14T17:19:28.183
null
null
null
null
11,379
2
null
11,330
2
null
If I'm reading this right, what I'd suggest is to make your function take a pointer to a struct as an argument. Then, your struct can have "game" and "depth" when it needs them, and just leave them set to 0 or Null when you don't need them. What is going on in that function? Do you have a conditional that says, ```...
null
CC BY-SA 3.0
null
2008-08-14T17:24:57.423
2016-11-24T22:22:23.523
2016-11-24T22:22:23.523
4,332,828
1,179
null
11,399
2
null
11,341
1
null
I'm not familiar with WebObjects, but I see you have java listed in there. [iText](http://www.lowagie.com/iText/) is a java api for building pdfs. If you can access a java api from WebObjects you should be able to build pdfs that way.
null
CC BY-SA 2.5
null
2008-08-14T17:37:17.040
2008-08-14T17:37:17.040
null
null
1,310
null
11,381
1
11,413
null
5
2,057
Here's a coding problem for those that like this kind of thing. Let's see your implementations (in your language of choice, of course) of a function which returns a human readable String representation of a specified Integer. For example: - - - - Bonus points for particularly clever/elegant solutions! It might seem...
Making human readable representations of an Integer
CC BY-SA 2.5
null
2008-08-14T17:25:29.747
2012-05-04T10:21:57.570
2012-05-04T10:21:57.570
68,304
1,030
[ "algorithm", "numbers" ]
11,404
2
null
11,318
9
null
In some situations, it's faster and more convenient to not draw using the paint event, but getting the Graphics object from the control/form and painting "on" that. This may give some troubles with opacity/anti aliasing/text etc, but could be worth the trouble in terms of not having to repaint the whole shabang. Someth...
null
CC BY-SA 3.0
null
2008-08-14T17:39:43.307
2012-06-19T09:20:49.857
2012-06-19T09:20:49.857
1,192
1,192
null
11,410
2
null
11,028
-1
null
That syntax has its uses though ... there are times when you find you need to join two tables on more than one field
null
CC BY-SA 2.5
null
2008-08-14T17:46:36.303
2008-08-14T17:46:36.303
null
null
1,349
null
11,407
2
null
11,359
1
null
If you want something free, try Nagios. [http://www.nagios.org/](http://www.nagios.org/)
null
CC BY-SA 2.5
null
2008-08-14T17:40:31.713
2008-08-14T17:40:31.713
null
null
1,975,282
null
11,395
2
null
11,330
4
null
If you're willing to use some C++, you can use a "function object": ``` struct MoveHandler { chess_game *game; int depth; MoveHandler(chess_game *g, int d): game(g), depth(d) {} void operator () (chess_move*) { // now you can use the game and the depth } }; ``` and turn your `foreachMo...
null
CC BY-SA 2.5
null
2008-08-14T17:32:18.967
2008-08-14T17:32:18.967
null
null
112
null
11,406
2
null
11,305
81
null
Thanks for the pointers. I don't know, whether this is the best approach to the problem or not, but here is how I got it to work. I referenced the Microsoft XML, v2.6 dll in my VBA, and then the following code snippet, gives me the required values ``` Dim objXML As MSXML2.DOMDocument Set objXML = New MSXML2.DOMDoc...
null
CC BY-SA 4.0
null
2008-08-14T17:40:24.100
2020-07-28T08:31:28.893
2020-07-28T08:31:28.893
505,893
895
null
11,414
2
null
11,405
12
null
This changed in [gcc-3.4](http://gcc.gnu.org/gcc-3.4/changes.html#cplusplus). The C++ parser got much more strict in that release -- per the spec but still kinda annoying for people with legacy or multi-platform code bases.
null
CC BY-SA 2.5
null
2008-08-14T17:50:24.750
2008-08-14T17:55:52.463
2008-08-14T17:55:52.463
1,146
1,146
null
11,413
2
null
11,381
8
null
There was already a question about this: [Convert integers to written numbers](https://stackoverflow.com/questions/3213/c-convert-integers-into-written-numbers) The answer is for C#, but I think you can figure it out.
null
CC BY-SA 2.5
null
2008-08-14T17:49:35.190
2008-08-14T17:49:35.190
2017-05-23T12:33:26.220
-1
810
null
11,402
2
null
8,685
0
null
After a moment of inspiration, the solution to my question became apparent to me (I was riding my bike). The '$now' part of ``` strtottime( string $time {,int $now ]) ``` needs to be set as the current date. Not "$time()-now", but "the current date I'm concerned with / I'm looking at my log for. ie: if I'm look...
null
CC BY-SA 3.0
null
2008-08-14T17:37:54.790
2016-02-07T18:17:54.020
2016-02-07T18:17:54.020
2,921,691
1,149
null
11,412
2
null
9,750
3
null
> I'm probably misremembering, but I thought that Joel's question was about counting the "on" bits rather than reversing them. Here you go: ``` #include <stdio.h> int countBits(unsigned char byte); int main(){ FILE* out = fopen( "bitcount.c" ,"w"); int i; fprintf(out, "#include <stdio.h>\n#include <std...
null
CC BY-SA 2.5
null
2008-08-14T17:48:17.627
2008-08-14T17:48:17.627
null
null
432
null
11,418
2
null
11,359
0
null
MS's solutions used to be called MOM. It looks like it's been [redesigned a bit](http://www.microsoft.com/systemcenter/operationsmanager/en/us/default.aspx) since I last used it.
null
CC BY-SA 4.0
null
2008-08-14T17:58:45.203
2020-07-08T08:08:10.720
2020-07-08T08:08:10.720
10,325,630
225
null
11,419
2
null
2,688
0
null
the MySQL C API has it's own `mysql_escape_string()`. Using it or it's equivalent would be best.
null
CC BY-SA 3.0
null
2008-08-14T17:59:02.597
2014-01-21T06:32:58.633
2014-01-21T06:32:58.633
1,931,841
1,343
null
11,423
1
11,428
null
13
4,617
I'm looking for any resources on hosting a WPF form within an existing MFC application. Can anyone point me in the right direction on how to do this?
How to host a WPF form in a MFC application
CC BY-SA 3.0
0
2008-08-14T18:04:45.237
2018-07-25T20:40:02.203
2014-12-09T14:12:32.860
2,641,576
1,356
[ "c#", "wpf", "mfc" ]
11,417
2
null
11,381
3
null
``` import math def encodeOnesDigit(num): return ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'][num] def encodeTensDigit(num): return ['twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'][num-2] def encodeTeens(num): if num < 10: return encodeOnes...
null
CC BY-SA 2.5
null
2008-08-14T17:58:24.627
2008-08-14T18:11:33.757
2008-08-14T18:11:33.757
null
null
null
11,430
1
11,436
null
6
2,702
Does SQL Server 2008 ship with the .NET 3.5 CLR, so that stored procedures written in CLR can use 3.5 features?
What version of .Net framework ships with SQL Server 2008?
CC BY-SA 3.0
null
2008-08-14T18:08:00.567
2014-11-25T16:48:37.190
2014-11-25T16:48:37.190
2,641,576
1,194
[ "sql-server", "sql-server-2008" ]
11,436
2
null
11,430
10
null
Actually it ships with .NET 3.5 SP1. So yes, the stored procs can use 3.5 features and libraries.
null
CC BY-SA 2.5
null
2008-08-14T18:09:59.627
2008-08-14T18:09:59.627
null
null
1,341
null
11,421
2
null
11,275
2
null
You need to create your own exchange message sink to do this. Here's a classic VB example from MS KB: [http://support.microsoft.com/kb/317327](http://support.microsoft.com/kb/317327) and a VB Script one: [http://support.microsoft.com/kb/317680](http://support.microsoft.com/kb/317680) And lots of goodness from MSDN ...
null
CC BY-SA 2.5
null
2008-08-14T17:59:49.753
2008-08-14T18:21:15.763
2008-08-14T18:21:15.763
419
419
null
11,428
2
null
11,423
5
null
From what I understand (haven't tried myself), it's almost as simple as just giving the WPF control the parent's handle. Here's a [Walkthrough: Hosting WPF Content in Win32](https://learn.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-wpf-content-in-win32).
null
CC BY-SA 4.0
null
2008-08-14T18:06:36.700
2018-07-25T20:40:02.203
2018-07-25T20:40:02.203
1,889,329
1,975,282
null
11,439
1
11,447
null
6
17,822
I have created a custom dialog for Visual Studio Setup Project using the steps described [here](http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx?fid=419622&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2640482&fr=26) Now I have a combobox in one of my dialogs. I want to populate the combobox with...
Visual Studio Setup Project Custom Dialog
CC BY-SA 3.0
0
2008-08-14T18:11:31.400
2013-07-05T08:58:03.743
2013-07-05T08:58:03.743
1,584,286
1,360
[ ".net", "visual-studio", "windows-installer", "installation", "projects" ]
11,443
2
null
11,060
5
null
Recall that "unit testing" is only one kind of testing. You should be able to unit test the pieces of your code generator. What you're really looking at here is system level testing (a.k.a. regression testing). It's not just semantics... there are different mindsets, approaches, expectations, etc. It's certainly m...
null
CC BY-SA 2.5
null
2008-08-14T18:15:42.733
2008-08-14T18:15:42.733
null
null
825
null
11,442
2
null
11,330
1
null
I'd suggest using an array of void*, with the last entry always void. say you need 3 parameters you could do this: ``` void MoveHandler (void** DataArray) { // data1 is always chess_move chess_move data1 = DataArray[0]? (*(chess_move*)DataArray[0]) : NULL; // data2 is always float float data1 = DataAr...
null
CC BY-SA 2.5
null
2008-08-14T18:15:26.447
2008-08-14T18:15:26.447
null
null
1,084
null
11,415
2
null
11,381
1
null
Supports up to 999 million, but no negative numbers: ``` String humanReadable(int inputNumber) { if (inputNumber == -1) { return ""; } int remainder; int quotient; quotient = inputNumber / 1000000; remainder = inputNumber % 1000000; if (quotient > 0) { return humanReadable(quotient) + " million, ...
null
CC BY-SA 2.5
null
2008-08-14T17:51:24.407
2008-08-14T17:55:35.240
2008-08-14T17:55:35.240
75
75
null
11,452
2
null
2,630
1
null
Well it is a little bland, but I would vote for Get-Help.
null
CC BY-SA 2.5
null
2008-08-14T18:20:02.210
2008-08-14T18:20:02.210
null
null
1,358
null
11,447
2
null
11,439
13
null
I've always found the custom dialogs in visual studio setup projects to be woefully limited and barely functional. By contrast, I normally create custom actions that display winforms gui's for any remotely difficult tasks during setup. Works really well and you can do just about anything you want by creating a custom...
null
CC BY-SA 2.5
null
2008-08-14T18:17:36.613
2008-08-14T18:17:36.613
null
null
1,297
null
11,425
2
null
11,405
19
null
Wow. C++ never ceases to surprise me with its weirdness. > In a template definition, unqualified names will no longer find members of a dependent base (as specified by [temp.dep]/3 in the C++ standard). For example, ``` template <typename T> struct B { int m; int n; int f (); int g (); }; int n; int g (); te...
null
CC BY-SA 2.5
null
2008-08-14T18:05:09.510
2008-08-14T18:05:09.510
null
null
872
null
11,435
2
null
11,405
34
null
David Joyner had the history, here is the reason. The problem when compiling `B<T>` is that its base class `A<T>` is unknown from the compiler, being a template class, so no way for the compiler to know any members from the base class. Earlier versions did some inference by actually parsing the base template class, b...
null
CC BY-SA 3.0
null
2008-08-14T18:09:55.413
2015-12-15T20:14:47.277
2015-12-15T20:14:47.277
1,277,769
268
null
11,467
2
null
10,599
0
null
Looks like there's a great video about the ASP.NET AJAX Control Toolkit provides the MaskedEdit control and the MaskedEditValidator control that works great. Not easy for beginners but VERY good and instant feedback. Thanks for all the answers though! [asp.net](http://www.asp.net/learn/ajax-videos/video-131.aspx) ....
null
CC BY-SA 2.5
null
2008-08-14T18:33:33.213
2009-01-06T13:29:28.403
2009-01-06T13:29:28.403
730
730
null
11,453
2
null
11,199
0
null
I did some programming in .NET (using C#) and I realized that often times I craved more control over a number of the Controls. These required knowledge that extended beyond the .NET framework. For example when I was working with the WebBrowser control to produce an automated testing tool for web applications, I reali...
null
CC BY-SA 2.5
null
2008-08-14T18:20:57.187
2008-08-14T18:20:57.187
null
null
669
null
11,460
1
11,472
null
3
1,779
Let me try to explain what I need. I have a server that is visible from the internet. What I need is to create a ASP.NET application that get the request of a web Site and send to a internal server, then it gets the response and publish the the info. For the client this should be totally transparent. For different rea...
ASP.NET Proxy Application
CC BY-SA 2.5
null
2008-08-14T18:28:42.990
2020-07-02T08:05:35.980
2009-06-25T23:27:17.970
5,640
1,154
[ ".net", "asp.net", "iis" ]
11,462
1
4,500,707
null
22
20,211
Ok, I've seen a few posts that a few other posts about not using SP wikis because they suck. Since we are looking at doing our wiki SP, I need to know why we shouldn't do it for a group of 6 automation-developers to document the steps in various automated processes and the changes that have to be made from time to t...
Sharepoint Wikis
CC BY-SA 3.0
0
2008-08-14T18:30:01.160
2014-12-09T14:01:56.880
2014-12-09T14:01:56.880
2,641,576
730
[ "sharepoint", "automation", "sharepoint-wiki" ]
11,444
2
null
11,381
1
null
``` using System; namespace HumanReadable { public static class HumanReadableExt { private static readonly string[] _digits = { "", "one", "two", "three", "four", "five", "six", "seven", "eight...
null
CC BY-SA 2.5
null
2008-08-14T18:17:02.433
2008-08-14T18:17:02.433
null
null
414
null
11,472
2
null
11,460
3
null
Why won't any old proxy software work for this? Why does it need to be an ASP.NET application? There are TONS of tools out there (both Windows and *nix) that will get the job done quite easily. Check [Squid](http://www.squid-cache.org/) or [NetProxy](https://web.archive.org/web/20090601113940/http://www.grok.co.uk:8...
null
CC BY-SA 4.0
null
2008-08-14T18:38:24.513
2020-07-02T08:05:35.980
2020-07-02T08:05:35.980
726,179
72
null
11,471
2
null
11,288
1
null
I'm not yet very familiar with WPF but I see this as a question about sorting and filtering `List<T>` collections. > (withing having to manually implement sort or filter) Would you reconsider implementing your own sort or filter functions? In my experience it is easy to use. The examples below use an anonymous dele...
null
CC BY-SA 2.5
null
2008-08-14T18:37:22.613
2008-08-14T18:37:22.613
null
null
1,254
null
11,405
1
11,414
null
37
8,008
The following code doesn't compile with gcc, but does with Visual Studio: ``` template <typename T> class A { public: T foo; }; template <typename T> class B: public A <T> { public: void bar() { cout << foo << endl; } }; ``` I get the error: > test.cpp: In member function ‘void B::bar()’:test.cpp:11: error: ‘...
GCC issue: using a member of a base class that depends on a template argument
CC BY-SA 3.0
0
2008-08-14T17:39:46.520
2017-03-18T19:06:13.300
2020-06-20T09:12:55.060
-1
112
[ "c++", "templates", "base-class", "class-members", "name-lookup" ]
11,475
2
null
11,330
0
null
+1 to Antonio. You need to change your function pointer declaration to accept additional parameters. Also, please don't start passing around void pointers or (especially) arrays of void pointers. That's just asking for trouble. If you start passing void pointers, you're going to also have to pass some kind of messa...
null
CC BY-SA 2.5
null
2008-08-14T18:39:46.617
2008-08-14T18:39:46.617
null
null
872
null
11,491
1
11,502
null
27
27,898
What is the best way people have found to do String to Lower case / Upper case in C++? The issue is complicated by the fact that C++ isn't an English only programming language. Is there a good multilingual method?
String To Lower/Upper in C++
CC BY-SA 2.5
0
2008-08-14T18:49:47.703
2021-01-26T19:49:36.873
2014-04-14T17:47:47.870
3,204,551
1,366
[ "c++", "string", "unicode" ]
11,497
2
null
11,199
1
null
I think if you were able to do something like staticly link the .NET framework so you didn't have to develop it then you would be in breach of the EULA that microsoft supplies! It's the price we have to pay for having such a rich developer experience! It's worth it when you consider the difficulty of going back to MFC...
null
CC BY-SA 2.5
null
2008-08-14T18:52:03.097
2008-08-14T18:52:03.097
null
null
942
null
11,351
2
null
11,345
15
null
You need local-name(): [http://www.w3.org/TR/xpath#function-local-name](http://www.w3.org/TR/xpath#function-local-name) To crib from [http://web.archive.org/web/20100810142303/http://jcooney.net:80/archive/2005/08/09/6517.aspx](http://web.archive.org/web/20100810142303/http://jcooney.net:80/archive/2005/08/09/6517.aspx...
null
CC BY-SA 4.0
null
2008-08-14T17:15:17.927
2020-07-01T18:05:32.580
2020-07-01T18:05:32.580
9,780,149
414
null
11,492
2
null
11,199
0
null
> I guess what I'm trying to say is that when I look at system requirements for certain software I rarely ever see the .NET Framework as being a requirement. So, I always wonder how they get by without it being a requirement (if they developed the software in .NET). So, I just assume that most commercial ...
null
CC BY-SA 2.5
null
2008-08-14T18:49:56.813
2008-08-14T21:56:46.500
2008-08-14T21:56:46.500
1,254
1,254
null
11,506
2
null
11,500
0
null
You could turn on compression based on your client supporting it. See this article: [link text](http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d52ff289-94d3-4085-bc4e-24eb4f312e0e.mspx?mfr=true)
null
CC BY-SA 2.5
null
2008-08-14T18:55:21.343
2008-08-14T18:55:21.343
null
null
942
null
11,507
2
null
11,500
0
null
Static resources shouldn't be resent unless changed. IIS will send a response code which tells the browser to use the cached version.
null
CC BY-SA 2.5
null
2008-08-14T18:55:58.050
2008-08-14T18:55:58.050
null
null
383
null
11,502
2
null
11,491
32
null
``` #include <algorithm> std::string data = "Abc"; std::transform(data.begin(), data.end(), data.begin(), ::toupper); ``` [http://notfaq.wordpress.com/2007/08/04/cc-convert-string-to-upperlower-case/](http://notfaq.wordpress.com/2007/08/04/cc-convert-string-to-upperlower-case/) Also, CodeProject article for common s...
null
CC BY-SA 3.0
null
2008-08-14T18:53:43.530
2013-05-19T18:32:57.600
2013-05-19T18:32:57.600
77
77
null
11,474
2
null
10,599
1
null
I would recommend using drop-downs for dates, as indicated above. I can't really think of any reason not to--you want the user to choose from pre-defined data, not give you something unique that you can't anticipate. You can avoid February 30 with a little bit of Javascript (make the days field populate dynamically ba...
null
CC BY-SA 2.5
null
2008-08-14T18:39:28.490
2008-08-14T18:39:28.490
null
null
1,344
null
11,486
2
null
11,462
3
null
My company rolled out sharepoint recently, and I have to say my user experience was . And I'm not just saying I was apprehensive to using it: I went in with an open mind and tried it, and many things just felt like they didn't really work right. The reasons Luke mentioned more or less cover it. Why wouldn't you co...
null
CC BY-SA 2.5
null
2008-08-14T18:48:32.073
2008-08-14T20:48:48.650
2008-08-14T20:48:48.650
92
92
null
11,514
1
53,412
null
14
7,968
I switched to the dvorak keyboard layout about a year ago. I now use [dvorak](https://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard) full-time at work and at home. Recently, I went on vacation to Peru and found myself in quite a conundrum. Internet cafes were qwerty-only (and Spanish qwerty, at that). I was stuck wi...
Is it possible to be ambikeyboardrous?
CC BY-SA 4.0
0
2008-08-14T19:00:16.793
2021-04-01T06:37:15.060
2021-04-01T06:37:15.060
9,193,372
1,318
[ "keyboard", "dvorak", "qwerty" ]
11,478
2
null
11,462
14
null
The default wiki included with Sharepoint doesn't support common wiki features well at all. There is no way to edit a single section of a page, and no way to link directly to a particular section on another page. The backend is in HTML so you lose the ability to edit in plaintext using simple syntax. The diff featur...
null
CC BY-SA 2.5
null
2008-08-14T18:42:16.067
2008-08-14T18:55:42.887
2008-08-14T18:55:42.887
327
327
null
11,500
1
11,521
null
25
3,308
I have an Ajax.Net enabled ASP.Net 2.0 web site. Hosting for both the site and the database are out of my control as is the database's schema. In testing on hardware I do control the site performs well however on the client's hardware, there are noticeable delays when reloading or changing pages. What I would like to...
Speeding up an ASP.Net Web Site or Application
CC BY-SA 2.5
0
2008-08-14T18:52:54.017
2020-07-01T17:39:55.797
2008-08-18T06:37:25.127
380
149
[ "asp.net", "ajax", "optimization", "performance" ]
11,519
2
null
11,514
0
null
I would say no. I have used both, and they are different for very good reason (warning, history lesson) The Dvorak keyboard is optimal, the qwerty layout was designed so that the pegs on a typewrier would not collide (so letters that often come next to each other are split up) Because these are so different, its real...
null
CC BY-SA 2.5
null
2008-08-14T19:03:36.553
2008-08-14T19:03:36.553
null
null
673
null
11,517
2
null
11,514
-5
null
I've never used a public computer, but carry a keyboard and(/or, if you are good enough) just change the settings on the machine.
null
CC BY-SA 2.5
null
2008-08-14T19:01:20.380
2008-08-14T19:01:20.380
null
null
572
null
11,528
2
null
11,500
3
null
Turn viewstate off by default, it will be a night and day difference on even the most simple pages.
null
CC BY-SA 2.5
null
2008-08-14T19:06:44.753
2008-08-14T19:06:44.753
null
null
1,220
null
11,529
2
null
11,520
2
null
The other major player would be DevExpress and their CodeRush and Refactor products. [Found here.](http://www.devexpress.com/Products/Visual_Studio_Add-in/Refactoring/)
null
CC BY-SA 2.5
null
2008-08-14T19:06:54.020
2008-08-14T19:06:54.020
null
null
162
null
11,534
2
null
11,500
1
null
I think you really need to be able to get some actual PerfMon data/telemetry from the app whilst running in production to be able to make an enlightened decision about what to optimise. As a throw away tip I'd make sure your app is deployed as a build and set debug="false" in the '' section of your web.config.
null
CC BY-SA 2.5
null
2008-08-14T19:10:06.947
2008-08-14T19:10:06.947
null
null
419
null
11,527
2
null
10,926
2
null
Thanks for the answers guys. @Theo: I tried the replace several different ways. For some reason it would never error, but never update the list. @Matt: I figured out a solution. The issue wasn't coming from what you suggested, but from how the delete works with Lists (at least how I have it in this instance). The ...
null
CC BY-SA 3.0
null
2008-08-14T19:06:41.337
2012-08-11T15:51:46.920
2012-08-11T15:51:46.920
1,477,076
1,290
null
11,532
1
14,625
null
68
33,211
How can I find any unused functions in a PHP project? Are there features or APIs built into PHP that will allow me to analyse my codebase - for example [Reflection](http://ie.php.net/manual/en/language.oop5.reflection.php), [token_get_all()](http://php.net/manual/en/function.token-get-all.php)? Are these APIs feature...
How can I find unused functions in a PHP project
CC BY-SA 3.0
0
2008-08-14T19:08:21.503
2021-06-06T02:27:55.843
2017-07-24T02:37:23.387
322,819
1,142
[ "php" ]
11,520
1
11,529
null
3
1,959
My license for Whole Tomatoes Visual AssistX is about to expire and I'm not really planning on renewing it. I use it for spell checking but that's about it. The refactoring abilities have been a little disappointing. Before I just jump into Resharper though what are your thoughts on other possible plugins?
What are the list of Resharper like plugins for VS I should consider?
CC BY-SA 2.5
0
2008-08-14T19:03:53.590
2009-01-19T20:12:50.467
2008-08-25T12:17:44.923
123
1,327
[ ".net", "visual-studio" ]
11,541
2
null
11,460
1
null
I use apache mod_proxy and mod_proxy_balancer. Works awesome running 5 domains a cluster of 4 web boxes.
null
CC BY-SA 2.5
null
2008-08-14T19:12:55.987
2008-08-14T19:12:55.987
null
null
1,220
null
11,539
2
null
11,520
4
null
Aside from trying out Visual AssistX, the only other one I've tried is ReSharper (which I highly recommend). If you do decide to go for ReSharper, you'll likely notice that it's missing a spell checker for code though - however the [Agent Smith plugin](http://www.agentsmithplugin.com/) fixes that.
null
CC BY-SA 2.5
null
2008-08-14T19:11:33.837
2008-08-14T19:11:33.837
null
null
1,367
null
11,552
2
null
11,514
0
null
@Thomas Owens - the person in that cafe after you is going to be proper befuddled :-D I guess to be good on both you'd have to alternate all the time. I have enough trouble switching between my laptop and desktop keyboards :-)
null
CC BY-SA 2.5
null
2008-08-14T19:17:22.063
2008-08-14T19:28:23.197
2008-08-14T19:28:23.197
905
905
null
11,537
2
null
11,500
4
null
If you are using Firefox to test your website, you might want to try a nifty Firefox extension from Yahoo! called [YSlow](http://web.archive.org/web/20101208124338/https://addons.mozilla.org/en-US/firefox/addon/5369/). It analyzes your web pages and provides grades from A-F (A being the Best and F being the worst) for ...
null
CC BY-SA 4.0
null
2008-08-14T19:11:07.507
2020-07-01T17:39:55.797
2020-07-01T17:39:55.797
10,312,071
1,311
null
11,542
2
null
11,099
1
null
As others have mentioned, doing an if statement in two lines without braces can lead to confusion: ``` if (a == b) DoSomething(); DoSomethingElse(); <-- outside if statement ``` so I place it on a single line if I can do so without hurting readability: ``` if (a == b) DoSomething(); ``` and at all other t...
null
CC BY-SA 2.5
null
2008-08-14T19:14:11.790
2008-08-14T19:14:11.790
null
null
1,249
null
11,571
2
null
11,514
20
null
> I've never used a public computer, but carry a keyboard and(/or, if you are good enough) just change the settings on the machine. There's a special place in hell for people that change keyboard mappings on public computers.
null
CC BY-SA 2.5
null
2008-08-14T19:29:11.820
2008-08-14T19:29:11.820
null
null
35
null
11,521
2
null
11,500
22
null
1. Script Combining in .net 3.5 SP1 2. Best Practices for fast websites 3. HTTP Compression (gzip) 4. Compress JS / CSS (different than http compression, minify javascript) YUI Compressor .NET YUI Compressor My best advice is to check out the [YUI content](http://developer.yahoo.com/YUI). They have some great artic...
null
CC BY-SA 2.5
null
2008-08-14T19:03:58.720
2008-08-14T19:08:26.713
2008-08-14T19:08:26.713
77
77
null
11,573
2
null
11,462
6
null
For a group of 6 people that will be making "every now and then" edits, the built-in wiki will be fine.
null
CC BY-SA 2.5
null
2008-08-14T19:31:49.163
2008-08-14T19:31:49.163
null
null
35
null
11,567
2
null
11,561
1
null
As you already mentioned, those terms mean different things in different stacks - there is no one right generic answer for web services.
null
CC BY-SA 2.5
null
2008-08-14T19:26:35.570
2008-08-14T19:26:35.570
null
null
35
null
11,581
2
null
11,574
0
null
If the inner loop code is a reasonable length, I don't see any reason you can't post it. I think Stack Overflow is intended to encompass both general and specific questions.
null
CC BY-SA 2.5
null
2008-08-14T19:34:54.197
2008-12-27T15:56:40.447
null
null
872
null
11,570
2
null
11,500
1
null
You seem to be starting by assuming that your problem is download size - that may not necessarily be the case. You should do some experimentation with your ASP.NET site to determine if there are areas in your code which are causing undue delays. If it turns out that download size is not your problem, you'll need to fin...
null
CC BY-SA 2.5
null
2008-08-14T19:28:00.280
2008-08-14T19:28:00.280
null
null
1,194
null
11,557
2
null
11,099
3
null
Chalk this one to lack of experience, but during my seven-year stint as a code monkey I've actually seen anyone make the mistake of not adding braces when adding code to a block that doesn't have braces. That's precisely times. And before the wisecrackers get to it, no, the reason wasn't "everyone always uses brace...
null
CC BY-SA 2.5
null
2008-08-14T19:19:40.920
2008-08-14T19:19:40.920
null
null
266
null
11,586
1
11,617
null
29
3,597
What's the penetration of design patterns in the real world? Do you use them in your day to day job - discussing how and where to apply them with your coworkers - or do they remain more of an academic concept? Do they actually provide actual value to your job? Or are they just something that people talk about to soun...
Do you use design patterns?
CC BY-SA 2.5
0
2008-08-14T19:39:32.813
2021-05-28T10:34:00.423
2008-08-23T15:00:10.697
2,134
322
[ "language-agnostic", "design-patterns" ]
11,585
1
11,641
null
52
105,292
For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around 10 minutes, and thats fine... ``` <%@OutputCache Duration="600" VaryByParam="*" %> ``` However, if someone posts a comment, I want to clear the cache so that the page is refreshed and the comment can be seen. H...
Clearing Page Cache in ASP.NET
CC BY-SA 2.5
0
2008-08-14T19:39:32.033
2012-11-02T09:38:05.570
2010-06-01T05:55:58.433
30,674
383
[ "c#", "asp.net", "outputcache" ]
11,561
1
11,619
null
24
44,331
I've used Apache CXF to expose about ten java classes as web services. I've generated clients using CXF, Axis, and .NET. In Axis and CXF a "Service" or "Locator" is generated. From this service you can get a "Port". The "Port" is used to make individual calls to the methods exposed by the web service. In .NET the "...
What is the difference between an endpoint, a service, and a port when working with webservices?
CC BY-SA 2.5
0
2008-08-14T19:23:54.547
2018-08-01T15:58:07.330
2013-10-08T08:24:23.197
391,445
1,310
[ "java", ".net", "web-services", "cxf", "axis" ]
11,574
1
230,204
null
7
1,540
I have an AppleScript program which creates XML tags and elements within an Adobe InDesign document. The data is in tables, and tagging each cell takes .5 seconds. The entire script takes several hours to complete. I can post the inner loop code, but I'm not sure if SO is supposed to be generic or specific. I'll let t...
How can I improve performance when adding InDesign XMLElements via AppleScript?
CC BY-SA 2.5
null
2008-08-14T19:32:03.190
2008-12-27T15:56:40.430
2008-10-23T19:48:14.600
1,019
1,019
[ "macos", "adobe", "applescript", "adobe-indesign" ]