qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
108,104 | <p>Once again one of those: "Is there an easier built-in way of doing things instead of my helper method?"</p>
<p>So it's easy to get the underlying type from a nullable type, but how do I get the nullable version of a .NET type?</p>
<p>So I have</p>
<pre><code>typeof(int)
typeof(DateTime)
System.Type t = something;... | [
{
"answer_id": 108122,
"author": "Alex Lyman",
"author_id": 5897,
"author_profile": "https://Stackoverflow.com/users/5897",
"pm_score": 8,
"selected": true,
"text": "Type GetNullableType(Type type) {\n // Use Nullable.GetUnderlyingType() to remove the Nullable<T> wrapper if type is al... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5790/"
] |
108,134 | <p>I am using <code>pyexcelerator</code> Python module to generate Excel files.
I want to apply bold style to part of cell text, but not to the whole cell.
How to do it?</p>
| [
{
"answer_id": 108204,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 2,
"selected": false,
"text": "With Worksheets(\"Sheet1\").Range(\"B1\")\n .Value = \"New Title\"\n .Characters(5, 5).Font.Bold = True\nEnd With\n"
},... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19607/"
] |
108,149 | <p>I know that it's possible to replace the browse button, which is generated in html, when you use <code>input</code> tag with <code>type="file</code>.</p>
<p>I'm not sure what is the best way, so if someone has experience with this please contribute. </p>
| [
{
"answer_id": 108176,
"author": "Dan",
"author_id": 17121,
"author_profile": "https://Stackoverflow.com/users/17121",
"pm_score": 3,
"selected": false,
"text": "<input type=\"file\" id=\"fileInput\">\n<img src=\"...\">\n #fileInput{\n position: absolute;\n opacity: 0;\n -moz-op... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16039/"
] |
108,169 | <p>Given a list, how would I select a new list, containing a slice of the original list (Given offset and number of elements) ?</p>
<h3>EDIT:</h3>
<p>Good suggestions so far. Isn't there something specified in one of the SRFI's? This appears to be a very fundamental thing, so I'm surprised that I need to implement it i... | [
{
"answer_id": 108248,
"author": "dsm",
"author_id": 7780,
"author_profile": "https://Stackoverflow.com/users/7780",
"pm_score": 4,
"selected": true,
"text": "(define get-n-items\n (lambda (lst num)\n (if (> num 0)\n (cons (car lst) (get-n-items (cdr lst) (- num 1)))... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18180/"
] |
108,183 | <p>I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command and (depending on the command) sends a reply.</p>
<p>The problem is that the client may have no interest in the answer and sometimes exits early. So writing to that socket will cause a <code>SIGPIPE</code> a... | [
{
"answer_id": 108192,
"author": "dvorak",
"author_id": 19235,
"author_profile": "https://Stackoverflow.com/users/19235",
"pm_score": 9,
"selected": true,
"text": "SIGPIPE SIGPIPE SIG_IGN SIGPIPE SIGPIPE signal(SIGPIPE, SIG_IGN);\n send() MSG_NOSIGNAL SIGPIPE MSG_NOSIGNAL SO_SIGNOPIPE se... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12523/"
] |
108,193 | <pre><code>class Tag(models.Model):
name = models.CharField(maxlength=100)
class Blog(models.Model):
name = models.CharField(maxlength=100)
tags = models.ManyToManyField(Tag)
</code></pre>
<p>Simple models just to ask my question.</p>
<p>I wonder how can i query blogs using tags in two different ways.</p>
<u... | [
{
"answer_id": 108404,
"author": "Clint Ecker",
"author_id": 13668,
"author_profile": "https://Stackoverflow.com/users/13668",
"pm_score": 6,
"selected": true,
"text": "# Blogs who have either hockey or django tags.\nfrom django.db.models import Q\nBlog.objects.filter(\n Q(tags__name_... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12785/"
] |
108,200 | <p>I need to store the timezone an email was sent from. Which is the best way to extract it from the email's 'Date:' header (an RFC822 date)? And what is the recommended format to store it in the database (I'm using hibernate)?</p>
| [
{
"answer_id": 108239,
"author": "Richard Harrison",
"author_id": 19624,
"author_profile": "https://Stackoverflow.com/users/19624",
"pm_score": 1,
"selected": false,
"text": "DateTimeFormatter parser2 = ISODateTimeFormat.dateTimeNoMillis();\nSystem.out.println(parser2.parseDateTime(your_... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15231/"
] |
108,207 | <p>I want the search box on my web page to display the word "Search" in gray italics. When the box receives focus, it should look just like an empty text box. If there is already text in it, it should display the text normally (black, non-italics). This will help me avoid clutter by removing the label.</p>
<p>BTW, thi... | [
{
"answer_id": 108218,
"author": "levik",
"author_id": 4465,
"author_profile": "https://Stackoverflow.com/users/4465",
"pm_score": 4,
"selected": false,
"text": "onfocus onblur <input type=\"text\" class=\"hint\" value=\"Search...\"\n onfocus=\"if (this.className=='hint') { this.class... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7668/"
] |
108,211 | <p>I want to add a <em>column</em> to an existing legacy <em>database</em> and write a <em>procedure</em> by which I can assign each record a different value. Something like adding a <em>column</em> and autogenerate the data for it.</p>
<p>Like, if I add a new <em>column</em> called "ID" (number) I want to then initia... | [
{
"answer_id": 108227,
"author": "Simon Johnson",
"author_id": 854,
"author_profile": "https://Stackoverflow.com/users/854",
"pm_score": 9,
"selected": true,
"text": "alter table Example\nadd NewColumn int identity(1,1)\n"
},
{
"answer_id": 108237,
"author": "Roy Tang",
"... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/384/"
] |
108,251 | <p>On my VPS server (Fedora 9), mingetty keeps respawning itself because of a "permission denied" error on tty[1-6], even though:</p>
<pre>
root# ls -la /dev/tty1
crw------- 1 root root 4, 1 Sep 19 14:22 /dev/tty1
</pre>
<p>Even weirder, this doesn't work:</p>
<pre>
root# cat </dev/tty1
bash: /dev/tty1: Permissio... | [
{
"answer_id": 172441,
"author": "ADEpt",
"author_id": 10105,
"author_profile": "https://Stackoverflow.com/users/10105",
"pm_score": 1,
"selected": false,
"text": "strace -f -o LOG bash -c 'cat < /dev/tty1'\n"
},
{
"answer_id": 8039115,
"author": "Ryaner",
"author_id": 99... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19627/"
] |
108,276 | <p>I have a project with a bunch of external sounds to a SWF. I want to play them, but any time I attempt load a new URL into the sound object it fails with either,</p>
<blockquote>
<p>Error #2068: Invalid Sound</p>
</blockquote>
<p>or raises an ioError with </p>
<blockquote>
<p>Error #2032 Stream Error</p>
</b... | [
{
"answer_id": 111372,
"author": "defmeta",
"author_id": 10875,
"author_profile": "https://Stackoverflow.com/users/10875",
"pm_score": 3,
"selected": true,
"text": "soundTest/assets/song.mp3 soundTest/swfs/soundTest.swf var path:String = \"../assets/song.mp3\";"
},
{
"answer_id":... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14747/"
] |
108,281 | <p>I have a table <code>y</code> Which has two columns <code>a</code> and <code>b</code></p>
<p>Entries are:</p>
<pre><code>a b
1 2
1 3
1 4
0 5
0 2
0 4
</code></pre>
<p>I want to get 2,3,4 if I search column <code>a</code> for 1, and 5,2,4 if I search column <code>a</code>.</p>
<p>So, if I searc... | [
{
"answer_id": 108607,
"author": "CindyH",
"author_id": 12897,
"author_profile": "https://Stackoverflow.com/users/12897",
"pm_score": 0,
"selected": false,
"text": "create proc GetRealElseGetDefault (@key as int)\nas\nbegin\n\n-- Use this default if the correct data is not found\ndeclare... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/144/"
] |
108,292 | <p>When developing an application that sends out notification email messages, what are the best practices for </p>
<ol>
<li>not getting flagged as a spammer by your hosting company. (Cover any of:)
<ul>
<li>best technique for not flooding a mail server</li>
<li>best mail server products, if you were to set up your o... | [
{
"answer_id": 112607,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 4,
"selected": true,
"text": "From: me@me.com\nReturn-Path: me@me.com\nReply-To: auto@myapp.com\n"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/108292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16099/"
] |
108,301 | <p>I was going to ask what the best way to do this is, but then decided I should ask whether or not it is even necessary. I have never seen it done in <code>JSP</code> development, but it appears to be common practice in <code>PHP</code>. What is the reasoning behind this, and if I do not protect against this, what els... | [
{
"answer_id": 110026,
"author": "Nathan Strong",
"author_id": 9780,
"author_profile": "https://Stackoverflow.com/users/9780",
"pm_score": 4,
"selected": true,
"text": "http://site.com/script.php?hello=world&foo=bar\n"
},
{
"answer_id": 110770,
"author": "troelskn",
"auth... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
108,318 | <p>I need a function like this:</p>
<pre><code>// return true if 'n' is a power of 2, e.g.
// is_power_of_2(16) => true
// is_power_of_2(3) => false
bool is_power_of_2(int n);
</code></pre>
<p>Can anyone suggest how I could write this?</p>
| [
{
"answer_id": 108329,
"author": "Adam Wright",
"author_id": 1200,
"author_profile": "https://Stackoverflow.com/users/1200",
"pm_score": 6,
"selected": false,
"text": "bool powerOfTwo = !(x == 0) && !(x & (x - 1));\n"
},
{
"answer_id": 108338,
"author": "Rob Wells",
"auth... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19641/"
] |
108,320 | <p>What is the purpose of the code behind view file in ASP.NET MVC besides setting of the generic parameter of ViewPage ?</p>
| [
{
"answer_id": 108349,
"author": "Casper",
"author_id": 18729,
"author_profile": "https://Stackoverflow.com/users/18729",
"pm_score": 2,
"selected": false,
"text": "ViewPage<Model>\n"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/108320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19268/"
] |
108,346 | <p>Something i've never really done before, but what is the best way to make sure that any external assemblies/dll's that my application uses are available, and possibly the correct version.</p>
<p>I wrote an app that relies on the System.Data.SQLite.dll, i went to test it on a machine where that dll was missing, and ... | [
{
"answer_id": 108378,
"author": "Josh",
"author_id": 11702,
"author_profile": "https://Stackoverflow.com/users/11702",
"pm_score": 2,
"selected": true,
"text": "Try\n Assembly.Load(\"System.Data.SQLite, Version=1.0.22.0, Culture=neutral, PublicKeyToken=DB937BC2D44FF139\");\nCatch ex ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19638/"
] |
108,387 | <p>What are some good ways to do this? Is it even possible to do cleanly? </p>
<p>Ideally I'd like to use packet headers to decide which server should handle requests. However, if there is an easier/better way let me know.</p>
| [
{
"answer_id": 108397,
"author": "Micky McQuade",
"author_id": 12908,
"author_profile": "https://Stackoverflow.com/users/12908",
"pm_score": 5,
"selected": false,
"text": "httpcfg.exe net stop http /y httpcfg set iplisten -i 192.168.1.253 httpcfg query iplisten net start w3svc"
},
{
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
108,389 | <pre><code>class MyContainedClass {
};
class MyClass {
public:
MyContainedClass * getElement() {
// ...
std::list<MyContainedClass>::iterator it = ... // retrieve somehow
return &(*it);
}
// other methods
private:
std::list<MyContainedClass> m_contained;
};
</code></pre>
<p>Though ... | [
{
"answer_id": 108467,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https://Stackoverflow.com/users/14089",
"pm_score": 1,
"selected": false,
"text": "const setElement const MyContainedClass * getElement() const {\n // ...\n std::list<MyContainedClass>::const_ite... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14535/"
] |
108,396 | <p>I am using Fluent NHibernate and having some issues getting a many to many relationship setup with one of my classes. It's probably a stupid mistake but I've been stuck for a little bit trying to get it working. Anyways, I have a couple classes that have Many-Many relationships. </p>
<pre><code>public class Person
... | [
{
"answer_id": 108864,
"author": "emeryc",
"author_id": 3900,
"author_profile": "https://Stackoverflow.com/users/3900",
"pm_score": 0,
"selected": false,
"text": "Context hibContext //Built here\nTransaction hibTrans //build and start the transaction.\n\nPerson p1 = new Person()\nGroups ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1385358/"
] |
108,399 | <p>I'm looking for embedded database engine supporting <a href="http://msdn.microsoft.com/en-us/library/3ak841sy(VS.80).aspx" rel="nofollow noreferrer">isolating storage</a>. Currently I'm aware of VistaDB. What else you can recommend?</p>
<p>Requirements are pretty simple:</p>
<ul>
<li>xcopy deployment </li>
<li>su... | [
{
"answer_id": 152769,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 1,
"selected": false,
"text": "uSQLstPoll() uSQLst"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/108399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1196/"
] |
108,403 | <p>Assume a table structure of <code>MyTable(KEY, datafield1, datafield2...)</code>.</p>
<p>Often I want to either update an existing record, or insert a new record if it doesn't exist.</p>
<p>Essentially:</p>
<pre><code>IF (key exists)
run update command
ELSE
run insert command
</code></pre>
<p>What's the best... | [
{
"answer_id": 108410,
"author": "Esteban Araya",
"author_id": 781,
"author_profile": "https://Stackoverflow.com/users/781",
"pm_score": 6,
"selected": false,
"text": "IF EXISTS (SELECT * FROM [Table] WHERE ID = rowID)\nUPDATE [Table] SET propertyOne = propOne, property2 . . .\nELSE\nINS... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18907/"
] |
108,405 | <p>It's really annoying that visual studio hides typos in aspx pages (not the code behind).
If the compiler would compile them, I would get a compile error.</p>
| [
{
"answer_id": 8825115,
"author": "Alex Rouillard",
"author_id": 274879,
"author_profile": "https://Stackoverflow.com/users/274879",
"pm_score": 4,
"selected": false,
"text": "%windir%\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_compiler.exe -v / -p \"$(SolutionDir)$(ProjectName)\"\n... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13376/"
] |
108,439 | <p>I'm looking to get the result of a command as a variable in a Windows batch script (see <a href="https://stackoverflow.com/questions/58207/using-the-result-of-a-command-as-an-argument-in-bash#58214">how to get the result of a command in bash</a> for the bash scripting equivalent). A solution that will work in a .ba... | [
{
"answer_id": 108465,
"author": "Ilya Kochetov",
"author_id": 15329,
"author_profile": "https://Stackoverflow.com/users/15329",
"pm_score": 3,
"selected": false,
"text": "SET /P Set /P\n _MyVar=<MyFilename.txt _MyVar MyFilename.txt myCmd > tmp.txt set\n /P myVar=<tmp.txt"
},
{
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535/"
] |
108,443 | <p>I'm planning to create a data structure optimized to hold assembly code. That way I can be totally responsible for the optimization algorithms that will be working on this structure. If I can compile while running. It will be kind of dynamic execution. Is this possible? Have any one seen something like this?</p>
<p... | [
{
"answer_id": 108493,
"author": "Nils Pipenbrinck",
"author_id": 15955,
"author_profile": "https://Stackoverflow.com/users/15955",
"pm_score": 3,
"selected": false,
"text": "unsigned int isqrt32 (unsigned int value) \n{\n unsigned int g = 0;\n unsigned int bshift = 15;\n unsign... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15054/"
] |
108,461 | <p>I have a small gallery of thumbnails. When I place my mouse pointer over a thumbnail image I'd like to have a full size image pop up in a div in the top right of the screen. I've seen this done using just CSS and I'd like to go down that route rather than use javascript if possible.</p>
| [
{
"answer_id": 108496,
"author": "Jesse Millikan",
"author_id": 7526,
"author_profile": "https://Stackoverflow.com/users/7526",
"pm_score": 4,
"selected": true,
"text": "<a href=\"#\">Text <img class=\"popup\" src=\"pic.gif\" /></a>\n a img.popup { display: none }\n a:hover img.popup { d... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18748/"
] |
108,523 | <p>I've been using a small class to emulate Enums in some Python projects. Is there a better way or does this make the most sense for some situations?</p>
<p>Class code here:</p>
<pre><code>class Enum(object):
'''Simple Enum Class
Example Usage:
>>> codes = Enum('FOO BAR BAZ') # codes.BAZ will be 2 and so on... | [
{
"answer_id": 108549,
"author": "tsg",
"author_id": 15685,
"author_profile": "https://Stackoverflow.com/users/15685",
"pm_score": 2,
"selected": false,
"text": "(FOO, BAR, BAZ) = range(3)\n"
},
{
"answer_id": 108556,
"author": "Charles Duffy",
"author_id": 14122,
"au... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9127/"
] |
108,558 | <p>Can a cookie be shared between two sites on the same top level domain? Say <code>www.example.com</code> and <code>secure.example.com</code> ?
We are looking into implementing a cache for non-secure content, and need to segregate secure content to another domain.
What parameters does the cookie need? I'm using asp.ne... | [
{
"answer_id": 108569,
"author": "Rich Bradshaw",
"author_id": 16511,
"author_profile": "https://Stackoverflow.com/users/16511",
"pm_score": 6,
"selected": true,
"text": "Response.Cookies(\"UID\").Domain = \".myserver.com\"\n"
},
{
"answer_id": 108681,
"author": "Jess Chadwic... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7277/"
] |
108,567 | <p>I have a SVN structure like this:</p>
<pre><code>/Projects
/Project1
/Project2
/someFolder
/Project3
/Project4
</code></pre>
<p>I would like to move all the projects into the /Projects folder, which means I want to move Projects 3 and 4 from /someFolder into the /projects folder.</p>
<p>The caveat... | [
{
"answer_id": 108583,
"author": "Apocalisp",
"author_id": 3434,
"author_profile": "https://Stackoverflow.com/users/3434",
"pm_score": 7,
"selected": true,
"text": "svn help rename\n"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/108567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
108,586 | <p>Data: a dependency list, already verified to be acyclic. So here, 'a' depends on 'b','c' (c depends on d), etc... </p>
<pre><code>A = { 'a' : dict(b=1, c=1),
'c' : dict(d=1),
'd' : dict(e=1,f=1,g=1),
'h' : dict(j=1)
}
</code></pre>
<p>I'd like to have a top-down, recursive solution to let's say... | [
{
"answer_id": 108606,
"author": "freespace",
"author_id": 8297,
"author_profile": "https://Stackoverflow.com/users/8297",
"pm_score": 3,
"selected": true,
"text": "#!/usr/bin/env python\n\ndef get_all(D, k):\n yield k\n for ii in D.get(k, []):\n for jj in get_all(D, ii):\n ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15842/"
] |
108,598 | <p>Considering the following architecture:</p>
<ul>
<li>a base object 'Entity'</li>
<li>a derived object 'Entry:Base'</li>
<li>and a further derived object 'CancelledEntry:Entry'</li>
</ul>
<p>In EntitySQL I can write the following: </p>
<pre><code>[...] where it is of (only MyEntities.Entry) [...]
</code></pre>
<p... | [
{
"answer_id": 108644,
"author": "ADB",
"author_id": 3610,
"author_profile": "https://Stackoverflow.com/users/3610",
"pm_score": 1,
"selected": false,
"text": "EntityContext.EntitySet.OfType<Entry>().Where( obj => !(obj is CancelledEntry) )\n"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/108598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3610/"
] |
108,650 | <p>I'm struggling with a problem with the Script.aculo.us Autocompleter control in IE (I've tried it in IE6 & 7). The suggestions fail to appear for the first character is entered into the text box after the page has been loaded. After that initial failure, the control works as it should.</p>
<p>I've verified that... | [
{
"answer_id": 120572,
"author": "Nick Higgs",
"author_id": 3187,
"author_profile": "https://Stackoverflow.com/users/3187",
"pm_score": 1,
"selected": false,
"text": "new Ajax.Autocompleter(textInputId, suggestionsHolderId, suggestionsUrl, params);\n\n//Hack\nEvent.observe(window, 'load'... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3187/"
] |
108,687 | <p>I want to create a box shape and I am having trouble.
I want the box to have a background color, and then different color inside the box.<br>
The box will then have a list of items using ul and li, and each list item will have a background of white, and the list item's background color is too stretch the entire dist... | [
{
"answer_id": 108708,
"author": "Mike Tunnicliffe",
"author_id": 13956,
"author_profile": "https://Stackoverflow.com/users/13956",
"pm_score": 2,
"selected": false,
"text": "<div class=\"panel\">\n <div>Some other stuff</div>\n <ul>\n <li>Item 1</li>\n <li>Item 2</li>\n </ul>\n... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
108,692 | <p>There is a well-known debate in Java (and other communities, I'm sure) whether or not trivial getter/setter methods should be tested. Usually, this is with respect to code coverage. Let's agree that this is an open debate, and not try to answer it here.</p>
<p>There have been several blog posts on using Java refle... | [
{
"answer_id": 109871,
"author": "Kevin Wong",
"author_id": 4792,
"author_profile": "https://Stackoverflow.com/users/4792",
"pm_score": 4,
"selected": true,
"text": "assertRefEquals"
},
{
"answer_id": 114145,
"author": "Daniel Fanjul",
"author_id": 16135,
"author_prof... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12704/"
] |
108,699 | <p>Is there a good object-relational-mapping library for PHP? </p>
<p>I know of <a href="http://www.php.net/manual/en/intro.pdo.php" rel="noreferrer">PDO</a>/ADO, but they seem to only provide abstraction of differences between database vendors not an actual mapping between the domain model and the relational model. I... | [
{
"answer_id": 795897,
"author": "Olivier Lalonde",
"author_id": 96855,
"author_profile": "https://Stackoverflow.com/users/96855",
"pm_score": 3,
"selected": false,
"text": "<?php \n$object = $dorm->getClassName('id_here');\n$dorm->save($object);\n$dorm->delete($object);\n"
},
{
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2327/"
] |
108,728 | <p>I am redesigning a command line application and am looking for a way to make its use more intuitive. Are there any conventions for the format of parameters passed into a command line application? Or any other method that people have found useful?</p>
| [
{
"answer_id": 108738,
"author": "Graviton",
"author_id": 3834,
"author_profile": "https://Stackoverflow.com/users/3834",
"pm_score": 0,
"selected": false,
"text": "YourApp.exe -file %YourProject.prj% -Secure true\n"
},
{
"answer_id": 108744,
"author": "Bill",
"author_id"... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2064/"
] |
108,768 | <p>I got a comment to my answer on this thread:</p>
<p><a href="https://stackoverflow.com/questions/105477">Malloc inside a function call appears to be getting freed on return?</a></p>
<p>In short I had code like this:</p>
<pre><code>int * somefunc (void)
{
int * temp = (int*) malloc (sizeof (int));
temp[0] = 0;... | [
{
"answer_id": 108781,
"author": "freespace",
"author_id": 8297,
"author_profile": "https://Stackoverflow.com/users/8297",
"pm_score": 5,
"selected": true,
"text": "stdlib.h malloc int TYPE * p;\np = (TYPE *)malloc(n*sizeof(TYPE));\n p TYPe TYPE p = malloc(sizeof(*p)*n); p malloc malloc"... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15955/"
] |
108,807 | <p>I have an application where a user has to remember and insert an unix timestamp like 1221931027. In order to make it easier to remember the key I like to reduce the number of characters to insert through allowing the characters [a-z]. So I'm searching for an algorithm to convert the timestamp to a shorter alphanum v... | [
{
"answer_id": 108990,
"author": "Thom Boyer",
"author_id": 19725,
"author_profile": "https://Stackoverflow.com/users/19725",
"pm_score": 2,
"selected": false,
"text": "#include <time.h>\n#include <stdio.h>\n\n// tobase36() returns a pointer to static storage which is overwritten by \n//... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
108,813 | <p>How can I Handler 404 errors without the framework throwing an Exception 500 error code?</p>
| [
{
"answer_id": 108830,
"author": "dave",
"author_id": 14355,
"author_profile": "https://Stackoverflow.com/users/14355",
"pm_score": 5,
"selected": true,
"text": "routes.MapRoute(\"Error\", \n \"{*url}\", \n new { controller = \"Error\", action = \"Http404\" ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19710/"
] |
108,819 | <p>What is the best way to randomize an array of strings with .NET? My array contains about 500 strings and I'd like to create a new <code>Array</code> with the same strings but in a random order.</p>
<p>Please include a C# example in your answer.</p>
| [
{
"answer_id": 108831,
"author": "stimms",
"author_id": 361,
"author_profile": "https://Stackoverflow.com/users/361",
"pm_score": 2,
"selected": false,
"text": "for i = 0 -> i= array.length * 5\n swap two strings in random places\n"
},
{
"answer_id": 108835,
"author": "Skli... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16440/"
] |
108,822 | <p>I would like to wipe out all data for a specific kind in Google App Engine. What is the
best way to do this?
I wrote a delete script (hack), but since there is so much data is
timeout's out after a few hundred records. </p>
| [
{
"answer_id": 108939,
"author": "Jason Etheridge",
"author_id": 2193,
"author_profile": "https://Stackoverflow.com/users/2193",
"pm_score": 3,
"selected": false,
"text": "# Deleting all messages older than \"earliest_date\"\nq = db.GqlQuery(\"SELECT * FROM Message WHERE create_date < :1... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8548/"
] |
108,848 | <p>I'm looking at writing a little drum machine in Python for fun. I've googled some and found the python pages on <a href="http://wiki.python.org/moin/PythonInMusic" rel="nofollow noreferrer">music</a> and <a href="http://wiki.python.org/moin/Audio/" rel="nofollow noreferrer">basic audio</a> as well as a StackOverflo... | [
{
"answer_id": 108936,
"author": "tim.tadh",
"author_id": 14107,
"author_profile": "https://Stackoverflow.com/users/14107",
"pm_score": 3,
"selected": false,
"text": "import pymedia\nimport time\n\ndemuxer = pymedia.muxer.Demuxer('mp3') #this thing decodes the multipart file i call it a ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145/"
] |
108,853 | <p>I have some code in a javascript file that needs to send queries back to the server. The question is, how do I find the url for the script that I am in, so I can build a proper request url for ajax.</p>
<p>I.e., the same script is included on <code>/</code>, <code>/help</code>, <code>/whatever</code>, and so on, wh... | [
{
"answer_id": 108860,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 2,
"selected": false,
"text": "document.location.href"
},
{
"answer_id": 108894,
"author": "John Millikin",
"author_id": 3560,
"aut... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3355/"
] |
108,866 | <p>Is there a version of memset() which sets a value that is larger than 1 byte (char)? For example, let's say we have a memset32() function, so using it we can do the following:</p>
<pre><code>int32_t array[10];
memset32(array, 0xDEADBEEF, sizeof(array));
</code></pre>
<p>This will set the value 0xDEADBEEF in all th... | [
{
"answer_id": 108876,
"author": "Alex M",
"author_id": 9652,
"author_profile": "https://Stackoverflow.com/users/9652",
"pm_score": 3,
"selected": false,
"text": "wmemset(3)"
},
{
"answer_id": 108884,
"author": "moonshadow",
"author_id": 11834,
"author_profile": "http... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7748/"
] |
108,892 | <p>Basically, growl notifications (or other callbacks) when tests break or pass. <strong>Does anything like this exist?</strong></p>
<p>If not, it should be pretty easy to write.. Easiest way would be to..</p>
<ol>
<li>run <code>python-autotest myfile1.py myfile2.py etc.py</code>
<ul>
<li>Check if files-to-be-monito... | [
{
"answer_id": 108934,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": 2,
"selected": false,
"text": "trace >>> def y(a): return a*a\n>>> def x(a): return y(a)\n>>> import trace\n>>> tracer = trace.Trace(countfuncs = 1)\... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
108,900 | <p>How do I go about programmatically updating the FILEVERSION string in an MFC app? I have a build process that I use to generate a header file which contains the SVN rev for a given release. I'm using SvnRev from <a href="http://www.compuphase.com/svnrev.htm" rel="nofollow noreferrer">http://www.compuphase.com/svnrev... | [
{
"answer_id": 109026,
"author": "prakash",
"author_id": 123,
"author_profile": "https://Stackoverflow.com/users/123",
"pm_score": 0,
"selected": false,
"text": "VS_VERSION_INFO #define SVN_VERSION_NO xxx\n"
},
{
"answer_id": 109050,
"author": "cjm",
"author_id": 8355,
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17259/"
] |
108,938 | <p>Rails comes with a handy session hash into which we can cram stuff to our heart's content. I would, however, like something like ASP's application context, which instead of sharing data only within a single session, will share it with all sessions in the same application. I'm writing a simple dashboard app, and woul... | [
{
"answer_id": 117610,
"author": "Patrick McKenzie",
"author_id": 15046,
"author_profile": "https://Stackoverflow.com/users/15046",
"pm_score": 4,
"selected": true,
"text": "@@arbitrary_name ||= Model.find_by_stupidly_long_query(param)\n"
},
{
"answer_id": 2733368,
"author": ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2041950/"
] |
108,940 | <p>I am trying to evaluate the answer <a href="https://stackoverflow.com/questions/108081/are-there-any-high-level-easy-to-install-gui-libraries-for-common-lisp">provided here</a>, and am getting the error: <code>"A file with name ASDF-INSTALL does not exist"</code> when using clisp:</p>
<pre><code>dsm@localhost:~$ cl... | [
{
"answer_id": 109028,
"author": "Attila Lendvai",
"author_id": 14464,
"author_profile": "https://Stackoverflow.com/users/14464",
"pm_score": 2,
"selected": false,
"text": "(require :asdf)\n"
},
{
"answer_id": 109253,
"author": "FlinkmanSV",
"author_id": 15054,
"autho... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7780/"
] |
108,971 | <p>We have two versions of a managed C++ assembly, one for x86 and one for x64. This assembly is called by a .net application complied for AnyCPU. We are deploying our code via a file copy install, and would like to continue to do so.</p>
<p>Is it possible to use a Side-by-Side assembly manifest to loading a x86 or ... | [
{
"answer_id": 156024,
"author": "Milan Gardian",
"author_id": 23843,
"author_profile": "https://Stackoverflow.com/users/23843",
"pm_score": 7,
"selected": true,
"text": "(cmd.exe)\nC:\nmkdir \\TEMP\\CrossPlatformTest\ncd \\TEMP\\CrossPlatformTest\n // file 'library.cs' in C:\\TEMP\\Cros... | 2008/09/20 | [
"https://Stackoverflow.com/questions/108971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6156/"
] |
109,000 | <p>My C application uses 3rd libraries, which do their own memory management.
In order to be robust, my application has code to deal with failures of library functions due to lack of free memory.</p>
<p>I would like to test this code, and for this, I need to simulate failures due to lack of memory.</p>
<p>What tool/s... | [
{
"answer_id": 109008,
"author": "terminus",
"author_id": 9232,
"author_profile": "https://Stackoverflow.com/users/9232",
"pm_score": 2,
"selected": false,
"text": "#define malloc(s) (my_malloc(s))\n #include \"memhook.h\"\n#undef malloc\n#include <stdlib.h>\n"
},
{
"answer_id... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11886/"
] |
109,023 | <p>8 bits representing the number 7 look like this:</p>
<pre><code>00000111
</code></pre>
<p>Three bits are set.</p>
<p>What are the algorithms to determine the number of set bits in a 32-bit integer?</p>
| [
{
"answer_id": 109025,
"author": "Matt Howells",
"author_id": 16881,
"author_profile": "https://Stackoverflow.com/users/16881",
"pm_score": 11,
"selected": true,
"text": "popcnt std::popcount() std::bitset<32>::count() int numberOfSetBits(uint32_t i)\n{\n // Java: use int, and use >>... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16881/"
] |
109,027 | <p>I need to display many pages of news in a site. Should I do the pagination in the database query using <code>LIMIT</code> or with the PHP script after getting all the results?</p>
| [
{
"answer_id": 421587,
"author": "Rob",
"author_id": 3542,
"author_profile": "https://Stackoverflow.com/users/3542",
"pm_score": 1,
"selected": false,
"text": "LIMIT WHERE --- First page (showing first 50 records)\nSELECT * FROM people ORDER BY id LIMIT 50\n--- Second page\nSELECT * FROM... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13116/"
] |
109,032 | <p>I have a <strong>RichTextBox</strong> control on my form. I also have this button, labeled <strong>Bold</strong>, that I want, if someone selects text in the <strong>RichTextBox</strong>, then presses the button, <strong>the selected text turns bold.</strong> Any way to do that? Simple, everyday task for end users. ... | [
{
"answer_id": 421587,
"author": "Rob",
"author_id": 3542,
"author_profile": "https://Stackoverflow.com/users/3542",
"pm_score": 1,
"selected": false,
"text": "LIMIT WHERE --- First page (showing first 50 records)\nSELECT * FROM people ORDER BY id LIMIT 50\n--- Second page\nSELECT * FROM... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
109,064 | <p>Could you recommend me a way to place a coundown timer on ASP.NET page?</p>
<p>Now I use this code:</p>
<p><strong>Default.aspx</strong></p>
<pre><code><asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTempla... | [
{
"answer_id": 109096,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 2,
"selected": false,
"text": "<form name=\"counter\"><input type=\"text\" size=\"8\" \nname=\"d2\"></form> \n\n<script> \n<!-- \n// \n var milisec=0 \n va... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
109,066 | <p>I found this guide for using the flash parameters, thought it might be useful to post here, since Flash CS3 lacks a usage example for reading these parameters.</p>
<p>See answers for the link</p>
| [
{
"answer_id": 109067,
"author": "Eliram",
"author_id": 18790,
"author_profile": "https://Stackoverflow.com/users/18790",
"pm_score": 1,
"selected": false,
"text": "var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;\n"
},
{
"answer_id": 132047,
"author": "enob... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18790/"
] |
109,072 | <p>Is there anything out there (for Java specifically) that allow you to automatically test the behavior of an interface? As an example, let's say I have a bunch of tests for the Comparable interface, that should apply to anything that implements Comparable. What I'd like is to be able to include "ComparableTests" auto... | [
{
"answer_id": 109132,
"author": "wprl",
"author_id": 17847,
"author_profile": "https://Stackoverflow.com/users/17847",
"pm_score": 0,
"selected": false,
"text": "ITargetInterface"
},
{
"answer_id": 109796,
"author": "Angelo van der Sijpt",
"author_id": 19144,
"author... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11284/"
] |
109,083 | <p>Does anyone know of any problems with using WCF to expose a SOAP interface for non .NET clients? For example incompatibilities with other SOAP libraries?</p>
<p>This is so that the SOAP interface can be exposed for third parties to integrate with our software.</p>
| [
{
"answer_id": 110909,
"author": "Paul Lalonde",
"author_id": 5782,
"author_profile": "https://Stackoverflow.com/users/5782",
"pm_score": 4,
"selected": true,
"text": "xsd:import"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/109083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15985/"
] |
109,086 | <p>I am using <code>setInterval(fname, 10000);</code> to call a function every 10 seconds in JavaScript. Is it possible to stop calling it on some event? </p>
<p>I want the user to be able to stop the repeated refresh of data.</p>
| [
{
"answer_id": 109091,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 12,
"selected": true,
"text": "setInterval() clearInterval() var refreshIntervalId = setInterval(fname, 10000);\n\n/* later */\nclearInterval(refresh... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448/"
] |
109,087 | <p>Is there a built-in method in Python to get an array of all a class' instance variables? For example, if I have this code:</p>
<pre><code>class hi:
def __init__(self):
self.ii = "foo"
self.kk = "bar"
</code></pre>
<p>Is there a way for me to do this:</p>
<pre><code>>>> mystery_method(hi)
["ii",... | [
{
"answer_id": 109106,
"author": "cnu",
"author_id": 1448,
"author_profile": "https://Stackoverflow.com/users/1448",
"pm_score": 9,
"selected": true,
"text": "__dict__ >>> hi_obj = hi()\n>>> hi_obj.__dict__.keys()\n dict_keys(['ii', 'kk'])\n"
},
{
"answer_id": 109122,
"author... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/422/"
] |
109,124 | <p>Is it possible to run an external process from Perl, capture its stderr, stdout AND the process exit code?</p>
<p>I seem to be able to do combinations of these, e.g. use backticks to get stdout, IPC::Open3 to capture outputs, and system() to get exit codes.</p>
<p>How do you capture stderr, stdout, and the exit co... | [
{
"answer_id": 109139,
"author": "Michael Carman",
"author_id": 8233,
"author_profile": "https://Stackoverflow.com/users/8233",
"pm_score": 6,
"selected": true,
"text": "$? $? >> 8 $?"
},
{
"answer_id": 109150,
"author": "hoyhoy",
"author_id": 3499,
"author_profile": ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19214/"
] |
109,134 | <p>How do I change the style (color) of a div such as the following? </p>
<pre><code>"<div id=foo class="ed" style="display: <%= ((foo.isTrue) ? string.Empty : "none") %>">
<%= ((foo.isTrue) ? foo.Name: "false foo") %>"`
</code></pre>
| [
{
"answer_id": 109142,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 2,
"selected": false,
"text": "\n.important { background: red; }\n.todo { background: blue; }\n \n<div class=\"important\">\n \n<div style=\"background-c... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15059/"
] |
109,149 | <p>What's the best javascript framework for drawing (lines, curves whatnot) on images?</p>
| [
{
"answer_id": 109166,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 1,
"selected": false,
"text": "var p = Processing(CanvasElement);\np.size(100, 100);\np.background(0);\np.fill(255);\np.ellipse(50, 50, 50, 50);\n"
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
109,186 | <p>We are setting up a new SharePoint for which we don't have a valid SSL certificate yet. I would like to call the Lists web service on it to retrieve some meta data about the setup. However, when I try to do this, I get the exception:</p>
<blockquote>
<p>The underlying connection was closed: Could not establish tr... | [
{
"answer_id": 427820,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 7,
"selected": false,
"text": "...\nServicePointManager.ServerCertificateValidationCallback = MyCertHandler;\n...\n\nstatic bool MyCertHandler(object sender,... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9540/"
] |
109,188 | <p>Does anyone know how I can check to see if a directory is writeable in PHP? </p>
<p>The function <a href="http://php.net/manual/en/function.is-writable.php" rel="nofollow noreferrer"><code>is_writable</code></a> doesn't work for folders.</p>
<blockquote>
<p>Edit: It does work. See the accepted answer.</p>
</blo... | [
{
"answer_id": 1561397,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "is_writable() is_writable() is_writable $file $file_directory = dirname($file);\n is_writable($file_directory)"
},
{
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
109,210 | <p>Normally I use <code>imagecreatefromjpeg()</code> and then <code>getimagesize()</code>, but with Firefox 3 I need to go round this different. So now im using <code>imagecreatefromstring()</code>, but how do I retreive the image dimensions now?</p>
| [
{
"answer_id": 109299,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 5,
"selected": true,
"text": "imagesx() imagesy() imagecreatefromstring()"
},
{
"answer_id": 109301,
"author": "Kasper",
"author_id": 1867... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18671/"
] |
109,232 | <p>What is the best way (performance wise) to paginate results in SQL Server 2000, 2005, 2008, 2012 if you also want to get the total number of results (before paginating)?</p>
| [
{
"answer_id": 109290,
"author": "mdb",
"author_id": 8562,
"author_profile": "https://Stackoverflow.com/users/8562",
"pm_score": 10,
"selected": true,
"text": "SELECT * FROM Orders WHERE OrderDate >= '1980-01-01' ORDER BY OrderDate\n SELECT COUNT(*) FROM Orders WHERE OrderDate >= '1980-0... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19331/"
] |
109,249 | <p>Why doesn't have the c standard a memswap function, which would probably look like:</p>
<pre><code>int memswap(void *ptr1, void *ptr2, size_t nbytes)?
</code></pre>
<p>I know it'd be easy to write, but i think the libc could do some awesome tricks to speed it up like some implementations do it for memcpy.</p>
| [
{
"answer_id": 109302,
"author": "dvorak",
"author_id": 19235,
"author_profile": "https://Stackoverflow.com/users/19235",
"pm_score": 4,
"selected": false,
"text": "#include <algorithm>\n\nswap_ranges(ptr1, ptr1 + nbytes, ptr2)\n #include <algorithm>\n\nswap_ranges(ptr1, ptr1 + num_items... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18687/"
] |
109,251 | <p>Whats the best way to bind variable column names to a report field in Access when using a crosstab query? </p>
| [
{
"answer_id": 109302,
"author": "dvorak",
"author_id": 19235,
"author_profile": "https://Stackoverflow.com/users/19235",
"pm_score": 4,
"selected": false,
"text": "#include <algorithm>\n\nswap_ranges(ptr1, ptr1 + nbytes, ptr2)\n #include <algorithm>\n\nswap_ranges(ptr1, ptr1 + num_items... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3155/"
] |
109,262 | <p>I have a .NET 2.0 Windows Forms application. On this app there is a Form control with a Menu bar and a status bar. Also there's a ListView on this form.</p>
<p>If I add a context menu to this form, the context menu will open when the user right clicks any part of the form, including the menu bar and the status bar.... | [
{
"answer_id": 109333,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "Point clientPos = this.PointToClient(Form.MousePosition);\nControl control = this.GetChildAtPoint(clientPos);\n"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/109262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
109,280 | <p>I'm working with DotNetNuke's scheduler to schedule tasks and I'm looking to get the physical file path of a email template that I created. The problem is that HttpContext is NULL because the scheduled task is on a different thread and there is not http request. How would you go about getting the file's physical pat... | [
{
"answer_id": 109311,
"author": "Andrew",
"author_id": 15127,
"author_profile": "https://Stackoverflow.com/users/15127",
"pm_score": 0,
"selected": false,
"text": "Imports System.Reflection\nImports System.IO\n...\nPath.GetDirectoryName( Assembly.GetExecutingAssembly().CodeBase ) \n Log... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19490/"
] |
109,281 | <p>I have converted one of my VS2006 projects into VS2008 and when trying to build the project in VS2008 I get the above error. What is .sbr file ? and how can I fix the compile error? Any help is hugely appreciated.</p>
| [
{
"answer_id": 4816239,
"author": "Yochai Timmer",
"author_id": 536086,
"author_profile": "https://Stackoverflow.com/users/536086",
"pm_score": 3,
"selected": false,
"text": "Enable Browse Information No"
},
{
"answer_id": 12987365,
"author": "Keith D",
"author_id": 17613... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
109,284 | <p>Is it possible to test the use of a given layout using RSpec with Rails, for example I'd like a matcher that does the following:</p>
<pre><code>response.should use_layout('my_layout_name')
</code></pre>
<p>I found a use_layout matcher when Googling but it doesn't work as neither the response or controller seem to ... | [
{
"answer_id": 110301,
"author": "Otto",
"author_id": 9594,
"author_profile": "https://Stackoverflow.com/users/9594",
"pm_score": 4,
"selected": true,
"text": "use_layout # in spec_helper.rb\n\nclass UseLayout\n def initialize(expected)\n @expected = 'layouts/' + expected\n end\n... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6432/"
] |
109,305 | <p>I have an ASP.Net GridView control that I need to remain a fixed size whether there are 0 records or <em>n</em> records in the grid. The header and the footer should remain in the same position regardless of the amount of data in the grid. Obviously, I need to implement paging for larger datasets but how would I a... | [
{
"answer_id": 109496,
"author": "Tim C",
"author_id": 7585,
"author_profile": "https://Stackoverflow.com/users/7585",
"pm_score": 1,
"selected": false,
"text": "<table><tr><td style=\"width:100px\">Header 1</td><td style=\"width:200px\">Header 2</td></table>\n<div style=\"width:300px;he... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7215/"
] |
109,317 | <p>Is there any good reason to use C-strings in C++ nowadays? My textbook uses them in examples at some points, and I really feel like it would be easier just to use a std::string.</p>
| [
{
"answer_id": 109341,
"author": "dvorak",
"author_id": 19235,
"author_profile": "https://Stackoverflow.com/users/19235",
"pm_score": 6,
"selected": true,
"text": "c_str()"
},
{
"answer_id": 109375,
"author": "wilhelmtell",
"author_id": 456,
"author_profile": "https:/... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
109,318 | <p>Using .Net what limitations (if any) are there in using the XmlSerializer?
For example, can you serialize Images to XML?</p>
| [
{
"answer_id": 323530,
"author": "Tomer Pintel",
"author_id": 15556,
"author_profile": "https://Stackoverflow.com/users/15556",
"pm_score": 2,
"selected": false,
"text": " <system.diagnostics>\n <switches>\n <add name=\"XmlSerialization.Compilation\" value=\"4\"/>\n </switche... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13227/"
] |
109,325 | <p>How do you perform the equivalent of Oracle's <code>DESCRIBE TABLE</code> in PostgreSQL (using the psql command)?</p>
| [
{
"answer_id": 109329,
"author": "Mr. Muskrat",
"author_id": 2657951,
"author_profile": "https://Stackoverflow.com/users/2657951",
"pm_score": 5,
"selected": false,
"text": "DESCRIBE TABLE \\d table"
},
{
"answer_id": 109331,
"author": "devinmoore",
"author_id": 15950,
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2657951/"
] |
109,343 | <p>With web services it is considered a good practice to batch several service calls into one message to reduce a number of remote calls. Is there any way to do this with RESTful services?</p>
| [
{
"answer_id": 115026,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 3,
"selected": true,
"text": "POST /folders/ROOT/the/folder/name/users?userId=56&userId=87&userId=45\n PUT /folders/ROOT/the/folder/name/users/56\nPUT... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19268/"
] |
109,383 | <p>I am relatively new to Java, and often find that I need to sort a <code>Map<Key, Value></code> on the values.</p>
<p>Since the values are not unique, I find myself converting the <code>keySet</code> into an <code>array</code>, and sorting that array through <strong>array sort</strong> with a <strong>custom co... | [
{
"answer_id": 109389,
"author": "devinmoore",
"author_id": 15950,
"author_profile": "https://Stackoverflow.com/users/15950",
"pm_score": 8,
"selected": false,
"text": "private static <K, V> Map<K, V> sortByValue(Map<K, V> map) {\n List<Entry<K, V>> list = new LinkedList<>(map.entrySe... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9466/"
] |
109,399 | <p>I know there's JScript.NET, but it isn't the same as the JavaScript we know from the web.</p>
<p>Does anyone know if there are any JavaScript based platforms/compilers for desktop development? Most specifically Windows desktop development.</p>
| [
{
"answer_id": 110861,
"author": "dsm",
"author_id": 7780,
"author_profile": "https://Stackoverflow.com/users/7780",
"pm_score": 3,
"selected": false,
"text": ".hta"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/109399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7831/"
] |
109,417 | <p>I populated a datagridview from a datatable. How do I read from the datagridview when the application is running?</p>
| [
{
"answer_id": 109452,
"author": "Hamish Smith",
"author_id": 15572,
"author_profile": "https://Stackoverflow.com/users/15572",
"pm_score": 3,
"selected": true,
"text": "BindingSource bindingSource = this.dataGridView1.DataSource as BindingSource;\n//substitute your business object type ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
109,444 | <p>Okay so im working on this php image upload system but for some reason internet explorer turns my basepath into the same path, but with double backslashes instead of one; ie:</p>
<pre><code>C:\\Documents and Settings\\kasper\\Bureaublad\\24.jpg
</code></pre>
<p>This needs to become C:\Documents and Settings\kaspe... | [
{
"answer_id": 109454,
"author": "The.Anti.9",
"author_id": 2128,
"author_profile": "https://Stackoverflow.com/users/2128",
"pm_score": 3,
"selected": true,
"text": "stripslashes"
},
{
"answer_id": 109624,
"author": "moltenform",
"author_id": 18506,
"author_profile": ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18671/"
] |
109,449 | <p>Is there a (cross-platform) way to get a C FILE* handle from a C++ std::fstream ?</p>
<p>The reason I ask is because my C++ library accepts fstreams and in one particular function I'd like to use a C library that accepts a FILE*.</p>
| [
{
"answer_id": 109522,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 7,
"selected": true,
"text": "std::fstream FILE* std::fstream std::fstream FILE* funopen() std::stream FILE *funopen(\n const void *cook... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
109,480 | <p>I've created a forum, and we're implementing an apc and memcache caching solution to save the database some work.</p>
<p>I started implementing the cache layer with keys like "Categories::getAll", and if I had user-specific data, I'd append the keys with stuff like the user ID, so you'd get <code>"User::getFavorite... | [
{
"answer_id": 109533,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 1,
"selected": false,
"text": "Forum::getThreads|$iForumId $page = 2;\n$threads_per_page = 25;\n$start_thread = $page * $threads_per_page;\n\n// Pull threa... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11167/"
] |
109,488 | <p>I keep hearing that <code>div</code> tags should be used for layout purposes and not <code>table</code> tags. So does that also apply to form layout? I know a form layout is still a layout, but it seems like creating form layouts with <code>div</code>s requires more <code>html</code> and <code>css</code>. So with th... | [
{
"answer_id": 109516,
"author": "Tim Booker",
"author_id": 10046,
"author_profile": "https://Stackoverflow.com/users/10046",
"pm_score": 6,
"selected": true,
"text": "<fieldset>\n <div>\n <label for=\"nameTextBox\">Name:</label>\n <input id=\"nameTextBox\" type=\"text... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708/"
] |
109,491 | <p>I keep getting compiler errors when I try to access flashVars in an AS3 class.</p>
<p>Here's a stripped version of the code:</p>
<pre><code>package myPackage {
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.Sprite;
public class myClass {
public function CTrafficHandler(... | [
{
"answer_id": 4268438,
"author": "cleverbit",
"author_id": 346098,
"author_profile": "https://Stackoverflow.com/users/346098",
"pm_score": 2,
"selected": false,
"text": "package\n{\n import flash.display.Sprite;\n import flash.events.Event;\n\n public class MySprite extends Spr... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18790/"
] |
109,553 | <p>I need to query existing rules, as well as being able to easily add and delete rules. I haven't found any API's for doing this. Is there something that I'm missing?</p>
<p>The closest I've come to a solution is using <code>iptables-save | iptables-xml</code> for querying and manually calling the iptables command it... | [
{
"answer_id": 109586,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "iptables-restore COMMIT iptables iptc_commit libiptc setsockopt(SO_SET_REPLACE) iptables-restore"
},
{
"answer_id": ... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10495/"
] |
109,580 | <p>I'm looking to grab cookie values for the same domain within a Flash movie. Is this possible?</p>
<p>Let's see I let a user set a variable foo and I store it using any web programming language. I can access it easily via that language, but I would like to access it via the Flash movie without passing it in via pr... | [
{
"answer_id": 109600,
"author": "jdecuyper",
"author_id": 296,
"author_profile": "https://Stackoverflow.com/users/296",
"pm_score": 0,
"selected": false,
"text": "[Root drive]:\\Documents and Settings\\[username]\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\\n"
},
{
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/497/"
] |
109,608 | <p>When I place a control on a tabpage in Silverlight the control is placed ~10 pixels down and ~10 pixels right. For example, the following xaml:</p>
<pre><code><System_Windows_Controls:TabControl x:Name=TabControlMain Canvas.Left="0" Canvas.Top="75" Width="800" Height="525" Background="Red" HorizontalContentAlign... | [
{
"answer_id": 159396,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<System_Windows_Controls:TabControl x:Name=TabControlMain Canvas.Left=\"0\" Canvas.Top=\"75\" Width=\"800\" Height=\"525\" Bac... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4244/"
] |
109,618 | <p>I want the following layout to appear on the screen:</p>
<pre><code>FieldName 1 [Field input 1]
FieldName 2 is longer [Field input 2]
. .
. .
FieldName N [Field input N]
</code></pre>
<p>Requirements:</p>
<ul>
<li>Field names and fi... | [
{
"answer_id": 109628,
"author": "Héctor Ramos",
"author_id": 19617,
"author_profile": "https://Stackoverflow.com/users/19617",
"pm_score": -1,
"selected": false,
"text": "<div style=\"clear: both\"/> <br/> <span style=\"float: left; width: 200px\">FieldName1</span><span style=\"float: l... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2284/"
] |
109,644 | <p><code>temp2</code>, <code>temp1</code> are pointers to some struct x:</p>
<pre><code>struct FunkyStruct x;
struct FunkyStruct *temp1 = &x, *temp2 = &x;
</code></pre>
<p>Now, after execution of following lines:</p>
<pre><code>temp2=temp1;
temp1=temp1->nxt;
</code></pre>
<p>...Will <code>temp2</code> an... | [
{
"answer_id": 109655,
"author": "KTC",
"author_id": 12868,
"author_profile": "https://Stackoverflow.com/users/12868",
"pm_score": 1,
"selected": false,
"text": "temp2 = temp1;\n*temp1 = temp1->foo;\n"
},
{
"answer_id": 109678,
"author": "Pitarou",
"author_id": 1260685,
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19790/"
] |
109,668 | <p>I'm using castle windsor for a pet-project I'm working on. I'm starting to notice that I need to call the IoC container in different places in my code to create new objects. This dependency on the container makes my code harder to maintain.</p>
<p>There are two solutions I've used to solve this problem</p>
<p>I tr... | [
{
"answer_id": 121114,
"author": "flipdoubt",
"author_id": 470,
"author_profile": "https://Stackoverflow.com/users/470",
"pm_score": 2,
"selected": false,
"text": "IServiceLocator container = ContainerFactory.GetContainer(); \nwhile( keepLooping )\n{\n IExample example = container.Get... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3320/"
] |
109,705 | <p>The following program is very simple: it outputs a single dot each half a second. If it recieves a <strong>SIGQUIT</strong>, it proceeds to output ten <strong>Q</strong>s. If it recieves a <strong>SIGTSTP</strong> <em>(<kbd>Ctrl</kbd>-<kbd>Z</kbd>)</em>, it outputs ten <strong>Z</strong>s.</p>
<p>If it recieves a <s... | [
{
"answer_id": 109783,
"author": "mbac32768",
"author_id": 18446,
"author_profile": "https://Stackoverflow.com/users/18446",
"pm_score": 4,
"selected": true,
"text": "#!/usr/bin/python\n\nfrom signal import *\nfrom time import sleep\nfrom sys import stdout\n\nprint_Qs = 0\nprint_Zs = 0\n... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
109,710 | <p>I've been digging through some parts of the Linux kernel, and found calls like this:</p>
<pre><code>if (unlikely(fd < 0))
{
/* Do something */
}
</code></pre>
<p>or</p>
<pre><code>if (likely(!err))
{
/* Do something */
}
</code></pre>
<p>I've found the definition of them:</p>
<pre><code>#define likel... | [
{
"answer_id": 109732,
"author": "dvorak",
"author_id": 19235,
"author_profile": "https://Stackoverflow.com/users/19235",
"pm_score": 6,
"selected": false,
"text": "if (unlikely(x)) {\n dosomething();\n}\n\nreturn x;\n if (!x) {\n return x;\n}\n\ndosomething();\nreturn x;\n"
},
{
... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9232/"
] |
109,717 | <p>In C#, if you have multiple constructors, you can do something like this:</p>
<pre><code>public MyClass(Guid inputId, string inputName){
// do something
}
public MyClass(Guid inputId): this(inputId, "foo") {}
</code></pre>
<p>The idea is of course code reuse. However, what is the best approach when there is a... | [
{
"answer_id": 109728,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 1,
"selected": false,
"text": "using using (MyThirdClass mc = inputObject.CreateHelper())\n{\n // do something with mc\n}\n"
},
{
"answer... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
109,753 | <p>I would like to programmatically create a gloss effect on an Image, kinda like on the Apple-inspired design that the Web has adopted when it was updated to 2.0 Beta.</p>
<p>Essentially this:</p>
<p><a href="http://nhc.hcmuns.googlepages.com/web2_icons.jpg" rel="nofollow noreferrer">example icons http://nhc.hcmuns.... | [
{
"answer_id": 109868,
"author": "Michael Stum",
"author_id": 91,
"author_profile": "https://Stackoverflow.com/users/91",
"pm_score": 4,
"selected": false,
"text": "Image img = Image.FromFile(\"rss-icon.jpg\");\npictureBox1.Image = AddCircularGloss(img, 30,25,255,255,255);\n\npublic stat... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
109,759 | <p>I've just switched an application to use ar_mailer and when I run ar_sendmail (after a long pause) I get the following error:</p>
<pre><code>Unhandled exception 530 5.7.0 Must issue a STARTTLS command first. h7sm16260325nfh.4
</code></pre>
<p>I am using Gmail SMTP to send the emails and I haven't changed any of th... | [
{
"answer_id": 985034,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "smtp_tls enable_startls_auto ActionMailer::Base.smtp_settings = {\n :enable_starttls_auto => true,\n ...\n ...\n}\n"
}
] | 2008/09/20 | [
"https://Stackoverflow.com/questions/109759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6432/"
] |
109,769 | <p>I am looking for an enhancement to JSON that will also serialize methods. I have an object that acts as a collection of objects, and would like to serialize the methods of the collection object as well. So far I've located <a href="http://www.thomasfrank.se/classier_json.html" rel="nofollow noreferrer">ClassyJSON<... | [
{
"answer_id": 109786,
"author": "Ray Lu",
"author_id": 11413,
"author_profile": "https://Stackoverflow.com/users/11413",
"pm_score": 1,
"selected": false,
"text": "[DataContract]\npublic class Foo\n{\n [DataMember]\n public string FooName {get;set;}\n [DataMember]\n public... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19799/"
] |
109,776 | <p>What's the best way to create recurring tasks?</p>
<p>Should I create some special syntax and parse it, kind of similar to Cronjobs on Linux or should I much rather just use a cronjob that runs every hour to create more of those recurring tasks with no end?</p>
<p>Keep in mind, that you can have endless recurring ... | [
{
"answer_id": 109786,
"author": "Ray Lu",
"author_id": 11413,
"author_profile": "https://Stackoverflow.com/users/11413",
"pm_score": 1,
"selected": false,
"text": "[DataContract]\npublic class Foo\n{\n [DataMember]\n public string FooName {get;set;}\n [DataMember]\n public... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9535/"
] |
109,781 | <p>What's the most elegant way to select out objects in an array that are unique with respect to one or more attributes?</p>
<p>These objects are stored in ActiveRecord so using AR's methods would be fine too. </p>
| [
{
"answer_id": 109794,
"author": "Alex M",
"author_id": 9652,
"author_profile": "https://Stackoverflow.com/users/9652",
"pm_score": 3,
"selected": false,
"text": "select [1, 2, 3, 4, 5, 6, 7].select{|e| e%2 == 0} [2,4,6] detect [1, 2, 3, 4, 5, 6, 7].detect{|e| e>3} 4"
},
{
"answe... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227001/"
] |
109,815 | <p>Ok, I get the basics of video format - there are some container formats and then you have core video/audio formats. I would like to write a web based application that determines what video/audio codec a file is using.</p>
<p>How best can I programmatically determine a video codec? Would it be best to use a standard... | [
{
"answer_id": 109827,
"author": "Dark Shikari",
"author_id": 11206,
"author_profile": "https://Stackoverflow.com/users/11206",
"pm_score": 3,
"selected": false,
"text": "mplayer -identify ffmpeg"
},
{
"answer_id": 119897,
"author": "AdamB",
"author_id": 20134,
"autho... | 2008/09/20 | [
"https://Stackoverflow.com/questions/109815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19805/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.