qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
111,478 | <p>Why is it wrong to use <code>std::auto_ptr<></code> with standard containers?</p>
| [
{
"answer_id": 111492,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 6,
"selected": false,
"text": "auto_ptr auto_ptr auto_ptr auto_ptrs"
},
{
"answer_id": 111531,
"author": "Kevin",
"author_id": 6386,
... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19129/"
] |
111,504 | <p>I'm trying to create a UDF in <code>SQL Server 2005 Express</code> as below:</p>
<pre><code>CREATE FUNCTION [CombineValues] ()
RETURNS VARCHAR(8000)
AS
BEGIN
DECLARE @CuisineList VARCHAR(8000);
RETURN
(
SELECT @CuisineList = COALESCE(@CuisineList + ', ', '') +
CAST(Cuisine AS varchar(20))
FR... | [
{
"answer_id": 111520,
"author": "Donnie Thomas",
"author_id": 6939,
"author_profile": "https://Stackoverflow.com/users/6939",
"pm_score": 0,
"selected": false,
"text": "CREATE FUNCTION [CombineValues] ()\nRETURNS VARCHAR(8000)\nAS\nBEGIN\n\nDECLARE @CuisineList VARCHAR(8000);\n\nSELECT ... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6939/"
] |
111,517 | <p>When adding new properties to classes, I find myself typing the same things over and over in xcode:</p>
<ol>
<li><code>add TYPE *NAME;</code> (in .h interface)</li>
<li><code>add @property (nonatomic, retain) TYPE *NAME;</code> (in .h)</li>
<li><code>add @synthesize NAME;</code> (in .m)</li>
<li><code>add [NAME rel... | [
{
"answer_id": 184750,
"author": "Jablair",
"author_id": 24168,
"author_profile": "https://Stackoverflow.com/users/24168",
"pm_score": 0,
"selected": false,
"text": "-copyWithZone: -initWithCoder: -encodeWithCoder: -isEqual: -dealloc"
},
{
"answer_id": 1028743,
"author": "Cal... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3740/"
] |
111,529 | <p>Is there any way to create the <em>query parameters</em> for doing a <em>GET request</em> in JavaScript?</p>
<p>Just like in Python you have <a href="http://web.archive.org/web/20080926234926/http://docs.python.org:80/lib/module-urllib.html" rel="noreferrer"><code>urllib.urlencode()</code></a>, which takes in a dic... | [
{
"answer_id": 111537,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": -1,
"selected": false,
"text": "escape() unescape() function urlencode(str) {\nstr = escape(str);\nstr = str.replace('+', '%2B');\nstr = str.replace('%20', ... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448/"
] |
111,543 | <p>I'm trying to setup a new computer to synchronize with my SVN repository that's hosted with cvsdude.com.</p>
<p>I get this error:</p>
<p>![SVN Error][1] - <em>removed image shack image that had been replaced by an advert</em></p>
<p>Here's what I did (these have worked in the past):</p>
<ol>
<li><p>Downloaded an... | [
{
"answer_id": 1478120,
"author": "Wouter van Nifterick",
"author_id": 38813,
"author_profile": "https://Stackoverflow.com/users/38813",
"pm_score": 5,
"selected": false,
"text": "C:\\Documents and Settings\\[username]\\Application Data\\Subversion\\ http-proxy-exceptions was empty [glob... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
111,568 | <p>I imported a series of blogger posts (via xml) into WordPress, and the YouTube embed tags were removed.
YouTube URLs in posts are not identified. Instead, just the text of the url is left. Possibly as opposed to full embed tags.
I'm trying to restore the embed codes so it's seen.</p>
<p>Another fact that is notable ... | [
{
"answer_id": 6710981,
"author": "LouieGeetoo",
"author_id": 560089,
"author_profile": "https://Stackoverflow.com/users/560089",
"pm_score": 3,
"selected": false,
"text": "<embed> <iframe> /wp-includes kses.php kses.php //Post filtering // Post filtering\n#add_filter('content_save_pre',... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
111,578 | <p>Also, where would I find them?</p>
| [
{
"answer_id": 32458246,
"author": "mgttlinger",
"author_id": 1876344,
"author_profile": "https://Stackoverflow.com/users/1876344",
"pm_score": 0,
"selected": false,
"text": "hgview tig"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/111578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16398/"
] |
111,587 | <p>How do I name a result group in a Regex? (.Net)</p>
| [
{
"answer_id": 111594,
"author": "Haacked",
"author_id": 598,
"author_profile": "https://Stackoverflow.com/users/598",
"pm_score": 2,
"selected": false,
"text": "(?<NameOfGroup>[a-z]*)\n"
},
{
"answer_id": 111607,
"author": "Per Hornshøj-Schierbeck",
"author_id": 11619,
... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14484/"
] |
111,597 | <p>Basically I’ve heard that certain conditions will cause .NET to blow past the <code>finally</code> block. Does anyone know what those conditions are?</p>
| [
{
"answer_id": 111617,
"author": "Haacked",
"author_id": 598,
"author_profile": "https://Stackoverflow.com/users/598",
"pm_score": 7,
"selected": true,
"text": "StackOverflowException ExecutionEngineException Environment.FailFast()"
},
{
"answer_id": 40722083,
"author": "Navn... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2424/"
] |
111,605 | <p>No doubt, it's essential for understanding code to give member variables a prefix so that they can easily be distinguished from "normal" variables.</p>
<p>But what kind of prefix do you use?</p>
<p>I have been working on projects where we used <strong>m_</strong> as prefix, on other projects we used an underscore ... | [
{
"answer_id": 111625,
"author": "easeout",
"author_id": 10906,
"author_profile": "https://Stackoverflow.com/users/10906",
"pm_score": 7,
"selected": true,
"text": "m_ LPCSTR"
},
{
"answer_id": 111647,
"author": "Jakub Kotrla",
"author_id": 16943,
"author_profile": "h... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2012356/"
] |
111,629 | <p>I am interested to know what strategies people have to keep their code AND work versioned across multiple machines. For example I have a desktop PC running XP, a macbook running OSX and VMWare running XP as well as a sales laptop for running product demos. I want to know how I can always have these in sync. Subve... | [
{
"answer_id": 111668,
"author": "Alex M",
"author_id": 9652,
"author_profile": "https://Stackoverflow.com/users/9652",
"pm_score": 1,
"selected": false,
"text": ".zshrc"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/111629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20026/"
] |
111,630 | <p>Some of the controls I've created seem to default to the old Windows 95 theme, how do I prevent this? Here's an example of a button that does not retain the Operating System's native appearance (I'm using Vista as my development environment):</p>
<pre><code>HWND button = CreateWindowEx(NULL, L"BUTTON", L"OK", WS_VI... | [
{
"answer_id": 112617,
"author": "jussij",
"author_id": 14738,
"author_profile": "https://Stackoverflow.com/users/14738",
"pm_score": 3,
"selected": false,
"text": "//-- This define is normally part of the SDK but define it if this \n//-- is an older version of the SDK.\n#ifndef RT_MANIF... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1467/"
] |
111,631 | <p>I am working with a Visual Studio 2005 C++ solution that includes multiple projects (about 30).
Based upon my experience, it often becomes annoying to maintain all the properties of the projects (i.e include path, lib path, linked libs, code generation options, ...), as you often have to click each and every proje... | [
{
"answer_id": 111671,
"author": "Jere.Jones",
"author_id": 19476,
"author_profile": "https://Stackoverflow.com/users/19476",
"pm_score": 4,
"selected": false,
"text": "XmlDocument #include <stdio.h>\n#include <tchar.h>\n#include <iostream>\n#include <fstream>\n#include <string>\n#includ... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19816/"
] |
111,643 | <p>I'm currently convering my ASP.NET v2 application to serialize/deserialize it's objects because I want to shift from inproc session state to stateserver. This is because my host, webhost4life, has a nasty tendency to recycle the worker process frequently thus causing session timeouts. Anyway... the question...</p>
... | [
{
"answer_id": 111646,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 3,
"selected": true,
"text": "Initialize()"
},
{
"answer_id": 111691,
"author": "Greg Beech",
"author_id": 13552,
"author_profile... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18128/"
] |
111,676 | <p>Does anyone have any advice for a consistent way to unit test a multithreaded application? I have done one application where our mock "worker threads" had a thread.sleep with a time that was specified by a public member variable. We would use this so we could set how long a particular thread would take to complete... | [
{
"answer_id": 111778,
"author": "Matt Howells",
"author_id": 16881,
"author_profile": "https://Stackoverflow.com/users/16881",
"pm_score": 4,
"selected": false,
"text": "bool WaitUntilTrue(Func<bool> func,\n int timeoutInMillis,\n int timeBetweenChecksMillis)\n... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19840/"
] |
111,687 | <p>Is it absolutely critical that I always close Syslog when I'm done using it? Is there a huge negative impact from not doing so?</p>
<p>If it turns out that I definitely need to, what's a good way to do it? I'm opening Syslog in my class constructor and I don't see a way to do class destructors in Ruby, and currentl... | [
{
"answer_id": 111724,
"author": "Armin Ronacher",
"author_id": 19990,
"author_profile": "https://Stackoverflow.com/users/19990",
"pm_score": 3,
"selected": true,
"text": "class Foo\n def do_something\n Syslog.open do\n # work with the syslog here\n end\n end\nend\n"
},
... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/422/"
] |
111,700 | <p>It's the weekend, so I relax from spending all week programming by writing a hobby project.</p>
<p>I wrote the framework of a MOS 6502 CPU emulator yesterday, the registers, stack, memory and all the opcodes are implemented. (Link to source below)</p>
<p>I can manually run a series of operations in the debugger I ... | [
{
"answer_id": 111754,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 2,
"selected": false,
"text": "HEX LEN TIM\n"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/111700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
111,707 | <p>I am encountering very infrequent yet annoying SQL deadlocks on a .NET 2.0 webapp running on top of MS SQL Server 2005. In the past, we have been dealing with the SQL deadlocks in the very empirical way - basically tweaking the queries until it work.</p>
<p>Yet, I found this approach very unsatisfactory: time consu... | [
{
"answer_id": 112896,
"author": "Matt Rogish",
"author_id": 2590,
"author_profile": "https://Stackoverflow.com/users/2590",
"pm_score": 4,
"selected": false,
"text": "SET ISOLATION LEVEL"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/111707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18858/"
] |
111,744 | <ul>
<li>The GoDiagram object model has a GoDocument. </li>
<li>GoViews have a reference to a GoDocument.</li>
<li>If the user does any modification on the diagramming surface, a GoDocument.Changed event is raised with the relevant information in the event arguments.</li>
</ul>
<p>I would like to be notified when some... | [
{
"answer_id": 130039,
"author": "Brian B.",
"author_id": 21817,
"author_profile": "https://Stackoverflow.com/users/21817",
"pm_score": 0,
"selected": false,
"text": "OnChanged(GoChangedEventArgs e)\n{\n if(NotAllowed)\n {\n e.Undo();\n }\n}\n"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/111744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1695/"
] |
111,769 | <p>I searched the net and handbook, but I only managed to learn what is the masked package, and not how to install it. I did find some commands, but they don't seem to work on 2008 (looking at it, it seems those are for earlier versions). I have something like this:</p>
<pre><code>localhost ~ # emerge flamerobin
Calcu... | [
{
"answer_id": 455780,
"author": "Paul de Vrieze",
"author_id": 4100,
"author_profile": "https://Stackoverflow.com/users/4100",
"pm_score": 3,
"selected": false,
"text": "/etc/portage/package.keywords man portage package.keywords /etc/portage/package.unmask package.unmask"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/111769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14690/"
] |
111,792 | <p>For example:</p>
<pre><code>root.Nodes.Add(new TNode() { Foo1 = bar1, Foo2 = bar2, Foo3 = bar3 });
</code></pre>
<p>or:</p>
<pre><code>root.Nodes.Add(new TNode() { Foo1 = bar1,
Foo2 = bar2,
Foo3 = bar3 });
</code></pre>
| [
{
"answer_id": 111803,
"author": "Quintin Robinson",
"author_id": 12707,
"author_profile": "https://Stackoverflow.com/users/12707",
"pm_score": 3,
"selected": true,
"text": "Income income = new Income\n{\n Initials = something,\n CheckNumber = something,\n CheckDate = something,... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14484/"
] |
111,812 | <p>What is the best practice for naming UI controls (textboxes, drop-downs, etc.) on forms and reports for reference in the code-behind pages?</p>
<p>I develop a lot of reports and forms in my office. I have several web applications providing about 80+ "live" reports being generated from various and multiple data sou... | [
{
"answer_id": 112007,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 3,
"selected": false,
"text": "btn Button\ncbo ComboBox\nchk CheckBox\nclb CheckedListBox\ngrp GroupBox\niml ImageList\nlbl Label\nlnk Hyperlink\nmnu... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19747/"
] |
111,852 | <p>What tools do you use to develop Oracle stored procedures, in a team :</p>
<ul>
<li>To automatically "lock" the current procedure you are working with, so nobody else in the team can make changes to it until you are finished.</li>
<li>To automatically send the changes you make in the stored procedure, in an Oracle ... | [
{
"answer_id": 1001493,
"author": "asalamon74",
"author_id": 21348,
"author_profile": "https://Stackoverflow.com/users/21348",
"pm_score": 0,
"selected": false,
"text": "SELECT object_type, object_name, \n dbms_metadata.get_ddl(object_type, object_name) object_ddl FROM user_objects\nWHE... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20037/"
] |
111,866 | <p>In Cocoa, if I want to loop through an NSMutableArray and remove multiple objects that fit a certain criteria, what's the best way to do this without restarting the loop each time I remove an object?</p>
<p>Thanks,</p>
<p>Edit: Just to clarify - I was looking for the best way, e.g. something more elegant than manu... | [
{
"answer_id": 111895,
"author": "Jens Ayton",
"author_id": 6443,
"author_profile": "https://Stackoverflow.com/users/6443",
"pm_score": 4,
"selected": false,
"text": "for (NSInteger i = array.count - 1; i >= 0; --i) {\n for (id object in array) NSEnumerator"
},
{
"answer_id": 111... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1043/"
] |
111,868 | <p>The one-liner should:</p>
<ul>
<li>solve a real-world problem</li>
<li>not be extensively cryptic (should be easy to understand and reproduce)</li>
<li>be worth the time it takes to write it (should not be too clever)</li>
</ul>
<p>I'm looking for practical tips and tricks (complementary examples for <code>perldoc... | [
{
"answer_id": 111869,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 4,
"selected": false,
"text": "perl -e'while(<*.avi>) { s/avi$/srt/; rename <*.srt>, $_ }'\n my @avi = glob('*.avi');\nmy @srt = glob('*.srt');\n\nfor my $i (0... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4279/"
] |
111,927 | <p>I use a <code>System.Timers.Timer</code> in my Asp.Net application and I need to use the <code>HttpServerUtility.MapPath</code> method which seems to be only available via <code>HttpContext.Current.Server.MapPath</code>.
The problem is that <code>HttpContext.Current</code> is <code>null</code> when the <code>Timer.E... | [
{
"answer_id": 112220,
"author": "Costo",
"author_id": 1130,
"author_profile": "https://Stackoverflow.com/users/1130",
"pm_score": 8,
"selected": true,
"text": "HostingEnvironment.MapPath() HttpContext.Current.Server.MapPath() HttpServerUtility MapPath AppDomain.CurrentDomain.BaseDirecto... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1130/"
] |
111,928 | <p>I can print with <code>printf</code> as a hex or octal number. Is there a format tag to print as binary, or arbitrary base?</p>
<p>I am running gcc.</p>
<pre><code>printf("%d %x %o\n", 10, 10, 10); //prints "10 A 12\n"
print("%b\n", 10); // prints "%b\n"
</code></pre>
| [
{
"answer_id": 112956,
"author": "EvilTeach",
"author_id": 7734,
"author_profile": "https://Stackoverflow.com/users/7734",
"pm_score": 7,
"selected": false,
"text": "#include <stdio.h> /* printf */\n#include <string.h> /* strcat */\n#include <stdlib.h> /* strtol */\n\nconst ... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8959/"
] |
111,933 | <p>I know what Hungarian refers to - giving information about a variable, parameter, or type as a prefix to its name. Everyone seems to be rabidly against it, even though in some cases it seems to be a good idea. If I feel that useful information is being imparted, why shouldn't I put it right there where it's availabl... | [
{
"answer_id": 111972,
"author": "Ilya Kochetov",
"author_id": 15329,
"author_profile": "https://Stackoverflow.com/users/15329",
"pm_score": 8,
"selected": true,
"text": "type kind"
},
{
"answer_id": 112029,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "h... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16398/"
] |
111,934 | <p>I want to create some text in a canvas:</p>
<pre><code>myText = self.canvas.create_text(5, 5, anchor=NW, text="TEST")
</code></pre>
<p>Now how do I find the width and height of <code>myText</code>?</p>
| [
{
"answer_id": 111974,
"author": "skymt",
"author_id": 18370,
"author_profile": "https://Stackoverflow.com/users/18370",
"pm_score": 5,
"selected": true,
"text": "bounds = self.canvas.bbox(myText) # returns a tuple like (x1, y1, x2, y2)\nwidth = bounds[2] - bounds[0]\nheight = bounds[3]... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10577/"
] |
111,945 | <p>I need to upload some data to a server using HTTP <code>PUT</code> in python. From my brief reading of the urllib2 docs, it only does HTTP <code>POST</code>. Is there any way to do an HTTP <code>PUT</code> in python?</p>
| [
{
"answer_id": 111988,
"author": "Florian Bösch",
"author_id": 19435,
"author_profile": "https://Stackoverflow.com/users/19435",
"pm_score": 8,
"selected": false,
"text": "import urllib2\nopener = urllib2.build_opener(urllib2.HTTPHandler)\nrequest = urllib2.Request('http://example.org', ... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161922/"
] |
111,954 | <p>You can use ftplib for full FTP support in Python. However the preferred way of getting a directory listing is:</p>
<pre><code># File: ftplib-example-1.py
import ftplib
ftp = ftplib.FTP("www.python.org")
ftp.login("anonymous", "ftplib-example-1")
data = []
ftp.dir(data.append)
ftp.quit()
for line in data:
... | [
{
"answer_id": 111966,
"author": "William Keller",
"author_id": 17095,
"author_profile": "https://Stackoverflow.com/users/17095",
"pm_score": 8,
"selected": true,
"text": "ftp.nlst(dir) files = []\n\ntry:\n files = ftp.nlst()\nexcept ftplib.error_perm as resp:\n if str(resp) == \"5... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
111,983 | <p>If you are creating a 1d array in Python, is there any benefit to using the NumPy package?</p>
| [
{
"answer_id": 43865968,
"author": "nivniv",
"author_id": 736211,
"author_profile": "https://Stackoverflow.com/users/736211",
"pm_score": 3,
"selected": false,
"text": "import numpy as np\nfrom array import array\n\n# Fixed size numpy array\ndef np_fixed(n):\n q = np.empty(n)\n for... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16584/"
] |
111,995 | <p>Is there a way to separate a C# class into a header that contains the class definition and then an actual .cs file that contains the implementation? I suppose one can do this by creating an interface, but that doesn't seem right. I just want a file where I can just see the class design, and not all the detail. It... | [
{
"answer_id": 112230,
"author": "craigb",
"author_id": 18590,
"author_profile": "https://Stackoverflow.com/users/18590",
"pm_score": 1,
"selected": false,
"text": "interface public interface IFoo\n{\n int DoFoo();\n}\n public class Foo : IFoo\n{\n public int DoFoo()\n {\n return 1... | 2008/09/21 | [
"https://Stackoverflow.com/questions/111995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20062/"
] |
112,010 | <p>How to enable inno-db support on installed instance of MySql?</p>
<p>I have installed mysql-5.0.67-win32.
'InnoDB' is 'DISABLED' when executing 'show engines'.
According to documentation MySql is compiled with support of inno-db
(From doc: A value of DISABLED occurs either because the server was started with an opt... | [
{
"answer_id": 112042,
"author": "boes",
"author_id": 17746,
"author_profile": "https://Stackoverflow.com/users/17746",
"pm_score": 2,
"selected": false,
"text": "#*** INNODB Specific options ***\ninnodb_data_home_dir=\"C:/mysqldata/\"\n#skip-innodb\ninnodb_additional_mem_pool_size=120M\... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13441/"
] |
112,036 | <p>I'm using the AdvancedDataGrid widget and I want two columns to be radio buttons, where each column is it's own RadioButtonGroup. I thought I had all the necessary mxxml, but I'm running into a strange behavior issue. When I scroll up and down, the button change values! The selected button becomes deselected, and... | [
{
"answer_id": 115926,
"author": "bill d",
"author_id": 1798,
"author_profile": "https://Stackoverflow.com/users/1798",
"pm_score": 2,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mx:Application layout=\"absolute\"\n xmlns:my=\"*\"\n xmlns:mx=\"http://ww... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7536/"
] |
112,055 | <p>I'm looking at a batch file which defines the following variables:</p>
<pre><code>set _SCRIPT_DRIVE=%~d0
set _SCRIPT_PATH=%~p0
</code></pre>
<ul>
<li>What do <code>%~d0</code> or <code>%~p0</code> actually mean?</li>
<li>Is there a set of well-known values for things like current directory, drive, parameters to a ... | [
{
"answer_id": 112074,
"author": "Armin Ronacher",
"author_id": 19990,
"author_profile": "https://Stackoverflow.com/users/19990",
"pm_score": 3,
"selected": false,
"text": "%~d0 %~p0"
},
{
"answer_id": 112120,
"author": "efotinis",
"author_id": 12320,
"author_profile"... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/322/"
] |
112,064 | <p>The word seems to get used in a number of contexts. The best I can figure is that they mean a variable that can't change. Isn't that what constants/finals (darn you Java!) are for?</p>
| [
{
"answer_id": 46055481,
"author": "void",
"author_id": 7863149,
"author_profile": "https://Stackoverflow.com/users/7863149",
"pm_score": 4,
"selected": false,
"text": "count sum // invariant:\n// we have read count grades so far, and\n// sum is the sum of the first count grades\n int co... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16398/"
] |
112,085 | <p>Instead of having to remember to initialize a simple 'C' structure, I might derive from it and zero it in the constructor like this:</p>
<pre><code>struct MY_STRUCT
{
int n1;
int n2;
};
class CMyStruct : public MY_STRUCT
{
public:
CMyStruct()
{
memset(this, 0, sizeof(MY_STRUCT));
}
};
<... | [
{
"answer_id": 112100,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https://Stackoverflow.com/users/14089",
"pm_score": 5,
"selected": true,
"text": "class CMyStruct : public MY_STRUCT\n{\npublic:\n CMyStruct() { n1 = 0 ; n2 = 0 ; }\n};\n"
},
{
"answer_id": 11... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
112,093 | <p>I have a simple list I am using for a horizontal menu:</p>
<pre><code><ul>
<h1>Menu</h1>
<li>
<a href="/" class="selected">Home</a>
</li>
<li>
<a href="/Home">Forum</a>
</li>
</ul>
</code></pre>
<p>When I add a ... | [
{
"answer_id": 112106,
"author": "Justin Poliey",
"author_id": 6967,
"author_profile": "https://Stackoverflow.com/users/6967",
"pm_score": 5,
"selected": true,
"text": "display: block;\n"
},
{
"answer_id": 112114,
"author": "Josh Hunt",
"author_id": 2592,
"author_prof... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
112,112 | <p>In terms of quick dynamically typed languages, I'm really starting to like Javascript, as I use it a lot for web projects, especially because it uses the same syntax as Actionscript (flash).</p>
<p>It would be an ideal language for shell scripting, making it easier to move code from the front and back end of a site... | [
{
"answer_id": 112122,
"author": "William Keller",
"author_id": 17095,
"author_profile": "https://Stackoverflow.com/users/17095",
"pm_score": 1,
"selected": false,
"text": "scons sample=shell shell ./shell file.js"
},
{
"answer_id": 112128,
"author": "Frank Krueger",
"aut... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20073/"
] |
112,154 | <p>I currently have a Java SAX parser that is extracting some info from a 30GB XML file. </p>
<p>Presently it is:</p>
<ul>
<li>reading each XML node</li>
<li>storing it into a string object, </li>
<li>running some regexex on the string</li>
<li>storing the results to the database</li>
</ul>
<p>For several million el... | [
{
"answer_id": 112363,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": 3,
"selected": true,
"text": "BufferedInputStream"
},
{
"answer_id": 112629,
"author": "MetroidFan2002",
"author_id": 8026,
"auth... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6545/"
] |
112,158 | <p>On my team, we usually do string concatentation like this:</p>
<pre><code>var url = // some dynamically generated URL
var sb = new StringBuffer();
sb.append("<a href='").append(url).append("'>click here</a>");
</code></pre>
<p>Obviously the following is much more readable:</p>
<pre><code>var url = // ... | [
{
"answer_id": 112171,
"author": "Rahul",
"author_id": 16308,
"author_profile": "https://Stackoverflow.com/users/16308",
"pm_score": 4,
"selected": false,
"text": "var s = [\"<a href='\", url, \"'>click here</a>\"].join(\"\");\n"
},
{
"answer_id": 112185,
"author": "Frank Kru... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
112,169 | <p>For years I've been using ShellExecute() API to launch the default web browser from within my applications. Like this:</p>
<pre><code>ShellExecute( hwnd, _T("open"),
_T("http://www.winability.com/home/"),
NULL, NULL, SW_NORMAL );
</code></pre>
<p>It's been working fine until a couple of weeks ago, when G... | [
{
"answer_id": 112213,
"author": "Sergey Kornilov",
"author_id": 10969,
"author_profile": "https://Stackoverflow.com/users/10969",
"pm_score": 3,
"selected": true,
"text": "HINSTANCE GotoURL(LPCTSTR url, int showcmd)\n{\n TCHAR key[MAX_PATH + MAX_PATH];\n\n // First try ShellExecut... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17037/"
] |
112,190 | <p><code>My ISP</code> account requires that I send a username & password for outbound <code>SMTP</code> mail. </p>
<p>How do I get <code>PHP</code> to use this when executing <code>php.mail()?</code> The <code>php.ini</code> file only contains entries for the server <code>(SMTP= )</code> and <code>From: (sendmail... | [
{
"answer_id": 112305,
"author": "daremon",
"author_id": 6346,
"author_profile": "https://Stackoverflow.com/users/6346",
"pm_score": 6,
"selected": true,
"text": "mail()"
},
{
"answer_id": 6941390,
"author": "blavla",
"author_id": 138844,
"author_profile": "https://St... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17560/"
] |
112,197 | <p>I want to create a hidden field and create a link in one helper and then output both to my erb.</p>
<pre><code><%= my_cool_helper "something", form %>
</code></pre>
<p>Should out put the results of</p>
<pre><code>link_to "something", a_path
form.hidden_field "something".tableize, :value => "something"
</... | [
{
"answer_id": 112210,
"author": "Sixty4Bit",
"author_id": 1681,
"author_profile": "https://Stackoverflow.com/users/1681",
"pm_score": 4,
"selected": false,
"text": "def my_cool_helper(name, form)\n out = capture { link_to name, a_path }\n out << capture { form.hidden_field name.tablei... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1681/"
] |
112,224 | <p>I made a panel and set it to fill the screen, now I can see the windows under it but I want it to be click through, meaning they could click a file or see a tool tip of another object through the transparency.</p>
<blockquote>
<blockquote>
<p>RE: This may be too obvious, but have you tried sending the panel t... | [
{
"answer_id": 112593,
"author": "Phil Wright",
"author_id": 6276,
"author_profile": "https://Stackoverflow.com/users/6276",
"pm_score": 6,
"selected": true,
"text": " protected override void WndProc(ref Message m)\n {\n if (m.Msg == (int)WM_NCHITTEST)\n m.Result ... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18309/"
] |
112,234 | <p>Let's say that I have two arrays (in Java),</p>
<p>int[] numbers; and int[] colors;</p>
<p>Each ith element of numbers corresponds to its ith element in colors.
Ex, numbers = {4,2,1}
colors = {0x11, 0x24, 0x01}; Means that number 4 is color 0x11, number 2 is 0x24, etc.</p>
<p>I want to sort the numbers array... | [
{
"answer_id": 112254,
"author": "Frank Pape",
"author_id": 10367,
"author_profile": "https://Stackoverflow.com/users/10367",
"pm_score": 3,
"selected": false,
"text": "class Color implements Comparable {\n private int number;\n private int color;\n\n // (snip ctor, setters, etc.)\n\n... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16773/"
] |
112,235 | <p>There are certain Crystal Reports features that cannot be combined in the same report, for example SQL command objects and server side grouping. However, as far as I can find, the built-in help doesn't seem to clearly document these conflicts. For example, checking the help page for either of those features doesn't ... | [
{
"answer_id": 112254,
"author": "Frank Pape",
"author_id": 10367,
"author_profile": "https://Stackoverflow.com/users/10367",
"pm_score": 3,
"selected": false,
"text": "class Color implements Comparable {\n private int number;\n private int color;\n\n // (snip ctor, setters, etc.)\n\n... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20068/"
] |
112,249 | <p>I have a very large database table in PostgresQL and a column like "copied". Every new row starts uncopied and will later be replicated to another thing by a background programm. There is an partial index on that table "btree(ID) WHERE replicated=0". The background programm does a select for at most 2000 entries (LI... | [
{
"answer_id": 112315,
"author": "SquareCog",
"author_id": 15962,
"author_profile": "https://Stackoverflow.com/users/15962",
"pm_score": 2,
"selected": false,
"text": "CREATE TABLE bar AS SELECT everything, but, copied, 0 FROM foo lock ;\ncreate a new table, bar;\nswap tables so that all... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20088/"
] |
112,277 | <p>Static metaprogramming (aka "template metaprogramming") is a great C++ technique that allows the execution of programs at compile-time. A light bulb went off in my head as soon as I read this canonical metaprogramming example:</p>
<pre><code>#include <iostream>
using namespace std;
template< int n >
s... | [
{
"answer_id": 112302,
"author": "jwfearn",
"author_id": 10559,
"author_profile": "https://Stackoverflow.com/users/10559",
"pm_score": 8,
"selected": true,
"text": "NullType EmptyType"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/112277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10559/"
] |
112,320 | <p>I am a fan of <a href="https://stackoverflow.com/questions/112277/best-intro-to-c-static-metaprogramming">static metaprogramming in C++</a>. I know Java now has generics. Does this mean that static metaprogramming (i.e., compile-time program execution) is possible in Java? If so, can anyone recommend any good res... | [
{
"answer_id": 112328,
"author": "Thomas",
"author_id": 14637,
"author_profile": "https://Stackoverflow.com/users/14637",
"pm_score": 5,
"selected": false,
"text": "Object"
},
{
"answer_id": 112334,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "http... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10559/"
] |
112,396 | <p>I set a passphrase when creating a new SSH key on my laptop. But, as I realise now, this is quite painful when you are trying to commit (<a href="http://en.wikipedia.org/wiki/Git_%28software%29" rel="noreferrer">Git</a> and <a href="http://en.wikipedia.org/wiki/Apache_Subversion" rel="noreferrer">SVN</a>) to a remot... | [
{
"answer_id": 112409,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": 12,
"selected": true,
"text": "$ ssh-keygen -p\n $ ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]\n ~/.bash_history -f keyfile -P... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14191/"
] |
112,412 | <p>I would like to use Visual Studio 2008 to the greatest extent possible while effectively compiling/linking/building/etc code as if all these build processes were being done by the tools provided with MASM 6.11. The exact version of MASM does not matter, so long as it's within the 6.x range, as that is what my colleg... | [
{
"answer_id": 2403173,
"author": "Sam Harwell",
"author_id": 138304,
"author_profile": "https://Stackoverflow.com/users/138304",
"pm_score": 3,
"selected": true,
"text": "(x86) C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\VCProjectDefaults\\masm.rules\n *.inc"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/112412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20110/"
] |
112,433 | <p>In a C++ project I'm working on, I have a <em>flag</em> kind of value which can have four values. Those four flags can be combined. Flags describe the records in database and can be:</p>
<ul>
<li>new record</li>
<li>deleted record</li>
<li>modified record</li>
<li>existing record</li>
</ul>
<p>Now, for each record... | [
{
"answer_id": 112475,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 5,
"selected": false,
"text": "typedef std::bitset<4> RecordType;\n static const RecordType xNew(1);\nstatic const RecordType xDeleted(2);\nstatic c... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14690/"
] |
112,439 | <p>If you had read my other <a href="https://stackoverflow.com/questions/111700/6502-cpu-emulation">question</a>, you'll know I've spent this weekend putting together a 6502 CPU emulator as a programming exercise.</p>
<p>The CPU emulator is mostly complete, and seems to be fairly accurate from my limited testing, howe... | [
{
"answer_id": 827720,
"author": "Jason Fritcher",
"author_id": 56038,
"author_profile": "https://Stackoverflow.com/users/56038",
"pm_score": 4,
"selected": false,
"text": "int execute_run_loop( int cycles )\n{\n int n = 0;\n while( n < cycles )\n {\n /* Returns number of... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
112,440 | <p>I'm getting a JS error on displaying a page: Nothing concrete is specified but the line where it seems to be thrown. When looking into the source code of the page, I see the error is thrown inside the following script, but I can't understand why! It's only about loading images!</p>
<pre><code> <SCRIPT languag... | [
{
"answer_id": 112449,
"author": "Florian Bösch",
"author_id": 19435,
"author_profile": "https://Stackoverflow.com/users/19435",
"pm_score": 1,
"selected": false,
"text": "<script type=\"text/javascript\">\nfunction newImage(arg) {\n var rslt = new Image();\n rslt.src = arg;\n r... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19159/"
] |
112,482 | <p>For <code><script></code> HTML tags, what is the technical difference between <code>lang=Javascript</code> and <code>type=text/javascript</code>?</p>
<p>I usually use both, because I've always assumed that older browsers need one or the other.</p>
| [
{
"answer_id": 112511,
"author": "Ali",
"author_id": 8689,
"author_profile": "https://Stackoverflow.com/users/8689",
"pm_score": 2,
"selected": false,
"text": "<script language=\"\">"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/112482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16398/"
] |
112,483 | <p>I'm specifically looking for one that lets me display a map of US states with each one as it's own "object" in the sense that I can control the color, on click, and on mouseover of each one individually. GTK is my personal preference, but at this point I'd settle for just about anything. The application itself wil... | [
{
"answer_id": 112505,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": 2,
"selected": false,
"text": "QGraphicsItem"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/112483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
112,503 | <p>Given an array of <strong>n</strong> Objects, let's say it is an <strong>array of strings</strong>, and it has the following values:</p>
<pre><code>foo[0] = "a";
foo[1] = "cc";
foo[2] = "a";
foo[3] = "dd";
</code></pre>
<p>What do I have to do to delete/remove all the strings/objects equal to <strong>"a"</strong> ... | [
{
"answer_id": 112507,
"author": "Dustman",
"author_id": 16398,
"author_profile": "https://Stackoverflow.com/users/16398",
"pm_score": 4,
"selected": false,
"text": "List Arrays.asList() remove() toArray()"
},
{
"answer_id": 112542,
"author": "C. K. Young",
"author_id": 1... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4358/"
] |
112,517 | <p>I have the following enum:</p>
<pre><code>public enum Status implements StringEnum{
ONLINE("on"),OFFLINE("off");
private String status = null;
private Status(String status) {
this.status = status;
}
public String toString() {
return this.status;
}
public static Stat... | [
{
"answer_id": 112554,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": 2,
"selected": false,
"text": "toString java.lang.Object enum"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/112517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20128/"
] |
112,523 | <p>Are there any libraries (3rd party or built-in) in <code>PHP</code> to calculate text diffs?</p>
| [
{
"answer_id": 112574,
"author": "Mathew Byrne",
"author_id": 10942,
"author_profile": "https://Stackoverflow.com/users/10942",
"pm_score": 2,
"selected": false,
"text": "$diff = `diff $file1 $file2`;\n"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/112523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
112,532 | <p>How would a go about making a program where the user enters a string, and the program generates a list of words beginning with that string?</p>
<p>Ex:<br />
User: "abd"<br />
Program:abdicate, abdomen, abduct...</p>
<p>Thanks!</p>
<hr>
<p>Edit: I'm using python, but I assume that this is a fairly language-indep... | [
{
"answer_id": 112540,
"author": "dimarzionist",
"author_id": 10778,
"author_profile": "https://Stackoverflow.com/users/10778",
"pm_score": 1,
"selected": false,
"text": "var words = from word in dictionary\n where word.key.StartsWith(\"bla-bla-bla\");\n select word... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
112,551 | <p>I have a table that contains tasks and I want to give these an explicit ordering based on the priority of the task. The only way I can think to do this is via an <strong>unique</strong> int column that indexes where the task is in term of the priority (i.e. 1 is top 1000 is low).</p>
<p>The problem is that say I wa... | [
{
"answer_id": 112576,
"author": "Doug L.",
"author_id": 19179,
"author_profile": "https://Stackoverflow.com/users/19179",
"pm_score": 4,
"selected": true,
"text": "newPri = task1Pri + (task2Pri - task1Pri)/2"
}
] | 2008/09/21 | [
"https://Stackoverflow.com/questions/112551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1736/"
] |
112,564 | <p>I recently discovered the genshi.builder module. It reminds me of Divmod Nevow's Stan module. How would one use genshi.builder.tag to build an HTML document with a particular doctype? Or is this even a good thing to do? If not, what is the <em>right</em> way?</p>
| [
{
"answer_id": 112659,
"author": "alif",
"author_id": 12650,
"author_profile": "https://Stackoverflow.com/users/12650",
"pm_score": 2,
"selected": false,
"text": ">>> import genshi.output\n>>> genshi.output.DocType('html')\n('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18866/"
] |
112,582 | <p>I'm having a hard time understanding and therefore managing arrays and indexes manually in C. These are my two classic approaches but they doesn't seem to work as they keep looping when the condition is reached: </p>
<pre><code>#include<stdio.h>
#define MAX 255
int main(){
int arr[MAX]={0};
int idx=... | [
{
"answer_id": 112586,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 2,
"selected": false,
"text": "arr[idx] <= MAX\n idx <= MAX\n"
},
{
"answer_id": 112594,
"author": "hayalci",
"author_id": 16084,
"auth... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
112,601 | <p>I want to select the topmost element in a document that has a given namespace (prefix).</p>
<p>More specifically: I have XML documents that either start with /html/body (in the XHTML namespace) or with one of several elements in a particular namespace. I effectively want to strip out /html/body and just return the ... | [
{
"answer_id": 112602,
"author": "Craig Walker",
"author_id": 3488,
"author_profile": "https://Stackoverflow.com/users/3488",
"pm_score": 2,
"selected": false,
"text": "/html:html/html:body/node()|/foo:*\n"
},
{
"answer_id": 113095,
"author": "Jim Burger",
"author_id": 20... | 2008/09/21 | [
"https://Stackoverflow.com/questions/112601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3488/"
] |
112,603 | <p>I am using jProfiler to find memory leaks in a Java swing application. I have identified instances of a JFrame which keeps growing in count.</p>
<p>This frame is opened, and then closed.</p>
<p>Using jProfiler, and viewing the Paths to GC Root there is only one reference, 'JNI Global reference'.</p>
<p>What does ... | [
{
"answer_id": 112720,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 5,
"selected": false,
"text": "java.awt.Window dispose()"
}
] | 2008/09/22 | [
"https://Stackoverflow.com/questions/112603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18445/"
] |
112,612 | <p>I am hosting <a href="http://developer.mozilla.org/En/SpiderMonkey/JSAPI_Reference" rel="nofollow noreferrer">SpiderMonkey</a> in a current project and would like to have template functions generate some of the simple property get/set methods, eg:</p>
<pre><code>template <typename TClassImpl, int32 TClassImpl::*... | [
{
"answer_id": 112737,
"author": "DrPizza",
"author_id": 2131,
"author_profile": "https://Stackoverflow.com/users/2131",
"pm_score": 3,
"selected": true,
"text": "struct X\n{\n int i;\n void* p;\n};\n\ntemplate<int X::*P>\nvoid foo(X* t)\n{\n t->*P = 0;\n}\n\ntemplate<void* X::*... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20135/"
] |
112,613 | <p>running <code>git instaweb</code> in my repository opens a page that says "403 Forbidden - No projects found". What am I missing?</p>
| [
{
"answer_id": 112753,
"author": "jes5199",
"author_id": 13195,
"author_profile": "https://Stackoverflow.com/users/13195",
"pm_score": 5,
"selected": true,
"text": "$projectroot instaweb $projectroot /etc/gitweb.conf"
},
{
"answer_id": 7829893,
"author": "Kylo",
"author_i... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13195/"
] |
112,625 | <p>So, when I was a comparative novice to the novice I am right now, I used to think that these two things were syntactic sugar for each other, i.e. that using one over the other was simply a personal preference. Over time, I'm come to find that these two are not the same thing, even in a default implementation (see <a... | [
{
"answer_id": 112771,
"author": "molasses",
"author_id": 11293,
"author_profile": "https://Stackoverflow.com/users/11293",
"pm_score": 5,
"selected": false,
"text": "string x = \"hello\";\nstring y = String.Copy(x);\nstring z = \"hello\";\n x y (object)x == (object)y // false\nx.Refere... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
112,643 | <p>I know how to create a <code>SEL</code> at compile time using <code>@selector(MyMethodName:)</code> but what I want to do is create a selector dynamically from an <code>NSString</code>. Is this even possible?</p>
<p>What I can do:</p>
<pre><code>SEL selector = @selector(doWork:);
[myobj respondsToSelector:selector... | [
{
"answer_id": 112680,
"author": "Josh Gagnon",
"author_id": 7944,
"author_profile": "https://Stackoverflow.com/users/7944",
"pm_score": 5,
"selected": false,
"text": "setWidthHeight = NSSelectorFromString(aBuffer);"
},
{
"answer_id": 21494661,
"author": "Alex Gray",
"aut... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18590/"
] |
112,664 | <p>I can connect to my SQL Server database via sqlcmd from a DOS command window, but not from a Cygwin window. From DOS:</p>
<pre><code>F:\Cygnus>sqlcmd -Q "select 'a test'" -S .\SQLEXPRESS
</code></pre>
<hr>
<p>a test</p>
<p>(1 rows affected)</p>
<pre><code>F:\Cygnus>
</code></pre>
<p>=====================... | [
{
"answer_id": 118071,
"author": "Adam Mitz",
"author_id": 2574,
"author_profile": "https://Stackoverflow.com/users/2574",
"pm_score": 4,
"selected": true,
"text": "sqlcmd -Q \"select 'a test'\" -S .\\\\SQLEXPRESS\n"
},
{
"answer_id": 29771028,
"author": "Krzysztof Kuźnik",
... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8670/"
] |
112,695 | <p>One of the many things that's been lacking from my <a href="https://stackoverflow.com/questions/61553/track-your-reputation">scraper service</a> that I set up last week are pretty URLs. Right now the user parameter is being passed into the script with <em>?u=</em>, which is a symptom of a lazy hack (which the script... | [
{
"answer_id": 124021,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": " http://< tld >/update/1234\n http://< tld >/chart/1234\n Disallow /update/\n Disallow /chart/\n"
},
{
"answer_id": 1... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/658/"
] |
112,698 | <p>I thought I heard that <a href="http://www.py2exe.org/" rel="noreferrer">py2exe</a> was able to do this, but I never figured it out. Has anyone successfully done this? Can I see your setup.py file, and what command line options you used?</p>
<p>Basically I'm thinking of it giving me a single executable file that ... | [
{
"answer_id": 112708,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": -1,
"selected": false,
"text": "python setup.py py2exe"
},
{
"answer_id": 112713,
"author": "dF.",
"author_id": 3002,
"author_pro... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
112,707 | <p>Whenever I indent <code>HTML</code> in <code>PHP</code> mode, <code>emacs (22.1.1, basic install on Redaht Linux over Putty-SSH)</code> pops up a frame and tells me to get <code>MUMODE</code> or <code>somesuch</code> extra add-on. I installed <code>PHP</code> Mode without a big hassle, but I don't know how to get t... | [
{
"answer_id": 112906,
"author": "bmdhacks",
"author_id": 14032,
"author_profile": "https://Stackoverflow.com/users/14032",
"pm_score": 3,
"selected": true,
"text": "M-x nxhtml-mumamo\n"
},
{
"answer_id": 1661914,
"author": "RichieHH",
"author_id": 37370,
"author_prof... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1765/"
] |
112,721 | <p>I've got the following situation</p>
<ul>
<li>A rails application that makes use of rjs / Scriptaculous to offer AJAX functionality</li>
<li>Lot of nice javascript written using jQuery (for a separate application)</li>
</ul>
<p>I want to combine the two and use my jQuery based functionality in my Rails application... | [
{
"answer_id": 112746,
"author": "noah",
"author_id": 12034,
"author_profile": "https://Stackoverflow.com/users/12034",
"pm_score": 5,
"selected": true,
"text": "jQuery.noConflict();\n jQuery('div.foo').doSomething()\n (function($) {\n...your code here...\n})(jQuery);\n"
},
{
"an... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16779/"
] |
112,730 | <p>I have a <code>n...n</code> structure for two tables, <strong><code>makes</code></strong> and <strong><code>models</code></strong>. So far no problem.</p>
<p>In a third table (<strong><code>products</code></strong>) like:</p>
<pre><code>id
make_id
model_id
...
</code></pre>
<p>My problem is creating a view for pr... | [
{
"answer_id": 112868,
"author": "JayTee",
"author_id": 20153,
"author_profile": "https://Stackoverflow.com/users/20153",
"pm_score": 1,
"selected": false,
"text": "SELECT * FROM makes, models, products WHERE make_id = 5\n SELECT models.title FROM models \nINNER JOIN products \n ON prod... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2274/"
] |
112,738 | <p>Without spending a long time reviewing the boost source code, could someone give me a quick rundown of how boost bind is implemented? </p>
| [
{
"answer_id": 113134,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 6,
"selected": true,
"text": "bind template<class R, class F, class L> class bind_t\n{\npublic:\n\n typedef bind_t this_type;\n\n bind_t(F f... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
112,739 | <p>What is the easiest way, preferably using recursion, to find the shortest root-to-leaf path in a BST (Binary Search Tree). Java prefered, pseudocode okay.</p>
<p>Thanks!</p>
| [
{
"answer_id": 112752,
"author": "Mike Thompson",
"author_id": 2754,
"author_profile": "https://Stackoverflow.com/users/2754",
"pm_score": 2,
"selected": false,
"text": "int TreeDepth(Node* p)\n{\n return (p == NULL) ? 0 : min(TreeDepth(p->LeftChild), TreeDepth(p->RightChild)) + 1;\n}... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83819/"
] |
112,768 | <p>(ClientCookie is a module for (automatic) cookie-handling: <a href="http://wwwsearch.sourceforge.net/ClientCookie" rel="nofollow noreferrer">http://wwwsearch.sourceforge.net/ClientCookie</a>)</p>
<pre><code># I encode the data I'll be sending:
data = urllib.urlencode({'username': 'mandark', 'password': 'deedee'})
... | [
{
"answer_id": 112819,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 3,
"selected": true,
"text": "import cookielib\nimport logging\nimport sys\nimport urllib\nimport urllib2\n\ncookies = cookielib.LWPCookieJar()\nope... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
112,770 | <p>Our subversion repository has been moved to a new host, and we have old applications that connect to that host. We CANNOT add an alias for the new server with the old name, how can we re-connect our checked out clients to the new repository?</p>
| [
{
"answer_id": 112773,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "--relocate"
},
{
"answer_id": 113820,
"author": "Mauli",
"author_id": 917,
"author_profile": "https:/... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20150/"
] |
112,775 | <p>Is it possible to have a <code>MySQLi prepared statement</code> within the <code>fetch()</code> call of a previous statement? If not, what's the best way around it?</p>
<p>Example code:</p>
<pre><code>if($stmt = $link->prepare("SELECT item FROM data WHERE id = ?")) {
$stmt->bind_param("i", $id);
$stm... | [
{
"answer_id": 1675327,
"author": "peterbriers",
"author_id": 202803,
"author_profile": "https://Stackoverflow.com/users/202803",
"pm_score": 2,
"selected": false,
"text": "store_result"
},
{
"answer_id": 11923140,
"author": "Etherealone",
"author_id": 1576556,
"autho... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6305/"
] |
112,780 | <p>Okay, so I'm making a table right now for "Box Items".</p>
<p>Now, a Box Item, depending on what it's being used for/the status of the item, may end up being related to a "Shipping" box or a "Returns" box.</p>
<p>A Box Item may be defective:if it is, a flag will be set in the Box Item's row (IsDefective), and the ... | [
{
"answer_id": 112790,
"author": "Mark S.",
"author_id": 13968,
"author_profile": "https://Stackoverflow.com/users/13968",
"pm_score": 1,
"selected": false,
"text": "BoxItem:\nBoxItemID, Description, IsDefective\n\nBox:\nBoxID, Description\n\nBoxItemMap:\nBoxID, BoxItemID, BoxItemType\n"... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3068/"
] |
112,796 | <p>Is there a way to view the key/value pairs of a NSDictionary variable through the Xcode debugger? Here's the extent of information when it is fully expanded in the variable window:</p>
<pre><code>Variable Value Summary
jsonDict 0x45c540 4 key/value pairs
NSObject {...}
isa 0xa06e0720
</code></pre>
... | [
{
"answer_id": 112808,
"author": "craigb",
"author_id": 18590,
"author_profile": "https://Stackoverflow.com/users/18590",
"pm_score": 8,
"selected": true,
"text": "po NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];\n[dict setObject:@\"foo\" forKey:@\"bar\"];\n[dict setObj... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11292/"
] |
112,802 | <p>Does anyone know of an MD5/SHA1/etc routine that is easily used with GLib (i.e. you can give it a GIOChannel, etc)?</p>
| [
{
"answer_id": 112872,
"author": "Simon Buchan",
"author_id": 20135,
"author_profile": "https://Stackoverflow.com/users/20135",
"pm_score": 2,
"selected": false,
"text": "void get_channel_md5( GIOChannel* channel, unsigned char output[16] )\n{\n md5_context ctx;\n\n gint64 fileSize... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5728/"
] |
112,812 | <p>How do I access parameters passed into an Oracle Form via a URL.
Eg given the url:</p>
<blockquote>
<p><a href="http://example.com/forms90/f90servlet?config=cust&form=" rel="nofollow noreferrer">http://example.com/forms90/f90servlet?config=cust&form=</a>'a_form'&p1=something&p2=else</p>
</blockqu... | [
{
"answer_id": 113990,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 2,
"selected": true,
"text": "if :PARAMETER.p1 = 'something' then\n do_something;\nend if;\n"
}
] | 2008/09/22 | [
"https://Stackoverflow.com/questions/112812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1505600/"
] |
112,818 | <p>I am creating a standalone asp.net page that needs to be embedded into a sharepoint site using the Page Viewer Web Part. The asp.net page is published to the same server on a different port, giving me the URL to embed.</p>
<p>The requirement is that after a user is authenticated using Sharepoint authentication, th... | [
{
"answer_id": 113838,
"author": "Alex Angas",
"author_id": 6651,
"author_profile": "https://Stackoverflow.com/users/6651",
"pm_score": 4,
"selected": true,
"text": "SPContext.Current.Web.CurrentUser.LoginName\n"
}
] | 2008/09/22 | [
"https://Stackoverflow.com/questions/112818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11703/"
] |
112,831 | <p>Sometimes my c++ program crashes in debug mode, and what I got is a message box saying that an assertion failed in some of the internal memory management routines (accessing unallocated memory etc.). But I don't know where that was called from, because I didn't get any stack trace. How do I get a stack trace or at l... | [
{
"answer_id": 112888,
"author": "shoosh",
"author_id": 9611,
"author_profile": "https://Stackoverflow.com/users/9611",
"pm_score": 0,
"selected": false,
"text": "__try{} __except{}"
},
{
"answer_id": 114526,
"author": "Kris Kumler",
"author_id": 4281,
"author_profile... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11238/"
] |
112,839 | <p>What is the best way to resolve a conflict when doing a <code>git svn rebase</code>, and the git branch you are on becomes "(no-branch)"?</p>
| [
{
"answer_id": 112853,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 6,
"selected": true,
"text": "git mergetool git rebase --continue git rebase --skip"
},
{
"answer_id": 112859,
"author": "csexton",
... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19839/"
] |
112,861 | <p>According to the documentation the return value from a slot doesn't mean anything.<br>
Yet in the generated moc code I see that if a slot returns a value this value is used for something. Any idea what does it do?</p>
<hr>
<p>Here's an example of what I'm talking about. this is taken from code generated by moc. 'm... | [
{
"answer_id": 112960,
"author": "David Dibben",
"author_id": 5022,
"author_profile": "https://Stackoverflow.com/users/5022",
"pm_score": 4,
"selected": false,
"text": "bool QAbstractItemDelegate::helpEvent \n QAbstractItemView::viewportEvent\n case 8: { int _r = selectPart((*reinterpret... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9611/"
] |
112,883 | <p>I want to change the standard "3D" look of the standard asp.net checkbox to say solid 1px. If I try to apply the styling to the Border for example it does just that - draws the standard checkbox with a border around it - which is valid I guess.</p>
<p>Anyway, is there a way to change how the actual textbox is style... | [
{
"answer_id": 112898,
"author": "Dexter",
"author_id": 10717,
"author_profile": "https://Stackoverflow.com/users/10717",
"pm_score": 1,
"selected": false,
"text": "<span class=\"CheckBoxStyle\">\n <input id=\"ctl00_cphContent_cbCheckBox\" \n name=\"ctl00$cphContent$cbCheckB... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1075/"
] |
112,892 | <p>How would retrieve all customer's birthdays for a given month in SQL? What about MySQL?
I was thinking of using the following with SQL server.</p>
<pre><code>select c.name
from cust c
where datename(m,c.birthdate) = datename(m,@suppliedDate)
order by c.name
</code></pre>
| [
{
"answer_id": 112900,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 4,
"selected": true,
"text": "SELECT c.name\nFROM cust c\nWHERE (\n MONTH(c.birthdate) = MONTH(@suppliedDate)\n AND DAY(c.birthdate) = DAY(@suppliedDat... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5618/"
] |
112,897 | <p>The code currently does this and the fgetpos does handle files larger than 4GB but the seek returns an error, so any idea how to seek to the end of a <code>file > 4GB</code>?</p>
<pre><code>fpos_t currentpos;
sok=fseek(fp,0,SEEK_END);
assert(sok==0,"Seek error!");
fgetpos(fp,&currentpos);
m_filesize=curren... | [
{
"answer_id": 112913,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 2,
"selected": false,
"text": "int fgetpos64 (FILE *stream, fpos64_t *position) fpos64_t _FILE_OFFSET_BITS == 64 fgetpos"
},
{
"answer_i... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676/"
] |
112,932 | <p>I really like <strong>Araxis</strong> Merge for a graphical DIFF program for the PC. I have no idea what's available for <strong>linux</strong>, though. We're running SUSE linux on our z800 mainframe.
I'd be most grateful if I could get a few pointers to what programs everyone else likes.</p>
| [
{
"answer_id": 113328,
"author": "Sridhar Iyer",
"author_id": 13820,
"author_profile": "https://Stackoverflow.com/users/13820",
"pm_score": 6,
"selected": false,
"text": "vim -d file1 file2"
}
] | 2008/09/22 | [
"https://Stackoverflow.com/questions/112932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20158/"
] |
112,946 | <p>I'm using C++ and accessing a UNC path across the network. This path is slightly greater than MAX_PATH. So I cannot obtain a file handle.</p>
<p>But if I run the program on the computer in question, the path is not greater than MAX_PATH. So I can get a file handle. If I rename the file to have less characters (m... | [
{
"answer_id": 112961,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "\\\\?\\ MAX_PATH \\\\?\\unc\\server\\share\\path\\file \\\\?\\unc\\"
}
] | 2008/09/22 | [
"https://Stackoverflow.com/questions/112946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
112,964 | <p>Ubuntu has 8 run levels (0-6 and S), I want to add the run level 7.</p>
<p>I have done the following:</p>
<p>1.- Created the folder <strong>/etc/rc7.d/</strong>, which contains some symbolic links to <strong>/etc/init.d/</strong></p>
<p>2.- Created the file <strong>/etc/event.d/rc7</strong> This is its content:</... | [
{
"answer_id": 113026,
"author": "Michael Johnson",
"author_id": 17688,
"author_profile": "https://Stackoverflow.com/users/17688",
"pm_score": 0,
"selected": false,
"text": "/etc/inittab"
}
] | 2008/09/22 | [
"https://Stackoverflow.com/questions/112964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7852/"
] |
112,970 | <p>What's the difference between <code>file</code> and <code>open</code> in Python? When should I use which one? (Say I'm in 2.5)</p>
| [
{
"answer_id": 112980,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 8,
"selected": true,
"text": "open() file()"
},
{
"answer_id": 112982,
"author": "dF.",
"author_id": 3002,
"author_profile": "https://... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
112,977 | <p>I want to implement Generics in my Page Class like :</p>
<pre><code>Public Class MyClass(Of TheClass)
Inherits System.Web.UI.Page
</code></pre>
<p>But for this to work, I need to be able to instantiate the Class (with the correct Generic Class Type) and load the page, instead of a regular Response.Redirect. Is the... | [
{
"answer_id": 113080,
"author": "Costo",
"author_id": 1130,
"author_profile": "https://Stackoverflow.com/users/1130",
"pm_score": 2,
"selected": false,
"text": "Partial Public Class MyPage\n Inherits MyGenericBasePage(Of MyType)\n\nEnd Class\n\nPublic Class MyGenericBasePage(Of T As ... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
112,983 | <p>I want to display data like the following:</p>
<pre><code> Title Subject Summary Date
</code></pre>
<p>So my <code>HTML</code> looks like:</p>
<pre><code><div class="title"></div>
<div class="subject"></div>
<div class="summary"></div>
<div class="date"></div... | [
{
"answer_id": 112997,
"author": "Matthew Encinas",
"author_id": 14433,
"author_profile": "https://Stackoverflow.com/users/14433",
"pm_score": 0,
"selected": false,
"text": "<ul class=\"headers\">\n <li>Title</li>\n <li>Subject</li>\n <li>Summary</li>\n <li>Date</li>\n</ul>\n"
},
... | 2008/09/22 | [
"https://Stackoverflow.com/questions/112983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
113,024 | <p>Im trying to put an html embed code for a flash video into the <code>rss feed</code>, which will then be parser by a parser <code>(magpie)</code> on my other site. How should I encode the embed code on one side, and then decode it on the other so I can insert clean html into the <code>DB</code> on the receiving serv... | [
{
"answer_id": 10395520,
"author": "vdboor",
"author_id": 146289,
"author_profile": "https://Stackoverflow.com/users/146289",
"pm_score": 0,
"selected": false,
"text": "django.contrib.syndication"
}
] | 2008/09/22 | [
"https://Stackoverflow.com/questions/113024",
"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.