date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
1,116
2,978
<issue_start>username_0: So I would like to do it without importing the project into Android Studio. Is it possible?<issue_comment>username_1: Here is a method that does not build a string; it uses pure math. (There will be many, many ways to do this task) ``` $x=9; $result=0; for($i=$x; $i; --$i){ // this loo...
2018/02/28
1,487
4,267
<issue_start>username_0: Am trying to group all the common array elements. For example ``` array = [{ 'LA',1}, { 'LA',1}, { 'NY',2}, { 'NY',3}, { 'LA',1}] ``` From this Array , am trying to group all the ONE element in one group and TWO element in another group and THREE also. Pl...
2018/02/28
1,181
3,294
<issue_start>username_0: I want to retrieve `header` values from the `incoming HTTP Requests`, which is coming to my Web App[angular application] and use the retrieved values in the application for other outgoing requests. My angular application is hosted via IIS. I tried using `HttpHeaders` but its only configurable f...
2018/02/28
906
3,117
<issue_start>username_0: I'm learning Kotlin , and I'm trying to undetstand `Ranges` I created a range of `String` as follows ``` val alpha = "A".."Z" ``` I want to print this for that I wrote ``` for (item in alpha) println(item) ``` But it gives the error > > Error:(13, 18) Kotlin: For-loop range must have...
2018/02/28
416
1,510
<issue_start>username_0: I have a CMS written in Angular 5 where members can add text including links. The problem is that when the content is rendered with: ``` ``` Then the links are rendered as ``` unsafe:\"http://www.example.com\" ``` and I get this warning: ``` WARNING: sanitizing unsafe URL value \"https:...
2018/02/28
588
1,613
<issue_start>username_0: I basically want to reorder(don't think this is a shuffling task) a list of 100 binary numbers. The following properties should hold after the reorder: the fixed frequency of 1's should remain, which is 10 and the 1's should be roughly spread apart from each other as shown below, so every 9th, ...
2018/02/28
352
1,544
<issue_start>username_0: I'm debugging an app using Android Studio debugger. I stepped into some system classes and got the common "Source code does not match the bytecode" message. A "alternative source available for class..." bar also appeared. There's a spinner allowing me to select the sources to use with the debug...
2018/02/28
1,649
5,486
<issue_start>username_0: I am trying to run my Joomla website on localhost but getting following error: **Warning: session\_start(): Failed to read session data: user (path: C:\xampp\tmp) in C:\xampp\htdocs\Joomla\_3\libraries\joomla\session\handler\native.php on line 258 Error displaying the error page: Application I...
2018/02/28
1,294
3,326
<issue_start>username_0: I'm currently banging my head against this (wrong) behaviour. When I execute a CURL request in ant the upload results in a file with **size=0** and when I execute the same request in the shell the file has the **correct size**. **ANT target output:** ``` [echo] path.toFile=/home/marcel/gitre...
2018/02/28
1,045
3,732
<issue_start>username_0: [![](https://i.stack.imgur.com/l0yaY.png)](https://i.stack.imgur.com/l0yaY.png) ``` Building Type Villa Building Name/Number Flat No Floor No Room No Room Type {{room.room\_type}} Wall Number Wall Width Wall Height Window Exists Yes No ``` this HTML code , the...
2018/02/28
964
3,613
<issue_start>username_0: I have the following code: ``` VH1 MTV export default { data() { return { channel: 'mtv' } }, watch: { channel: function(newValue) { console.log('value has been changed to ' + newValue); } } } ``` When I click on a radio button, nothing happens. But when I removed the "dat...
2018/02/28
4,688
12,736
<issue_start>username_0: I'm setting up my first ASP.NET core application. This application runs on HTTPS. Currently, I have two domains that respond: `domain.dk` and `www.domain.dk`, and I want to `301` redirect `www` to `non www`. I've Googled a lot and ended up adding the following class: ``` public class NonWwwRu...
2018/02/28
1,255
3,886
<issue_start>username_0: I'm using ApacheBench (ab) to measure the performance of two nginx on Linux. They have same config file. The Only difference is one of nginx is running in a docker container. **Nginx on Host System:** ``` Running: ab -n 50000 -c 1000 http://172.17.0.2:7082/ Concurrency Level: 1000 Time ...
2018/02/28
755
2,722
<issue_start>username_0: What can be the best to check if var is having str, unicode or None; but not anything else? I tried with ``` if not isinstance(ads['number'], (str, unicode, None)): .... ``` but got below exception: ``` TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types ...
2018/02/28
403
1,451
<issue_start>username_0: How to use an argument with question mark in methods have keyword arguments? ``` def foo(arg?:) p arg? # ERROR end foo(arg?: true) ```<issue_comment>username_1: You can't do that. Parameter names can't have question or exclamation marks. Only method names can have them. As username_2 ment...
2018/02/28
1,097
3,630
<issue_start>username_0: I want to convert `dateStartString = “28/02/2018”` in to `Date` and compare that converted date with today date. when i convert `dateStartString` the converted date is `"2018-02-27 18:30:00 UTC"`.why its output is wrong date? **here is my code** ``` var dateStartString = "28/02/2018" let dat...
2018/02/28
2,010
6,923
<issue_start>username_0: **After spending another three hours, I thought I may got the solution.[forward-references](https://www.python.org/dev/peps/pep-0484/#forward-references)** **if there isn't any better way to do this, I'll close this question later and post that solution** I'm doing reverse engineering on a pr...
2018/02/28
2,351
7,653
<issue_start>username_0: I've written a script in python to get the price of last trade from a javascript rendered webpage. I can get the content If I choose to go with `selenium`. My goal here is not to use any browser simulator like `selenium` or something because the latest release of [Requests-HTML](http://html.pyt...
2018/02/28
578
2,133
<issue_start>username_0: Its been a tough day. I am struggling to find how to get the list of managed disks by a specified resource group in azure-sdk-for-python. Searched all possible solutions, but nothing gets near what i was looking for. Hand salute for ms who did well its documentation, yes sir! Successfully made ...
2018/02/28
779
2,973
<issue_start>username_0: This is my scenario. I am developing a `firebase login` iOS app. For this i am using `Email & Password Authentication` and `facebook authentication`. Lets assume if user knows his email but forgot the password. How can i identify if the user logged in with facebook or email, and how to reset th...
2018/02/28
913
3,491
<issue_start>username_0: So i tried anything to get a specific key:value. But it seems that i cant find a solution for this. Any help? ```html { "contracts":[ { "contractid":"BemDRHtv17", "cid":"", "category":"WORK", "mainCategory":"Grundeinkommen", "...
2018/02/28
353
1,228
<issue_start>username_0: I am having a inside that component there is a template and selector here is my component ``` @Component({ selector: 'labelnumeric', template: 'hello' }) export class LabelNumeric { } ``` I want to add a property to the label bold and italic dynamically so how can i do this?<issue...
2018/02/28
205
795
<issue_start>username_0: I have a solution with 3 projects in visual studio where one is wpf and the 2 other are console. The wpf project is built without problems as exe file but the two console projects get built as dll file but I need all projects as exe not dll file.<issue_comment>username_1: In VS 2015/2017 you ne...
2018/02/28
483
1,631
<issue_start>username_0: i am using following command: ``` sudo gem install cocoapods ``` for this i am getting following response: ``` ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Failed to open TCP connectio...
2018/02/28
398
1,501
<issue_start>username_0: I am creating QR code in swift and assigning it to an imageView when I try to share that image with generated code, it does not shares that image, ``` func createCode() { let text = email let data = text.data(using: .ascii, allowLossyConversion: false) fillter = CIFilter(name: "...
2018/02/28
682
1,555
<issue_start>username_0: I have a string called "strtosearch2" like this: ``` [02112017 072755 332][1][ERROR]> ----Message : IDC_NO_MEDIA [02112017 072755 332][1][INFO]> ---- [02112017 104502 724][1][ERROR]> ----Message : DEV_NOT_READY [02112017 104502 724][1][INFO]> ---- [02112017 104503 3...
2018/02/28
1,045
3,279
<issue_start>username_0: When I use sbt the error message appears as below: ``` ==== public: tried [warn] https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11/scala-library-2.11.pom [warn] ==== bintray-spark-jobserver-maven: tried [warn] https://dl.bintray.com/spark-jobserver/maven/org/scala-lang/scala...
2018/02/28
785
2,523
<issue_start>username_0: I am new to React.I am facing this error.I have the code which is pasted below.Please help get out of this error. ``` import React from 'react'; import { Card} from 'semantic-ui-react'; import axios from 'axios'; export default class PersonList extends React.Component { state = { persons:...
2018/02/28
680
2,259
<issue_start>username_0: Everytime I click on the user name I get this error (The action 'show' could not be found for UsersController in this your\_list.html.erb) This is your\_list.html.erb ``` <%= image\_tag avatar\_url(list.item.user), class: "img-circle avatar-medium" %> <%= link\_to user\_path(list.item.us...
2018/02/28
515
1,794
<issue_start>username_0: I want to capture server http response in qt demo browser and check the header fields. How to implement this using qt webengine? I also saw QWebEngineUrlRequestInterceptor but using this class we cant read http header fields.<issue_comment>username_1: create constructor and declare your state ...
2018/02/28
832
2,803
<issue_start>username_0: I pass a long number as string from `FirstVC.swift` to `SecondVC.swift` like: ``` let userId = user.userID // GOT FROM GOOGLE SIGN IN let vc = self.storyboard?.instantiateViewController(withIdentifier: "SecondVC") as! SecondVC let navigationController = self.tabBarController?.navigationContro...
2018/02/28
1,014
3,442
<issue_start>username_0: I am Receiving this error > > No route matches [POST] "/projects/16/todos/35/edit" > > > I understand that I don't have to put a method for that, but how can I add it This is **routes.rd** ``` Rails.application.routes.draw do # For details on the DSL available within this file, see h...
2018/02/28
993
3,678
<issue_start>username_0: Im getting an error in my wp-debug log saying "PHP Warning: session\_start(): Cannot start session when headers already sent in ...hooks.php on line 228". Here is a code snippet from the file ``` function _action_fw_flash_message_backend_prepare() { if ( ! session_id() ) { ...
2018/02/28
1,139
2,830
<issue_start>username_0: I have the following data frame: `z<-data.frame(A=c(40, 41, 42, 45, 46, 47, 48, 46, 45, 38, 41, 42, 46, 39, 45, 47, 48, 50, 39, 41), B=c('California', 'Arizona', 'Texas','Arizona', 'Arizona', 'Texas', 'California', 'California', 'Texas', 'California', 'Arizona', 'Texas', 'Texas', 'California',...
2018/02/28
981
2,503
<issue_start>username_0: I want to retrieve all the fist value of the repeating value in a column. My table is like below ``` ID FirstName LastName sequence 1 John Doe 1 2 Bugs Bunny 1 3 hari Joh 2 4 Ram Johns 2 5 Ramaaa Sam 3 ...
2018/02/28
1,459
4,019
<issue_start>username_0: So I am working on a JavaScript web browser game. I am trying to display images for a tutorial that draw images in different locations. What I want to do is use setTimeout inside my for loop so that it draws the image waits 5 seconds, then draws the next tutorial image. But when I run it, I jus...
2018/02/28
1,885
5,228
<issue_start>username_0: I've been working on the simplify selection ranges puzzle on codingame <https://www.codingame.com/ide/puzzle/simplify-selection-ranges> and am completely stumped on how to get it done. Edit: I've just managed to get it to pass the first test, but all of the others are failing, here's test 4 > ...
2018/02/28
417
1,286
<issue_start>username_0: Below is the html for SVG, pls help me with creating XPATH for same ``` ```<issue_comment>username_1: Try the following `xpath` : ``` //svg[@class='svg-connector'] ``` Upvotes: 0 <issue_comment>username_2: For `svg` nodes you need to use below syntax: ``` //*[name()="svg" and @class="svg-c...
2018/02/28
768
2,593
<issue_start>username_0: I am really new to the vanilla JavaScript so bear with me. So I have an array of objects that looks like this: ```html var partyGuests =[ { firstName: "Wayne", lastName: "Gretzky", items: "birthday cake" }, { firstName: "Emily", last...
2018/02/28
752
2,742
<issue_start>username_0: I have forked project A in GitLab and create B and made some modification. After a month now i would like to update B project by pulling changes done in A. How can i do this? I have option to create Merge request but i could't able pull from A. I know this could be very simple because if anyo...
2018/02/28
705
2,506
<issue_start>username_0: how to take screenshot of when I am open Skype, FB or Twitter , but our app is running background using swift . ``` Step 1: Open our app Step 2: Move to back ground state ,(press home button) Step 3: Open third party app like FB,Skype,WhatsApp,Twitter and so on (click Skype and op...
2018/02/28
2,453
7,387
<issue_start>username_0: I am trying to get my simple\_form to work on a nested resource and it is being uncooperative. These are my models: `location.rb`: ``` # == Schema Information # # Table name: locations # # id :integer not null, primary key # name :string # created_at :datetime ...
2018/02/28
399
1,176
<issue_start>username_0: I want to get parameter from url. Following is my url. I wnt to get "uid" parameter from my url. ``` http://localhost:8080/mydemoproject/#/tables/view?uid=71 ```<issue_comment>username_1: Try solving these problems with RegEx ``` let myURL = window.location.href; // "http://localhost:8080/my...
2018/02/28
378
1,163
<issue_start>username_0: I want to run a service to send some data to server continuously, but when my watch is sleep mode (when screen is off) app shouldn't stop the service.<issue_comment>username_1: Try solving these problems with RegEx ``` let myURL = window.location.href; // "http://localhost:8080/mydemoproject/#...
2018/02/28
645
2,263
<issue_start>username_0: Im using **Prestashop** for a website where the content pages are build using: `Prestashop > Preferences > CMS > Source-Code`. So for each CMS page i use source code which is basic **HTML**. **THE PROBLEM** Im trying to integrate a widget to the site CMS page, now ive tested the widget on a...
2018/02/28
489
1,894
<issue_start>username_0: **Scenario:** There is a method which generates a Password for Students. All Students must use this password. We need to verify that all Student types can access the test papers with this password. ``` testClass extends BaseClass{ testStudent1(){ driver.findElement(By.xpath(xpathExpression)...
2018/02/28
1,081
3,759
<issue_start>username_0: Good day! I have a simple springboot application with mysql jdbc repository. I have properties for connect to DB ``` spring.datasource.url=jdbc:mysql://*:3306/*?useSSL=false spring.datasource.username=* spring.datasource.password=* spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver...
2018/02/28
888
3,649
<issue_start>username_0: I am developing a REST API using spring boot. Following is my package structure Getting the following exception when I try to start my application ``` *************************** APPLICATION FAILED TO START *************************** Description: Field articleRepository in com.abc.service.A...
2018/02/28
625
2,106
<issue_start>username_0: Why Scala compiler cannot compile [next code](https://scastie.scala-lang.org/OZ53Az3TTk6X3m1cCe9qDw) : ``` trait Profile {} class SomeProfile extends Profile trait Foo { def get[T <: Profile]: Option[T] } object Example { val foo: Foo = new Foo { // This works (but might give runtime...
2018/02/28
259
1,016
<issue_start>username_0: Half year ago I reinstalled operation system and unfortunately deleted source code which I converted to dll, and now I have only dll file and don't know how to convert it to source code, I tried to use reflector but it didn't help? Can anyone help me please? **UPD** *is not a .NET module.* my...
2018/02/28
167
642
<issue_start>username_0: My Windows Screen is turned grey, i tried everything like updated drivers, windows restarted but it remains same. i don't know what happened. please help to resolve this issue. [![enter image description here](https://i.stack.imgur.com/iEluY.png)](https://i.stack.imgur.com/iEluY.png)<issue_co...
2018/02/28
441
1,780
<issue_start>username_0: I have a list of FTP files and I can only convert the first `FTPFile` to `File`. I am using `org.apache.commons.net.ftp` library. My code is works fine for the first time: ``` for (FTPFile file : files) { if(ftpClient.sendNoOp()){ if(file.getName()!=null || !file.getName().equals(""))...
2018/02/28
334
1,329
<issue_start>username_0: I just started learning Codeigniter (CI) and I wanted to import CSV file to the database. I followed the <https://codeigniter.com/user_guide/libraries/file_uploading.html> but still confused. How to capture the file from the upload form? On PHP native, the code is ``` $_FILES['file']['tmp...
2018/02/28
1,811
6,623
<issue_start>username_0: I am new to Kotlin and I am confused between `open` and `public` keywords. Could anyone please tell me the difference between those keywords?<issue_comment>username_1: The `open` keyword means “open for extension“ - i.e. it's possible to create *subclasses* of an `open` class: > > The `open` ...
2018/02/28
566
2,423
<issue_start>username_0: Why does ethereum uses RLP encoding encoding for serialising data i mean is there are specific reason for not using already existing formats ?? other than RLP being really compact and space efficient.<issue_comment>username_1: The purpose of RLP (Recursive Length Prefix) is to encode arbitraril...
2018/02/28
1,241
4,218
<issue_start>username_0: I'm trying to create a database and connect to it within my container network. I don't want to have to ssh into a box to create users/databases etc, as this is not a scalable or easily distributable process. This is what I have so far: ``` # docker-compose.yml db: image: postgres:9.4 ...
2018/02/28
360
1,427
<issue_start>username_0: How can I start `getdata()` method to another class. I want to show the output to a `ListView which is in another Java class. **tab1Background.java** ``` public class tab1Background extends Activity{ ListView lv; lv = (ListView) findViewById(R.id.lv); //some code here public void getdat...
2018/02/28
1,102
3,899
<issue_start>username_0: I'm studying Spring MVC, and I stuck almost at the start. I've followed the video about creating first MVC app but it's not working for me. I want to get *main.jsp* as start page, following the config but the page is not loading, I'm getting 404 all the time. I've create a new Maven project. Th...
2018/02/28
585
1,863
<issue_start>username_0: How to change span color to red in select option? in js fiddle i want to change color of `This is a required field.` to red color [![enter image description here](https://i.stack.imgur.com/nRF2c.png)](https://i.stack.imgur.com/nRF2c.png) ```css select{ color: green; } select option { colo...
2018/02/28
573
1,835
<issue_start>username_0: I am working on a project to scrape multiple twitter URL's and assign their follower count to a csv: ``` username= ['LazadaPH','ZALORAPH','ShopeePH','eBayPhilippines','beauty_MNL'] for user in username: url = 'https://www.twitter.com/'+ user r = requests.get(url) soup = BeautifulSoup...
2018/02/28
741
2,468
<issue_start>username_0: I'm trying to integrate with an API. Assuming the following code works. ``` $lists = $ac->api("list/list_", array("ids" => "all")); echo" ``` "; print_r( $lists); echo" ``` "; ``` Outputs the following stdclass object ``` stdClass Object ( [0] => stdClass Object ( ...
2018/02/28
230
919
<issue_start>username_0: I have a Spring Boot project where I used `activiti-spring-boot-starter-basic 5.22` dependency. But whenever I am running the Spring Boot app the processes in `src/main/resources/processes` will always get deploy if it has been changed and I don't want it to deploy. How can I disable auto dep...
2018/02/28
236
916
<issue_start>username_0: Facing following issue: ``` (tensorflow) C:\Users\venkat>git config clone https://github.com/tensorflow/tensorflow 'git' is not recognized as an internal or external command, operable program or batch file. ```<issue_comment>username_1: if you need to clone the repository use just `git clone...
2018/02/28
209
818
<issue_start>username_0: Is there a way to find the names and number of EC2 instances that have an EFS mounted on them, through code or UI?<issue_comment>username_1: if you need to clone the repository use just `git clone https://github.com/tensorflow/tensorflow` 'git' is not recognized mean that either you don't ha...
2018/02/28
387
1,515
<issue_start>username_0: I'd like to get the running function's name every second. I tried with this code: ``` public static void DisplayTimeEvent(object source, ElapsedEventArgs e) { // code here will run every second //Output is DisplayTimeEvent but I want it to print Main Console.WriteLine(GetCurrentMe...
2018/02/28
4,353
16,133
<issue_start>username_0: I have a shared development server which is set up to automatically *pull the latest version* of a git repository every minute. From time to time, this appears to fail, and when checking with `git status` I get a message that ``` Your branch is ahead of by commits. ``` If I follow up by `...
2018/02/28
751
2,742
<issue_start>username_0: in my function I have two where clauses. what I want is to check whether a document exits, where two ids are found. but when I run it, it returns all the records of collection. can anybody tell me where I messed up? ``` setApplyStatus() { var query = firebase.firestore().collection('applic...
2018/02/28
2,521
6,288
<issue_start>username_0: How can I change google bubble chart bubble color ?.i didnt find any soultion from their api. I need Extreme bubble color = 'Red' or color hex code High bubble color = 'Orange' or color hex code Medium bubble color = 'yellow' or color hex code Low bubble color = 'green' or colo...
2018/02/28
1,338
5,201
<issue_start>username_0: I am a beginner in iOS and work with swift 2. i'm based on this video : <https://www.youtube.com/watch?v=itbok1NZvss> (Which is based on SWIFT 3) create a expandable `UITable` . but `UITableViewCell` not Expand when i clicked. In this means, `UITapGestureRecognizer` does not work. **my code...
2018/02/28
457
1,437
<issue_start>username_0: I am trying to convert blogger timestamp format to milliseconds and below is my code. Once it is converted to milliseconds and then I further convert the milliseconds to date and time but it displays the **wrong date and time** **Sample Code:** ``` php echo strtotime("2018-02-26T01:52:00-08...
2018/02/28
325
1,223
<issue_start>username_0: I am using elasticsearch 6.2.2 as sink in flink, but while reading in apache flink documentation, i can see connector for elasticserver version 5.x but no connector for 6.x is mentioned. Does flink support any connector for elasticsearch 6.x? or should i make any http client and make a post re...
2018/02/28
891
2,292
<issue_start>username_0: How do I count trailing zeros in a vector of string. For example, if my vector of string is: ``` x = c('0000','1200','1301','X230','9900') ``` The answer should be ``` > numZeros [1] 4 2 0 1 2 ``` I do not want to use multiple `ifelse` as I think a more elegant and faster solution should...
2018/02/28
530
2,172
<issue_start>username_0: In ARCore sample,How to add Virtual object as soon as horizontal plane detected.I tried following code but not works, ``` // Check if we detected at least one plane. If so, hide the loading message. if (messageSnackbar != null) { for (Plane plane : session.getAllTrackables(Plane....
2018/02/28
1,316
4,695
<issue_start>username_0: If I have the following model: ``` Public class Person { public string Name {get; set;} public string Type {get; set;} public int Salary {get; set;} } ``` and I have a list of Persons, `List persons = new List();` Now I want the most common salary of Managers, if none exists I want mo...
2018/02/28
1,121
3,721
<issue_start>username_0: I was trying to round down value **199.5** from String to Double with ObjectMapper in swift as follow: > > balance <- (map["balance"], TransformOf(fromJSON: { > String(format: "%.0f", $0!) }, toJSON: { $0.map({ > Double($0)?.rounded(.down) ?? 0 }) })) > > > unfortunately, result is valu...
2018/02/28
644
2,592
<issue_start>username_0: I'm trying to achieve hide and show the header view with slow animation like facebook while scrolling the collection view. Image : ![enter image description here](https://i.stack.imgur.com/ooUMT.gif) My code : ``` if (currentContentOffset > self.previousContentOffset) { heightConstrai...
2018/02/28
2,581
10,308
<issue_start>username_0: I am tyring to set up symfony4 api JSON login by JWT. The api platform core bundle is installed and I followed this instruction: <https://api-platform.com/docs/core/jwt/> I created the custom user provider as described. By opening the URL /api/login\_check the error message "Unable to find the...
2018/02/28
298
913
<issue_start>username_0: ``` ; function myfunction() { num1 = 8 num2 = 25 num3 = 10 return (num1 \* num2) + num3) } document.write(myfunction()) myfunction() ``` I'm currently learning JavaScript and I have problem calling the function on another script.<issue_comment>username_1: I think you are in tro...
2018/02/28
534
1,948
<issue_start>username_0: I am looking for a solution to render `React` content conditionally based off the user's Operating System. Eg. I have a simple component that displays keyboard shortcuts to interact with another component I'm using. In this case, the keyboard shortcuts for `Windows` and `Linux` are meant to sh...
2018/02/28
614
2,464
<issue_start>username_0: When I'm putting the following code specifically in the immediate window in Visual studio, it returns correctly: ``` whatToMatch.Remove((whatToMatch.IndexOf(input[i])), 1) ``` But when I put it in a program as shown below, it fails:- ``` using System; using System.Collections.Generic; using...
2018/02/28
1,618
5,741
<issue_start>username_0: I'm trying to dockerize the [Jupyter Lab](https://github.com/jupyterlab/jupyterlab) and so I tried to create a `Dockerfile` as below, ``` FROM python:3.6 WORKDIR /jup RUN pip install jupyter -U && pip install jupyterlab EXPOSE 8888 ENTRYPOINT ["jupyter", "lab"] ``` and run the commands...
2018/02/28
1,197
4,462
<issue_start>username_0: I have this image. [![enter image description here](https://i.stack.imgur.com/4htJX.png)](https://i.stack.imgur.com/4htJX.png) I want to classify all of pixels. The color of the pixels in this image is as follows: 1. Blue: Water 2. Red: Roof 3. White: Road 4. Yellow: Shallow 5. Light Green: ...
2018/02/28
586
2,113
<issue_start>username_0: Suppose I have two integers `x` and `y`, and I want to check whether their sum is larger than `UINT_MAX`. ``` #define UINT64T_MAX std::numeric_limits::max() uint64\_t x = foo(); uint64\_t y = foo(); bool carry = UINT64T\_MAX - x < y; ``` That code will work, but I want to know if there's a ...
2018/02/28
255
1,018
<issue_start>username_0: I have an issue while sending the below two emails through CF 2016. When I run my code I'm receiving the "Password" email first and then the "Username" mail second. The order of sending is getting changed. I need to get "Username" mail first and then "Password" mail. How can I resolve this? ``...
2018/02/28
905
2,382
<issue_start>username_0: I want to invert text color based on the background of the text, like in this image: [![image](https://i.stack.imgur.com/QsTT8.png)](https://i.stack.imgur.com/QsTT8.png). So I've tried the following code, but it didn't work: ```css #warp, #text, #tri { position: absolute; top: 0; left: ...
2018/02/28
1,809
5,934
<issue_start>username_0: I recently had an assignment in my algorithms class. The problem statement is given below: > > Write and briefly explain the following C++ function: `int Sum (int *nums, int len);` that accepts an integer array, nums, containing len > 0 positive integers, and returns the sum closest to 330 th...
2018/02/28
672
2,524
<issue_start>username_0: Simple question: In the following generic class, how should the generic type and contained types be defined so that they are nullable? The following will not compile. ``` class Pair? of G1, G2: Object _first:G1? _second:G2? construct() _first = null _second = nul...
2018/02/28
2,942
9,989
<issue_start>username_0: I am having a problem deploying my Node.js to the IIS, in my `web.config`: ``` > > > ``` I am getting this error: [image](https://i.stack.imgur.com/V3mB9.png) This how my web files tree looks: [web files](https://i.stack.imgur.com/5U76g.png) I tried to give full permission to `IIS_IUS...
2018/02/28
438
1,671
<issue_start>username_0: I'm currently having an input element for a phone number and trying to use the pattern attribute but it refuses to do so. it says "Validation(HTML5): **Pattern is not a valid attribute of element input"!** When I change the type to "text" it says that **pattern attribute is only valid when titl...
2018/02/28
632
2,174
<issue_start>username_0: ``` Document $(document).ready(function(){ var h = $("#im").height(); alert("Hello from ready. Height is " + h); }); $(window).on("load", function(){ var h = $("#im").height(); alert("Hello from load. Height is " + h); }); ![](flower.jpg) ``` 1) The above is my code. When I run t...
2018/02/28
625
1,874
<issue_start>username_0: (sum (case when NATIONALITY != 'Saudi' and DIVISION='Dammam Central' and STATUS is null then (current\_salary) end))-(sum (case when NATIONALITY != 'Saudi' and DIVISION='Dammam Central' and internal\_transfer\_from in ('Dammam Central','Dammam East','Jeddah SMPT','Jubail','hadeed MTO','Hadeed F...
2018/02/28
810
2,508
<issue_start>username_0: Suppose I have the following code: ``` template void DoSomething(const Args&... args) { for (const auto& arg : {args...}) { // Does something } } ``` Now let's say I'm calling this from another function, and want to pass in an `std::vector` (or somehow modify the vector in such a way th...
2018/02/28
2,154
5,043
<issue_start>username_0: I need RegEX help please... basically a pattern that matches the following strings ``` G1:k6YxekrAP71LqRv[P:3] G1:k6YxekrAP71LqRv[S:2,3,4|P:3] G1:k6YxekrAP71LqRv[P:3|R:2,3,4,5] G1:k6YxekrAP71LqRv[S:2,3,4|P:3|R:2,3,4,5] ``` "G1:k6YxekrAP71LqRv" and "P:3" are the main thing to match I've...
2018/02/28
1,094
3,660
<issue_start>username_0: I have a table that includes two columns, these columns have ranges i.e ``` Batch from _serial_no to_serial_no a 1 5 b 2 7 ``` I want to create another column to fill in the gaps for a abd b separately Something like this ``` Batch from _serial_no to_serial_no seq_number a...
2018/02/28
375
1,239
<issue_start>username_0: I want to create dataframe from two csv files have same schema but the folder path is different from the another<issue_comment>username_1: You can give `list of string paths` while you read the csv files using `sqlContext` ``` sqlContext.read.format("com.databricks.spark.csv").csv(["path1", "p...
2018/02/28
553
1,730
<issue_start>username_0: My PC runs Windows10 and I have installed the following version of Python via Anaconda 3: Python 3.6.2 :: Anaconda custom (64-bit) I am trying to install pdfminer.six but I am running into an exception: [![enter image description here](https://i.stack.imgur.com/uR7yr.jpg)](https://i.stack.img...
2018/02/28
719
2,798
<issue_start>username_0: Good Day I have a table of Activities that occurred in different dates and can be retrieved with the query (T-SQL) bellow: ``` Select Activities.activityid, Activities.ActivityTypeCode, Activities.ActivityDate, Activities.SequenceOrder, Activities.Place, ...
2018/02/28
693
2,292
<issue_start>username_0: ``` .slidercard:nth-of-type(1){ display:none; } .slidercard:nth-of-type(2){ display:none; } ``` **js** ``` var b = $('.slidercard').length; console.log(b); // result: 14 - that's ok $('.slidercard').each(function(){ if ($(this).css("display") == "none") { $(this).remo...
2018/02/28
379
1,300
<issue_start>username_0: I wanted to display `.html` file on my content page but it's not displaying instead it gives an error like > > "The resource cannot be found." > > > I stored my sample.html on Temp folder. I'm trying to use the keyword using, `streamreader` and `iframe`. this is what I've done so far. Pl...
2018/02/28
559
1,985
<issue_start>username_0: With Symfony 4, I want to generate Entities from an existing database but when I try to convert my `*.orm.xml` files, I get this message : ``` [OK] No Metadata Classes to process. ``` I have several `*orm.xml` files in `src/Resources/config/doctrine` : ``` ls -l src/Resources/config/doctrin...