qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
234,268 | <p>When overriding the MembershipProvider and calling it directly, is there a way to fill the NameValueCollection config parameter of the Initialize method without manually looking through the config file for the settings? </p>
<p>Obviously this Initialize is being called by asp.net and the config is being filled som... | [
{
"answer_id": 234327,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": false,
"text": "MembershipSection section = WebConfigurationManager.GetSection(\"membership\");\n"
},
{
"answer_id": 235274,
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30848/"
] |
234,289 | <p>From everything I've read, it seemed that adding paging to a ListView control should be dead simple, but it's not working for me. After adding the ListView and DataPager controls to the form and wiring them together, I'm getting very odd behavior. The DataPager correctly limits the ListView's page size, but clicking... | [
{
"answer_id": 237036,
"author": "MartinHN",
"author_id": 2972,
"author_profile": "https://Stackoverflow.com/users/2972",
"pm_score": 2,
"selected": true,
"text": "private ListViewPagedDataSource GetProductsAsPagedDataSource(DataView dv)\n{\n// Limit the results through a PagedDataSource... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23935/"
] |
234,291 | <p>I don´t know why, but my form isn´t calling Form_Load event when it loads.</p>
<p>Any ideas why this might be happening?</p>
| [
{
"answer_id": 234342,
"author": "itsmatt",
"author_id": 7862,
"author_profile": "https://Stackoverflow.com/users/7862",
"pm_score": 3,
"selected": false,
"text": "this.Load += new System.EventHandler(this.Form1_Load);\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22869/"
] |
234,302 | <p>I have to create a site definition for a client that must contain pre-defined web part pages. I can create the web part pages but am at a loss when it comes to attaching them to the site on creation.</p>
<p>I know web part pages created through SharePoint are stored in a Document Library. Do I need to pre-populate ... | [
{
"answer_id": 236238,
"author": "Rob Windsor",
"author_id": 28785,
"author_profile": "https://Stackoverflow.com/users/28785",
"pm_score": 2,
"selected": false,
"text": "<%@ Assembly Name=\"Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c\" %> <%@ Reg... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14281/"
] |
234,312 | <p>What tweaks / addins / themes do you have rigged up to make your IDE awesome? For example, in Visual Studio I <a href="http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspx" rel="nofollow noreferrer">color themes</a>, <a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistanc... | [
{
"answer_id": 238193,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": "https://Stackoverflow.com/users/29157",
"pm_score": 1,
"selected": false,
"text": "#pragma warning #if #include"
},
{
"answer_id": 238232,
"author": "Adam Liss",
"author_id": 29157,
"... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12862/"
] |
234,333 | <p>I am displaying a texture that I want to manipulate without out affecting the image data. I want to be able to clamp the texel values so that anything below the lower value becomes 0, anything above the upper value becomes 0, and anything between is linearly mapped from 0 to 1. </p>
<p>Originally, to display my ima... | [
{
"answer_id": 235529,
"author": "Menkboy",
"author_id": 29539,
"author_profile": "https://Stackoverflow.com/users/29539",
"pm_score": 3,
"selected": true,
"text": "GL_VENDOR GL_RENDERER ARB_fragment_shader ARB_fragment_program !!ARBfp1.0\nATTRIB tex = fragment.texcoord[0]\nPARAM cbias =... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/55638/"
] |
234,365 | <p>I'm new to Windows programming and after reading the Petzold book I wonder: </p>
<p>is it still good practice to use the <code>TCHAR</code> type and the <code>_T()</code> function to declare strings or if I should just use the <code>wchar_t</code> and <code>L""</code> strings in new code?</p>
<p>I will target only... | [
{
"answer_id": 3002494,
"author": "dan04",
"author_id": 287586,
"author_profile": "https://Stackoverflow.com/users/287586",
"pm_score": 6,
"selected": false,
"text": "TCHAR _T() char* char* wchar_t* TCHAR TCHAR std::string TCHAR TCHAR std::tcout TCHAR #define _UNICODE char wchar_t typede... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9458/"
] |
234,388 | <p>I'm trying to make a simple blackjack program. Sadly, I'm having problems right off the bat with generating a deck of cards.</p>
<pre><code>#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<char> deck;
char suit[] = {'h','d','c','s'};
char card[] = {'2','... | [
{
"answer_id": 234394,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 3,
"selected": false,
"text": "int char"
},
{
"answer_id": 234407,
"author": "JtR",
"author_id": 30958,
"author_profile": "https://Stackov... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38/"
] |
234,439 | <p>Disclaimer: I've solved the problem using Expressions from System.Linq.Expressions, but I'm still looking for a better/easier way.</p>
<p>Consider the following situation :</p>
<pre><code>var query =
from c in db.Customers
where (c.ContactFirstName.Contains("BlackListed") ||
c.ContactLastName.... | [
{
"answer_id": 234523,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": false,
"text": "var query = from C in db.Customers select c;\n\nif (seachFirstName)\n query = query.Where(c=>c.ContactFirstna... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9178/"
] |
234,458 | <p>I recently stumbled across <a href="http://googletesting.blogspot.com/2008/08/by-miko-hevery-so-you-decided-to.html" rel="noreferrer">this entry in the google testing blog</a> about guidelines for writing more testable code. I was in agreement with the author until this point:</p>
<blockquote>
<p>Favor polymorph... | [
{
"answer_id": 234491,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 7,
"selected": true,
"text": "class Animal\n{\n public:\n Noise warningNoise();\n Noise pleasureNoise();\n private:\n AnimalT... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14302/"
] |
234,479 | <p>I'm writing a config file and I need to define if the process expects a windows format file or a unix format file. I've got a copy of the expected file - is there a way I can check if it uses \n or \r\n without exiting emacs?</p>
| [
{
"answer_id": 234557,
"author": "Jouni K. Seppänen",
"author_id": 26575,
"author_profile": "https://Stackoverflow.com/users/26575",
"pm_score": 4,
"selected": true,
"text": "(defun describe-eol ()\n (interactive)\n (let ((eol-type (coding-system-eol-type buffer-file-coding-system)))\n... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26880/"
] |
234,482 | <p>I have a collection of elements that I need to operate over, calling member functions on the collection:</p>
<pre><code>std::vector<MyType> v;
... // vector is populated
</code></pre>
<p>For calling functions with no arguments it's pretty straight-forward:</p>
<pre><code>std::for_each(v.begin(), v.end(), st... | [
{
"answer_id": 234525,
"author": "Marcin",
"author_id": 22724,
"author_profile": "https://Stackoverflow.com/users/22724",
"pm_score": 3,
"selected": false,
"text": "MyType::myfunc"
},
{
"answer_id": 234556,
"author": "John Dibling",
"author_id": 241536,
"author_profil... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24263/"
] |
234,503 | <p>I'm looking into some possible options for unit testing C++ classes. </p>
<p>So, short and to the point, what are you using?</p>
| [
{
"answer_id": 234551,
"author": "Ben Straub",
"author_id": 1319,
"author_profile": "https://Stackoverflow.com/users/1319",
"pm_score": 2,
"selected": false,
"text": "test*"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1473493/"
] |
234,507 | <p>This was something originally discussed during a presentation given by Charles Brian Quinn of the <a href="http://www.bignerdranch.com/" rel="noreferrer">Big Nerd Ranch</a> at <a href="http://www.actsasconference.com" rel="noreferrer">acts_as_conference</a>. He was discussing what he had learned from instructing a ... | [
{
"answer_id": 234538,
"author": "Santiago Palladino",
"author_id": 12791,
"author_profile": "https://Stackoverflow.com/users/12791",
"pm_score": 6,
"selected": true,
"text": "public void foo() { \n\n // Do some things\n\n if (errorCondition) {\n throw new Exception(\"Error mess... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23909/"
] |
234,512 | <p>I have a string which is like this:</p>
<p>this is [bracket test] "and quotes test "</p>
<p>I'm trying to write something in Python to split it up by space while ignoring spaces within square braces and quotes. The result I'm looking for is:</p>
<p>['this','is','bracket test','and quotes test '] </p>
| [
{
"answer_id": 234645,
"author": "Bryan Oakley",
"author_id": 7432,
"author_profile": "https://Stackoverflow.com/users/7432",
"pm_score": 3,
"selected": false,
"text": "import re\nre.findall('\\[[^\\]]*\\]|\\\"[^\\\"]*\\\"|\\S+',s)\n"
},
{
"answer_id": 234674,
"author": "ddaa... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31256/"
] |
234,526 | <p>Can I setup a custom MIME type through ASP.NET or some .NET code? I need to register the Silverlight XAML and XAP MIME types in IIS 6.</p>
| [
{
"answer_id": 234613,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 4,
"selected": true,
"text": "using (DirectoryEntry mimeMap = new DirectoryEntry(\"IIS://Localhost/MimeMap\"))\n{\n PropertyValueCollection propValues = mimeM... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5618/"
] |
234,532 | <p>I have data that looks like</p>
<blockquote>
<pre><code>CUSTOMER, CUSTOMER_ID, PRODUCT
ABC INC 1 XYX
ABC INC 1 ZZZ
DEF CO 2 XYX
DEF CO 2 ZZZ
DEF CO 2 WWW
GHI LLC 3 ZYX
</code></pre>
</blockquote>
<p>I'd like to write a query th... | [
{
"answer_id": 234843,
"author": "Roy Rico",
"author_id": 1580,
"author_profile": "https://Stackoverflow.com/users/1580",
"pm_score": 0,
"selected": false,
"text": "SELECT CUSTOMER, CUSTOMER_ID, COUNT(PRODUCT) PROD_COUNT, \n RTRIM( \n XMLAGG( XMLELEMENT (C, PRODUCT |... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1580/"
] |
234,558 | <p>I can't seem to be able to disable ViewState for controls that I add to a page dynamically.</p>
<p><strong>ASPX</strong></p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page1.aspx.cs" Inherits="Page1" EnableViewState="false" %>
...
<asp:PlaceHolder ID="DropDownPlaceHolder" runat="se... | [
{
"answer_id": 234763,
"author": "thismat",
"author_id": 14045,
"author_profile": "https://Stackoverflow.com/users/14045",
"pm_score": 0,
"selected": false,
"text": " Public Sub Page_In(ByVal sender As Object, ByVal e As EventArgs) _ \n Handles Me.LoadComplete\n\n Dim ddl As New DropD... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8797/"
] |
234,560 | <p>I'm wondering whether anyone here has ever used a <a href="http://en.wikipedia.org/wiki/Skip_list" rel="nofollow noreferrer">skip list</a>. It looks to have roughly the same advantages as a balanced binary tree but is simpler to implement. If you have, did you write your own, or use a pre-written library (and if so,... | [
{
"answer_id": 234967,
"author": "Evan Teran",
"author_id": 13430,
"author_profile": "https://Stackoverflow.com/users/13430",
"pm_score": 3,
"selected": false,
"text": "std::map std::map"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
234,564 | <p>How do I make <a href="http://en.wikipedia.org/wiki/Vi" rel="noreferrer">vi</a>-<a href="http://en.wikipedia.org/wiki/Vim_%28text_editor%29" rel="noreferrer">Vim</a> never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically indent code after curly brace blocks like <a href="h... | [
{
"answer_id": 234578,
"author": "Ken",
"author_id": 20074,
"author_profile": "https://Stackoverflow.com/users/20074",
"pm_score": 12,
"selected": true,
"text": ".vimrc filetype plugin indent on\n\" show existing tab with 4 spaces width\nset tabstop=4\n\" when indenting with '>', use 4 s... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
234,589 | <p>One problem that I come across regularly and yet don't have a solution to is to restrict or permit access to specific entities in a system. Some companies (banks, for example) have very strict policies regarding which employees may access certain information. For example, an employee at a specific branch may access ... | [
{
"answer_id": 234735,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 3,
"selected": true,
"text": "<domain> Project\n|- <class> Person\n| |- <instance> John\n| |- <instance> Mary\n|- <class> FormX\n| |- <instance> John's Lea... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15157/"
] |
234,591 | <p>When doing case-insensitive comparisons, is it more efficient to convert the string to upper case or lower case? Does it even matter?</p>
<p>It is suggested <a href="https://stackoverflow.com/questions/9033/hidden-features-of-c#12137">in this SO post</a> that C# is more efficient with ToUpper because "Microsoft op... | [
{
"answer_id": 234615,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 4,
"selected": false,
"text": "UPPER lower long"
},
{
"answer_id": 234639,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9974/"
] |
234,594 | <p>In Eclipse, under <kbd>Windows</kbd> -> <kbd>Preference</kbd> -> <kbd>Java</kbd> -> <kbd>Code Style</kbd>, you can define code templates for comments and code, and you can setup a code formatter. </p>
<p>I'm wondering if it is possible in Eclipse to have these setting take affect every time I save a source file. B... | [
{
"answer_id": 234625,
"author": "Neal Swearer",
"author_id": 29962,
"author_profile": "https://Stackoverflow.com/users/29962",
"pm_score": 9,
"selected": true,
"text": "Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft<br>\nBuild id: M20080221-1800\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16524/"
] |
234,600 | <p>I would like to use <code>Class.newInstance()</code> but the class I am instantiating does not have a nullary constructor. Therefore I need to be able to pass in constructor arguments. Is there a way to do this?</p>
| [
{
"answer_id": 234614,
"author": "Marko",
"author_id": 31141,
"author_profile": "https://Stackoverflow.com/users/31141",
"pm_score": 7,
"selected": false,
"text": "myObject.getClass().getDeclaredConstructors(types list).newInstance(args list);\n"
},
{
"answer_id": 234617,
"au... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
234,622 | <p>I have been tasked to optimize some sql queries at work. Everything I have found points to using Explain Plan to identify problem areas. The problem I can not find out exactly what explain plan is telling me. You get Cost, Cardinality, and bytes. </p>
<p>What do this indicate, and how should I be using this as a gu... | [
{
"answer_id": 236391,
"author": "Walter Mitty",
"author_id": 19937,
"author_profile": "https://Stackoverflow.com/users/19937",
"pm_score": 4,
"selected": false,
"text": "select * from customers \nwhere\n State = @State\n and ZipCode = @ZipCode\n select * from customers\n ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3340/"
] |
234,657 | <p>We have a Procedure in Oracle with a SYS_REFCURSOR output parameter that returns the data we want to bind to an ASP.NET GridView control. I've seen this done before but I can't find the original reference I used to solve the problem.</p>
<p>Here is what the procedure looks like:</p>
<pre><code>create or replace PR... | [
{
"answer_id": 243611,
"author": "Brian Schmitt",
"author_id": 30492,
"author_profile": "https://Stackoverflow.com/users/30492",
"pm_score": 2,
"selected": true,
"text": " Public Function GetSomeData() as DataTable\n Dim OrclConn as New OracleConnection(\"Connectionstring\")\n ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31267/"
] |
234,683 | <p>Which algorithm does the JavaScript <code>Array#sort()</code> function use? I understand that it can take all manner of arguments and functions to perform different kinds of sorts, I'm simply interested in which algorithm the vanilla sort uses.</p>
| [
{
"answer_id": 236534,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 9,
"selected": true,
"text": "std::qsort qsort // FIXME: Since we sort by string value, a fast algorithm might be to use a\n// radix sort. That woul... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11042/"
] |
234,695 | <p>Is there a way to have a default parameter passed to a action in the case where the regex didnt match anything using django?</p>
<pre><code>
urlpatterns = patterns('',(r'^test/(?P<name>.*)?$','myview.displayName'))
#myview.py
def displayName(request,name):
# write name to response or something
</code><... | [
{
"answer_id": 234741,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 0,
"selected": false,
"text": "def displayName(request, name=defaultObj)"
},
{
"answer_id": 234995,
"author": "Aaron Maenpaa",
"author_id"... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24730/"
] |
234,696 | <p>I have lots of mp3s on my site that I want my friends to be able to play only- but I don't want them all downloading as soon as the page opens and would prefer them to only start downloading into the buffer if someone wants to play it- is this possible with the embed tag? I can't seem to find anything on Google so I... | [
{
"answer_id": 236703,
"author": "domgblackwell",
"author_id": 16954,
"author_profile": "https://Stackoverflow.com/users/16954",
"pm_score": 0,
"selected": false,
"text": "blog.stackoverflow.com"
},
{
"answer_id": 1294499,
"author": "BigBlondeViking",
"author_id": 119910,... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
234,697 | <p>I was recently approached by a network-engineer, co-worker who would like to offload his minor network admin duties to a junior-level helpdesk tech. The specific location in need of management acts as an ISP for tenants on its single-site property, so there's a lot of small adjustments being made on a daily basis.... | [
{
"answer_id": 2582997,
"author": "Noah Gift",
"author_id": 309746,
"author_profile": "https://Stackoverflow.com/users/309746",
"pm_score": 2,
"selected": false,
"text": "expect"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18213/"
] |
234,723 | <p>I would like to redirect <code>www.example.com</code> to <code>example.com</code>. The following htaccess code makes this happen:</p>
<pre><code>RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
</code></pre>
<p>But, is there a way to do this in a generic fashion w... | [
{
"answer_id": 234745,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": false,
"text": "RewriteCond %{HTTP_HOST} ^www\\. [NC]\nRewriteRule ^(.*)$ %{HTTP_HOST}$1 [C]\nRewriteRule ^www\\.(.*)$ http://$1 [L,R=301]\n"... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21473/"
] |
234,724 | <p>Is it possible to serialize and deserialize a class in C++?</p>
<p>I've been using Java for 3 years now, and serialization / deserialization is fairly trivial in that language. Does C++ have similar features? Are there native libraries that handle serialization?</p>
<p>An example would be helpful.</p>
| [
{
"answer_id": 234740,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 8,
"selected": true,
"text": "Boost::serialization Boost::serialization operator<< operator>>"
},
{
"answer_id": 234846,
"author": "Frank K... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24639/"
] |
234,742 | <p>In <code>tcsh</code>, I have the following script working:</p>
<pre><code>#!/bin/tcsh
setenv X_ROOT /some/specified/path
setenv XDB ${X_ROOT}/db
setenv PATH ${X_ROOT}/bin:${PATH}
xrun -d xdb1 -i $1 > $2
</code></pre>
<p>What is the equivalent to the <code>tcsh setenv</code> function in Bash? </p>
<p>Is ... | [
{
"answer_id": 234753,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 3,
"selected": false,
"text": "export export VARIABLE=value\n"
},
{
"answer_id": 234756,
"author": "mipadi",
"author_id": 28804,
"author_... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1266/"
] |
234,774 | <p>Is there an easy way to display a messagebox in VB.NET with custom button captions? I came across <em><a href="https://stackoverflow.com/questions/77293/what-is-an-easy-way-to-create-a-messagebox-with-custom-button-text-in-managed-c">What is an easy way to create a MessageBox with custom button text in Managed C++?... | [
{
"answer_id": 234835,
"author": "BradC",
"author_id": 21398,
"author_profile": "https://Stackoverflow.com/users/21398",
"pm_score": 4,
"selected": false,
"text": "FormBorderType = FixedDialog Me.AcceptButton = OKButton\n Me.CancelButton = CancelButton\n Me.FormBorderStyle = Wi... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30415/"
] |
234,785 | <p>The situation is as follows: I've got 2 models: 'Action' and 'User'. These models refer to the tables 'actions' and 'users', respectively.</p>
<p>My action table contains a column <code>user_id</code>. At this moment, I need an overview of all actions, and the users to which they are assigned to. When i use <code>$... | [
{
"answer_id": 235267,
"author": "Peter Bailey",
"author_id": 8815,
"author_profile": "https://Stackoverflow.com/users/8815",
"pm_score": 2,
"selected": false,
"text": "CREATE OR REPLACE VIEW VwAction AS\nSELECT [columns]\n FROM action\n LEFT JOIN user\n ON user.id = action.user_id\... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11568/"
] |
234,797 | <p>I need to use sed to convert all occurences of <code>##XXX##</code> to <code>${XXX}</code>. X could be any alphabetic character or '_'. I know that I need to use something like:</p>
<pre><code>'s/##/\${/g'
</code></pre>
<p>But of course that won't work properly, as it will convert <code>##FOO##</code> to <code>${FOO... | [
{
"answer_id": 234806,
"author": "ADEpt",
"author_id": 10105,
"author_profile": "https://Stackoverflow.com/users/10105",
"pm_score": 1,
"selected": false,
"text": "s/##\\([^#]*\\)##/${\\1}/\n"
},
{
"answer_id": 234818,
"author": "Jonathan Leffler",
"author_id": 15168,
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
234,845 | <p>I am looking for a way to change the password of a local user account (local Administrator) on a Windows (XP in this case) machine. I have read the <a href="http://www.codeproject.com/KB/threads/Reset-Administrator-Pass.aspx" rel="noreferrer">CodeProject article</a> about one way to do this, but this just doesn't se... | [
{
"answer_id": 235085,
"author": "Ely",
"author_id": 30488,
"author_profile": "https://Stackoverflow.com/users/30488",
"pm_score": 3,
"selected": true,
"text": "DirectoryEntry ManagementObject"
},
{
"answer_id": 238975,
"author": "Community",
"author_id": -1,
"author_... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12367/"
] |
234,848 | <p>I found in MYSQL and apparently other database engines that there is a "greatest" function that can be used like: greatest(1, 2, 3, 4), and it would return 4. I need this, but I am using IBM's DB2. Does anybody know of such an equivalent function, even if it only accepts 2 parameters?</p>
<p>I found somewhere tha... | [
{
"answer_id": 234898,
"author": "Dave",
"author_id": 21294,
"author_profile": "https://Stackoverflow.com/users/21294",
"pm_score": 3,
"selected": false,
"text": " 1\n ---------------\n 8\n\n 1 record(s) selected.\n"
},
{
"answer_id": 632369,
"autho... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/122/"
] |
234,849 | <p>I am using activemq to pass requests between different processes. In some cases, I have multiple, duplicate message (which are requests) in the queue. I would like to have only one. Is there a way to send a message in a way that it will replace an older message with similar attributes? If there isn't, is there a way... | [
{
"answer_id": 239318,
"author": "James Strachan",
"author_id": 2068211,
"author_profile": "https://Stackoverflow.com/users/2068211",
"pm_score": 2,
"selected": false,
"text": "from(\"activemq:queueA\").\n idempotentConsumer(memoryMessageIdRepository(200)).\n header(\"myHeader\").\n t... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31289/"
] |
234,866 | <p>I come from a .NET world and I'm new to writting C++. I'm just wondering what are the preferred naming conventions when it comes to naming local variables and struct members.</p>
<p>For example, the legacy code that I've inheritted has alot of these:</p>
<pre><code>struct MyStruct
{
TCHAR szMyChar[STR... | [
{
"answer_id": 235397,
"author": "peterchen",
"author_id": 31317,
"author_profile": "https://Stackoverflow.com/users/31317",
"pm_score": 4,
"selected": false,
"text": "int * i = 17;\nint j = ***i;\n float fXmin, fXmax, fXpeak; // x values of range and where y=max\nint iXmin, iXMax, iXp... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18170/"
] |
234,869 | <p>I have a winforms application, that why someone clicks on a button I need to open up IE to a specific URL.</p>
<p>When someone closes the winforms app, I then need to close IE.</p>
<p>Is this possible? If yes, how?</p>
| [
{
"answer_id": 234904,
"author": "Nick",
"author_id": 1490,
"author_profile": "https://Stackoverflow.com/users/1490",
"pm_score": 0,
"selected": false,
"text": "Utilities.Utilities.SendMessage(mTestPanelHandle, WM_COMMAND, WM_CLOSE, 0);\n public const int WM_COMMAND = 0x0112;\npublic con... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
234,871 | <p>This is a follow on to this <a href="https://stackoverflow.com/questions/232500/how-to-configure-security-when-calling-wcf-service-from-net-20-client">question</a>. I am trying to avoid using the x509 certificate method as that makes my client installs more complex. If basicHttpBinding is not the only option, wher... | [
{
"answer_id": 234896,
"author": "Toran Billups",
"author_id": 2701,
"author_profile": "https://Stackoverflow.com/users/2701",
"pm_score": 1,
"selected": false,
"text": "Dim client As WebServiceClient = New WebServiceClient(\"basicHttpWebService\")\nclient.ClientCredentials.UserName.User... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1865/"
] |
234,906 | <p>I'm going through MSIL and noticing there are a lot of <a href="http://msdn.microsoft.com/en-us/library/system.reflection.emit.opcodes.nop.aspx" rel="nofollow noreferrer">nop</a> instructions in the MSIL.</p>
<p>The MSDN article says they take no action and are used to fill space if the opcode is patched. They're u... | [
{
"answer_id": 235825,
"author": "Steve Steiner",
"author_id": 3892,
"author_profile": "https://Stackoverflow.com/users/3892",
"pm_score": 4,
"selected": false,
"text": "nop"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23427/"
] |
234,929 | <p>I am trying to create a databound WPF GridView whose rows can either be read-only or editable (by double-clicking or through a context menu). I would like for the row to return to a read-only state if any of its editable controls loses focus. The functionality I am looking for is very similar to <a href="http://blog... | [
{
"answer_id": 72894728,
"author": "Hadi",
"author_id": 2286867,
"author_profile": "https://Stackoverflow.com/users/2286867",
"pm_score": 0,
"selected": false,
"text": "<DataGrid x:Name=\"dataGrid\" Margin=\"0,50,0,0\" CurrentCellChanged=\"dataGrid_CurrentCellChanged\"/>\n public MainWin... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/317/"
] |
234,930 | <p>Here's a quicky question. Which method name makes the most sense for an Objective-C Cocoa application?</p>
<pre><code>-(void) doSomethingWithAnimation:(BOOL)animated
</code></pre>
<p>or:</p>
<pre><code>-(void) doSomething:(BOOL)animated
</code></pre>
<p>or even:</p>
<pre><code>-(void) doSomethingAnimated:(BOOL)... | [
{
"answer_id": 235039,
"author": "Barry Wark",
"author_id": 2140,
"author_profile": "https://Stackoverflow.com/users/2140",
"pm_score": 4,
"selected": true,
"text": "-(void) doSomethingWithAnimation:(BOOL)animated\n -(void) doSomething:(BOOL)animated\n -(void) doSomethingAnimated:(BOOL)a... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17188/"
] |
234,935 | <p>I'm having a problem dynamically adding columns to a GridView. I need to change the layout -- i.e. the included columns -- based on the value in a DropDownList. When the user changes the selection in this list, I need to remove all but the first column and dynamically add additional columns based on the selection.... | [
{
"answer_id": 250791,
"author": "DiningPhilanderer",
"author_id": 30934,
"author_profile": "https://Stackoverflow.com/users/30934",
"pm_score": 3,
"selected": false,
"text": " private void GridViewProject_AddColumns()\n {\n DataSet dsDataSet = new DataSet();\n Templa... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7961/"
] |
234,945 | <p>I've inherited a WSDL file for a web service on a system that I don't have access to for development and testing.</p>
<p>I need to generate a web service that adheres to that WSDL. The wrapper is .NET, but if there's an easy way to do this with another platform, we might be able to look at that. The production web ... | [
{
"answer_id": 235005,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 3,
"selected": false,
"text": "wsdl.exe /serverInterface"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7301/"
] |
234,949 | <p>I'm new to CakePHP but I've been though their FAQs and guides to no avail. This is so simple that I just must not be thinking straight:</p>
<p>How can I access a parameter sent through the URL within my view files? </p>
<p>Example: <a href="http://example.com/view/6" rel="nofollow noreferrer">http://example.com/v... | [
{
"answer_id": 235017,
"author": "Lucas Oman",
"author_id": 6726,
"author_profile": "https://Stackoverflow.com/users/6726",
"pm_score": 3,
"selected": true,
"text": "http://example.com/thinger/view/6\n thingerControllerObject->view(\"6\")"
},
{
"answer_id": 235054,
"author": ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24565/"
] |
234,963 | <p>If I accidentally closed the <em>scratch</em> buffer in Emacs, how do I create a new <em>scratch</em> buffer?</p>
| [
{
"answer_id": 234982,
"author": "Steven Huwig",
"author_id": 28604,
"author_profile": "https://Stackoverflow.com/users/28604",
"pm_score": 3,
"selected": false,
"text": "*scratch* *scratch*"
},
{
"answer_id": 234988,
"author": "stephanea",
"author_id": 8776,
"author_... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5694/"
] |
234,973 | <p>What is the best way to check for the existence of a session variable in ASP.NET C#? </p>
<p>I like to use <code>String.IsNullOrEmpty()</code> works for strings and wondered if there was a similar method for <code>Session</code>. Currently the only way I know of is:</p>
<pre><code> var session;
if (Session["var... | [
{
"answer_id": 234991,
"author": "Ely",
"author_id": 30488,
"author_profile": "https://Stackoverflow.com/users/30488",
"pm_score": 4,
"selected": false,
"text": "sSession = (string)Session[\"variable\"] ?? \"set this\";\n"
},
{
"answer_id": 234997,
"author": "StingyJack",
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12252/"
] |
234,976 | <p>Scenario - I need to access an HTML template to generate a e-mail from my Business Logic Layer. It is a class library contains a sub folder that contains the file. When I tried the following code in a unit test:</p>
<pre><code>string FilePath = string.Format(@"{0}\templates\MyFile.htm", Environment.CurrentDirecto... | [
{
"answer_id": 234984,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 3,
"selected": false,
"text": "Server.MapPath() System.IO.Path.Combine() System.Web System.Reflection.Assembly.GetExecutingAssembly().Location\n GetEntryAs... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
234,994 | <p>Two questions:</p>
<ol>
<li>Can someone point me to unbiased data that compares .NET performance to VB 6 performance? I have searched but it is surprisingly difficult to find.</li>
<li>What is the best way to compare .NET performance to VB 6 performance as an app behaves at a customer's site?</li>
</ol>
<p>We have... | [
{
"answer_id": 235080,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 3,
"selected": true,
"text": "mult Option Strict Option Strict"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470/"
] |
235,003 | <p>I'm practicing for the upcoming ACM programming competition in a week and I've gotten stumped on this programming problem.</p>
<p><strong>The problem is as follows:</strong></p>
<hr>
<p>You have a puzzle consisting of a square grid of size 4. Each grid square holds a single coin; each coin is showing either heads... | [
{
"answer_id": 235022,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "ABCD\nEFGH\nIJKL\nMNOP\n using System;\n\npublic class CoinFlip\n{\n // All ints could really be ushorts, but ints ar... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
235,018 | <p>Scaffolding, what is it? Is it a Rails-only thing?</p>
| [
{
"answer_id": 40007535,
"author": "Zanon",
"author_id": 1476885,
"author_profile": "https://Stackoverflow.com/users/1476885",
"pm_score": 4,
"selected": false,
"text": "yo"
},
{
"answer_id": 41658322,
"author": "Obmerk Kronen",
"author_id": 1244126,
"author_profile":... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
235,025 | <p><a href="/questions/61400/what-makes-a-good-unit-test">What Makes a Good Unit Test?</a> says that a test should test only one thing. What is the benefit from that?</p>
<p>Wouldn't it be better to write a bit bigger tests that test bigger block of code? Investigating a test failure is anyway hard and I don't see hel... | [
{
"answer_id": 235034,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 4,
"selected": false,
"text": "[TestMethod]\npublic void TestSomething() {\n // Test condition A\n // Test condition B\n // Test condition C\n // Test ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27067/"
] |
235,033 | <p>In Delphi, why does the Assigned() function still return True after I call the destructor?</p>
<p>The below example code will write "sl is still assigned" to the console.</p>
<p>However, I can call FreeAndNil(sl); and it won't be assigned.</p>
<p>I've been programming in Delphi for a while, but this never made se... | [
{
"answer_id": 235041,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 6,
"selected": true,
"text": "var\n sl1, sl2: TStringList;\nbegin\n sl1 := TStringList.Create;\n sl2 := sl1;\n FreeAndNil(sl1);\n // sl2 is sti... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/672/"
] |
235,047 | <p>I am trying to insert about 50,000 objects (and therefore 50,000 keys) into a <code>java.util.HashMap<java.awt.Point, Segment></code>. However, I keep getting an OutOfMemory exception. (<code>Segment</code> is my own class - very light weight - one <code>String</code> field, and 3 <code>int</code> fields).</p>... | [
{
"answer_id": 235053,
"author": "Michael Myers",
"author_id": 13531,
"author_profile": "https://Stackoverflow.com/users/13531",
"pm_score": 6,
"selected": true,
"text": "// Get current size of heap in bytes\nlong heapSize = Runtime.getRuntime().totalMemory();\n\n// Get maximum size of h... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
235,072 | <p>Does the C++ compiler optimize the multiply by two operation <code>x*2</code> to a bitshift operation <code>x<<1</code>?</p>
<p>I would love to believe that yes.</p>
| [
{
"answer_id": 235103,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 6,
"selected": true,
"text": "01391000 push ecx \n int x = 0;\n\n scanf(\"%d\", &x);\n01391001 lea eax,[esp] \n01391004 push ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24975/"
] |
235,081 | <p>We primarily use an ASP.NET environment at work. Right now I'm building an application which uses "Modules", which is just a UserControl, with its' Javascript right in the control, and a link element to the stylesheet for that control. I want to keep it modular, and would like the style of this control to be indepen... | [
{
"answer_id": 237526,
"author": "sliderhouserules",
"author_id": 31385,
"author_profile": "https://Stackoverflow.com/users/31385",
"pm_score": 3,
"selected": true,
"text": "string filePath = page.ClientScript.GetWebResourceUrl(type, css);\n\n// if filePath is not empty, embedded CSS exi... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31307/"
] |
235,090 | <p>How do you configure cruiseControl to send out emails that contains the error log whenever a build fails? I've gotten it to send out emails to users when the build fails, but it does not include the actual error that caused the build to fail. I know that if I only configure it to send out emails to the users that ... | [
{
"answer_id": 235210,
"author": "stung",
"author_id": 18170,
"author_profile": "https://Stackoverflow.com/users/18170",
"pm_score": 2,
"selected": false,
"text": "<!-- Specifies the stylesheets that are used to transform the build results when using the EmailPublisher -->\n<xslFiles>\n ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
235,118 | <p>I am trying to create a route with a Username...</p>
<p>So the URL would be mydomain.com/abrudtkhul (abrudtkhul being the username)</p>
<p>My application will have public profiles based on usernames (Ex: <a href="http://delicious.com/abrudtkuhl" rel="noreferrer">http://delicious.com/abrudtkuhl</a>). I want to repl... | [
{
"answer_id": 235128,
"author": "Jason Whitehorn",
"author_id": 27860,
"author_profile": "https://Stackoverflow.com/users/27860",
"pm_score": 1,
"selected": false,
"text": "{username}\n Controller = \"Users\"\n routes.MapRoute(\n \"Users\",\n \"... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12442/"
] |
235,120 | <p>In Apple's iPhone apps (like Contacts), they have a nice magnifying glass icon at the top of the table view index. Since the table view index API is character-based, I assume that this magnifying glass is a Unicode character. So far I've resorted to placing a question mark character there, but that looks lame.</p>
... | [
{
"answer_id": 236233,
"author": "rpetrich",
"author_id": 4007,
"author_profile": "https://Stackoverflow.com/users/4007",
"pm_score": 0,
"selected": false,
"text": "UIImageView"
},
{
"answer_id": 282849,
"author": "Community",
"author_id": -1,
"author_profile": "https... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26829/"
] |
235,127 | <p>Can you do ajax on ASP.net webform without using ajax toolkit? (Please post a example link)</p>
| [
{
"answer_id": 235144,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 0,
"selected": false,
"text": "HttpHandler ajax.aspx // client-side js:\nvar foo = new Ajax.Request('ajax.aspx',\n{\n method:'get',\n parameters: { met... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
235,145 | <p>I am building a Flex Application that calls a .aspx page on the same webserver which builds a PDF report using SQL Reporting Services. When the report is built it prompts the user to open or save the PDF.</p>
<p>We are trying to find a way to display a Progress Bar to let the user know that the report they requeste... | [
{
"answer_id": 235271,
"author": "Chetan S",
"author_id": 31284,
"author_profile": "https://Stackoverflow.com/users/31284",
"pm_score": 1,
"selected": false,
"text": "FileReference"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/235145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31298/"
] |
235,146 | <p>I need to replace the standard Overflow function in a ToolStrip to a "More..." button which would then pop up a menu with the overflowed items. Does anyone have any ideas about how to accomplish this?</p>
| [
{
"answer_id": 235277,
"author": "Nick",
"author_id": 1490,
"author_profile": "https://Stackoverflow.com/users/1490",
"pm_score": 0,
"selected": false,
"text": "toolStrip1.OverflowButton.Paint += new PaintEventHandler(OverflowButton_Paint);\n VisibleChanged"
},
{
"answer_id": 254... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4770/"
] |
235,147 | <p>I'm needing to cache some data using <strong>System.Web.Caching.Cache</strong>. Not sure if it matters, but the data does not come from a database, but a plethora of custom objects.</p>
<p>The ASP.NET MVC is fairly new to me and I'm wondering where it makes sense for this caching to occur?</p>
<h3>Model or Controlle... | [
{
"answer_id": 327883,
"author": "Ole Lynge",
"author_id": 41094,
"author_profile": "https://Stackoverflow.com/users/41094",
"pm_score": 2,
"selected": false,
"text": "Entry IEntryHandler IEntryHandler"
},
{
"answer_id": 342761,
"author": "Pure.Krome",
"author_id": 30674,... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4916/"
] |
235,148 | <p>I'm currently on chapter 4 of Real World Haskell, and I'm trying to wrap my head around <a href="http://book.realworldhaskell.org/read/functional-programming.html#x_E9" rel="noreferrer">implementing foldl in terms of foldr</a>.</p>
<p>(Here's their code:)</p>
<pre><code>myFoldl :: (a -> b -> a) -> a ->... | [
{
"answer_id": 235207,
"author": "mattiast",
"author_id": 8272,
"author_profile": "https://Stackoverflow.com/users/8272",
"pm_score": 3,
"selected": false,
"text": "myzip = foldr step (const []) :: [a] -> [b] -> [(a,b)]\n where step a f (b:bs) = (a,b):(f bs)\n step a f [] = [... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7581/"
] |
235,156 | <p>I'd like to know if it is possible to redirect StreamWriter output to a variable</p>
<p>Something like</p>
<pre><code>String^ myString;
StreamWriter sw = gcnew StreamWriter([somehow specify myString])
sw->WriteLine("Foo");
</code></pre>
<p>then myString will contain Foo.
The reason I would like to do this is t... | [
{
"answer_id": 235194,
"author": "Ely",
"author_id": 30488,
"author_profile": "https://Stackoverflow.com/users/30488",
"pm_score": 6,
"selected": false,
"text": "StringBuilder sb = new StringBuilder();\nStringWriter sw = new StringWriter(sb);\n// now, the StringWriter instance 'sw' will ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6367/"
] |
235,166 | <p>I'm trying to add parameters to an objectDataSource at runtime like this:</p>
<pre><code> Parameter objCustomerParameter = new Parameter("CustomerID", DbType.String, customerID);
Parameter objGPDatabaseParameter = new Parameter("Database", DbType.String, gpDatabase);
//set up object data sou... | [
{
"answer_id": 235217,
"author": "wprl",
"author_id": 17847,
"author_profile": "https://Stackoverflow.com/users/17847",
"pm_score": 2,
"selected": false,
"text": "PreInit"
},
{
"answer_id": 236420,
"author": "Andy C.",
"author_id": 28541,
"author_profile": "https://St... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1874/"
] |
235,188 | <p>I want to implement user stories in a new project where can i find a good template or other ones used in agile development?</p>
| [
{
"answer_id": 235290,
"author": "Hates_",
"author_id": 3410,
"author_profile": "https://Stackoverflow.com/users/3410",
"pm_score": 5,
"selected": false,
"text": "As a <user> I want to <do something> so that <I can accomplish goal>.\n"
},
{
"answer_id": 8700486,
"author": "ma... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14440/"
] |
235,191 | <p>What is the best way to make trailing slashes not matter in the latest version of Routes (1.10)? I currently am using the clearly non-DRY:</p>
<pre><code>map.connect('/logs/', controller='logs', action='logs')
map.connect('/logs', controller='logs', action='logs')
</code></pre>
<p>I think that turning minimization... | [
{
"answer_id": 1441104,
"author": "Marius Gedminas",
"author_id": 110151,
"author_profile": "https://Stackoverflow.com/users/110151",
"pm_score": 4,
"selected": false,
"text": "map.redirect('/*(url)/', '/{url}',\n _redirect_code='301 Moved Permanently')\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/235191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12981/"
] |
235,224 | <p>I am curious to do what happens when you edit a post on this site.</p>
<p>I am using wmd for my markdown editor, of course when I goto edit, I get the HTML it generated not the markdown like on stackoverflow. Now, is there a way I can store both? or is it reliable enough to simply convert the HTML back to markdow... | [
{
"answer_id": 235235,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 5,
"selected": true,
"text": "optionsExample.html"
},
{
"answer_id": 3850158,
"author": "kvz",
"author_id": 151666,
"author_profile": "... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29466/"
] |
235,226 | <p>I am having the worst luck with this. We bought a template to update our own website (don't have enough time to start our own from scratch!) but when I make simple changes in the Flash CS4 native file and re-export the swf, it doesn't work correctly!</p>
<p>I am wondering if anyone has run across the same problems ... | [
{
"answer_id": 235235,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 5,
"selected": true,
"text": "optionsExample.html"
},
{
"answer_id": 3850158,
"author": "kvz",
"author_id": 151666,
"author_profile": "... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30043/"
] |
235,231 | <p>I have a requirement of reading subject, sender address and message body of new message in my Outlook inbox from a C# program. But I am getting security alert 'A Program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this'.</p>
<p>By some googling I found few third party COM l... | [
{
"answer_id": 1197190,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "string GetSenderEmail(Outlook.MailItem item)\n {\n string emailAddress = \"\";\n if (item.SenderEmailType ==... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31001/"
] |
235,233 | <p>Derik Whitaker posted an <a href="http://devlicio.us/blogs/derik_whittaker/archive/2008/10/22/how-is-interacting-with-your-data-repository-in-your-controller-different-or-better-than-doing-it-in-your-code-behind.aspx" rel="noreferrer">article</a> a couple of days ago that hit a point that I've been curious about for... | [
{
"answer_id": 235243,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 7,
"selected": true,
"text": "public interface IOrderService{\n int CalculateTotal(Order order);\n}\n public class Order{\n int CalculateTotal(ITaxSer... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
235,236 | <p>Can JQuery and YUI live together w/o any conflicts?</p>
| [
{
"answer_id": 4330185,
"author": "sebarmeli",
"author_id": 506570,
"author_profile": "https://Stackoverflow.com/users/506570",
"pm_score": 3,
"selected": false,
"text": "YUI().use(\"test\", function(){\n test : function() {\n $('div li').addClass(\"example\");\n Y.Assert.... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
235,240 | <p>Recently, <a href="https://stackoverflow.com/questions/204814/is-there-any-valid-reason-to-ever-ignore-a-caught-exception">I made a post about the developers I'm working with not using try catch blocks properly</a>, and unfortuantely using try... catch blocks in critical situations and ignoring the exception error a... | [
{
"answer_id": 235301,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 2,
"selected": true,
"text": "BLLCustomer cust = ((BLLCustomer)new BLLCustomer()).FillByID(34);\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/235240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18893/"
] |
235,248 | <p>In Silverlight how can I launch / navigate to another page?</p>
| [
{
"answer_id": 235253,
"author": "Eric",
"author_id": 4540,
"author_profile": "https://Stackoverflow.com/users/4540",
"pm_score": 4,
"selected": true,
"text": "System.Windows.Browser.HtmlPage.Window.Navigate(\n new Uri( \"http://www.google.com\" ),\n \"_blank\"\n );\n"
},
{
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4540/"
] |
235,254 | <p>I am running GNU Emacs on Windows so entering:</p>
<pre><code>M-x shell
</code></pre>
<p>launches the Windows command-line DOS shell. However, I would like to instead be able to run the Cygwin Bash Shell (or any other non-Windows shell) from within Emacs. How can this be easily done?</p>
| [
{
"answer_id": 235344,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 3,
"selected": false,
"text": "init.el ;; Let's use CYGWIN bash...\n;;\n(setq binary-process-input t) \n(setq w32-quote-process-args ?\\\") \n(setq shel... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
235,258 | <p>Can a <code>JApplet</code> use a <code>JFileChooser</code> so that the user can select a file on his hard-drive? Or would this violate Java applet security? (I'm assuming that the default security settings are being used. I don't want to ask my users to grant me extra permissions.)</p>
| [
{
"answer_id": 235321,
"author": "Michael Myers",
"author_id": 13531,
"author_profile": "https://Stackoverflow.com/users/13531",
"pm_score": 3,
"selected": true,
"text": "JFileChooser"
},
{
"answer_id": 237840,
"author": "hishadow",
"author_id": 7188,
"author_profile"... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7648/"
] |
235,264 | <p>I am trying to connect to 2 databases on the same instance of MySQL from 1 PHP script.</p>
<p>At the moment the only way I've figured out is to connect to both databases with a different user for each.</p>
<p>I am using this in a migration script where I am grabbing data from the original database and inserting it... | [
{
"answer_id": 235294,
"author": "The.Anti.9",
"author_id": 2128,
"author_profile": "https://Stackoverflow.com/users/2128",
"pm_score": 2,
"selected": false,
"text": " $old = mysql_connect('old.database.com', 'user', 'pass);\n mysql_select_db('old_db', $old);\n\n\n $new = mysql_con... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
235,272 | <p>I'm probably doing this all wrong. I have a text file full of data and I want to match and replace patterns of "item" and "catalog number" that are in the file. But the order of each element in the file is very important, so I want to match/replace starting from the top of the file and then work my way down.</p>
<p... | [
{
"answer_id": 235300,
"author": "Alexandr Ciornii",
"author_id": 13467,
"author_profile": "https://Stackoverflow.com/users/13467",
"pm_score": 4,
"selected": false,
"text": "my $re=qr/\\sELEMENT\\s(.+?)\\s\\(Item := \"$item\".+?CatalogNumber := \"$catNum.+?END_ELEMENT/;\n sub parseData ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27687/"
] |
235,326 | <p>I want to hold a bunch of const char pointers into an std::set container [1]. std::set template requires a comparator functor, and the standard C++ library offers std::less, but its implementation is based on comparing the two keys directly, which is not standard for pointers.</p>
<p>I know I can define my own fun... | [
{
"answer_id": 235330,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 0,
"selected": false,
"text": "std::string"
},
{
"answer_id": 235336,
"author": "paercebal",
"author_id": 14089,
"author_profile": "... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18308/"
] |
235,345 | <p>I'm working on a consumer web app that needs to do a long running background process that is tied to each customer request. By long running, I mean anywhere between 1 and 3 minutes.</p>
<p>Here is an example flow. The object/widget doesn't really matter.</p>
<ol>
<li>Customer comes to the site and specifies object... | [
{
"answer_id": 235357,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 0,
"selected": false,
"text": "exec (\"/usr/bin/php long_running_process.php > /dev/null &\");\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/235345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8243/"
] |
235,360 | <p>Today I had a discussion with a colleague about nested functions in Javascript:</p>
<pre><code>function a() {
function b() {
alert('boo')
}
var c = 'Bound to local call object.'
d = 'Bound to global object.'
}
</code></pre>
<p>In this example, trials point out that b is not reachable outside the ... | [
{
"answer_id": 235377,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 2,
"selected": false,
"text": "function a() { ... }\n var a = function() { ... }\n"
},
{
"answer_id": 235388,
"author": "rp.",
"au... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31330/"
] |
235,369 | <p>I've searched around a bit in the small amount of iPhone/iPod Touch development information available and couldn't find anything for or against. Can an application find out information about currently playing song on iPhone/iPod Touch? Since the music can continue to play while you are in 3rd party applications, i... | [
{
"answer_id": 235377,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 2,
"selected": false,
"text": "function a() { ... }\n var a = function() { ... }\n"
},
{
"answer_id": 235388,
"author": "rp.",
"au... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133351/"
] |
235,373 | <p>I've been trying to modify the following menu to make it look indentical in IE, Firefox, and Safari/Chrome but I can't seem to get it to look right in Safari/Chrome.</p>
<p>Could anyone tell me how to fix it? When viewed in Safari or Chrome, notice that the menu is ignoring the padding.</p>
<p><a href="http://www... | [
{
"answer_id": 473162,
"author": "Bo Jeanes",
"author_id": 56690,
"author_profile": "https://Stackoverflow.com/users/56690",
"pm_score": 0,
"selected": false,
"text": "inline inline-block"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/235373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
235,376 | <p>Is there any way to add a field to a class at runtime ( a field that didn't exist before ) ? Something like this snippet :</p>
<pre><code>Myobject *ob; // create an object
ob->addField("newField",44); // we add the field to the class and we assign an initial value to it
printf("%d",ob->newField); // now we ca... | [
{
"answer_id": 235417,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 2,
"selected": false,
"text": "std::vector<void*> extra_data;\n size_t add_data_link(void *p); // points to existing data, returns i... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11234/"
] |
235,383 | <p>In traditional Waterfall, requirements were gathered - typically in a MS-Word document - following an esoteric template. In a "strict" waterfall model, this document is frozen after the requirement phase and a Change Control / Change Management process is responsible for introducing controlled changes. (**) [Typica... | [
{
"answer_id": 15463234,
"author": "Josh Bruce",
"author_id": 1304423,
"author_profile": "https://Stackoverflow.com/users/1304423",
"pm_score": 2,
"selected": false,
"text": "Given I am working on a document\nWhen I select \"Save As...\"\nThen a menu should appear allowing me to choose a... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28413/"
] |
235,386 | <p>What's the best way to use NaNs in C++?</p>
<p>I found <code>std::numeric_limits<double>::quiet_NaN()</code> and <code>std::numeric_limits<double>::signaling_NaN()</code>. I'd like to use <code>signaling_NaN</code> to represent an uninitialized variable as follows:</p>
<pre><code>double diameter = std... | [
{
"answer_id": 235490,
"author": "Menkboy",
"author_id": 29539,
"author_profile": "https://Stackoverflow.com/users/29539",
"pm_score": 2,
"selected": false,
"text": "void set_snan( double &d )\n{\n long long *bits = (long long *)&d;\n *bits = 0x7ff0000080000001LL;\n}\n"
},
{
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25507/"
] |
235,394 | <p>In class, we learned about the halting problem, Turing machines, reductions, etc. A lot of classmates are saying these are all abstract and useless concepts, and there's no real point in knowing them (i.e., you can forget them once the course is over and not lose anything).</p>
<p>Why is theory useful? Do you ever ... | [
{
"answer_id": 235465,
"author": "benjismith",
"author_id": 22979,
"author_profile": "https://Stackoverflow.com/users/22979",
"pm_score": 5,
"selected": false,
"text": "Blah blah blah ${MyTemplateString} blah blah blah.\n"
},
{
"answer_id": 42369187,
"author": "code_dredd",
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
235,402 | <p>What's the best way to unit test large data sets? Some legacy code that I'm maintaining has structures of a hundred members or more; other parts of the code that we're working on create or analyze data sets of hundreds of samples.</p>
<p>The best approach I've found so far is to serialize the structures or data se... | [
{
"answer_id": 237110,
"author": "Dave Hillier",
"author_id": 1575281,
"author_profile": "https://Stackoverflow.com/users/1575281",
"pm_score": 1,
"selected": false,
"text": "unsigned char mySerialisedData[] = { 0xFF, 0xFF, 0xFF, 0xFF, ... };\n\ntest()\n{\n MyStruct* s = (MyStruct*) m... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25507/"
] |
235,409 | <p>I have trouble comparing 2 double in Excel VBA</p>
<p>suppose that I have the following code</p>
<pre><code>Dim a as double
Dim b as double
a = 0.15
b = 0.01
</code></pre>
<p>After a few manipulations on b, b is now equal to 0.6</p>
<p>however the imprecision related to the double data type gives me headache bec... | [
{
"answer_id": 235581,
"author": "C. Dragon 76",
"author_id": 5682,
"author_profile": "https://Stackoverflow.com/users/5682",
"pm_score": 2,
"selected": false,
"text": "Dim a as Decimal\nDim b as Decimal\na = 0.15\nb = 0.01\n"
},
{
"answer_id": 5576799,
"author": "Anonymous T... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6367/"
] |
235,411 | <p>Finding out what's selected in real browsers is as simple as:</p>
<pre><code>var range = {
start: textbox.selectionStart,
end: textbox.selectionEnd
}
</code></pre>
<p>But IE, as usual, doesn't understand. What's the best cross-browser way to do this?</p>
| [
{
"answer_id": 235419,
"author": "TALlama",
"author_id": 5657,
"author_profile": "https://Stackoverflow.com/users/5657",
"pm_score": 3,
"selected": false,
"text": "function getSelection(inputBox) {\n if (\"selectionStart\" in inputBox) {\n return {\n start: inputBox.... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5657/"
] |
235,418 | <p>I have (simplified for the example) a table with the following data</p>
<pre><code>Row Start Finish ID Amount
--- --------- ---------- -- ------
1 2008-10-01 2008-10-02 01 10
2 2008-10-02 2008-10-03 02 20
3 2008-10-03 2008-10-04 01 38
4 2008-10-04 2008-10-05 01 ... | [
{
"answer_id": 235956,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 2,
"selected": false,
"text": "-- Derived from Figure 6.25 from Snodgrass \"Developing Time-Oriented\n-- Database Applications in SQL\"\nCREATE ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31326/"
] |
235,422 | <p>I can't seem to find the _findfirst / findfirst, _findnext / findnext API on gcc for Linux, and would actually rather use the Standard Template Library (STL) for that if it is included there.</p>
<p>Does anyone know what API there is available for listing files in a directory under Linux for C++ (gcc)?</p>
| [
{
"answer_id": 68798714,
"author": "Martin Konrad",
"author_id": 7583635,
"author_profile": "https://Stackoverflow.com/users/7583635",
"pm_score": 1,
"selected": false,
"text": "std::filesystem Boost.Filesystem std::filesystem::directory_iterator _findfirst findnext opendir readdir close... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4829/"
] |
235,435 | <p>Python's access to environment variables does not accurately reflect the operating system's view of the processes environment.</p>
<p>os.getenv and os.environ do not function as expected in particular cases.</p>
<p>Is there a way to properly get the running process' environment?</p>
<hr>
<p>To demonstrate what I... | [
{
"answer_id": 235475,
"author": "ddaa",
"author_id": 11549,
"author_profile": "https://Stackoverflow.com/users/11549",
"pm_score": 5,
"selected": true,
"text": "os os.environ posix .environ"
},
{
"answer_id": 237217,
"author": "Brian",
"author_id": 9493,
"author_prof... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9241/"
] |
235,437 | <p>Given the following file:</p>
<pre><code>department=value1
location=valueA
location=valueB
department=value2
</code></pre>
<p>I use the following to load the file into a Perl hash:</p>
<pre><code>use File::Slurp;
use Data::Dumper;
my %hash = map {
s/#.*//;
s/^\s+//;
s/\s+$//;
m/(.*?)\s*=\s*(.*)/;
} re... | [
{
"answer_id": 235489,
"author": "Nikhil",
"author_id": 5734,
"author_profile": "https://Stackoverflow.com/users/5734",
"pm_score": 6,
"selected": true,
"text": "my %hash;\nwhile (<FILE>)\n{\n chomp;\n my ($key, $val) = split /=/;\n $hash{$key} .= exists $hash{$key} ? \",$val\" : $... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
235,439 | <p>The way I do 80-column indication in Vim seems incorrect:<code>set columns=80</code>.
At times I also <code>set textwidth</code>, but I want to be able to see and anticipate line overflow with the <code>set columns</code> alternative.</p>
<p>This has some <strong>unfortunate</strong> side effects:</p>
<ol>
<li>I ... | [
{
"answer_id": 235501,
"author": "Lucas Oman",
"author_id": 6726,
"author_profile": "https://Stackoverflow.com/users/6726",
"pm_score": 3,
"selected": false,
"text": ":set textwidth=80 :set ruler :set columns=80"
},
{
"answer_id": 235599,
"author": "Matthew Scharley",
"au... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
235,446 | <p>Anybody have a slicker way to do this? Seems like it should be easier than this, but I'm having a mental block. Basically I need to remove items from an dictionary and recurse into the values of the items that are also dictionaries.</p>
<pre><code>private void RemoveNotPermittedItems(ActionDictionary menu)
{
... | [
{
"answer_id": 235469,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "foreach foreach (var key in keysToRemove)\n{\n menu.Remove(key);\n}\n Dictionary RemoveAll"
},
{
"answer_id":... | 2008/10/24 | [
"https://Stackoverflow.com/questions/235446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29493/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.