-- DBMS: snowflake
create or replace TABLE STACKOVERFLOW_POSTS (
	"id" NUMBER(38,0),
	"title" VARCHAR(16777216),
	"body" VARCHAR(16777216),
	"accepted_answer_id" NUMBER(38,0),
	"answer_count" NUMBER(38,0),
	"comment_count" NUMBER(38,0),
	"community_owned_date" NUMBER(38,0),
	"creation_date" NUMBER(38,0),
	"favorite_count" NUMBER(38,0),
	"last_activity_date" NUMBER(38,0),
	"last_edit_date" NUMBER(38,0),
	"last_editor_display_name" VARCHAR(16777216),
	"last_editor_user_id" NUMBER(38,0),
	"owner_display_name" VARCHAR(16777216),
	"owner_user_id" NUMBER(38,0),
	"parent_id" NUMBER(38,0),
	"post_type_id" NUMBER(38,0),
	"score" NUMBER(38,0),
	"tags" VARCHAR(16777216),
	"view_count" NUMBER(38,0)
);

INSERT INTO "STACKOVERFLOW_PLUS"."STACKOVERFLOW"."STACKOVERFLOW_POSTS" (tags, last_editor_display_name, score, comment_count, last_edit_date, parent_id, favorite_count, creation_date, answer_count, body, owner_display_name, title, community_owned_date, id, last_activity_date, last_editor_user_id, owner_user_id, post_type_id, view_count, accepted_answer_id) VALUES ('c++|messagebox', NULL, 0, 6, nan, NULL, nan, 1363401623070000, 1, '<p>I am not quite sure why this is happening. I am just trying to output the key pressed. Breakpoint shows the correct letter stored in the pressed variable. Project is set to Unicode.</p> <pre><code>case WM_CHAR: { const wchar_t pressed = LOWORD(wParam); ::MessageBox(hWnd &amp;pressed L Key Pressed  MB_OK); } </code></pre>', NULL, 'C++ Win32 MessageBox weird output', NULL, 15444977, 1363402613067000, nan, 1886489, 1, 252, nan), ('iphone|c++|objective-c|boost|frameworks', NULL, 1, 6, 1340681729687000.0, NULL, nan, 1340634238713000, 1, '<blockquote> <p>Semantic issue: ''mutable'' cannot be applied to references</p> </blockquote> <p>The above is only the latest in a series of errors I''ve received attempting to get the <a href= https://github.com/horaceho/iphone-fuego rel= nofollow >fuego-iphone</a> project to compile. I''m not certain but it could be related to the way I compiled boost. The project''s README recommends using <a href= http://semmel.wordpress.com/2011/01/18/boost-c-libraries-with-ios/ rel= nofollow >these instructions</a> for compiling boost into a framework but I had already done so with the <a href= http://www.danielsefton.com/2012/03/building-boost-1-49-with-clang-ios-5-1-and-xcode-4-3/ rel= nofollow >more recent instructions here</a>. Could this CLANG error be related to a boost version somehow?</p> <p>I admit relative ignorance when it comes to C++.</p> <p>If anyone has any brilliant suggestions for using the fuego library in general with xcode I have tried quite a few different things and am pretty much at wit''s end. Thanks!</p> <p>EDIT: Apologies for any ambiguity here but I''m not asking about mutable references so much as showing the latest symptom of this issue. The fuego mailing list has <a href= http://sourceforge.net/mailarchive/forum.php?thread_name=CALnA2CuN_SDK-RHO8ATsnRADeAqPsoTnPasskkUBv-MVEfQULQ@mail.gmail.com&amp;forum_name=fuego-devel rel= nofollow >a relevant question</a> about using boost 1.48 and checking now it''s clear that I''ve compiled 1.49 so I''ll recompile an earlier version of boost and see if that fixes it somehow.</p>', NULL, 'Need help getting Fuego to compile in Xcode - boost version compatibility?', NULL, 11191179, 1340681729687000, 18961.0, 18961, 1, 231, nan), ('javascript|jquery|angularjs', NULL, 0, 6, 1424189883003000.0, NULL, nan, 1424189571270000, 1, '<p>New to angular still working out the many kinks that I hit. I''ve got a question to pose to you all.</p> <p>I currently have a table that is being populated on load with ng-repeat. The data itself is a bunch of sums of money. One particular entry is a collection of those sums. I have an ng-onclick on it to run my function getLadders() when clicked. I would like it to basically pan out below wherever that element is in the chart and create new rows of the data that is in that particular element. </p> <p>A mini - drawing of the data it as I can not paste the exact data.</p> <pre><code>ID Name Total 1 Single $20 2 Single $35 3 Combination $60*** 4 Single $10 </code></pre> <p>That is the current chart with combination being the data with the many breakdowns within it. On click of that row I want it to do something like this.</p> <pre><code>ID Name Total 1 Single $20 2 Single $35 3 Combination $60*** 3.1 Single $20 3.2 Single $20 3.3 Single $20 4 Single $10 </code></pre> <p>Basically break out into everything inside that one piece. I have the function written with the extracted data I have right now plain old jQuery to select that row and append a tablerow after it but it ends up attaching it to the end of the whole table instead of at that line. </p> <p>Any help?</p> <p>Also for added benefits I also have an icon on that row that I am looking to alter as well. It''s a plus sign that I want to be a minus sign when the data is being shown and then back to a plus sign afterwards. </p> <pre><code> &lt;tbody ng-controller= myCDsController &gt; &lt;tr ng-repeat= holding in holdings ng-if= holding.type !== ''Ladder'' data-type= {{holding.typeClass}} data-id= {{holding.id}} &gt; &lt;td&gt;{{holding.type}}&lt;/td&gt; &lt;td contenteditable= true &gt;{{holding.name}}&lt;/td&gt; &lt;td&gt;{{holding.maturityDate}}&lt;/td&gt; &lt;td&gt;{{holding.amount | currency: $ }}&lt;/td&gt; &lt;td&gt;{{holding.rate | percentage:2}}&lt;/td&gt; &lt;/tr&gt; &lt;tr ng-repeat= holding in holdings ng-if= holding.type == ''Ladder'' ng-controller= openLaddersController data-type= {{holding.typeClass}} data-id= {{holding.id}} &gt; &lt;td&gt;&lt;i ng-class= {''icon-dislike'': !icon ''icon-plus'':icon} ng-click= openLadders(holding.id) &gt;dfgh&lt;/i&gt; {{holding.type}}&lt;/td&gt; &lt;td contenteditable= true &gt;{{holding.name}}&lt;/td&gt; &lt;td&gt;{{holding.maturityDate}}&lt;/td&gt; &lt;td&gt;{{holding.amount | currency: $ }}&lt;/td&gt; &lt;td&gt;{{holding.rate | percentage:2}}&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; </code></pre>', NULL, 'Adding additional table rows using Angular after using ng-repeat', NULL, 28565862, 1424191413653000, 4342406.0, 4342406, 1, 146, nan), ('tomcat|jvm', NULL, 0, 6, nan, NULL, nan, 1342569260377000, 1, '<p>I am trying to run my web application under tomcat7 with ubuntu 11.10. And I reset the port to 80 by using authbind. And it is working well when there is no app added to the /webapps/ folder. For example I can access example.com to the tomcat default start page.</p> <p>Then I tried to add my web application into the webapps/ folder and restarted the server. Afterwards I can not visit both the default page or my web apps. I checked the tomcat process and found that the server is stopped a while after I tried to access the pages(no matter the tomcat default page or my app).</p> <p>There are some details about my app the package is about 70MB and using large memory to initialize many objects for the app. I guess it is because of the JVM crash but I have no idea how to locate the issue.</p>', NULL, 'Tomcat 7 automatic crashed after adding a web application', NULL, 11532497, 1345531673700000, nan, 760062, 1, 290, nan), ('domain-driven-design|cqrs|event-sourcing', NULL, 0, 6, nan, NULL, 2.0, 1404668000417000, 1, '<p>I''m currently in a situation where I''m replacing the domain layer of an application but must retain the existing MVVM UI. We definitely want an event store but I''m struggling with some aspects of our current CQRS implementation.</p> <p>We have some complex aggregates that contain multiple entity collections and key/value pair dynamic attributes. Our existing UI has one large edit screen for this aggregate and I''m not sure how to structure the command(s) for the update.</p> <p>Possible solutions: 1) Simply fetch the aggregate in the ViewModel perform the updates against the domain model and ship it with the command (<code>var command = new SaveAggregateCommand(myAggregate);</code>). This feels wrong as the internal events would not be retained if shipping this across a serialized boundary (without custom serialization).</p> <p>2) Create one complex command object that contains a list up updated attributes and separate lists of added updated and removed child entities of each collection type. This would be the easiest for the command handler to work with but feels very sloppy.</p> <p>3) Create many commands that basically mirror the domain model''s events that get captured (there would be up to 38 in my scenario). The view model would then have to keep a list of uncommitted commands that get submitted when the save button is pressed by the user. Like #2 this also feels hacky.</p> <p>Due to the (necessary) complexity of this aggregate none of these solutions feel right. I would live some guidance on this one.</p>', NULL, 'CQRS/ES Update Aggregate Command', NULL, 24598468, 1406000307133000, nan, 758351, 1, 221, 24878467.0);