dewanup007/stackoverflow-nova-data
Annamoradnejad, I., Habibi, J., & Fazli, M. (2022). Multi-view approach to suggest moderation actions in community question answering sites. Information Sciences, 600, 144-154. @article{annamoradnejad2022multiview, title={Multi-View Approach to Suggest Moderation Actions in Community Question Answering Sites}, author={Annamoradnejad, Issa and Habibi, Jafar and Fazli, Mohammadamin}, journal = {Information Sciences}, volume = {600}, pages = {144-154}, year = {2022}, issn = {0020-0255}, doi =… See the full description on the dataset page: https://huggingface.co/datasets/dewanup007/stackoverflow-nova-data.
15
1,Unnamed: 0.1,Unnamed: 0,Id,Title,Body,Tags,CreationDate,Y,system20,0,23194,45412795,Refreshing page by f5 or reload button without lost the iframe page,"<p>Refreshing page by f5 or reload button without lost the iframe page:</p>3 4<p>Hello!</p>5 6<p>I'v a webpage that contains a iframe and I want that when refresh button will clicks the iframe stay on currnet page and not back to the defult page.</p>7 8<p>For exmple:</p>9 10<p>When I enter to webpage I see an iframe with url google.com and I move in iframe to google.co.il, I want that when I refresh this it will refresh the google.co.il and isn't back to google.com.</p>11 12<p>tnx very much!</p>13",<javascript><html><iframe>,2017-07-31 10:00:36,LQ_CLOSE,"14This a stack overflow question from between 2016-2020 and it can be classified into three categories:15* HQ: High-quality posts without a single edit.16* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.17* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.18You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 19**Do not add any explanation, just give the category as output**."201,1,29408,48994569,Sorting array not sorting,"<p>I must set an array to accept 7 numbers from the user, then send the array to be sorted in ascending order. the array is not being sorted and its just given the values back the exact way they were entered.</p>21 22<pre><code>import java.util.Scanner;23public class arraySorted {24 25public static void main(String[] args) {26 27 28 Scanner in = new Scanner(System.in);29 30 int [] enterednumbers = new int[7];31 32 33 System.out.println(""Enter 7 numbers in any order"");34 for( int i =0; i < enterednumbers.length; i++) {35 enterednumbers[i] = in.nextInt();36 37 38 }39 40 for (int d = 0; d < enterednumbers.length; d++) {41 System.out.print(enterednumbers[d] + "" "");42 }43 44}45public static void sort(int enterednumbers[]) {46 int n = 7;47 int temp = 0;48 for (int i = 0; i <n; i++) {49 for (int j = i + 1; j<n; j++) {50 if (enterednumbers[i] > enterednumbers[j]) {51 temp = enterednumbers[i];52 enterednumbers[i] = enterednumbers[j];53 enterednumbers[j] = temp;54 55 }56 }57 }58}59}60</code></pre>61 62<p>The input read as:</p>63 64<p>Enter 7 numbers in any order658664678689697705717</p>72 73<p>than the output is:748 4 8 9 7 5 7 </p>75",<java><arrays><sorting>,2018-02-26 18:09:55,LQ_CLOSE,"76This a stack overflow question from between 2016-2020 and it can be classified into three categories:77* HQ: High-quality posts without a single edit.78* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.79* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.80You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 81**Do not add any explanation, just give the category as output**."822,2,2861,35688407,Piping a file into docker run,"<p>I need to pipe (inject) a file or some data into docker as part of the run command and have it written to a file within the container as part of the startup. Is there best practise way to do this ? </p>83 84<p>I've tried this.</p>85 86<pre><code>cat data.txt | docker run -a stdin -a stdout -i -t ubuntu /bin/bash -c 'cat >/data.txt'87</code></pre>88 89<p>But can't seem to get it to work. </p>90",<docker><pipe>,2016-02-28 21:19:49,HQ,"91This a stack overflow question from between 2016-2020 and it can be classified into three categories:92* HQ: High-quality posts without a single edit.93* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.94* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.95You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 96**Do not add any explanation, just give the category as output**."973,3,6938,37819091,Informing Haskell that `(Reverse (Reverse xs)) ~ xs`,"<p>If <code>Reverse :: [k] -> [k]</code> is a type family then Haskell cannot tell that <code>(Reverse (Reverse xs)) ~ xs</code>. Is there a way to let the type system know this without any runtime cost?</p>98 99<p>I'm tempted to just use <code>unsafeCoerce</code>, but that seems a shame.</p>100",<haskell><type-families>,2016-06-14 18:01:36,HQ,"101This a stack overflow question from between 2016-2020 and it can be classified into three categories:102* HQ: High-quality posts without a single edit.103* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.104* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.105You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 106**Do not add any explanation, just give the category as output**."1074,4,16041,41802816,How to check nvidia-docker version?,"<p>I have tried <code>nvidia-docker --version</code>, but it seems just showing docker's version.<br>108After some investigation of official documents, I could not find any information about this.</p>109 110<p>How to check <code>nvidia-docker</code> 's version?</p>111",<docker><nvidia>,2017-01-23 09:23:24,HQ,"112This a stack overflow question from between 2016-2020 and it can be classified into three categories:113* HQ: High-quality posts without a single edit.114* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.115* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.116You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 117**Do not add any explanation, just give the category as output**."1185,5,42829,58248489,I have a problem with password-verify. Even though I know the password has been entered correctly I still get a false result,"I use this code to enter the hash value in mySql database: I have replaced the server login details.119 120The input comes from a form that is created when a user scans an NFC microchip.121```122 $servername = ""localhost"";123 $username = ""xxxxxxxxx"";124 $password = ""xxxxxxxxx"";125 $database = ""xxxxxxxxx""; // substitute your mysql database name126 $hash = password_hash($Pass, PASSWORD_DEFAULT);127 if ($UID === ""0"") {128 echo ""You have not scanned a chip to enter the registration process"";129 }130 else {131 132 $Type = $_POST[""Type""]; 133 $Units = $_POST[""UNITS""]; 134 $LstStln = $_POST[""LstStln""];135 $Country = $_POST[""Country""];136 if (empty($_POST[""eMail""])) {137 $emailErr = ""Email is required"";138 echo ""Email is required"";139 } else {140 $eMail = test_input($_POST[""eMail""]);141 // check if e-mail address is well-formed142 if (!preg_match(""/([\w\-]+\@[\w\-]+\.[\w\-]+)/"",$eMail)) {143 144 die (""Invalid email format. 145 Try again."");146 }147 // Create connection148 $conn = new mysqli($servername, $username, $password, $database);149 // Check connection150 if ($conn->connect_error) {151 die(""Connection failed: "" . $conn->connect_error);152 } 153 $sql = ""INSERT INTO ItsMine (UID, Password, email, Type, UNITS, LstStln, Country) VALUES ('$UID', '$hash', '$eMail', '$Type', '$Units', '$LstStln', '$Country')"";154 $result = $conn->query($sql);155```156This is corresponding code that processes the input from this form and is returning false from password verify.157```158$servername = ""localhost"";159 $username = ""xxxxxxxxx"";160 $password = ""xxxxxxxxx"";161 $database = ""xxxxxxxxxx""; // substitute your mysql database name162 $email = $_POST['email'];163 $Pass = $_POST['Password'];164 // Create connection165 $conn = new mysqli($servername, $username, $password, $database);166 167 // Check connection168 if ($conn->connect_error) {169 die(""Connection failed: "" . $conn->connect_error);170 } 171 //get the hashed password from the database172 $sql = ""SELECT * From ItsMine where eMail = '$email'"";173 $result = $conn->query($sql);174 $row=mysqli_fetch_assoc($result);175 $hash = $row[""Password""];176 //Check password entered against the stored hash177 if (password_verify($Pass, $hash)) {178 $tql = ""SELECT * From ItsMine where eMail = '$email'"";179```",<php><sql><mysqli><passwords>,2019-10-05 12:54:41,LQ_EDIT,"180This a stack overflow question from between 2016-2020 and it can be classified into three categories:181* HQ: High-quality posts without a single edit.182* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.183* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.184You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 185**Do not add any explanation, just give the category as output**."1866,6,31367,49952651,Easy C++ for newbie function of the '<<',"<pre><code>#import <iostream>187 188using namespace std;189 190int main()191{192cout << 123 <<'\n';193cout <<""$100 recived \n"";194cout <<""see you tomorrow \n"";195 196return 0;197}198</code></pre>199 200<p>in this C++ program line, i dunno the function of the '<<' here; (i'm a newbie)</p>201 202<p>for example, an error occurs when i remove the '<<'in the first line</p>203 204<pre><code>#import <iostream>205 206using namespace std;207 208int main()209{210**cout << 123 '\n';**211cout <<""$100 recived \n"";212cout <<""see you tomorrow \n"";213 214return 0;215}216</code></pre>217 218<p>i dunno why I need the '<<' please help me :(</p>219",<c++>,2018-04-21 05:28:15,LQ_CLOSE,"220This a stack overflow question from between 2016-2020 and it can be classified into three categories:221* HQ: High-quality posts without a single edit.222* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.223* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.224You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 225**Do not add any explanation, just give the category as output**."2267,7,31156,49830797,Javascript - Function Not Changing Global Variable,"<p>My Code (Javascript):</p>227 228<pre><code>var num = 0;229function change(){230 var num = 10;231}232 change();233 document.write(num);234</code></pre>235 236<p>The result should be <b>10</b> but it is showing 0. Why?<br>237If the code is wrong, what is the correct way to do this?</p>238",<javascript>,2018-04-14 11:13:09,LQ_CLOSE,"239This a stack overflow question from between 2016-2020 and it can be classified into three categories:240* HQ: High-quality posts without a single edit.241* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.242* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.243You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 244**Do not add any explanation, just give the category as output**."2458,8,5116,36833629,What exactly onCreate() method will do in a Fragment Life Cycle in an Android Application,"<p>I am confusing onCreate() method in both Activity and Fragment. What onCreate() will do in Fragment and What are differences onCreate() method between Activity and Fragment.Please help me i am learning by myself.</p>246 247<p>Thanks......</p>248",<android><android-fragments><android-activity><android-lifecycle><fragment-lifecycle>,2016-04-25 06:43:34,LQ_CLOSE,"249This a stack overflow question from between 2016-2020 and it can be classified into three categories:250* HQ: High-quality posts without a single edit.251* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.252* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.253You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 254**Do not add any explanation, just give the category as output**."2559,9,40653,56402357,Questions about the order of execution of this code snippet,"<p>So I been reading a tutorial about Javascript promises these days.</p>256 257<p>here is an example from it used to explain the macrotask queue(i.e. the event loop) and the microtask queue.</p>258 259<pre><code>let promise = Promise.reject(new Error(""Promise Failed!""));260promise.catch(err => alert('caught'));261 262// no error, all quiet263window.addEventListener('unhandledrejection', event => alert(event.reason));264</code></pre>265 266<p>It says that because <code>promise.catch</code> catches the error so the last line, the event handler never gets to run. I can understand this. But then he tweaked this example a little bit.</p>267 268<pre><code>let promise = Promise.reject(new Error(""Promise Failed!""));269setTimeout(() => promise.catch(err => alert('caught')));270 271// Error: Promise Failed!272window.addEventListener('unhandledrejection', event => alert(event.reason));273</code></pre>274 275<p>This time he says the event handler is gonna run first and catch the error and <strong>after</strong> this the <code>promise.catch</code> catches the error eventually.</p>276 277<p>What I do not understand about the second example is, why did the event handler run before the <code>promise.catch</code>? </p>278 279<p>My understanding is,</p>280 281<ol>282<li>Line one, we first encounter a promise, and we put it on the microtask queue.</li>283<li>Line two, we have a <code>setTimeout</code>, we put it on the macrotask queue,</li>284<li>Line three, we have an event handler, and we put the handler on the macrotask queue waiting to be fired</li>285</ol>286 287<p>Then, because microtask has higher priority than macrotask. We run the promise first. After it, we dequeue the first task on macrotask queue, which is the <code>setTimeout</code>. So from my understanding, the error should be caught by the function inside <code>setTimeout</code>.</p>288 289<p>Please correct me.</p>290",<javascript><event-loop>,2019-05-31 22:30:29,HQ,"291This a stack overflow question from between 2016-2020 and it can be classified into three categories:292* HQ: High-quality posts without a single edit.293* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.294* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.295You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 296**Do not add any explanation, just give the category as output**."29710,10,41847,57423962,Replace while loop with for each,"<p>How can I replace while loop below with for each loop in Java? </p>298 299<pre><code>JSONObject postParameters = new JSONObject();300Map parameterMap = httpRequest.getParameterMap();301Iterator<Map.Entry<String, String[]>> it = parameterMap.entrySet().iterator();302while (it.hasNext()) {303 Map.Entry<String, String[]> entry = it.next();304 if(entry.getValue().length == 1){305 postParameters.put(entry.getKey(), entry.getValue()[0].toString());306 }307 else{308 JSONArray valueList = new JSONArray();309 for(String value : entry.getValue()){310 valueList.add(value.toString());311 }312 postParameters.put(entry.getKey(), valueList);313 }314}315</code></pre>316 317<p>Basically I want to make it bit more readable.</p>318",<java>,2019-08-09 05:36:38,LQ_CLOSE,"319This a stack overflow question from between 2016-2020 and it can be classified into three categories:320* HQ: High-quality posts without a single edit.321* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.322* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.323You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 324**Do not add any explanation, just give the category as output**."32511,11,41383,57013480,library not found for -lRCTGeolocation,"<p>Have installed react-native-firebase & and i'am using my project.xcworkspace for getting build on iOS with Xcode that was fine when I installed only auth & core packages. When i installed messaging package I get the error ""library not found for -lRCTGeolocation"" anyway. Some could help me?</p>326 327<p>react-native: 0.60.3328react-native-firebase: 5.5.4</p>329 330<p>Thansk in advance.</p>331 332<p>I delete the messaging reference from pod file I delete pods folder & podfile.lock file re installed pods, clean the build but didn't333solved.</p>334",<ios><xcode><react-native><react-native-firebase><pod>,2019-07-12 20:08:40,HQ,"335This a stack overflow question from between 2016-2020 and it can be classified into three categories:336* HQ: High-quality posts without a single edit.337* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.338* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.339You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 340**Do not add any explanation, just give the category as output**."34112,12,20541,44026099,Iptables deny all proxy on firewall,"<p>i've recently configured a server and after a bit i decided to deny everyone that use a proxy in my Ts3 server, i tried to search some iptables module but nothing, then i'm searching for something like a global proxy list, i'm asking if there's a method to deny all connection from a proxy to my server using iptables or some other program.</p>342",<proxy><server><debian><firewall><iptables>,2017-05-17 13:19:36,LQ_CLOSE,"343This a stack overflow question from between 2016-2020 and it can be classified into three categories:344* HQ: High-quality posts without a single edit.345* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.346* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.347You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 348**Do not add any explanation, just give the category as output**."34913,13,13223,40552782,I am trying to read file from my pc located at any local disk using c++.For that I have written code.But it is not executing,"<p>I am working on file project in that I want to open file using c++ which is located in any drive of my PC.User will enter file location and file name of it.So,only I want to open tat file from that folder.I have wrtten a code.</p>350 351<pre><code>#include <fstream>352#include <iostream>353#include <string>354using namespace std;355int main()356{357 string inp,fname;358 ofstream myfile;359 cout<<""Enter path for Input file:"";360 getline(cin, inp);361 fstream input<<( ""inp"",ios::app); 362 myfile.open(""Final.txt"", ios_base::app);363 myfile << ""Thanks for your help.\n"";364 myfile.close();365 return 0;366} 367</code></pre>368",<c++><file>,2016-11-11 17:00:03,LQ_CLOSE,"369This a stack overflow question from between 2016-2020 and it can be classified into three categories:370* HQ: High-quality posts without a single edit.371* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.372* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.373You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 374**Do not add any explanation, just give the category as output**."37514,14,4896,36678302,Stubbing window.location.href with Sinon,"<p>I am trying to test some client-side code and for that I need to stub the value of <code>window.location.href</code> property using Mocha/Sinon.</p>376 377<p>What I have tried so far (<a href=""https://gist.github.com/jouni-kantola/8761980"" rel=""noreferrer"">using this example</a>):</p>378 379<pre><code>describe('Logger', () => {380 it('should compose a Log', () => {381 var stub = sinon.stub(window.location, 'href', 'http://www.foo.com');382 });383});384</code></pre>385 386<p>The runner displays the following error:</p>387 388<blockquote>389 <p>TypeError: Custom stub should be a function or a property descriptor</p>390</blockquote>391 392<p>Changing the test code to: </p>393 394<pre><code>describe('Logger', () => {395 it('should compose a Log', () => {396 var stub = sinon.stub(window.location, 'href', {397 value: 'foo'398 });399 });400});401</code></pre>402 403<p>Which yields this error:</p>404 405<blockquote>406 <p>TypeError: Attempted to wrap string property href as function</p>407</blockquote>408 409<p>Passing a function as third argument to <code>sinon.stub</code> doesn't work either.</p>410 411<p>Is there a way to provide a fake <code>window.location.href</code> string, also avoiding redirection (since I'm testing in the browser)?</p>412",<javascript><mocha><sinon><stubbing>,2016-04-17 15:12:26,HQ,"413This a stack overflow question from between 2016-2020 and it can be classified into three categories:414* HQ: High-quality posts without a single edit.415* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.416* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.417You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 418**Do not add any explanation, just give the category as output**."41915,15,14332,41013832,how to create a view using two tables in different schemas in ibm db2,"I have got two tables T1 and T2 . T1 is present in schema S1 and T2 is present in schema S2. I am using DB2 database. I also have two queries for fetching data from T1 and T2 respectively. 420 421Now, I have a requirement where I need to create a view and get the combined data of two queries in that view.422 423I have searched a lot on internet for creating a view on different schemas in DB2, but couldn't get a right solution.424 425Please help.426 427",<database><db2>,2016-12-07 09:32:08,LQ_EDIT,"428This a stack overflow question from between 2016-2020 and it can be classified into three categories:429* HQ: High-quality posts without a single edit.430* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.431* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.432You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 433**Do not add any explanation, just give the category as output**."43416,16,34665,51801582,Why do i get two references for the same singletonPattern instance?,"435 436I was learning about the Singleton design pattern through a tutorial. Basically from what I understand it ensures that only one instance of a class is ever created, and any interaction with that class is done through that one instance in the heap. with that said, in the SingletonPatternDemo.java I wrote:437 438SingleObject object1 = SingleObject.getInstance();439 440SingleObject object2 = SingleObject.getInstance();441 442from my understanding, both object1 and object2 reference the same object, thus they should point to the same location in memory.443 444However when I write:445 446System.out.println(""object1 HashCode: "" + System.identityHashCode(System.identityHashCode(object1)));447 448System.out.println(""object2 HashCode: "" + System.identityHashCode(System.identityHashCode(object2))); 449 450after I run it I get:451 452object1 HashCode: 865113938453object2 HashCode: 1442407170454 455since these two objects reference the same instance shouldn't they return the same hashcode? or am I missing something?456 457[Singleton class][1]458 459 460[Demo class][2]461 462 463 [1]: https://i.stack.imgur.com/UlGtH.png464 [2]: https://i.stack.imgur.com/O2nIe.png",<java><singleton>,2018-08-11 16:19:45,LQ_EDIT,"465This a stack overflow question from between 2016-2020 and it can be classified into three categories:466* HQ: High-quality posts without a single edit.467* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.468* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.469You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 470**Do not add any explanation, just give the category as output**."47117,17,20774,44138200,Unable to insert integer in QString,"I have a QString **strLayout** which has value `""3,1,0""`.472 473I want to change it to ""**2,1,0**"".474 475So I extracted the first character, converted to number and subtracted 1 from it:476 477 int temp = (strLayout.at(0).digitValue() - 1);478 479Now, I want it to write back to original QString strLayout, but not able to do it.480 481Thanks in advance!482 483",<qt>,2017-05-23 14:51:08,LQ_EDIT,"484This a stack overflow question from between 2016-2020 and it can be classified into three categories:485* HQ: High-quality posts without a single edit.486* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.487* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.488You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 489**Do not add any explanation, just give the category as output**."49018,18,30630,49592120,python while true wierd error,"<p>I am learning python currently for a month now because I want to write a server for my GameMakerStudio 2 game, which doesn't support threading and I need a server to be written in another language to make this available. 491Anyways...492<a href=""https://www.youtube.com/watch?v=WrtebUkUssc"" rel=""nofollow noreferrer"">https://www.youtube.com/watch?v=WrtebUkUssc</a> -tutorial url</p>493 494<p>I was following this tutorial and unfortunately i get an error which is:</p>495 496<p>/home/borut/PycharmProjects/Server/venv/bin/python /home/borut/PycharmProjects/Server/Server.py497 File ""/home/borut/PycharmProjects/Server/Server.py"", line 19498 while True:499 ^500IndentationError: unexpected indent</p>501 502<p>Process finished with exit code 1</p>503 504<p>And my code as followed on tutorial is:</p>505 506<pre><code>import socket507import sys508from _thread import *509 510host = ''511port = 5555512s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)513 514try:515 s.bind((host, port))516except socket.error as e:517 print(str(e))518 519s.listen(5)520print ('waiting for a connection')521def threaded_client(conn):522 conn.send(str.encode('Welcome, type your info\n'))523 524 while True:525 data = conn.recv(2048)526 reply = 'Server output: ' +data.decode('utf-8')527 if not data:528 break;529 conn.sendall(str.encode(reply))530 conn.close()531 532while True:533 conn, addr = s.accept()534 print('connected to: '+addr[0]+':'+str(addr[1]))535 536 start_new_thread(threaded_client, (conn,))537</code></pre>538 539<p>thank you for all your answers and tips guys!</p>540",<python><networking>,2018-03-31 20:30:56,LQ_CLOSE,"541This a stack overflow question from between 2016-2020 and it can be classified into three categories:542* HQ: High-quality posts without a single edit.543* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.544* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.545You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 546**Do not add any explanation, just give the category as output**."54719,19,32074,50335227,How to pick a Kafka transaction.id,"<p>I wonder could I get some help understanding transactions in Kafka and in particular how I use transaction.id. Here's the context:</p>548 549<ol>550<li>My Kafka application follows the pattern: consume message from input topic, process, publish to output topic. </li>551<li>I am using not using the Kafka Streams API.</li>552<li>I have multiple consumers in a single consumer group and each consumer is in its own polling thread.</li>553<li>There is a thread pool with worker threads that do the message processing and publishing to the output topic. At the moment, each thread has its own producer instance.</li>554<li>I am using the published transactions API to ensure that the update of the consume offset and the publishing to the output topic happen atomically</li>555</ol>556 557<p>My assumptions to date have included:</p>558 559<ol>560<li>If my process crashed in mid transaction then nothing from that transaction would have published and no consume offset would have moved. So upon restart, I would simply start the transaction again from the original consume offset. </li>561<li>For the producer transaction.id, all that mattered was that it was unique. I could therefore generate a timestamp based id at start-up</li>562</ol>563 564<p>Then I read the following blog: <a href=""https://www.confluent.io/blog/transactions-apache-kafka/"" rel=""noreferrer"">https://www.confluent.io/blog/transactions-apache-kafka/</a>. In particular in the section ""How to pick a transaction id"" it seems to imply that I need to guarantee that a producer instance per input partition. It says ""The key to fencing out zombies properly is to ensure that the input topics and partitions in the read-process-write cycle is always the same for a given transactional.id."". It further cites the problem example as follows: ""For instance, in a distributed stream processing application, suppose topic-partition tp0 was originally processed by transactional.id T0. If, at some point later, it could be mapped to another producer with transactional.id T1, there would be no fencing between T0 and T1. So it is possible for messages from tp0 to be reprocessed, violating the exactly once processing guarantee.""</p>565 566<p>I can't quite understand why this is the case. To my mind, I shouldn't care what producer handles messages from any partition as long as transactions are atomic. I've been struggling with this for a day and I wonder if someone could tell me what I've missed here. So, why can't I assign work to any producer instance with any transaction.id setting as long as it is unique. And why do they say that messages can leak through the fencing provided by transactions if you do this.</p>567",<java><apache-kafka>,2018-05-14 16:43:05,HQ,"568This a stack overflow question from between 2016-2020 and it can be classified into three categories:569* HQ: High-quality posts without a single edit.570* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.571* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.572You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 573**Do not add any explanation, just give the category as output**."57420,20,16385,41951009,Any way of doing very thin border lines around more cells,"anyone tell me how making border lines around more td that has same value575 576 577 578 <table>579 <tr>580 <td>101</td>581 <td>101</td>582 <td>102</td>583 <td>103</td>584 <td>103</td>585 </tr>586 </table>587 588",<php><html><css>,2017-01-31 06:26:50,LQ_EDIT,"589This a stack overflow question from between 2016-2020 and it can be classified into three categories:590* HQ: High-quality posts without a single edit.591* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.592* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.593You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 594**Do not add any explanation, just give the category as output**."59521,21,12512,40259551,Create variable of type Map[string]interface{} in gRPC protoc buffer golang,"<p>I'm using grpc golang to communicate between client and server application.596Below is the code for protoc buffer.</p>597 598<pre><code>syntax = ""proto3"";599package Trail;600 601service TrailFunc {602 rpc HelloWorld (Request) returns (Reply) {}603}604 605// The request message containing the user's name.606message Request {607 map<string,string> inputVar = 1;608}609// The response message containing the greetings610message Reply {611 string outputVar = 1;612}613</code></pre>614 615<p>I need to create a field inputVar of type map[string]interface{} inside message data structure instead of map[string]string.616How can I achieve it?617Thanks in advance.</p>618",<go><grpc><protoc>,2016-10-26 10:16:14,HQ,"619This a stack overflow question from between 2016-2020 and it can be classified into three categories:620* HQ: High-quality posts without a single edit.621* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.622* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.623You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 624**Do not add any explanation, just give the category as output**."62522,22,18154,42742571,"python 3 simple calculator , need assistance understanding subject and completing task, new to python and coding in general","<p>I need help programming a simple python 3 calculator, I am completely new to coding and python so my knowledge on this is low and i'm having a tough time just getting started. </p>626 627<p>heres the problem: Your assignment is to create an extremely simple calculator in Python. So simple, it can only add positive whole numbers.</p>628 629<p>Take a look at the hello.py example posted this week. It shows examples of reading data using the input() method. It shows how to write functions (using 'def'), as well as passing parameters and returning a value. It also shows how to interpolate variables into a string using the printf-style string formatting.</p>630 631<p>First create, a simple function called ""add"". It should take in two values and return the sum of the values.</p>632 633<p>Next create an interactive script which uses the ""add"" function. The output, when done, should look like this:</p>634 635<p>What is the first number?6363637What is the second number?6385639Your sum is 8.</p>640 641<p>In the example above, the bold items are typed by the user. Note that, to pass the online test, you must format your text exactly the same as above.</p>642 643<p>When done (and tested locally), test and submit online at CSGrading.com Assignment 2. </p>644 645<p>HELLO.PY CODE</p>646 647<pre><code>def get_firstname():648 print(""First Name: "")649 firstname = input()650 return firstname651 652def get_lastname():653 print(""Last Name: "")654 lastname = input()655 return lastname656 657def say_hello(f,l):658 print(""Hello %s %s"" % (f,l))659 660say_hello(get_firstname(),get_lastname())661</code></pre>662 663<p>I really wanna learn this but ultimately i'm stuck.</p>664",<python><python-3.x><calculator>,2017-03-12 01:11:06,LQ_CLOSE,"665This a stack overflow question from between 2016-2020 and it can be classified into three categories:666* HQ: High-quality posts without a single edit.667* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.668* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.669You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 670**Do not add any explanation, just give the category as output**."67123,23,27398,48070617,All UNIQUE permentations,"I'm finding lots of algorithms to get every permutation of a set of numbers. What I can't find is one that gives a UNIQUE list.672 673For example, the digits **123** will produce:674 675 123676 132677 213678 231679 312680 321681 682But the digits **113** should only produce (skipping the duplicates):683 684 113685 131686 311687 688 689If it helps, I'll be using 8 digits in an array.690 691Thanks",<vba><excel><permutation>,2018-01-03 03:03:44,LQ_EDIT,"692This a stack overflow question from between 2016-2020 and it can be classified into three categories:693* HQ: High-quality posts without a single edit.694* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.695* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.696You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 697**Do not add any explanation, just give the category as output**."69824,24,18436,42926624,I am using multiple firebase projects in an Android App. I am getting this error : Missing google_app_id. Firebase Analytics disabled,"<p>I have added following code to initialise there projects. </p>699 700<pre><code>FirebaseOptions options = new FirebaseOptions.Builder()701 .setApplicationId(""1:129574837465:android:0123456773a52cf4f6"") // Required for Analytics.702 .setApiKey(""iubdeibneh8gzDt7Xn9f-jdjjdjdjdj"") // Required for Auth.703 .setDatabaseUrl(""https://databasename-d7r7.firebaseio.com"") // Required for RTDB.704 .build();705 706FirebaseApp.initializeApp(context /* Context */, options, ""secondary"");707 708 709FirebaseOptions options2 = new FirebaseOptions.Builder()710 .setApplicationId(""1:129574837465:android:0123456773a52cf4f6"") // Required for Analytics.711 .setApiKey(""iubdeibneh8gzDt7Xn9f-jdjjdjdjdj"") // Required for Auth.712 .setDatabaseUrl(""https://databasename2-d7r7.firebaseio.com"") // Required for RTDB.713 .build();714 715FirebaseApp.initializeApp(context /* Context */, options2, ""secondary2"");716 717 718FirebaseOptions options3 = new FirebaseOptions.Builder()719 .setApplicationId(""1:129574837465:android:0123456773a52cf4f6"") // Required for Analytics.720 .setApiKey(""kjdkj-o_3nk4jn4k3kjk23j"") // Required for Auth.721 .setDatabaseUrl(""https://databasename3-d7r7.firebaseio.com"") // Required for RTDB.722 .build();723 724FirebaseApp.initializeApp(context /* Context */, options3, ""secondary3"");725</code></pre>726 727<p>After initialisation my app is running fine. I can use FirebaseAuth, and FirebaseRTDB just fine but it is throwing error when it has to access firebase_Application_Id for analytics. </p>728 729<p>I have cross checked the ids from google-services.json files of all the projects. I don't know why but it throws error saying:</p>730 731<pre><code>Missing google_app_id. Firebase Analytics disabled.732</code></pre>733 734<p>I couldn't figure out the root of this error.</p>735",<android><firebase><firebase-analytics><multiple-projects>,2017-03-21 12:04:00,HQ,"736This a stack overflow question from between 2016-2020 and it can be classified into three categories:737* HQ: High-quality posts without a single edit.738* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.739* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.740You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 741**Do not add any explanation, just give the category as output**."74225,25,26666,47649228,Split string Text separator between hyphen in sql server," Select Code From myTable743 744> In a jod, I have a problem:745> 746> I have result string: 747 748 Code749 ABCD_12750 EBC_11751 DEEDC_1752 753> When query data, I want to take the chain on the left ""_""754> 755> And Result: 756 757 Code758 ABCD759 EBC760 DEEDC761 762Thank you",<sql><sql-server>,2017-12-05 08:37:12,LQ_EDIT,"763This a stack overflow question from between 2016-2020 and it can be classified into three categories:764* HQ: High-quality posts without a single edit.765* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.766* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.767You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 768**Do not add any explanation, just give the category as output**."76926,26,35704,52496456,Date object will return 1537865065664 on two Difference Date Object in java,"<p>I want time difference in second using new Date().getTime() in java.770But i will return me long digit like this 1537865065664.771How can i get difference between two Date() object.772I will attached few part of my code below.</p>773 774<pre><code> Date starttime=new Date();775 long diff= new Date().getTime() - starttime.getTime()776 System.out.println(""hangupClicked New Time :: ""+new Date().getTime()+"" :: ""+starttime.getTime());777</code></pre>778 779<p>Output :: 780hangupClicked New Time :: 1537865248609 :: 1537865348612</p>781",<java><date>,2018-09-25 10:52:56,LQ_CLOSE,"782This a stack overflow question from between 2016-2020 and it can be classified into three categories:783* HQ: High-quality posts without a single edit.784* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.785* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.786You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 787**Do not add any explanation, just give the category as output**."78827,27,15457,41549935,Fb login linked to a menu page Objective c,"I have set up a facebook login for my app and it works but what I don't know how to do is when you log in the app through facebook, the app should take you to a menu screen. Right now with facebook login it is taking me to the log out page. Any help would be appreciated. ",<ios><objective-c><facebook>,2017-01-09 14:14:43,LQ_EDIT,"789This a stack overflow question from between 2016-2020 and it can be classified into three categories:790* HQ: High-quality posts without a single edit.791* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.792* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.793You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 794**Do not add any explanation, just give the category as output**."79528,28,35005,52017913,May I know what language is this? is this javascript or jquery?,"<p>these code makes me confuse, I would like to add an image for this variable but idk what is the code of adding an image is it image: ? or picture: ? </p>796 797<pre><code> var goldStar = {798 path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',799 fillColor: 'yellow',800 fillOpacity: 0.8,801 scale: 1,802 strokeColor: 'gold',803 strokeWeight: 14804 };805</code></pre>806",<javascript><jquery><google-maps><google-maps-api-3>,2018-08-25 13:46:54,LQ_CLOSE,"807This a stack overflow question from between 2016-2020 and it can be classified into three categories:808* HQ: High-quality posts without a single edit.809* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.810* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.811You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 812**Do not add any explanation, just give the category as output**."81329,29,24630,46136831,Android Activity keeps crashing without an error,"<p>I made an incredibly simple app but for some reason it's just crashing. The first page is a simple login screen however the moment I click login it just crashes. The strange part is that there's not even any heavy code to make it do anything strange like that; I'm just making it travel between activities so far.</p>814 815<p>The main activity</p>816 817<pre><code>package com.example.philip.lottery1;818 819import android.content.Intent;820import android.support.v7.app.AppCompatActivity;821import android.os.Bundle;822import android.view.View;823import android.widget.Button;824import android.widget.EditText;825 826public class LoginActivity extends AppCompatActivity {827Button loginButton;828EditText userNameField;829EditText passwordField;830@Override831protected void onCreate(Bundle savedInstanceState) {832 super.onCreate(savedInstanceState);833 setContentView(R.layout.activity_login);834 loginButton = (Button) findViewById(R.id.loginButton);835 userNameField = (EditText) findViewById(R.id.userNameField);836 passwordField = (EditText) findViewById(R.id.passwordField);837 final String userName = userNameField.getText().toString();838 String password = passwordField.getText().toString();839 840 loginButton.setOnClickListener(new View.OnClickListener() {841 public void onClick(View v) {842 843 Intent intent = new Intent(getApplicationContext(), CreateTicket.class);844 intent.putExtra(""ClerkID"", userName);845 startActivity(intent);846 }847 });848}849 850 851}852</code></pre>853 854<p>The activity it leads to</p>855 856<pre><code>package com.example.philip.lottery1;857 858import android.content.Intent;859import android.support.v7.app.AppCompatActivity;860import android.os.Bundle;861import android.view.View;862import android.widget.Button;863import android.widget.EditText;864import java.util.Random;865 866public class CreateTicket extends AppCompatActivity {867private Button randomButton;868private Button OKButton;869private Button searchButton;870private EditText[] lottoNumberFields;871private int[] lottoNumbers;872 873@Override874protected void onCreate(Bundle savedInstanceState) {875 super.onCreate(savedInstanceState);876 setContentView(R.layout.activity_create_ticket);877 lottoNumberFields = new EditText[5];878 lottoNumberFields[1] = (EditText)findViewById(R.id.num1);879 lottoNumberFields[2] = (EditText)findViewById(R.id.num2);880 lottoNumberFields[3] = (EditText)findViewById(R.id.num3);881 lottoNumberFields[4] = (EditText)findViewById(R.id.num4);882 lottoNumberFields[5] = (EditText)findViewById(R.id.num5);883 randomButton = (Button) findViewById(R.id.randomButton);884 OKButton = (Button) findViewById(R.id.OKButton);885 searchButton = (Button) findViewById(R.id.searchButton);886 887 randomButton.setOnClickListener(new View.OnClickListener() {888 @Override889 public void onClick(View v) {890 randommize();891 }892 });893 894 OKButton.setOnClickListener(new View.OnClickListener() {895 @Override896 public void onClick(View v) {897 createTicket();898 }899 });900 901 searchButton.setOnClickListener(new View.OnClickListener() {902 @Override903 public void onClick(View v) {904 search();905 }906 });907}908 909private void search()910{911 //insert code here912 Intent intent = new Intent (getBaseContext(),TicketActivity.class);913 startActivity(intent);914}915 916private void randommize()917{918 for (int i = 0 ; i < 5 ; i ++)919 {920 Random random = new Random();921 int num = random.nextInt(49) + 1;922 lottoNumberFields[i].setText(num+"""");923 }924}925 926private void createTicket()927{928 for (int i = 0; i < 5; i++)929 {930 lottoNumbers[i] = Integer.parseInt(lottoNumberFields[i].getText().toString());931 }932 Intent intent = new Intent(getBaseContext(), FinalActivity.class);933 intent.putExtra(""lottoNumbers"",lottoNumbers);934 startActivity(intent);935}936}937</code></pre>938",<android><android-studio><android-activity>,2017-09-10 02:45:12,LQ_CLOSE,"939This a stack overflow question from between 2016-2020 and it can be classified into three categories:940* HQ: High-quality posts without a single edit.941* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.942* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.943You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 944**Do not add any explanation, just give the category as output**."94530,30,9314,38920240,TensorFlow image operations for batches,"<p>There are a number of image operations in TensorFlow used for distorting input images during training, e.g. <code>tf.image.random_flip_left_right(image, seed=None)</code> and <code>tf.image.random_brightness(image, max_delta, seed=None)</code> and several others.</p>946 947<p>These functions are made for single images (i.e. 3-D tensors with shape [height, width, color-channel]). How can I make them work on a batch of images (i.e. 4-D tensors with shape [batch, height, width, color-channel])?</p>948 949<p>A working example would be greatly appreciated!</p>950",<tensorflow>,2016-08-12 14:19:03,HQ,"951This a stack overflow question from between 2016-2020 and it can be classified into three categories:952* HQ: High-quality posts without a single edit.953* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.954* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.955You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 956**Do not add any explanation, just give the category as output**."95731,31,38230,54414185,Why does my program skip over the replace method?,"<p>Whenever I run the java code below it compiles but the line that include the replace method seems to be skipped, such so that the inputted string and the output (newMessage) are the same. Why? variable C and variable D are chars...</p>958 959<p>import java.util.Scanner;</p>960 961<pre><code>public class javaencrypt962{963 public static void main(String[] args)964 {965 // define and instantiate Scanner object966 Scanner input = new Scanner(System.in);967 968 //prompt user to enter a string969 System.out.println(""Please enter a string: "");970 String message = input.nextLine();971 String newMessage = message;972 char c=' '; // the character at even locations973 char d=' '; // new character974 // go throughout the entire string, and replace characters at even positions by the character shifted by 5.975 // access the even characters with a for loop starting at 0, step 2, and ending at length()-1976 // for( initial value; maximum value; step)977 for(int k=0; k<message.length(); k=k+2)978 {979 c=message.charAt(k);980 d=(char)(c+5);981 /*982 there will always be characters available, because keyboard is mapped on ASCII which is in the beginning of UNICODE983 */984 newMessage.replace(c,d);985 }986 System.out.println(""Message replacement is: "" + newMessage);987 }988}989</code></pre>990",<java>,2019-01-29 05:09:22,LQ_CLOSE,"991This a stack overflow question from between 2016-2020 and it can be classified into three categories:992* HQ: High-quality posts without a single edit.993* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.994* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.995You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 996**Do not add any explanation, just give the category as output**."99732,32,41674,57277345,"given a role ARN, you want to find out which stack and region created the role?",Can anyone please provide cli command to get stack name and region of a role created through it,<amazon-web-services><amazon-cloudformation><amazon-iam>,2019-07-30 17:48:10,LQ_EDIT,"998This a stack overflow question from between 2016-2020 and it can be classified into three categories:999* HQ: High-quality posts without a single edit.1000* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1001* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1002You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1003**Do not add any explanation, just give the category as output**."100433,33,38665,54781809,How to delete particular elements in a array of objects,"<p><a href=""https://i.stack.imgur.com/IktIJ.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/IktIJ.png"" alt=""enter image description here""></a></p>1005 1006<blockquote>1007 <p>I have an array with multiple objects.How can i delete an element in a1008 object.</p>1009 1010 <p>For example i have attached a image in that i need to delete1011 organization element.</p>1012 1013 <p>Please help me out to fix.</p>1014</blockquote>1015",<javascript><angular>,2019-02-20 08:26:32,LQ_CLOSE,"1016This a stack overflow question from between 2016-2020 and it can be classified into three categories:1017* HQ: High-quality posts without a single edit.1018* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1019* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1020You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1021**Do not add any explanation, just give the category as output**."102234,34,27705,48201073,Insert Comma Separated String in SQLLITE,"I need to insert coordinates in SQLLIte Table in Android 1023 1024My Query is as below .1025Its gives a Syntax error due to cordinates which contain string by comma separated information .1026 1027 1028 1029 INSERT INTO ""tableNonOilFarmer"" (""farmerId"",""FirstName"",""MiddleName"",""LastName"",""FatherName"",""DOB"",""CategoryId"",""MobileNo"",""LandlineNo"",""StateId"",""DistrictId"",""TalukaMandalId"",""ClusterId"",""VillageId"",""Pincode"",""RsNumber"",""Area"",""LocationId"",""BorewellAvailable"",""BorewellDepth"",""SoilType"",""Flood"",""CurrentCropId"",""CurrentCropStatusId"",""CurrentCropAge"",""CurrentCropRating"",""Awareness"",""Interested"",""ContactDate"",""NextCrop"",""OverallRating"",""CreatedOn"",""Latitude"",""Longitude"",""Coordinates"",""Converted"",""Status"",""StatusBy"",""StatusDate"",""Comments"",""UserId"",""Sync"") VALUES (3,test,test,test,test,2017-12-27,6,64,58,1,01,02,01,04,96559,1,1,1,false,353,kdf,1,1,1,5555,3,true,true,2017-12-27,,5,2017-12-27,16.868542,81.306554,81.30682,16.8682,0 81.306309,16.86842,0 81.306607,16.869098,0 81.307039,16.868813,0 81.30682,16.8682,0,false,0,null,1,null,167,S)",<android><sqlite><syntax>,2018-01-11 06:34:07,LQ_EDIT,"1030This a stack overflow question from between 2016-2020 and it can be classified into three categories:1031* HQ: High-quality posts without a single edit.1032* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1033* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1034You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1035**Do not add any explanation, just give the category as output**."103635,35,24247,45974033,Restructuring an OOP datatype into Haskell types,"<p>Coming from an OOP background, Haskell's type system and the way data constructors and typeclasses interact is difficult to conceptualize. I can understand how each are used for simple examples, but some more complication examples of data structures that are very well-suited for an OOP style are proving non-trivial to translate into similarly elegant and understandable types.</p>1037 1038<p>In particular, I have a problem with organizing a hierarchy of data such as the following.</p>1039 1040<p><img src=""https://chitu.okoli.org/media/pro/teach/oop/uml.gif"" alt=""data""></p>1041 1042<p>This is a deeply nested hierarchical inheritance structure, and the lack of support for subtyping makes it unclear how to turn this structure into a natural-feeling alternative in Haskell. It may be fine to replace something like <code>Polygon</code> with a sum data type, declaring it like</p>1043 1044<pre><code>data Polygon1045= Quad Point Point1046| Triangle Point Point Point1047| RegularNGon Int Radius1048| ...1049</code></pre>1050 1051<p>But this loses some of the structure, and can only really satisfactorily be done for one level of the hierarchy. Typeclasses can be used to implement a form of inheritance and substructure in that a <code>Polygon</code> typeclass could be a subclass of a <code>Shape</code>, and so maybe all <code>Polygon</code> instances have implementations for <code>centroid :: Point</code> and also <code>vertices :: [Point]</code>, but this seems unsatisfactory. What would be a good way of capturing the structure of the picture in Haskell?</p>1052",<oop><haskell><data-structures>,2017-08-31 05:43:23,HQ,"1053This a stack overflow question from between 2016-2020 and it can be classified into three categories:1054* HQ: High-quality posts without a single edit.1055* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1056* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1057You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1058**Do not add any explanation, just give the category as output**."105936,36,9411,38978107,How to split the Billion or million,"I am looking for an algorithm which splits the input number to number of millions .1060 1061 1062suppose if the input number is 51000000 and my lot size is 50 million, then i want an output as 2.1063if 110 million, then it would be 50+50+10 which means output as 3.1064 1065I tried a number of ways to calculate, but still i am unlucky , please give some clue on this",<java>,2016-08-16 14:52:21,LQ_EDIT,"1066This a stack overflow question from between 2016-2020 and it can be classified into three categories:1067* HQ: High-quality posts without a single edit.1068* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1069* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1070You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1071**Do not add any explanation, just give the category as output**."107237,37,39093,55146819,How to find degree on a circle that is tangent to a point outside of that circle?,"- I know the (x,y) of a point, P, outside of a circle.1073- I know the (x,y) for the origin of a circle, O.1074- I know the radius, r, of that circle.1075 1076How would I find what degree (i.e. 20 degrees, 270 degrees) is tangent to the point outside of the circle ?1077 1078[click here for an image][1]1079 1080 1081 [1]: https://i.stack.imgur.com/eVbc1.png1082 1083 1084Many thanks in advance!1085-joe",<geometry><trigonometry><point>,2019-03-13 16:29:40,LQ_EDIT,"1086This a stack overflow question from between 2016-2020 and it can be classified into three categories:1087* HQ: High-quality posts without a single edit.1088* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1089* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1090You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1091**Do not add any explanation, just give the category as output**."109238,38,40593,56351710,sql exeption was not handled by user code,"1093 1094 if (Page.IsValid)1095 {1096 DataSet.UsersDataTable oUserDataTable =1097 new DataSet.UsersDataTable();1098 1099 DataSetTableAdapters.UsersTableAdapter oUserTableAdapter =1100 new DataSetTableAdapters.UsersTableAdapter();1101 1102 oUserTableAdapter.FillUserByUserName(oUserDataTable, txtUserName.Text);1103 1104 if (oUserDataTable.Count!=1)1105 {1106 string strErrorMessage =1107 ""UserName Or Password Is Not Correct ! Please Try Again . . . "";1108 DisplayErrorMessage(strErrorMessage);1109 return;1110 }1111 1112 DataSet.UsersRow oUserRow = oUserDataTable[0];1113 1114 if (string.Compare(oUserRow.Password.Trim(),txtPassword.Text.Trim(),false)!=0)1115 {1116 string strErrorMessage =1117 ""UserName Or Password Is Not Correct ! Please Try Again . . . "";1118 DisplayErrorMessage(strErrorMessage);1119 return;1120 }1121 1122 if (oUserRow.IsUserActive==false)1123 {1124 string strInformationMessage =1125 string.Format(""Dear {0} You Should Not Login At This Time , Please Contact Support"",txtUserName.Text);1126 DisplayInformationMessage(strInformationMessage);1127 return;1128 }1129 1130 1131Additional information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)1132 1133 1134",<c#><sql>,2019-05-29 00:47:40,LQ_EDIT,"1135This a stack overflow question from between 2016-2020 and it can be classified into three categories:1136* HQ: High-quality posts without a single edit.1137* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1138* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1139You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1140**Do not add any explanation, just give the category as output**."114139,39,3346,35883311,Why is this happening? (javaScript's reverse method),"<p>repl.it : <a href=""https://repl.it/BuXR/3"">https://repl.it/BuXR/3</a></p>1142 1143<pre><code>var str = ""abc"";1144var str2 = str.split("" "").join("""").split("""");1145var tmp = str2;1146console.log(str2);1147// => ['a','b','c']1148console.log(tmp.reverse());1149// => ['c','b','a']1150console.log(str2);1151// => ['c','b','a']1152</code></pre>1153 1154<p>My question is why str2 is being changed even though it is not being reversed?</p>1155 1156<p>This is very upsetting to me, but I have a guess as to why this is happening. The tmp is just a pointer to the original str2, and when I call reverse() on tmp, it actually reverses str2. </p>1157 1158<p>Even if that really is what's happening, I still feel like it is a very counterintuitive way for a language to work. </p>1159",<javascript><arrays><reverse>,2016-03-09 05:05:28,HQ,"1160This a stack overflow question from between 2016-2020 and it can be classified into three categories:1161* HQ: High-quality posts without a single edit.1162* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1163* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1164You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1165**Do not add any explanation, just give the category as output**."116640,40,15931,41751763,Change Android CheckBox box's color programmatically (support library)?,"<p>I'm trying to change the checkbox box's color programmatically to a different color than the theme's default. The problem is I was doing something like this:</p>1167 1168<pre><code>checkbox.setSupportButtonTintList(ColorStateList);1169</code></pre>1170 1171<p>It works but it seems, according its class documentation, this method has been restricted to be used only by classes from the same package (com.android.support). This is the warning I got from Android Studio:</p>1172 1173<pre><code>AppCompatCheckBox.setSupportButtonTintList can only be called from within the same library group (groupId=com.android.support)1174</code></pre>1175 1176<p>Is there a standard/correct way of doing this for all API levels?</p>1177",<android><checkbox><android-support-library>,2017-01-19 21:09:51,HQ,"1178This a stack overflow question from between 2016-2020 and it can be classified into three categories:1179* HQ: High-quality posts without a single edit.1180* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1181* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1182You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1183**Do not add any explanation, just give the category as output**."118441,41,16871,42165785,Push Notifications over WiFi,"<p>I noticed by in Boingo's Wi-Finder iOS app, that the app pushes a notification to the user once he reaches an access point regestered at Boingo's database. The notification tells the user that he can access the wifi network.</p>1185 1186<p>How is that done iOS?</p>1187",<ios><wifi>,2017-02-10 17:55:59,HQ,"1188This a stack overflow question from between 2016-2020 and it can be classified into three categories:1189* HQ: High-quality posts without a single edit.1190* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1191* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1192You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 1193**Do not add any explanation, just give the category as output**."119442,42,21559,44552585,Prevent TensorFlow from accessing the GPU?,"<p>Is there a way to run TensorFlow purely on the CPU. All of the memory on my machine is hogged by a separate process running TensorFlow. I have tried setting the per_process_memory_fraction to 0, unsuccessfully.</p>1195",<python><tensorflow>,2017-06-14 18:55:04,HQ,"1196This a stack overflow question from between 2016-2020 and it can be classified into three categories:1197* HQ: High-quality posts without a single edit.1198* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.1199* LQ_CLOSE: Low-quality posts that were closed by the community without a single edit.1200You are a technical assistant who will classify the question from users into any of above three categories. Respond with only the category name: HQ, LQ_EDIT, or LQ_CLOSE. 