qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
290,227 | <p>What is the equivalent of Java's <code>System.currentTimeMillis()</code> in C#?</p>
| [
{
"answer_id": 290265,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": false,
"text": "private static readonly DateTime Jan1st1970 = new DateTime\n (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);\n\npublic stati... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,238 | <p>I'm trying to do something that gets a cs file in runtime from user make it meaningful to assembly get its properties, methods etc. </p>
<p>Is there a way to do this by reflection in C#?</p>
| [
{
"answer_id": 290269,
"author": "edosoft",
"author_id": 6399,
"author_profile": "https://Stackoverflow.com/users/6399",
"pm_score": 4,
"selected": true,
"text": "CodeDomProvider codeProvider = new CSharpCodeProvider();\nICodeCompiler compiler = codeProvider.CreateCompiler();\n\n// add c... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4215/"
] |
290,254 | <p>Lets say I have a web app which has a page that may contain 4 script blocks - the script I write may be found in one of those blocks, but I do not know which one, that is handled by the controller. </p>
<p>I bind some <code>onclick</code> events to a button, but I find that they sometimes execute in an order I did ... | [
{
"answer_id": 290294,
"author": "dowski",
"author_id": 21712,
"author_profile": "https://Stackoverflow.com/users/21712",
"pm_score": 7,
"selected": false,
"text": "$('#mydiv').click(function(e) {\n // maniplate #mydiv ...\n $('#mydiv').trigger('mydiv-manipulated');\n});\n\n$('#myd... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26188/"
] |
290,285 | <p>I have a module that sends an email to a specified email address but I want to default the email recipient to the portal administrator. How can I retrieve this information?</p>
| [
{
"answer_id": 290416,
"author": "Douglas Anderson",
"author_id": 5678,
"author_profile": "https://Stackoverflow.com/users/5678",
"pm_score": 2,
"selected": false,
"text": "' get the current portal\nDim portSettings As PortalSettings = PortalController.GetCurrentPortalSettings\n\n' get e... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35165/"
] |
290,287 | <p>I need to determine which pages of a Word document that a keyword occurs on. I have some tools that can get me the text of the document, but nothing that tells me which pages the text occurs on. Does anyone have a good starting place for me? I'm using .NET</p>
<p>Thanks!</p>
<p>edit: Additional constraint: I ca... | [
{
"answer_id": 290357,
"author": "Douglas Anderson",
"author_id": 5678,
"author_profile": "https://Stackoverflow.com/users/5678",
"pm_score": 3,
"selected": true,
"text": "Microsoft.Office.Interop.Word.Application wordApplication = new Microsoft.Office.Interop.Word.Application();\nobject... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37685/"
] |
290,296 | <p>I'm working on a website that uses lots of png24 files, for transparency.</p>
<p>I need to replace them with png8 files, as all the png fix style javascript workarounds for png24 cause IE6 to lock up randomly. </p>
<p>See this link to get an idea of the symptoms IE6 displays - <a href="http://blogs.cozi.com/tech/2... | [
{
"answer_id": 290365,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 4,
"selected": true,
"text": "file % file foo.png \nfoo.png: PNG image data, 1514 x 1514, 8-bit grayscale, non-interlaced\n"
},
{
"answer_id": 8547... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15479/"
] |
290,304 | <p>After reading <a href="http://www.onlamp.com/pub/a/apache/2005/02/10/database_logs.html" rel="noreferrer">an article about the subject from O'Reilly</a>, I wanted to ask Stack Overflow for their thoughts on the matter.</p>
| [
{
"answer_id": 23537177,
"author": "Piotr Perak",
"author_id": 679340,
"author_profile": "https://Stackoverflow.com/users/679340",
"pm_score": 2,
"selected": false,
"text": "select * from logs\nwhere log_name = 'wcf' and log_level = 'error'\n select * from logs\nwhere contextId = 'what y... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
290,305 | <p>I have a problem trying to model a many-to-one relationship in NHibernate, where the object on the 'one' side has a unique constraint on a column. The problem is as follows:</p>
<p>I have two tables, 'Person' and 'Country'. Each Person has one and only one Country associated with it. A Country can have many Persons... | [
{
"answer_id": 291533,
"author": "Sean Carpenter",
"author_id": 729,
"author_profile": "https://Stackoverflow.com/users/729",
"pm_score": 3,
"selected": false,
"text": "Person p = new Person();\np.Country = session.Load<Country>(countryId);\nsession.Save(p);\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,309 | <p>I have SSRS Report being accessed from a Report Server. Is there any way I can give an error message of my own, if my report fails to open there? </p>
| [
{
"answer_id": 291533,
"author": "Sean Carpenter",
"author_id": 729,
"author_profile": "https://Stackoverflow.com/users/729",
"pm_score": 3,
"selected": false,
"text": "Person p = new Person();\np.Country = session.Load<Country>(countryId);\nsession.Save(p);\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,320 | <p>I have a web server on port 80 and port 81. IE can connect to the server on either port. This worked fine until I installed an application with a file type (.TPJ) that had a MIME type of text/xml on the client PC. At that point IE no longer opened the web site, but offered to download a file <em>serverName.TPJ</em>.... | [
{
"answer_id": 290681,
"author": "Wayne Johnston",
"author_id": 37691,
"author_profile": "https://Stackoverflow.com/users/37691",
"pm_score": 2,
"selected": false,
"text": "regsvr32 msxml3.dll\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37691/"
] |
290,322 | <p>I'm trying to hide the "Title" field in a list.
This doesn't seem to work:</p>
<pre><code>SPList myList;
...
SPField titleField = myList.Fields.GetField("Title");
//titleField.PushChangesToLists = true; <-- doesn't seem to make a difference
titleField.ShowInEditForm = false;
titleField.ShowInDisplayForm = false;... | [
{
"answer_id": 290350,
"author": "Brian Liang",
"author_id": 5853,
"author_profile": "https://Stackoverflow.com/users/5853",
"pm_score": 0,
"selected": false,
"text": "using (SPSite site = new SPSite(webUrl))\n{\n using (SPWeb web = site.OpenWeb())\n {\n try\n {\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1287/"
] |
290,326 | <p>Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:</p>
<pre>
<element1>
<element2>
someData
</element2>
</element1>
</pre>
<p>instead of:</p>
<pre><element1><element2>someData</element2></element1></pre>
<p>If this i... | [
{
"answer_id": 290507,
"author": "Josh",
"author_id": 2204759,
"author_profile": "https://Stackoverflow.com/users/2204759",
"pm_score": 4,
"selected": true,
"text": "transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");"
},
{
"answer_id": 485126,
"author": "StaxMan",
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/142/"
] |
290,330 | <p>How is the guest account in SQL Server (2000, 2005, 2008) supposed to be used? What is it good for? I've tried enabling the account but I still can't get certain users to be able to refresh Excel 2007 PivotTables attached to views which I have given SELECT rights to GUEST.</p>
<p>What am I missing? </p>
| [
{
"answer_id": 290507,
"author": "Josh",
"author_id": 2204759,
"author_profile": "https://Stackoverflow.com/users/2204759",
"pm_score": 4,
"selected": true,
"text": "transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");"
},
{
"answer_id": 485126,
"author": "StaxMan",
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
290,335 | <p>I have a table cell, and I want a div within it to always be at the bottom left corner. The following works fine in IE and Safari, but Firefox is positioning the <code>div</code> absolutely on the page, not within the cell (code based on the solution solution <a href="https://stackoverflow.com/questions/104953/posi... | [
{
"answer_id": 290371,
"author": "Boris Smirnov",
"author_id": 35513,
"author_profile": "https://Stackoverflow.com/users/35513",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/96/"
] |
290,347 | <p>I need to use sendmail from Macs in an office. At the moment, I can get it to work on the two development Macs (which I think is due to MAMP being installed and working), but getting it to go on the others seems to be a problem...</p>
<p>I assume it's down to some config issue, and hope there's someway to fix it (w... | [
{
"answer_id": 290400,
"author": "Dycey",
"author_id": 35961,
"author_profile": "https://Stackoverflow.com/users/35961",
"pm_score": 0,
"selected": false,
"text": "### MAMP Postfix Configuration - Start ###\n\nmyorigin = example.com\nmyhostname = mailer.$myorigin\nsmtpd_sender_restrictio... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35961/"
] |
290,368 | <p>How can I go through all external links in a div with javascript, adding (or appending) a class and alt-text?</p>
<p>I guess I need to fetch all objects inside the div element, then check if each object is a , and check if the href attributen starts with http(s):// (should then be an external link), then add conten... | [
{
"answer_id": 290445,
"author": "Josh",
"author_id": 2204759,
"author_profile": "https://Stackoverflow.com/users/2204759",
"pm_score": 0,
"selected": false,
"text": "$(\"div a[href^='http']\").each(function() {\n $(this).attr(\"alt\",altText);\n var oldClassAttributeValue = $(this).at... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,382 | <p>I'm sure it's just simple html/css but I don't know what to call the bar (googling horizontal bar html always results in a horizontal rule).</p>
<p><a href="http://jquery.com/" rel="nofollow noreferrer">http://jquery.com/</a> has one - the grayish bar the runs across the top separating the menu from the content of ... | [
{
"answer_id": 290435,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "body {\n background: #2a3139 url(../images/bg_home_tile_sml.jpg) repeat-x 50% 0;\n}\n"
},
{
"answer_id": 290451,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,386 | <p>Has anyone seen this type of IE display problem?</p>
<p><a href="http://xs133.xs.to/xs133/08465/ie_problem910.jpg.xs.jpg" rel="nofollow noreferrer">Example http://xs133.xs.to/xs133/08465/ie_problem910.jpg.xs.jpg</a></p>
<p>Note that it is doing some sort of word-wrap/duplication when it renders.</p>
<p>The code f... | [
{
"answer_id": 290435,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "body {\n background: #2a3139 url(../images/bg_home_tile_sml.jpg) repeat-x 50% 0;\n}\n"
},
{
"answer_id": 290451,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16437/"
] |
290,392 | <p>I've got a somewhat dated Java EE application running on Sun Application Server 8.1 (aka SJSAS, precursor to Glassfish). With 500+ simultaneous users the application becomes unacceptably slow and I'm trying to assist in identifying where most of the execution time is spent and what can be done to speed it up. So f... | [
{
"answer_id": 290435,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "body {\n background: #2a3139 url(../images/bg_home_tile_sml.jpg) repeat-x 50% 0;\n}\n"
},
{
"answer_id": 290451,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30642/"
] |
290,397 | <p>I have a list of articles, and each article belongs to a section.</p>
<pre><code>class Section(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
class Article(models.Model):
section = models.ForeignKey(Section)
headline = models.CharField(max_length=200)
... | [
{
"answer_id": 291005,
"author": "Daniel Naab",
"author_id": 32638,
"author_profile": "https://Stackoverflow.com/users/32638",
"pm_score": -1,
"selected": false,
"text": "{% regroup articles by section as articles_by_section %}\n\n<ol>\n{% for article in articles_by_section %} \n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/437/"
] |
290,402 | <p>Out of curiosity, anyone knows the particulars of the internal implementation of </p>
<pre><code>ListControl.SelectedIndex = (int) <new valueIndex>
</code></pre>
<p>VS </p>
<pre><code>ListControl.SelectedValue = <new value>.ToString()
</code></pre>
<p>I'm having difficulties with a custom validation ... | [
{
"answer_id": 291005,
"author": "Daniel Naab",
"author_id": 32638,
"author_profile": "https://Stackoverflow.com/users/32638",
"pm_score": -1,
"selected": false,
"text": "{% regroup articles by section as articles_by_section %}\n\n<ol>\n{% for article in articles_by_section %} \n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3403/"
] |
290,405 | <p>If you use a GUID as a password for a publicly facing application as a means to gain access to a service, is this security through obscurity?</p>
<p>I think the obvious answer is yes, but the level of security seems very high to me since the chances of guessing a GUID is very very low correct?</p>
<p><b>Update</b>... | [
{
"answer_id": 290463,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 4,
"selected": false,
"text": "'{' '}' '-' {91626979-FB5C-439A-BBA3-7715ED647504} 91626979FB5C439ABBA37715ED647504"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,424 | <p>I would want to do something like:</p>
<pre><code>>>> lst = [1, 2, 3, 4, 5]
>>> lst.find(lambda x: x % 2 == 0)
2
>>> lst.findall(lambda x: x % 2 == 0)
[2, 4]
</code></pre>
<p>Is there anything nearing such behavior in Python's standard libraries?</p>
<p>I know it's very easy to roll-you... | [
{
"answer_id": 290440,
"author": "John Montgomery",
"author_id": 5868,
"author_profile": "https://Stackoverflow.com/users/5868",
"pm_score": 8,
"selected": true,
"text": ">>> lst = [1, 2, 3, 4, 5]\n>>> filter(lambda x: x % 2 == 0, lst)\n[2, 4]\n >>> lst = [1, 2, 3, 4, 5]\n>>> [x for x in... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8206/"
] |
290,436 | <p>Presently I have a some legacy code, which generates the op code. If the code has more number of macros then the code generation takes so much of time (In terms of hours!!).
I have gone through the logic, they are handling the macro by searching for it and doing a replace of each variable in it some thing like inlin... | [
{
"answer_id": 290512,
"author": "Vinay",
"author_id": 28641,
"author_profile": "https://Stackoverflow.com/users/28641",
"pm_score": 0,
"selected": false,
"text": "int c = a + b\n"
},
{
"answer_id": 318750,
"author": "Chris",
"author_id": 8415,
"author_profile": "http... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28641/"
] |
290,449 | <p>Hello I was writing a Regular Expression (first time in my life I might add) but I just can't figure out how to do what I want. So far, so good since I already allow only Letters and spaces (as long as it's not the first character) now what I'm missing is that I don't want to allow any numbers in between the charact... | [
{
"answer_id": 290472,
"author": "Graeme Perrow",
"author_id": 1821,
"author_profile": "https://Stackoverflow.com/users/1821",
"pm_score": 1,
"selected": false,
"text": "/^[a-zA-Z][\\sa-zA-Z]*$/\n $"
},
{
"answer_id": 290479,
"author": "Alnitak",
"author_id": 6782,
"a... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28586/"
] |
290,454 | <p>I am new to RESTful stuff. But, I want to use it in my rails app. When I add this to my routes.rb <code>map.resources :notes</code> I get routes to these methods created:</p>
<ul>
<li>index</li>
<li>create</li>
<li>new</li>
<li>edit</li>
<li>show</li>
<li>update</li>
<li>destroy</li>
</ul>
<p>What I am wondering... | [
{
"answer_id": 290538,
"author": "Owen",
"author_id": 2109,
"author_profile": "https://Stackoverflow.com/users/2109",
"pm_score": 4,
"selected": true,
"text": "create new update edit create/new/edit/update"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
290,456 | <p>This is a follow-up to <a href="https://stackoverflow.com/questions/269417/which-language-should-i-use">two</a> <a href="https://stackoverflow.com/questions/271488/linking-languages">questions</a> I asked a week or so back. The upshot of those was that I was building a prototype of an AI-based application for the we... | [
{
"answer_id": 290650,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": true,
"text": "django-admin.py startproject import"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11522/"
] |
290,459 | <p>I am reworking some ui in an application written by freelance .Net developers from another country. </p>
<p>I am not going to go into how bad the code is and entangled the code with structure content and presentation are... </p>
<p>But one of the things I notice is that menu for accessing the parts of the app is ... | [
{
"answer_id": 290517,
"author": "Phil Jenkins",
"author_id": 35496,
"author_profile": "https://Stackoverflow.com/users/35496",
"pm_score": 3,
"selected": true,
"text": ".linkButton\n{\n background-color: transparent;\n border-style: none;\n color: /* Something nice */\n cursor: ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35513/"
] |
290,465 | <p>Does anyone know of a way to paste over a visually selected area without having the selection placed in the default register?</p>
<p>I know I can solve the problem by always pasting from an explicit register. But it's a pain in the neck to type <kbd>"</kbd><kbd>x</kbd><kbd>p</kbd> instead of just <kbd>p</kbd></p>
| [
{
"answer_id": 290543,
"author": "Gowri",
"author_id": 3253,
"author_profile": "https://Stackoverflow.com/users/3253",
"pm_score": -1,
"selected": false,
"text": ":set guioptions-=a\n:set guioptions-=A\n"
},
{
"answer_id": 290723,
"author": "Luc Hermitte",
"author_id": 15... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37708/"
] |
290,475 | <p>We have a major VB6 trading application which uses MS Access (Don't ask!) It is always blasting trades into an MS Access database.</p>
<p>The rest of the infrastructure here has moved on considerably and I want to read this Access database periodically and copy any new trades into a SQL server database.</p>
<p>The... | [
{
"answer_id": 290561,
"author": "Mat Nadrofsky",
"author_id": 26853,
"author_profile": "https://Stackoverflow.com/users/26853",
"pm_score": 0,
"selected": false,
"text": "\"Data Source=C:\\IronSpeed\\TestAccessDB\\TestTypes.mdb;\nJet OLEDB:Database Locking Mode=1;\nMode=Read\"\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35055/"
] |
290,484 | <p>I am writing a silly little app in C++ to test one of my libraries. I would like the app to display a list of commands to the user, allow the user to type a command, and then execute the action associated with that command. Sounds simple enough.
In C# I would end up writing a list/map of commands like so:</p>
<pre>... | [
{
"answer_id": 290516,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "void exit_me(); /* exits the program */\nvoid help(); /* displays help */\n\nstd::map< std::string, boost::f... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21704/"
] |
290,488 | <p>This isn't my code; I am trying to figure out what exactly this does. This is a part of a big, ancient system written in C (actually it was written 4 years ago, but most likely written by a late 80s programmer mentality). Part of the code:</p>
<pre><code>char DestFile[256];
char DestFile2[256];
//This part is just... | [
{
"answer_id": 290521,
"author": "Soraz",
"author_id": 24610,
"author_profile": "https://Stackoverflow.com/users/24610",
"pm_score": 5,
"selected": true,
"text": " |- Ptr\n v \n M y f i l e . g z \\0\n rename(\"myfile.gz\", \"myfile\");\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34395/"
] |
290,503 | <p>Let's say you got a file containing texts (from 1 to N) separated by a $
How can a slit the file so the end result is N files? </p>
<blockquote>
<p>text1 with newlines $<br>
text2 $etc... $<br>
textN</p>
</blockquote>
<p>I'm thinking something with awk or sed but is there any available unix app that already... | [
{
"answer_id": 290519,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": true,
"text": "split -p awk 'BEGIN {RS = \"$\"} { ... }'\n { ... } csplit"
},
{
"answer_id": 290665,
"author": "Powerlord"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23051/"
] |
290,513 | <p>I need an regular expression pattern to only accept positive whole numbers. It can also accept a single zero.</p>
<p>I do not want to accept decimals, negative number and numbers with leading zeros.</p>
<p>Any suggestions?</p>
| [
{
"answer_id": 290530,
"author": "3Doubloons",
"author_id": 25818,
"author_profile": "https://Stackoverflow.com/users/25818",
"pm_score": 3,
"selected": false,
"text": "/([1-9][0-9]*)|0/\n"
},
{
"answer_id": 290531,
"author": "Robert Gamble",
"author_id": 25222,
"auth... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
290,523 | <p>What im wondering how to do is when someone edits a list item and it goes through my event code that is fired when a change is made and save is hit, i dont want anyone to be able to edit that list item itself while its still processnig that request. So i was wondering if while in that event i can disable the individ... | [
{
"answer_id": 293109,
"author": "Bjørn Furuknap",
"author_id": 28382,
"author_profile": "https://Stackoverflow.com/users/28382",
"pm_score": 3,
"selected": true,
"text": " public override void ItemAdding(SPItemEventProperties properties)\n {\n if (properties.ListItem[\"upda... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18431/"
] |
290,527 | <p>Similar to <a href="https://stackoverflow.com/questions/288794/does-c-optimize-the-concatenation-of-string-literals">this</a> question, but for VB.NET since I learned this is a language thing.</p>
<p>For instance, would the compiler know to translate</p>
<blockquote>
<p>Dim s As String = "test " + "this " +
"f... | [
{
"answer_id": 297257,
"author": "Jason Hernandez",
"author_id": 34863,
"author_profile": "https://Stackoverflow.com/users/34863",
"pm_score": 5,
"selected": true,
"text": "Public Class Class1\n\n\n Dim s As String = \"test \" + \"this \" + \"function\"\n\n Public Function test() A... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
290,535 | <p>Using jQuery, what's the best way to find the next form element on the page, starting from an arbitrary element? When I say form element I mean <code><input></code>, <code><select></code>, <code><button></code> or <code><textarea></code>.</p>
<p>In the following examples, the element with t... | [
{
"answer_id": 290604,
"author": "jckeyes",
"author_id": 17881,
"author_profile": "https://Stackoverflow.com/users/17881",
"pm_score": 2,
"selected": false,
"text": "<div>\n <input id=\"FormElement_0\" type=\"text\" />\n <input id=\"FormElement_1\" type=\"text\" />\n<div>\n //I'm a... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,537 | <p>I have a solution with many projects. There is actually a Core project and a few plugins. I changed OutputPath for all plugins so all binaries end up in the Core bin\debug folder. (this is necessary as the Core do not have a reference on plugins, hence it does not "include" plugins binaries when it is compiled.)</p>... | [
{
"answer_id": 290568,
"author": "Jeromy Irvine",
"author_id": 8223,
"author_profile": "https://Stackoverflow.com/users/8223",
"pm_score": 2,
"selected": false,
"text": "copy \"$(TargetPath)\" \"$(SolutionDir)Core\\$(OutDir)\"\n copy \"$(TargetPath).pdb\" \"$(SolutionDir)Core\\$(OutDir)\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37706/"
] |
290,545 | <p>I am adapting a little rmi client-server application. I have written several things :</p>
<pre><code>HelloInterface -> A Hello World interface for RMI
Server -> The server app'
Client -> The client app'
</code></pre>
<p>Nothing special, but... I have put my hands in a new RMISecurityManager, which calls a... | [
{
"answer_id": 291993,
"author": "Greg Case",
"author_id": 462,
"author_profile": "https://Stackoverflow.com/users/462",
"pm_score": 3,
"selected": true,
"text": "public class NativeRMISecurityManager extends RMISecurityManager {\n\n private static final boolean UNIX;\n\n static {\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26465/"
] |
290,548 | <p>How can I validate a username and password against Active Directory? I simply want to check if a username and password are correct.</p>
| [
{
"answer_id": 290558,
"author": "stephbu",
"author_id": 12702,
"author_profile": "https://Stackoverflow.com/users/12702",
"pm_score": 5,
"selected": false,
"text": "LOGON32_LOGON_NETWORK (3)\n"
},
{
"answer_id": 290571,
"author": "Charles Bretana",
"author_id": 32632,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,559 | <p>I want to write a script that will stop a scheduled task on a remote computer, do some stuff, and then start the schedule task back up.</p>
<p>How can I do it?</p>
| [
{
"answer_id": 291347,
"author": "Ben Noland",
"author_id": 32899,
"author_profile": "https://Stackoverflow.com/users/32899",
"pm_score": 8,
"selected": true,
"text": "schtasks /end /s <machine name> /tn <task name>\n schtasks /run /s <machine name> /tn <task name>\n\n\nC:\\>schtasks /?\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32899/"
] |
290,583 | <p>Vista SP1
Visual Studio 2008 SP1
.NET 3.5 SP1
C#</p>
<p>I have a winforms app I'm playing with that uses a SerialPort object as a private variable. When the application is compiled and executed, it works great. It also works running in debug mode wihtout any breakpoints. 90% of the time when I stop at a breakpoint ... | [
{
"answer_id": 44070189,
"author": "Berend Visser",
"author_id": 8036699,
"author_profile": "https://Stackoverflow.com/users/8036699",
"pm_score": 0,
"selected": false,
"text": "serialPortLock = Monitor.TryEnter(serialPort, 3000);\nThread.Sleep(5);\nserialPort.Write(msg, 0, msg.Length);\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37710/"
] |
290,590 | <p>For both .NET Winforms and Windows Presentation Foundation, if I have a text box that the user has just entered text into, and a button, if the user clicks the button the "LostFocus" event fires before the button click event fires. However if the user uses a keyboard shortcut for the button (e.g. Button's text is "... | [
{
"answer_id": 290661,
"author": "Quibblesome",
"author_id": 1143,
"author_profile": "https://Stackoverflow.com/users/1143",
"pm_score": 1,
"selected": false,
"text": "Button b = (Button) sender;\nb.Focus();\n"
},
{
"answer_id": 290937,
"author": "Jason Down",
"author_id"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,596 | <p>Sql server complaining about this IF NOT EXISTS statement, saying that there is 'incorrect syntax near the keyword 'OR'.</p>
<p>My query:</p>
<pre><code>IF NOT EXISTS (
(SELECT * FROM Users where userID = 1)
OR
(SELECT * FROM sales WHERE saleID = 1)
)
... | [
{
"answer_id": 290618,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 3,
"selected": false,
"text": "IF \n NOT EXISTS (SELECT 1 FROM Users where userID = 1) \nAND \n NOT EXISTS (SELECT 1 FROM sales WHERE saleID ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,598 | <p>I'm doing some text rendering in Cocoa using NSAttributedString, and setting the font and underline properties, etc. However, I can't figure out how I can change the text's tracking. Any suggestions?</p>
| [
{
"answer_id": 292563,
"author": "cms",
"author_id": 28532,
"author_profile": "https://Stackoverflow.com/users/28532",
"pm_score": 1,
"selected": false,
"text": "NSLayoutManager"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3830/"
] |
290,610 | <p>I have a table which has a field <code>sort_id</code>. In this field there are numbers from 1 to n, that define the order of the data sets.
Now I want to delete some elements and afterwards I want to reorder the table. Therefore I need a query that "finds" the gaps and changes the <code>sort_id</code> field accordin... | [
{
"answer_id": 290641,
"author": "Mladen Prajdic",
"author_id": 31345,
"author_profile": "https://Stackoverflow.com/users/31345",
"pm_score": 0,
"selected": false,
"text": "SELECT row_number() over(order by sort_id) as RN\nFROM table\n update t1\nset sort_id = t2.RN\nFROM table t1 \n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35903/"
] |
290,617 | <p>I feel like I'm re-inventing the wheel here, but I need to find a way of taking a URL from a catchall,and redirecting that to another route.</p>
<p>The reason for this is because I need to do some things like adding session cookies for certain urls, and then pass them on to their relevant action.</p>
<p>What's the... | [
{
"answer_id": 292050,
"author": "anonymous",
"author_id": 36602,
"author_profile": "https://Stackoverflow.com/users/36602",
"pm_score": 0,
"selected": false,
"text": "routes.MapRoute(\n \"Partner\",\n \"partners/{partner}/{*wildcard}\",\n new { controller = \"Partners\", action... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31532/"
] |
290,632 | <p><strong>Original Question</strong></p>
<p>I am writting a logging class where the goal is to be able to do this:</p>
<pre><code>// thread one
Logger() << "Some string" << std::ios::hex << 45;
// thread two
Logger() << L"Some wide string" << std::endl;
</code></pre>
<p>Currently my Lo... | [
{
"answer_id": 290644,
"author": "Lodle",
"author_id": 23339,
"author_profile": "https://Stackoverflow.com/users/23339",
"pm_score": 0,
"selected": false,
"text": "Logger(\"This is my log msg %0X\", 45);\n void Logger(const char* format, ...)\n{\n char szMsg[3000];\n\n va_list args... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19476/"
] |
290,635 | <p>I'm trying to write a quick little java application to read the contents of a pcap file (from Wireshark) and play the data back on the network on a linux box. The file will only contain UDP broadcast packets, so my application only really needs the timestamp, port number, and data from the packet to do what I need.... | [
{
"answer_id": 4322157,
"author": "Urizev",
"author_id": 435855,
"author_profile": "https://Stackoverflow.com/users/435855",
"pm_score": 2,
"selected": false,
"text": " # echo 0 > /proc/sys/net/ipv6/bindv6only\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5074/"
] |
290,636 | <p>I am working on modifying an existing spell check plugin for TinyMCE. </p>
<p>This is what is supposed to happen:
1. User hits "space" and the spell check runs.
2. If the word is spelled wrong the word gets wrapped with a span and gets a red underline</p>
<p>what I find happening is that when the user hits space ... | [
{
"answer_id": 293465,
"author": "Jon Smock",
"author_id": 25538,
"author_profile": "https://Stackoverflow.com/users/25538",
"pm_score": 0,
"selected": false,
"text": "this.parentNode.moveToBookmark(b);\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37723/"
] |
290,652 | <p>My stored procedure has an output parameter:</p>
<pre><code>@ID INT OUT
</code></pre>
<p>How can I retrieve this using ado.net?</p>
<pre><code>using (SqlConnection conn = new SqlConnection(...))
{
SqlCommand cmd = new SqlCommand("sproc", conn);
cmd.CommandType = CommandType.StoredProcedure;
// add pa... | [
{
"answer_id": 290676,
"author": "WACM161",
"author_id": 12255,
"author_profile": "https://Stackoverflow.com/users/12255",
"pm_score": 5,
"selected": false,
"text": "using System; \nusing System.Data; \nusing System.Data.SqlClient; \n\n\nclass OutputParams \n{ \n [STAThread] \n sta... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,662 | <p>Where can I setup custom errors for directories in my application such as App_Code, App_Browsers, etc.? I already have customErrors configured in the web.config and that works as expected. For example,</p>
<p><a href="http://www.mysite.com/bla.aspx" rel="nofollow noreferrer">http://www.mysite.com/bla.aspx</a> > r... | [
{
"answer_id": 291374,
"author": "flesh",
"author_id": 27805,
"author_profile": "https://Stackoverflow.com/users/27805",
"pm_score": 0,
"selected": false,
"text": " void Application_Error(object sender, EventArgs e) \n{\n //uncomment this to narrow down 'helpful' microsoft messages\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2034/"
] |
290,667 | <p>Are there limits or performance penalties on the amount of code inside of my <code>home.cs</code> form?</p>
<p>I am writing a database application front-end in C# in Visual Studio 2008. The way things are lining up, I am using a tab-page way of changing the info shown to the end users, instead of using new forms. <... | [
{
"answer_id": 290724,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 2,
"selected": false,
"text": "Dock = DockStyle.Fill"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19802/"
] |
290,668 | <p>If I simply wrap my query with:</p>
<pre><code>BEGIN TRANSACTION
COMMIT TRANSACTION
</code></pre>
<p>If anything fails inside of that, will it automatically rollback?</p>
<p>From looking at other code, they seem to check for an error, if there is an error then they do a GOTO statement which then calls ROLLBACK... | [
{
"answer_id": 290696,
"author": "Mladen Prajdic",
"author_id": 31345,
"author_profile": "https://Stackoverflow.com/users/31345",
"pm_score": 2,
"selected": false,
"text": "SET XACT_ABORT ON\n\nBEGIN TRANSACTION\n-- CODE HERE\nCOMMIT TRANSACTION\n"
},
{
"answer_id": 290704,
"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,679 | <p>Over the years, I think I have seen and tried every conceivable way of generating stub data structures (fake data) for complex object graphs. It always gets hairy in java.</p>
<pre><code> * * * *
A---B----C----D----E
</code></pre>
<p>(Pardon cheap UML) </p>
<p>The key issue is that there are certain re... | [
{
"answer_id": 2611252,
"author": "Javid Jamae",
"author_id": 254046,
"author_profile": "https://Stackoverflow.com/users/254046",
"pm_score": 1,
"selected": false,
"text": "public class ItineraryObjectMother\n{\n Status status;\n private long departureTime;\n\n public ItineraryO... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
290,697 | <p>how do i insert items into an html listbox from a database?
im using asp c#. i cant make the listbox run at server because the application wont work if i do that. so i have to insert values from a database into an html listbox. I just need to display 1 column of data. cheers..</p>
| [
{
"answer_id": 290732,
"author": "Adam Lassek",
"author_id": 1249,
"author_profile": "https://Stackoverflow.com/users/1249",
"pm_score": 0,
"selected": false,
"text": "<asp:Placeholder /> var select = new HtmlSelect() { Size = 5 };\n\n//assuming the data has been placed in an IEnumarble\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23491/"
] |
290,699 | <p>I need to have a set of overloaded functions in my code but I get convertion wanrings.
Here is a test code:</p>
<pre><code>#include windows.h
void f(DWORD arg){...}
//void f(SIZE_T arg){}
void main(void)
{
DWORD dword=0;
SIZE_T size_t=dword;
f(size_t);
}
</code></pre>
<p>The compiler gives warning:</p>
<pre><... | [
{
"answer_id": 290712,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 4,
"selected": false,
"text": "size_t DWORD DWORD SIZE_T sz = dword;\nf((DWORD)sz); // no warning here\n size_t f void f_DWORD(DWORD arg) { ... }\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,700 | <p>Suppose that you have two huge files (several GB) that you want to concatenate together, but that you have very little spare disk space (let's say a couple hundred MB). That is, given <code>file1</code> and <code>file2</code>, you want to end up with a single file which is the result of concatenating <code>file1</c... | [
{
"answer_id": 290721,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": 4,
"selected": true,
"text": "dd"
},
{
"answer_id": 291479,
"author": "luke",
"author_id": 25920,
"author_profile": "https://Sta... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9530/"
] |
290,709 | <p>Is there a way to do this almost out-of-the-box?</p>
<p>I could go and write a big method that would use the collected tokens to figure out which leaves should be put in which branches and in the end populate a TreeNode object, but since gppg already handled everything by using supplied regular expressions, I was w... | [
{
"answer_id": 2777685,
"author": "Vadym Chekan",
"author_id": 158913,
"author_profile": "https://Stackoverflow.com/users/158913",
"pm_score": 1,
"selected": false,
"text": "{%\npublic BatchNode Batch;\npublic ErrorHandler yyhldr;\nprivate TransformationContext _txContext = Transformatio... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,734 | <p>I have a repository which contains some unversioned directories and files. The server running svn was recently changed and since the checkout was done using the url svn://OLD-IP, I relocated my svn working copy, this time to the url svn://NEW-DOMAIN-NAME. </p>
<p>Now since there are some unversioned resources, the ... | [
{
"answer_id": 290793,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 3,
"selected": false,
"text": "svn status svn help status C svn update svn revert svn cleanup svn update svn switch update switch"
},
{
"answer_id... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27474/"
] |
290,739 | <p>I have a form that sits behind ASP.NET forms authentication. So far, the implementation follows a typical "out of the box" type configuration.</p>
<p>One page allows users to post messages. If the user sits on that page for a long time to compose the message, it may run past the auth session expiration. In that ... | [
{
"answer_id": 291038,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 1,
"selected": false,
"text": "// Global.asax\nvoid FormsAuthentication_OnAuthenticate(object sender, FormsAuthenticationEventArgs e) {\n // check ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
290,743 | <p>I am invoking a C library via JNI that prints to stdout. How can I redirect this output to System.out?</p>
| [
{
"answer_id": 290749,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 3,
"selected": false,
"text": "System.out stdout System.out stdout OutputStream stdio write printf System.out.flush() stdio write fflush(stdout)"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,774 | <p>How can I get rid of: </p>
<pre><code><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="..."/>
</code></pre>
<p>Completely !</p>
| [
{
"answer_id": 290811,
"author": "Julio César",
"author_id": 2148,
"author_profile": "https://Stackoverflow.com/users/2148",
"pm_score": 5,
"selected": true,
"text": "<%@ Page Language=\"C#\" AutoEventWireup=\"true\"\nCodebehind=\"Default.aspx.cs\" Inherits=\"Sample._Default\"\nEnableVie... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35513/"
] |
290,778 | <p>I'm having a problem with a administrative app I'm working on. I'm build an interface for stopping, starting and querying various services across 40 or so servers. </p>
<p>I'm looking at service.controller and have been successful in stopping and starting various services with button events but now I'm trying to ... | [
{
"answer_id": 290907,
"author": "Dan R",
"author_id": 24222,
"author_profile": "https://Stackoverflow.com/users/24222",
"pm_score": 3,
"selected": true,
"text": " private void t_Elapsed(object sender, ElapsedEventArgs e)\n {\n // Check service statuses\n }\n private ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35760/"
] |
290,779 | <p>My teams evolution of TDD includes what appear to be departures from traditional oop.</p>
<ol>
<li><p>Moving away from classes that are self sufficient
We still encapsulate data where appropriate. But in order to mock any helper classes, we usually create some way to externally set them via constructor or mutator.... | [
{
"answer_id": 290872,
"author": "labilbe",
"author_id": 1195872,
"author_profile": "https://Stackoverflow.com/users/1195872",
"pm_score": 1,
"selected": false,
"text": "[assembly: InternalsVisibleTo(\"MyAssembly.Tests\")]"
},
{
"answer_id": 291091,
"author": "Brian",
"au... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34895/"
] |
290,786 | <p>Do you know what's the format of the DepartureWindow parameter for sabre web-services' OTA_AirLowFareSearch call? Whatever I pass, it shows me an error.</p>
<p>This is the entire documentation for those parameters (I kid you not):</p>
<pre><code><!--"DepartureDateTime" represents the date and time of departure.... | [
{
"answer_id": 347440,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": " <ns1:DepartureDateTime>2009-01-03T15:00:00</ns1:DepartureDateTime>\n <ns1:DepartureWindow>11001559</ns1:DepartureWindow>\n"
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,799 | <p>I'm programming in FORTRAN and C on an SGI running Irix 6.5, but this should be applicable to all Unix-like systems. How do I find which library I need to link to my program when I get an "unresolved text symbol" link error? Here's an example of what I'm seeing from the linker:</p>
<pre><code>ld32: ERROR 33 Unre... | [
{
"answer_id": 290815,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 4,
"selected": true,
"text": "nm nm -D /lib/libc.so.6\n grep"
},
{
"answer_id": 290873,
"author": "Tim Whitcomb",
"author_id": 2489... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6688/"
] |
290,806 | <p>I might be one anal programmer, but I like code that looks good from a distance. I just found myself lining up a CSS style so that instead of this:</p>
<pre><code>#divPreview {
text-align: center;
vertical-align: middle;
border: #779 1px solid;
overflow: auto;
width: 210px;
height: 128px;
... | [
{
"answer_id": 290812,
"author": "Steve",
"author_id": 22712,
"author_profile": "https://Stackoverflow.com/users/22712",
"pm_score": 3,
"selected": false,
"text": "#divPreview {\n width : 210px;\n height : 128px;\n overflow : auto;\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11397/"
] |
290,819 | <p>Are delegates the same thing as callbacks? Or are they related somehow?</p>
| [
{
"answer_id": 290854,
"author": "Wolf5",
"author_id": 37643,
"author_profile": "https://Stackoverflow.com/users/37643",
"pm_score": 3,
"selected": false,
"text": "delegate void MyDelegate(string Text);\n //This will result in a MessageBox with \"Lalalala\"\nMyFunctionThatGetsTheCallback... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,840 | <p>Let's say I have a table:</p>
<pre>
i j
---
a 1
a 2
a 3
a 4
b 5
b 6
b 7
b 8
b 9
</pre>
<p>Obvoiusly <code>SELECT a, GROUP_CONCAT(b SEPARATOR ',') GROUP BY a</code> would give me</p>
<pre>
a 1,2,3,4
b 5,6,7,8,9
</pre>
<p>But what if I want to get only a LIMITED number of results, like 2, for example:</p>
<pre>... | [
{
"answer_id": 293327,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 0,
"selected": false,
"text": "SELECT t.i, GROUP_CONCAT(t.j)\nFROM\n (SELECT t1.i, t1.j\n FROM mytable AS t1\n LEFT JOIN mytable AS t2\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37141/"
] |
290,851 | <p>The basics have already been answered <a href="https://stackoverflow.com/questions/257125/human-language-of-a-document">here</a>. But is there a pre-built PHP lib doing the same as Lingua::Identify from CPAN?</p>
| [
{
"answer_id": 290864,
"author": "chroder",
"author_id": 18802,
"author_profile": "https://Stackoverflow.com/users/18802",
"pm_score": 3,
"selected": true,
"text": "Text_LanguageDetect"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35189/"
] |
290,860 | <p>I'm attempting to get my first ASP.NET web page working on windows using <a href="http://www.mono-project.com/Main_Page" rel="nofollow noreferrer">Mono</a> and the XSP web server.</p>
<p>I'm following this chaps <a href="http://www.codeproject.com/KB/cross-platform/introtomono2.aspx" rel="nofollow noreferrer">examp... | [
{
"answer_id": 295310,
"author": "CraftyFella",
"author_id": 30317,
"author_profile": "https://Stackoverflow.com/users/30317",
"pm_score": 0,
"selected": false,
"text": "@echo off\ncall C:\\PROGRA~1\\MONO-2~1.1\\bin\\setmonopath.bat\nxsp --root . --port 8088 --applications /:.\n"
},
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30317/"
] |
290,867 | <p>How do I serialize a 'Type'?</p>
<p>I want to serialize to XML an object that has a property that is a type of an object. The idea is that when it is deserialized I can create an object of that type.</p>
<pre><code>public class NewObject
{
}
[XmlRoot]
public class XmlData
{
private Type t;
public Type T... | [
{
"answer_id": 290916,
"author": "Filip Frącz",
"author_id": 21704,
"author_profile": "https://Stackoverflow.com/users/21704",
"pm_score": 2,
"selected": false,
"text": "IXmlSerializable Type.FullName Type.AssemblyQualifiedName Assembly.GetType(string)"
},
{
"answer_id": 4780020,... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9516/"
] |
290,875 | <p><rant-mode>
Have you ever seen a programming language that does not allow to add comments to the code? Welcome to the world of RTML (may it burn in hell)!
</rant-mode></p>
<h2>Question</h2>
<blockquote>
<p>What is the best technique (if any) you've adopted to comment your RTML code?</p>
</blockquote>... | [
{
"answer_id": 4424981,
"author": "bmarti44",
"author_id": 451238,
"author_profile": "https://Stackoverflow.com/users/451238",
"pm_score": 3,
"selected": true,
"text": "New \"**************** My comment and stuff ******************\"\n MULTI WHEN nil WHEN nil WHEN nil\n MULTI\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31415/"
] |
290,884 | <p>The very common beginner mistake is when you try to use a class property "statically" without making an instance of that class. It leaves you with the mentioned error message:</p>
<blockquote>
<p>You can either make the non static method static or make an instance of that class to use its properties.</p>
<... | [
{
"answer_id": 290895,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 7,
"selected": false,
"text": "static static"
},
{
"answer_id": 292263,
"author": "Ande Turner",
"author_id": 4857,
"author_prof... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37740/"
] |
290,896 | <p>Say I have this simple form:</p>
<pre><code>class ContactForm(forms.Form):
first_name = forms.CharField(required=True)
last_name = forms.CharField(required=True)
</code></pre>
<p>And I have a default value for one field but not the other. So I set it up like this:</p>
<pre><code>default_data = {'first_na... | [
{
"answer_id": 290910,
"author": "Jack M.",
"author_id": 3421,
"author_profile": "https://Stackoverflow.com/users/3421",
"pm_score": 1,
"selected": false,
"text": "from django import forms\nclass ContactForm(forms.Form):\n subject = forms.CharField(max_length=100)\n message = forms... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
290,898 | <p>Without getting into the details of <em>why</em>, I'm looking for a clean (as possible) way to replace kernel functions and system calls from a loadable module. My initial idea was to write some code to override some functions, which would take the original function (perhaps, if possible, <em>call</em> the function... | [
{
"answer_id": 296704,
"author": "Phillip Whelan",
"author_id": 25305,
"author_profile": "https://Stackoverflow.com/users/25305",
"pm_score": 1,
"selected": false,
"text": "* IN_ACCESS - read of the file\n* IN_MODIFY - last modification\n* IN_ATTRIB - attributes of file change\n* IN_OPEN... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34426/"
] |
290,899 | <p>How exactly using VB6 can I can call any Windows shell command as you would from the command-line?</p>
<p>For example, something as trivial as:</p>
<pre><code>echo foo
</code></pre>
| [
{
"answer_id": 290906,
"author": "Ed Guiness",
"author_id": 4200,
"author_profile": "https://Stackoverflow.com/users/4200",
"pm_score": 3,
"selected": false,
"text": "Dim RetVal\nRetVal = Shell(\"C:\\WINDOWS\\CALC.EXE\", 1) ' Run Calculator.\n"
},
{
"answer_id": 290912,
"au... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
290,913 | <p>In C++, is it possible to have a base plus derived class implement a single interface?</p>
<p>For example:</p>
<pre><code>class Interface
{
public:
virtual void BaseFunction() = 0;
virtual void DerivedFunction() = 0;
};
class Base
{
public:
virtual void BaseFunction(){}
};
class D... | [
{
"answer_id": 290921,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": true,
"text": "BaseFunction Interface class Interface\n{\n public:\n virtual void BaseFunction() = 0;\n vi... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12567/"
] |
290,923 | <p>I have a file in cvs that has Sticky Options set to <code>-kk</code>. This replaces all cvs keywords with just the keyword name to facilitate diffs. For example, <code>$Author: Alex B$</code> becomes <code>$Author$</code>. </p>
<p>How do I disable the <code>-kk</code> behavior and get back to "normal" cvs whe... | [
{
"answer_id": 290945,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 3,
"selected": true,
"text": "cvs update -kkv <filename>\n keyword value checkout update"
},
{
"answer_id": 3710512,
"author": "Iain",
"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6180/"
] |
290,927 | <p>Is it expensive?</p>
<p>I am developing an HtmlHelper that renders directly to Response.Output in order to save unnecesary string creation and I need to choose between: </p>
<pre><code><% Validator.RenderClient(Response.Output); %>
</code></pre>
<p>and</p>
<pre><code><% Validator.RenderClient(); %>
<... | [
{
"answer_id": 290949,
"author": "oglester",
"author_id": 2017,
"author_profile": "https://Stackoverflow.com/users/2017",
"pm_score": 2,
"selected": false,
"text": "public static HttpContext get_Current()\n{\n return (ContextBase.Current as HttpContext);\n}\n public static object Host... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4264/"
] |
290,952 | <p>Suppose I have #define foo in various header files. It may expand to some different things. I would like to know (when compiling a .cc file) when a #define is encountered, to what it will expand, it which file it is and where it got included from.</p>
<p>Is it possible? If not, are there any partial solutions that ... | [
{
"answer_id": 291001,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": true,
"text": "# shows preprocessed source with cpp internals removed\ng++ -E -P file.cc\n# shows preprocessed source kept ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9403/"
] |
290,980 | <p>I have a Windows forms project (VS 2005, .net 2.0). The solution has references to 9 projects. Everything works and compiles fine on one of my computers. When I move it to a second computer, 8 out of the 9 project compile with no problem. When I try to compile the 9th project (the main project for the application - ... | [
{
"answer_id": 291204,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 2,
"selected": false,
"text": "Public Key or Token: ab 1a 81 37 f9 79 0c 88 \n .assembly extern Reflex\n{\n.publickey = (2F 5A 20 3A 86 D3 5F 71 ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51/"
] |
290,982 | <p>I have a block of code that works and I wanted to ask what exactly is happening here?</p>
<pre><code>Class<?> normalFormClass = null;
</code></pre>
<p>---added---</p>
<p>The wildcard "<code><?></code>" is the part that is confusing for me. Why would this be used rather than not using it (generics)?</... | [
{
"answer_id": 290995,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 5,
"selected": true,
"text": "Integer normalForm = new Integer();\nnormalFormClass = normalForm.getClass();\n String normalForm = new String();\nno... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34475/"
] |
290,996 | <p>How do I get the HTTP status code (eg 200 or 500) after calling curl_easy_perform? </p>
| [
{
"answer_id": 291006,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 8,
"selected": true,
"text": "curl_code = curl_easy_perform (session);\nlong http_code = 0;\ncurl_easy_getinfo (session, CURLINFO_RESPONSE_CODE, &h... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23524/"
] |
290,997 | <p>We have the TAncestor class which has a virtual method GetFile.<br>
We will have some TDescendant = class(TAncestor) which may override GetFile.<br>
We want to insure that in such a case those overriden methods do not call inherited in their implementation.<br>
But if they don't implement GetFile and just use the on... | [
{
"answer_id": 291046,
"author": "Steve",
"author_id": 22712,
"author_profile": "https://Stackoverflow.com/users/22712",
"pm_score": 1,
"selected": false,
"text": "procedure TDescentdent.GetFile;\nbegin\n //do not call inherited\n //Do something new\nend;\n"
},
{
"answer_id": 2... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9842/"
] |
291,000 | <p>I'm looking for a library in PHP that can create a tree structure from a database (or array of values) with left and right ids. For the result when getting values I am only looking for an array so I can create any type of view. For adding and removing, it would be nice if the library did it all. Even if the library ... | [
{
"answer_id": 4358306,
"author": "sirin k",
"author_id": 447880,
"author_profile": "https://Stackoverflow.com/users/447880",
"pm_score": 0,
"selected": false,
"text": " <?php\nclass Node\n{\n public $data;\n public $leftChild;\n public $rightChild;\n\n public function __construct($data... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
291,003 | <p>The JUnit framework contains 2 <code>Assert</code> classes (in different packages, obviously) and the methods on each appear to be very similar. Can anybody explain why this is?</p>
<p>The classes I'm referring to are: <a href="http://junit.org/junit/javadoc/4.5/junit/framework/Assert.html" rel="noreferrer"><code>j... | [
{
"answer_id": 291032,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": false,
"text": "junit.framework org.junit junit.framework.Assert"
},
{
"answer_id": 291045,
"author": "Mnementh",
"author_id... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
291,012 | <p>I need to connect to Outlook through ASP.NET web application using user credentials. What are my options? </p>
<p>FYI: User logs into the web site by using Windows Authentication. I'm working with Outlook 2003. </p>
| [
{
"answer_id": 291282,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 0,
"selected": false,
"text": "outlook.Application outlookApp = new outlook.ApplicationClass();\noutlook.NameSpace olNameSpace = outlookApp.GetNamespace(\"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37759/"
] |
291,019 | <p>I ask this because at work I am supposed to develop a web-application that is used in an intranet, by two people. It's an application that should keep some states in a workflow. So I have to keep data in a session and have to care about concurrency. It would be so much easier to develop a normal desktop-applicatio... | [
{
"answer_id": 291056,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 1,
"selected": false,
"text": " 1. They required no installation or deployment on client machines\n 2. They could not break other apps on the c... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
291,031 | <p>Writing a JSP page, what exactly does the <code><c:out></code> do? I've noticed that the following both has the same result:</p>
<pre><code><p>The person's name is <c:out value="${person.name}" /></p>
<p>The person's name is ${person.name}</p>
</code></pre>
| [
{
"answer_id": 291047,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 8,
"selected": true,
"text": "c:out person.name = <script>alert(\"Yo\")</script> c:out"
},
{
"answer_id": 291081,
"author": "Chris Serra",... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
291,033 | <p>I have just started to study computer sciences at my university where they teach us programming in Scheme.</p>
<p>Since I have learned C++ for the last 6 years, Scheme appears a little odd to me. My instructors tell me you can write any program you can write in C or Java with it. </p>
<p>Is anybody really using t... | [
{
"answer_id": 291246,
"author": "Max Lybbert",
"author_id": 10593,
"author_profile": "https://Stackoverflow.com/users/10593",
"pm_score": 1,
"selected": false,
"text": "call/cc dynamic-wind dynamic-unwind"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37758/"
] |
291,037 | <p>What is the easiest way to set the contents of an <code><asp:ContentPlaceHolder></code> programmatically? I imagine ill have to do a <code>Master.FindControl</code> call?</p>
| [
{
"answer_id": 292133,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "<asp:Content runat=\"server\" ID=\"myContent\" ContentPlaceHolderID=\"masterContent\">\n</asp:Content>\n public void Pa... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
291,057 | <p>I am new to C#. I wanted to do a simple program with some type of loops.
I wanted my program to loop through the numbers that the user enters and if it is less than a number then write keep guessing,but once they enter the number 25 i wanted it to say Merry Christmas.. Please Help</p>
<pre><code>int number;
do
{... | [
{
"answer_id": 291072,
"author": "Gavin Miller",
"author_id": 33226,
"author_profile": "https://Stackoverflow.com/users/33226",
"pm_score": 1,
"selected": false,
"text": "int number;\n\ndo\n{\n Console.WriteLine(\"Guess a number between 20 through 25\");\n number = int.Parse(Consol... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,059 | <p>I'm creating an asp.net app with just some lite data access from xml files. However, I need to be able to authenticate administrative users (via forms) to manage that data. I don't want to stand up a sql db just for authentication purposes. I'd like to use xml, but not sure about security with that. Any suggesti... | [
{
"answer_id": 291072,
"author": "Gavin Miller",
"author_id": 33226,
"author_profile": "https://Stackoverflow.com/users/33226",
"pm_score": 1,
"selected": false,
"text": "int number;\n\ndo\n{\n Console.WriteLine(\"Guess a number between 20 through 25\");\n number = int.Parse(Consol... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10693/"
] |
291,102 | <p>I've decided to attempt using the <a href="https://blog.codinghorror.com/preventing-csrf-and-xsrf-attacks/" rel="nofollow noreferrer">double submitted cookies</a> technique to attempt to prevent XSRF attacks on the site I'm working on. So the way I have it written down here is, all actions that actually DO somethin... | [
{
"answer_id": 819384,
"author": "Jeff Atwood",
"author_id": 1,
"author_profile": "https://Stackoverflow.com/users/1",
"pm_score": 0,
"selected": false,
"text": "Html.AntiForgeryToken()"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33910/"
] |
291,115 | <p>I'm using JScrollPane to allow scrolling in a JFrame that has a text component that's serving as a text editor. What I want to do, after setting the text in this editor, is have it scroll back up to the top, so you can see what's at the beginning of the file.</p>
<p>Does anyone know how to do this?</p>
| [
{
"answer_id": 291748,
"author": "Vincent Ramdhanie",
"author_id": 27439,
"author_profile": "https://Stackoverflow.com/users/27439",
"pm_score": 3,
"selected": false,
"text": " scrollPane.getViewport().setViewPosition(new Point(0,0));\n"
},
{
"answer_id": 3548638,
"author": "... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,117 | <p>So I've got a program that needs to be multilingual. The only difference between what I'm needing and what I've found on the web is that all the computers my program will run on are set to the localization of EN.</p>
<p>We have spanish speaking employees that will use the program just like the english speaking empl... | [
{
"answer_id": 291133,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 3,
"selected": true,
"text": "Thread.CurrentThread.CurrentUICulture = new CultureInfo(\"es-ES\");\n"
},
{
"answer_id": 294801,
"author": "GregUze... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21828/"
] |
291,132 | <p>Are there any things to be careful about when defining the <code>method_missing</code> method in Ruby? I'm wondering whether there are some not-so-obvious interactions from inheritance, exception throwing, performance, or anything else.</p>
| [
{
"answer_id": 291718,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 7,
"selected": true,
"text": "respond_to? method_missing method_missing(:sym) respond_to?(:sym) # Wrap a Foo; don't expose the internal guts.\n# Pas... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
291,135 | <pre><code> ArrayList filters = new ArrayList();
filters.Add(new string[] { "Name", "Equals", "John" });
ObjectDataSource1.SelectParameters.Add("AppliedFilters",
string.Join(",",(string[])filters.ToArray(typeof(string))));
</code></pre>
<p>Am trying to add a parameter to my object data source which ... | [
{
"answer_id": 291718,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 7,
"selected": true,
"text": "respond_to? method_missing method_missing(:sym) respond_to?(:sym) # Wrap a Foo; don't expose the internal guts.\n# Pas... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.