qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
394,321 | <p>I'm looking for examples of specifying files in a tree structure, for example, for specifying the set of files to search in a grep tool. I'd like to be able to include and exclude files and directories by name matches. I'm sure there are examples out there, but I'm having a hard time finding them. </p>
<p>Here's ... | [
{
"answer_id": 394347,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 1,
"selected": false,
"text": "find"
},
{
"answer_id": 394363,
"author": "Keltia",
"author_id": 16143,
"author_p... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14343/"
] |
394,330 | <p><em>[I'm just starting with Ruby, but "no question is ever too newbie," so I trudge onwards...]</em></p>
<p>Every tutorial and book I see goes from Ruby with the interactive shell to Ruby on Rails. I'm not doing Rails (yet), but I don't want to use the interactive shell. I have a class file (first_class.rb) and a M... | [
{
"answer_id": 394338,
"author": "frankodwyer",
"author_id": 42404,
"author_profile": "https://Stackoverflow.com/users/42404",
"pm_score": 4,
"selected": true,
"text": "require 'first_class'\n"
},
{
"answer_id": 395997,
"author": "Sophie Alpert",
"author_id": 49485,
"... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
394,349 | <pre><code>Array 1 | Array 2
=================
1 | 2
2 | 3
3 | 4
5 | 5
| 6
</code></pre>
<p>What is a good algorithm to 'sync' or combine Array 2 into Array 1? The following needs to happen:</p>
<ol>
<li>Integers in Array 2 but not in Array 1 should be added to Array 1.</li>
... | [
{
"answer_id": 394366,
"author": "Yuliy",
"author_id": 47527,
"author_profile": "https://Stackoverflow.com/users/47527",
"pm_score": 3,
"selected": false,
"text": "Array1 = Array2.Clone()"
},
{
"answer_id": 394387,
"author": "Gant",
"author_id": 12460,
"author_profile... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46540/"
] |
394,372 | <p>Is there a way to find when the activeApplication changes in OSX through Python and AppKit? I know how to find out launchedApplication and activeApplication ( please refer to my other question here: <a href="https://stackoverflow.com/questions/373020/finding-the-current-active-window-in-mac-os-x-using-python">Findin... | [
{
"answer_id": 394416,
"author": "Dirk Stoop",
"author_id": 24051,
"author_profile": "https://Stackoverflow.com/users/24051",
"pm_score": 0,
"selected": false,
"text": "def awakeFromNib(self):\n NSDistributedNotificationCenter.defaultCenter().addObserver_selector_name_object_(\n ... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40195/"
] |
394,375 | <p>How do I get the row count of an internal table? I guess that I can loop on it. But there must be a saner way.</p>
<p>I don't know if it makes a difference but the code should run on 4.6c version.</p>
| [
{
"answer_id": 394386,
"author": "Thorsten",
"author_id": 25320,
"author_profile": "https://Stackoverflow.com/users/25320",
"pm_score": 7,
"selected": true,
"text": " DESCRIBE TABLE <itab-Name> LINES <variable>\n"
},
{
"answer_id": 411952,
"author": "user51478",
"author_i... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25737/"
] |
394,382 | <p>I am trying to program an Excel module where it dynamically inserts code in new objects in a form that is created at design time.</p>
<p>I am using this code where "Code" contains a string with the actual code that should go into the DstrFiles object.</p>
<pre><code>Dim DstrFiles As Object
Set DstrFiles = ThisWor... | [
{
"answer_id": 423099,
"author": "Joel Spolsky",
"author_id": 4,
"author_profile": "https://Stackoverflow.com/users/4",
"pm_score": 4,
"selected": true,
"text": "UserForm1.Controls.Add(\"Forms.Label.1\", \"foo\", True)\n"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/394382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49280/"
] |
394,402 | <p>If I'm looking to use Core Animation to fade a view in and out of display -- is it good practice to have the UIView in the same NIB as the view that it is being drawn into? Should I build the view in another NIB file and load it in from there? I'm looking to animate three small views into display simultaneously upon... | [
{
"answer_id": 394856,
"author": "Cocoatype",
"author_id": 49345,
"author_profile": "https://Stackoverflow.com/users/49345",
"pm_score": 3,
"selected": true,
"text": "[UIView beginAnimations:@\"fade\" context:nil];\n[UIView setAnimationDuration:1.0];\nmyViewOne.alpha = 1.0;\nmyViewTwo.al... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
394,439 | <p>I'd like to be able to lock directory access under windows.
The following code work greatly with file or directory under POSIX system:</p>
<pre><code>def flock(fd, blocking=False, exclusive=False):
if exclusive:
flags = fcntl.LOCK_EX
else:
flags = fcntl.LOCK_SH
if not blocking:
... | [
{
"answer_id": 394464,
"author": "kylebrooks",
"author_id": 49284,
"author_profile": "https://Stackoverflow.com/users/49284",
"pm_score": 0,
"selected": false,
"text": "for file in os.listdir(dir):\n f = open(file)\n flock(f)\n"
},
{
"answer_id": 394813,
"author": "Bertrand",... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11563/"
] |
394,440 | <p>So I have this code that takes care of command acknowledgment from remote computers, sometimes (like once in 14 days or something) the following line throws a null reference exception:</p>
<pre><code>computer.ProcessCommandAcknowledgment( commandType );
</code></pre>
<p>What really bugs me is that I check for a nu... | [
{
"answer_id": 394449,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "ReadString()"
},
{
"answer_id": 394499,
"author": "Charlie Martin",
"author_id": 35092,
"author_pro... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15409/"
] |
394,450 | <p>Is it possible to animate a change in css using jquery? </p>
<p>If someone would be so kind as to provide me with an example i would be much obliged.</p>
<p>Essentially, i am trying to animate the sprites technique by manipulating the background-image in the css using jQuery. The goal is to animate the hover so th... | [
{
"answer_id": 394462,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 2,
"selected": false,
"text": "Two Image Technique"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/394450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44443/"
] |
394,465 | <p>This must be a very simple question, but I don't seem to be able to figure out.</p>
<p>I'm using apache + mod_wsgi to host my python application, and I'd like to get the post content submitted in one of the forms -however, neither the environment values, nor sys.stdin contains any of this data. Mind giving me a qui... | [
{
"answer_id": 394543,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 6,
"selected": true,
"text": "from pprint import pformat\n\ndef application(environ, start_response):\n # show the environment:\n output = ['<pre>']... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9440/"
] |
394,470 | <p>I'm trying to change the alt of the image, I'm clicking by
selecting the image's class (<strong><em><code>add_answer</code></em></strong>)</p>
<p><strong>Note:</strong> <strong><em><code>.add_answer</code></strong> shows up multiple times inside different containing <code>div</code>'s</em></p>
<pre><code>jQuery(f... | [
{
"answer_id": 394474,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 4,
"selected": false,
"text": "$(this).parent(\"div\").find(\".add_answer\").attr(\"alt\", count);\n"
},
{
"answer_id": 394476,
"author... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48973/"
] |
394,488 | <p>I need to convert an 8-bit IplImage to a 32-bits IplImage. Using documentation from all over the web I've tried the following things:</p>
<pre><code>// general code
img2 = cvCreateImage(cvSize(img->width, img->height), 32, 3);
int height = img->height;
int width = img->width;
int channels = img-... | [
{
"answer_id": 395049,
"author": "Stefan Schmidt",
"author_id": 1958045,
"author_profile": "https://Stackoverflow.com/users/1958045",
"pm_score": 4,
"selected": true,
"text": "float value = 0.5"
},
{
"answer_id": 395412,
"author": "sgielen",
"author_id": 13104,
"autho... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13104/"
] |
394,491 | <p>I'm developing an <code>ASP.Net MVC</code> site and on it I list some bookings from a database query in a table with an <code>ActionLink</code> to cancel the booking on a specific row with a certain <code>BookingId</code> like this: </p>
<p><strong>My bookings</strong></p>
<pre><code><table cellspacing="3">... | [
{
"answer_id": 394580,
"author": "Mauricio Scheffer",
"author_id": 21239,
"author_profile": "https://Stackoverflow.com/users/21239",
"pm_score": 7,
"selected": true,
"text": "<a>"
},
{
"answer_id": 394990,
"author": "Falkayn",
"author_id": 33050,
"author_profile": "ht... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/459417/"
] |
394,500 | <p>In the python program I'm writing, I've got a thread which iterates over a large structure in memory and writes it incrementally into a file-like object. I've got another thread which takes a file-like object and writes it to disk. Is there an easy way to connect the two, such that any data input from the first th... | [
{
"answer_id": 394549,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 3,
"selected": true,
"text": "shutil"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9161/"
] |
394,504 | <p>So I'm trying to load some returned html from an .aspx page but a click event needs to fire before it doing some stuff that the AJAX request depends upon. More specifically, I'm doing this. When a user types in a text field this function is run...</p>
<pre><code>function KeyPress() {
$("#" + HiddenButtonId).cli... | [
{
"answer_id": 394563,
"author": "cfbarbero",
"author_id": 2218,
"author_profile": "https://Stackoverflow.com/users/2218",
"pm_score": 3,
"selected": true,
"text": "\nfunction KeyPress() {\n $(\"#test\").load(\"TempJumpToAJAX.aspx\", {searchText: $(\"#\").val()});\n}\n"
},
{
"an... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49294/"
] |
394,514 | <p>I've downloaded the examples for both the Request and Request.HTML and cannot make either work. I unzipped them to a folder and browsed to their index.html to execute them as is, but the response is always "The request failed." with no clues as to why.</p>
<p>I've played around with them with different permutations... | [
{
"answer_id": 2809960,
"author": "Daniel Linkov",
"author_id": 338174,
"author_profile": "https://Stackoverflow.com/users/338174",
"pm_score": 0,
"selected": false,
"text": "XMLHttpRequest()"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,521 | <p>While it's my understanding that there's no fundamental reason a program written for 32-bit hardware / OSs not to run on 64-bit hardware / OSs, in practice, I've found many programs intended for 32-bit versions of Windows that will not work on 64-bit versions of Windows. Examples include a number of popular securit... | [
{
"answer_id": 394538,
"author": "Jorge Córdoba",
"author_id": 2695,
"author_profile": "https://Stackoverflow.com/users/2695",
"pm_score": 2,
"selected": false,
"text": "struct GPoint\n{\n int x;\n int y;\n}\n\n// Array of twenty GPoints\nGPoint[] myArr = malloc(20 * sizeof(GPoint);\n\... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28076/"
] |
394,552 | <p>I'm trying to write some code to work with an htdigest password file. The documentation I can find seems to claim that the format of that file is:</p>
<pre><code>user:realm:MD5(user:realm:pass)
</code></pre>
<p>If that is the case, then why doesn't this work for me? I created a file with the command line htdigest ... | [
{
"answer_id": 394556,
"author": "wxs",
"author_id": 12981,
"author_profile": "https://Stackoverflow.com/users/12981",
"pm_score": 2,
"selected": false,
"text": "echo a:b:c | wc\n"
},
{
"answer_id": 394558,
"author": "James Brady",
"author_id": 29903,
"author_profile"... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12981/"
] |
394,567 | <p>I have a generic list say and I want to serialize it.
I want to use a interface for the generic list which can't be serialized
so you have to use the instance. Like this
MyClass implements IMyClass.</p>
<pre><code>List<IMyClass> list = DeserializeMyClass(path); //Can't do this right
</code></pre>
<p>So ha... | [
{
"answer_id": 394578,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Listl<IMyclass> list = DeserializeMyClass(path); //Can't do this right\n"
},
{
"answer_id": 394581,
"author": "yur... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,574 | <p>Write a program that take a single command line argument N and prints out the corresponding <a href="http://en.wikipedia.org/wiki/Roman_numerals" rel="nofollow noreferrer">Roman Numeral</a>.</p>
<p>Eg N = 2009 should print MMIX.</p>
<p>Let's say this should work for 0 < N < 3000.</p>
<p>(Had fun playing my ... | [
{
"answer_id": 394592,
"author": "jason",
"author_id": 45914,
"author_profile": "https://Stackoverflow.com/users/45914",
"pm_score": 4,
"selected": false,
"text": "Int32"
},
{
"answer_id": 394594,
"author": "chaos",
"author_id": 47529,
"author_profile": "https://Stack... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4812/"
] |
394,588 | <p>in terms of both parsing (serializing, deserializing) and sending packets over the network is there any good estimation of performance differences between binary and xml serialization?</p>
| [
{
"answer_id": 394597,
"author": "Dave Markle",
"author_id": 24995,
"author_profile": "https://Stackoverflow.com/users/24995",
"pm_score": 5,
"selected": true,
"text": "<person>\n <name>Dave</dave>\n <ssn>000-00-0000</ssn>\n <email1>xxxxxx/email1>\n</person>\n...\n"
},
{
"answ... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
394,591 | <p>I'm working on improving our group's development process, and I'm considering how best to implement Design By Contract with Test-Driven Development. It seems the two techniques have a lot of overlap, and I was wondering if anyone had some insight on the following (related) questions:</p>
<ul>
<li>Isn't it against ... | [
{
"answer_id": 394999,
"author": "Jörg W Mittag",
"author_id": 2988,
"author_profile": "https://Stackoverflow.com/users/2988",
"pm_score": 5,
"selected": false,
"text": "queue.full?"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21632/"
] |
394,596 | <p>Does anyone know if you can obtain the following user interface components as seen in various adobe products for use in ones own product?</p>
<ul>
<li>Treeview (Adobe Acrobat)</li>
<li>Collapsable Toolbars (Adobe Photoshop, Illustrator)</li>
</ul>
| [
{
"answer_id": 394999,
"author": "Jörg W Mittag",
"author_id": 2988,
"author_profile": "https://Stackoverflow.com/users/2988",
"pm_score": 5,
"selected": false,
"text": "queue.full?"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48499/"
] |
394,616 | <p>I have a JAR file named <em>helloworld.jar</em>.
In order to run it, I'm executing the following command in a command-line window:</p>
<pre class="lang-none prettyprint-override"><code>java -jar helloworld.jar
</code></pre>
<p>This works fine, but how do I execute it with double-click instead?
Do I need to install... | [
{
"answer_id": 394628,
"author": "Brian Kelly",
"author_id": 8252,
"author_profile": "https://Stackoverflow.com/users/8252",
"pm_score": 8,
"selected": true,
"text": "C:\\Program Files\\Java\\j2re1.4.2_04\\bin\\javaw.exe\" -jar \"%1\" %"
},
{
"answer_id": 1459206,
"author": "... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40945/"
] |
394,618 | <p>So basically, how is non-western input handled in SDL or OpenGL games or applications? Googling for it reveals <a href="http://sdl-im.csie.net/" rel="nofollow noreferrer">http://sdl-im.csie.net/</a> but that doesn't seem to be maintained or available anymore. Just to view the page I had to use the <a href="http://... | [
{
"answer_id": 685280,
"author": "Ivan Vučica",
"author_id": 39974,
"author_profile": "https://Stackoverflow.com/users/39974",
"pm_score": 2,
"selected": false,
"text": "SDL_EnableUNICODE()"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49287/"
] |
394,645 | <p>With regards to making a game server, it seems Erlang always comes up as a language that is "built for this kind of thing" with its scalability and concurrency features. I don't have experience in either Haskell nor Erlang, but on the surface they seem the same. Looking into Haskell's docs it seems like it has suppo... | [
{
"answer_id": 395017,
"author": "Alexey Romanov",
"author_id": 9204,
"author_profile": "https://Stackoverflow.com/users/9204",
"pm_score": 3,
"selected": false,
"text": "gen_server"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49018/"
] |
394,647 | <p>Say I have two repositories that were created from the same initial content. For example, if I were using git to manage my apache config files in /etc/apache2 and I ran <code>git init</code> on machine-a and machine-b separately.</p>
<p>I've since made some configuration changes to machine-b that I would like to a... | [
{
"answer_id": 395257,
"author": "Paul",
"author_id": 23356,
"author_profile": "https://Stackoverflow.com/users/23356",
"pm_score": 2,
"selected": false,
"text": "$ git checkout [localmachine bracnch]\n$ git cherry-pick [SHA1 of common commit1]\n$ git cherry-pick [SHA1 of common commit2]... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9594/"
] |
394,650 | <p>Is there a tool that I can use to see the multiple inheritance memory layout of compiled C++ code?</p>
| [
{
"answer_id": 394670,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": false,
"text": "class classA { };\n\nclass classB { };\n\nclass classC : public classA, public classB {\n\n};\n\n$ g++ -fdu... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,652 | <p>After experiencing numerous problems with a certain media player, it got me thinking is it really acceptable to prompt the user to launch a debugger or terminate an application without any relevant information in this day and age? </p>
| [
{
"answer_id": 394664,
"author": "yuriks",
"author_id": 42029,
"author_profile": "https://Stackoverflow.com/users/42029",
"pm_score": 0,
"selected": false,
"text": "System.Exception"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,665 | <p>Does anyone know how I can best stream a webcam through an iGoogle widget? </p>
<p>My ideal is to actually be able to stream locally--that is, get a widget that allows me to display my computer's webcam. Is this possible?</p>
<p>(No, I'm not that vain. I'm using a webcam as a Security Camera, and I'd like to be ab... | [
{
"answer_id": 394664,
"author": "yuriks",
"author_id": 42029,
"author_profile": "https://Stackoverflow.com/users/42029",
"pm_score": 0,
"selected": false,
"text": "System.Exception"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,692 | <p>I have a DATETIME field. I would like to select all the records that have been updated in the last week. Right now I'm using this query:</p>
<pre><code>SELECT SUM(mins_spent) as time_sum FROM todos WHERE
lastUpdate >= '2008-12-22' AND lastUpdate <='2008-12-28'
</code></pre>
<p>But the results i get seem to... | [
{
"answer_id": 394705,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 4,
"selected": true,
"text": "'2008-12-22'"
},
{
"answer_id": 394778,
"author": "Jonathan Leffler",
"author_id": 15168,
"au... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49153/"
] |
394,698 | <p>Can you have cellpadding or spacing just on the top/ bottom as opposed to all (T, B, L, R) ?</p>
| [
{
"answer_id": 394703,
"author": "TRF",
"author_id": 48230,
"author_profile": "https://Stackoverflow.com/users/48230",
"pm_score": 6,
"selected": true,
"text": "td {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n"
},
{
"answer_id": 394712,
"author": "Robert C. Barth",
... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
394,709 | <p>I am learning functional programming style. In <a href="http://channel9.msdn.com/shows/Going+Deep/Brian-Beckman-Dont-fear-the-Monads/" rel="noreferrer">Don't Fear the Monads</a>, Brian Beckman gave a brilliant introduction about Monad. He mentioned that Monad is about composition of functions so as to address comple... | [
{
"answer_id": 394952,
"author": "Jörg W Mittag",
"author_id": 2988,
"author_profile": "https://Stackoverflow.com/users/2988",
"pm_score": 6,
"selected": true,
"text": "<?php\nclass Identity {\n protected $val;\n public function __construct($val) { $this->val = $val; }\n public static... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
394,715 | <p>I am implementing Javascript Validation on an ASP.Net page that is inside a Master Page. The control IDs are changing, so I can't use the original control IDs for validation. I looked on the Net and got the suggestion to build the script dynamically, and add it to the page using RegisterStartupScript. I don't like t... | [
{
"answer_id": 394728,
"author": "Brant Bobby",
"author_id": 4160,
"author_profile": "https://Stackoverflow.com/users/4160",
"pm_score": 2,
"selected": false,
"text": "<script>\n var SomeControl = <%= Control1.ClientID %>;\n var AnotherControl = <%= Control2.ClientID %>;\n // et... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33052/"
] |
394,767 | <p>Does anyone have any good articles or explanations (blogs, examples) for pointer arithmetic? Figure the audience is a bunch of Java programmers learning C and C++.</p>
| [
{
"answer_id": 394774,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 7,
"selected": true,
"text": "int * pa = NULL;\nint * pb = NULL;\npa += 1; // pa++. behind the scenes, add sizeof(int) bytes\nassert((pa -... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
394,770 | <p>Is there a way in Python to override a class method at instance level?
For example:</p>
<pre><code>class Dog:
def bark(self):
print "WOOF"
boby = Dog()
boby.bark() # WOOF
# METHOD OVERRIDE
boby.bark() # WoOoOoF!!
</code></pre>
| [
{
"answer_id": 394779,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 8,
"selected": false,
"text": "class Dog:\n def bark(self):\n print \"Woof\"\n\ndef new_bark(self):\n print \"Woof Woof\"\n\nfoo = Dog()\n... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42636/"
] |
394,771 | <p>I have a table where each row has a few fields that have ID's that relate to some other data from some other tables.</p>
<p>Let's say it's called <code>people</code>, and each person has the ID of a <code>city</code>, <code>state</code> and <code>country</code>.</p>
<p>So there will be three more tables, <code>cit... | [
{
"answer_id": 394781,
"author": "hamishmcn",
"author_id": 3590,
"author_profile": "https://Stackoverflow.com/users/3590",
"pm_score": -1,
"selected": false,
"text": "SELECT first_name, last_name, formated_address(city_id, state_id, country_id) \nFROM people\nWHERE some_where_clause;\n"
... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25910/"
] |
394,809 | <p>Is there a <a href="https://en.wikipedia.org/wiki/%3F:#Python" rel="noreferrer">ternary conditional operator</a> in Python?</p>
| [
{
"answer_id": 394814,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 14,
"selected": true,
"text": "a if condition else b\n"
},
{
"answer_id": 394815,
"author": "Michael Burr",
"author_id": 12711,
... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51518/"
] |
394,816 | <p>I was looking a lot for method to get parent process in .NET, but found only P/Invoke way.</p>
| [
{
"answer_id": 2336322,
"author": "Michael Hale",
"author_id": 166325,
"author_profile": "https://Stackoverflow.com/users/166325",
"pm_score": 7,
"selected": true,
"text": "Console.WriteLine(\"ParentPid: \" + Process.GetProcessById(6972).Parent().Id);\n"
},
{
"answer_id": 3346055... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41956/"
] |
394,829 | <p>I have written a very simple WCF Service that sends and receives messages. I have tested the app through the VS 2008 default web server host and everything works fine. But when I deploy the WCF service to another computer's IIS I receive the following error:</p>
<p><strong>"The request for security token could not ... | [
{
"answer_id": 799654,
"author": "Mark",
"author_id": 2760,
"author_profile": "https://Stackoverflow.com/users/2760",
"pm_score": 5,
"selected": false,
"text": "<endpoint address=\"\" \n binding=\"wsHttpBinding\" \n contract=\"HelloWorldService.IService1\"\n bi... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34623/"
] |
394,844 | <p>This problem is from a solved problem in my old question, which is from:
<a href="https://stackoverflow.com/questions/394763/c-inserting-2d-array-object-into-another-2d-array-object">C++ Inserting 2D array Object into another 2D array Object</a></p>
<p>But also created a new problem for me. Please read the question... | [
{
"answer_id": 394896,
"author": "marioddd",
"author_id": 49353,
"author_profile": "https://Stackoverflow.com/users/49353",
"pm_score": 1,
"selected": false,
"text": "void Grid::extractArray( int** arr )\n{\n for(int i = 0; i < xGrid ; ++i) {\n for (int j = 0; j < yGrid ; ++j) {\n ... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,850 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/171970/how-can-i-find-the-method-that-called-the-current-method">How can I find the method that called the current method?</a></p>
</blockquote>
<p>I need a way to know the name of calling methods in C#.</p>
<p>F... | [
{
"answer_id": 394852,
"author": "Andrew Robertson",
"author_id": 40167,
"author_profile": "https://Stackoverflow.com/users/40167",
"pm_score": 7,
"selected": true,
"text": "using System.Diagnostics;\n\n// get call stack\nStackTrace stackTrace = new StackTrace();\n\n// get calling method... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36446/"
] |
394,853 | <p>the two bits of SQL below get the same result</p>
<pre><code>SELECT c.name, o.product
FROM customer c, order o
WHERE c.id = o.cust_id
AND o.value = 150
SELECT c.name, o.product
FROM customer c
INNER JOIN order o on c.id = o.cust_id
WHERE o.value = 150
</code></pre>
<p>I've seen both styles used as s... | [
{
"answer_id": 394858,
"author": "Ed Guiness",
"author_id": 4200,
"author_profile": "https://Stackoverflow.com/users/4200",
"pm_score": 2,
"selected": false,
"text": "select *\nfrom t1,t2\n"
},
{
"answer_id": 394876,
"author": "Cruachan",
"author_id": 7315,
"author_pr... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49171/"
] |
394,871 | <p>This is about a school assignment so I'm trying to do things by the book. I feel like I'm getting the grips of Java, but good programming practice, design patterns, etc. are all rather new to me.</p>
<p>I've made my model and it works fine. It contains a student class which contains a number of fields with student ... | [
{
"answer_id": 394888,
"author": "Michael Borgwardt",
"author_id": 16883,
"author_profile": "https://Stackoverflow.com/users/16883",
"pm_score": 2,
"selected": false,
"text": "TableModel"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49349/"
] |
394,882 | <p>There are some nice free "image to ASCII art" conversion sites like this one: <a href="http://www.ascii-art.org/" rel="noreferrer">ASCII-art.org</a></p>
<p>How does such an image conversion algorithm work?</p>
<pre>
,
. W ,
... | [
{
"answer_id": 394938,
"author": "daniels",
"author_id": 9789,
"author_profile": "https://Stackoverflow.com/users/9789",
"pm_score": 4,
"selected": false,
"text": "libcaca"
},
{
"answer_id": 395116,
"author": "joel.neely",
"author_id": 3525,
"author_profile": "https:/... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6461/"
] |
394,889 | <p>I have the following scenario
I have a main form as MDI parent and MDI child form, the child form shows a new form (I called it mydialog).
I want to access specific function in the MDI child form from mydialog so I tried to set the Owner property in the mydialog object but exception occured (circular reference exce... | [
{
"answer_id": 394892,
"author": "Leon Tayson",
"author_id": 18413,
"author_profile": "https://Stackoverflow.com/users/18413",
"pm_score": 0,
"selected": false,
"text": "public MyDialog(object param1)\n"
},
{
"answer_id": 394914,
"author": "Preets",
"author_id": 41766,
... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42749/"
] |
394,898 | <p>I came across <a href="http://www.cs.umd.edu/%7Epugh/java/memoryModel/DoubleCheckedLocking.html" rel="noreferrer">this</a> article discussing why the double-check locking paradigm is broken in Java. Is the paradigm valid for .NET (in particular, C#), if variables are declared <code>volatile</code>?</p>
| [
{
"answer_id": 394918,
"author": "Michael Borgwardt",
"author_id": 16883,
"author_profile": "https://Stackoverflow.com/users/16883",
"pm_score": 3,
"selected": false,
"text": "private static Singleton instance = new Singleton();\n"
},
{
"answer_id": 2909299,
"author": "David ... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47161/"
] |
394,900 | <p>I have a class which is not thread safe:</p>
<pre><code>class Foo {
/* Abstract base class, code which is not thread safe */
};
</code></pre>
<p>Moreover, if you have foo1 and foo2 objects, you cannot call foo1->someFunc() until foo2->anotherFunc() has returned (this can happen with two threads). This is the... | [
{
"answer_id": 394903,
"author": "kshahar",
"author_id": 33982,
"author_profile": "https://Stackoverflow.com/users/33982",
"pm_score": 0,
"selected": false,
"text": "//! Give some time to the other threads\nstatic void YieldThread()\n{\n#ifdef _WIN32\n Sleep(10);\n#endif //_WIN32\n}\n... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33982/"
] |
394,908 | <p>I'm designing a game server and I have never done anything like this before. I was just wondering what a good structure for a packet would be data-wise? I am using TCP if it matters. Here's an example, and what I was considering using as of now:</p>
<p>(each value in brackets is a byte)</p>
<pre><code>[Packet leng... | [
{
"answer_id": 394930,
"author": "Chad Okere",
"author_id": 48839,
"author_profile": "https://Stackoverflow.com/users/48839",
"pm_score": 2,
"selected": false,
"text": "[action ID][item 1 (sizeof(item 1 bytes)][item 1 (sizeof(item 2 bytes)]...[item n (sizeof(item n bytes)]\n"
},
{
... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49018/"
] |
394,921 | <p>I am writing a (very small) framework for checking pre- and postconditions of methods. Entry points are (they could be easily be methods; that doesn't matter):</p>
<pre><code>public static class Ensures {
public static Validation That {
get { ... }
}
}
public static class Requires {
public stat... | [
{
"answer_id": 395083,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 0,
"selected": false,
"text": "Debug.Assert()"
},
{
"answer_id": 396152,
"author": "configurator",
"author_id": 9536,
"author_pro... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9204/"
] |
394,942 | <p>I am using SimpleModal in jQuery, and I have one confirm dialog. If the result is <code>Yes</code>, I have to call <code>my.php</code> into this dialog. However, I have done the code, and I am still searching for ideas. How can I do it?</p>
<pre><code>$(document).ready(function () {
$('#confirmDialog input.conf... | [
{
"answer_id": 394966,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": " dialog.data.find('.message').html( 'new contents from your ajax data' );\n dialog,data.find('.buttons').remove();\n"
... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
394,947 | <p><em>Let me try rephrasing this:</em></p>
<p>I am looking for a robust RDF store or library with the following features:</p>
<ul>
<li><strong>Named graphs</strong>, or some other form of reification.</li>
<li><strong>Version tracking</strong> (probably at the named graph level).</li>
<li><strong>Privacy</strong> be... | [
{
"answer_id": 2651262,
"author": "castagna",
"author_id": 318257,
"author_profile": "https://Stackoverflow.com/users/318257",
"pm_score": 2,
"selected": false,
"text": "[ id | g | s | p | o | user | timestamp | prev | next ]\n"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42974/"
] |
394,959 | <p>Web browsers are good as thin clients for web applications.</p>
<p>But if the user has to enter some code (where tabs and formatting are important) in an edit box, inside a web browser, he navigates through the webpage controls every time he hits the "tab" key, instead of printing the "tab" character.</p>
<p>Are t... | [
{
"answer_id": 394996,
"author": "PEZ",
"author_id": 44639,
"author_profile": "https://Stackoverflow.com/users/44639",
"pm_score": 2,
"selected": false,
"text": "<html>\n<body>\n<script type=\"text/javascript\">\nfunction keyFilter(e, field) {\n var key = window.event ? e.keyCode : e.wh... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23034/"
] |
394,978 | <p>So I wrote this short script (correct word?) to download the comic images from explosm.net comics because I somewhat-recently found out about it and I want to...put it on my iPhone...3G.</p>
<p>It works fine and all. urllib2 for getting webpage html and urllib for image.retrieve()</p>
<p><strong><em>Why I posted t... | [
{
"answer_id": 47475296,
"author": "Balmipour",
"author_id": 2472389,
"author_profile": "https://Stackoverflow.com/users/2472389",
"pm_score": 0,
"selected": false,
"text": "mkdir -p html/archived\nmkdir png\n"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/394978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51518/"
] |
394,984 | <p>Services default to starting as <code>root</code> at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in <code>/etc/init.d</code>.</p>
<p>What do you think is the best way to instead have the processes run as a (static) user of my choosing?</p>
<p... | [
{
"answer_id": 395013,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 7,
"selected": true,
"text": "start-stop-daemon"
},
{
"answer_id": 395342,
"author": "James Brady",
"author_id": 29903,
"author_profile":... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29903/"
] |
394,989 | <p>How to handle click event of the linkbutton in gridview in vb.net (windows application )</p>
<p>Thanks</p>
| [
{
"answer_id": 395184,
"author": "t3rse",
"author_id": 64,
"author_profile": "https://Stackoverflow.com/users/64",
"pm_score": 4,
"selected": true,
"text": "Dim data As New DataTable()\ndata.Columns.Add(New DataColumn(\"Link\", Type.GetType(\"System.String\")))\nDim newRow As DataRow = d... | 2008/12/27 | [
"https://Stackoverflow.com/questions/394989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49238/"
] |
395,009 | <p>I need to automatically check the style of javascript sources written by different people. Do you know of a good tool to do it? Integration with emacs would be a plus. Thank you in advance.</p>
| [
{
"answer_id": 11445376,
"author": "xuhdev",
"author_id": 1150462,
"author_profile": "https://Stackoverflow.com/users/1150462",
"pm_score": 2,
"selected": false,
"text": ".editorconfig"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49364/"
] |
395,019 | <p>I want to have a textarea that's <code>500px</code>, this is the CSS I use for the textarea:</p>
<pre><code>width: 498px;
padding: 0px;
margin: 0px;
</code></pre>
<p>I noticed IE and Chrome have a <code>1px</code> border by default, on the other hand FF have a <code>2px</code> border which results the textarea to ... | [
{
"answer_id": 395022,
"author": "Dave Markle",
"author_id": 24995,
"author_profile": "https://Stackoverflow.com/users/24995",
"pm_score": 3,
"selected": false,
"text": "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://yui.yahooapis.com/2.6.0/build/reset/reset-min.css\"> \n"
},... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/676066/"
] |
395,030 | <p>Just for review, can someone quickly explain what prevents this from working (on compile):</p>
<pre><code>private HashSet data;
...
public DataObject[] getDataObjects( )
{
return (DataObject[]) data.toArray();
}
</code></pre>
<p>...and what makes this the way that DOES work:</p>
<pre><code>public DataObject... | [
{
"answer_id": 395038,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 6,
"selected": true,
"text": "toArray()"
},
{
"answer_id": 395042,
"author": "Henning",
"author_id": 7034,
"author_profile": "http... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825/"
] |
395,034 | <p>I own a website which contain a lot of freeware stuff to download on it. The problem I'm facing is that people from around the world are taking the direct links
of the files (for example .zip files) and posting them on their websites and general forums. I am getting a huge amount of bandwidth and that's ok, but th... | [
{
"answer_id": 395040,
"author": "Ólafur Waage",
"author_id": 22459,
"author_profile": "https://Stackoverflow.com/users/22459",
"pm_score": 5,
"selected": true,
"text": "$_SERVER['HTTP_REFERER']"
},
{
"answer_id": 395092,
"author": "Brian Kelly",
"author_id": 8252,
"a... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
395,045 | <p>I want to provide a piece of Javascript code that will work on any website where it is included, but it always needs to get more data (or even modify data) on the server where the Javascript is hosted. I know that there are security restrictions in place for obvious reasons.</p>
<p>Consider index.html hosted on xyz... | [
{
"answer_id": 395177,
"author": "James",
"author_id": 21677,
"author_profile": "https://Stackoverflow.com/users/21677",
"pm_score": 5,
"selected": true,
"text": "function getJSON(URL,success){\n var ud = 'json'+(Math.random()*100).toString().replace(/\\./g,'');\n window[ud]= funct... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1606/"
] |
395,051 | <p>I know innerHTML is supposedly evil, but I think it's the simplest way to change link text. For example:</p>
<pre><code><a id="mylink" href="">click me</a>
</code></pre>
<p>In JS you can change the text with:</p>
<pre><code>document.getElementById("mylink").innerHTML = new_text;
</code></pre>
<p>And ... | [
{
"answer_id": 395074,
"author": "Christoph",
"author_id": 48015,
"author_profile": "https://Stackoverflow.com/users/48015",
"pm_score": 3,
"selected": false,
"text": "document.getElementById('mylink').firstChild.nodeValue = new_text;\n"
},
{
"answer_id": 395120,
"author": "s... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
395,053 | <p>I have two templatetags in my app which contain forms which show entries in db. When I alter data or add new entry to db, the forms show the old data. While in admin panel everything is correct (updated). When I restart the server (I mean <code>manage.py runserver</code>) forms show updated db entries. How to make ... | [
{
"answer_id": 30299070,
"author": "user2213295",
"author_id": 2213295,
"author_profile": "https://Stackoverflow.com/users/2213295",
"pm_score": 1,
"selected": false,
"text": "takes_context"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36832/"
] |
395,056 | <p>I want to create a game that will work both locally and online.</p>
<p>My first thought was to create an interface that would have all the methods that will be needed by the GUI for the business logic and then have a network implementation and a local implementation.</p>
<p>This works fine for request-response mes... | [
{
"answer_id": 395179,
"author": "duffymo",
"author_id": 37213,
"author_profile": "https://Stackoverflow.com/users/37213",
"pm_score": 1,
"selected": false,
"text": "public class ExamplePanel extends JPanel implements ActionListener\n{\n private JButton button;\n private ActionList... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2644/"
] |
395,057 | <p>Where would</p>
<pre><code>set_include_path("../../");
</code></pre>
<p>point to?</p>
<p>I am trying to run some PHP code on a standard XAMPP server. And put my stuff into the htdocs folder. The includes point to relative paths, But it does not work. Is there any best-practise for includes? The code has to run on... | [
{
"answer_id": 395100,
"author": "Eineki",
"author_id": 29125,
"author_profile": "https://Stackoverflow.com/users/29125",
"pm_score": 2,
"selected": true,
"text": "ini_set('include_path', 'yourdir');\n"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
395,060 | <p>I drew a little graph in paint that explains my problem:</p>
<p>But it doesn't seem to show up when I use the <code><img></code> tag after posting?</p>
<p>Graph:</p>
<p><a href="https://i.stack.imgur.com/DkI1T.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DkI1T.jpg" alt="http://i44.tiny... | [
{
"answer_id": 395068,
"author": "erikkallen",
"author_id": 47161,
"author_profile": "https://Stackoverflow.com/users/47161",
"pm_score": 3,
"selected": true,
"text": "#include GameSocket.h\nDatabase db(1, 2, 3);\nint main() {\n //whatever\n}\n"
},
{
"answer_id": 395069,
"a... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
395,075 | <p>I've following problem, which I've not been able to do successfully. Your help will be appreciated. I'm using SQL 2005, and trying to do this using CTE.</p>
<p>Table has following 2 columns</p>
<pre><code>DocNum DocEntry
1 234
2 324
2 746
3 876
3 ... | [
{
"answer_id": 395133,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 2,
"selected": false,
"text": "DECLARE @sql AS varchar(max)\nDECLARE @pivot_list AS varchar(max) -- Leave NULL for COALESCE technique\nDECLARE @select_list AS va... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49372/"
] |
395,082 | <p>I don't really <em>FEEL</em> CSS and it doesn't always work as I think it would. </p>
<p>This is one of these situations:</p>
<p>I have a simple (2 rows, 2 columns) asp:table generated dynamically. in the right column it contains a combo box <code>(cell (0, 1))</code> and a label <code>(cell (1,1))</code>. When I ... | [
{
"answer_id": 395091,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": 3,
"selected": true,
"text": "<label>"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40872/"
] |
395,114 | <p>I would like vim to color "long" lines for me. Using 80 columns as an example, I would like to highlight lines that exceed that length. Here is roughly what I think the .vimrc file should contain, although it (1) doesn't work, and (2) uses Perl's regex syntax to illustrate my point, because I don't know Vim's well... | [
{
"answer_id": 395117,
"author": "terminus",
"author_id": 9232,
"author_profile": "https://Stackoverflow.com/users/9232",
"pm_score": 1,
"selected": false,
"text": "hi gitError ctermbg=Red\nmatch gitError /^.*\\s$/\n2match gitError /^.\\{120\\}.*$/\n"
},
{
"answer_id": 395326,
... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14356/"
] |
395,123 | <p>In practice with C++, what is <a href="http://en.wikipedia.org/wiki/Resource_acquisition_is_initialization" rel="noreferrer">RAII</a>, what are <a href="http://en.wikipedia.org/wiki/Smart_pointers" rel="noreferrer">smart pointers</a>, how are these implemented in a program and what are the benefits of using RAII wit... | [
{
"answer_id": 395158,
"author": "Michael Williamson",
"author_id": 49381,
"author_profile": "https://Stackoverflow.com/users/49381",
"pm_score": 9,
"selected": true,
"text": "File file(\"/path/to/file\");\n// Do stuff with file\nfile.close();\n"
},
{
"answer_id": 395181,
"au... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25093/"
] |
395,145 | <p>Is it possible to switch off optimization of a specific function?
A friend of mine has the problem that the gcc optimization makes some (unknown to me) µ-controller-code not work.
We know which functions it is, but we have no clue of the code itself so the easiest and safest way would probably be to just switch it o... | [
{
"answer_id": 395148,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "volatile"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14114/"
] |
395,157 | <p>I want to scrape the user pages of SO to give the owners of my toolbar the updated information on their questions/answers/etc...</p>
<p>This means I need to do this in the background, parse the pages, extract the content, compare it with the last run and then present the results either on the toolbar or the status ... | [
{
"answer_id": 395180,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https://Stackoverflow.com/users/29903",
"pm_score": 1,
"selected": false,
"text": "iframe"
},
{
"answer_id": 431778,
"author": "David Hanak",
"author_id": 42136,
"author_profile": "... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8167/"
] |
395,163 | <p>In jQuery you can get the top position relative to the parent as a number, but you can not get the css top value as a number if it was set in <code>px</code>.<br>
Say I have the following:</p>
<pre><code>#elem{
position:relative;
top:10px;
}
</code></pre>
<pre><code><div>
Bla text bla this takes op... | [
{
"answer_id": 395171,
"author": "M4N",
"author_id": 19635,
"author_profile": "https://Stackoverflow.com/users/19635",
"pm_score": 9,
"selected": true,
"text": "parseInt($('#elem').css('top'));\n"
},
{
"answer_id": 9895063,
"author": "Ivan Castellanos",
"author_id": 80081... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35197/"
] |
395,169 | <p>I am working on an open source C++ project, for code that compiles on Linux and Windows. I use CMake to build the code on Linux. For ease of development setup and political reasons, I must stick to Visual Studio project files/editor on Windows (I can't switch to <a href="http://en.wikipedia.org/wiki/Code::Blocks" re... | [
{
"answer_id": 5397994,
"author": "Red XIII",
"author_id": 339249,
"author_profile": "https://Stackoverflow.com/users/339249",
"pm_score": 3,
"selected": false,
"text": ".projs"
},
{
"answer_id": 9259836,
"author": "Ghita",
"author_id": 413766,
"author_profile": "http... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19501/"
] |
395,195 | <p>i'm trying to figure out how to layout a simple dialog in WPF using the proper <strong>dialog units</strong> (DLUs). </p>
<hr>
<blockquote>
<h2>What's a dialog unit?</h2>
<p>A dialog is a unit of measure based on the user's preferred font size.
A dialog unit is defined such that the <em>average character<... | [
{
"answer_id": 395780,
"author": "Brad Leach",
"author_id": 708,
"author_profile": "https://Stackoverflow.com/users/708",
"pm_score": 3,
"selected": false,
"text": " <Window x:Class=\"VistaLayout.Dialog\"\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n ... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
395,198 | <p>I've been diving into Erlang recently, and I decided to use Mnesia to do my database work given it can store any kind of Erlang data structure without a problem, scale with ease, be used with list comprehensions, etc.</p>
<p>Coming from standard SQL databases, most rows can and should be identified by a primary key... | [
{
"answer_id": 395343,
"author": "Alexey Romanov",
"author_id": 9204,
"author_profile": "https://Stackoverflow.com/users/9204",
"pm_score": 4,
"selected": true,
"text": "{now(), node()}"
},
{
"answer_id": 396185,
"author": "archaelus",
"author_id": 9040,
"author_profi... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35344/"
] |
395,220 | <p>I have been learning to use Emacs for a little while now. So far liking it a lot.</p>
<p>My problem is that for little C codes I prefer using Rake instead of Make. However flymake does not seem to want anything else than Make. As it complains that it can not find Makefile. From the command line Rake is used in the ... | [
{
"answer_id": 402057,
"author": "genehack",
"author_id": 39933,
"author_profile": "https://Stackoverflow.com/users/39933",
"pm_score": 3,
"selected": true,
"text": "(defun flymake-get-make-cmdline (source base-dir)\n (list \"make\"\n (list \"-s\"\n \"-C\"\n base-di... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5601/"
] |
395,232 | <p>I was reading the following article:
<a href="http://msdn.microsoft.com/en-us/magazine/cc817398.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/magazine/cc817398.aspx</a>
"Solving 11 Likely Problems In Your Multithreaded Code" by Joe Duffy</p>
<p>And it raised me a question:
"We need to lock a .NET Int32 whe... | [
{
"answer_id": 395269,
"author": "Ian Boyd",
"author_id": 12597,
"author_profile": "https://Stackoverflow.com/users/12597",
"pm_score": 2,
"selected": false,
"text": "i++;\n"
},
{
"answer_id": 395270,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "ht... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48465/"
] |
395,234 | <p>"make" is not only useful for building your programming project, but it seems to be under-used in other areas.</p>
<p>For example, many shell scripts can be rewritten as Makefiles to allow independent parts to run in parallel (with "make -jXX") to keep all your CPU cores busy, with the explicitly declared dependenc... | [
{
"answer_id": 395544,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 1,
"selected": false,
"text": "make"
},
{
"answer_id": 399870,
"author": "jturner",
"author_id": 50120,
"author_profile": "h... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128202/"
] |
395,237 | <p>I have a View that can vary significantly, depending on the 'mode' a particular user has chosen.</p>
<p>I thought I would extract the different behavior into two different Helpers, and then have code like this in the Controller:</p>
<pre><code>class MyController < ApplicationController
case mode
when 'mode1'
... | [
{
"answer_id": 395544,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 1,
"selected": false,
"text": "make"
},
{
"answer_id": 399870,
"author": "jturner",
"author_id": 50120,
"author_profile": "h... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44317/"
] |
395,247 | <p>Anybody have good examples of usability disasters?</p>
<p>Here's an example. Hector is a manager with a large team. Department admin wants to send Hector a spreadsheet with his team's salaries. She types "Hector" in the Outlook "To:" field. It autocompletes to "Hector's Team" but she doesn't notice that until after... | [
{
"answer_id": 395282,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https://Stackoverflow.com/users/29903",
"pm_score": 6,
"selected": true,
"text": "<blink>"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
395,256 | <p>I am working on a Windows Forms application in VS 2008, and I want to display one image over the top of another, with the top image being a gif or something with transparent parts.</p>
<p>Basically I have a big image and I want to put a little image on top if it, so that they kinda appear as one image to the user.<... | [
{
"answer_id": 395300,
"author": "Jon Grant",
"author_id": 18774,
"author_profile": "https://Stackoverflow.com/users/18774",
"pm_score": 2,
"selected": false,
"text": "PictureBox"
},
{
"answer_id": 434706,
"author": "Leon Tayson",
"author_id": 18413,
"author_profile":... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30025/"
] |
395,261 | <p>I know that Hpricot is still a standard but I remember hearing about a faster more expressive HTML parser for Ruby.</p>
<p>Does anybody know what it's called and if it is worth switching to from Hpricot??</p>
<p>Thanks in advance</p>
| [
{
"answer_id": 395324,
"author": "Wes Oldenbeuving",
"author_id": 4187,
"author_profile": "https://Stackoverflow.com/users/4187",
"pm_score": 5,
"selected": true,
"text": "hpricot:html:doc 48.930000 3.640000 52.570000 ( 52.900035)\nhpricot2:html:doc 4.500000 0.020000 4.520000 ( 4.518... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38354/"
] |
395,262 | <p>What would be the jquery equivalent for list.detect in prototype?</p>
| [
{
"answer_id": 395299,
"author": "Tautologistics",
"author_id": 44481,
"author_profile": "https://Stackoverflow.com/users/44481",
"pm_score": 2,
"selected": false,
"text": "jQuery.inArray(value, array);\n"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49396/"
] |
395,271 | <p>Still new to Objective C, and I'm having some trouble that I just can't seem to figure out on my own. The error occurs twice for each of the first three @properties below, and is:
error: "syntax error before ')' token".</p>
<pre><code>#import <Foundation/Foundation.h>
@interface PolygonShape : NSObject {... | [
{
"answer_id": 395683,
"author": "Ashley Clark",
"author_id": 4556,
"author_profile": "https://Stackoverflow.com/users/4556",
"pm_score": 2,
"selected": true,
"text": "setNumberOfSides:"
},
{
"answer_id": 397306,
"author": "Chris Hanson",
"author_id": 714,
"author_pro... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29297/"
] |
395,275 | <p>I am trying to design an object model (for C#), and can't work out the best way to store the data. I'll try to use a simple example to illustrate this!</p>
<p>I have an object "pet", which could be one of, "cat", "dog" etc. So I have created an "pet" class with a "petType" enum to store this.</p>
<p>Now this is wh... | [
{
"answer_id": 395302,
"author": "abatishchev",
"author_id": 41956,
"author_profile": "https://Stackoverflow.com/users/41956",
"pm_score": 3,
"selected": true,
"text": "interface IPet { }\n\nclass Cat : IPet\n{\n public void eat(CommonFood food) { }\n public void eat(CatFood food) ... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30025/"
] |
395,286 | <p>I like the Stack Overflow comment UI a great deal and I'm looking into implementing the same thing on my own website. I looked at the code and it looks like the main tool here is <a href="http://wmd-editor.com/" rel="nofollow noreferrer">WMD</a>, with the JQuery <a href="http://plugins.jquery.com/project/TextAreaRe... | [
{
"answer_id": 395964,
"author": "Jeduan Cornejo",
"author_id": 33560,
"author_profile": "https://Stackoverflow.com/users/33560",
"pm_score": 3,
"selected": false,
"text": "wmd_options = {\n //Markdown or HTML\n output: \"Markdown\"\n };\n"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
395,317 | <p>I am trying to test that a particular method throws an expected exception from a method. As per JUnit4 documentation and <a href="https://stackoverflow.com/questions/156503/how-to-assert-that-a-certain-exception-is-thrown-in-junit45-tests">this answer</a> I wrote the test as:</p>
<pre><code>@Test(expected=CannotUnd... | [
{
"answer_id": 395334,
"author": "duffymo",
"author_id": 37213,
"author_profile": "https://Stackoverflow.com/users/37213",
"pm_score": 0,
"selected": false,
"text": "public class UndoCommand\n{\n public void undo()\n {\n throw new CannotUndoException();\n }\n}\n"
},
{... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4120/"
] |
395,321 | <p>I've got the following Generic usercontrol declared:</p>
<pre><code>public partial class MessageBase<T> : UserControl
{
protected T myEntry;
public MessageBase()
{
InitializeComponent();
}
public MessageBase(T newEntry)
{
InitializeCo... | [
{
"answer_id": 395344,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": "Type"
},
{
"answer_id": 395446,
"author": "rnwood",
"author_id": 49419,
"author_profile": "https:... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5648/"
] |
395,340 | <p>I have the following classes: Ingredients, Recipe and RecipeContent...</p>
<pre><code>class Ingredient(models.Model):
name = models.CharField(max_length=30, primary_key=True)
qty_on_stock = models.IntegerField()
def __unicode__(self):
return self.name
class Recipe(models.Model):
name = mod... | [
{
"answer_id": 395347,
"author": "jb.",
"author_id": 37522,
"author_profile": "https://Stackoverflow.com/users/37522",
"pm_score": 6,
"selected": true,
"text": "class RecipeContent(models.Model):\n ...\n def __unicode__(self):\n # You can access ForeignKey properties through the fie... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48540/"
] |
395,377 | <p>I'm using an AMP server (Apache 1.3, MySQL 5.0, PHP 5.1.5) which I have found to only allow 1 connection/request per browser at one time. The easiest way to reporduce this is to request a large download which is passed through PHP and try to access another page at the same time. You will end up waiting for the first... | [
{
"answer_id": 395404,
"author": "Tom Haigh",
"author_id": 22224,
"author_profile": "https://Stackoverflow.com/users/22224",
"pm_score": 2,
"selected": false,
"text": "session_write_close()"
}
] | 2008/12/27 | [
"https://Stackoverflow.com/questions/395377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
395,379 | <p>I'm having a strange problem when retrieving JSON formatted text. I use jQuery <code>post</code> to send some data (also JSON formatted) to the server (running PHP) which works fine. Then, when I request the same data from the server using jQuery <code>get</code>, the callback method never executes. This only occurs... | [
{
"answer_id": 395390,
"author": "ThoKra",
"author_id": 38254,
"author_profile": "https://Stackoverflow.com/users/38254",
"pm_score": 1,
"selected": false,
"text": "<?php\n$string = 'asdfasf<br />asdfasf';\necho str_replace('<br />', '', $strin); // Replace <br /> with '' (nothing)\n?>\n... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4055/"
] |
395,388 | <p>I'm a configuration manager and I'm working on Windows and UNIX environments.
Currently, I have to create the views by myself for the developers and QA engineers.
Is there any better approach?</p>
<p>Thanks.</p>
| [
{
"answer_id": 395479,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 0,
"selected": false,
"text": "newview -p /work5/atria bug129201\n"
},
{
"answer_id": 395498,
"author": "VonC",
"author_id": 630... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
395,401 | <p>I wish to print a <code>Stack<Integer></code> object as nicely as the Eclipse debugger does (i.e. <code>[1,2,3...]</code>) but printing it with <code>out = "output:" + stack</code> doesn't return this nice result.</p>
<p>Just to clarify, I'm talking about Java's built-in collection so I can't override its <co... | [
{
"answer_id": 395403,
"author": "Zach Langley",
"author_id": 45230,
"author_profile": "https://Stackoverflow.com/users/45230",
"pm_score": 9,
"selected": true,
"text": "Arrays.toString(Object[])"
},
{
"answer_id": 395407,
"author": "Chinnery",
"author_id": 31892,
"au... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/55094/"
] |
395,402 | <p>I have some old perl code which recently stopped working on a FreeBSD box. The code which fails looks (in simplest form) like this:</p>
<pre><code>#!/usr/local/bin/perl -w
use strict;
use DBI;
my $datasource = "DBI:mysql:dbname:hostname.domain.com";
my $user = "username";
my $pass = "password";
DBI->connect(... | [
{
"answer_id": 395413,
"author": "max",
"author_id": 49407,
"author_profile": "https://Stackoverflow.com/users/49407",
"pm_score": 2,
"selected": false,
"text": "make config"
},
{
"answer_id": 395414,
"author": "Community",
"author_id": -1,
"author_profile": "https://... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36754/"
] |
395,424 | <p>Greetings.</p>
<p>1 - Let's say I have about 500 folders of variable size with a total size of 100 GB.</p>
<p>2 - I want to distribute these folders automatically in other folders until the size of 700 MB is reached with the best optimization of space.</p>
<p>Example: In folder "CD--01" I want to have the maximum... | [
{
"answer_id": 395491,
"author": "frankodwyer",
"author_id": 42404,
"author_profile": "https://Stackoverflow.com/users/42404",
"pm_score": 0,
"selected": false,
"text": "tar cvzf allfolders.tgz ./allfolders\nsplit allfolders.tgz -b 700m\n"
},
{
"answer_id": 395696,
"author": ... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49416/"
] |
395,430 | <p>Okay, I have this program and I don't want more than one instance of it running. So what I have right now is it grabs all instances that match it's name, and if there are more than one it quits and lets the user know it's already running in another instance.</p>
<p>However, there is a special case in which the new ... | [
{
"answer_id": 395516,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": " program start\n try to acquire mutex (or semaphore)\n if failed\n send message via message queue to running prog... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12243/"
] |
395,431 | <p>I am working on a legacy system and have introduced fluent nHibernate but have one last mapping that I can not seem to get working.</p>
<p>Code:</p>
<pre><code>public class Permit
{
public int PermitId { get; set; }
public char Discipline { get; set; }
public PermitDetails PermitDetails { get; set;... | [
{
"answer_id": 395516,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": " program start\n try to acquire mutex (or semaphore)\n if failed\n send message via message queue to running prog... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37723/"
] |
395,432 | <p>I have this on line 56 in my environment.rb:</p>
<pre><code>I18n.load_path += Dir[ File.join(RAILS_ROOT, 'lib', 'locale', '*.{rb,yml}') ]
</code></pre>
<p>I can run the app just fine, but when I try to run:
script/generate migration</p>
<p>I get this error:</p>
<pre><code>environment.rb:56: uninitialized constan... | [
{
"answer_id": 396360,
"author": "swenson",
"author_id": 10524,
"author_profile": "https://Stackoverflow.com/users/10524",
"pm_score": 2,
"selected": true,
"text": "active_support"
},
{
"answer_id": 396743,
"author": "Lau",
"author_id": 4025,
"author_profile": "https:... | 2008/12/27 | [
"https://Stackoverflow.com/questions/395432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4025/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.