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
19,128
2
null
19,113
4
null
One thing I've seen a printer manufacturer do with their printer properties dialog is to have a little help baloon icon beside disabled items that display a tooltip when hovered over. Another thing you can do with disabled items is to add in parenthesis why it's disabled or what the user would have to do to enable it....
null
CC BY-SA 2.5
null
2008-08-21T00:24:47.400
2008-08-21T00:24:47.400
null
null
1,659
null
19,127
1
19,199
null
6
2,260
I have a page using `<ul>` lists for navigation (Javascript changes the styling to display or not on mouseover). This is working fine for me in IE6 and IE7 when I have a Google Map on the page. In this case the drop-down simply does not work. However, the page continues to work in FireFox 2. I have done a little bi...
Best way to fix CSS/JS drop-down in IE7 when page includes Google Map
CC BY-SA 3.0
null
2008-08-21T00:24:15.093
2014-06-25T18:54:30.783
2014-06-25T18:54:30.783
2,758,393
364
[ "javascript", "css", "cross-browser", "browser", "client-side" ]
19,148
2
null
19,113
0
null
@Bill the Lizard: I'd combine #2 and #3 - disable the item, but have a tooltip that indicates why it is disabled.
null
CC BY-SA 2.5
null
2008-08-21T00:34:15.413
2008-08-21T00:34:15.413
null
null
188
null
19,138
2
null
19,132
7
null
Expressions can be evaluated to get a value, whereas statements don't return a value (they're of type ). Function call expressions can also be considered statements of course, but unless the execution environment has a special built-in variable to hold the returned value, there is no way to retrieve it. Statement-ori...
null
CC BY-SA 2.5
null
2008-08-21T00:30:31.957
2008-08-21T00:41:03.413
2008-08-21T00:41:03.413
1,659
1,659
null
19,139
2
null
19,132
16
null
An expression is something that returns a value, whereas a statement does not. For examples: ``` 1 + 2 * 4 * foo.bar() //Expression foo.voidFunc(1); //Statement ``` The Big Deal between the two is that you can chain expressions together, whereas statements cannot be chained.
null
CC BY-SA 2.5
null
2008-08-21T00:30:44.093
2008-08-21T00:30:44.093
null
null
429
null
19,122
1
19,383
null
31
13,007
Does anyone know how bash handles sending data through pipes? ``` cat file.txt | tail -20 ``` Does this command print all the contents of file.txt into a buffer, which is then read by tail? Or does this command, say, print the contents of file.txt line by line, and then pause at each line for tail to process, and th...
Bash Pipe Handling
CC BY-SA 4.0
0
2008-08-21T00:20:34.133
2019-12-22T10:17:50.650
2019-12-22T10:17:50.650
12,258,312
306
[ "linux", "bash", "pipe", "device" ]
19,150
2
null
19,132
11
null
You can find this on [wikipedia](http://en.wikipedia.org/wiki/Statement_%28programming%29), but expressions are evaluated to some value, while statements have no evaluated value. Thus, expressions can be used in statements, but not the other way around. Note that some languages (such as Lisp, and I believe Ruby, and ...
null
CC BY-SA 2.5
null
2008-08-21T00:35:13.227
2008-08-21T00:35:13.227
null
null
122
null
19,147
1
522,874
null
732
252,743
Using C# and WPF under .NET (rather than [Windows Forms](http://en.wikipedia.org/wiki/Windows_Forms) or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some mythical thing called a mutex, rarely can I find someone that bothers to ...
What is the correct way to create a single-instance WPF application?
CC BY-SA 4.0
0
2008-08-21T00:33:59.453
2022-05-09T14:55:37.287
2018-10-18T21:36:07.623
16,940
483
[ "c#", ".net", "wpf", "mutex" ]
19,151
1
24,377
null
672
446,012
How would one create an iterative function (or iterator object) in python?
How to build a basic iterator?
CC BY-SA 4.0
0
2008-08-21T00:36:11.773
2022-03-16T14:12:11.253
2021-11-24T14:14:26.587
355,230
145
[ "python", "object", "iterator" ]
19,144
2
null
19,132
5
null
Simply: an expression evaluates to a value, a statement doesn't.
null
CC BY-SA 2.5
null
2008-08-21T00:31:55.620
2008-08-21T00:31:55.620
null
null
188
null
19,163
2
null
15,729
1
null
It may actually be helpful to go around adding the tag 'glossary' to specific questions (I recently saw one about Expressions vs. Statements, for instance).
null
CC BY-SA 2.5
null
2008-08-21T00:46:56.910
2008-08-21T00:46:56.910
null
null
1,693
null
19,162
1
19,171
null
14
5,176
Is anyone aware of a `script/class` (preferably in PHP) that would parse a given `MySQL table's structure` and then fill it with `x number of rows` of random test data based on the field types? I have never seen or heard of something like this and thought I would check before writing one myself.
PHP Script to populate MySQL tables
CC BY-SA 3.0
0
2008-08-21T00:46:52.293
2016-06-25T05:26:56.803
2016-06-25T05:26:56.803
4,311,889
1,852
[ "php", "mysql", "testing", "dataset", "test-data" ]
19,156
2
null
18,959
1
null
> My knowledge of this is very shallow, but I thought that was only true for disks formatted with GPT (Guid Partition Table) partitions, rather than the old-style MBR format which 99% of the world is still stuck with? Not to sounds like a linux user cliche but it Works For Me.. I use it with NTFS partitions ...
null
CC BY-SA 2.5
null
2008-08-21T00:38:59.520
2008-08-21T00:38:59.520
null
null
1,666
null
19,171
2
null
19,162
21
null
What you are after would be a data generator. There is one available [here](http://www.generatedata.com/) which i had bookmarked but i haven't got around to trying it yet.
null
CC BY-SA 2.5
null
2008-08-21T00:54:24.147
2008-08-21T00:54:24.147
null
null
1,061
null
19,179
2
null
18,984
16
null
I would go with building a library with a command line application that links to it. Afterwards, you can create a GUI that links to the same library. Calling a command line from a GUI spawns external processes for each command and is more disruptive to the OS. Also, with a library you can easily do unit tests for the ...
null
CC BY-SA 2.5
null
2008-08-21T01:08:37.000
2008-08-21T01:08:37.000
null
null
1,659
null
19,176
2
null
18,082
21
null
Use the function `isNaN`. I believe if you test for `!isNaN(yourstringhere)` it works fine for any of these situations.
null
CC BY-SA 3.0
null
2008-08-21T01:02:15.237
2016-02-10T16:19:51.353
2016-02-10T16:19:51.353
92,701
1,328
null
19,169
2
null
18,959
0
null
You need to either mark the drive in some way (e.g. write a file etc.), or find some identifier that is only associated with that particular drive. It is very hard, almost impossible to figure out what letter Windows would assign to a particular drive partition, without actually running Windows. This is because Window...
null
CC BY-SA 2.5
null
2008-08-21T00:49:58.930
2008-08-21T00:49:58.930
null
null
1,337
null
19,186
2
null
11,088
82
null
It is actually possible to get rid of the if statement and the addition if you do it like this. ``` byte[] foobar = ..; int value = (foobar[10] & 0xff); ``` This way Java doesn't interpret the byte as a negative number and flip the sign bit on the integer also.
null
CC BY-SA 4.0
null
2008-08-21T01:17:45.400
2018-08-01T16:00:06.617
2018-08-01T16:00:06.617
1,018,611
1,377
null
19,185
1
19,188
null
3
507
There is some documentation on the internet that shows that Windows changes the behavior of the NotifyIcon.BalloonTipShown command if the user is currently idle and this is [detected by checking for keyboard and mouse events](http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=343411&SiteID=1). I am currently working...
Is there a way to check to see if the user is currently idle?
CC BY-SA 2.5
0
2008-08-21T01:15:00.213
2012-08-11T16:00:27.177
2012-08-11T16:00:15.523
1,477,076
1,185
[ ".net", "windows", "user-interface", "tray" ]
19,165
2
null
19,147
95
null
From [here](http://www.albahari.com/threading/part2.html#_MutexSingleAppInstance). A common use for a cross-process Mutex is to ensure that only instance of a program can run at a time. Here's how it's done: ``` class OneAtATimePlease { // Use a name unique to the application (eg include your company URL) static...
null
CC BY-SA 2.5
null
2008-08-21T00:47:28.983
2010-08-23T07:20:03.540
2010-08-23T07:20:03.540
41,956
1,293
null
19,187
2
null
19,185
1
null
Check position of the mouse every second. If there are new messages for user, hold on to them until you detect any move with the mouse. See [Detecting Idle Time with Mouse and Keyboard Hooks](http://weblogs.asp.net/jdanforth/archive/2006/06/21/454219.aspx)
null
CC BY-SA 2.5
null
2008-08-21T01:18:27.257
2008-08-21T01:18:27.257
null
null
275
null
19,188
2
null
19,185
4
null
How about the Win32 [LASTINPUTINFO](http://www.codeproject.com/KB/cs/GetIdleTimeWithCS.aspx) function? ``` using System.Runtime.InteropServices; [DllImport("User32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO plii); struct LASTINPUTINFO { public uint cbSize; public uint dwTime; } ```
null
CC BY-SA 3.0
null
2008-08-21T01:19:35.600
2012-08-11T16:00:27.177
2012-08-11T16:00:27.177
1,477,076
1,659
null
19,190
2
null
19,127
0
null
I don't have an immediate answer for you, but the tools mentioned in [this answer](https://stackoverflow.com/questions/17561/recommendations-for-browser-add-on-tools-to-help-with-development#17621) (particularly the IE DOM Inspector) may help.
null
CC BY-SA 2.5
null
2008-08-21T01:24:40.440
2008-08-21T01:24:40.440
2017-05-23T10:32:51.507
-1
1,612
null
19,192
2
null
17,483
0
null
Trying to prevent someone from using the same name as your function in a subclass isn't much different than trying to prevent someone from using the same global function name as you have declared in a linked library. You can only hope that users that mean to use your code, and not others', will be careful with how th...
null
CC BY-SA 2.5
null
2008-08-21T01:27:11.807
2008-08-21T01:27:11.807
null
null
1,659
null
19,191
2
null
18,524
41
null
What you're doing is fine, but if you feel the need to 'Java-it-up' you could use a [Transformer](http://commons.apache.org/collections/api/org/apache/commons/collections/Transformer.html) and the [collect method](http://commons.apache.org/collections/api/org/apache/commons/collections/CollectionUtils.html) from [Apach...
null
CC BY-SA 3.0
null
2008-08-21T01:24:42.687
2015-01-12T10:17:08.367
2015-01-12T10:17:08.367
1,828,937
1,666
null
19,173
1
23,208
null
9
3,418
If you're building an `AJA~Xy` app, are there any downsides to using `JSONP` requests/responses even if you're not planning on any `cross-domain` requests? The only thing I can think of is that there are a couple extra bytes for the callback wrapper... I found [this](http://remysharp.com/2007/10/08/what-is-jsonp/...
Are there reasons not to use JSONP for AJA~X requests?
CC BY-SA 4.0
0
2008-08-21T00:56:45.217
2019-01-18T10:31:22.740
2019-01-18T10:31:22.740
567,854
2,031
[ "javascript", "ajax", "json", "jsonp" ]
19,152
2
null
19,151
105
null
First of all the [itertools module](https://docs.python.org/3/library/itertools.html) is incredibly useful for all sorts of cases in which an iterator would be useful, but here is all you need to create an iterator in python: > yield Isn't that cool? Yield can be used to replace a normal in a function. It returns ...
null
CC BY-SA 4.0
null
2008-08-21T00:36:33.050
2019-01-27T03:25:27.557
2019-01-27T03:25:27.557
9,209,546
145
null
19,198
2
null
19,089
0
null
I managed to get it working with a variation of BCS's answer. It wouldn't let me use a table variable though, so I had to make a temp table. ``` CREATE TABLE #ResultTable ( StaffName nvarchar(100), Stage1Count int, Stage2Count int ) INSERT INTO #ResultTable (StaffName) SELECT StaffName FROM ViewJob GROUP BY...
null
CC BY-SA 3.0
null
2008-08-21T01:40:23.397
2017-04-09T14:20:12.127
2017-04-09T14:20:12.127
2,063,547
233
null
19,199
2
null
19,127
2
null
I don't know if this will fix your problem but you may want to try [this solution at ccsplay.co.uk](http://www.cssplay.co.uk/menus/pro_drop8.html) which fixes the problem of menus appearing underneath drop-down lists. I don't know if it will work for sure, but it's worth a shot.
null
CC BY-SA 2.5
null
2008-08-21T01:41:16.547
2008-08-21T01:41:16.547
null
null
392
null
19,200
2
null
19,122
1
null
Shog9 already referenced the Wikipedia article, but the [implementation section](http://en.wikipedia.org/wiki/Pipeline_(Unix)#Implementation) has the details you want. The basic implementation is a bounded buffer.
null
CC BY-SA 2.5
null
2008-08-21T01:45:20.220
2008-08-21T01:45:20.220
null
null
1,750
null
19,201
1
null
null
30
25,935
Does anyone use Accurev for Source Control Management? We are switching (eventually) from StarTeam to Accurev. My initial impression is that the GUI tool is severely lacking, however the underlying engine, and the branches as streams concept is incredible. The biggest difficulty we are facing is assessing our own DIY...
Accurev SCM
CC BY-SA 2.5
0
2008-08-21T01:45:23.823
2015-02-15T20:26:17.707
null
null
1,965
[ "accurev" ]
19,203
2
null
18,077
1
null
Apply CSS unconditionally and check `element.style.MozBorderRadius` in the script?
null
CC BY-SA 2.5
null
2008-08-21T01:46:12.557
2008-08-21T01:46:12.557
null
null
1,026
null
19,193
1
19,255
null
6
18,299
How do I make a tree data structure in C++ that uses iterators instead of pointers? I couldn't find anything in the STL that can do this. What I would like to do is to be able to create and manipulate trees like this: ``` #include <iostream> #include <tree> using namespace std; int main() { tree<int> myTree; ...
How to make a tree in C++?
CC BY-SA 3.0
0
2008-08-21T01:28:06.470
2011-08-10T15:37:27.377
2011-08-10T15:37:27.377
1,288
2,222
[ "c++", "tree", "iterator" ]
19,204
2
null
19,193
3
null
Why would you want to do that? If this is for learning purposes then you can write your own tree data structure. If this is for gaining the benefit of a data-structure holding arbitrary index types, optimized for searching and good at insertion then consider using a map. A map is an associative container that has pe...
null
CC BY-SA 2.5
null
2008-08-21T01:47:02.350
2008-08-21T01:47:02.350
null
null
456
null
19,202
2
null
19,058
5
null
@[Michael Stum](https://stackoverflow.com/questions/19058/what-is-the-difference-between-oracles-yy-and-rr-date-mask#19066) > My last Oracle experience is a bit long ago uhm, was it, before 2000? :p ... > Will yy always assume 19xx? [according to your source](http://oracle.ittoolbox.com/groups/technical-functiona...
null
CC BY-SA 2.5
null
2008-08-21T01:46:07.970
2008-08-21T01:46:07.970
2017-05-23T12:02:37.570
-1
547
null
19,228
2
null
19,201
5
null
@Steveth The Interface is lousy...However the streams model is very innovative. Being able to create a stream for a new project off the trunk stream, and having 5 developers working on it, and not having any form of merge collisions when we merge that stream back into the main trunk is unheard of, yet it works well i...
null
CC BY-SA 2.5
null
2008-08-21T02:21:18.213
2008-08-21T02:21:18.213
null
null
1,965
null
19,225
2
null
19,201
5
null
At a previous employer we reviewed Accurev and Plastic SCM. At the end of the day, I was not impressed with Accurev's interface, or the so-called "streams". We went with Plastic, and nobody complained. @Jonathan The streams are interesting,but I don't see how any version control can magically avoid collisions when two...
null
CC BY-SA 2.5
null
2008-08-21T02:17:39.843
2008-08-21T04:05:28.323
2008-08-21T04:05:28.323
1,892
1,892
null
19,229
2
null
19,173
2
null
I would say the biggest limitation might be the extra overhead for have the browser render a script tag to call the server. Plus is JSONP really considered AJAX since it doesn't actually use the XMLHttpRequest object?
null
CC BY-SA 2.5
null
2008-08-21T02:22:16.980
2011-03-11T07:52:15.027
2011-03-11T07:52:15.027
12,534
17
null
19,244
2
null
18,984
0
null
In addition to what [Stu](https://stackoverflow.com/questions/18984/what-do-you-think-of-developing-for-the-command-line-first#18990) said, having a shared library will allow you to use it from web applications as well. Or even from an IDE plugin.
null
CC BY-SA 2.5
null
2008-08-21T02:43:00.657
2008-08-21T02:43:00.657
2017-05-23T11:45:50.897
-1
486
null
19,210
2
null
17,955
0
null
I managed our build system at my last job, which seemed to have some parallels to what you're asking. There were ~30 C++ projects which needed compiling, and various .NET/Java things, and the odd perl script. This was all built on our build machine using NAnt - If I were doing it today I'd use [rake](http://martinfow...
null
CC BY-SA 2.5
null
2008-08-21T01:58:08.550
2008-08-21T01:58:08.550
null
null
234
null
19,246
2
null
19,245
1
null
There is probably some errors in your eventlog under the Application and System categories. Try to find the origin of these errors or post them here we'll see what we can do :) Edit : @Daniel Silveira A memory leak is probable. What COM+ object do you use? I had some issues with Excel with an application I support.
null
CC BY-SA 2.5
null
2008-08-21T02:45:29.217
2008-08-21T02:52:15.877
2008-08-21T02:52:15.877
1,291
1,291
null
19,239
2
null
19,236
0
null
you are allowing all unauthenticated. You might be looking for something like this ``` <deny users="?"/> ```
null
CC BY-SA 2.5
null
2008-08-21T02:36:47.647
2008-08-21T04:33:21.843
2008-08-21T04:33:21.843
77
77
null
19,247
2
null
19,245
2
null
You have a memory leak :) This blog entry is my bible for IIS troubleshooting: [http://blogs.msdn.com/david.wang/archive/2005/12/31/HOWTO_Basics_of_IIS6_Troubleshooting.aspx](http://blogs.msdn.com/david.wang/archive/2005/12/31/HOWTO_Basics_of_IIS6_Troubleshooting.aspx) If you can't audit your code and find where the...
null
CC BY-SA 2.5
null
2008-08-21T02:46:49.323
2008-08-21T02:46:49.323
null
null
1,965
null
19,253
2
null
19,236
0
null
> That does not work, it still allows all users, (Authenticated or not) to access. I would think you could even omit the allow tag, as it's redundant. Just: ``` <deny users="?"/> ```
null
CC BY-SA 2.5
null
2008-08-21T02:56:51.293
2008-08-21T02:56:51.293
null
null
952
null
19,236
1
19,309
null
9
3,486
I'm working on a internal web based tool for my company. Part of this tool is another application (The Cruise Control Dashboard) that runs in its own Virtual Directory under my root application. I wanted to limit access to this internal application by setting up Forms Authentication on it, and having a login form in t...
Forms Authentication across Applications
CC BY-SA 2.5
0
2008-08-21T02:33:48.743
2017-01-16T16:01:35.077
null
null
1,965
[ "asp.net", "authentication", "cruisecontrol.net" ]
19,245
1
19,396
null
4
1,782
I have a web application that sometimes just hangs over heavy load. To make it come back I have to kill the "dllhost.exe" process. This is an Classic ASP (VBScript) app with lots of COM+ objects. The server has the following configuration: - - - There is some errors in the event log related to the COM objects. Bu...
IIS 6/COM+ hangs
CC BY-SA 2.5
0
2008-08-21T02:43:23.153
2011-11-19T02:54:48.337
2011-11-19T02:54:48.337
50,776
1,100
[ "iis", "dll", "asp-classic", "crash" ]
19,264
2
null
15,326
1
null
If you remove the float from the element below the table, does the margin appear?
null
CC BY-SA 2.5
null
2008-08-21T03:01:45.683
2008-08-21T03:01:45.683
null
null
2,076,253
null
19,270
2
null
18,533
1
null
Selecting a modern, stable, and actively supported ORM tool has to be probably the single biggest boost to productivity just about any project of moderate size and complexity can get. If you're concluding that you absolutely, absolutely, absolutely have to write your own DAL and ORM, you're probably doing it wrong (or...
null
CC BY-SA 2.5
null
2008-08-21T03:05:11.773
2008-08-21T03:05:11.773
null
null
2,228
null
19,255
2
null
19,193
5
null
Here is [tree.hh](http://www.aei.mpg.de/~peekas/tree/) which is a bit close to what you want to do, though a bit different. Here is a piece of code extracted from its website. ``` int main(int, char **) { tree<string> tr; tree<string>::iterator top, one, two, loc, banana; top=tr.begin(); one=tr.inser...
null
CC BY-SA 2.5
null
2008-08-21T02:57:14.663
2008-08-21T03:05:55.390
2008-08-21T03:05:55.390
446,497
446,497
null
19,271
2
null
1,644
4
null
Plus one for the following: - [The Java Posse](http://www.javaposse.com)- [Software Engineering Radio](http://www.se-radio.net)- [The Grails Podcast](http://www.grails.org/Grails+Podcast)
null
CC BY-SA 2.5
null
2008-08-21T03:05:23.427
2008-08-21T03:05:23.427
null
null
2,058
null
19,276
2
null
19,035
2
null
> AMQ depends on prototype which the error console in FireFox says object is not defined. Do you mean that AMQ depends on the [Prototype library](http://www.prototypejs.org/)? I can't see an import for that library in the code you've provided.
null
CC BY-SA 2.5
null
2008-08-21T03:09:52.357
2008-08-21T03:09:52.357
null
null
1,654
null
19,256
2
null
6,371
3
null
This is something that I'm constantly unsatisfied with - our solution to this problem that is. For several years we maintained a separate change script for each release. This script would contain the deltas from the last production release. With each release of the application, the version number would increment, givin...
null
CC BY-SA 2.5
null
2008-08-21T02:58:16.080
2008-08-21T02:58:16.080
null
null
2,058
null
19,284
2
null
19,280
2
null
No. Instead you could use a in browser modal popup.
null
CC BY-SA 2.5
null
2008-08-21T03:25:45.470
2008-08-21T03:25:45.470
null
null
1,965
null
19,278
2
null
18,671
5
null
I recently had to migrate from MySQL to JavaDB for a project that our team is working on. I found a [Java library written by Apache called DdlUtils](http://db.apache.org/ddlutils/) that made this pretty easy. It provides an API that lets you do the following: 1. Discover a database's schema and export it as an XML ...
null
CC BY-SA 2.5
null
2008-08-21T03:12:51.460
2008-08-21T03:12:51.460
null
null
1,471
null
19,224
2
null
19,132
568
null
Something which evaluates to a value. Example: A line of code which does something. Example: In the earliest general-purpose programming languages, like FORTRAN, the distinction was crystal-clear. In FORTRAN, a statement was one unit of execution, a thing that you did. The only reason it wasn't called a "line" was...
null
CC BY-SA 4.0
null
2008-08-21T02:17:21.000
2019-02-21T17:23:08.190
2019-02-21T17:23:08.190
2,602,718
4
null
19,280
1
19,290
null
21
18,004
I could only find the function `confirm()` that gives OK/Cancel buttons. Is there any way to give Yes/No buttons?
Code to ask yes/no question in javascript
CC BY-SA 2.5
0
2008-08-21T03:20:05.780
2019-11-20T10:19:09.163
null
null
184
[ "javascript" ]
19,290
2
null
19,280
8
null
Javascript offers 3 modal boxes. `prompt`, `confirm` and `alert`. None of those satisfy your request. There are a plethora of js modal popup solutions. Here's an example. - [ModalBox](https://github.com/okonet/modalbox)
null
CC BY-SA 4.0
null
2008-08-21T03:31:16.097
2019-11-20T10:19:09.163
2019-11-20T10:19:09.163
3,486,675
565
null
19,279
2
null
19,127
2
null
I fixed a similar issue with drop-downs not appearing over flash movies in IE6/IE7/IE8 using this [jQuery](http://jquery.com/): ``` $(function () { $("#primary-nav").appendTo("#footer"); }); ``` Where `primary-nav` is the `ID` of the drop-down container element and `footer` is the `ID` of the last element on the p...
null
CC BY-SA 2.5
null
2008-08-21T03:13:39.960
2008-08-21T03:13:39.960
null
null
1,414
null
19,287
2
null
19,236
2
null
FormsAuthentication encrypts the tokens that it gives to the user, and by default it encrypts keys different for each application. To get Forms Auth to work across applications, there are a couple of things you need to do: Firstly, set the Forms Auth "name" the same on all Applications. This is done with: ``` <authen...
null
CC BY-SA 2.5
null
2008-08-21T03:28:52.247
2008-08-21T03:54:25.883
2008-08-21T03:54:25.883
489
489
null
19,291
2
null
19,236
0
null
Where does that code sit Jonathan? In my experience I have a login control and in the OnAuthenticate event I would set Authenticated to false... ``` If CustomAuthenticate(Login1.UserName, Login1.Password) Then FormsAuthentication.RedirectFromLoginPage(Login1.UserName, False) Else e.Authenticated = False End...
null
CC BY-SA 2.5
null
2008-08-21T03:31:17.983
2008-08-21T03:31:17.983
null
null
952
null
19,293
2
null
19,280
1
null
No, but there are JavaScript libraries that can accomplish this for you. Just as an example, [Ext JS](http://extjs.com/) can be used to create a [message box dialog](http://extjs.com/deploy/dev/examples/message-box/msg-box.html).
null
CC BY-SA 2.5
null
2008-08-21T03:32:42.487
2008-08-21T03:32:42.487
null
null
1,377
null
19,292
2
null
18,783
1
null
``` SET NOCOUNT ON ``` Usually the first line inside my stored procedures, unless I actually need to use `@@ROWCOUNT`.
null
CC BY-SA 2.5
null
2008-08-21T03:31:48.543
2008-08-21T03:31:48.543
null
null
1,414
null
19,289
2
null
18,717
3
null
I think about it in terms of cost/benefit... In [MySQL](http://en.wikipedia.org/wiki/MySQL), adding a constraint is a single additional line of [DDL](http://en.wikipedia.org/wiki/Data_definition_language). It's just a handful of key words and a couple of seconds of thought. That's the only "cost" in my opinion... Tool...
null
CC BY-SA 3.0
null
2008-08-21T03:30:57.187
2013-08-10T19:35:33.933
2013-08-10T19:35:33.933
63,550
2,031
null
19,296
2
null
19,294
0
null
In this case, if you don't call the base OnInit, then the Init even will not fire. In general, it is best practice to ALWAYS call the base method, unless you specifically know that you do not want the base behaviour to occur. Whether its called at the start or the end depends on how you want things to work. In a case...
null
CC BY-SA 2.5
null
2008-08-21T03:38:41.770
2008-08-21T03:38:41.770
null
null
489
null
19,294
1
19,306
null
3
5,363
In my code behind I wire up my events like so: ``` protected override void OnInit(EventArgs e) { base.OnInit(e); btnUpdateUser.Click += btnUpateUserClick; } ``` I've done it this way because that's what I've seen in examples. - - - -
Calling base Methods When Overriding Page Level Events
CC BY-SA 3.0
0
2008-08-21T03:33:25.920
2013-08-02T20:42:45.480
2013-08-02T20:42:45.480
1,237,747
1,894
[ "asp.net", "events", "webforms" ]
19,299
2
null
19,294
0
null
Although the official framework design guidelines recommend otherwise, most class designers will actually make the OnXxx() method responsible for firing the actual event, like this: ``` protected virtual void OnClick(EventArgs e) { if (Click != null) Click(this, e); } ``` ... so if you inherit from the class and...
null
CC BY-SA 2.5
null
2008-08-21T03:41:20.097
2008-08-21T03:41:20.097
null
null
615
null
19,301
2
null
18,920
0
null
Eric, the document root is the folder in which your file is, wherever it may be.
null
CC BY-SA 2.5
null
2008-08-21T03:43:02.480
2008-08-21T03:43:02.480
null
null
431
null
19,295
1
19,308
null
6
12,764
I'd like to use a database to store i18n key/value pairs so we can modify / reload the i18n data at runtime. Has anyone done this? Or does anyone have an idea of how to implement this? I've read several threads on this, but I haven't seen a workable solution. I'm specifically refering to something that would work with...
Database backed i18n for java web-app
CC BY-SA 2.5
0
2008-08-21T03:36:38.110
2012-08-31T07:34:45.973
2008-08-21T04:06:17.510
1,310
1,310
[ "java", "internationalization" ]
19,309
2
null
19,236
1
null
You might also need to put path="/" in the <forms tag(s) I think. Sorry, its been a while since i've done this
null
CC BY-SA 2.5
null
2008-08-21T03:53:15.293
2008-08-21T03:53:15.293
null
null
489
null
19,307
2
null
19,280
2
null
Like everyone else above says, you're stuck with OK/Cancel using `confirm()`. I would like to recommend this [jQuery](http://jquery.com/) plugin though: [jqModal](http://dev.iceburg.net/jquery/jqModal/). I've used it on 3 recent projects and it has worked great for each one. Specifically check out this example: > 6)....
null
CC BY-SA 2.5
null
2008-08-21T03:48:47.113
2008-08-21T03:48:47.113
null
null
1,414
null
19,302
2
null
19,294
0
null
> official framework design guidelines recommend otherwise They do? I'm curious, i've always thought the opposite, and reading Framework Design Guidelines and running FxCop has only cemented my view. I was under the impression that events should always be fired from virtual OnXxx() methods, that take an EventArgs para...
null
CC BY-SA 2.5
null
2008-08-21T03:43:57.827
2008-08-21T03:43:57.827
null
null
489
null
19,317
2
null
18,082
37
null
Yeah, the built-in [isNaN(object)](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN) will be much faster than any regex parsing, because it's built-in and compiled, instead of interpreted on the fly. Although the results are somewhat different to what you're looking for ([try it](http://www.w...
null
CC BY-SA 3.0
null
2008-08-21T04:05:11.647
2013-08-08T14:39:20.787
2013-08-08T14:39:20.787
2,180,189
1,414
null
19,320
2
null
19,294
0
null
@Ch00k and @Scott I dunno - I like the On pattern myself. And yeah, I'm one of the people who are guilty of firing the event from that method. I think overriding the On* method and calling the base one is the way to go. Handling your own events seems wrong somehow.
null
CC BY-SA 2.5
null
2008-08-21T04:09:00.530
2008-08-21T04:09:00.530
null
null
615
null
19,306
2
null
19,294
3
null
I should clarify: The guidelines recommend that firing an event should involve calling a virtual "On" method, but they also say that if a derived class overrides that method and forgets to call the base method, the event should still fire. See the "Important Note" about halfway down [this page](http://msdn.microsoft....
null
CC BY-SA 2.5
null
2008-08-21T03:46:51.800
2008-08-21T03:46:51.800
null
null
615
null
19,325
2
null
19,096
2
null
I have used both, and concur with Ryan that the System.Net.Mime and sibling namespaces provide very similar functionality. If anything, I think you'll find that the .Net APIs are cleaner and easier to work with.
null
CC BY-SA 2.5
null
2008-08-21T04:16:48.543
2008-08-21T04:16:48.543
null
null
1,432
null
19,313
2
null
19,294
0
null
You probably are better off doing it that way, then this debate goes away. The article is interesting though, especially considering that the .NET Framework doesn't honour this guideline.
null
CC BY-SA 2.5
null
2008-08-21T03:57:19.823
2008-08-21T03:57:19.823
null
null
489
null
19,310
2
null
18,803
2
null
UML is useful, yes indeed! The main uses I've made of it were: - - - I only disagree with [Michael](https://stackoverflow.com/users/91/michael-stum) when he says that to him. I've used it on my small personal projects, and having them documented using UML saved me a lot of time when I came back to them seven mont...
null
CC BY-SA 2.5
null
2008-08-21T03:53:32.780
2008-08-21T03:53:32.780
2017-05-23T12:02:56.530
-1
431
null
19,316
2
null
19,236
8
null
> You might also need to put path="/" in the That was it! So, Summary, inorder todo this; In root web.config add: ``` <machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" /> ``` This must be done because by default it is "AutoGenerate,IsolateApps". Second, you must name the f...
null
CC BY-SA 2.5
null
2008-08-21T04:01:22.467
2008-08-21T04:01:22.467
null
null
1,965
null
19,314
1
19,344
null
14
9,847
I've been using WWF for a while as part of an internal call center application (ASP.NET), and while learning it was a good practice in understanding how a state machine based workflow system work, I am definitely not in love with WWF itself. In my opinion it is: 1. Overly complex, especially for use within web apps ...
Alternatives to Windows Workflow Foundation?
CC BY-SA 2.5
0
2008-08-21T03:58:11.507
2017-03-31T21:47:22.333
null
null
1,436
[ "asp.net", "workflow" ]
19,326
2
null
19,147
119
null
You could use the Mutex class, but you will soon find out that you will need to implement the code to pass the arguments and such yourself. Well, I learned a trick when programming in WinForms when I read [Chris Sell's book](http://sellsbrothers.com/wfbook/). This trick uses logic that is already available to us in t...
null
CC BY-SA 4.0
null
2008-08-21T04:17:57.887
2020-03-19T00:53:31.337
2020-03-19T00:53:31.337
1,117
1,117
null
19,333
2
null
19,314
0
null
Do you have the option to consider BizTalk Server?
null
CC BY-SA 2.5
null
2008-08-21T04:23:31.290
2008-08-21T04:23:31.290
null
null
380
null
19,330
2
null
19,201
3
null
I used AccuRev at a previous job and didn't have any problems with it, but I very much prefer Subversion (even without comparing the price difference). I remember the client GUI being pretty slow too. Also, I do recall that the GUI just called their command-line utilities to interface with the repository. So, it probab...
null
CC BY-SA 2.5
null
2008-08-21T04:21:20.530
2008-08-21T04:21:20.530
null
null
1,491
null
19,338
2
null
18,920
1
null
On a Mac, the document root is what you see in the window that appears after you double click on the main hard drive icon on your desktop. The temp folder needs to be in there for a browser to find the CSS file as you have it written in your code. Actually, you could also write the code like this: ``` <link href="fi...
null
CC BY-SA 2.5
null
2008-08-21T04:28:01.840
2008-08-21T04:28:01.840
null
null
null
null
19,324
2
null
19,318
0
null
I take it you have access to the Services code, not just the consuming client right? Just pull the namespace out of the XmlDocument as the first part of the method. Something like: ``` XmlDocument changeDocumentNamespace(XmlDocument doc, string newNamespace) { if (doc.DocumentElement.NamespaceURI.Length > 0)...
null
CC BY-SA 2.5
null
2008-08-21T04:14:48.660
2008-08-21T04:14:48.660
null
null
1,965
null
19,339
1
19,343
null
585
198,780
I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item. ``` original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] # and I want to become... result = (['a', 'b', 'c', 'd'], [1, 2, 3, 4]) ``` Is there a buil...
Transpose/Unzip Function (inverse of zip)?
CC BY-SA 3.0
0
2008-08-21T04:29:07.580
2023-02-02T09:58:45.880
2019-03-27T12:23:53.853
10,239,789
680
[ "python", "list", "matrix", "transpose" ]
19,343
2
null
19,339
891
null
In 2.x, [zip](http://docs.python.org/library/functions.html#zip) is its own inverse! Provided you [use the special * operator](https://stackoverflow.com/questions/36901). ``` >>> zip(*[('a', 1), ('b', 2), ('c', 3), ('d', 4)]) [('a', 'b', 'c', 'd'), (1, 2, 3, 4)] ``` This is equivalent to calling `zip` with each elemen...
null
CC BY-SA 4.0
null
2008-08-21T04:36:29.590
2023-01-14T08:42:34.000
2023-01-14T08:42:34.000
523,612
429
null
19,318
1
19,328
null
3
13,726
I have an ASP.NET webservice with along the lines of: ``` [WebService(Namespace = "http://internalservice.net/messageprocessing")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class ProvisioningService : WebService { [WebMethod] public XmlDocument ProcessMessage(Xml...
Calling ASP.NET web service from ASP using SOAPClient
CC BY-SA 2.5
0
2008-08-21T04:07:59.253
2011-02-21T17:33:34.723
2011-02-21T17:33:34.723
419
419
[ ".net", "asp.net", "web-services", "soap", "asp-classic" ]
19,308
2
null
19,295
2
null
Are you just asking how to store UTF-8/16 characters in a DB? in mysql it's just a matter of making sure you build with UTF8 support and setting that as the default, or specifying it at the column or table level. I've done this in oracle and mysql before. Create a table and cut and paste some i18n data into it and see ...
null
CC BY-SA 2.5
null
2008-08-21T03:48:51.590
2008-08-21T04:21:55.460
2008-08-21T04:21:55.460
2,031
2,031
null
19,347
1
19,372
null
10
892
At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to access the OpenGL bindings via GLUT. Does anyone have ...
What is the best way to go from Java/C# to C++?
CC BY-SA 2.5
0
2008-08-21T04:46:02.313
2013-11-18T05:13:03.563
2013-11-18T05:13:03.563
2,024,761
396
[ "c#", "java", "c++", "visual-studio" ]
19,351
2
null
19,347
4
null
If you already know Java/C# I'd recommend going directly to C instead of C++. According to the website, GLUT has the same bindings for C as C++ so you should be all set. Anyways, the best way to learn C is to purchase and read a copy of "The C Programming Language" and sit down with your C compiler and get your stuff t...
null
CC BY-SA 2.5
null
2008-08-21T04:51:20.443
2008-08-21T04:51:20.443
null
null
658
null
19,344
2
null
19,314
14
null
You could try [Simple State Machine](http://www.thefreakparade.com/2008/05/simplestatemachine-codeplex-project/). You would have to implement access control and background timers yourself, but that shouldn't be a big deal. SSM was also built out of frustration with WF. [There are some other state machine implementation...
null
CC BY-SA 2.5
null
2008-08-21T04:38:42.127
2008-08-21T04:38:42.127
null
null
541
null
19,328
2
null
19,318
0
null
I solved this: The SOAP client node was picking up the default namespace from: ``` <ProcessMessage xmlns="http://internalservice.net/messageprocessing"> ``` Adding an empty default namespace to the XML sent by the ASP client overrides this behaviour: ``` xmlMessage = "<request xmlns=''><task>....various xml</task...
null
CC BY-SA 2.5
null
2008-08-21T04:18:45.200
2011-02-21T17:31:25.740
2011-02-21T17:31:25.740
419
419
null
19,348
2
null
19,035
27
null
> JavaScript files should load sequentially so unless the scripts you are depending on are doing something unusual all you should need to do is load application.js after the other files. [Non-blocking JavaScript Downloads](http://yuiblog.com/blog/2008/07/22/non-blocking-scripts/) has some information about how scri...
null
CC BY-SA 2.5
null
2008-08-21T04:46:39.690
2008-08-21T04:46:39.690
null
null
1,654
null
19,329
2
null
18,077
11
null
How about this? ``` var mozborderAvailable = false; try { if (typeof(document.body.style.MozBorderRadius) !== "undefined") { mozborderAvailable = true; } } catch(err) {} ``` I tested it in Firefox 3 (true) and false in: Safari, IE7, and Opera. (Edit: better undefined test)
null
CC BY-SA 2.5
null
2008-08-21T04:20:47.817
2011-03-02T16:09:45.633
2011-03-02T16:09:45.633
1,414
1,414
null
19,353
1
19,373
null
32
32,256
I'm tasked with building a .NET client app to detect silence in a WAV files. Is this possible with the built-in Windows APIs? Or alternately, any good libraries out there to help with this?
Detecting audio silence in WAV files using C#
CC BY-SA 2.5
0
2008-08-21T04:56:33.380
2020-02-17T13:31:56.450
null
null
536
[ "c#", ".net", "audio" ]
19,359
2
null
19,355
0
null
I always make templates for my config files. As an example I use NAnt for the building of my projects. I have a file checked in called local.properties.xml.template. My NAnt build will warn the developer if local.properties.xml does not exist. Inside that file will be workstation specific settings. The template will ...
null
CC BY-SA 2.5
null
2008-08-21T05:02:51.040
2008-08-21T05:02:51.040
null
null
1,894
null
19,341
2
null
18,861
0
null
Even simpler: ``` var name_regex = /^\w+$/; ```
null
CC BY-SA 2.5
null
2008-08-21T04:31:29.367
2008-08-21T04:31:29.367
null
null
1,414
null
19,355
1
19,361
null
3
719
In a .NET project, say you have a configuration setting - like a connection string - stored in a app.config file, which is different for each developer on your team (they may be using a local SQL Server, or a specific server instance, or using a remote server, etc). How can you structure your solution so that each de...
How to manage Configuration Settings for each Developer
CC BY-SA 2.5
null
2008-08-21T04:59:53.700
2008-09-26T18:49:10.360
2008-09-26T18:49:10.360
2,134
708
[ ".net", "configuration-files" ]
19,358
1
34,213
null
1
995
Do you have any experience of designing a Real Shared-Nothing Architecture? Would you have some readings to recommend me?
Experience documentation about Shared Nothing Architecture
CC BY-SA 2.5
0
2008-08-21T05:02:08.310
2012-01-13T21:44:36.647
null
null
446,497
[ "architecture", "shared-nothing" ]
19,357
2
null
19,353
10
null
[http://www.codeproject.com/Articles/19590/WAVE-File-Processor-in-C](http://www.codeproject.com/Articles/19590/WAVE-File-Processor-in-C) This has all the code necessary to strip silence, and mix wave files. Enjoy.
null
CC BY-SA 3.0
null
2008-08-21T05:01:31.963
2012-12-23T09:28:27.213
2012-12-23T09:28:27.213
390,819
1,965
null