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
2,460
2
null
2,432
1
null
@chopeen You could change the way you're calculating these statistics, and instead keep a separate table of all per-product stats.. when an order is placed, loop through the products and update the appropriate records in the stats table. This would shift a lot of the calculation load to the checkout page rather than r...
null
CC BY-SA 2.5
null
2008-08-05T15:19:18.363
2008-08-05T15:19:18.363
null
null
72
null
2,462
2
null
2,432
9
null
For SQL Server 2005, I'd recommend using table variables and partially building the data as you go. To do this, create a table variable that represents your final result set you want to send to the user. Then find your primary table (say the orders table in your example above) and pull that data, plus a bit of suppl...
null
CC BY-SA 2.5
null
2008-08-05T15:19:41.187
2008-08-05T15:19:41.187
null
null
71
null
2,472
1
2,477
null
16
2,019
What is the best way to record statistics on the number of visitors visiting my site that have set their browser to block ads?
How can I tell if a web client is blocking advertisements?
CC BY-SA 3.0
null
2008-08-05T15:30:42.617
2016-12-01T21:56:36.013
2015-05-08T19:02:16.227
1,043,380
116
[ "browser", "analytics" ]
2,476
2
null
2,472
3
null
I suppose you could compare the ad prints with the page views on your website (which you can get from your analytics software).
null
CC BY-SA 2.5
null
2008-08-05T15:32:21.660
2008-08-05T15:32:21.660
null
null
380
null
2,452
2
null
48
-4
null
Using the example you gave: ``` <form> <input type="text" name="field1" /><!-- Put your cursor in this field and press Enter --> <input type="submit" name="prev" value="Previous Page" /> <!-- This is the button that will submit --> <input type="submit" name="next" value="Next Page" /> <!-- But this is the ...
null
CC BY-SA 4.0
null
2008-08-05T15:08:42.037
2019-07-14T14:32:56.737
2019-07-14T14:32:56.737
63,550
383
null
2,477
2
null
2,472
11
null
Since programs like AdBlock actually never request the advert, you would have to look the server logs to see if the same user accessed a webpage but didn't access an advert. This is assuming the advert is on the same server. If your adverts are on a separate server, then I would suggest it's impossible to do so. The ...
null
CC BY-SA 2.5
null
2008-08-05T15:34:18.583
2008-08-05T15:34:18.583
null
null
383
null
2,478
2
null
2,472
10
null
Add the user id to the request for the ad: ``` <img src="./ads/viagra.jpg?{user.id}"/> ``` that way you can check what ads are seen by which users.
null
CC BY-SA 2.5
null
2008-08-05T15:37:34.520
2008-08-05T15:37:34.520
null
null
309,844
null
2,482
1
2,513
null
36
10,896
With the rise of multicore CPUs on the desktop, multithreading skills will become a valuable asset for programmers. Can you recommend some good resources (books, tutorials, websites, etc.) for a programmer who is looking to learn about threaded programming?
What are some good resources for learning threaded programming?
CC BY-SA 2.5
0
2008-08-05T15:42:09.847
2016-03-11T21:05:19.810
2009-09-05T17:29:51.773
311
311
[ "multithreading", "language-agnostic", "concurrency" ]
2,479
2
null
2,472
4
null
You need to think about the different ways that ads are blocked. The first thing to look at is whether they are running noscript, so you could add a script that would check for that. The next thing is to see if they are blocking flash, a small movie should do that. If you look at the adblock site, there is some indi...
null
CC BY-SA 3.0
null
2008-08-05T15:37:36.063
2013-01-27T12:28:53.513
2013-01-27T12:28:53.513
null
170
null
2,474
2
null
2,384
3
null
I don't see any problem with your code. just out of my head, what if you try to do it manually? does it work? ``` BinaryReader reader = new BinaryReader(stream); StructType o = new StructType(); o.FileDate = Encoding.ASCII.GetString(reader.ReadBytes(8)); o.FileTime = Encoding.ASCII.GetString(reader.ReadBytes(8)); ......
null
CC BY-SA 2.5
null
2008-08-05T15:31:43.330
2008-08-06T09:13:24.687
2008-08-06T09:13:24.687
275
275
null
2,481
1
2,511
null
11
1,426
I've been able to find details on several self-balancing `BST`s through several sources, but I haven't found any good descriptions detailing which one is best to use in different situations (or if it really doesn't matter). I want a `BST` that is optimal for storing in excess of ten million nodes. The order of inser...
Best self-balancing BST for quick insertion of a large number of nodes
CC BY-SA 3.0
0
2008-08-05T15:40:24.903
2015-04-15T15:28:09.133
2015-04-15T15:28:09.133
1,938,889
152
[ "data-structures", "language-agnostic", "binary-search-tree" ]
2,483
1
2,487
null
91
11,095
What is actually the difference between these two casts? ``` SomeClass sc = (SomeClass)SomeObject; SomeClass sc2 = SomeObject as SomeClass; ``` Normally, shouldn't they both be explicit casts to the specified type?
Casting: (NewType) vs. Object as NewType
CC BY-SA 4.0
0
2008-08-05T15:42:30.110
2020-07-05T21:46:58.927
2020-07-05T21:46:58.927
10,325,630
91
[ "c#", ".net" ]
2,486
1
2,514
null
24
2,440
Jeff mentioned the concept of 'Progressive Enhancement' when talking about using JQuery to write stackoverflow. After a quick Google, I found a couple of high-level discussions about it. Can anyone recommend a good place to start as a programmer. Specifically, I have been writing web apps in PHP and would like to us...
What is Progressive Enhancement?
CC BY-SA 2.5
0
2008-08-05T15:44:39.327
2021-10-25T12:01:05.873
2008-08-23T15:19:07.157
2,134
277
[ "ajax", "progressive-enhancement" ]
2,471
2
null
1,408
52
null
A VirtualHost would also work for this and may work better for you as you can host several projects without the need for subdirectories. Here's how you do it: httpd.conf (or extra\httpd-vhosts.conf relative to httpd.conf. Trailing slashes "\" might cause it not to work): ``` NameVirtualHost *:80 # ... <VirtualHost *...
null
CC BY-SA 2.5
null
2008-08-05T15:30:30.353
2008-08-05T18:06:20.883
2008-08-05T18:06:20.883
58
72
null
2,489
2
null
2,483
1
null
The parenthetical cast throws an exception if the cast attempt fails. The "as" cast returns null if the cast attempt fails.
null
CC BY-SA 2.5
null
2008-08-05T15:45:06.610
2008-08-05T15:45:06.610
null
null
null
null
2,491
2
null
2,482
6
null
I've honestly never read it myself, but [Concurrent Programming in Java](https://rads.stackoverflow.com/amzn/click/com/0201310090) is a book I've heard recommended by several people.
null
CC BY-SA 2.5
null
2008-08-05T15:47:15.997
2008-08-05T15:47:15.997
null
null
null
null
2,494
2
null
2,488
4
null
I believe [DB Designer](http://www.fabforce.net/dbdesigner4/) does something like that. And I think they even have a free version. Never mind. Michael's link is much better.
null
CC BY-SA 2.5
null
2008-08-05T15:48:10.163
2008-08-05T15:48:10.163
null
null
305
null
2,488
1
2,495
null
358
372,986
I'm tired of opening Dia and creating a database diagram at the beginning of every project. Is there a tool out there that will let me select specific tables and then create a database diagram for me based on a MySQL database? Preferably it would allow me to edit the diagram afterward since none of the foreign keys are...
Auto Generate Database Diagram MySQL
CC BY-SA 3.0
0
2008-08-05T15:45:02.930
2021-06-24T19:24:12.700
2012-04-01T10:30:48.577
1,219,121
58
[ "mysql", "database", "database-design", "diagram" ]
2,492
2
null
1,908
2
null
Alright. From a theoretical point of view, given that the distortion is "arbitrary", and any solution requires you to model this arbitrary distortion, you obviously can't get an "answer". However, any solution is going to involve imposing (usually implicitly) some model of the distortion that may or may not reflect the...
null
CC BY-SA 2.5
null
2008-08-05T15:47:51.830
2008-08-05T15:47:51.830
null
null
2,089,740
null
2,490
2
null
2,256
20
null
Most people use .NET serialization (there is faster binary and slower XML formatter, they both depend on reflection and are version tolerant to certain degree) However, if you want the fastest (unsafe) way - why not: Writing: ``` YourStruct o = new YourStruct(); byte[] buffer = new byte[Marshal.SizeOf(typeof(YourStr...
null
CC BY-SA 2.5
null
2008-08-05T15:46:35.157
2009-10-09T07:16:40.780
2009-10-09T07:16:40.780
275
275
null
2,487
2
null
2,483
88
null
The former will throw an exception if the source type can't be cast to the target type. The latter will result in sc2 being a null reference, but no exception. [Edit] My original answer is certainly the most pronounced difference, but as Eric Lippert [points out](http://blogs.msdn.com/ericlippert/archive/2009/10/08/w...
null
CC BY-SA 2.5
null
2008-08-05T15:44:46.330
2009-10-09T05:33:21.060
2009-10-09T05:33:21.060
266
266
null
2,495
2
null
2,488
436
null
Try MySQL Workbench, formerly DBDesigner 4: [http://dev.mysql.com/workbench/](http://dev.mysql.com/workbench/) This has a "Reverse Engineer Database" mode: Database -> Reverse Engineer [](https://i.stack.imgur.com/wcoq9.png)
null
CC BY-SA 4.0
null
2008-08-05T15:48:11.707
2018-06-25T07:53:11.660
2018-06-25T07:53:11.660
1,390,678
91
null
2,498
2
null
2,481
0
null
The two self-balancing `BST`s I'm most familiar with are red-black and `AVL`, so I can't say for certain if any other solutions are better, but as I recall, red-black has faster insertion and slower retrieval compared to `AVL`. So if insertion is a higher priority than retrieval, red-black may be a better solution.
null
CC BY-SA 3.0
null
2008-08-05T15:50:05.120
2013-02-07T14:40:26.280
2013-02-07T14:40:26.280
395,659
null
null
2,496
2
null
2,482
1
null
[http://www.cilk.com/multicore-e-book/](http://www.cilk.com/multicore-e-book/) That's a nice general overview of the sitution, if you're looking for tuorials and books it might be best to specify a language as a starting point so you can mess around with some code.
null
CC BY-SA 2.5
null
2008-08-05T15:48:57.413
2008-08-05T15:48:57.413
null
null
398
null
2,506
2
null
2,486
3
null
Going at it from the other direction is sometimes referred to as graceful degradation. This is usually needed when the site is built first with the enhanced functionality afforded by the various technologies then modified to degrade gracefully for browsers with those technologies are not available. It is also gracefu...
null
CC BY-SA 2.5
null
2008-08-05T15:57:00.113
2008-08-05T15:57:00.113
null
null
312
null
2,497
2
null
2,483
1
null
They'll throw different exceptions. () : NullReferenceException as : InvalidCastException Which could help for debugging. The "as" keyword attempts to cast the object and if the cast fails, null is returned. The () cast operator will throw an exception immediately if the cast fails. Only use the C# "as" keyword where...
null
CC BY-SA 4.0
null
2008-08-05T15:49:34.310
2020-07-05T17:12:35.597
2020-07-05T17:12:35.597
10,325,630
402
null
2,509
1
2,548
null
135
44,089
Test Driven Development has been the rage in the .NET community for the last few years. Recently, I have heard grumblings in the ALT.NET community about BDD. What is it? What makes it different from TDD?
What are the primary differences between TDD and BDD?
CC BY-SA 2.5
0
2008-08-05T15:58:08.473
2021-10-25T12:00:18.543
2012-04-30T09:01:31.963
null
303
[ "unit-testing", "tdd", "bdd" ]
2,500
2
null
2,486
14
null
As you've said > To me, that seems a bit overkill, since viewing the site without Javascript will probably break most of it. This isn't progressive enhancement. Progressive enhancement is when the site works perfectly without JavaScript or CSS, and adding (layering) these extra technologies/code to increase the usab...
null
CC BY-SA 3.0
null
2008-08-05T15:51:11.873
2012-10-23T13:47:40.910
2012-10-23T13:47:40.910
1,430,996
383
null
2,510
2
null
2,311
0
null
Small files take up a whole node on the file system whatever the size is. My host tends to report all small files as 4KB in ftp but gives an accurate size in a shell so it might be a 'feature' common to ftp clients.
null
CC BY-SA 4.0
null
2008-08-05T15:59:24.773
2020-07-11T07:06:47.050
2020-07-11T07:06:47.050
10,325,630
269
null
2,514
2
null
2,486
10
null
See also [Unobtrusive JavaScript](http://en.wikipedia.org/wiki/Unobtrusive_JavaScript) which is the bedrock progressive enhancement is built.
null
CC BY-SA 4.0
null
2008-08-05T16:05:29.020
2021-10-25T12:00:52.740
2021-10-25T12:00:52.740
17,169,050
269
null
2,517
2
null
2,488
0
null
The "Reverse Engineer Database" mode in Workbench is only part of the paid version, not the free one.
null
CC BY-SA 3.0
null
2008-08-05T16:08:40.620
2016-08-06T07:54:36.637
2016-08-06T07:54:36.637
1,832,942
200
null
2,515
2
null
2,509
2
null
Behaviour Driven Development seems to focus more on the interaction and communication between Developers and also between Developers and testers. The Wikipedia Article has an explanation: [Behavior-driven development](http://en.wikipedia.org/wiki/Behavior_Driven_Development) Not practicing BDD myself though.
null
CC BY-SA 3.0
null
2008-08-05T16:06:36.880
2013-01-27T12:29:27.313
2013-01-27T12:29:27.313
null
91
null
2,513
2
null
2,482
19
null
Take a look at Herb Sutter's "[The Free Lunch Is Over](http://www.gotw.ca/publications/concurrency-ddj.htm)" and then his series of articles on [Effective Concurrency](http://herbsutter.wordpress.com/2008/07/31/effective-concurrency-the-many-faces-of-deadlock/).
null
CC BY-SA 2.5
null
2008-08-05T16:02:41.660
2008-08-05T16:02:41.660
null
null
342
null
2,511
2
null
2,481
4
null
[Red-black](http://en.wikipedia.org/wiki/Red-black_tree) is better than AVL for insertion-heavy applications. If you foresee relatively uniform look-up, then Red-black is the way to go. If you foresee a relatively unbalanced look-up where more recently viewed elements are more likely to be viewed again, you want to use...
null
CC BY-SA 2.5
null
2008-08-05T15:59:27.563
2013-02-07T17:28:39.787
2013-02-07T17:28:39.787
237,838
2,089,740
null
2,520
2
null
2,509
2
null
It seems to me that BDD is a broader scope. It almost implies TDD is used, that BDD is the encompassing methodology that gathers the information and requirements for using, among other things, TDD practices to ensure rapid feedback.
null
CC BY-SA 4.0
null
2008-08-05T16:11:02.783
2021-10-25T11:59:58.357
2021-10-25T11:59:58.357
17,169,050
312
null
2,518
1
10,020
null
9
16,882
I have 2 SQLite databases, one downloaded from a server (`server.db`), and one used as storage on the client (`client.db`). I need to perform various sync queries on the client database, using data from the server database. For example, I want to delete all rows in the `client.db tRole` table, and repopulate with all ...
Using multiple SQLite databases at once
CC BY-SA 3.0
0
2008-08-05T16:09:12.570
2021-10-25T11:58:16.390
2016-09-25T02:11:33.183
null
26
[ "actionscript-3", "apache-flex", "sqlite", "air", "adobe" ]
2,522
2
null
2,483
27
null
Also note that you can only use the as keyword with a reference type or a nullable type ie: ``` double d = 5.34; int i = d as int; ``` will not compile ``` double d = 5.34; int i = (int)d; ``` will compile.
null
CC BY-SA 2.5
null
2008-08-05T16:15:38.437
2008-08-05T16:15:38.437
null
null
27
null
2,524
1
151,931
null
56
75,123
I get the following error pretty regularly when compiling in Visual Studio and running my web application: "Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server." Normally this is after having debug ...
Visual Studio "Unable to start debugging on the web server. The web server did not respond in a timely manner."
CC BY-SA 3.0
0
2008-08-05T16:18:18.853
2021-10-25T11:57:41.453
2015-12-16T11:12:22.233
1,657,610
417
[ "asp.net", "visual-studio", "visual-studio-2008", "debugging", "iis" ]
2,528
2
null
2,525
18
null
I have been using smartassembly. Basically, you pick a dll and it returns it obfuscated. It seems to work fine and I've had no problems so far. Very, very easy to use.
null
CC BY-SA 2.5
null
2008-08-05T16:21:56.223
2008-08-05T16:21:56.223
null
null
26
null
2,527
1
2,546
null
76
58,263
How can I find out which node in a tree list the context menu has been activated? For instance right-clicking a node and selecting an option from the menu. I can't use the TreeViews' `SelectedNode` property because the node is only been right-clicked and not selected.
Find node clicked under context menu
CC BY-SA 3.0
0
2008-08-05T16:21:14.120
2020-05-22T07:09:12.397
2017-03-23T11:41:45.517
469,708
428
[ "c#", "winforms", "treeview", "contextmenu" ]
2,530
1
2,531
null
3,175
1,361,485
How do you disable autocomplete in the major browsers for a specific input (or form field)?
How do you disable browser autocomplete on web form field / input tags?
CC BY-SA 4.0
0
2008-08-05T16:22:32.603
2023-02-20T22:18:45.893
2021-04-08T23:01:03.943
63,550
307
[ "html", "forms", "browser", "autocomplete" ]
2,523
2
null
1,669
11
null
[The Dragon Book](https://rads.stackoverflow.com/amzn/click/com/0321486811) is definitely the "building compilers" book, but if your language isn't quite as complicated as the current generation of languages, you may want to look at the Interpreter pattern from [Design Patterns](https://rads.stackoverflow.com/amzn/clic...
null
CC BY-SA 2.5
null
2008-08-05T16:16:01.150
2008-08-05T16:16:01.150
null
null
422
null
2,536
2
null
2,530
17
null
Use a non-standard name and id for the fields, so rather than "name" have "name_". Browsers will then not see it as being the name field. The best part about it is that you can do this to some, but not all, fields and it will autocomplete some, but not all fields.
null
CC BY-SA 4.0
null
2008-08-05T16:27:39.927
2021-04-08T23:02:10.300
2021-04-08T23:02:10.300
63,550
1,384,652
null
2,525
1
8,739
null
165
149,576
My product has several components: ASP.NET, Windows Forms App and Windows Service. 95% or so of the code is written in VB.NET. For Intellectual Property reasons, I need to obfuscate the code, and until now I have been using a version of dotfuscator which is now over 5 years old. I'm thinking it is time to move to a ne...
.NET obfuscation tools/strategy
CC BY-SA 3.0
0
2008-08-05T16:20:37.773
2020-01-20T15:14:01.013
2015-04-13T12:51:06.663
2,624,611
350
[ ".net", "security", "obfuscation" ]
2,540
1
2,697
null
49
8,525
What are good libraries for C with datastructures like vectors, deques, stacks, hashmaps, treemaps, sets, etc.? Plain C, please, and platform-independent.
Good STL-like library for C
CC BY-SA 2.5
0
2008-08-05T16:30:37.377
2014-04-24T06:52:28.120
2008-09-10T18:13:55.543
-1
136
[ "c", "architecture", "data-structures" ]
2,531
2
null
2,530
2,863
null
Firefox 30 ignores `autocomplete="off"` for passwords, opting to prompt the user instead whether the password should be stored on the client. Note the following [commentary](https://bugzilla.mozilla.org/show_bug.cgi?id=956906#c100) from May 5, 2014: > - - According to the [Mozilla Developer Network](https://developer....
null
CC BY-SA 4.0
null
2008-08-05T16:24:53.380
2021-01-09T17:16:10.967
2021-01-09T17:16:10.967
10,607,772
157
null
2,541
2
null
2,525
23
null
If your looking for a free one you could try DotObfuscator Community Edition that comes with Visual Studio or [Eazfuscator.NET](http://www.gapotchenko.com/eazfuscator.net). --- [Since June 29, 2012](http://blog.gapotchenko.com/eazfuscator.net/code-virtualization), Eazfuscator.NET is now commercial. The last free a...
null
CC BY-SA 3.0
null
2008-08-05T16:30:40.170
2017-03-29T04:13:05.737
2017-03-29T04:13:05.737
-1
428
null
2,542
2
null
2,530
24
null
Just set `autocomplete="off"`. There is a very good reason for doing this: You want to provide your own autocomplete functionality!
null
CC BY-SA 3.0
null
2008-08-05T16:32:11.773
2015-08-01T10:45:01.303
2015-08-01T10:45:01.303
2,181,225
106
null
2,537
2
null
2,530
111
null
``` <form name="form1" id="form1" method="post" autocomplete="off" action="http://www.example.com/form.cgi"> ``` This will work in Internet Explorer and Mozilla Firefox. The downside is that it is not XHTML standard.
null
CC BY-SA 4.0
null
2008-08-05T16:27:40.910
2021-04-08T23:02:53.117
2021-04-08T23:02:53.117
63,550
225
null
2,543
1
2,564
null
16
5,160
I'm aware of [FusionCharts](http://www.fusioncharts.com/), are there other good solutions, or APIs, for creating charts in Adobe Flash?
What are the best solutions for flash charts and graphs?
CC BY-SA 3.0
0
2008-08-05T16:34:37.057
2012-07-02T20:33:37.163
2012-07-02T20:33:37.163
1,399,491
136
[ "flash", "graph" ]
2,547
2
null
2,543
2
null
XML/SWF Charts does Chart off XML: [http://www.maani.us/xml_charts/](http://www.maani.us/xml_charts/)
null
CC BY-SA 2.5
null
2008-08-05T16:36:43.933
2008-08-05T16:36:43.933
null
null
91
null
2,538
2
null
44,965
180
null
But, [You could have invented Monads!](http://blog.sigfpe.com/2006/08/you-could-have-invented-monads-and.html) > sigfpe says:> But all of these introduce monads as something esoteric in need of explanation. But what I want to argue is that they aren't esoteric at all. In fact, faced with various problems in functional...
null
CC BY-SA 3.0
null
2008-08-05T16:28:41.483
2015-03-31T05:35:32.367
2015-03-31T05:35:32.367
1,880,763
157
null
2,544
2
null
2,524
2
null
It sounds like you are probably hitting F5 in Visual Studio when you receive this error? There are a few things you can try. The easiest is to hit the button before hitting F5. Optionally, when you are finished debugging and starting to make changes you can go to the menu and choose either or .
null
CC BY-SA 2.5
null
2008-08-05T16:35:17.087
2008-08-05T16:35:17.087
null
null
312
null
2,546
2
null
2,527
97
null
You can add a mouse click event to the TreeView, then select the correct node using GetNodeAt given the mouse coordinates provided by the MouseEventArgs. ``` void treeView1MouseUp(object sender, MouseEventArgs e) { if(e.Button == MouseButtons.Right) { // Select the clicked node treeView1.Select...
null
CC BY-SA 3.0
null
2008-08-05T16:36:43.463
2012-09-11T05:38:54.940
2012-09-11T05:38:54.940
495,455
152
null
2,545
2
null
2,524
0
null
It sounds like something is eating up your web server's resources. Perhaps you have some resources (file handlers, wcf proxies) that are being opened and not closed? I've had this happen to me specifically when I was not closing WCF client proxy connections. The problem is not necessarily that you have a debugger att...
null
CC BY-SA 2.5
null
2008-08-05T16:35:50.517
2008-08-05T16:35:50.517
null
null
308
null
2,556
1
100,758
null
93
25,541
Should be available to non-U.S. companies, easy to setup, reliable, cheap, customizable, etc. What are your experiences?
What's the best online payment processing solution?
CC BY-SA 2.5
0
2008-08-05T16:41:50.413
2020-07-20T03:38:35.883
null
null
136
[ "payment" ]
2,555
2
null
2,543
2
null
I know you said flash, but this is a good silverlight chart api. [http://www.visifire.com/](http://www.visifire.com/). Always good to keep your options open right? Had to plug silverlight, but you can also take a look at [Yahoo!'s YUI charting](http://developer.yahoo.com/yui/charts/) component.
null
CC BY-SA 2.5
null
2008-08-05T16:40:37.840
2008-08-05T16:40:37.840
null
null
77
null
2,550
1
2,560
null
19
4,239
A quick glance at the present-day internet would seem to indicate that Adobe Flash is the obvious choice for embedding video in a web page. Is this accurate, or are they other effective choices? Does the choice of ASP.NET as a platform influence this decision?
What are effective options for embedding video in an ASP.NET web site?
CC BY-SA 2.5
0
2008-08-05T16:39:04.507
2013-01-27T12:29:43.840
2008-09-03T12:32:06.610
3,320
308
[ "asp.net", "flash", "video", "embed" ]
2,558
2
null
2,540
14
null
As always, Google is your friend: [http://nixbit.com/cat/programming/libraries/c-generic-library/](http://nixbit.com/cat/programming/libraries/c-generic-library/) specifically: [http://nixbit.com/cat/programming/libraries/generic-data-structures-library/](http://nixbit.com/cat/programming/libraries/generic-data-stru...
null
CC BY-SA 2.5
null
2008-08-05T16:43:11.033
2008-08-05T16:43:11.033
null
null
414
null
2,560
2
null
2,550
21
null
Flash is certainly the most ubiquitous and portable solution. [98% of browsers](http://en.wikipedia.org/wiki/Adobe_Flash#Market_share) have Flash installed. Other alternatives are [Quicktime](http://www.apple.com/quicktime/download/), [Windows Media Player](http://www.microsoft.com/windows/windowsmedia/default.mspx),...
null
CC BY-SA 2.5
null
2008-08-05T16:44:01.157
2008-08-05T16:44:01.157
null
null
72
null
2,564
2
null
2,543
7
null
Is there a reason that you want it in Flash? If a plain, old PNG will work, try the [Google Chart API](http://code.google.com/apis/chart/).
null
CC BY-SA 2.5
null
2008-08-05T16:49:06.047
2008-08-05T16:49:06.047
null
null
55
null
2,561
2
null
2,556
11
null
I'd say paypal or [GoogleCheckout](https://checkout.google.com/sell/). Google Checkout is either 2% + .20USD or free depending on how much you spend on adwords. If you spend a dollar on adWords, your next $10 on Google checkout is free. [Paypal](https://www.paypal.com/us/cgi-bin/webscr?cmd=_wp-standard-pricing-outsid...
null
CC BY-SA 2.5
null
2008-08-05T16:44:35.960
2008-08-05T17:49:17.093
2008-08-05T17:49:17.110
30
30
null
2,548
2
null
2,509
107
null
I understand BDD to be more about than . It is linked to Domain Driven Design (don't you love these *DD acronyms?). It is linked with a certain way to write user stories, including high-level tests. An example by [Tom ten Thij](http://tomtenthij.nl/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app): ``` ...
null
CC BY-SA 3.0
null
2008-08-05T16:36:53.840
2015-08-07T13:04:47.380
2015-08-07T13:04:47.380
341
341
null
2,562
2
null
2,550
6
null
Flash is usually the product of choice: Everyone has it, and using the [JW FLV Player](http://www.jeroenwijering.com/?item=JW_FLV_Media_Player) makes it relatively easy on your side. As for other Video Formats, there are WMV and QuickTime, but the players are rather "heavy", not everyone might have them and they feel ...
null
CC BY-SA 2.5
null
2008-08-05T16:44:43.090
2008-08-05T16:44:43.090
null
null
91
null
2,563
1
2,801
null
8
3,187
Any good recommendations for a platform agnostic (i.e. Javascript) grid control/plugin that will accept pasted Excel data and can emit Excel-compliant clipboard data during a Copy? I believe Excel data is formatted as CSV during "normal" clipboard operations. --- [dhtmlxGrid](http://dhtmlx.com/docs/products/dhtml...
What is a good web-based Grid that accepts Excel clipboard data?
CC BY-SA 3.0
0
2008-08-05T16:47:28.873
2012-10-17T11:06:23.250
2012-10-17T11:06:23.250
1,288
307
[ "excel", "csv", "grid", "clipboard" ]
2,565
2
null
2,556
1
null
Epoch is pretty large and available in US and EU: [http://www.epoch.com/en/index.html](http://www.epoch.com/en/index.html) I have no idea about their conditions though.
null
CC BY-SA 2.5
null
2008-08-05T16:49:21.270
2008-08-05T16:49:21.270
null
null
91
null
2,569
2
null
2,556
1
null
I'd have to go with paypal. I've used it in the past, and its really quite painless. All you need to do is create an account, and it's automatically available to you.
null
CC BY-SA 2.5
null
2008-08-05T16:52:43.090
2008-08-05T16:52:43.090
null
null
50
null
2,400
2
null
2,232
1,459
null
This explanation is based on a commented [Ruby script](http://gist.github.com/4069) from a friend of mine. If you want to improve the script, feel free to update it at the link. First, note that when Ruby calls out to a shell, it typically calls `/bin/sh`, Bash. Some Bash syntax is not supported by `/bin/sh` on all s...
null
CC BY-SA 4.0
null
2008-08-05T14:42:45.927
2020-05-07T13:11:15.360
2020-05-07T13:11:15.360
3,518,452
402
null
2,571
2
null
2,556
4
null
[http://www.authorize.net/](http://www.authorize.net/) works well. This type of solution would allow your customer to enter his/her credit card directly.
null
CC BY-SA 2.5
null
2008-08-05T16:53:28.033
2008-08-05T16:53:28.033
null
null
285
null
2,588
1
1,780,172
null
19
33,680
Does any know a good rule of thumb for the appropriate pagefile size for a Windows 2003 server running SQL Server?
Appropriate Windows O/S pagefile size for SQL Server
CC BY-SA 3.0
0
2008-08-05T17:07:16.773
2014-12-16T18:29:20.807
2014-12-16T18:29:20.807
314,291
423
[ "sql-server", "windows" ]
2,566
2
null
2,550
0
null
I have worked for a company that developed a system for distributing media content to dedicated "players". It was web based and used ASP.NET technology and have tried almost every possible media format you can think of and your choice really comes down to asking yourself: does it needs to play directly out of the box,...
null
CC BY-SA 2.5
null
2008-08-05T16:49:31.723
2008-08-05T16:49:31.723
null
null
46
null
2,596
2
null
2,447
1
null
I'm no expert on Agile development, but I would imagine that integrating some basic automated pen-test software into your build cycle would be a good start. I have seen several software packages out there that will do basic testing and are well suited for automation.
null
CC BY-SA 2.5
null
2008-08-05T17:19:03.893
2008-08-05T17:19:03.893
null
null
72
null
2,570
2
null
2,543
1
null
I can vouch that I've had good experiences with [PHP/SWF charts](http://www.maani.us/charts/index.php) (and by extension, the XML/SWF charts too). It's easy to create really subtle chart effects. Pie charts fading in one slice at a time looks fairly professional without being annoying. Edit: Scratch that, [Open-Flash-...
null
CC BY-SA 2.5
null
2008-08-05T16:53:15.647
2008-08-05T17:01:44.663
2008-08-05T17:01:44.663
30
30
null
2,576
2
null
2,543
10
null
[http://teethgrinder.co.uk/open-flash-chart/](http://teethgrinder.co.uk/open-flash-chart/) seems really sweet. I suggest you give it a look. UPDATE: Open Flash Chart 2 is out: [http://teethgrinder.co.uk/open-flash-chart-2/](http://teethgrinder.co.uk/open-flash-chart-2/)
null
CC BY-SA 2.5
null
2008-08-05T16:54:48.357
2010-01-19T02:19:12.850
2010-01-19T02:19:12.850
285
285
null
2,598
2
null
2,486
3
null
Basically, if your site still works with JavaScript turned off, then anything you add with JavaScript can be considered progressive enhancement. Some people may think that this is unnecessary, but plenty of people browse with addons like NoScript (or, with JavaScript simply turned off in their browser settings). In ad...
null
CC BY-SA 2.5
null
2008-08-05T17:20:25.077
2008-08-05T17:20:25.077
null
null
106
null
2,585
2
null
109
24
null
I went back to Michael's post, did some more poking and realized that I did need to do a double conversion, and eventually worked out this little nugget: ``` Convert.ToString(Convert.ToChar(Int32.Parse(EncodedString.Substring(intParseIndex, 2), System.Globalization.NumberStyles.HexNumber))); ``` From there I simply ...
null
CC BY-SA 4.0
null
2008-08-05T17:02:30.870
2019-02-10T22:11:00.017
2019-02-10T22:11:00.017
513,951
71
null
2,554
2
null
2,027
20
null
Here is another article for the [c# programming language](http://msdn.microsoft.com/en-us/vcsharp/default.aspx) c# passes its arguments (by default) ``` private void swap(string a, string b) { string tmp = a; a = b; b = tmp; } ``` calling this version of swap will thus have no result: ``` string x = "foo"; ...
null
CC BY-SA 2.5
null
2008-08-05T16:40:35.063
2008-08-05T16:40:35.063
2017-05-23T12:17:05.720
-1
46
null
2,599
2
null
888
80
null
You can use Firephp an add-on to firebug to debug php in the same environment as javascript. I also use [Xdebug](http://xdebug.org/) mentioned earlier for profiling php.
null
CC BY-SA 3.0
null
2008-08-05T17:22:09.333
2015-10-07T08:29:03.040
2015-10-07T08:29:03.040
4,345,707
238
null
2,601
2
null
2,563
3
null
Not an answer, but a warning: my company bought the 2007 Infragistics ASP.NET controls just for the Grid, and we regret that choice. The quality of API is horrible (in our opinion at least), making it very hard to program against the grid (for example, inconsistent naming conventions, but this is just an inconvenienc...
null
CC BY-SA 2.5
null
2008-08-05T17:23:21.500
2008-08-05T17:23:21.500
null
null
350
null
2,602
2
null
1,711
4
null
Code Complete is the number one choice, but I'd also cite Gang of Four's Design Patterns and Craig Larman's Applying UML and Patterns. The Timeless Way of Building, by Christopher Alexander, is another great one. Even though it's about archtecture, it's included in the bibliography of many great programming books I h...
null
CC BY-SA 2.5
null
2008-08-05T17:28:24.937
2008-08-05T17:28:24.937
null
null
431
null
2,608
2
null
1,284
3
null
Oracle has got an [online tutorial about SQL Injection](http://st-curriculum.oracle.com/tutorial/SQLInjection/index.htm). Even though you want a ready-made solution, this might give you some hints on how to use it better to defend yourself.
null
CC BY-SA 2.5
null
2008-08-05T17:38:53.840
2008-08-05T17:38:53.840
null
null
431
null
2,605
2
null
2,556
3
null
if it is Digital stuff that you are selling, I recommend [http://www.esellerate.net/](http://www.esellerate.net/) . they have nice support for website payment, delivery of serial numbers upon sell and even have API so you can integrate the buying process into your application in case it is a desktop application.
null
CC BY-SA 2.5
null
2008-08-05T17:35:24.157
2008-08-05T17:35:24.157
null
null
350
null
2,609
2
null
2,556
2
null
Well by cheap do you mean processing fees or month fees? Also is this for micro or normal transactions? PayPal in my experience is an all around good choice because it offers both starter to professional level payment processing services that fit most needs.
null
CC BY-SA 2.5
null
2008-08-05T17:40:27.503
2008-08-05T17:40:27.503
null
null
17
null
2,629
2
null
651
0
null
In IIS, enable annonymous access and allow the web.config to handle user authentication.
null
CC BY-SA 4.0
null
2008-08-05T18:01:12.640
2019-06-12T17:00:05.673
2019-06-12T17:00:05.673
1,011,722
383
null
2,620
2
null
2,447
1
null
I'm not a security expert, but I think the most important fact you should be aware of, before testing security, is what you are trying to protect. Only if you know what you are trying to protect, you can do a proper analysis of your security measures and only then you can start testing those implemented measures. Very...
null
CC BY-SA 2.5
null
2008-08-05T17:50:49.243
2008-08-05T17:50:49.243
null
null
198
null
2,619
2
null
2,556
2
null
I've used CyberSource in the past, and had a good experience. They support several interfaces including SOAP, work internationally and have a pretty good web interface. I'm not sure whether it's cheap though. [http://www.cybersource.com/products_and_services/global_payment_services/credit_card_processing/](http://www.c...
null
CC BY-SA 4.0
null
2008-08-05T17:48:39.467
2020-07-20T03:38:35.883
2020-07-20T03:38:35.883
10,325,630
373
null
2,630
1
64,636
null
15
2,449
I just found /n softwares free Powershell NetCmdlets, and after playing with them I love the functionality they bring to the command line. So it raises the question what are your favorite Cmdlets, and how do you use them?
What are your favorite Powershell Cmdlets?
CC BY-SA 2.5
0
2008-08-05T18:01:32.547
2012-11-04T08:08:41.123
2008-10-10T07:15:03.610
3,560
17
[ "powershell", "powershell-cmdlet" ]
2,614
2
null
2,483
4
null
Here is a good way to remember the process that each of them follow that I use when trying to decide which is better for my circumstance. ``` DateTime i = (DateTime)value; // is like doing DateTime i = value is DateTime ? value as DateTime : throw new Exception(...); ``` and the next should be easy to guess what it ...
null
CC BY-SA 2.5
null
2008-08-05T17:46:00.970
2008-08-05T17:46:00.970
null
null
17
null
2,643
2
null
2,639
2
null
[Cerberus](http://www.cerberusweb.com/) - it's more a full featured Help Desk/Issue Tracking system but it has a nice KB solution built in. It can be free but they do have a low cost pay version that is also very good.
null
CC BY-SA 2.5
null
2008-08-05T18:12:14.223
2008-08-05T18:12:14.223
null
null
225
null
2,649
1
2,653
null
21
3,550
When writing a T-SQL script that I plan on re-running, often times I use temporary tables to store temporary data. Since the temp table is created on the fly, I'd like to be able to drop that table only if it exists (before I create it). I'll post the method that I use, but I'd like to see if there is a better way.
What's the best way to determine if a temporary table exists in SQL Server?
CC BY-SA 2.5
null
2008-08-05T18:18:39.373
2017-01-30T17:05:01.413
2009-01-13T16:03:30.267
434
434
[ "sql-server" ]
2,647
1
2,657
null
527
920,721
Using SQL Server, how do I split a string so I can access item x? Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return "John"?
How do I split a delimited string so I can access individual items?
CC BY-SA 4.0
0
2008-08-05T18:15:47.727
2022-11-26T21:14:11.057
2022-06-13T15:19:11.710
1,255,289
383
[ "sql", "sql-server", "tsql", "split" ]
2,653
2
null
2,649
28
null
``` IF Object_Id('TempDB..#TempTable') IS NOT NULL BEGIN DROP TABLE #TempTable END ```
null
CC BY-SA 3.0
null
2008-08-05T18:21:38.730
2017-01-30T17:05:01.413
2017-01-30T17:05:01.413
12,597
383
null
2,639
1
2,712
null
12
5,141
I've used a WordPress blog and a Screwturn Wiki (at two separate jobs) to store private, company-specific KB info, but I'm looking for something that was created to be a knowledge base. Specifically, I'd like to see: - - - - - - - - I liked using the Wordpress blog because it allowed me to use [Live Writer](http://...
What are some web-based knowledge-base solutions?
CC BY-SA 2.5
0
2008-08-05T18:07:26.213
2016-01-28T05:16:43.123
2014-12-01T12:35:52.033
2,861,681
434
[ "language-agnostic" ]
2,652
2
null
2,649
14
null
The OBJECT_ID function returns the internal object id for the given object name and type. 'tempdb..#t1' refers to the table #t1 in the tempdb database. 'U' is for user-defined table. ``` IF OBJECT_ID('tempdb..#t1', 'U') IS NOT NULL DROP TABLE #t1 CREATE TABLE #t1 ( id INT IDENTITY(1,1), msg VARCHAR(255) ) ``` ...
null
CC BY-SA 3.0
null
2008-08-05T18:21:31.537
2014-08-27T10:46:53.187
2014-08-27T10:46:53.187
352,101
434
null
2,662
2
null
2,639
1
null
I think Drupal is a very possible choice. It has a lot of built-in support for book-type information capturing. And there is a rich collection of user generated modules which you can use to enhance the features. I think it has almost all the features you ask for out of the box. [Drupal CMS Benefits](http://drupal.org...
null
CC BY-SA 3.0
null
2008-08-05T18:31:19.677
2013-01-27T12:34:33.143
2013-01-27T12:34:33.143
null
380
null
2,665
2
null
2,658
19
null
Use subversion, it's easy to setup, easy to use, and has plenty of tools. Any future revision system will have an import from SVN feature, so it isn't like you can't change down the road if your needs grow.
null
CC BY-SA 2.5
null
2008-08-05T18:31:56.773
2008-08-05T18:31:56.773
null
null
34
null
2,667
2
null
2,658
11
null
Go for SVN. If you have never used source control before, it won't matter to you one way or the other. Also, there is not a large amount of learning involved in using a Source Control system. If you learn one, you can easily switch over to another at a later date. SVN is a great tool, and it should take care of most ...
null
CC BY-SA 2.5
null
2008-08-05T18:33:56.927
2008-08-05T18:33:56.927
null
null
380
null
2,658
1
2,668
null
76
9,566
I need to implement version control, even for just the developing I do at home. I have read about how great subversion is for the past couple of years and was about to dedicate myself to learning this on the side until I heard about Git being the up and coming version control system. Given the situation, should I hold...
Getting started with Version Control System
CC BY-SA 4.0
0
2008-08-05T18:29:14.283
2022-02-23T12:27:23.230
2022-02-23T12:27:23.230
5,452,687
406
[ "git", "svn", "version-control", "language-agnostic", "dvcs" ]
2,669
2
null
2,658
2
null
Don't wait. Pick one, and go with it. All systems will have their pluses and minuses. Your power could go out, you computer gets stolen, or you forget to undo a major change and all your code gets fried while you're waiting to see who emerges victorious.
null
CC BY-SA 2.5
null
2008-08-05T18:35:27.890
2008-08-05T18:35:27.890
null
null
149
null
2,670
2
null
2,658
0
null
When I decided I must use a code versioning system, I looked around for any good tutorials on how to get started but didn't find any that could help me. So I simplely installed the SVN Server and Tortoise SVN for the client and dived into the deepend and i learn't how to use it along the way.
null
CC BY-SA 2.5
null
2008-08-05T18:36:01.227
2008-08-05T18:36:01.227
null
null
383
null