body stringlengths 25 86.7k | comments list | answers list | meta_data dict | question_id stringlengths 1 6 |
|---|---|---|---|---|
<p>I am not a big fan of JS, but have been forced to use it in this situation for various reasons.</p>
<p>My task: Download a URL to a target file, and update another part of the application with the current percentage.</p>
<p>I've run jslint and jshint over the code, and it seems happy, but I am sure there is still ... | [] | [
{
"body": "<p>From a once over and reading some docs:</p>\n\n<ul>\n<li>You need a <code>resp.on('error', function () {}</code> to deal with http errors</li>\n<li>You need a <code>tmpFile.on('error', function () {}</code> to deal with fs/stream errors</li>\n<li><code>tmpFile</code> is an unfortunate name, i woul... | {
"AcceptedAnswerId": "42170",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T16:39:43.913",
"Id": "41983",
"Score": "8",
"Tags": [
"javascript",
"beginner",
"node.js",
"http"
],
"Title": "Download a file and update the current downloaded percentage"... | 41983 |
<p>I have created a simple class that maintains a pool (with maximum size) of objects. It acts like a connection pool (that is where the name came from - initially it was used just to maintain a pool of SMTP connections). When an item is retrieved - if the pool is not empty, a value is retrieved from it; if it is empty... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T18:29:04.670",
"Id": "72346",
"Score": "1",
"body": "Given this is for .NET, I would make this connection pool behave the same as other connection pools in the framework. ConnectionType.Open() transparently creates a new connection... | [
{
"body": "<ol>\n<li><p>I think that syntax like <code>ConnectionPool<SmtpClient>.RetrieveAsync()</code> is more natural than your syntax. If you switch to that, you can probably eliminate the <code>ConnectionPool</code>/<code>ConnectionPoolWrapper</code> separation when it comes to <code>static</code> me... | {
"AcceptedAnswerId": null,
"CommentCount": "3",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T17:20:16.477",
"Id": "41986",
"Score": "4",
"Tags": [
"c#",
"connection-pool"
],
"Title": "Generic object pool - what should be changed to make it easier to understand?"
} | 41986 |
<p>I have a JPanel (mainPanel) with <code>CardLayout</code> which contains 4 JPanels (childPanel).</p>
<p>Each <code>childPanel</code> contains:</p>
<ul>
<li>a JPopupMenu with 4 JMenuItems to switch between the childPanels (First,Last,Next,Previous)</li>
<li>a label with the time when it got visible</li>
<li>a <code>... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T17:38:06.150",
"Id": "72333",
"Score": "0",
"body": "kreirajCrveniPanel()\nkreirajPlaviPanel() \nand so on are identical for the different panels, but i would like to make 1 function that handles all 4 since the code is the same"
... | [
{
"body": "<p>I found the answer and have posted it in case someone has a similar problem:</p>\n\n<p>I created a class that extends JPanel like this:</p>\n\n<pre><code>public class CardPanel extends JPanel{\n private JPopupMenu menu;\n private JLabel label;\n private JToggleButton button;\n private ... | {
"AcceptedAnswerId": null,
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T17:28:46.327",
"Id": "41988",
"Score": "7",
"Tags": [
"java",
"swing"
],
"Title": "Card layout in Java"
} | 41988 |
<p>I currently have a <code>ResourceManager</code> class which is responsible for searching for resources with a given identifier, returning a reference counted pointer to the resource if a valid resource is found, and instantiating a new object if none has been found. Often a resource itself depends on other resources... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T18:19:33.580",
"Id": "72339",
"Score": "0",
"body": "I'm not certain if this question should be on Programmers StackOverflow. I only mention that since you might get more answers there. I voted you up since it was a good question an... | [
{
"body": "<p><strong>Preface:</strong> these are just my personal opinions based on experience.</p>\n\n<h2>Don't force the user of the class to remember to do stuff</h2>\n\n<p>The <code>setContext(const char*)</code> method is a method which the user of the class is required to call to have proper operation. A... | {
"AcceptedAnswerId": "42005",
"CommentCount": "3",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T17:51:04.010",
"Id": "41989",
"Score": "7",
"Tags": [
"c++",
"game",
"c++11",
"sdl"
],
"Title": "Using ID's with a \"scope\" -like hierarchy"
} | 41989 |
<p>This block of code is already somewhat optimized thanks to <a href="https://stackoverflow.com/q/21269833/68063">some</a> <a href="https://stackoverflow.com/questions/21838278/improve-performance-of-function-without-parallelization">answers</a> given over at Stack Overflow. In the last question I made (<a href="https... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T18:55:37.560",
"Id": "72350",
"Score": "1",
"body": "What is this code supposed to do? What problem are you solving?"
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T18:58:41.157",
"Id": "72352",
... | [
{
"body": "<p>Well, some things I noticed:</p>\n\n<pre><code> # Define factors.\n a_01, a_11 = max(elem[1], 1e-10), max(elem[3], 1e-10)\n a_02, a_12 = array2[:,1], array2[:,3]\n</code></pre>\n\n<p><code>a_02</code> and <code>a_12</code> are static across the loop, no need to redefine them every time. <... | {
"AcceptedAnswerId": "42130",
"CommentCount": "2",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T18:25:18.960",
"Id": "41993",
"Score": "10",
"Tags": [
"python",
"performance",
"array",
"numpy"
],
"Title": "Improve performance of math function applied to arrays"
} | 41993 |
<p>The goals for the code below are in the class summary below. Can anyone see that the code fails at any of those goals? I'm unsure how to thoroughly test it. Is there a way to keep the Queue method thread-safe and remove the lock? Is that lock even necessary?</p>
<pre><code>/// <summary>
/// The goals: only ru... | [] | [
{
"body": "<p><strong>Don't change the locks</strong> - You lock on <code>_task</code>, but inside the synchronized block - you change the reference to <code>_task</code> to a new object! This means that if <code>threadA</code> is in the block, <code>threadB</code> is waiting for the lock to release, and <code>... | {
"AcceptedAnswerId": "42194",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T19:06:20.683",
"Id": "41997",
"Score": "2",
"Tags": [
"c#",
"thread-safety",
"task-parallel-library"
],
"Title": "Run the most recently requested action after finishing current... | 41997 |
<p>The function itself is just returning as <code>void</code>. But, the point of the posted code is not about what the function is returning. It is the code related to using T-SQL and C# to return data from a SQL database that I would like reviewed. Especially the way the <code>using</code> statements are structured.</... | [] | [
{
"body": "<p>First of all, kudos for using a <code>Parameter</code> and not concatenating the value into your T-SQL string.</p>\n\n<p>You're not disposing all <code>IDisposable</code> objects. <code>SqlDataReader</code> should be disposed as well. Now this makes it quite a bunch of nested <code>using</code> sc... | {
"AcceptedAnswerId": "41999",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T19:12:08.283",
"Id": "41998",
"Score": "3",
"Tags": [
"c#",
"sql-server",
"ado.net"
],
"Title": "Return office details from multiple tables"
} | 41998 |
<pre><code>public class Office
{
private Int32 _SyncID;
private string _OfficeName;
#region Properties
public Int32 SyncID
{
get { return _SyncID; }
set { _SyncID = value; }
}
public string OfficeName
{
get { return _OfficeName; }
set { _OfficeName = valu... | [] | [
{
"body": "<p>The current code will ensure that the list has only one entry (i.e. the last one) ...</p>\n\n<pre><code>results = new List<Office>();\nresults.Add(office);\n</code></pre>\n\n<p>... because invoking <code>results = new List<Office>()</code> will discard any previous list elements.</p>\n... | {
"AcceptedAnswerId": "42007",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T20:14:20.227",
"Id": "42001",
"Score": "-1",
"Tags": [
"c#",
"sql-server",
"asp.net-mvc-4"
],
"Title": "Class for Managing Office Details"
} | 42001 |
<p>Simple post and download web app in Bottle:</p>
<p><strong>server.py</strong></p>
<pre class="lang-python prettyprint-override"><code>import sys
import bottle
from bottle import request, response
import pymongo
import gridfs
from bson.objectid import ObjectId
import mimetypes
mimetypes.init()
# Mongo Con... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T22:17:40.657",
"Id": "72396",
"Score": "1",
"body": "It's on-topic now, but would be a better question if you edited it to include some of the information described in [What makes a good question?](http://meta.codereview.stackexchan... | [
{
"body": "<h2>Global</h2>\n\n<p>You're hard coding the URL to your Mongo instance; it might be better to load it from a settings file. You're also not performing any authentication, though we'll assume that you have your firewalls properly set up, I guess. Some people prefer opening a new connection per reques... | {
"AcceptedAnswerId": "42197",
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T20:37:19.060",
"Id": "42006",
"Score": "0",
"Tags": [
"python",
"python-2.x",
"web-services",
"mongodb",
"bottle"
],
"Title": "Upload document to mongodb"
} | 42006 |
<p>An interval is a data structure that represents a range (start & end, from & to, or min & max, etc.). An <a href="http://en.wikipedia.org/wiki/Interval_tree" rel="noreferrer">Interval Tree</a> stores these intervals in a sorted tree structure that makes searching for range intersections much faster. Inte... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-04-06T18:26:48.250",
"Id": "81200",
"Score": "2",
"body": "You are misusing the range notation. The range `[10,20]` does in fact intersect with `[20,30]`. What you probably mean is that the range `(10,20]` does not intersect with `(20,30]... | [
{
"body": "<p>If you are testing the functionality of your code, you should create unit test. I am referencing this part of your code :</p>\n\n<pre><code>public static void main(String[] args) {\n IntervalSearchTree intervalSearchTree = new IntervalSearchTree();\n intervalSearchTree.add(17, 19);\n... | {
"AcceptedAnswerId": null,
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T20:38:19.127",
"Id": "42008",
"Score": "8",
"Tags": [
"java",
"algorithm",
"tree",
"interval"
],
"Title": "Interval search tree"
} | 42008 |
<pre><code>public class MergeSort {
public static void sort(int[] array, int lo, int hi) {
if (hi <= lo) {
return;
}
int mid = lo + (hi - lo) / 2;
sort(array, lo, mid);
sort(array, mid + 1, hi);
mergesort(array, lo, mid, hi);
}
private static... | [] | [
{
"body": "<h2>General comments</h2>\n\n<ul>\n<li><p>you have 'good' mid-finding code: <code>int mid = lo + (hi - lo) / 2;</code> This is fancy code, and, if you have not learned why it is done this way, then you should <a href=\"http://googleresearch.blogspot.ca/2006/06/extra-extra-read-all-about-it-nearly.htm... | {
"AcceptedAnswerId": "42015",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T20:40:47.963",
"Id": "42009",
"Score": "5",
"Tags": [
"java",
"sorting",
"mergesort"
],
"Title": "Is this merge sort code good enough?"
} | 42009 |
<p>I am building an Administration web site for the Office details in my database. Right now, I am just trying to display the office details.</p>
<pre><code>public class OfficeRepository
{
public static Office GetOffice(int syncID)
{
List<Office> results = new List<Office>();
var s... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T20:59:38.317",
"Id": "72378",
"Score": "0",
"body": "Could you include a short description of what this code does? It will help with the reviewing process."
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-0... | [
{
"body": "<p>You may want your properties to be <code>private set</code> so that they can't be changed from the outside:</p>\n\n<pre><code>public class Office\n{\n public Int32 SyncID { get; private set; }\n public string OfficeName { get; private set; }\n}\n</code></pre>\n\n<p>To do that you can make Ge... | {
"AcceptedAnswerId": "42014",
"CommentCount": "3",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T20:56:38.690",
"Id": "42012",
"Score": "2",
"Tags": [
"c#",
"sql-server",
"asp.net-mvc-4"
],
"Title": "Returns Office Details from Database"
} | 42012 |
<p>In the following contrived example, I have a collection of <code>PropertyManager</code>s that each contains selector and assigner delegates to read from and write to a property on the generic type. It feels clunky for lots of reasons, not least of which is that both delegates are basically there to serve the same pu... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-22T19:02:22.503",
"Id": "73241",
"Score": "0",
"body": "Why are you testing a function of your test class?"
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-25T16:14:22.593",
"Id": "73704",
"Score": "... | [
{
"body": "<p>Yup, it is possible, but you'll have to delve into the dark world of <a href=\"http://msdn.microsoft.com/en-us/library/bb397951.aspx\" rel=\"nofollow\">Expression Trees</a>.</p>\n\n<p>This function creates getter and setter functions using the <code>out</code> parameters. It's ugly, and you usuall... | {
"AcceptedAnswerId": null,
"CommentCount": "2",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T21:38:44.133",
"Id": "42016",
"Score": "2",
"Tags": [
"c#",
"generics",
"delegates"
],
"Title": "Delegate that selects a writable property on a generic"
} | 42016 |
Pathfinding or pathing is the plotting of the shortest route between two points. It is a more practical variant on solving mazes. This field of research is based heavily on Dijkstra's algorithm for finding the shortest path on a weighted graph. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:11:35.493",
"Id": "42022",
"Score": "0",
"Tags": null,
"Title": null
} | 42022 |
<p>I threw together a small solution for my organization today for some basic data review and approval procedures. This particular application will likely not change or add functionality at any time.</p>
<p>My question as I was coding the application was, does this need to be decoupled? Are there any opportunities f... | [] | [
{
"body": "<p>I think the answer to you question mainly lies in the level of faith you have in your statement that \"this particular application will likely not change or add functionality at any time.\" In my experience, its only a matter of time before somebody asks \"wouldn't it be nice if...\" or the busin... | {
"AcceptedAnswerId": "42094",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:13:13.890",
"Id": "42023",
"Score": "16",
"Tags": [
"c#",
"design-patterns",
".net",
"winforms"
],
"Title": "Is decoupling necessary for very small applications?"
} | 42023 |
Computer data logging is the process of recording events in a computer program, usually with a certain scope, in order to provide an audit trail that can be used to understand the activity of the system and to diagnose problems. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:17:03.080",
"Id": "42026",
"Score": "0",
"Tags": null,
"Title": null
} | 42026 |
<p>An umbrella term for methods and algorithms to synchronize multithreaded environments or other forms of distributed system without using locks.</p>
<p>The necessity for lock-free software architectures arises mainly from performance and scalability issues with using locks for synchronization: Because of the atomici... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 4.0",
"CreationDate": "2014-02-18T23:41:38.963",
"Id": "42028",
"Score": "0",
"Tags": null,
"Title": null
} | 42028 |
An umbrella term for methods and algorithms to synchronize multithreaded environments or other forms of distributed system without using locks. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:41:38.963",
"Id": "42029",
"Score": "0",
"Tags": null,
"Title": null
} | 42029 |
<p>I wrote the following simple Perl script to read lines from <code>stdin</code> that are the output from a <code>psql</code> call that returns lines of the form <code>key1 | key2 | long text field</code> and create a separate output file for each line, whose name is key1_key2_NNN.txt, where NNN is just a counter to e... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:58:48.040",
"Id": "72411",
"Score": "4",
"body": "Why would you want to parse `psql` output instead of using `DBI` to query the database directly?"
}
] | [
{
"body": "<p>I don't know if this is the complete script, but the absence of <code>use strict; use warnings</code> is pretty noticeable. Always use these as a basic safety net, no matter how small or simple your program.</p>\n\n<hr>\n\n<p>Your usage of the regex <code>/(.*)\\|(.*)\\|(.*)/</code> can be improve... | {
"AcceptedAnswerId": "42088",
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:41:47.143",
"Id": "42030",
"Score": "3",
"Tags": [
"parsing",
"perl"
],
"Title": "Parsing psql output into multiple files"
} | 42030 |
<p>Modules are simply just a convenient way to break down the main problem and divided into many sub problems/solutions. This way the main problem can be broken down into solutions that a team can work on. A module could consist of a the printing functionality of program. This can be handed to one programmer. The GUI (... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:42:25.467",
"Id": "42031",
"Score": "0",
"Tags": null,
"Title": null
} | 42031 |
A logical subdivision of a larger, more complex system. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:42:25.467",
"Id": "42032",
"Score": "0",
"Tags": null,
"Title": null
} | 42032 |
Code that handles a condition (normally an error condition) triggered when an event fails to occur within a predefined time limit. For discussing inefficient code that takes an unreasonable amount of time to finish, use the [time-limit-exceeded] tag instead. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:42:56.937",
"Id": "42034",
"Score": "0",
"Tags": null,
"Title": null
} | 42034 |
<p><strong>Property</strong>, in some object-oriented programming languages, is a special sort of class member, intermediate between a field (or data member) and a method. </p>
<p>Properties are read and written like fields, but property reads and writes are (usually) translated to get and set method calls. The field-... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:43:31.987",
"Id": "42035",
"Score": "0",
"Tags": null,
"Title": null
} | 42035 |
<p>Pagination is the process of dividing information into discrete pages. Pagination is often used for the purpose of printing or searching information.</p>
| [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:44:06.257",
"Id": "42037",
"Score": "0",
"Tags": null,
"Title": null
} | 42037 |
Pagination is the process of dividing information into discrete pages. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:44:06.257",
"Id": "42038",
"Score": "0",
"Tags": null,
"Title": null
} | 42038 |
<p><strong><a href="https://developers.google.com/appengine/" rel="nofollow">Google App Engine</a></strong> is a cloud computing technology for hosting web applications in Google-managed data centers.</p>
<p>Google App Engine lets you run your web applications on Google's infrastructure;
applications are easy to buil... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:45:30.997",
"Id": "42039",
"Score": "0",
"Tags": null,
"Title": null
} | 42039 |
Google App Engine is a cloud computing technology for hosting web applications in Google-managed data centers. Google App Engine is a Platform as a Service (PaaS) offering for Java, Python, Go (experimental) and PHP (beta). | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:45:30.997",
"Id": "42040",
"Score": "0",
"Tags": null,
"Title": null
} | 42040 |
Data is any form of information that can be used by a process, service, or application. This is generic terminology - consider a more specific taxonomy when posting. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:46:19.360",
"Id": "42042",
"Score": "0",
"Tags": null,
"Title": null
} | 42042 |
A software application that services requests from clients using a data transfer protocol. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:47:21.347",
"Id": "42044",
"Score": "0",
"Tags": null,
"Title": null
} | 42044 |
<p>Transmission Control Protocol (TCP) is a transport layer protocol that provides a connection-oriented data stream service with guaranteed, in-order delivery on top of the underlying packet-oriented, unreliable IP layer. TCP is referred to as a <em>connection-oriented</em> protocol. This is opposed to UDP, which offe... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:47:51.473",
"Id": "42045",
"Score": "0",
"Tags": null,
"Title": null
} | 42045 |
Transmission Control Protocol (TCP) is a transport layer protocol that provides a connection-oriented data stream service with guaranteed, in-order delivery. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:47:51.473",
"Id": "42046",
"Score": "0",
"Tags": null,
"Title": null
} | 42046 |
Event handling is a coding pattern related to acting on messages between a source and one or more subscribers. A point listener in the source provides a way in which subscribed code can consume messages raised from the source. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:49:02.277",
"Id": "42048",
"Score": "0",
"Tags": null,
"Title": null
} | 42048 |
<p>Express is a minimal and flexible Node.js web application framework, providing a robust set of features (regex-based routing, sessions, multiple view / templating engines) for building single and multi-page, and hybrid web applications.</p>
<p>It uses <a href="http://www.senchalabs.org/connect/" rel="nofollow">Conn... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:51:02.690",
"Id": "42049",
"Score": "0",
"Tags": null,
"Title": null
} | 42049 |
Express is a minimal and flexible Node.js web application framework, providing a robust set of features (regex-based routing, sessions, multiple view / templating engines) for building single and multi-page, and hybrid web applications. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-18T23:51:02.690",
"Id": "42050",
"Score": "0",
"Tags": null,
"Title": null
} | 42050 |
<p><em>Authentication</em> is the process of determining whether someone or something is, in fact, who or what it is declared to be - the act of confirming the truth of an attribute of a datum or entity. This might involve confirming the identity of a person or software program, tracing the origins of an artifact, or e... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:00:51.090",
"Id": "42052",
"Score": "0",
"Tags": null,
"Title": null
} | 42052 |
Authentication is the process of determining whether someone or something is, in fact, who or what it is declared to be. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:00:51.090",
"Id": "42053",
"Score": "0",
"Tags": null,
"Title": null
} | 42053 |
<p>Operator overloading is a feature of some programming languages that allows custom implementations for operators depending on the types of the operands involved. Some languages allow new operators to be defined while others only allow redefinition of existing ones.</p>
<p>More information on <a href="http://en.wik... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:04:05.700",
"Id": "42054",
"Score": "0",
"Tags": null,
"Title": null
} | 42054 |
Operator overloading is a feature of some programming languages that allows custom implementations for operators depending on the types of the operands involved. Some languages allow new operators to be defined while others only allow redefinition of existing ones. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:04:05.700",
"Id": "42055",
"Score": "0",
"Tags": null,
"Title": null
} | 42055 |
<h2>Wiki</h2>
<p><strong><code>Electronic mail</code></strong>, commonly called email or <strong><code>e-mail</code></strong>, is a method of exchanging digital messages from an author to one or more recipients.</p>
<p>Modern email operates <strong>across the Internet</strong> or other computer networks. Some early e... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:05:22.970",
"Id": "42056",
"Score": "0",
"Tags": null,
"Title": null
} | 42056 |
Method of exchanging digital messages from an author to one or more recipients. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:05:22.970",
"Id": "42057",
"Score": "0",
"Tags": null,
"Title": null
} | 42057 |
<p>The <code>.htaccess</code> file is a configuration file for the Apache web server, allowing configuration settings to be made at a directory-specific level, overriding the server-wide or site-level settings in the main Apache server-level configuration. It must be enabled in the server-level configuration to work.</... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:06:14.770",
"Id": "42058",
"Score": "0",
"Tags": null,
"Title": null
} | 42058 |
<p>cURL is primarily a command-line tool for transferring data using several protocols such as HTTP, HTTPS, FTP, FTPS, TFTP, SCP, SFTP, IMAP, POP3, IMAP and FILE. For example, cURL can be used to download a web page and save it to a file:</p>
<pre><code>curl -o curltest.html www.example.com
</code></pre>
<p>curl is p... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:06:44.727",
"Id": "42060",
"Score": "0",
"Tags": null,
"Title": null
} | 42060 |
cURL is a library and command-line tool for transferring data using several protocols such as HTTP, FTP and Telnet. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:06:44.727",
"Id": "42061",
"Score": "0",
"Tags": null,
"Title": null
} | 42061 |
<p>In computing, <a href="http://en.wikipedia.org/wiki/Layout_%28computing%29" rel="nofollow">layout</a> is the process of calculating the position of objects in space subject to various constraints. This functionality can be part of an application or packaged as a reusable component or library.</p>
<p><strong>Example... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:07:12.680",
"Id": "42062",
"Score": "0",
"Tags": null,
"Title": null
} | 42062 |
The layout tag is for questions about the placement, alignment and justification of objects with respect to a containing element. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:07:12.680",
"Id": "42063",
"Score": "0",
"Tags": null,
"Title": null
} | 42063 |
<h2>DataTable in .NET</h2>
<p>A DataTable is a .NET class that represents one table of in-memory data. Unlike other programming languages and platforms, a .NET DataTable is not a GUI control but rather a representation of a SQL table directly accessible in code and a source of data for other controls.</p>
<p>A <code>... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:07:48.590",
"Id": "42064",
"Score": "0",
"Tags": null,
"Title": null
} | 42064 |
In .NET, DataTable is a class that represents a table of in-memory data. For the jQuery DataTables plugin, please use [jquery-datatables] tag. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:07:48.590",
"Id": "42065",
"Score": "0",
"Tags": null,
"Title": null
} | 42065 |
<p><a href="http://d3js.org/" rel="nofollow">D3.js</a> (or D3 for Data-Driven Documents) is a small, open-source JavaScript visualization library for manipulating HTML and SVG documents based on arbitrary data attached to the <a href="/questions/tagged/dom" class="post-tag" title="show questions tagged 'dom'" r... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:08:44.390",
"Id": "42066",
"Score": "0",
"Tags": null,
"Title": null
} | 42066 |
D3.js is a small, open-source JavaScript visualization library for manipulating HTML and SVG documents based on data | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:08:44.390",
"Id": "42067",
"Score": "0",
"Tags": null,
"Title": null
} | 42067 |
<p><a href="http://wiki.python.org/moin/TkInter" rel="nofollow">Tkinter</a> is the standard Python interface to the Tk graphical user interface (GUI) toolkit. Tkinter runs on all common Mac, Windows and Unix/Linux platforms, making it easy to create rich, cross-platform desktop applications with Python. </p>
<p><a hre... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:09:20.877",
"Id": "42068",
"Score": "0",
"Tags": null,
"Title": null
} | 42068 |
Tkinter is the standard Python interface to the "Tk" graphical user interface toolkit. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:09:20.877",
"Id": "42069",
"Score": "0",
"Tags": null,
"Title": null
} | 42069 |
<p>A monad in programming is a <em>composable computation description</em>. Monads are an important construct in functional languages like Haskell.</p>
<p>In Haskell, a Monad is simply any type <code>m</code> with two functions following several algebraic laws:</p>
<pre><code>return :: a -> m a
(>>=) :: m a... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:10:35.413",
"Id": "42070",
"Score": "0",
"Tags": null,
"Title": null
} | 42070 |
A monad in programming is a composable computation description. Monads are an important construct in functional programming languages like Haskell. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:10:35.413",
"Id": "42071",
"Score": "0",
"Tags": null,
"Title": null
} | 42071 |
<h1>Active Record</h1>
<p>The active record pattern, which was named by Martin Fowler in 2003, is an architectural pattern that describes how objects relate to database records or entries in other forms of storage. The interface to such an object would include functions such as Insert, Update, and Delete, plus propert... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:12:19.530",
"Id": "42072",
"Score": "0",
"Tags": null,
"Title": null
} | 42072 |
Active Record is a pattern that combines domain logic with storage abstraction in single object. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:12:19.530",
"Id": "42073",
"Score": "0",
"Tags": null,
"Title": null
} | 42073 |
<h1>Framework</h1>
<p>A framework is a set of code or libraries which provide functionality common to a whole class of applications. While one library will usually provide one specific piece of functionality, frameworks will offer a broader range which are all often used by one type of application. Rather than rewriti... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:12:59.237",
"Id": "42074",
"Score": "0",
"Tags": null,
"Title": null
} | 42074 |
A framework is an existing library or set of libraries to help you complete a common task faster and more easily. Use this tag if you're writing a framework, not if you're just using one. When using a framework the specific framework should be used instead of this tag. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:12:59.237",
"Id": "42075",
"Score": "0",
"Tags": null,
"Title": null
} | 42075 |
<p>"Null" has different meanings depending on context.</p>
<h3>Set theory</h3>
<p>Null is another name for the empty set, denoted by the symbol ∅. For this reason, some programming languages use <code>null</code> or <code>nil</code> for the empty list or empty tuple. Lisp uses <code>nil</code> to mean the empty lis... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:18:44.993",
"Id": "42076",
"Score": "0",
"Tags": null,
"Title": null
} | 42076 |
This tag should be used for questions where you are handling null variables or values.
| [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:18:44.993",
"Id": "42077",
"Score": "0",
"Tags": null,
"Title": null
} | 42077 |
<p>a proxy server is a server that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server, requesting some service, such as a file, connection or a web page available from a different server and the proxy server evaluates the request as a way to sim... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:19:13.933",
"Id": "42078",
"Score": "0",
"Tags": null,
"Title": null
} | 42078 |
A proxy is a device or program that stands between two or more interconnected programs or devices. Reasons for a proxy include one or more connected parties only wanting the other to access specific data. A proxy provides a method for this. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:19:13.933",
"Id": "42079",
"Score": "0",
"Tags": null,
"Title": null
} | 42079 |
<p>SSE, first introduced with the Pentium III in 1999, was Intel's reply to AMD's 3DNow extension in 1998.</p>
<p>SSE can be considered somewhat half-hearted insofar as it only covered the most basic operations and suffered from severe limitations both in functionality and performance, making it mostly useful for a fe... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:20:57.787",
"Id": "42080",
"Score": "0",
"Tags": null,
"Title": null
} | 42080 |
Streaming SIMD Extensions (SSE) is the first generation of SIMD Intel's instruction sets available on modern x86-compatible CPUs. SSE offers single-precision floating point arithmetic and integer arithmetic (excluding division) and logical operations on packed or single operands of sizes from 8 to 64 bits. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:20:57.787",
"Id": "42081",
"Score": "0",
"Tags": null,
"Title": null
} | 42081 |
<p>The <a href="http://en.wikipedia.org/wiki/Windows_API" rel="nofollow">Windows API</a>, informally WinAPI, is Microsoft's core set of application programming interfaces (APIs) available in the Microsoft Windows operating systems. It was formerly called the Win32 API; however, the name Windows API more accurately refl... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:22:10.667",
"Id": "42082",
"Score": "0",
"Tags": null,
"Title": null
} | 42082 |
<p><a href="http://docs.unity3d.com/Documentation/ScriptReference/index.html" rel="nofollow">Unity</a> (also called <code>Unity3D</code>) is a cross-platform game engine with a built-in IDE developed by <a href="http://unity3d.com/company/" rel="nofollow">Unity Technologies</a>. It is used to develop video games for we... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:22:42.760",
"Id": "42084",
"Score": "0",
"Tags": null,
"Title": null
} | 42084 |
Unity, also referred to as Unity3D, is a cross-platform game engine with a built-in IDE developed by Unity Technologies. It is a commercial development platform for creating games, interactive 3D applications, training simulations, and medical and architectural visualizations. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:22:42.760",
"Id": "42085",
"Score": "0",
"Tags": null,
"Title": null
} | 42085 |
<p>I'm writing some simple emacs tools for visual studio solutions.</p>
<p>I've got a function <code>sln-process-csproj-file</code>. This function takes the path to a project, and returns a tuple that's just a data model of the innards of the project.</p>
<p>Right now the return value on the last line of that functi... | [] | [
{
"body": "<p>Yes, it can be shortened by using <a href=\"http://www.gnu.org/software/emacs/manual/html_node/cl/Structures.html\"><code>defstruct</code></a>. An example from the docs:</p>\n\n<pre><code> (cl-defstruct person name age sex)\n (setq dave (make-person :name \"Dave\" :sex 'male))\n ... | {
"AcceptedAnswerId": "42091",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:35:42.147",
"Id": "42086",
"Score": "5",
"Tags": [
"lisp",
"elisp"
],
"Title": "Accessor functions in elisp"
} | 42086 |
<p>I’m trying to make a simple gui app that starts a “long” process that can be started and stopped. The process generates random numbers and displays them in a JList. As numbers are being displayed (i.e. process is started), user can select a number from JList and delete.
<a href="http://mypages.valdosta.edu/dgibson/... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T05:09:38.317",
"Id": "72446",
"Score": "0",
"body": "For reference, several complete examples may be found [here](http://stackoverflow.com/search?tab=votes&q=user%3a230513%20SwingWorker)."
}
] | [
{
"body": "<p>Your code is well structured, and nice to read. This is a good thing.</p>\n\n<p>You appear, from what I can see, to be using the appropriate threads for doing swing, and non-swing work. This is good.</p>\n\n<p>There are a few thread-safe issues I can see:</p>\n\n<ul>\n<li><p><strong>Daemon Threads... | {
"AcceptedAnswerId": "42267",
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T00:57:11.253",
"Id": "42089",
"Score": "4",
"Tags": [
"java",
"thread-safety",
"swing"
],
"Title": "Long Thread & EDT"
} | 42089 |
<p>I have written a password checker using PHP, consisting of many <code>if else</code> statements. Is there any possible way to shorten this code?</p>
<pre><code>function passtest($pass) {
if (!empty($pass)) { //check if string is empty
if (ctype_alnum($pass)) { //check if string is alphan... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T08:46:33.760",
"Id": "72460",
"Score": "1",
"body": "Related: [Verifying password strength using JavaScript](http://codereview.stackexchange.com/questions/40944/verifying-password-strength-using-javascript)"
},
{
"ContentLic... | [
{
"body": "<p><a href=\"http://css.dzone.com/articles/practical-php-refactoring-24\" rel=\"nofollow noreferrer\">Create clause guards</a>:</p>\n\n<pre><code>if (empty($pass)) {\n return \"<br />Password field is empty\";\n}\nif (!ctype_alnum($pass)) {\n return \"<br />Password has special char... | {
"AcceptedAnswerId": null,
"CommentCount": "5",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T02:02:50.443",
"Id": "42095",
"Score": "9",
"Tags": [
"php",
"validation"
],
"Title": "Password checker in PHP"
} | 42095 |
<p>I have the following code:</p>
<pre><code>public EmployeeProcessOutput RetrieveEmployee(EmployeeProcessInput input)
{
var employee = input.Employee;
if (input.EmployeeId == null)
employee= CreateEmployee(employee);
return new EmployeeProcessOutput
{
Employee = employee,
... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T06:15:56.140",
"Id": "72449",
"Score": "0",
"body": "What don't you like about it wizkid?"
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T11:31:45.623",
"Id": "72489",
"Score": "1",
"body"... | [
{
"body": "<p>Have a look at <a href=\"http://msdn.microsoft.com/en-us/library/0f66670z.aspx\" rel=\"nofollow noreferrer\">this</a>. I think the real question is pass by value vs pass by reference. </p>\n\n<p>More info <a href=\"https://stackoverflow.com/questions/8708632/passing-objects-by-reference-or-value-i... | {
"AcceptedAnswerId": null,
"CommentCount": "3",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T05:11:32.953",
"Id": "42105",
"Score": "2",
"Tags": [
"c#"
],
"Title": "Clean way of passing parameters"
} | 42105 |
<p>My goal was to get my hands dirty in OOP by designing and using classes and getting started with inheritance and other OOP concepts. </p>
<p>I have written a very small code to play a card Game called "War". The rules are simple. Each person playing the game is given 1 card. The person with the highest card wins. I... | [] | [
{
"body": "<p>Cool app. My comments aren't intended to be critical or haughty, just me thinking out loud.</p>\n\n<ul>\n<li><p>Python 3? If not, make sure your classes extend <code>object</code>.</p></li>\n<li><p>I probably wouldn't define and extend <code>Game</code>. It doesn't add anything. You don't need to ... | {
"AcceptedAnswerId": "42114",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T06:43:45.353",
"Id": "42107",
"Score": "26",
"Tags": [
"python",
"object-oriented",
"game",
"playing-cards"
],
"Title": "Simple card game to learn OOP"
} | 42107 |
<p>I have written an HTTP client wrapped the libcurl. It should be able to do HTTP get/post with string/map param, with cookies and proxy.</p>
<p>Can somebody review the code? B.T.W., I'm not sure the way pass a map into HTTP header is correct, maybe I should remove these two interface</p>
<p><code>CURLcode do_http_... | [] | [
{
"body": "<p>Looking at your header file:</p>\n\n<ul>\n<li><p>Replace the <code>#define DATA_MAX_LEN</code> with a <code>static const</code> variable; Do the same with any other constant that is <code>#define</code>-d.</p></li>\n<li><p>Pass more complex parameters by const reference, to avoid making a copy (ur... | {
"AcceptedAnswerId": "42150",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T08:59:38.013",
"Id": "42121",
"Score": "4",
"Tags": [
"c++",
"http",
"curl"
],
"Title": "Wrapping Curl, an HTTP client"
} | 42121 |
<p>I'm creating a class-based signal generator that, given a buy threshold, sell threshold and a list of list of indicators, creates a 'buy' of 'sell' signal on a given day if the indicator from that day is greater than the sell threshold.</p>
<p>But the day before it wasn't greater, so basically when the indicator cr... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T09:26:47.297",
"Id": "72468",
"Score": "0",
"body": "Yes, it can, and I've shown you almost exactly how to do so on SO: http://stackoverflow.com/a/21851228/3001761"
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": ... | [
{
"body": "<p>My first advice is <a href=\"http://www.youtube.com/watch?v=o9pEzgHorH0\" rel=\"nofollow\">stop writing classes</a> if you don't need to : your class has only two methods an <code>init</code> and a proper method. This could probably be written as a simple function :</p>\n\n<pre><code>def calculate... | {
"AcceptedAnswerId": null,
"CommentCount": "2",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T09:15:37.867",
"Id": "42122",
"Score": "-1",
"Tags": [
"python",
"classes"
],
"Title": "Class-based signal generator"
} | 42122 |
<p>script.py:</p>
<pre><code>#!/usr/bin/python
import os
srcDir = os.getcwd()
dirName = 'target_directory'
dstDir = os.path.abspath(dirName)
def ignore_list(path, files):
filesToIgnore = []
for fileName in files:
fullFileName = os.path.join(os.path.normpath(path), fileName)
if (not os.... | [] | [
{
"body": "<p>Looks ok for a specific task, but the code is not reusable at all. It would be more useful to create a function <code>ignore_except</code> that could be used like this to perform the same task:</p>\n\n<pre><code>shutil.copytree(srcDir, dstDir, \n ignore=ignore_except('*.pyc', '*.ui'... | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 4.0",
"CreationDate": "2014-02-19T09:27:50.830",
"Id": "42123",
"Score": "4",
"Tags": [
"python",
"file-system",
"python-2.x"
],
"Title": "Copy a directory structure to another, but only copying specific files"
} | 42123 |
<p>Lately I have been trying to <a href="https://sites.google.com/site/unclebobconsultingllc/one-thing-extract-till-you-drop">extract till I drop</a>. Well not necessarily till I drop, but I've been trying to be more strict and look at some metrics of my code.</p>
<p>I have now come along an old class of mine which ha... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T10:16:04.310",
"Id": "72477",
"Score": "1",
"body": "You're passing in `Map<Key, Value> map` but you're only using the `map.keySet()`. Are you using the `Value`s in the `Map` for anything, or passing them into the `Processor` subrou... | [
{
"body": "<p>You can create a <code>KeyProcessor</code> interface and implementation for every key (move the body of the current <code>Processor.processStuffAboutKeyX()</code> methods to these classes):</p>\n\n<pre><code>public interface KeyProcessor {\n void processStuff(String data);\n}\n</code></pre>\n\n... | {
"AcceptedAnswerId": "42126",
"CommentCount": "9",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T10:08:47.307",
"Id": "42125",
"Score": "37",
"Tags": [
"java"
],
"Title": "Refactoring large switch statement"
} | 42125 |
<p>I wrote a PHP function 7 days back , which avoids (calculate spamming severity) via manual spamming . So was just a curious to know, what if I create a JS plugin (my first) which can act as an SPAM validator on client side.</p>
<p>So here I am with my new jQuery plugin(beta version) which validate the existence of ... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T11:18:08.817",
"Id": "72485",
"Score": "0",
"body": "I would point out that your code style isn't very JavaScript idiomatic. Too much whitespace makes it hard to read and KNF's style (braces on the same line) is preferred over Allma... | [
{
"body": "<p>I don't know if blocking specific few words (aka, creating a black list) is effective against spamming. Minor changes in the spelling will pass through your verification.</p>\n\n<p>I don't really think that many real people will loose their time posting spams. Even if they do, they will easily ove... | {
"AcceptedAnswerId": null,
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T10:32:03.853",
"Id": "42128",
"Score": "2",
"Tags": [
"javascript",
"jquery",
"html"
],
"Title": "Spam validator - beta version"
} | 42128 |
<p>I need to calculate the calendar week of a given date. Constraints:</p>
<ul>
<li>It should be properly calculated based on ISO 8601 if week starts on
Monday</li>
<li>It should calculate based on US standards if the week starts on
Sunday</li>
<li>It should be compact and fast, as the routine gets called very often</... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T11:11:05.897",
"Id": "72483",
"Score": "1",
"body": "Hmm, the mix of German variable names and English comments is amusing. For better understanding: `kw` stands for the *week of year*, `donnerstag` and `Do` are *Thursday*."
},
... | [
{
"body": "<p>In my experience, Moment.js is somewhat too heavy for this simple task. Did some profiling not too long ago and the library does too much movement for this task. Maybe it's for robustness/scalability/compatibility purposes, but nevertheless, still heavy.</p>\n\n<p>Straight to the point, check out ... | {
"AcceptedAnswerId": null,
"CommentCount": "4",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T10:56:42.897",
"Id": "42131",
"Score": "3",
"Tags": [
"javascript",
"optimization",
"algorithm",
"datetime"
],
"Title": "Algorithm optimization on date calculation"
} | 42131 |
<p>I've written a program to populate a particular object from multiple data sources, however I'm not convinced I'm going about this in the right way:</p>
<ol>
<li>I have no idea which (if any) design pattern I have used (possibly abstract factory)!</li>
<li>I really don't like the implementation as it doesn't feel ri... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-21T12:40:55.510",
"Id": "72960",
"Score": "0",
"body": "This is referred to as the 'Repository pattern'. http://www.asp.net/mvc/tutorials/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an... | [
{
"body": "<blockquote>\n <p>What's right about my implementation?</p>\n</blockquote>\n\n<p>You are adhering to OCP principle, which is good - you can extend providers easily without changing other code.</p>\n\n<blockquote>\n <p>What's inherently wrong with my implementation?</p>\n</blockquote>\n\n<p>Your cur... | {
"AcceptedAnswerId": null,
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T11:29:18.970",
"Id": "42133",
"Score": "14",
"Tags": [
"c#",
"object-oriented",
"design-patterns",
".net"
],
"Title": "Design pattern for implementing multiple data sources"
} | 42133 |
<p>I've been unable to find a PHP function that will convert eol in files. This is what I have so far. It works, no errors.</p>
<p>Your educated opinions, thoughts, improvements, potential bugs and suggestions are welcome.</p>
<pre><code>/*
$file_name - full/path/to/file.name
$eol - wanted end of li... | [] | [
{
"body": "<p>First of all, your function name sounds weird. The name of the function should brefly describe what it does, so, a name like <code>convertEol</code> would be more appropriate.</p>\n\n<p>Second, I see much redundancy on your code, like this part:</p>\n\n<pre><code>if ($hread === FALSE) e(\"Bad fi... | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T11:45:24.407",
"Id": "42135",
"Score": "5",
"Tags": [
"php",
"converting",
"file"
],
"Title": "Function that converts file eol's"
} | 42135 |
<p>This is the code I'm currently using to run a shell command on the current machine, intended for use only with GNU/Linux at the moment:</p>
<pre><code>std::string getCmdOutput(const std::string& mStr)
{
std::string result, file;
FILE* pipe{popen(mStr.c_str(), "r")};
char buffer[256];
while(fget... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T15:11:48.370",
"Id": "72570",
"Score": "1",
"body": "In C++ I believe it is a bit more idiomatic to use fstream to open files instead of using FILE* which is a C API, but there doesn't appear to be anything wrong with what you're do... | [
{
"body": "<p>Prefer comparing pointers to <code>nullptr</code> instead of to <code>NULL</code> in C++11. <code>nullptr</code> exists for exactly that reason. The <code>NULL</code> macro is not portable. While it exists in many different environments there is no guarantee how it will be implemented or what it i... | {
"AcceptedAnswerId": "42172",
"CommentCount": "4",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T13:53:35.093",
"Id": "42148",
"Score": "8",
"Tags": [
"c++",
"c++11",
"bash",
"linux",
"shell"
],
"Title": "Running a shell command and getting output"
} | 42148 |
<p>The following code will be used for educational purposes. It is to demonstrate various way that the box-shadow property can be used. Any feedback on areas where I have not used best practices would be great.</p>
<p><a href="http://jsbin.com/netonozi/2" rel="nofollow">Working example</a></p>
<p><strong>HTML:</stron... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-22T21:15:44.570",
"Id": "73292",
"Score": "0",
"body": "One comment, more about the style than the code. Since your are demonstrating the shadows, I would: a) set the body background to white. Make clearer what is the shadow. b) set a ... | [
{
"body": "<p>they are all <code>.box</code> class. </p>\n\n<p>I am thinking that you should get rid of the container divs and get rid of the <code>.box</code> class and give it to all divs because after you get rid of the container divs all the divs will be the boxes.</p>\n\n<p>you should do one of those fancy... | {
"AcceptedAnswerId": "42156",
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T14:09:10.727",
"Id": "42151",
"Score": "5",
"Tags": [
"html",
"css"
],
"Title": "Various different box shadows"
} | 42151 |
<p>I'm wanting to calculate exponential moving averages of a variable, <code>distance</code>. Is the logic (and math) correct in the below code?</p>
<p><code>time</code> and <code>lastTime</code> are millisecond-precise timestamps in seconds – the former is the current time, the latter is the time of the last calculat... | [] | [
{
"body": "<p>This is border line a bad question, as not enough code is given to properly review it.</p>\n\n<p>The variables a -> g look terrible, I would create an array with the numbers you need:</p>\n\n<pre><code>var dataPoints = [1.16,1.19,1.22,1.26,1.30,1.35,1.40];\n</code></pre>\n\n<p>Then I would would l... | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T15:36:37.673",
"Id": "42157",
"Score": "1",
"Tags": [
"javascript",
"mathematics"
],
"Title": "Calculating exponential moving averages"
} | 42157 |
<p>I am writing a simple quiz app using Tornado and MongoDB. The user authentication is done using Facebook and each user is uniquely identified by their Facebook ID. When a user first creates an account, his score will be set to zero and he can access only questions whose ID is less than or equal to his current score.... | [] | [
{
"body": "<p>I'm not a Tornado expert, so these comments will be general to Python web development.</p>\n\n<p>I'll first answer your specific questions</p>\n\n<ol>\n<li><p>I don't know about your regexp, but you have a serious problem with Q0Handler.get; when <code>answer = None</code> (as is the default param... | {
"AcceptedAnswerId": "42180",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T15:38:39.027",
"Id": "42158",
"Score": "3",
"Tags": [
"python",
"mongodb",
"tornado",
"quiz"
],
"Title": "Tornado quiz app"
} | 42158 |
<p>Below is a script to create and manage text snippets. It is also posted on <a href="https://github.com/adamlazz/snp">GitHub</a>. Most of the code is error checking and displaying help because I wanted to make a solid command line interface. The <code>blanks</code> function is used when copying a snippet with a blank... | [] | [
{
"body": "<p>Overall</p>\n\n<ul>\n<li>You're using some bash-specific things (<code>[[ ... && ... ]]</code>), so your shebang line should be <code>#!/bin/bash</code></li>\n<li>very good indentation, readable code</li>\n<li>more quotes: <code>mv \"$snippets_dir/$2\" \"$snippets_dir/$3/$2\"</code></li>\n... | {
"AcceptedAnswerId": "42167",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T15:47:46.263",
"Id": "42159",
"Score": "6",
"Tags": [
"bash",
"shell"
],
"Title": "Text snippet creator/manager in Bash"
} | 42159 |
<p>I was looking at the different possible threading methods that I could use in my single-threaded application. What I have written so far is a class that will lock the thread when I instantiate the object, then unlock the thread when the object becomes out of scope. Here is what the class looks like:</p>
<p>ProcessC... | [] | [
{
"body": "<blockquote>\n <p>Is this a safe way to locking a thread?</p>\n</blockquote>\n\n<p>Yes, it's the recommended way: see for example <a href=\"http://en.cppreference.com/w/cpp/thread/lock_guard\" rel=\"nofollow noreferrer\">std::lock_guard</a></p>\n\n<p>However:</p>\n\n<ul>\n<li>I don't see why the des... | {
"AcceptedAnswerId": "42163",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T15:49:31.097",
"Id": "42161",
"Score": "5",
"Tags": [
"c++",
"thread-safety"
],
"Title": "What is a safe way to lock a thread in a single-threaded application?"
} | 42161 |
<p>I am trying to develop a simple inventory system that takes JSON data gathered from a Powershell script, inputs the data into a MongoDB, and displays the info in an interesting manner for the user. It works well at the moment, but I do have a few interesting questions about how I did this, i.e. should I make the DB ... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T16:57:14.820",
"Id": "72598",
"Score": "3",
"body": "Providing screenshot is a really nice touch. Thanks for asking well documented question, I wish I could help you :-)"
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationD... | [
{
"body": "<p>Okay, so this looks quite good!</p>\n\n<ol>\n<li>Connecting to the database at the top makes sense, since you want to be connected to it at all times. This is the best option in bottle, especially if you are not afraid of loosing the connection. In more complete frameworks, the database connection... | {
"AcceptedAnswerId": "42945",
"CommentCount": "2",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T16:37:56.910",
"Id": "42165",
"Score": "5",
"Tags": [
"python",
"mongodb"
],
"Title": "MongoDB inventory system"
} | 42165 |
<p>I'm using mongoose to seed a mongodb database based on my mongoose models.
I'm particular interested in improving the seed code.</p>
<p>I have two models, an article and a category.
The relationship between the models are as follows:</p>
<p>A category has many articles
An article has a parent category</p>
<p>The ... | [
{
"ContentLicense": "CC BY-SA 4.0",
"CreationDate": "2019-09-22T13:29:33.293",
"Id": "446329",
"Score": "0",
"body": "Why are you assigning the value `parentCategory._id` of the article to the field `_category`?\n\nThe schema defines it as `category`. Am I misunderstanding something?"
}
] | [
{
"body": "<p>It seems that you are storing the data with double links (article -> category AND category -> articles).</p>\n\n<p>I assume that you need to report on articles for a category. I would simple create an index on <code>Category</code> like this: </p>\n\n<pre><code>var articleSchema = mongoose.Schema... | {
"AcceptedAnswerId": "42176",
"CommentCount": "1",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T17:01:24.177",
"Id": "42171",
"Score": "12",
"Tags": [
"javascript",
"node.js",
"mongodb",
"mongoose"
],
"Title": "Seeding MongoDB using Mongoose models"
} | 42171 |
<p>The following code will be used for educational purposes. It is to simply demonstrate how to apply a drop-shadow using a CSS3 filter. Any feedback on areas where I have not used best practices would be great.</p>
<p><a href="http://jsbin.com/sibizudo/1" rel="nofollow">JSBin</a></p>
<p><strong>HTML:</strong></p>
... | [] | [
{
"body": "<p>Your code it's perfectly fine</p>\n\n<p>I would just change, to stress the fact that the images are the same:</p>\n\n<pre><code>.container img {\n width: 250px;\n height: 250px;\n content: url(\"http://iancottam.co.uk/img/footy.png\");\n}\n</code></pre>\n\n<p>and then </p>\n\n<pre><code>&... | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T17:08:52.203",
"Id": "42173",
"Score": "5",
"Tags": [
"html",
"css"
],
"Title": "Use of filter and drop shadow"
} | 42173 |
<p><strong>Getting Additional Help</strong></p>
<p>You may also subscribe to the <a href="http://groups.google.com/group/mongoose-orm" rel="nofollow">Google group</a>.</p>
<p>For examples and documentation visit: <a href="http://mongoosejs.com" rel="nofollow">http://mongoosejs.com</a></p>
<p>To open a bug or feature... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T17:21:03.060",
"Id": "42174",
"Score": "0",
"Tags": null,
"Title": null
} | 42174 |
Mongoose is a MongoDB object modeling tool, written in JavaScript, designed to work in an asynchronous environment. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T17:21:03.060",
"Id": "42175",
"Score": "0",
"Tags": null,
"Title": null
} | 42175 |
<p>I have fully functional code in class format, and as far as I am aware from my previous question, it conforms to PEP 8 and the code logic and implementation is suitably pythonic. My main concerns here is whether or not I have put <code>self.</code> in front of the correct variables, and some ambiguity surrounding my... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T18:43:56.697",
"Id": "72621",
"Score": "2",
"body": "\"Explicit global declarations are used to allow certain variable to be used in multiple methods.\" Huh? Instance attributes, eg. `self.e1` can be used in all methods."
},
{
... | [
{
"body": "<h2>Class Scoping</h2>\n\n<p>So your comment afore your global declaration of <code>e1</code> mentions how you wish for <code>e1</code> to be accessible in all methods. If you want a variable to be accessible in all methods of a class, the conventional way is to assign it as a property of <code>self<... | {
"AcceptedAnswerId": "42242",
"CommentCount": "5",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T17:56:53.930",
"Id": "42177",
"Score": "6",
"Tags": [
"python",
"object-oriented",
"classes",
"static",
"tkinter"
],
"Title": "Does this tkinter-based web browser widge... | 42177 |
<p>I've got an assignment to do pure JS validation as well as submit with AJAX. Here is the code I've got so far. I'm wondering if I can do away with the whole "reason" bit. That was because it was originally meant to display a list of all the errors, but I've tweaked the code to instead display the errors right by the... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T19:15:19.850",
"Id": "72632",
"Score": "1",
"body": "If you put 0 in the number field, it does not validate. The if statement says \"y < 0 || y > 50\"."
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T... | [
{
"body": "<p>If you don't have a strong reason for using the <code>onsubmit</code> attribute on your <code><form></code> element, I would suggest attaching the submit action to the form without it. This would work:</p>\n\n<pre><code>document.getElementById('contact').onsubmit(function () { return validat... | {
"AcceptedAnswerId": null,
"CommentCount": "2",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T18:26:06.547",
"Id": "42182",
"Score": "6",
"Tags": [
"javascript",
"php",
"beginner",
"form",
"validation"
],
"Title": "JS validation and submission with AJAX"
} | 42182 |
<p>I have a class Employee that contains an ArrayList of Projects.</p>
<p>I'm storing the Employees in one table, and the Projects in another.</p>
<p>I'm trying to find the best way to create an ArrayList of Employee objects based on a result set. Simply creating an ArrayList of Employees based on a result set is pr... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T19:22:51.660",
"Id": "72636",
"Score": "2",
"body": "Can you please give us the `DESCRIBE` of `employees` and `projects` table?"
},
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T19:42:38.737",
"Id":... | [
{
"body": "<p>A standard way to do this is through break-processing, where you track one value, and when it changes, you do something special.... but you may find it easier to do a more unstructured system:</p>\n\n<pre><code>Map<Integer, List<Project>> employeeProjects = new HashMap<>();\nMap&... | {
"AcceptedAnswerId": "42189",
"CommentCount": "3",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T19:08:47.663",
"Id": "42185",
"Score": "6",
"Tags": [
"java",
"sql"
],
"Title": "How to fill an ArrayList of ArrayLists with a Left Join?"
} | 42185 |
<p>Here is a simple function I wrote to parse record-jar data. I need it in a php5.3 application to validate bcp47 language tags. It converts the <a href="http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry" rel="nofollow">language subtag registry</a> among other things, into a nested php ... | [
{
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T20:24:30.227",
"Id": "72651",
"Score": "0",
"body": "Could you supply a snippet of the source feed to the function. The code has a high cyclomatic complexity, which you might consider splitting up. Tests would be a good idea to ensu... | [
{
"body": "<p>I'm no PHP expert, and this might be personal preference, but I like to initialize variables at the top of the function to make it clear that their scope is not limited to the constructs in which they're defined.</p>\n\n<pre><code>function parse_record_jar($record_jar_string) {\n $records = array... | {
"AcceptedAnswerId": "42243",
"CommentCount": "2",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T19:17:59.090",
"Id": "42186",
"Score": "4",
"Tags": [
"php",
"parsing",
"php5"
],
"Title": "Parsing record-jar format in PHP 5.3"
} | 42186 |
<blockquote>
<p>SQL injection is a technique used to take advantage of non-validated
input vulnerabilities to pass SQL commands through a Web application
for execution by a backend database. Attackers take advantage of the
fact that programmers often chain together SQL commands with
user-provided parameters, ... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T20:57:24.293",
"Id": "42198",
"Score": "0",
"Tags": null,
"Title": null
} | 42198 |
SQL injection is a code injection technique, used to attack data driven applications, in which malicious SQL statements are inserted into an entry field for execution. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T20:57:24.293",
"Id": "42199",
"Score": "0",
"Tags": null,
"Title": null
} | 42199 |
<p>This is my solution for <a href="https://www.codeeval.com/browse/44/" rel="nofollow">CodeEval challenge 44</a>.</p>
<blockquote>
<p>You are writing out a list of numbers.Your list contains all numbers with exactly Di digits in its decimal representation which are equal to i, for each i between 1 and 9, inclusive.... | [] | [
{
"body": "<p>First of all: your code is very readable and you seem to know your way around standard library functions, which is very important is Haskell. Good job!</p>\n\n<p>A couple of suggestions:</p>\n\n<ol>\n<li><p>A simpler isSortedDesc:</p>\n\n<pre><code>import Data.List.Ordered (isSortedBy)\n\nisSorted... | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T21:16:00.160",
"Id": "42200",
"Score": "12",
"Tags": [
"beginner",
"haskell",
"programming-challenge"
],
"Title": "Finding the next higher digital permutation of a number"
} | 42200 |
<p>I have written this small game for the "learn python the hard way" book. I ask for some opinions about it and how to improve it.</p>
<p>I know about pygame and others game engines but all the game runs in the terminal. The text file <code>orc.txt</code>, <code>cyclops.txt</code>, etc are ASCII drawings</p>
<pre><c... | [] | [
{
"body": "<p>I'll assume you're fairly new to Python; tell me if you feel this stuff is too basic, and I'll start criticizing you for things that you don't deserve to be criticized for.</p>\n\n<h2>State</h2>\n\n<p>Ok, so the first thing that made me go \"eww\" in the code was <code>global</code>. In general, w... | {
"AcceptedAnswerId": "42241",
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-19T22:07:07.483",
"Id": "42203",
"Score": "6",
"Tags": [
"python",
"game",
"console"
],
"Title": "Simple console roguelike game"
} | 42203 |
<p><a href="http://flask.pocoo.org/" rel="nofollow">Flask</a> is a micro-framework for Python 2.x and 3.3+. </p>
<p>To quote its creator:</p>
<blockquote>
<p>Flask is a micro-framework for Python based on <a href="http://werkzeug.pocoo.org/" rel="nofollow">Werkzeug</a>, <a href="http://jinja.pocoo.org/2/" rel="nofo... | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-20T00:00:24.513",
"Id": "42208",
"Score": "0",
"Tags": null,
"Title": null
} | 42208 |
Flask is a micro-framework for Python based on Werkzeug, Jinja 2 and good intentions. | [] | [] | {
"AcceptedAnswerId": null,
"CommentCount": "0",
"ContentLicense": "CC BY-SA 3.0",
"CreationDate": "2014-02-20T00:00:24.513",
"Id": "42209",
"Score": "0",
"Tags": null,
"Title": null
} | 42209 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.