qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
293,342 | <p>I am using HtmlAgilityPack. I create an HtmlDocument and LoadHtml with the following string:</p>
<pre><code><select id="foo_Bar" name="foo.Bar"><option selected="selected" value="1">One</option><option value="2">Two</option></select>
</code></pre>
<p>This does some unexpected t... | [
{
"answer_id": 293357,
"author": "bobince",
"author_id": 18936,
"author_profile": "https://Stackoverflow.com/users/18936",
"pm_score": 6,
"selected": true,
"text": "// they sometimes contain, and sometimes they don 't...\nElementsFlags.Add(\"option\", HtmlElementFlag.Empty);\n HtmlNode.E... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29493/"
] |
293,344 | <p>I am making a little GUI frontend for a app at the moment using wxPython.</p>
<p>I am using <code>wx.StaticText()</code> to create a place to hold some text, code below:</p>
<pre><code>content = wx.StaticText(panel, -1, "Text Here", style=wx.ALIGN_CENTRE)
</code></pre>
<p>I have a button when clicked retrieves da... | [
{
"answer_id": 293350,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": true,
"text": "wx.TextCtrl wx.TE_READONLY"
},
{
"answer_id": 294100,
"author": "DrBloodmoney",
"author_id":... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30786/"
] |
293,345 | <p>I'm using the lines functionality to take an input and split up many variables before sending it off to a function. Please look at the run function and tell me why I get the following error. It seems like it should just assign the first string in ln to seq, but I get an error.</p>
<pre>
ERROR:dishonest.hs:33:11:
... | [
{
"answer_id": 293379,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 0,
"selected": false,
"text": "<-"
},
{
"answer_id": 293397,
"author": "Alasdair",
"author_id": 2654,
"author_profile": "https://Stack... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37840/"
] |
293,351 | <p>I have an owner-drawn UserControl where I've implemented double-buffering. In order to get double-buffering to work without flicker, I have to override the OnPaintBackground event like so:</p>
<pre><code>protected override void OnPaintBackground(PaintEventArgs e)
{
// don't even have to do anything else
}
</co... | [
{
"answer_id": 293358,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 2,
"selected": false,
"text": "if (this.DesignMode)\n{\n return; //or call base.OnPaintBackground()\n}\n"
},
{
"answer_id": 1369084,
... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
293,353 | <p>Method chaining is the only way I know to build fluent interfaces.</p>
<p>Here's an example in C#:</p>
<pre><code>John john = new JohnBuilder()
.AddSmartCode("c#")
.WithfluentInterface("Please")
.ButHow("Dunno");
Assert.IsNotNull(john);
[Test]
public void Should_Assi... | [
{
"answer_id": 293365,
"author": "Jeff Fritz",
"author_id": 29156,
"author_profile": "https://Stackoverflow.com/users/29156",
"pm_score": 2,
"selected": false,
"text": "public interface IFoo\n{\n IFoo SetBar(string s);\n IFoo DoStuff();\n IFoo SetColor(Color c);\n}\n"
},
{
... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2041/"
] |
293,364 | <p>Might it make <strong><em>more</em></strong> sense to put 64-bit applications into "Program Files (x64)" and leave 32-bit applications to run in "Program Files"?</p>
<p>I have a batch file that need to run a <a href="http://en.wikipedia.org/wiki/Adobe_Flex" rel="nofollow noreferrer">Flex</a> compiler. In x64, that ... | [
{
"answer_id": 293466,
"author": "Aidan Ryan",
"author_id": 1042,
"author_profile": "https://Stackoverflow.com/users/1042",
"pm_score": 3,
"selected": false,
"text": "SET ExecPath=%ProgramFiles(x86)%\nIF \"%ExecPath%\"==\"\" SET ExecPath=%ProgramFiles%\n"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/293364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11397/"
] |
293,368 | <pre><code>Open App.Path & "\Folder\" & str(0) For Output
</code></pre>
<p>Seems to get a path not found however if directly before that I do</p>
<pre><code>MsgBox App.Path & "\Folder\" & str(0)
</code></pre>
<p>It Provides the correct directory/filename that I want</p>
<p>and if I replace that str... | [
{
"answer_id": 294772,
"author": "GregUzelac",
"author_id": 27068,
"author_profile": "https://Stackoverflow.com/users/27068",
"pm_score": 2,
"selected": false,
"text": " Open \"c:\\temp\\test.txt\" & Str(0) For Output As #1\n Close #1\n"
},
{
"answer_id": 11537531,
"author"... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,375 | <p>On a site where 90% of the pages use the same libraries, should you just load the libraries all the time or only load them when needed? The other pages would be ajax or simple pages that don't have any real functionality.</p>
<p>Also, should you only load the code when needed? If part way down a page you need a lib... | [
{
"answer_id": 293392,
"author": "hangy",
"author_id": 11963,
"author_profile": "https://Stackoverflow.com/users/11963",
"pm_score": 4,
"selected": true,
"text": "include require include_once require_once"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/293375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
293,380 | <p>I'm just starting out writing trying to write a simple program in C and I am using Visual Studios to do so. I heard that it does compile C as well as C++. And I know that it does because it says it compiles. The only problem is that when I go to the output directory, there isn't a .exe file in the directory! It has ... | [
{
"answer_id": 293386,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 2,
"selected": false,
"text": "#include \"stdafx.h\"\n\nint _tmain(int argc, _TCHAR* argv[])\n{\n printf(\"Hello, world!\\n\");\n return 0;\n}... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
293,388 | <p>I am working on a J2ME project that spawns worker threads for numerous tasks such as downloading HTTP content. The basic thread layout is similar to most java apps--there is a main UI thread and worker threads spawned to do stuff behind the scenes. My question is what is the best way to handle exceptions that occur ... | [
{
"answer_id": 293483,
"author": "Stuph",
"author_id": 37996,
"author_profile": "https://Stackoverflow.com/users/37996",
"pm_score": 3,
"selected": false,
"text": "/**\n * TWO CHOICES:\n * - Monitor your threads and report errors,\n * - setup a callback to do something.\n */\npublic clas... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37992/"
] |
293,389 | <p>PHP provides a mechanism to register a shutdown function:</p>
<pre><code>register_shutdown_function('shutdown_func');
</code></pre>
<p>The problem is that in the recent versions of PHP, this function is still executed DURING the request. </p>
<p>I have a platform (in Zend Framework if that matters) where any pie... | [
{
"answer_id": 293476,
"author": "Nicholas Piasecki",
"author_id": 32187,
"author_profile": "https://Stackoverflow.com/users/32187",
"pm_score": 0,
"selected": false,
"text": "exec()"
},
{
"answer_id": 293480,
"author": "Mike Keen",
"author_id": 14182,
"author_profile... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36780/"
] |
293,403 | <p>Does Lucene QueryParser.parse(string) still work?
If it is deprecated, what is the new syntax?</p>
<p>Query query = QueryParser.parse("Ophelia");</p>
<p>Thanks
Tatyana</p>
| [
{
"answer_id": 293406,
"author": "CVertex",
"author_id": 209,
"author_profile": "https://Stackoverflow.com/users/209",
"pm_score": 3,
"selected": false,
"text": "var qp = new QueryParser(new StandardAnalyzer(),fields);\nqp.Parse(inputString,fields);\n"
},
{
"answer_id": 29899796,... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33917/"
] |
293,409 | <p>I'm still new to ROR, so pardon the simplicity of the question...</p>
<p>So <a href="http://www.example.com/controller/:id" rel="nofollow noreferrer">http://www.example.com/controller/:id</a> displays a record in my table, with :id being a number (1,2,3 etc.).</p>
<p>Is there a way I can have :id in the URL be the... | [
{
"answer_id": 301184,
"author": "Patrick McKenzie",
"author_id": 15046,
"author_profile": "https://Stackoverflow.com/users/15046",
"pm_score": 0,
"selected": false,
"text": "class Hamburger << ActiveRecord::Base\n\n #this normally defaults to id\n def to_param \n name\n end\n\nen... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32154/"
] |
293,421 | <p>I have a vector-like class that contains an array of objects of type <code>"T"</code>, and I want to implement 4 arithmetic operators, which will apply the operation on each item:</p>
<pre><code>// Constructors and other functions are omitted for brevity.
template<class T, unsigned int D>
class Vector {
publ... | [
{
"answer_id": 293445,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "std::transform template<class T, unsigned int D>\nclass Vector {\n\npublic:\n Vector& operator += (const ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23643/"
] |
293,423 | <p>I've been utilizing <code>NHibernate 2.0.1.4000</code> on all current .NET 3.5 SP1 projects and have had no problems with any other queries (utilizing either the Query or Criteria APIs), until some new business logic dictated the necessity of a new query in this particular project against the application's database ... | [
{
"answer_id": 293445,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "std::transform template<class T, unsigned int D>\nclass Vector {\n\npublic:\n Vector& operator += (const ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37974/"
] |
293,431 | <p>Why won't this work? I'm trying to make an instance of a class delete itself.</p>
<pre><code>>>> class A():
def kill(self):
del self
>>> a = A()
>>> a.kill()
>>> a
<__main__.A instance at 0x01F23170>
</code></pre>
| [
{
"answer_id": 293447,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 6,
"selected": false,
"text": ">>> class A():\n... def kill_a(self):\n... print self\n... del self\n... def kill_b(self):\n... ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,438 | <p>How can I pad a string with spaces on the left when using printf?</p>
<p>For example, I want to print "Hello" with 40 spaces preceding it.</p>
<p>Also, the string I want to print consists of multiple lines. Do I need to print each line separately?</p>
<p>EDIT: Just to be clear, I want exactly 40 spaces printed b... | [
{
"answer_id": 293448,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 8,
"selected": true,
"text": "char *ptr = \"Hello\";\nprintf(\"%40s\\n\", ptr);\n printf ptr"
},
{
"answer_id": 293479,
"author": "Soap... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18091/"
] |
293,444 | <p>I'm writing a simple program that's going to parse a logfile of a packet dump from wireshark into a more readable form. I'm doing this with python.</p>
<p>Currently I'm stuck on this part:</p>
<pre><code>for i in range(len(linelist)):
if '### SERVER' in linelist[i]:
#do server parsing stuff
packet = linel... | [
{
"answer_id": 293568,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 2,
"selected": false,
"text": " A trailing newline character is kept in the string linelist \"\\n\\n\" if myline in (\"\\n\", \"\"):\n handle_empty_line()... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2153/"
] |
293,482 | <p>I need to sanitize HTML submitted by the user by closing any open tags with correct nesting order. I have been looking for an algorithm or Python code to do this but haven't found anything except some half-baked implementations in PHP, etc.</p>
<p>For example, something like</p>
<pre><code><p>
<ul>
... | [
{
"answer_id": 293558,
"author": "pantsgolem",
"author_id": 9261,
"author_profile": "https://Stackoverflow.com/users/9261",
"pm_score": 6,
"selected": true,
"text": "from BeautifulSoup import BeautifulSoup\nhtml = \"<p><ul><li>Foo\"\nsoup = BeautifulSoup(html)\nprint soup.prettify()\n <p... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8024/"
] |
293,495 | <p>I have a dropdown box and a literal tag inside an Update Panel. On the selection change event of the dropdown up requery the database and repopulate the literal tag and then call UPdatePanel.Update().</p>
<p>below, is there are way i can avoid having to create a new Oledbconnection each time as this seems slow. C... | [
{
"answer_id": 293579,
"author": "Robert Wagner",
"author_id": 10784,
"author_profile": "https://Stackoverflow.com/users/10784",
"pm_score": 2,
"selected": true,
"text": "string dataSource = ConfigurationSettings.AppSettings[\"contactsDB\"];\nusing(var objConn = new OleDbConnection(dataS... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
293,499 | <p>Yesterday, I found myself writing code like this:</p>
<pre><code>SomeStruct getSomeStruct()
{
SomeStruct input;
cin >> input.x;
cin >> input.y;
}
</code></pre>
<p>Of course forgetting to actually return the struct I just created. Oddly enough, the values in the struct that <em>was</em> re... | [
{
"answer_id": 293520,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 5,
"selected": false,
"text": "-Wall -Wreturn-type -Wall -Werror"
},
{
"answer_id": 293563,
"author": "CesarB",
"author_id": 28258,
... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
293,500 | <p>We have built a custom socket server in ruby and packaged it as a gem. Since this is an internal project we can not simply publish it to RubyForge or GitHub. I tried to setup our own gem server but gem would not authenticate over https. Our other deployment is all for standard rails applications that use capistran... | [
{
"answer_id": 293670,
"author": "Pistos",
"author_id": 28558,
"author_profile": "https://Stackoverflow.com/users/28558",
"pm_score": 2,
"selected": false,
"text": "gem install /path/to/some.gem\n"
},
{
"answer_id": 295504,
"author": "Jonke",
"author_id": 15638,
"auth... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19839/"
] |
293,506 | <p>I am trying to send a user to another page using a Javascript Function:</p>
<pre><code><input type="button" name="confirm" value="nextpage" onClick="message()">
</code></pre>
<p>And my JavaScript:</p>
<pre><code>function message() {
ConfirmStatus = confirm("Install a Virus?");
if (ConfirmStatus == ... | [
{
"answer_id": 293510,
"author": "titaniumdecoy",
"author_id": 18091,
"author_profile": "https://Stackoverflow.com/users/18091",
"pm_score": 3,
"selected": false,
"text": "window.location.href = \"newpage.html\";"
},
{
"answer_id": 293512,
"author": "José Leal",
"author_i... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,524 | <p>I have code in an Update Panel and even though on a button click i am inserting data into a db and simply calling Updatepanel.Update() the whole page is reloaded:</p>
<p>Gifts.ASPX</p>
<pre><code><table style="width:100%;">
<tr>
<td>
<asp:Label I... | [
{
"answer_id": 293591,
"author": "Robert Wagner",
"author_id": 10784,
"author_profile": "https://Stackoverflow.com/users/10784",
"pm_score": 2,
"selected": false,
"text": "<asp:UpdatePanel runat=\"server\">\n <ContentTemplate>\n <!-- Content -->\n <asp:Button runat=\"ser... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
293,541 | <p>Is there a PHP version of JavaScript's confirm() function?<br>
If not, what are my other options or how do I make something similar to the confirm()?</p>
| [
{
"answer_id": 293544,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 3,
"selected": false,
"text": "<p>Are you sure you want to do this?</p>\n\n<form action=\"page2.php\" method=\"post\">\n <input type=\"submit\" name=\... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,582 | <p>I was hoping to automate some tasks related to SubVersion, so I got SharpSvn. Unfortunately I cant find much documentation for it. </p>
<p>I want to be able to view the changes after a user commits a new revision so I can parse the code for special comments that can then be uploaded into my ticket system.</p>
| [
{
"answer_id": 293848,
"author": "Bert Huijben",
"author_id": 2094,
"author_profile": "https://Stackoverflow.com/users/2094",
"pm_score": 3,
"selected": true,
"text": "static void Main(string[] args)\n{\n SvnHookArguments ha;\n if (!SvnHookArguments.ParseHookArguments(args, SvnHookType... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38013/"
] |
293,590 | <p>I came across the case where depending on the execution path I may need to invoke an inclusion of .js file from controller. Is there a nice way of doing it? (besides setting some view variable with actual .js include code)?</p>
| [
{
"answer_id": 293805,
"author": "smack0007",
"author_id": 26566,
"author_profile": "https://Stackoverflow.com/users/26566",
"pm_score": 4,
"selected": true,
"text": "$this->headScript()->appendFile('filename.js'); $this->view->headScript()->appendFile('filename.js'); <?=$this->headScrip... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35520/"
] |
293,597 | <p>It seems with the built in friendly routing library in .NET MVC, it would allow us to do something like this.</p>
<p>In case it's not obvious what I want to with the built in stuff in .NET MVC, I want to a url starting with www to be automatically redirected to a non-www url using the MVC framework.</p>
| [
{
"answer_id": 4837455,
"author": "BrunoLM",
"author_id": 340760,
"author_profile": "https://Stackoverflow.com/users/340760",
"pm_score": 3,
"selected": false,
"text": "web.config <system.webServer> <rewrite>\n <rules>\n <rule name=\"Canonical\" stopProcessing=\"true\">\n <match... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/438/"
] |
293,601 | <p>I'm building a small web app in PHP that stores some information in a plain text file. However, this text file is used/modified by all users of my app at some given point in time and possible at the same time.</p>
<p>So the questions is. What would be the best way to make sure that only one user can make changes to... | [
{
"answer_id": 293674,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": " user->save : \n getWritelock(); \n write( $file ); \n write_commitmessage( $commitmessagefile ); # <-- author ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21406/"
] |
293,602 | <p>I have a ASP.NET project and when building the project it is showing build suceessfull. But when I am building the deployment project, it is showing build failed with an error message </p>
<pre><code>Error 5 "aspnet_compiler.exe" exited with code 1
</code></pre>
<p>I rechecked my project and found that when ... | [
{
"answer_id": 301436,
"author": "user39603",
"author_id": 39603,
"author_profile": "https://Stackoverflow.com/users/39603",
"pm_score": 0,
"selected": false,
"text": "<!-- include virtual=\"~/page.asp\" -->"
},
{
"answer_id": 29691550,
"author": "user4799664",
"author_id... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29982/"
] |
293,617 | <p>I'm writing a file that requires dates to be in decimal format:</p>
<blockquote>
<p><code>2007-04-24T13:18:09</code> becomes <code>39196.554270833331000</code> </p>
</blockquote>
<p>Does anyone have a time formatter that will do this (Decimal time is what VB/Office, etc. use)?</p>
<p>Basic code goes like follo... | [
{
"answer_id": 1404759,
"author": "user86614",
"author_id": 86614,
"author_profile": "https://Stackoverflow.com/users/86614",
"pm_score": 0,
"selected": false,
"text": "final long MILLIS_IN_DAY = 1000L * 60L * 60L * 24L;\n\nfinal Calendar startOfTime = Calendar.getInstance();\nstartOfTim... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37193/"
] |
293,648 | <p>How do I make one of those hyperlinks where when you click it, it will display a popup asking "are you sure?"</p>
<pre><code><INPUT TYPE="Button" NAME="confirm" VALUE="???" onClick="message()">
</code></pre>
<p>I already have a message() function working. I just need to know what the input type for a hyperli... | [
{
"answer_id": 293710,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 2,
"selected": false,
"text": "javascript:message() message this <script type=\"text/javascript\" language=\"JavaScript\">\nfunction AskAndSubmit(t)\n{\n ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,649 | <p>I'd like to rank my stories based on "controversy" quotient. For example, reddit.com currently has "controversial" section: <a href="http://www.reddit.com/controversial/" rel="nofollow noreferrer">http://www.reddit.com/controversial/</a></p>
<p>When a story has a lot of up and a lot of down votes, it's controversia... | [
{
"answer_id": 293830,
"author": "MusiGenesis",
"author_id": 14606,
"author_profile": "https://Stackoverflow.com/users/14606",
"pm_score": 0,
"selected": false,
"text": "// figure out if up or down is winning - doesn't matter which\nif (up_votes > down_votes)\n{\n win_votes = up_votes... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38015/"
] |
293,668 | <p>is it possible to use the ajaxComplete or ajaxStop features of jQuery to decide whether or not the callback gets called?</p>
<p>Essentially I want to be able to take basic error checking code that is currently in most of my callbacks, and add it to a sort of global callback.</p>
| [
{
"answer_id": 293788,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 1,
"selected": false,
"text": "ajaxComplete ajaxStop"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/293668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32392/"
] |
293,672 | <p>A few weeks back I was using std::ifstream to read in some files and it was failing immediately on open because the file was larger than 4GB. At the time I couldnt find a decent answer as to why it was limited to 32 bit files sizes, so I wrote my own using native OS API.</p>
<p>So, my question then: Is there a way ... | [
{
"answer_id": 293709,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 5,
"selected": true,
"text": "off_t #include <streambuf>\n__int64_t temp=std::numeric_limits<std::streamsize>::max();\n"
},
{
"answer_id": 29... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29049/"
] |
293,694 | <p>i've got regex which was alright, but as it camed out doesn't work well in some situations </p>
<p><strong>Keep eye on message preview cause message editor do some tricky things with "\"</strong></p>
<blockquote>
<p>[\[]?[\^%#\$\*@\-;].*?[\^%#\$\*@\-;][\]]</p>
</blockquote>
<p>its task is to find pattern which ... | [
{
"answer_id": 293703,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "\\[[\\^%#\\$\\*@\\-;].*?[\\^%#\\$\\*@\\-;]\\]\n \\[([\\^%#\\$\\*@\\-;])([^\\]]*?)(?=\\1)([\\^%#\\$\\*@\\-;])\\]\n \\[([\\^%#\\$... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24824/"
] |
293,725 | <p>i need a Regular Expression to convert a a string to a link.i wrote something but it doesnt work in asp.net.i couldnt solve and i am new in Regular Expression.This function converts (bkz: string) to (bkz: show.aspx?td=string)</p>
<pre><code>Dim pattern As String = "&lt;bkz[a-z0-9$-$&-&.-.ö-öı-ış-şç-çğ-ğ... | [
{
"answer_id": 293729,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": true,
"text": "<bkz:\\s+((?:.(?!>))+?.)>\n"
},
{
"answer_id": 293734,
"author": "Community",
"author_id": -1,
"aut... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,728 | <p>My application will read xml from urlconnection. The xml encoding is ISO-8859-1, it contains é character. I use xerces saxparser to parse received xml content. However, é can not be parsed correctly while running application under lunix OS. Everything works fine in Windows. Could you guys please give me some hints? ... | [
{
"answer_id": 293837,
"author": "Fernando Miguélez",
"author_id": 34880,
"author_profile": "https://Stackoverflow.com/users/34880",
"pm_score": 1,
"selected": false,
"text": "// Parse the input\nSAXParser saxParser = factory.newSAXParser();\nInputStream is = new ByteArrayInputStream(str... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,743 | <p>I have been writting a keyword search script based on this tutorial:
<a href="http://www.hackosis.com/2007/11/06/howto-simple-search-engine-with-php-and-mysql/" rel="nofollow noreferrer">http://www.hackosis.com/2007/11/06/howto-simple-search-engine-with-php-and-mysql/</a></p>
<p>Like some of the commenters mentione... | [
{
"answer_id": 293753,
"author": "Nahom Tijnam",
"author_id": 11172,
"author_profile": "https://Stackoverflow.com/users/11172",
"pm_score": 3,
"selected": true,
"text": "SELECT * FROM blog WHERE blog_title LIKE '%barry%' OR blog_content LIKE '%barry%' OR blog_title LIKE '%child%' OR blog... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38020/"
] |
293,750 | <p>This is in reference to the <a href="https://stackoverflow.com/questions/282944/jquery-one-slider-controls-another">question</a> previously asked</p>
<p>The problem here is, each <code>slider</code> controls the other. It results in feedback. </p>
<p>How do I possibly stop it?</p>
<pre><code>$(function() {
$(... | [
{
"answer_id": 293808,
"author": "user37125",
"author_id": 37125,
"author_profile": "https://Stackoverflow.com/users/37125",
"pm_score": 3,
"selected": true,
"text": "$(function () {\n var slider = $(\"#slider\");\n var slider1 = $(\"#slider1\");\n var sliderHandle = $(\"#slider... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21480/"
] |
293,760 | <p>Here's what I got so far (that doesn't work). At this point I thought my target was Ansi encoded, but I really don't want to have to know at this point. My browser seems to be able to determine what encoding to use, How can I?</p>
<pre><code>static void GetUrl(Uri uri, string localFileName)
{
HttpWebRequest req... | [
{
"answer_id": 293763,
"author": "lubos hasko",
"author_id": 275,
"author_profile": "https://Stackoverflow.com/users/275",
"pm_score": 3,
"selected": true,
"text": "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=US-ASCII\">\n <?xml version=\"1.0\" encoding=\"ISO-8859-1\"?... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16260/"
] |
293,761 | <p>How can I make Emacs show blank spaces (like a space, a tab, a line-jump, etc). Many other editors like Kate and Eclipse have this feature and I find it very useful to see when code is indent-broken because of mix of spaces and tabs (particularly Python).</p>
| [
{
"answer_id": 293765,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "(if (>= emacs-major-version 22)\n (progn\n ;; Mode to use with Emacs 22\n ;; http://emacswiki.org/cgi-bin/wiki/BlankMode... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6068/"
] |
293,762 | <p>I can't directly add ChartFrame object to my Jframe object with .add(Component) method. And it's not possible to cast from ChartFrame to JComponent. Casting ChartFrame to Component from java.awt library is also impossible. </p>
<p>How can I add ChartFrame to JFrame the other way?</p>
| [
{
"answer_id": 293771,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "JDesktopPane desktop = ...\nJFrame frame = ...\n\nframe.setContentPane(desktop);\n\nJInternalFrame internalFrame = ...\ndesktop... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35594/"
] |
293,768 | <p>How do I get a patch from a commit in order to send it to another developer? And how do I best avoid a merge conflict with this patch when merging our trees at a later date?</p>
<p>If you know how please explain how to do this in your VCS of choice such as subversion, git, Mercurial, bzr or etc.</p>
| [
{
"answer_id": 293803,
"author": "Xian",
"author_id": 4642,
"author_profile": "https://Stackoverflow.com/users/4642",
"pm_score": 2,
"selected": false,
"text": "svn diff > mypatch.diff\n patch -p0 -i mypatch.diff\n"
},
{
"answer_id": 293917,
"author": "Spoike",
"author_id... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3713/"
] |
293,774 | <p>With wxWidgets I use the following code:</p>
<pre><code>HWND main_window = ...
...
wxWindow *w = new wxWindow();
wxWindow *window = w->CreateWindowFromHWND(0, (WXHWND) main_window);
</code></pre>
<p>How do I do the same thing in Qt? The <code>HWND</code> is the handle of the window I want as the parent window for ... | [
{
"answer_id": 293778,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 3,
"selected": false,
"text": "QWinWidget"
},
{
"answer_id": 293781,
"author": "sep",
"author_id": 30333,
"author_profile": "https://Sta... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1709/"
] |
293,780 | <p>Is there a way to get the amount of free diskspace of a disk or a folder in a CMD
without having to install some thirdparty applications?</p>
<p>I have a CMD that copies a big file to a given directory and could of course use
the errorlevel return from the copy command, but then I have to wait for the time
it takes... | [
{
"answer_id": 293784,
"author": "Nico",
"author_id": 22970,
"author_profile": "https://Stackoverflow.com/users/22970",
"pm_score": 7,
"selected": false,
"text": "dir c:\\ fsutil volume diskfree c:"
},
{
"answer_id": 293785,
"author": "VonC",
"author_id": 6309,
"autho... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,790 | <p>I am trying to wire up dependency injection with Windsor to standard asp.net web forms. I think I have achieved this using a HttpModule and a CustomAttribute (code shown below), although the solution seems a little clunky and was wondering if there is a better supported solution out of the box with Windsor?</p>
<p>... | [
{
"answer_id": 969668,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": -1,
"selected": false,
"text": "ILogger Logger = ResolveType.Of<ILogger>();\n"
},
{
"answer_id": 21038393,
"author": "Mike Chamberlain",
"aut... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4642/"
] |
293,794 | <p>Greetings,</p>
<p>I have data stored on mysql with delimiter "," in 1 table.
I have rows and column stored on database too.
Now i have to output the data using rows and column number stored on database to draw the table.</p>
<p>Rows and column number are user input, so it may varies.</p>
<p>Let say, there is nu... | [
{
"answer_id": 293876,
"author": "foxy",
"author_id": 30119,
"author_profile": "https://Stackoverflow.com/users/30119",
"pm_score": 4,
"selected": true,
"text": "<?php\n $result = mysql_query('SELECT rows, columns, data from table_name where id=1');\n $record = mysql_fetch_assoc($resul... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37922/"
] |
293,799 | <p>The <em>VS2008 SP1</em> documentation talks about <strong><code>std::tr1::mem_fun</code></strong>.</p>
<p>So why, when I try and use <strong><code>std::tr1::mem_fun</code></strong>, why do I get this compile error?:</p>
<pre><code>'mem_fun' : is not a member of 'std::tr1'
</code></pre>
<p>At the same time, I can ... | [
{
"answer_id": 293872,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 1,
"selected": false,
"text": " std::tr1::mem_fun<Test,void (Test::*)(Test*),&Test::TakesInt>()\n std::tr1::mem_fn(&Test::TakesInt)\n f= std::... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25457/"
] |
293,806 | <p>What I would like to do is have VS2008, when I open a code file, collapse all members of the classes/interfaces in the file by default (including, crucially, any XML documentation and comments).</p>
<p>I do <em>not</em> want to use regions, at all.</p>
<p>I would also like to be able to use the ctrl+m, ctrl+l chor... | [
{
"answer_id": 296891,
"author": "Brody",
"author_id": 17131,
"author_profile": "https://Stackoverflow.com/users/17131",
"pm_score": 4,
"selected": true,
"text": "\n switch (connectMode)\n {\n case ext_ConnectMode.ext_cm_UISetup:\n case ext_ConnectMode.ext_cm_Startup:... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20971/"
] |
293,814 | <p>Helo!</p>
<p>Is this possible to use string value of one node which tells what type of field is presented in another node using LINQ to XML?</p>
<p>For example:</p>
<pre><code><node>
<name>nodeName</name>
<type>string</type>
</node>
<node>
<name>0</name>... | [
{
"answer_id": 293891,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "System.Object public static object ParseValue(this XElement element)\n{\n XElement name = element.Element(\"name\");\n... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23280/"
] |
293,831 | <p>For example, I make extensive use of the session in my ASP.NET application but have heard somewhere that objects stored in session can be removed by the system where server memory runs low. Is this true? Is there any session 'callback' functionality to allow you to re-populate scavenged objects? </p>
<p>More genera... | [
{
"answer_id": 293962,
"author": "Corbin March",
"author_id": 7625,
"author_profile": "https://Stackoverflow.com/users/7625",
"pm_score": 2,
"selected": false,
"text": "Dim sessionObj As Object = CType(Session(\"SessionKey\"), Object)\nIf sessionObj Is Nothing\n sessionObj = ReCreateO... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
293,832 | <p>I am currently building an application using ASP.NET MVC. The data entry pages are fairly easy to code, I just make the Model for the page of the type of my business object:</p>
<pre><code>namespace MyNameSpace.Web.Views.ProjectEdit
{
public partial class MyView : ViewPage<Project>
{
}
}
</code><... | [
{
"answer_id": 293902,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 4,
"selected": true,
"text": "<% MyUserControlModel model = ViewData[\"MyUserControlModel\"]\n as MyUserControlModel; %>\n\n<div id=\"myUserCo... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
293,840 | <p>This is probably a simple question. Suppose I have a object called Users and it contains a lot of protected variables. </p>
<p>Inside that Users class I have a method that creates a temporary Users object, does something with it, and if successful, transfers all the variables from the temp Users object into the on... | [
{
"answer_id": 293851,
"author": "MusiGenesis",
"author_id": 14606,
"author_profile": "https://Stackoverflow.com/users/14606",
"pm_score": 0,
"selected": false,
"text": "_User = tmpUser;\n"
},
{
"answer_id": 6693578,
"author": "Mr. Graves",
"author_id": 171518,
"autho... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
293,853 | <p>I would like to add custom tooltips to emacs.
More specifically, whenever I hover on a symbol (function/variable) name
with my mouse of I would like to see a tooltip with the symbol's definition.
I know that I can find this kind of info with a tool like cscope but I have no idea how
to attach the output of cscope t... | [
{
"answer_id": 293887,
"author": "Jouni K. Seppänen",
"author_id": 26575,
"author_profile": "https://Stackoverflow.com/users/26575",
"pm_score": 5,
"selected": true,
"text": "i tooltip help-echo (insert (propertize \"foo\\n\" 'help-echo \"Tooltip!\"))\n *scratch* C-j"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/293853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33707/"
] |
293,857 | <pre><code>class String
{
private:
char* rep;
public:
String (const char*);
void toUpper() const;
};
String :: String (const char* s)
{
rep = new char [strlen(s)+1];
strcpy (rep, s);
}
void String :: toUpper () const
{
for (int i = 0; rep [i]; i++)
rep[i] = toupper(... | [
{
"answer_id": 293867,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 1,
"selected": false,
"text": "class String\n{\n std::string rep;\n\n void toUpper() const\n { \n for (int i = 0; rep [i]; i++)\n ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
293,882 | <p>i need to check whether the user clicking the browser Refresh button and redirect to error page. Can we do this in javascript or any server side methods in ASP.net</p>
| [
{
"answer_id": 293933,
"author": "José Leal",
"author_id": 37190,
"author_profile": "https://Stackoverflow.com/users/37190",
"pm_score": 1,
"selected": false,
"text": "if (Session[\"synctoken\"] != null) {\n if (Request.QueryString[\"synctoken\"] != null) {\n if (Request.QueryS... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
293,900 | <p>It's 5 button clicks to get eclipse to create a deployable war file for my eclipse project, I figure there's probably some eclipse command line option to do the same thing, so I can just write it into a script, but I'm not seeing it.</p>
| [
{
"answer_id": 293907,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "war"
},
{
"answer_id": 18686657,
"author": "Honza",
"author_id": 1576461,
"author_profile": "https://... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12386/"
] |
293,905 | <p>If I have the following code:</p>
<pre><code>MyType<int> anInstance = new MyType<int>();
Type type = anInstance.GetType();
</code></pre>
<p>How can I find out which type argument(s) "anInstance" was instantiated with, by looking at the type variable? Is it possible?</p>
| [
{
"answer_id": 293908,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\n\npublic class Test\n{\n static void Main()\n {\n var dict... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13627/"
] |
293,915 | <p>I have a VS solution, with the following projects.</p>
<p>-GUI<br>
-DataAccess<br>
-BusinessLogic<br>
-BusinessObjects </p>
<p>but where should the main model class reside? This is usually a cache of a set of objects which are the results from the data access layer and the GUI using virtual grids to view data in... | [
{
"answer_id": 294015,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 1,
"selected": false,
"text": "Justice.Project.Core Justice.Project.Data Justice.Project.Services Justice.Project.(Web|UI)"
},
{
"answer_id": 2... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
293,916 | <p>given the following class ...</p>
<pre><code>public class Category {
public string Name {get;set;}
public Category ParentCategory {get;set;}
}
</code></pre>
<p>What the most efficient way to output the following from a collection (<code>IList<Category></code>) of Category objects?</p>
<pre><code>+ Paren... | [
{
"answer_id": 293942,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": false,
"text": "static void recurseCategories(ref List<Category> cl, Category start, int level)\n{\n foreach (Category child in cl)\n {\... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34133/"
] |
293,929 | <p>I'd like to play sound file which loaded from internet, so I tried to start from iPhone SDK SpeakHere sample. I recorded the sound, then saved and uploaded to the internet, I could download that file and play without problem from sound tools. But when I tried to play that URL from SpeakHere, I am getting error <code... | [
{
"answer_id": 294722,
"author": "BlueDolphin",
"author_id": 32096,
"author_profile": "https://Stackoverflow.com/users/32096",
"pm_score": 1,
"selected": false,
"text": "-(CFURLRef)saveURL:(NSString *)urlString {\n NSURL *url = (NSURL*)[[NSURL alloc] initWithString:urlString];\n NS... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32096/"
] |
293,946 | <p>In this query:</p>
<pre><code>SELECT COUNT(*) AS UserCount, Company.* FROM Company
LEFT JOIN User
ON User.CompanyId = Company.Id
WHERE Company.CanAccessSystem= true
AND(User.CanAccessSystem IS null OR User.CanAccessSystem = true)
GROUP BY Company.Id
</code></pre>
<p>I want to query a list of companies that can acc... | [
{
"answer_id": 293993,
"author": "bart",
"author_id": 19966,
"author_profile": "https://Stackoverflow.com/users/19966",
"pm_score": 0,
"selected": false,
"text": " count(case when User.CanAccessSystem then true end)\n count(expr) SELECT COUNT(case when User.CanAccessSystem then true end)... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
293,948 | <p>I have a question to the submit- button behavior of internet explorer. If I load the page everything is fine - the submit button looks as it should. </p>
<p><a href="http://img58.imageshack.us/img58/7214/inactiveci9.jpg" rel="nofollow noreferrer">Inactive state http://img58.imageshack.us/img58/7214/inactiveci9.jpg<... | [
{
"answer_id": 293991,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 2,
"selected": false,
"text": "blur()"
},
{
"answer_id": 294022,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "http... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2078/"
] |
293,956 | <p>I've been working with jQuery for a pair of weeks and I've noticed it works fine with objects that are in the original HTML document, but when I generate a new element using jQuery the library doesn't get any of its events.</p>
<p>Let's say I try to run something like this:</p>
<pre><code>$('.whatever').click(func... | [
{
"answer_id": 293973,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "function bindme(){\n $('.whatever').click(function(){\n alert('binded');\n });\n};\n\nbindme();\n\n//function tha... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/440/"
] |
293,959 | <p>with jquery, or with simple just javascript, I want to populate a 2nd dropdown from the choice of the first dropdown.
The value of the first dropdown is the condition to get rows for the second dropdown.</p>
<p>How does the onChange event look like?</p>
| [
{
"answer_id": 2925943,
"author": "Aaron",
"author_id": 352461,
"author_profile": "https://Stackoverflow.com/users/352461",
"pm_score": 3,
"selected": true,
"text": "$('#s_country').change(function() {\n $('#s_state .state_CA').hide();\n $('#s_state .state_US').hide();\n $('#s_s... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30759/"
] |
293,967 | <p>Should operations that could take some time be performed in a constructor or should the object be constructed and then initialised later.</p>
<p>For example when constructing an object that represents a directory structure should the population of the object and its children be done in the constructor. Clearly, a d... | [
{
"answer_id": 2004685,
"author": "Neil T.",
"author_id": 235288,
"author_profile": "https://Stackoverflow.com/users/235288",
"pm_score": 3,
"selected": true,
"text": "public class Company\n{\n public int Company_ID { get; set; }\n public string CompanyName { get; set; }\n publi... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32153/"
] |
293,972 | <p>There's a HTML:</p>
<pre><code><div class="test">
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
</code></pre>
<p>And a bit of JS:</p>
<pre><code>$(document).ready(function() {
// do stuff when DOM is ready
$(".test ul").append('<li>Foo</... | [
{
"answer_id": 293983,
"author": "Frans-Willem",
"author_id": 34014,
"author_profile": "https://Stackoverflow.com/users/34014",
"pm_score": 1,
"selected": false,
"text": "var li=document.createElement(\"li\");\nli.appendChild(document.createTextNode(\"Dupa\"));\n$(\".text ul\").appendChi... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16917/"
] |
293,981 | <p>I'd like to mark a method as deprecated, so the people using it can easily check their code and catch up. In Java you set @Deprecated and everybody knows what this means.</p>
<p>So is there a preferred way (or even tools) to mark and check for deprecations in Ruby?</p>
| [
{
"answer_id": 293994,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "libdeprecated-ruby D require 'lib/deprecated.rb'\nrequire 'test/unit'\n\n# this class is used to test the deprecate functionali... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38045/"
] |
293,988 | <p>Is there a good way in C++ to implement (or fake) a type for a generic vector of vectors?</p>
<p>Ignore the issue of when a vector of vectors is a good idea (unless there's something equivalent which is always better). Assume that it does accurately model the problem, and that a matrix does not accurately model the... | [
{
"answer_id": 293996,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 7,
"selected": true,
"text": "template<typename T>\nstruct vecvec {\n typedef std::vector< std::vector<T> > type;\n};\n\nint main() {\... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13005/"
] |
293,997 | <p>I know postgres has a datatype for storing geographical coordinates. But I'm looking for a RDBMS agnostic solution. Currently I'm using Decimal(25,20) in MySQL. I may be using this data to lookup these locations based on a given distance from a given location later. Which would be the best approach to store this kin... | [
{
"answer_id": 294014,
"author": "vfilby",
"author_id": 24279,
"author_profile": "https://Stackoverflow.com/users/24279",
"pm_score": 3,
"selected": false,
"text": "# decmal places, example, precision\n5 51.22135 ± 0.8 m\n6 50.895132 ± 0.08 m\n"
},
{
"answer_id": 294096... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7883/"
] |
294,009 | <p>When comparing two objects (of the same type), it makes sense to have a compare function which takes another instance of the same class. If I implement this as a virtual function in the base class, then the signature of the function has to reference the base class in derived classes also. What is the elegant way to ... | [
{
"answer_id": 294026,
"author": "Federico A. Ramponi",
"author_id": 18770,
"author_profile": "https://Stackoverflow.com/users/18770",
"pm_score": 0,
"selected": false,
"text": "int B::Compare(A *ptr)\n{\n other = dynamic_cast <B*> (ptr);\n if(other)\n ... // Ok, it was a point... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32153/"
] |
294,018 | <p>What are some C++ related idioms, misconceptions, and gotchas that you've learnt from experience?</p>
<p>An example:</p>
<pre><code>class A
{
public:
char s[1024];
char *p;
A::A()
{
p = s;
}
void changeS() const
{
p[0] = 'a';
}
};
</code></pre>
<p>Even know changeS is a const member ... | [
{
"answer_id": 294023,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": true,
"text": "assert(condition || !\"Something has gone wrong!\");\n assert(!\"Something has gone wrong!\");\n assert((\"S... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
294,040 | <p>Maybe this is an easy question, maybe not. I have a select box where I hardcode with width. Say 120px.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><select sty... | [
{
"answer_id": 294051,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 5,
"selected": true,
"text": "<select> title"
},
{
"answer_id": 294058,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10522/"
] |
294,077 | <p>I have a large amount of rows in the database from which I need to create an XML document. I am using hibernate 3. The basic list() method in Criteria and Query interfaces looks dangerous: I quess it pretty much has to read all the records into memory even if I only iterate over them. Or is there some lazy loading m... | [
{
"answer_id": 294124,
"author": "Paul Croarkin",
"author_id": 18995,
"author_profile": "https://Stackoverflow.com/users/18995",
"pm_score": 1,
"selected": false,
"text": "Criteria crit = sess.createCriteria(Cat.class);\ncrit.setMaxResults(maxResults);\ncrit.setFirstResult(firstResultInd... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4110/"
] |
294,080 | <p>I use [Dllimport("DllName.dll")]
where I'm sure a path to my dll exists in the process PATH environment variable, and still
I get "DllName.dll could not be found"</p>
| [
{
"answer_id": 42168466,
"author": "Roger Breton",
"author_id": 3847487,
"author_profile": "https://Stackoverflow.com/users/3847487",
"pm_score": 1,
"selected": false,
"text": "const string lcms2Path = \"C:\\\\lcms2.dll\"; [DllImport(\"lcms2.dll\")]"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/294080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30324/"
] |
294,092 | <p>I've just written a small XBox 360 Wireless Controller managed interface that basically
wraps around the low-lever <a href="http://slimdx.mdxinfo.com/wiki/index.php?title=Main_Page" rel="nofollow noreferrer">SlimDX</a> wrapper library and provides a easy, managed API for the XBOX 360 controller.</p>
<p>Internally, ... | [
{
"answer_id": 294233,
"author": "damageboy",
"author_id": 9172,
"author_profile": "https://Stackoverflow.com/users/9172",
"pm_score": 1,
"selected": true,
"text": "protected virtual void OnLeftThumbStickMove(ThumbStickEventArgs e)\n{\n if (LeftThumbStickMove == null) return;\n \n if ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9172/"
] |
294,113 | <p>Is it possible to catch an recycle event in the global.asax?</p>
<p>I know Application_End will be triggered but is there a way to know that it was triggered by a recycle of the application pool?</p>
<p>thx, Lieven Cardoen aka Johlero</p>
| [
{
"answer_id": 294126,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 1,
"selected": false,
"text": "...\nAppDomain.CurrentDomain.ProcessExit += new EventHandler(OnExit);\n...\n\nvoid OnExit(object sender, EventArgs e) {\n ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26521/"
] |
294,136 | <p>Is there any way to import a database backup from 2005 into 2008 express edition. What I've had to resort to is doing a script the database, then import all the data through DTS. Whenever I tried to import straight from a backup file it says something about not being to import into a new version of sql server or I'l... | [
{
"answer_id": 2653369,
"author": "ScaryDBA",
"author_id": 196739,
"author_profile": "https://Stackoverflow.com/users/196739",
"pm_score": 0,
"selected": false,
"text": "RESTORE VERIFYONLY\nFROM yourbackupfile.bak\n"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/294136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37400/"
] |
294,138 | <p>What's the best way to merge 2 or more dictionaries (<code>Dictionary<T1,T2></code>) in C#?
(3.0 features like LINQ are fine).</p>
<p>I'm thinking of a method signature along the lines of:</p>
<pre><code>public static Dictionary<TKey,TValue>
Merge<TKey,TValue>(Dictionary<TKey,... | [
{
"answer_id": 294139,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 6,
"selected": false,
"text": "using System.Collections.Generic;\n...\npublic static Dictionary<TKey, TValue>\n Merge<TKey,TValue>(IEnumerable<Dictionary... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37020/"
] |
294,171 | <p>I have a delegate, say:</p>
<pre><code>public delegate void MyDelegate();
</code></pre>
<p>I have an event, say:</p>
<pre><code>public MyDelegate MyEvent;
</code></pre>
<p>While invoking the event I am receiving an error message:</p>
<blockquote>
<p>"MyEvent += expected ....."</p>
</blockquote>
<p>How do I r... | [
{
"answer_id": 294175,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "+= -="
},
{
"answer_id": 294348,
"author": "Geoff Cox",
"author_id": 30505,
"author_profile": "ht... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,172 | <p>I have this piece of code:</p>
<pre><code>$("#faq").click(function () {
var url = $.get("faq", { pagina: "page" });
alert(url);
});
</code></pre>
<p>On "faq" responds to a Servlet that sets an attribute on the request </p>
<pre><code>....
request.setAttribute("pageFAQ", pageFAQ);
....
</cod... | [
{
"answer_id": 294385,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": true,
"text": "$(\"#faq\").click(function () { \n $.get(\n \"faq\", \n { pagina: \"page\" },\n function(data) ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38058/"
] |
294,193 | <p>I normally use scp to copy stuff, but now I'm trying to get used to the more powerful rsync command. It helps me use less bandwidth by copying up only files that have changed. However, rsync has a lot of complex parameters, so I thought, hey, I'll just make a little Bash script that makes it easy for me, and call th... | [
{
"answer_id": 294240,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": 4,
"selected": true,
"text": "#!/bin/bash\nPORT=$1\nshift\nrsync -avzp --progress --rsh=\"ssh -p$PORT\" \"$@\"\n"
},
{
"answer_id": 41310369... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,201 | <p>Given 2 file revisions I want to know how many lines were added/modified/deleted.
I want to have this information for the entire repository of thousand of files.
Please point me to a script or tool as I am a total svn newbie</p>
<p>I am working on windows</p>
<p>Sample output</p>
<p>File~NewRevision~OldRevision~A... | [
{
"answer_id": 294229,
"author": "Peter Bratton",
"author_id": 37856,
"author_profile": "https://Stackoverflow.com/users/37856",
"pm_score": 4,
"selected": true,
"text": "svn diff -rOldRevision:NewRevision URL\n"
},
{
"answer_id": 294245,
"author": "coppro",
"author_id": ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30546/"
] |
294,216 | <p>This causes a compile-time exception:</p>
<pre><code>public sealed class ValidatesAttribute<T> : Attribute
{
}
[Validates<string>]
public static class StringValidation
{
}
</code></pre>
<p>I realize C# does not support generic attributes. However, after much Googling, I can't seem to find the reason... | [
{
"answer_id": 294248,
"author": "ichiban",
"author_id": 37081,
"author_profile": "https://Stackoverflow.com/users/37081",
"pm_score": 3,
"selected": false,
"text": "typeof(Validates<string>) typeof(Validates<SomeCustomType>) SomeCustomValidationDelegate ISomeCustomValidator"
},
{
... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37815/"
] |
294,217 | <p>In ARM assembly immediates are encoded by an 8-bit rotated value which means we can only encode </p>
<pre><code>(0-256)^2n.
</code></pre>
<p>Now my problem is that I want to clear the upper 16-bits of r0 and replace it with the half-word stored r1. But because of the limited range of the immediates I have to do: -... | [
{
"answer_id": 294227,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "xor"
},
{
"answer_id": 294284,
"author": "Martin v. Löwis",
"author_id": 33006,
"author_profile": "https:... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27653/"
] |
294,220 | <p>I'm trying to create a WPF application where I can drag an image around.</p>
<p>Currently I have an image placed in the center of the window, and I'm thinking of using the three mouseevents MouseDown, MouseMove and MouseUp to calculate the new position when dragging the image.</p>
<p>Are there any other good ideas... | [
{
"answer_id": 294412,
"author": "deepcode.co.uk",
"author_id": 20524,
"author_profile": "https://Stackoverflow.com/users/20524",
"pm_score": 6,
"selected": true,
"text": "public class DraggableExtender : DependencyObject\n{\n // This is the dependency property we're exposing - we'll ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33431/"
] |
294,234 | <p>I'm working on an assignment that is telling me to assume that I have a singly linked list with a header and tail nodes. It wants me to insert an item y before position p. Can anybody please look over my code and tell me if I'm on the right track? If not, can you provide me with any tips or pointers (no pun inten... | [
{
"answer_id": 294243,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 4,
"selected": true,
"text": "// First we have a pointer to a node containing element (elm) \n// with possible a next element.\n// Graphically drawn... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14013/"
] |
294,250 | <p>Suppose that I have a <code><div></code> that I wish to center in the browser's display (viewport). To do so, I need to calculate the width and height of the <code><div></code> element. </p>
<p>What should I use? Please include information on browser compatibility.</p>
| [
{
"answer_id": 294268,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 6,
"selected": false,
"text": "height width outerHeight outerWidth var height = $(\"#myDiv\").height();\nvar width = $(\"#myDiv\").width();\n\nvar doc... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184350/"
] |
294,261 | <p>I have class with a member function that takes a default argument.</p>
<pre><code>struct Class
{
void member(int n = 0)
{}
};
</code></pre>
<p>By means of std::tr1::mem_fn I can invoke it:</p>
<pre><code>Class object;
std::tr1::mem_fn(&Class::member)(object,10);
</code></pre>
<p>That said, if I want... | [
{
"answer_id": 294274,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "mem_fn &Class::member void(Class::*)(int) static_cast<void(Class::*)()>(&Class::member) &Class::member std:... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19630/"
] |
294,270 | <p>How would you call the constructor of the following class in these three situations: Global objects, arrays of objects, and objects contained in another class/struct?</p>
<p>The class with the constructor (used in all three examples):</p>
<pre><code>class Foo {
public:
Foo(int a) { b = a; }
privat... | [
{
"answer_id": 294278,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": true,
"text": "std::fill std::uninitialized_fill class Bar {\n Foo foo;\n\n Bar() : foo(3) { }\n};\n class Bar {\n static Fo... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
294,285 | <p>I want to automate several tasks (eg. simulate eclipse style <kbd>ctrl</kbd>-<kbd>shift</kbd>-<kbd>R</kbd> open dialog for other editors). The general pattern is: the user will press some key combination, my program will detect it and potentially pop up a dialog to get user input, and then run a corresponding comman... | [
{
"answer_id": 557543,
"author": "Parand",
"author_id": 13055,
"author_profile": "https://Stackoverflow.com/users/13055",
"pm_score": 4,
"selected": true,
"text": "import pyHook\nimport pythoncom\n\ndef OnKeyboardEvent(event):\n print event.Ascii\n\nhm = pyHook.HookManager()\nhm.KeyDo... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13055/"
] |
294,286 | <p>I want to use svn command line with beyond compare and get the following output</p>
<pre><code>Text Compare
Produced: 11/16/2008 11:45:34 AM
SourceFile,CompareFile,IOriginal,IAdded,IDeleted,IChanged,UOriginal,UAdded,UDeleted,UChanged
"E:\Downloads\eeli\eel\1.c","E:\Downloads\eeli\eel\2.c",967,192,501,270,368,113,2... | [
{
"answer_id": 294344,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 4,
"selected": true,
"text": "@REM To configure this as the Subversion diff command, add these lines to\n@REM c:\\Documents and Settings\\usern... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30546/"
] |
294,292 | <p>How can I change the master volume level? Using this code</p>
<pre><code>[DllImport ("winmm.dll")]
public static extern int waveOutSetVolume (IntPtr hwo, uint dwVolume);
waveOutSetVolume (IntPtr.Zero, (((uint)uint.MaxValue & 0x0000ffff) | ((uint)uint.MaxValue << 16)));
</code></pre>
<p>I can set the wav... | [
{
"answer_id": 294330,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "BOOL CVolumeDlg::amdInitialize()\n{\n ASSERT(m_hMixer == NULL);\n\n // get the number of mixer devices present in the sys... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/894/"
] |
294,297 | <p>I'm writing a Web application that needs to store JSON data in a small, fixed-size server-side cache via AJAX (think: <a href="http://code.google.com/apis/opensocial/articles/persistence-0.8.html#restrictions-quotas" rel="noreferrer">Opensocial quotas</a>). I do not have control over the server.</p>
<p>I need to re... | [
{
"answer_id": 294421,
"author": "Matthew Crumley",
"author_id": 2214,
"author_profile": "https://Stackoverflow.com/users/2214",
"pm_score": 7,
"selected": false,
"text": "// LZW-compress a string\nfunction lzw_encode(s) {\n var dict = {};\n var data = (s + \"\").split(\"\");\n ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5309/"
] |
294,299 | <p>I created an Ajax website in Visual Studio, added a simple page with a textbox and button, when I click the button once everything works, when I click it twice I get the error</p>
<p>Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The statu... | [
{
"answer_id": 294421,
"author": "Matthew Crumley",
"author_id": 2214,
"author_profile": "https://Stackoverflow.com/users/2214",
"pm_score": 7,
"selected": false,
"text": "// LZW-compress a string\nfunction lzw_encode(s) {\n var dict = {};\n var data = (s + \"\").split(\"\");\n ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
294,313 | <p>Python provides the "*" operator for unpacking a list of tuples and giving them to a function as arguments, like so:</p>
<pre><code>args = [3, 6]
range(*args) # call with arguments unpacked from a list
</code></pre>
<p>This is equivalent to:</p>
<pre><code>range(3, 6)
</code></pre>
<p>Does anyone know... | [
{
"answer_id": 294325,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 5,
"selected": true,
"text": "call_user_func_array() call_user_func_array(\"range\", $args);"
},
{
"answer_id": 294335,
"author": "andy.gurin",
... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2327/"
] |
294,342 | <p>I have a TDbGrid, and I can easily tell how many columns are in it at runtime with the FieldCount property, but there doesn't seem to be a corresponding RowCount property to display how many records are being displayed. How can I find this out?</p>
| [
{
"answer_id": 294345,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 4,
"selected": true,
"text": "DBGrid1.DataSource.DataSet.RecordCount\n"
},
{
"answer_id": 294372,
"author": "Steve",
"author_id": 22... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32914/"
] |
294,343 | <p>I am looking for a simple C++ library for tokenizing and parsing RTF (Rich Text Format) files. I am planning to edit them with Qt's QTextEdit.</p>
<p>More the Formatting preserved the better -- but actually I am planning to use Bold and Italics only.</p>
<p>In perl I would use <a href="http://search.cpan.org/%7Esarg... | [
{
"answer_id": 294728,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "#koffice irc.freenode.org kword"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/294343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38075/"
] |
294,349 | <p>I am trying to create a sidebar for a site that will allow a user to select an item from a drop down menu and show an RSS Feed. The feed will change depending on which item is selected from the list. I am not sure how to acomplish this, but my first thought was to use z-index and show/hide layers. I have one layer a... | [
{
"answer_id": 294427,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "// load first feed on document load\n$(document).ready(\n function() {\n load_feed( $('select#feedSelect')[0],... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5509/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.