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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41,034 | 2 | null | 40,302 | 2 | null | I have accomplished this by using reflection. Where I name the column from the Select statement of the object.
This assumes you have a Templated helper class. If you want to put it on the object yourself you can just replace all the T with the object.
This is an example:
```
private T ObjectFromRow(DataRow row)
{
... | null | CC BY-SA 2.5 | null | 2008-09-03T01:42:15.753 | 2008-09-03T01:42:15.753 | null | null | 2,469 | null |
41,049 | 2 | null | 40,966 | 10 | null | I've written lots of Javascript and window.onload is a way to do it. It is brittle and waits until asset of the page has loaded. So if one image takes forever or a resource doesn't timeout until 30 seconds, your code will not run before the user can see/manipulate the page.
Also, if another piece of Javascript decid... | null | CC BY-SA 2.5 | null | 2008-09-03T02:12:33.387 | 2008-09-03T02:12:33.387 | null | null | 956 | null |
41,053 | 2 | null | 41,050 | 0 | null | Keep it in a configuration file. Use a robust data access strategy provided by tools like NHibernate or Linq to Sql.
| null | CC BY-SA 2.5 | null | 2008-09-03T02:14:32.557 | 2008-09-03T02:14:32.557 | null | null | 2,676 | null |
41,052 | 2 | null | 40,230 | 3 | null | @SqlMenace
> > There are other problems with GUIDs, you see GUIDs are not sequential, so inserts will be scattered all over the place, this causes page splits and index fragmentation
Not true.
If the clustered index is another column ("inserted_on" springs to mind) then the inserts will be sequential and no page sp... | null | CC BY-SA 2.5 | null | 2008-09-03T02:14:23.600 | 2008-09-03T02:14:23.600 | null | null | 1,690 | null |
41,048 | 2 | null | 12,905 | 0 | null | Unfortunatly Bryan is probably right.
And I have tried to make a VS plugin for use with InfoPath development. It is very restrictive and hard to use. Not very effective for quick scripting work.
I have found [AutoHotKey](http://www.autohotkey.com/) to be the best ad hoc scripting tool for use with InfoPath. It does... | null | CC BY-SA 2.5 | null | 2008-09-03T02:11:55.573 | 2008-09-03T02:11:55.573 | null | null | 4,354 | null |
41,058 | 2 | null | 41,050 | 1 | null | I usually cache the connection string in a global configuration object in my application. This value is loaded up at the beginning of program execution from where ever it is stored -- file, encrypted file, config file, etc. ADO.NET is very good at caching connection objects to the database so I would not cache the Sq... | null | CC BY-SA 2.5 | null | 2008-09-03T02:19:27.863 | 2008-09-03T02:19:27.863 | null | null | 4,292 | null |
41,055 | 2 | null | 41,050 | 4 | null | I wouldn't cache the connection object, that will defeat the built-in connection pooling -- ADO.NET will handle connections (assuming you instantiate and close them) efficiently by itself.
As far as the connection string itself, you shouldn't need to cache it if you load it from connection -- the connection manager ob... | null | CC BY-SA 2.5 | null | 2008-09-03T02:18:12.173 | 2008-09-03T02:18:12.173 | null | null | 2,194 | null |
41,050 | 1 | 41,055 | null | 7 | 2,361 | I usually store my connectionstring in web.config or in the application settings of my Visual Studio project. The application I'm currently working on makes a lot of trips to the database which means it will look up the connectionstring every time. Should I be putting the connectionstring in the cache or should I be lo... | Where do you store your database connectionstring? | CC BY-SA 2.5 | 0 | 2008-09-03T02:12:34.527 | 2010-01-30T18:21:17.723 | 2008-09-03T02:37:05.823 | 202 | 202 | [
"asp.net"
] |
41,062 | 2 | null | 41,050 | 3 | null | The web.config is cached. But even if it wasn't, don't forget that ado.net maintains a connection pool - its not opening a new connection every time you make a call to the db.
| null | CC BY-SA 2.5 | null | 2008-09-03T02:21:37.703 | 2008-09-03T02:21:37.703 | null | null | 4,050 | null |
41,051 | 2 | null | 34,977 | 0 | null | Really you're only doing four calculations, so here than efficiency. My approach to make something like this more readable is to
1. Extract common code to a function
2. Put similar calculations together to make the patterns more obvious
3. Get rid of the intermediate variable print_zeroes and be explicit about the... | null | CC BY-SA 2.5 | null | 2008-09-03T02:14:08.080 | 2008-09-04T22:03:00.740 | 2008-09-04T22:03:00.740 | 4,343 | 4,343 | null |
41,059 | 2 | null | 41,045 | 30 | null | Since the objects of different classes will have different sizes, you would end up running into the slicing problem if you store them as values.
One reasonable solution is to store container safe smart pointers. I normally use boost::shared_ptr which is safe to store in a container. Note that std::auto_ptr is not.
``... | null | CC BY-SA 2.5 | null | 2008-09-03T02:19:53.260 | 2008-09-03T02:19:53.260 | null | null | 3,146 | null |
41,066 | 2 | null | 40,230 | 1 | null | Make sure to utilize guid.comb - takes care of the indexing stuff. If you are dealing with performance issues after that then you will be, in short order, an expert on scaling.
Another reason to use GUIDs is to enable database refactoring. Say you decide to apply polymorphism or inheritance or whatever to your Custo... | null | CC BY-SA 2.5 | null | 2008-09-03T02:25:53.247 | 2008-09-03T02:25:53.247 | null | null | 2,676 | null |
41,056 | 1 | 41,063 | null | 17 | 11,186 | I'm a long-time emacs user, and I'm now working about 1/2 time in Java.
What are the best emacs libraries for
1. Debugging Java
2. Code Completion/Intellisense
3. Javadoc browsing
?
| Best java tools for emacs | CC BY-SA 2.5 | 0 | 2008-09-03T02:18:15.650 | 2011-04-27T02:11:33.937 | null | null | 4,343 | [
"java",
"debugging",
"emacs",
"ide",
"javadoc"
] |
41,065 | 2 | null | 40,230 | 0 | null | @Portman By default PK == Clustered Index, creating a primary key constraint will automatically create a clustered index, you need to specify non clustered if you don't want it clustered.
| null | CC BY-SA 2.5 | null | 2008-09-03T02:24:41.313 | 2008-09-03T02:24:41.313 | null | null | 740 | null |
41,073 | 1 | 41,158 | null | 1 | 205 | After downloading all .NET framework symbols and sources using [NetMassDownloader](http://www.codeplex.com/NetMassDownloader), is it possible to setup the VS.NET 2005 for debugging into .NET 2.0 source files?
| .NET Mass Downloader with VS.NET 2005? | CC BY-SA 2.5 | 0 | 2008-09-03T02:29:03.673 | 2022-07-24T14:03:31.763 | 2018-10-19T08:22:49.120 | 7,109,869 | 4,171 | [
".net",
"visual-studio",
"debugging"
] |
41,061 | 2 | null | 40,230 | 1 | null | You're correct that this is an old problem, and it has two canonical solutions:
- Use unique identifiers as the primary key. Note that if you're concerned about readability you can roll your own unique identifier instead of using a GUID. A unique identifier will use information about the date and the machine to genera... | null | CC BY-SA 2.5 | null | 2008-09-03T02:21:22.943 | 2008-09-03T02:21:22.943 | null | null | 1,690 | null |
41,054 | 2 | null | 41,050 | 0 | null | From what I can recall the contents of the .config file are held in memory anyway... I'll get back to you.
Edit: What [HE](https://stackoverflow.com/questions/41050/where-do-you-store-your-connectionstring-should-it-be-cached#41055) said
| null | CC BY-SA 2.5 | null | 2008-09-03T02:16:40.070 | 2008-09-03T02:21:58.963 | 2017-05-23T12:01:17.740 | -1 | 952 | null |
41,074 | 2 | null | 41,045 | 2 | null | > Take a look at and
In C++ Programming Language, 3rd ed, Bjarne Stroustrup describes it on page 130. There's a whole section on this in Chapter 6.
You can recast your Parent class to Child class. This requires you to know when each one is which. In the book, Dr. Stroustrup talks about different techniques to avo... | null | CC BY-SA 2.5 | null | 2008-09-03T02:29:26.340 | 2008-09-03T02:29:26.340 | null | null | 2,284 | null |
41,069 | 2 | null | 41,024 | 1 | null | Here's an exceedingly lazy way to do it:
```
#!/usr/bin/ruby
require 'rubygems'
require 'fox16'
include Fox
theApp = FXApp.new
theMainWindow = FXMainWindow.new(theApp, "Hello")
theButton = FXButton.new(theMainWindow, "Hello, World!")
theButton.tipText = "Push Me!"
iconFile = File.open("icon.jpg", "rb")
theButton.i... | null | CC BY-SA 2.5 | null | 2008-09-03T02:26:42.323 | 2008-09-03T02:26:42.323 | null | null | 422 | null |
41,081 | 2 | null | 40,737 | 4 | null | We rolled our own at work using [RRDtool](http://oss.oetiker.ch/rrdtool/) (the data storage back end to tools like MRTG). We run a perl script every 5 minutes that takes a du per partition and stuffs it into an RRD database and then uses RRD's graph function to build graphs. It takes a while to igure out how to set u... | null | CC BY-SA 2.5 | null | 2008-09-03T02:33:25.163 | 2008-09-03T02:33:25.163 | null | null | 430 | null |
41,080 | 2 | null | 39,576 | 35 | null | Use SQL*Loader. It takes a little setting up, but if this isn't a one off, its worth it.
```
SQL> create table ldr_test (id number(10) primary key, description varchar2(20));
Table created.
SQL>
```
```
oracle-2% cat ldr_test.csv
1,Apple
2,Orange
3,Pear
oracle-2%
```
```
oracle-2% cat ldr_test.ctl
load data... | null | CC BY-SA 2.5 | null | 2008-09-03T02:32:46.443 | 2010-11-17T10:24:56.583 | 2010-11-17T10:24:56.583 | 2,257 | 3,839 | null |
41,088 | 2 | null | 40,193 | -1 | null | Lots of other good solutions here, but in the interest of completeness:
```
echo *
```
| null | CC BY-SA 2.5 | null | 2008-09-03T02:38:57.160 | 2008-09-03T02:38:57.160 | null | null | 430 | null |
41,090 | 2 | null | 40,994 | 1 | null | The speed initially seemed substantially improved. One interesting thing is that it keeps locking up the Google REader tab, it's gotten the sad-face at least 5 times over this morning...
| null | CC BY-SA 2.5 | null | 2008-09-03T02:39:52.870 | 2008-09-03T02:39:52.870 | null | null | 4,357 | null |
41,071 | 2 | null | 23,930 | 34 | null |
# Whitespace
It was hard to get it to show here properly, but now I tried copying it from the preview and it works. You need to input the number and press enter.
| null | CC BY-SA 2.5 | null | 2008-09-03T02:28:05.517 | 2008-09-03T02:28:05.517 | null | null | 1,815 | null |
41,063 | 2 | null | 41,056 | 12 | null | I've used [JDEE](http://jdee.sourceforge.net/) on several projects. It handles Code Completion. I've never used it for debugging or browsing docs, but it's a big step up from a basic text editor.
| null | CC BY-SA 2.5 | null | 2008-09-03T02:22:04.237 | 2008-09-03T02:22:04.237 | null | null | 3,535 | null |
41,097 | 1 | 41,931 | null | 1 | 427 | The question sort of says it all.
Whether it's for code testing purposes, or you're modeling a real-world process, or you're trying to impress a loved one, what are some algorithms that folks use to generate interesting time series data? Are there any good resources out there with a consolidated list? No constraints o... | What are some compact algorithms for generating interesting time series data? | CC BY-SA 2.5 | 0 | 2008-09-03T02:45:08.863 | 2009-09-14T11:38:30.040 | 2009-09-14T11:38:30.040 | 144,157 | 4,069 | [
"algorithm",
"language-agnostic",
"time-series"
] |
41,091 | 2 | null | 39,438 | 1 | null | @hamishmcn
Generally that's a bad idea.. Temporary tables in oracle should just be created and left (unless its a once off/very rarely used). The contents of the temporary table is local to each session and truncated when the session is closed. There is little point in paying the cost of creating/dropping the temporar... | null | CC BY-SA 2.5 | null | 2008-09-03T02:41:25.970 | 2008-09-03T02:41:25.970 | null | null | 3,839 | null |
41,102 | 2 | null | 40,773 | 6 | null | I have to agree, Fogbugz is probably the best out there. I have used both the hosted version and the purchased version which I hosted. It is top-notch.
| null | CC BY-SA 2.5 | null | 2008-09-03T02:56:29.257 | 2008-09-03T02:56:29.257 | null | null | 2,305 | null |
41,100 | 2 | null | 39,438 | 3 | null | @hamishcmcn
Your assertion that '' == Null is simply not true. In the relational world Null should only ever be read to mean "I don't know". The only result you will get from Oracle (and most other decent databases) when you compare a value to Null is 'False'.
Off the top of my head the major differences between SQL ... | null | CC BY-SA 2.5 | null | 2008-09-03T02:52:17.677 | 2008-09-03T02:52:17.677 | null | null | 2,661 | null |
41,098 | 2 | null | 17,922 | 1 | null | Lutz Roeder (of Reflector fame) has a WYSIWYG HTML editor in .NET on his site here: [http://www.lutzroeder.com/dotnet/](http://www.lutzroeder.com/dotnet/). Check out the download called "writer". I haven't used it myself, but it was the first thing that popped into my mind.
| null | CC BY-SA 2.5 | null | 2008-09-03T02:51:06.587 | 2008-09-03T02:51:06.587 | null | null | 2,655 | null |
41,082 | 2 | null | 40,773 | 0 | null | I realize that FOSS is your primary desire and I definitely agree with this. If I were to limit myself to FOSS, I would go with RT 3.8, [http://blog.bestpractical.com/2008/07/today-were-rele.html#screenshots](http://blog.bestpractical.com/2008/07/today-were-rele.html#screenshots)
However, if you are willing to entert... | null | CC BY-SA 2.5 | null | 2008-09-03T02:33:37.500 | 2008-09-03T02:33:37.500 | null | null | 2,519 | null |
41,089 | 1 | 41,521 | null | 2 | 3,924 | I have a vb6 form with an ocx control on it. The ocx control has a button on it that I want to press from code. How do I do this?
I have:
```
Dim b As CommandButton
Set b = ocx.GetButton("btnPrint")
SendMessage ocx.hwnd, WM_COMMAND, GetWindowLong(b.hwnd, GWL_ID), b.hwnd
```
but it doesn't seem to work.
| How do I click a button on a vb6 form? | CC BY-SA 2.5 | 0 | 2008-09-03T02:39:52.197 | 2017-08-20T23:07:21.153 | null | null | 4,495 | [
"vb6"
] |
41,103 | 2 | null | 41,045 | 5 | null | You might also consider [boost::any](http://www.boost.org/doc/libs/1_36_0/doc/html/any.html). I've used it for heterogeneous containers. When reading the value back, you need to perform an any_cast. It will throw a bad_any_cast if it fails. If that happens, you can catch and move on to the next type.
I it will throw ... | null | CC BY-SA 2.5 | null | 2008-09-03T02:56:35.607 | 2008-09-03T12:02:36.323 | 2008-09-03T12:02:36.323 | 4,069 | 4,069 | null |
41,119 | 2 | null | 16,969 | -1 | null | Sounds like you're trying to do configuration control with a source code control system.
Subversion my not be the right choice, since it's really for source code (ascii files) and build dependencies, not executable files (binary) and run-time dependencies.
My guess is you really need an installer:
[http://en.wikipedi... | null | CC BY-SA 2.5 | null | 2008-09-03T03:11:23.073 | 2008-09-03T03:11:23.073 | null | null | 4,343 | null |
41,087 | 2 | null | 39,996 | 5 | null | It depends on how you have your OPC client configured to pull data. When you subscribe to a group in OPC, you get to specify a refresh rate. This might default to 1s or even 5s, depending on the OPC client. There's also a limit the OPC server might put on the frequency of updated data. This only applies if you have... | null | CC BY-SA 2.5 | null | 2008-09-03T02:36:46.060 | 2008-09-03T02:36:46.060 | null | null | 2,655 | null |
41,120 | 2 | null | 41,097 | 2 | null | Don't have an answer for the algorithm part but you can see how "realistic" your data is with [Benford's law](http://www.kirix.com/blog/2008/07/22/fun-and-fraud-detection-with-benfords-law/)
| null | CC BY-SA 2.5 | null | 2008-09-03T03:12:41.637 | 2008-09-03T03:12:41.637 | null | null | 370 | null |
41,086 | 2 | null | 8,284 | 1 | null | Try, it has support for vista style Icons
Axialis IconWorkshop Lite for VS 2008
[http://www.axialis.com/download/iwlite.html](http://www.axialis.com/download/iwlite.html)
Axialis Software, in association with Microsoft Corporation, presents Axialis IconWorkshop Lite for Visual Studio 2008:
```
* 100% Free for Visua... | null | CC BY-SA 2.5 | null | 2008-09-03T02:36:12.487 | 2008-09-03T02:36:12.487 | null | null | 2,062 | null |
41,106 | 2 | null | 41,045 | 2 | null | Most container types want to abstract the particular storage strategy, be it linked list, vector, tree-based or what have you. For this reason, you're going to have trouble with both possessing and consuming the aforementioned cake (i.e., the cake is lie (NB: someone had to make this joke)).
So what to do? Well the... | null | CC BY-SA 2.5 | null | 2008-09-03T02:58:41.920 | 2008-09-03T02:58:41.920 | null | null | null | null |
41,110 | 2 | null | 20,059 | 0 | null | There's a good article about this over on [familyinternet.about.com](http://familyinternet.about.com/od/resources/tp/programmingforkids.htm).
| null | CC BY-SA 2.5 | null | 2008-09-03T03:01:55.513 | 2008-09-03T03:01:55.513 | null | null | 2,284 | null |
41,123 | 2 | null | 41,089 | 1 | null | If you have access to the OCX code, you could expose the associated event handler and invoke it directly.
Don't know if an equivalent of .Net Button's Click() method existed back in VB6 days
| null | CC BY-SA 2.5 | null | 2008-09-03T03:15:52.533 | 2008-09-03T03:15:52.533 | null | null | 1,695 | null |
41,128 | 2 | null | 40,863 | 7 | null | Here's a great screen cast where Billy Hollis goes into many of these issues:
[http://www.dnrtv.com/default.aspx?showNum=115](http://www.dnrtv.com/default.aspx?showNum=115)
| null | CC BY-SA 2.5 | null | 2008-09-03T03:19:26.813 | 2008-09-03T03:19:26.813 | null | null | 1,433 | null |
41,107 | 1 | 41,156 | null | 1,943 | 1,622,907 | I've been looking for a Java algorithm to generate a pseudo-random alpha-numeric string. In my situation it would be used as a unique session/key identifier that would "likely" be unique over `500K+` generation (my needs don't really require anything much more sophisticated).
Ideally, I would be able to specify a ... | How to generate a random alpha-numeric string | CC BY-SA 4.0 | 0 | 2008-09-03T02:58:43.073 | 2023-01-17T03:37:32.283 | 2020-11-12T15:36:38.793 | 63,550 | 3,803 | [
"java",
"string",
"random",
"alphanumeric"
] |
41,122 | 2 | null | 39,438 | 1 | null | What you have asked here is a huge topic, especially since you haven't really said what you are using the database for (eg, are you going to be going from TSQL -> PL/SQL or just changing the backend database your java application is connected to?)
If you are serious about using your database choice to its potiential, ... | null | CC BY-SA 2.5 | null | 2008-09-03T03:14:47.357 | 2008-09-03T03:14:47.357 | null | null | 3,839 | null |
41,135 | 2 | null | 40,884 | 0 | null | What you want to do is called "Serializing" your object, and .Net has a few different ways to go about it. One is the XmlSerializer class in the System.Xml.Serialization namespace.
Another is in the System.Runtime.Serialization namespace. This has support for a SOAP formatter, a binary formatter, and a base class yo... | null | CC BY-SA 2.5 | null | 2008-09-03T03:25:32.213 | 2008-09-03T03:25:32.213 | null | null | 3,043 | null |
41,136 | 2 | null | 20,059 | 1 | null | I think [Context Free Art](http://www.contextfreeart.org/index.html) might be a good choice, with output of graphics, it makes it a lot of fun learning about [context-free grammar](http://en.wikipedia.org/wiki/Context-free_grammar).
| null | CC BY-SA 2.5 | null | 2008-09-03T03:25:32.650 | 2008-09-03T03:25:32.650 | null | null | 788 | null |
41,145 | 2 | null | 19,995 | 4 | null | Comet was actually coined by Alex Russell from Dojo Toolkit ( [http://www.dojotoolkit.org](http://www.dojotoolkit.org) ). Here is a link to more infomration [http://cometdproject.dojotoolkit.org/](http://cometdproject.dojotoolkit.org/)
| null | CC BY-SA 2.5 | null | 2008-09-03T03:42:40.910 | 2008-09-03T03:42:40.910 | null | null | 4,231 | null |
41,131 | 2 | null | 40,994 | 0 | null | I ran the aformentioned sunspider javascript benchmark on FF3 and Chrome and got over a 2x speed increase moving from [FF3](http://tinyurl.com/69tlhc) to [Chrome](http://tinyurl.com/5dv274) (on a Vista 64 system - Core 2 duo 6600 2.4GHz, 2GB RAM).
The links above show you my results - I'm very interested to see what, ... | null | CC BY-SA 2.5 | null | 2008-09-03T03:21:10.600 | 2008-09-03T03:53:03.880 | 2008-09-03T03:53:03.880 | 2,915 | 2,915 | null |
41,149 | 2 | null | 40,680 | 160 | null | I usually use `Request.Url.ToString()` to get the full url (including querystring), no concatenation required.
| null | CC BY-SA 2.5 | null | 2008-09-03T03:49:18.537 | 2008-09-03T03:49:18.537 | null | null | 1,414 | null |
41,142 | 2 | null | 40,361 | 1 | null | It can be done with XPath 1.0. Say you have
```
<foo>
<bar/>
</foo>
```
If you want to test if `foo` has a `baz` child,
```
substring("N/A", 4 * number(boolean(/foo/baz)))
```
will return "N/A" if the expression `/foo/baz` returns an empty node-set, otherwise it returns an empty string.
| null | CC BY-SA 2.5 | null | 2008-09-03T03:40:27.683 | 2008-12-27T16:17:17.520 | null | null | 2,679 | null |
41,134 | 1 | null | null | 7 | 3,227 | Here is the deal.
$ gem --version
> 1.1.0
$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
> Bulk updating Gem source index for:
[http://gems.rubyforge.org/](http://gems.rubyforge.org/) ERROR:
could not find mysql locally or in a
repository
$ sudo gem update
> Updating ins... | How do I install the mysql ruby gem under OS X 10.5.4 | CC BY-SA 2.5 | 0 | 2008-09-03T03:23:00.910 | 2009-07-19T11:09:03.890 | 2008-09-03T04:42:38.487 | 1,797 | 1,797 | [
"mysql",
"ruby",
"rubygems"
] |
41,146 | 2 | null | 40,730 | 2 | null |
---
Personally, I don't see the point of making it a property at all if you're not going to do anything at all beyond the auto-property. Just leave it as a field. The encapsulation benefit for these item are just red herrings, because there's nothing behind them to encapsulate. If you ever need to change the un... | null | CC BY-SA 4.0 | null | 2008-09-03T03:43:20.533 | 2021-08-18T13:21:08.267 | 2021-08-18T13:21:08.267 | 3,043 | 3,043 | null |
41,141 | 2 | null | 33,079 | 5 | null | Keep in mind that [nearly 10%](http://www.vischeck.com/faq/#c0_f5) of the male population of the world have some significant form of color blindness. You should always consider this when choosing interface colors (especially if you need capital - guess what? 1 in 10 male investors might not see your red dots on the gr... | null | CC BY-SA 2.5 | null | 2008-09-03T03:32:47.720 | 2008-09-03T03:32:47.720 | null | null | 2,915 | null |
41,132 | 2 | null | 40,322 | 17 | null | The first thing I would check is to make sure that your normal login is mapped to a role with the correct system-level permissions. The item-level role definitions don't make a difference for the "Report Builder" button.
From the browser-based report manager interface:
- - - - - - -
The forms are pretty straightfo... | null | CC BY-SA 2.5 | null | 2008-09-03T03:21:55.670 | 2008-09-03T03:21:55.670 | null | null | 4,154 | null |
41,155 | 1 | 545,754 | null | 45 | 112,026 | In the process of developing my first WCF service and when I try to use it I get "Method not Allowed" with no other explanation.
I've got my interface set up with the ServiceContract and OperationContract:
```
[OperationContract]
void FileUpload(UploadedFile file);
```
Along with the actual method:
```
public... | WCF Service Returning "Method Not Allowed" | CC BY-SA 2.5 | 0 | 2008-09-03T04:03:49.313 | 2020-06-06T21:57:05.450 | 2009-02-13T12:44:25.217 | 18,154 | 831 | [
".net",
"wcf",
"web-services"
] |
41,158 | 2 | null | 41,073 | 3 | null | It looks like you can [download the symbols](https://web.archive.org/web/20160707213703/http://geekswithblogs.net/sdorman/archive/2007/05/23/Debugging-in-Visual-Studio-2005-with-a-Symbol-Server.aspx), though they're not available for browsing.
| null | CC BY-SA 4.0 | null | 2008-09-03T04:09:08.177 | 2022-07-24T14:03:31.763 | 2022-07-24T14:03:31.763 | 4,751,173 | 536 | null |
41,154 | 2 | null | 24,901 | 6 | null | I would like to point out an excellent post by Andrew Koenig on Code Talk very recently.
[http://dobbscodetalk.com/index.php?option=com_myblog&show=Efficiency-versus-intent.html&Itemid=29](http://dobbscodetalk.com/index.php?option=com_myblog&show=Efficiency-versus-intent.html&Itemid=29)
At our company also we use con... | null | CC BY-SA 2.5 | null | 2008-09-03T04:02:31.983 | 2008-09-03T04:02:31.983 | null | null | null | null |
41,157 | 2 | null | 40,376 | 14 | null | The JVM responds to signals on its own. Some will cause the JVM to shutdown gracefully, which includes running shutdown hooks. Other signals will cause the JVM to abort without running shutdown hooks.
Shutdown hooks are added using [Runtime.addShutdownHook(Thread)](http://java.sun.com/javase/6/docs/api/java/lang/Runti... | null | CC BY-SA 3.0 | null | 2008-09-03T04:08:58.537 | 2012-10-30T11:47:33.970 | 2012-10-30T11:47:33.970 | 1,374,678 | 816 | null |
41,159 | 1 | 41,175 | null | 5 | 14,779 | Given the following:
```
List<List<Option>> optionLists;
```
what would be a quick way to determine the subset of Option objects that appear in all N lists? Equality is determined through some string property such as option1.Value == option2.Value.
So we should end up with `List<Option>` where each item appears onl... | Fastest way to find common items across multiple lists in C# | CC BY-SA 2.5 | null | 2008-09-03T04:13:46.607 | 2019-08-06T15:41:57.117 | 2008-09-03T18:22:30.187 | 3,615 | 3,615 | [
"c#"
] |
41,152 | 2 | null | 40,361 | 5 | null | It can be done but only if the return value when the node does exist is . The XPath
```
substring(concat("N/A", /foo/baz), 4 * number(boolean(/foo/baz)))
```
will return the string value of the `baz` element if it exists, otherwise the string "N/A".
To generalize the approach:
```
substring(concat($null-value, $no... | null | CC BY-SA 2.5 | null | 2008-09-03T03:58:06.863 | 2008-12-27T16:17:17.520 | 2008-09-03T07:49:22.750 | 2,679 | 2,679 | null |
41,126 | 2 | null | 40,884 | 0 | null | @aku, lomaxx and bdukes - your solutions are what I was looking for.
@1800 INFORMATION - while i appreciate your stance on the matter, this is a special case of data that I get from a webservice that gets refreshed only about once a month. I dont need the data persisted in db form because thats what the webservice is... | null | CC BY-SA 2.5 | null | 2008-09-03T03:18:24.820 | 2008-09-03T03:18:24.820 | null | null | 777 | null |
41,164 | 2 | null | 37,969 | 19 | null | This answer doesn't apply to all JMS brokers, but if you happen to be using [Apache ActiveMQ](http://activemq.apache.org/), the web-based admin console (by default at [http://localhost:8161/admin](http://localhost:8161/admin)) allows you to manually send text messages to topics or queues. It's handy for debugging.
| null | CC BY-SA 2.5 | null | 2008-09-03T04:19:36.640 | 2008-09-03T04:19:36.640 | null | null | 816 | null |
41,165 | 2 | null | 40,884 | 0 | null | I'm backing @1800 Information on this one.
Serializing objects for long-term storage is never a good idea
> while i appreciate your stance on the matter, this is a special case of data that I get from a webservice that gets refreshed only about once a month.
It's not a matter of stances. It's because one day, you wil... | null | CC BY-SA 2.5 | null | 2008-09-03T04:20:14.140 | 2008-09-03T04:20:14.140 | null | null | 234 | null |
41,160 | 2 | null | 41,134 | 3 | null | Step 1
```
gem update --system
```
It probably won't provide the fix itself, but You want rubygems 1.2. It will save you about 8 days waiting as it doesn't need to do the 'Bulk updating 102304 gems' rubbish any more
It actually looks like it can't find the mysql gem at all, let alone download or install it. You're... | null | CC BY-SA 2.5 | null | 2008-09-03T04:15:04.620 | 2008-09-03T04:15:04.620 | null | null | 234 | null |
41,172 | 2 | null | 40,346 | 0 | null | I like Embedded Systems. Even if you don't program for embedded systems, the software articles are excellent. [http://www.embedded.com/](http://www.embedded.com/)
| null | CC BY-SA 2.5 | null | 2008-09-03T04:29:35.540 | 2008-09-03T04:29:35.540 | null | null | 835 | null |
41,162 | 1 | 41,173 | null | 12 | 31,479 | I'd like to indicate to the user of a web app that a long-running task is being performed. Once upon a time, this concept would have been communicated to the user by displaying an hourglass. Nowadays, it seems to be an animated spinning circle. (e.g., when you are loading a new tab in Firefox, or booting in Mac OS X. ... | Javascript spinning wait hourglass-type thing | CC BY-SA 2.5 | 0 | 2008-09-03T04:18:18.840 | 2018-04-20T08:19:03.270 | 2009-04-28T14:01:30.507 | 742 | 742 | [
"javascript",
"jquery"
] |
41,169 | 1 | null | null | 5 | 11,105 | Suppose someone worked for a company that put up an HTTP proxy preventing internet access without password authentication (NTLM, I think). Also suppose that this password rotated on a daily basis, which added very little security, but mostly served to annoy the employees. How would one get started writing a Firefox add... | How do I write Firefox add-on that automatically enters proxy passwords? | CC BY-SA 2.5 | 0 | 2008-09-03T04:28:34.433 | 2012-09-05T19:31:06.383 | 2008-09-03T05:19:28.850 | 816 | 816 | [
"firefox",
"authentication",
"plugins",
"proxy",
"passwords"
] |
41,174 | 2 | null | 40,884 | 0 | null | If it crashes (or throws an exception) all you are left with is a bunch of binary data to try and sift through to recreate your objects.
If you are only persisting binary why not just save straight to disk. You also might want to look at using something like xml as, as has been mentioned, if you alter your object def... | null | CC BY-SA 2.5 | null | 2008-09-03T04:32:06.623 | 2008-09-03T04:32:06.623 | null | null | 2,279 | null |
41,171 | 2 | null | 41,162 | 2 | null | I assume you meant something to indicate background activity during an Ajax call.
I tend to have a CSS class which sets the background image to a little animated GIF, with appropriate padding and positioning (remember to turn background-repeat off), and then add and remove that class using a couple of JavaScript helpe... | null | CC BY-SA 2.5 | null | 2008-09-03T04:29:26.413 | 2008-09-03T04:29:26.413 | null | null | 3,542 | null |
41,166 | 2 | null | 41,162 | 6 | null | this site will do it for you:
[ajaxload](http://www.ajaxload.info/)
and on OS X it's called the "Beachball" and I like to add "Of Death".
| null | CC BY-SA 2.5 | null | 2008-09-03T04:22:17.943 | 2008-09-03T04:22:17.943 | null | null | 50 | null |
41,176 | 2 | null | 40,994 | 0 | null | It's definitely fast. Gmail, Google Reader and Yahoo mail all load instantly. Can't say that for FF or Opera.
| null | CC BY-SA 2.5 | null | 2008-09-03T04:32:54.330 | 2008-09-03T04:32:54.330 | null | null | 1,697 | null |
41,177 | 2 | null | 41,107 | 36 | null | Here it is in Java:
```
import static java.lang.Math.round;
import static java.lang.Math.random;
import static java.lang.Math.pow;
import static java.lang.Math.abs;
import static java.lang.Math.min;
import static org.apache.commons.lang.StringUtils.leftPad
public class RandomAlphaNum {
public static String gen(int ... | null | CC BY-SA 2.5 | null | 2008-09-03T04:37:02.040 | 2008-09-03T17:16:38.253 | 2008-09-03T17:16:38.253 | 3,434 | 3,434 | null |
41,175 | 2 | null | 41,159 | 9 | null | Ok, this will find the list of Option objects that have a Value appearing in list.
```
var x = from list in optionLists
from option in list
where optionLists.All(l => l.Any(o => o.Value == option.Value))
orderby option.Value
select option;
```
It doesn't do a "distinct" select so it'... | null | CC BY-SA 2.5 | null | 2008-09-03T04:32:09.010 | 2008-09-03T06:20:48.733 | 2008-09-03T06:20:48.733 | 615 | 615 | null |
41,178 | 2 | null | 41,134 | 0 | null | Do you have different ruby versions on your system? If you're running the Darwin-supplied ruby binary, but installed ruby gems under /usr/local, then you'll get errors like this. Even if you've aliased ruby to point to /usr/local, the gem command may fail if the proper ruby binary is not resolved correctly by your sh... | null | CC BY-SA 2.5 | null | 2008-09-03T04:37:58.670 | 2008-09-03T04:37:58.670 | null | null | 3,499 | null |
41,151 | 2 | null | 40,692 | 2 | null | It is definitely possible to create RESTful web services using ASP.NET. If you are starting a new project I would definitely look into creating RESTful web services using WCF. The 3.5 .NET Framework allows you to specify RESTful endpoint along with a regular old SOAP endpoint and still deliver the same service.
All yo... | null | CC BY-SA 2.5 | null | 2008-09-03T03:52:48.247 | 2008-09-03T03:52:48.247 | null | null | 831 | null |
41,182 | 2 | null | 41,134 | 6 | null | First of all as Orion Edwards said make sure you have rubygems 1.2. Unfortunately,
> gem update --system
did not work for me.
Instead I had to:
1. Manually download rubygems-update-1.2.0 from rubyforge.
2. $ sudo gem install /path/to/rubygems-update-1.2.0.gem
3. $ update_rubygems
Now that I had rubygems 1.2 I... | null | CC BY-SA 2.5 | null | 2008-09-03T04:41:27.477 | 2008-09-03T15:49:03.253 | 2008-09-03T15:49:03.253 | 1,797 | 1,797 | null |
41,185 | 1 | 41,202 | null | 1 | 880 | I'm doing a fair bit of work in Ruby recently, and using
```
ruby script/console
```
Is absolutely critical. However, I'm really disappointed with the default Windows console in Vista, especially in that there's a really annoying bug where moving the cursor back when at the bottom of the screen irregularly causes it... | Vista Console App? | CC BY-SA 2.5 | null | 2008-09-03T04:42:04.573 | 2012-08-31T17:43:07.013 | null | null | 4,322 | [
"windows",
"ruby",
"windows-vista",
"console"
] |
41,179 | 1 | null | null | 2 | 656 | I have a number of users with multi-megabyte files that need to be processed before they can be uploaded. I am trying to find a way to do this without having to install any executable software on their machines.
If every machine shipped with, say, Python it would be easy. I could have a Python script do everything. T... | Can you use the JavaScript engine in web browsers to process local files? | CC BY-SA 2.5 | 0 | 2008-09-03T04:38:35.033 | 2018-07-05T08:46:32.053 | 2008-09-03T15:41:33.660 | 4,262 | 4,262 | [
"javascript"
] |
41,188 | 1 | 41,209 | null | 5 | 5,017 | I'm about to start a project that will record and edit audio files, and I'm looking for a good library (preferably Ruby, but will consider anything other than Java or .NET) for on-the-fly visualization of waveforms.
Does anybody know where I should start my search?
| Waveform Visualization in Ruby | CC BY-SA 2.5 | 0 | 2008-09-03T04:54:21.453 | 2019-08-26T08:33:48.383 | null | null | 2,293 | [
"ruby",
"audio",
"mp3",
"visualization",
"waveform"
] |
41,190 | 2 | null | 41,185 | 0 | null | [Powershell](http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx)
> Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework. PowerShell provides full ... | null | CC BY-SA 3.0 | null | 2008-09-03T04:55:22.467 | 2012-08-31T17:43:07.013 | 2012-08-31T17:43:07.013 | 317,266 | 493 | null |
41,183 | 2 | null | 41,169 | 6 | null | This is built into Firefox. Open up about:config, search for 'ntlm'
The setting you're looking for is called network.automatic-ntlm-auth.trusted-uris and accepts a comma-space delimited list of your proxy server uris.
This will make FireFox automatically send hashed copies of your windows password to the proxy, which... | null | CC BY-SA 3.0 | null | 2008-09-03T04:41:48.083 | 2012-09-05T19:31:06.383 | 2012-09-05T19:31:06.383 | 1,249 | 1,249 | null |
41,195 | 2 | null | 40,346 | 2 | null | [Visual Studio Magazine](http://visualstudiomagazine.com/) has some gems every once in awhile
| null | CC BY-SA 2.5 | null | 2008-09-03T05:00:35.933 | 2008-09-03T05:00:35.933 | null | null | 4,365 | null |
41,191 | 2 | null | 41,179 | 0 | null | The application that I maintain and develop for work is an [HTML Application](http://msdn.microsoft.com/en-us/library/ms536471.aspx) or [HTA](http://msdn.microsoft.com/en-us/library/ms536471.aspx), linked with a SQL Server 2005 backend. This allows various security restrictions to be "avoided". All the client-side comp... | null | CC BY-SA 2.5 | null | 2008-09-03T04:56:25.770 | 2008-09-03T04:56:25.770 | null | null | 1,915 | null |
41,181 | 2 | null | 40,994 | 2 | null | While in Microsoft:
> Consuming twice as much RAM as Firefox
and saturating the CPU with nearly six
times as many execution threads,
Microsoft's latest beta release of
Internet Explorer 8 is in fact more
demanding on your PC than Windows XP
itself, research firm Devil Mountain
Software found in performan... | null | CC BY-SA 2.5 | null | 2008-09-03T04:41:25.977 | 2008-09-03T04:41:25.977 | null | null | 4,213 | null |
41,192 | 2 | null | 40,863 | 3 | null | @aku "I think WPF can greatly improve user experience."
I believe that WPF has amazing potential as a tool to make UIs more creative and better suited to the actual data that is being displayed, BUT..............
Just the mere act of WPF isn't going to make great UIs appear out of nowhere.
A great carpenter m... | null | CC BY-SA 2.5 | null | 2008-09-03T04:56:32.370 | 2009-05-25T01:49:38.780 | 2009-05-25T01:49:38.780 | 242 | 242 | null |
41,196 | 2 | null | 40,346 | 1 | null | Definitely [Your Sinclair](http://en.wikipedia.org/wiki/Your_Sinclair). Hands down.
| null | CC BY-SA 2.5 | null | 2008-09-03T05:02:57.987 | 2008-09-03T05:02:57.987 | null | null | 3,434 | null |
41,202 | 2 | null | 41,185 | 7 | null | I use [Console2](http://sourceforge.net/projects/console/).
I like the tabbed interface and that copy works properly if text breaks at the end of a line.
| null | CC BY-SA 2.5 | null | 2008-09-03T05:11:52.037 | 2008-09-03T05:11:52.037 | null | null | 3,171 | null |
41,199 | 2 | null | 40,680 | 76 | null | ```
Request.Url.AbsoluteUri
```
This property does everything you need, all in one succinct call.
| null | CC BY-SA 4.0 | null | 2008-09-03T05:06:25.950 | 2018-05-03T13:03:51.980 | 2018-05-03T13:03:51.980 | 3,873,776 | 1,220 | null |
41,203 | 2 | null | 41,198 | 6 | null | In the markup after the image, insert something like `<div style="clear:left"/>`. A bit messy, but it's the easiest way I've found.
And while you're at it, put a bit of margin on that image so the text doesn't butt up against it.
| null | CC BY-SA 2.5 | null | 2008-09-03T05:13:40.613 | 2008-09-03T05:13:40.613 | null | null | 3,560 | null |
41,173 | 2 | null | 41,162 | 20 | null | Google to find lots of images and image generators (the "spinning" image itself is an animated GIF).
Here is [one link](http://www.ajaxload.info/) to get you started.
With the image in hand, use JQuery to toggle the visibility of the image (or perhaps its parent DIV tag). See [this link](http://skfox.com/2008/04/28... | null | CC BY-SA 3.0 | null | 2008-09-03T04:32:03.270 | 2018-04-20T08:19:03.270 | 2018-04-20T08:19:03.270 | 7,600,492 | 2,536 | null |
41,198 | 1 | 41,235 | null | 24 | 26,147 | How can I get an image to stretch the height of a `DIV` class?
Currently it looks like this:

However, I would like the `DIV` to be stretched so the `image` fits properly, but I do not want to resize the `image.
Here is the CSS for the `DIV` (the grey box):
```
.product1 {
... | Getting image to stretch a div | CC BY-SA 4.0 | 0 | 2008-09-03T05:05:37.777 | 2020-02-26T13:49:50.797 | 2020-02-26T13:49:50.797 | 11,393,381 | 2,592 | [
"css",
"image"
] |
41,156 | 2 | null | 41,107 | 1,625 | null |
## Algorithm
To generate a random string, concatenate characters drawn randomly from the set of acceptable symbols until the string reaches the desired length.
## Implementation
Here's some fairly simple and very flexible code for generating random identifiers. for important application notes.
```
public class R... | null | CC BY-SA 4.0 | null | 2008-09-03T04:04:24.647 | 2021-09-27T07:27:27.933 | 2021-10-07T07:34:52.683 | -1 | 3,474 | null |
41,201 | 2 | null | 41,198 | 1 | null | ```
display:inline
float:left
```
is your problem
Floating makes the parents width not be stretched by the child, try placing the image without the float. If you take the float off, it should give you the desired effect.
Another approach would be to make sure you are clearing your floats at the end of the parent e... | null | CC BY-SA 2.5 | null | 2008-09-03T05:11:04.300 | 2008-09-03T05:11:04.300 | null | null | 1,220 | null |
41,204 | 1 | null | null | 1 | 1,408 | Is there a fast and clean way of returning a JSON hash back from any node in a Ruby on Rails' acts_as_nested_set without using recursion?
Here's the recursive solution for reference:
```
class Node < ActiveRecord::Base
has_many :products
def json_hash
if children.size > 0
children.collect { |node| { nod... | Can Ruby convert an acts_as_nested_set to a JSON hash cleanly without recursion? | CC BY-SA 2.5 | null | 2008-09-03T05:15:24.600 | 2012-08-21T12:31:48.660 | null | null | 3,499 | [
"ruby-on-rails",
"ruby",
"recursion"
] |
41,209 | 2 | null | 41,188 | 3 | null | That's a lot of data to be streaming into a browser. Flash or Flex charts is probably the only solution that will be memory efficient. Javascript charting tends to break-down for large data sets.
| null | CC BY-SA 2.5 | null | 2008-09-03T05:29:16.877 | 2008-09-03T05:29:16.877 | null | null | 3,499 | null |
41,213 | 2 | null | 41,188 | 1 | null | The other option is generating the waveforms on the server-side with GD or RMagick. But good luck getting RubyGD to compile.
| null | CC BY-SA 2.5 | null | 2008-09-03T05:33:54.620 | 2008-09-03T05:33:54.620 | null | null | 3,499 | null |
41,214 | 2 | null | 40,719 | 2 | null | As a follow up, there is a little more information in the FAQs at the Apple Developer Connection (ADC) website:
[http://developer.apple.com/faq/datatype.html](http://developer.apple.com/faq/datatype.html)
| null | CC BY-SA 2.5 | null | 2008-09-03T05:41:09.703 | 2008-09-03T05:52:22.110 | 2008-09-03T05:52:22.110 | 4,314 | 4,314 | null |
41,218 | 1 | 43,384 | null | 16 | 15,387 | I am running MAMP locally on my laptop, and I like to test as much as I can locally. Unfortunately, since I work on e-commerce stuff (PHP), I normally force ssl in most of the checkout forms and it just fails on my laptop. Is there any easy configuration that I might be missing to allow "https" to run under MAMP? Pleas... | Testing HTTPS files with MAMP | CC BY-SA 2.5 | 0 | 2008-09-03T05:44:06.747 | 2015-05-06T04:33:48.810 | null | null | 4,247 | [
"apache",
"macos",
"ssl",
"https",
"mamp"
] |
41,206 | 2 | null | 40,863 | 12 | null | I recommend that you read [Steve Krug's Don't Make Me Think](https://rads.stackoverflow.com/amzn/click/com/0789723107) first. The book has a great checklist of things that you have to take into consideration when designing your UIs. While it's focused on web usability, a lot of the lessons therein are valuable even to ... | null | CC BY-SA 2.5 | null | 2008-09-03T05:25:38.477 | 2009-06-22T07:42:57.730 | 2009-06-22T07:42:57.730 | 372 | 372 | null |
41,219 | 2 | null | 36,014 | 2 | null | I downloaded your code and everything work as expected.
Visual Studio debugger correctly intercepts all exceptions. Catch blocks work as expected.
I'm running Windows 2003 server SP2, VS2008 Team Suite (9.0.30729.1 SP)
I tried to compile you project for .NET 2.0, 3.0 & 3.5
@Steve Steiner, debugger options you... | null | CC BY-SA 2.5 | null | 2008-09-03T05:44:32.970 | 2008-09-03T05:52:15.573 | 2008-09-03T05:52:15.573 | 1,196 | 1,196 | null |
41,208 | 2 | null | 36,014 | 31 | null | I believe I understand the problem. The exception is being caught, the issue is confusion over the debugger's behavior and differences in the debugger settings among each person trying to repro it.
In the 3rd case from your repro I believe you are getting the following message: "NoViableAltException was unhandled by u... | null | CC BY-SA 2.5 | null | 2008-09-03T05:27:31.937 | 2008-09-05T05:54:23.383 | 2008-09-05T05:54:23.383 | 1 | 3,892 | null |