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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7,525 | 1 | 7,695 | null | 20 | 15,965 | So, I need some help. I am working on a project in C++. However, I think I have somehow managed to corrupt my heap. This is based on the fact that I added an `std::string` to a class and assigning it a value from another `std::string`:
```
std::string hello = "Hello, world.\n";
/* exampleString = "Hello, world.\n" wou... | Of Memory Management, Heap Corruption, and C++ | CC BY-SA 3.0 | 0 | 2008-08-11T04:52:50.800 | 2021-06-13T11:53:11.710 | 2021-06-13T11:53:11.710 | 5,459,839 | 61 | [
"c++",
"memory",
"stack",
"heap-memory"
] |
7,523 | 2 | null | 7,477 | 80 | null | Facebook does it, when you write on people's walls, but only resizes vertically.
Horizontal resize strikes me as being a mess, due to word-wrap, long lines, and so on, but vertical resize seems to be pretty safe and nice.
None of the Facebook-using-newbies I know have ever mentioned anything about it or been confused... | null | CC BY-SA 3.0 | null | 2008-08-11T04:49:33.930 | 2016-02-13T00:56:16.607 | 2016-02-13T00:56:16.607 | 63,550 | 234 | null |
7,540 | 1 | 7,570 | null | 11 | 2,612 | Recently I have been having issues with Firefox 3 on Ubuntu Hardy Heron.
I will click on a link and it will hang for a while. I don't know if its a bug in Firefox 3 or a page running too much client side JavaScript, but I would like to try and debug it a bit.
So, my question is "is there a way to have some kind of p... | Some kind of task manager for JavaScript in Firefox 3? | CC BY-SA 3.0 | null | 2008-08-11T05:24:33.593 | 2021-01-09T17:19:41.030 | 2016-07-02T03:24:33.073 | 3,604,745 | 122 | [
"javascript",
"firefox",
"memory",
"cpu"
] |
7,543 | 2 | null | 7,525 | 1 | null | It could be heap corruption, but it's just as likely to be stack corruption. Jim's right. We really need a bit more context. Those two lines of source don't tell us much in isolation. There could be any number of things causing this (which is the real joy of C/C++).
If you're comfortable posting your code, you cou... | null | CC BY-SA 2.5 | null | 2008-08-11T05:31:27.213 | 2008-08-11T05:31:27.213 | null | null | 872 | null |
7,539 | 1 | 7,561 | null | 63 | 87,868 | Recently I tried understanding the use of but failed to understand properly. Is it used for rounding in `java.math.BigDecimal`. If yes why does not it round the decimal digits but even mantissa part.
From API docs, I came to know that it follows the standard specified in `ANSI X3.274-1996` and `ANSI X3.274-1996/AM 1-... | Use of java.math.MathContext | CC BY-SA 4.0 | 0 | 2008-08-11T05:23:02.427 | 2018-08-13T14:41:31.967 | 2018-08-13T14:41:31.967 | 8,706,759 | 959 | [
"java",
"math",
"bigdecimal",
"mathcontext"
] |
7,547 | 2 | null | 7,535 | 19 | null | This can be done via SQL Enterprise Manager or like this:
```
ALTER DATABASE <database>
SET COMPATIBILITY_LEVEL = { 80 | 90 | 100 }
```
Use 90 for 2005 compatibility.
This replaces the functionality used for previous releases, the stored procedure .
| null | CC BY-SA 2.5 | null | 2008-08-11T05:35:06.177 | 2008-08-11T05:44:12.353 | 2008-08-11T05:44:12.353 | 224 | 224 | null |
7,555 | 2 | null | 7,472 | 2 | null | Here's another good resource from MSDN: [Data Binding Overview](http://msdn.microsoft.com/en-us/library/ms752347.aspx).
| null | CC BY-SA 2.5 | null | 2008-08-11T05:51:39.093 | 2008-08-11T05:51:39.093 | null | null | 373 | null |
7,551 | 1 | 7,618 | null | 839 | 315,349 | When designing a REST API or service are there any established best practices for dealing with security (Authentication, Authorization, Identity Management) ?
When building a SOAP API you have WS-Security as a guide and much literature exists on the topic. I have found less information about securing REST endpoints.
... | Best Practices for securing a REST API / web service | CC BY-SA 2.5 | 0 | 2008-08-11T05:44:42.803 | 2017-12-28T16:38:45.010 | 2014-07-14T22:18:32.153 | 3,017,003 | 541 | [
"wcf",
"security",
"rest",
"authorization",
"rest-security"
] |
7,549 | 2 | null | 7,525 | 1 | null | Your code as I can see has no errors. As has been said more context is needed.
If you haven't already tried, install gdb (the gcc debugger) and compile the program with -g. This will compile in debugging symbols which gdb can use. Once you have gdb installed run it with the program (gdb <your_program>). [This](http://w... | null | CC BY-SA 4.0 | null | 2008-08-11T05:38:47.090 | 2020-06-21T19:19:55.867 | 2020-06-21T19:19:55.867 | 9,780,149 | 716 | null |
7,557 | 2 | null | 5,527 | 2 | null | Instead of J#, I would rather prefer IKVM ([http://www.ikvm.net/](http://www.ikvm.net/)) to convert my JARs to .NET assemblies as well as access Java APIs in C#.
| null | CC BY-SA 2.5 | null | 2008-08-11T05:56:14.730 | 2008-08-11T05:56:14.730 | null | null | 959 | null |
7,550 | 2 | null | 7,539 | 5 | null | If I'm understanding you correctly, it sounds like you're expecting the MathContext to control how many digits should be kept after the decimal point. That's not what it's for. It specifies how many digits to keep, . So if you specify that you want 3 significant digits, that's all you're going to get.
For example, ... | null | CC BY-SA 2.5 | null | 2008-08-11T05:44:00.747 | 2008-08-11T05:44:00.747 | null | null | 872 | null |
7,558 | 1 | null | null | 2 | 4,348 | I am displaying a list of items using a SAP ABAP column tree model, basically a tree of folder and files, with columns.
I want to load the sub-nodes of folders dynamically, so I'm using the EXPAND_NO_CHILDREN event which is firing correctly.
Unfortunately, after I add the new nodes and items to the tree, the folder is ... | Column Tree Model doesn't expand node after EXPAND_NO_CHILDREN event | CC BY-SA 4.0 | null | 2008-08-11T06:00:22.333 | 2020-12-26T21:16:06.167 | 2020-12-26T21:16:06.167 | 9,150,270 | null | [
"events",
"treeview",
"abap"
] |
7,552 | 2 | null | 7,539 | 5 | null | It's not for fun. Actually I found some online example, which stated the use of `MathContext` to round the amounts/numbers stored in BigDecimal.
For example,
If `MathContext` is configured to have `precision = 2` and `rounding mode = ROUND_HALF_EVEN`
`BigDecimal Number = 0.5294`, is to
So I thought it is a newer ... | null | CC BY-SA 3.0 | null | 2008-08-11T05:45:35.173 | 2015-12-23T10:09:10.810 | 2015-12-23T10:09:10.810 | 113,962 | 959 | null |
7,562 | 2 | null | 7,551 | 118 | null | There are no standards for REST other than HTTP. There are established REST services out there. I suggest you take a peek at them and get a feel for how they work.
For example, we borrowed a lot of ideas from Amazon's S3 REST service when developing our own. But we opted not to use the more advanced security model ba... | null | CC BY-SA 2.5 | null | 2008-08-11T06:07:03.680 | 2010-11-01T13:47:00.177 | 2010-11-01T13:47:00.177 | 72,312 | 758 | null |
7,567 | 2 | null | 7,525 | 1 | null | > Also, I actually fixed the std::string problem. How? By replacing it with a vector, compiling, then replacing the string again. It was consistently crashing there, and that fixed even though it...couldn't. There's something nasty there, and I'm not sure what.
That sounds like you really did shake a chicken at it. I... | null | CC BY-SA 2.5 | null | 2008-08-11T06:26:06.853 | 2008-08-11T06:26:06.853 | null | null | 872 | null |
7,559 | 2 | null | 7,525 | 1 | null | The code was simply an example of where my program was failing (it was allocated on the stack, Jim). I'm not actually looking for 'what have I done wrong', but rather 'how do I diagnose what I've done wrong'. Teach a man to fish and all that. Though looking at the question, I haven't made that clear enough. Thank goodn... | null | CC BY-SA 2.5 | null | 2008-08-11T06:01:25.610 | 2008-08-11T06:16:46.217 | 2008-08-11T06:16:46.217 | 61 | 61 | null |
7,564 | 2 | null | 1,041 | 3 | null | Why don't you use Microsoft ATL's regex library? Kenny Kerr has written a [short article](http://weblogs.asp.net/kennykerr/archive/2008/07/18/visual-c-in-short-regular-expressions.aspx) on that recently.
> ATL includes a lightweight regular expression implementation. Although
originally part of Visual C++, it is now... | null | CC BY-SA 3.0 | null | 2008-08-11T06:13:15.927 | 2018-03-31T23:08:29.340 | 2018-03-31T23:08:29.340 | 1,466,970 | 837 | null |
7,576 | 2 | null | 6,210 | 0 | null | > [Adam Haile](https://stackoverflow.com/questions/6210/e-mail-notifications#6212) writes:> check out the System.Web.Mail namespace
By which you mean System.Net.Mail in .Net 2.0 and above :)
| null | CC BY-SA 2.5 | null | 2008-08-11T06:55:05.220 | 2008-08-11T06:55:05.220 | 2017-05-23T12:24:43.947 | -1 | 952 | null |
7,566 | 2 | null | 7,525 | 7 | null | Oh, if you want to know how to debug the problem, that's simple. First, get a dead chicken. Then, [start shaking it](http://c2.com/cgi/wiki?VoodooChickenCoding).
Seriously, I haven't found a consistent way to track these kinds of bugs down. Because there's so many potential problems, there's not a simple checklist ... | null | CC BY-SA 2.5 | null | 2008-08-11T06:20:21.810 | 2008-08-11T06:20:21.810 | null | null | 872 | null |
7,570 | 2 | null | 7,540 | 9 | null | It's probably the [awesome firefox3 fsync "bug"](http://shaver.off.net/diary/2008/05/25/fsyncers-and-curveballs/), which is a giant pile of fail.
In summary
- - - - -
| null | CC BY-SA 2.5 | null | 2008-08-11T06:35:58.160 | 2008-08-11T06:35:58.160 | null | null | 234 | null |
7,573 | 2 | null | 7,525 | 3 | null | Some places to start:
If you're on windows, and using visual C++6 (I hope to god nobody still uses it these days) it's implentation of std::string is not threadsafe, and can lead to this kind of thing.
[Here's an article I found which explains a lot of the common causes of memory leaks and corruption.](http://www.yol... | null | CC BY-SA 2.5 | null | 2008-08-11T06:49:15.777 | 2008-08-11T06:49:15.777 | null | null | 234 | null |
7,579 | 1 | 9,424,260 | null | 47 | 103,323 | In the SSW rules to better SQL Server Database there is an example of a full database maintenance plan: [SSW](http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterSQLServerDatabases.aspx#MaintenancePlan). In the example they run both a Reorganize Index and then a Rebuild Index and then Update Statistics. Is there any... | Reorganise index vs Rebuild Index in Sql Server Maintenance plan | CC BY-SA 2.5 | 0 | 2008-08-11T07:02:46.483 | 2016-01-27T10:39:28.347 | 2014-07-13T07:26:37.220 | 321,731 | 961 | [
"sql-server",
"rebuild",
"maintenance-plan",
"reorganize"
] |
7,587 | 2 | null | 6,210 | 0 | null | How about using the new Workflow components in .NET 3.0 (and 3.5)? That is what we use in combination with templates in my current project. The templates have the basic format and the tokens are replaced with user information.
| null | CC BY-SA 3.0 | null | 2008-08-11T07:33:18.730 | 2016-11-20T00:25:16.067 | 2016-11-20T00:25:16.067 | 6,392,939 | null | null |
7,584 | 2 | null | 7,525 | 1 | null | Run Purify.
It is a near-magical tool that will report when you are clobbering memory you shouldn't be touching, leaking memory by not freeing things, double-freeing, etc.
It works at the machine code level, so you don't even have to have the source code.
One of the most enjoyable vendor conference calls I was ever ... | null | CC BY-SA 2.5 | null | 2008-08-11T07:24:10.137 | 2008-08-11T07:24:10.137 | null | null | 116 | null |
7,591 | 2 | null | 7,586 | 0 | null | The cell location is an attached property - the value belongs to the TextBlock rather than Grid. However, since the property itself belongs to Grid, you need to use either the property definition field or the provided static functions.
```
TextBlock tb = new TextBlock();
//
// Locate tb in the second row, third column... | null | CC BY-SA 2.5 | null | 2008-08-11T07:39:44.490 | 2008-08-11T07:39:44.490 | null | null | 891 | null |
7,561 | 2 | null | 7,539 | 54 | null | @jatan
> Thanks for you answer. It makes sense. Can you please explain me MathContext in the context of BigDecimal#round method.
There's nothing special about `BigDecimal.round()` any other `BigDecimal` method. In all cases, the `MathContext` specifies the number of significant digits and the rounding technique. B... | null | CC BY-SA 2.5 | null | 2008-08-11T06:06:48.483 | 2008-08-11T06:06:48.483 | null | null | 872 | null |
7,597 | 2 | null | 7,592 | -1 | null | Is there a reason you can't just send the data to a page which handles sending the mail? It is pretty easy to send an email in most languages, so unless there's a strong reason to push it to client side, I would recommend that route.
| null | CC BY-SA 2.5 | null | 2008-08-11T07:50:53.953 | 2008-08-11T07:50:53.953 | null | null | 122 | null |
7,595 | 2 | null | 7,579 | 34 | null | The reorganize and rebuild are different things.
Reorganize: it's a defrag for indexes. Takes the existing index(es) and defragments the existing pages. However if the pages are not in a contiguous manner, they stays like before. Only the content of the pages are changing.
Rebuild: actually it drops the index and reb... | null | CC BY-SA 3.0 | null | 2008-08-11T07:44:54.637 | 2011-08-22T07:14:07.550 | 2011-08-22T07:14:07.550 | 284,240 | 968 | null |
7,586 | 1 | 7,590 | null | 8 | 4,028 | I was trying to get my head around XAML and thought that I would try writing some code.
Trying to add a grid with 6 by 6 column definitions then add a text block into one of the grid cells. I don't seem to be able to reference the cell that I want. There is no method on the grid that I can add the text block too. T... | How do I generate WPF controls through code | CC BY-SA 4.0 | null | 2008-08-11T07:26:46.903 | 2019-01-20T13:54:45.643 | 2019-01-20T13:54:45.643 | 567,854 | null | [
"c#",
".net",
"wpf",
"xaml"
] |
7,590 | 2 | null | 7,586 | 7 | null | WPF makes use of a funky thing called [attached properties](http://msdn.microsoft.com/en-us/library/ms749011.aspx). So in your XAML you might write this:
```
<TextBlock Grid.Row="0" Grid.Column="0" />
```
And this will effectively move the TextBlock into cell (0,0) of your grid.
In code this looks a little strange.... | null | CC BY-SA 2.5 | null | 2008-08-11T07:37:24.713 | 2008-08-11T07:42:16.497 | 2008-08-11T07:42:16.497 | 615 | 615 | null |
7,592 | 1 | 7,643 | null | 19 | 35,074 | I want to create a client side mail creator web page. I know the problems of using the mailto action in an html form (not standard, no default mail appication set on the client). But the web page isn't very important, and they don't care very much.
The mail created by the mailto action has the syntax:
> subject: unde... | Can I use JavaScript to create a client side email? | CC BY-SA 3.0 | 0 | 2008-08-11T07:39:51.433 | 2021-11-25T17:34:20.207 | 2012-01-31T16:20:25.940 | 4,714 | 518 | [
"javascript",
"email"
] |
7,599 | 2 | null | 7,596 | 4 | null | Class names should always be descriptive and self-explanatory. If you have multiple domains of responsibility for your classes then they should probably be refactored.
Likewise for you packages. They should be grouped by domain of responsibility. Every domain has it's own exceptions.
Generally don't sweat it until yo... | null | CC BY-SA 2.5 | null | 2008-08-11T08:00:58.830 | 2008-08-11T08:00:58.830 | null | null | 342 | null |
7,593 | 2 | null | 7,586 | 0 | null | Use attached properties of the Grid class.
in C#:
```
Grid.SetRow( cell, rownumber )
```
In XAML:
```
<TextBlock Grid.Row="1" />
```
Also, I would advice if you do not use dynamic grids, use the XAML markup language. I know, it has a learning curve, but once you mastered it, it is so much easier, especially ... | null | CC BY-SA 2.5 | null | 2008-08-11T07:39:52.757 | 2008-08-11T07:54:26.347 | 2008-08-11T07:54:26.347 | 900 | 900 | null |
7,607 | 2 | null | 4,246 | 3 | null | Another possibility is to use DTS or Integration Services (DTS for SQL Server 7 or 2000, SSIS for 2005 or higher). Both are from Microsoft, included in the Sql Server installation (in Standard edition at least) and have an FTP task and are designed for import/export jobs from Sql Server.
| null | CC BY-SA 2.5 | null | 2008-08-11T08:17:19.750 | 2008-08-11T08:17:19.750 | null | null | 961 | null |
7,603 | 1 | null | null | 5 | 7,802 | Can anyone point me to some decent introductions to WS-Security?
I'm looking for tutorials or something that provide a fairly gentle introduction to the subject, though I don't mind if it assumes basic knowledge of web services and SOAP. Most of the stuff I've seen so far is very technical and you need a lot of comple... | Where can I find some good WS-Security introductions and tutorials? | CC BY-SA 2.5 | 0 | 2008-08-11T08:10:27.423 | 2009-05-13T03:22:13.120 | 2008-08-23T19:16:17.463 | 2,134 | 886 | [
"web-services",
"ws-security"
] |
7,596 | 1 | 13,283 | null | 42 | 24,538 | First of all, I know how to build a Java application. But I have always been puzzled about where to put my classes. There are proponents for organizing the packages in a strictly domain oriented fashion, others separate by tier.
I myself have always had problems with
- -
So,
1. Where do you put your domain speci... | How should I structure a Java application, where do I put my classes? | CC BY-SA 3.0 | 0 | 2008-08-11T07:45:20.050 | 2018-10-16T17:11:27.253 | 2017-11-02T22:11:28.507 | 6,074,376 | 917 | [
"java",
"architecture"
] |
7,608 | 2 | null | 7,603 | 3 | null | I think the best introduction to the (any) subject are some good examples.
[This article](http://www.codeproject.com/KB/webservices/WS-Security.aspx) at codeProject gives a fairly easy to follow guide trough web service security for a .NET application.
| null | CC BY-SA 2.5 | null | 2008-08-11T08:20:01.007 | 2008-08-11T08:20:01.007 | null | null | 46 | null |
7,611 | 2 | null | 1,041 | 6 | null | I would second the recommendation for [PCRE](http://pcre.org). I have used it in C++ projects in Windows and it works great. It's free, even for building commercial software. It also implements something of a de facto standard regular expression language, which will be welcome to your users. PCRE is of course Perl-comp... | null | CC BY-SA 2.5 | null | 2008-08-11T08:25:13.337 | 2008-09-20T07:27:23.973 | null | null | 893 | null |
7,613 | 2 | null | 7,525 | 1 | null | One of the debugging techniques that I use frequently (except in cases of the most extreme weirdness) is to divide and conquer. If your program currently fails with some specific error, then divide it in half in some way and see if it still has the same error. Obviously the trick is to decide where to divide your progr... | null | CC BY-SA 2.5 | null | 2008-08-11T08:34:56.407 | 2008-08-11T08:34:56.407 | null | null | 893 | null |
7,616 | 2 | null | 7,231 | 0 | null | Thanks for the answer, great!
I did some research myself and found [ListNanny](http://www.advancedintellect.com/product.aspx?listnanny) - also super simple to use and tells you the type of bounce. Will write some proof of concept and see which one I like better...
| null | CC BY-SA 2.5 | null | 2008-08-11T08:43:18.963 | 2008-08-11T08:43:18.963 | null | null | 925 | null |
7,617 | 2 | null | 5,667 | 0 | null | Then you'll have to warp CURRENT in another function that you'll call from the first (but this is a hack on the previous hack ...).
| null | CC BY-SA 2.5 | null | 2008-08-11T08:43:31.583 | 2008-08-11T08:43:31.583 | null | null | 927 | null |
7,618 | 2 | null | 7,551 | 303 | null | As tweakt said, Amazon S3 is a good model to work with. Their request signatures do have some features (such as incorporating a timestamp) that help guard against both accidental and malicious request replaying.
The nice thing about HTTP Basic is that virtually all HTTP libraries support it. You will, of course, need ... | null | CC BY-SA 2.5 | null | 2008-08-11T08:45:13.343 | 2008-08-11T08:45:13.343 | null | null | 893 | null |
7,619 | 2 | null | 7,592 | 4 | null | With javascript alone, it's .
Javascript is not intended to do such things and is severely crippled in the way it can interact with anything other than the webbrowser it lives in, (for good reason!).
Think about it: a spammer writing a website with client side javascript which will automatically mail to thousands of... | null | CC BY-SA 2.5 | null | 2008-08-11T08:48:39.017 | 2008-08-11T08:48:39.017 | null | null | 46 | null |
7,610 | 2 | null | 7,596 | 3 | null | Use packages to group related functionality together.
Usually the top of your package tree is your domain name reversed (`com.domain.subdomain`) to guarantee uniqueness, and then usually there will be a package for your application. Then subdivide that by related area, so your `FileStorageStrategy` might go in, say, `... | null | CC BY-SA 2.5 | null | 2008-08-11T08:24:02.950 | 2008-08-11T08:24:02.950 | null | null | 588 | null |
7,614 | 1 | null | null | 1 | 987 | What is the best way of testing a function that throws on failure? Or testing a function that is fairly immune to failure?
For instance; I have a `I/O Completion Port` class that throws in the constructor if it can't initialise the port correctly. This uses the `Win32` function of `CreateIoCompletionPort` in the initi... | Testing a function that throws on failure | CC BY-SA 3.0 | null | 2008-08-11T08:36:39.460 | 2020-05-14T05:36:22.617 | 2018-03-13T17:20:41.433 | 1,936,366 | 342 | [
"c++",
"unit-testing",
"tdd"
] |
7,612 | 2 | null | 7,592 | 6 | null | You more or less only have two alternatives when sending mail via the browser..
1. make a page that takes user input, and allows them to send the mail via your web-server. You need some kind of server-side scripting for this.
2. use a mailto: link to trigger opening of the users registered mail client. This has the o... | null | CC BY-SA 2.5 | null | 2008-08-11T08:29:27.650 | 2008-08-11T09:26:08.177 | 2008-08-11T09:26:08.177 | 1 | 960 | null |
7,626 | 2 | null | 7,614 | 1 | null | You should consider writing your code in such a way that you can mock your I/O completion port. Make an interface/abstract class that exposes the methods you need on the I/O object, and write and test implementation that does things like it's supposed to (and an option to simulate failure perhaps).
AFAIK it's a common... | null | CC BY-SA 2.5 | null | 2008-08-11T08:57:54.270 | 2008-08-11T08:57:54.270 | null | null | 909 | null |
7,624 | 2 | null | 7,614 | 2 | null | It is definitely worthwhile to test failure conditions, both that your class properly throws an exception when you want it to and that exceptions are handled properly in the class.
This can easily be done if you are acting on an object passed in to the constructor... just pass in a mock. If not, I tend to prefer to h... | null | CC BY-SA 2.5 | null | 2008-08-11T08:57:26.097 | 2008-08-11T09:01:06.697 | 2008-08-11T09:01:06.697 | 122 | 122 | null |
7,635 | 2 | null | 7,579 | 8 | null | Exactly what [Biri](https://stackoverflow.com/questions/7579/reorganise-index-vs-rebuild-index-in-sql-server-maintenance-plan?sort=Votes#7595) said. Here is how I would reindex an entire database:
```
EXEC [sp_MSforeachtable] @command1="RAISERROR('DBCC DBREINDEX(''?'') ...',10,1) WITH NOWAIT DBCC DBREINDEX('?')"
```
| null | CC BY-SA 2.5 | null | 2008-08-11T09:17:41.640 | 2008-08-11T09:17:41.640 | 2017-05-23T11:54:15.770 | -1 | 383 | null |
7,622 | 1 | 7,636 | null | 173 | 291,020 | In C, are the shift operators (`<<`, `>>`) arithmetic or logical?
| Are the shift operators (<<, >>) arithmetic or logical in C? | CC BY-SA 3.0 | 0 | 2008-08-11T08:55:13.277 | 2018-03-09T17:35:51.247 | 2016-08-09T16:02:20.580 | 895,245 | 973 | [
"c",
"binary",
"bit-manipulation",
"bit-shift"
] |
7,632 | 2 | null | 7,622 | 184 | null | When shifting left, there is no difference between arithmetic and logical shift. When shifting right, the type of shift depends on the type of the value being shifted.
(As background for those readers unfamiliar with the difference, a "logical" right shift by 1 bit shifts all the bits to the right and fills in the lef... | null | CC BY-SA 2.5 | null | 2008-08-11T09:16:34.607 | 2008-08-11T09:16:34.607 | null | null | 893 | null |
7,636 | 2 | null | 7,622 | 116 | null | According to [K&R 2nd edition](https://rads.stackoverflow.com/amzn/click/com/0131103628) the results are implementation-dependent for right shifts of signed values.
[Wikipedia](http://en.wikipedia.org/wiki/Arithmetic_shift) says that C/C++ 'usually' implements an arithmetic shift on signed values.
Basically you need ... | null | CC BY-SA 3.0 | null | 2008-08-11T09:18:29.533 | 2016-10-09T17:43:54.990 | 2016-10-09T17:43:54.990 | 6,772,989 | 193 | null |
7,637 | 2 | null | 7,622 | 5 | null | Well, I looked [it up on wikipedia](http://en.wikipedia.org/wiki/Logical_shift), and they have this to say:
> C, however, has only one right shift
operator, >>. Many C compilers choose
which right shift to perform depending
on what type of integer is being
shifted; often signed integers are
shifted using the... | null | CC BY-SA 2.5 | null | 2008-08-11T09:18:52.247 | 2008-08-11T09:18:52.247 | null | null | 122 | null |
7,641 | 2 | null | 2,046 | 18 | null | Look into DB Unit. It is a Java library, but there must be a C# equivalent. It lets you prepare the database with a set of data so that you know what is in the database, then you can interface with DB Unit to see what is in the database. It can run against many database systems, so you can use your actual database s... | null | CC BY-SA 2.5 | null | 2008-08-11T09:40:44.607 | 2008-08-11T09:40:44.607 | null | null | 122 | null |
7,639 | 2 | null | 7,614 | 3 | null | If you are doing this in .NET, there is an ExpectedException attribute that you can add to your test:
```
[Test, ExpectedException(typeof(SpecificException), "Exception's specific message")]
public void TestWhichHasException()
{
CallMethodThatThrowsSpecificException();
}
```
Test will pass if the exception of th... | null | CC BY-SA 2.5 | null | 2008-08-11T09:30:32.643 | 2008-08-11T09:30:32.643 | null | null | 372 | null |
7,642 | 1 | 7,644 | null | 23 | 13,497 | Is there an official convention for naming private fields in VB.NET? For example, if I have a property called 'Foo', I normally call the private field '_Foo'. This seems to be frowned upon in the [Offical Guidelines](http://msdn.microsoft.com/en-us/library/ms229012.aspx):
"Do not use a prefix for field names. For ex... | Naming convention for VB.NET private fields | CC BY-SA 2.5 | 0 | 2008-08-11T09:41:11.373 | 2021-03-13T07:08:58.023 | null | null | 133 | [
"vb.net",
"convention"
] |
7,647 | 2 | null | 7,642 | 2 | null | I don't think there is an official naming convention, but i've seen that Microsoft use m_ in the Microsoft.VisualBasic dll (via reflector).
| null | CC BY-SA 2.5 | null | 2008-08-11T09:48:17.100 | 2008-08-11T09:48:17.100 | null | null | 961 | null |
7,646 | 2 | null | 7,642 | 3 | null | Official guidelines are just that -- guidelines. You can always go around them. That being said we usually prefix fields with an underscore in C# and VB.NET. This convention is quite common (and obviously, the Official Guidelines ignored).
Private fields can then be referenced without the "me" keyword (the "this" key... | null | CC BY-SA 2.5 | null | 2008-08-11T09:46:46.480 | 2008-08-11T09:46:46.480 | null | null | 372 | null |
7,644 | 2 | null | 7,642 | 21 | null | I still use the _ prefix in VB for private fields, so I'll have _foo as the private field and Foo as the property. I do this for c# as well and pretty much any code I write. Generally I wouldn't get too caught up in "what is the right way to do it" because there isn't really a "right" way (altho there are some very bad... | null | CC BY-SA 2.5 | null | 2008-08-11T09:45:27.967 | 2008-08-11T09:45:27.967 | null | null | 493 | null |
7,643 | 2 | null | 7,592 | 18 | null | What we used in a projet is a popup window that opens a mailto: link, it is the only way we found to compose a mail within the default mail client that works with all mail clients (at least all our clients used).
```
var addresses = "";//between the speech mark goes the receptient. Seperate addresses with a ;
var body... | null | CC BY-SA 3.0 | null | 2008-08-11T09:45:17.873 | 2011-10-11T19:32:54.403 | 2011-10-11T19:32:54.403 | -1 | 268 | null |
7,650 | 2 | null | 1,241 | 4 | null | Check out [asio](http://tenermerx.com/Asio/). It is a cross compatable c++ library for asyncronous IO. I am not sure if this would be useful for the server ( I have never tried to link a standard c++ DLL to a c# project) but for the client it would be useful.
We use it with our application, and it solved most of our I... | null | CC BY-SA 2.5 | null | 2008-08-11T10:00:06.437 | 2008-08-11T10:00:06.437 | null | null | 716 | null |
7,656 | 2 | null | 7,652 | 0 | null | First of all. Getting linq itself to work on 2.0 is out of the question. Its possible, but really not something to do outside a testing environment.
The closest you can get in terms of the ORM/Dynamic Querying part of it, is imho SubSonic, which I'll recommend for anyone stuck in C# 2.0
| null | CC BY-SA 2.5 | null | 2008-08-11T10:15:49.933 | 2008-08-11T10:15:49.933 | null | null | 960 | null |
7,653 | 2 | null | 7,652 | 0 | null | There's a way to reference LINQ in the .NET 2.0 Framework, but I have to warn you that it be against the terms of use/EULA of the framework:
[LINQ on the .NET 2.0 Runtime](https://stackoverflow.com/questions/2138/linq-on-the-net-20-runtime#2146)
| null | CC BY-SA 2.5 | null | 2008-08-11T10:09:27.153 | 2008-08-11T10:09:27.153 | 2017-05-23T11:54:01.217 | -1 | 372 | null |
7,651 | 1 | 7,657 | null | 171 | 236,540 | I have an array in Perl:
```
my @my_array = ("one","two","three","two","three");
```
How do I remove the duplicates from the array?
| How do I remove duplicate items from an array in Perl? | CC BY-SA 3.0 | 0 | 2008-08-11T10:04:32.093 | 2021-12-03T18:42:20.533 | 2014-12-25T19:57:31.240 | 223,226 | 381 | [
"perl",
"arrays",
"unique",
"duplicates"
] |
7,658 | 2 | null | 7,651 | 24 | null | My usual way of doing this is:
```
my %unique = ();
foreach my $item (@myarray)
{
$unique{$item} ++;
}
my @myuniquearray = keys %unique;
```
If you use a hash and add the items to the hash. You also have the bonus of knowing how many times each item appears in the list.
| null | CC BY-SA 3.0 | null | 2008-08-11T10:18:45.090 | 2014-07-20T16:35:58.380 | 2014-07-20T16:35:58.380 | 257,635 | 274 | null |
7,652 | 1 | 7,710 | null | 3 | 1,641 | I have a project that I'm currently working on but it currently only supports the .net framework 2.0. I love linq, but because of the framework version I can't use it. What I want isn't so much the ORM side of things, but the "queryability" (is that even a word?) of Linq.
So far the closest is [llblgen](http://www.ll... | Querying like Linq when you don't have Linq | CC BY-SA 3.0 | null | 2008-08-11T10:04:50.483 | 2018-04-05T20:59:11.340 | 2018-04-05T20:59:11.340 | 9,132,049 | 493 | [
"database",
"linq",
"orm"
] |
7,657 | 2 | null | 7,651 | 177 | null | You can do something like this as demonstrated in [perlfaq4](http://perldoc.perl.org/perlfaq4.html#How-can-I-remove-duplicate-elements-from-a-list-or-array%3f):
```
sub uniq {
my %seen;
grep !$seen{$_}++, @_;
}
my @array = qw(one two three two three);
my @filtered = uniq(@array);
print "@filtered\n";
```
O... | null | CC BY-SA 3.0 | null | 2008-08-11T10:16:22.770 | 2014-06-21T01:39:29.480 | 2014-06-21T01:39:29.480 | 1,733,163 | 893 | null |
7,663 | 2 | null | 7,662 | 53 | null |
1. No. A table should be named after the entity it represents. Person, not persons is how you would refer to whoever one of the records represents.
2. Again, same thing. The column FirstName really should not be called FirstNames. It all depends on what you want to represent with the column.
3. NO.
4. Yes. Case it for... | null | CC BY-SA 3.0 | null | 2008-08-11T10:35:10.643 | 2017-01-20T22:10:16.410 | 2017-01-20T22:10:16.410 | 428,241 | 960 | null |
7,662 | 1 | 7,724 | null | 899 | 675,952 | Whenever I design a database, I always wonder if there is a best way of naming an item in my database. Quite often I ask myself the following questions:
1. Should table names be plural?
2. Should column names be singular?
3. Should I prefix tables or columns?
4. Should I use any case in naming items?
Are there any... | Database, Table and Column Naming Conventions? | CC BY-SA 2.5 | 0 | 2008-08-11T10:27:22.780 | 2021-01-11T18:16:04.257 | 2011-09-29T14:40:48.863 | 27,637 | 383 | [
"database",
"database-design",
"language-agnostic",
"naming-conventions"
] |
7,661 | 1 | 32,551 | null | 10 | 23,110 | Searching for some sample code for converting a point in WGS84 coordinate system to a map position in Google Maps (pixel position), also supporting zoom levels.
If the codes is well commented, then it can also be in some other language.
You can also point me to a open source Java project :)
Some resources found:
[... | Java code for WGS84 to Google map position and back | CC BY-SA 3.0 | 0 | 2008-08-11T10:23:48.763 | 2020-06-23T07:38:34.270 | 2016-06-13T10:14:14.240 | 706 | 706 | [
"java",
"google-maps",
"mapping",
"wgs84"
] |
7,668 | 2 | null | 7,661 | 0 | null | Someone took the javascript code from Google Maps and ported it to python: [gmerc.py](http://code.google.com/p/gheat/source/browse/trunk/__/lib/python/gmerc.py)
I've used this and it works great.
| null | CC BY-SA 2.5 | null | 2008-08-11T10:58:11.080 | 2008-08-11T10:58:11.080 | null | null | 309,844 | null |
7,667 | 2 | null | 7,662 | 108 | null | Ok, since we're weighing in with opinion:
I believe that table names should be plural. Tables are a collection (a table) of entities. Each row represents a single entity, and the table represents the collection. So I would call a table of Person entities People (or Persons, whatever takes your fancy).
For those who l... | null | CC BY-SA 2.5 | null | 2008-08-11T10:49:03.687 | 2010-01-22T16:14:04.117 | 2010-01-22T16:14:04.117 | 1,450 | 615 | null |
7,665 | 1 | 7,666 | null | 254 | 208,125 | Given an absolute or relative path (in a Unix-like system), I would like to determine the full path of the target after resolving any intermediate symlinks. Bonus points for also resolving ~username notation at the same time.
If the target is a directory, it might be possible to chdir() into the directory and then cal... | How to resolve symbolic links in a shell script | CC BY-SA 2.5 | 0 | 2008-08-11T10:40:41.363 | 2022-08-15T11:37:23.650 | 2009-07-29T04:29:32.837 | 893 | 893 | [
"bash",
"shell",
"scripting",
"symlink"
] |
7,666 | 2 | null | 7,665 | 100 | null | According to the standards, `pwd -P` should return the path with symlinks resolved.
C function `char *getcwd(char *buf, size_t size)` from `unistd.h` should have the same behaviour.
[getcwd](http://www.opengroup.org/onlinepubs/009695399/functions/getcwd.html)
[pwd](http://www.opengroup.org/onlinepubs/009695399/utilit... | null | CC BY-SA 3.0 | null | 2008-08-11T10:48:19.260 | 2015-10-21T18:41:11.687 | 2015-10-21T18:41:11.687 | 45,375 | 964 | null |
7,672 | 2 | null | 7,662 | 11 | null | I think the best answer to each of those questions would be given by you and your team. It's far more important to have a naming convention then how exactly the naming convention is.
As there's no right answer to that, you should take some time (but not too much) and choose your own conventions and - the important p... | null | CC BY-SA 2.5 | null | 2008-08-11T11:14:11.937 | 2008-08-11T11:14:11.937 | null | null | 431 | null |
7,676 | 1 | null | null | 2 | 1,160 | Can it be done and if so, how?
| Replicating between SQL Server 2005 and SQL Server Compact Edition | CC BY-SA 3.0 | null | 2008-08-11T11:23:05.490 | 2020-06-23T11:21:32.017 | 2012-02-15T07:40:11.050 | 13,302 | 230 | [
"sql-server"
] |
7,669 | 2 | null | 7,664 | 6 | null | You can use a similar technique on Windows, you just need to use different words for the same concepts. :) This article: [http://msdn.microsoft.com/en-us/library/ms682499.aspx](http://msdn.microsoft.com/en-us/library/ms682499.aspx) uses a win32 pipe to handle I/O from another process, you just have to do the same thing... | null | CC BY-SA 2.5 | null | 2008-08-11T11:05:37.820 | 2008-08-11T11:05:37.820 | null | null | 893 | null |
7,673 | 2 | null | 7,665 | 3 | null | Common shell scripts often have to find their "home" directory even if they are invoked as a symlink. The script thus have to find their "real" position from just $0.
```
cat `mvn`
```
on my system prints a script containing the following, which should be a good hint at what you need.
```
if [ -z "$M2_HOME" ] ; the... | null | CC BY-SA 2.5 | null | 2008-08-11T11:17:23.803 | 2008-08-11T11:17:23.803 | null | null | 972 | null |
7,674 | 1 | 8,982 | null | 5 | 2,202 | We have a custom-built Flash-based video player that I maintain, and it needs to support preroll ads and ideally both progressive video playback and streaming depending on a server switch.
I've been working with the flvPlayback component but am finding myself a little out of my depth. Are there any good tutorials or r... | Best practices for building Flash video player | CC BY-SA 2.5 | null | 2008-08-11T11:17:36.547 | 2010-11-22T18:45:46.653 | 2010-11-22T18:45:46.653 | 137 | 137 | [
"flash",
"video"
] |
7,677 | 2 | null | 7,662 | 11 | null |
1. Definitely keep table names singular, person not people Same here No. I've seen some terrible prefixes, going so far as to state what were dealing with is a table (tbl_) or a user store procedure (usp_). This followed by the database name... Don't do it! Yes. I tend to PascalCase all my table names
| null | CC BY-SA 3.0 | null | 2008-08-11T11:24:50.823 | 2011-06-20T20:04:25.770 | 2011-06-20T20:04:25.770 | 57,611 | 977 | null |
7,682 | 2 | null | 7,664 | 3 | null | You have to remember that what MSVCRT calls "OS handles" are not Win32 handles, but another layer of handles added just to confuse you. MSVCRT tries to emulate the Unix handle numbers where `stdin` = 0, `stdout` = 1, `stderr` = 2 and so on. Win32 handles are numbered differently and their values always happen to be a m... | null | CC BY-SA 3.0 | null | 2008-08-11T11:39:21.853 | 2015-12-21T15:24:01.357 | 2015-12-21T15:24:01.357 | 5,348,281 | 893 | null |
7,679 | 2 | null | 7,661 | 3 | null | [GeoTools](http://web.archive.org/web/20090810085708/http://geotools.codehaus.org:80/) has code to transform to and from about any coordinate system you could imagine, and among them also Google Map's. It's also open source. However, it should also be pointed out that GeoTools is a library, so if you're looking someth... | null | CC BY-SA 4.0 | null | 2008-08-11T11:29:18.113 | 2020-06-23T07:38:34.270 | 2020-06-23T07:38:34.270 | 9,780,149 | 890 | null |
7,681 | 1 | 7,688 | null | 10 | 2,399 | What is the best way to verify/test that a text string is serialized to a byte array with a certain encoding?
In my case, I want to verify that an XML structure is serialized to a byte array with the UTF-8 encoding which is of variable character length. As an example, my current ugly procedure is to inject a character... | Test serialization encoding | CC BY-SA 2.5 | null | 2008-08-11T11:33:01.930 | 2013-01-09T05:53:18.357 | null | null | 972 | [
"java",
"xml",
"string",
"serialization",
"encoding"
] |
7,685 | 1 | null | null | 54 | 94,080 | I was recently brushing up on some fundamentals and found merge sorting a linked list to be a pretty good challenge. If you have a good implementation then show it off here.
| Merge Sort a Linked List | CC BY-SA 2.5 | 0 | 2008-08-11T11:43:27.230 | 2022-03-11T21:43:48.097 | 2012-04-10T15:44:38.583 | 1,630 | 608 | [
"algorithm",
"sorting",
"linked-list",
"mergesort"
] |
7,688 | 2 | null | 7,681 | 2 | null | Perhaps you could deserialise the byte array using a known encoding and ensure that (a) it doesn't throw any exceptions, and (b) deserialises to the original string. It seems that from your description of the scenario, you may not have the original string readily available. Might there be a way to create it?
| null | CC BY-SA 2.5 | null | 2008-08-11T11:46:40.030 | 2008-08-11T11:46:40.030 | null | null | 893 | null |
7,678 | 2 | null | 7,662 | 16 | null | My opinions on these are:
1) No, table names should be singular.
While it appears to make sense for the simple selection (`select * from Orders`) it makes less sense for the OO equivalent (`Orders x = new Orders`).
A table in a DB is really the set of that entity, it makes more sense once you're using set-logic:
``... | null | CC BY-SA 2.5 | null | 2008-08-11T11:27:56.230 | 2012-04-12T10:30:28.433 | 2012-04-12T10:30:28.433 | 905 | 905 | null |
7,687 | 2 | null | 7,662 | -4 | null | ```
--Example SQL
CREATE TABLE D001_Students
(
StudentID INTEGER CONSTRAINT nnD001_STID NOT NULL,
ChristianName NVARCHAR(255) CONSTRAINT nnD001_CHNA NOT NULL,
Surname NVARCHAR(255) CONSTRAINT nnD001_SURN NOT NULL,
CONSTRAINT pkD001 PRIMARY KEY(StudentID)
);
CREATE INDEX idxD001_STID on D001_Students;
... | null | CC BY-SA 2.5 | null | 2008-08-11T11:46:05.617 | 2008-08-11T11:46:05.617 | null | null | 978 | null |
7,696 | 2 | null | 7,676 | 2 | null | You can use Merge Replication. Theres a tutorial here [SQL Server Compact 3.5 How-to Tutorials](http://msdn.microsoft.com/en-us/sqlserver/bb219480.aspx) (Number 5).
| null | CC BY-SA 2.5 | null | 2008-08-11T11:59:47.553 | 2008-08-11T11:59:47.553 | null | null | 961 | null |
7,697 | 2 | null | 7,694 | 4 | null | MSDTC must be enabled on both systems, both server and client.
Also, make sure that there isn't a firewall between the systems that blocks RPC.
[DTCTest](http://www.sqldev.net/misc/DTCTest.htm) is a nice litt app that helps you to troubleshoot any other problems.
| null | CC BY-SA 2.5 | null | 2008-08-11T12:04:11.523 | 2008-08-11T12:04:11.523 | null | null | 960 | null |
7,698 | 2 | null | 7,681 | 0 | null | That's good.
You're right, I don't have the original string, since I'm testing a module that creates an XML document as a byte array. I didn't think about deserializing to a String with an expected encoding. That will do the trick.
| null | CC BY-SA 3.0 | null | 2008-08-11T12:05:03.427 | 2013-01-09T05:53:18.357 | 2013-01-09T05:53:18.357 | 1,471,203 | 972 | null |
7,700 | 2 | null | 1,584 | 1 | null | Remote shell doesn't solve the productivity issue. (It merely makes things possible.)
From what I've heard, everything that the future Microsoft GUI:s do will be possible to do with powershell since the GUI:s use the same API:s as those that are available from powershell.
Personally, I love cygwin but cygwin can not ... | null | CC BY-SA 2.5 | null | 2008-08-11T12:09:04.867 | 2008-11-03T18:15:19.357 | 2008-08-21T19:48:50.270 | 972 | 972 | null |
7,694 | 1 | 27,263,904 | null | 115 | 256,795 | Is this even a valid question? I have a .NET Windows app that is using MSTDC and it is throwing an exception:
> System.Transactions.TransactionManagerCommunicationException: Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for
network access in the security configuratio... | How do I enable MSDTC on SQL Server? | CC BY-SA 3.0 | 0 | 2008-08-11T11:57:17.480 | 2022-01-18T15:44:15.970 | 2015-08-05T23:11:53.143 | 109,702 | 230 | [
"sql-server",
"msdtc"
] |
7,664 | 1 | 7,669 | null | 6 | 11,689 | I am wrapping existing C++ code from a project in our own custom wrapper and I want to integrate it to our code with as few changes as possible. This code uses `fprintf` to print to in order to log / report errors.
I want to redirect this to an alternative place within the same process. On I have done this with a `... | Windows C++: How can I redirect stderr for calls to fprintf? | CC BY-SA 3.0 | 0 | 2008-08-11T10:38:51.570 | 2018-03-13T17:20:09.077 | 2018-03-13T17:20:09.077 | 1,936,366 | 912 | [
"c++",
"windows",
"redirect"
] |
7,701 | 2 | null | 7,694 | 104 | null | Do you even need MSDTC? The escalation you're experiencing is often caused by creating multiple connections within a single TransactionScope.
If you do need it then you need to enable it as outlined in the error message. On XP:
- - - -
| null | CC BY-SA 2.5 | null | 2008-08-11T12:10:05.363 | 2008-08-11T12:10:05.363 | null | null | 608 | null |
7,713 | 2 | null | 3,088 | 1 | null | Copy some simple code line by line and get them to read and interpret it as they go along. They will soon work it out. I started programming on an Acorn Electron with snippets of code from Acorn magazines. I had no idea about programming when I was 6, I used to copy the text, but gradually I learnt what the different w... | null | CC BY-SA 2.5 | null | 2008-08-11T12:23:24.247 | 2008-08-11T12:23:24.247 | null | null | 986 | null |
7,712 | 2 | null | 2,588 | 1 | null | If you're looking for high performance, you are going to want to avoid paging completely, so the page file size becomes less significant. Invest in as much RAM as feasible for the DB server.
| null | CC BY-SA 2.5 | null | 2008-08-11T12:22:31.097 | 2008-08-11T12:22:31.097 | null | null | 729 | null |
7,710 | 2 | null | 7,652 | 5 | null | Have a look at this:
[http://www.albahari.com/nutshell/linqbridge.html](http://www.albahari.com/nutshell/linqbridge.html)
Linq is several different things, and I'm not 100% sure which bits you want, but the above might be useful in some way. If you don't already have a book on Linq (I guess you don't), then I found ... | null | CC BY-SA 2.5 | null | 2008-08-11T12:20:36.327 | 2008-08-11T12:20:36.327 | null | null | 987 | null |
7,716 | 2 | null | 3,088 | 0 | null | I would recommend in first teaching the very basics that are used in almost every language, but doing so without a language. Outline all the basic concepts If-Else If-Else, Loops, Classes, Variable Types, Structures, etc. Everything that is the foundation of most languages. Then move onto really understanding Boolean, ... | null | CC BY-SA 2.5 | null | 2008-08-11T12:30:33.997 | 2008-08-11T12:30:33.997 | null | null | 567 | null |
7,717 | 2 | null | 7,269 | 0 | null | If I understand you correctly, the idea is to get a different "singleton" object for each caller object or "context".
One thing you can do is to create a thread-local global variable where you write the ID of the current context. (This can be done with AOP.) Then in the singleton getter, the context ID is fetched from ... | null | CC BY-SA 2.5 | null | 2008-08-11T12:32:02.480 | 2008-08-11T12:32:02.480 | null | null | 972 | null |
7,707 | 1 | 881,597 | null | 56 | 68,845 | I have an element which may contain very big amounts of data, but I don't want it to ruin the page layout, so I set `max-height: 100px` and `overflow:auto`, hoping for scrollbars to appear when the content does not fit.
It all works fine in Firefox and IE7, but IE8 behaves as if `overflow:hidden` was present instead ... | IE8 overflow:auto with max-height | CC BY-SA 3.0 | 0 | 2008-08-11T12:18:02.150 | 2016-01-14T19:09:35.757 | 2014-09-03T16:54:42.593 | 23,199 | 979 | [
"internet-explorer-8",
"overflow",
"css"
] |