date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/04
1,683
5,673
<issue_start>username_0: I am trying to use JSOUP to parse a form with fields inside of a table in order to get the fields and their labels. The problem I am running into is I cannot find any pattern or common attributes to the labels. Below is an example of the HTML pages with labels marked as Label 1, Label 2, etc, a...
2018/03/04
549
1,939
<issue_start>username_0: I am working with a QTableView and trying to retrieve values from the selected row(s). At other times I will be working with mulitiple rows using: ``` self.tableView5.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) ``` The code below works, but only when the first row is selected. H...
2018/03/04
602
2,080
<issue_start>username_0: I'm trying to understand this part of RESTHeart documentation, but I can't: <https://softinstigate.atlassian.net/wiki/spaces/RH/pages/9207828/Installation+and+Setup#InstallationandSetup-5.1ConnectRESTHearttoMongoDBoverTLS/SSL> > > create the keystore importing the public certificate used by m...
2018/03/04
324
1,187
<issue_start>username_0: I am using [this](http://vuejs-templates.github.io/webpack/) webpack template for a Vue.JS website. I deployed the app and it works well, but if you go to developer tools > Sources in Chrome, then under webpack:// you can see the components and the whole code. Is there a way to get rid of tha...
2018/03/04
2,148
7,377
<issue_start>username_0: I am using an `nGram` tokenizer in ES 6.1.1 and getting some weird highlights: * multiple adjacent character ngram highlights are not merged into one * `tra` is incorrectly highlighted in doc 9 The query `auftrag` matches documents 7 and 9 as expected, but in doc 9 `betrag` is highlighted in...
2018/03/04
606
1,926
<issue_start>username_0: I'm looking for some guidance here where I've struggled to get working. I have an associative array with the following options: ``` $options_format [] = [ 'name' => 'Audio', 'type' => 'Audio', ]; $options_format [] = [ 'name' => 'EBook', 'type' => 'EBook', ]; $options_format ...
2018/03/04
954
3,395
<issue_start>username_0: If you look at the VS Code terminal - its too tiny. Here're the user settings that I have modified to create this result. I have searched how to change terminal fonts at VS Code, but I have followed all instructions pertaining to `terminal.integrated.fontSize` and this doesn't help at all - it...
2018/03/04
1,196
3,534
<issue_start>username_0: I'm trying to understand how casting works in Scala. Here is the example: ``` object Main extends App { val ai: Array[Any] = Array(1, 2, 3, 4, 5, 6) val ar: Array[AnyRef] = ai.map(_.asInstanceOf[AnyRef]) } ``` And it works fine. <https://ideone.com/6PerTR> Now let's rewrite it as fo...
2018/03/04
1,377
5,822
<issue_start>username_0: I'm trying to test my Spring 5 web controllers with JUnit 5. The two way to test controller (as mentionned in spring documentation) always give me null pointer. This is my test class ``` import com.lacunasaurus.gamesexplorer.test.configuration.TestBackEndConfiguration; import com.lacunasaurus...
2018/03/04
477
1,541
<issue_start>username_0: In Javascript, there is == operator to test if a value is falsy: ``` '' == false // true ``` In Python, == corresponds to === in Javascript, which is an exact equation (value & type). **So how to find out if a value is Falsy in Python?**<issue_comment>username_1: What worked was using terna...
2018/03/04
679
2,477
<issue_start>username_0: I'm searching for 2 days now for a fix but I dont find one may you can help me that is what I have now: I'm not downloading the images from a server or something ``` @Override public View getView(int position, View view, ViewGroup viewGroup) { ViewHolder holder; ...
2018/03/04
1,116
4,428
<issue_start>username_0: I am new to firebase, and am building an android app to practice. My app is very straightforward. There are Users, who can create an Event. Other users can either accept or reject an invitation to an Event. To keep things simple, whenever an Event is created, all Users in the database get invi...
2018/03/04
1,626
5,877
<issue_start>username_0: In my template, I have this code: ``` {{item.icon}} {{item.label}} ``` where `navItems` is an array in my component: ``` navItems: NavItem[] = [ { link: 'link1', label: 'Label 1', icon: 'thumb_up', color: 'green', enabled: true }, { link: 'link2', label: 'Label 2', icon: 'th...
2018/03/04
2,231
7,123
<issue_start>username_0: I've installed homebridge and homebridge-nest with success on my Raspberry Pi 3 (running Raspian). After copying the config.json file into the appropriate directory and running the homebridge command, I get the following error: > > pi@raspberrypi:~ $ homebridge > **\* WARNING** The program...
2018/03/04
1,343
4,786
<issue_start>username_0: I am trying to create an animation in CSS or JS simmilar to this:<http://oshinewptheme.com/v29/> So when the user scrolls down onto the image it rises up slightly and fades in.I have created the base structure for this: HTML ==== ``` ![](1.jpg) ![](3.jpg) ![](4.jpg) ![](5.jpg) ![](8.jpg) ![...
2018/03/04
615
2,470
<issue_start>username_0: I'm working on a diagramming software using THREE.js. Some of the drawn rectangles are on the same plane, so there's z-fighting, especially, but not limited to, when I move the camera. I have found two solutions that work for me. First: ``` polygonOffset: true, polygonOffsetUnits: 1, polygon...
2018/03/04
2,757
8,550
<issue_start>username_0: I have the following Dockerfile: ``` FROM golang:1.9.4 RUN apt-get update &&\ apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common &&\ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - &&\ apt...
2018/03/04
331
1,325
<issue_start>username_0: In VS2017 Community, I have created a folder that I upload images to. But, I cannot see the images in the solution explorer, it is just blank. Also when I publish my solution, the folders are missing and are not published. There are images in the folder. I have tried right clicking to include ...
2018/03/04
1,904
3,488
<issue_start>username_0: I want to create an array with numbers going from 0 to 10 in its 1st sub-array, from 11 to 20 in its 2nd and so on... I can create the sub arrays with ``` for i in range(10): print np.arange(10*i, 10*(i+1)) ``` which gives me ``` [0 1 2 3 4 5 6 7 8 9] [10 11 12 13 14 15 16 17 18 19] ...
2018/03/04
1,529
3,892
<issue_start>username_0: ``` A B C 0 blue 14.5 14.0 1 blue 14.0 14.0 2 blue 13.5 14.0 3 blue 12.0 14.0 4 blue 10.5 14.0 5 green 20.0 19.0 6 green 19.0 19.0 7 green 18.5 19.0 8 green 18.0 19.0 9 green 17.5 19.0 10 green 16.0 19.0 ``` I want to create a ne...
2018/03/04
524
2,335
<issue_start>username_0: When it comes to computer/network all data are transferred as 0s and 1s. If so I don't understand what makes difference binary protocol than text protocol. I do understand when it comes image other transfer can happen on binary protocol as those bytes are not human readable. But during REST web...
2018/03/04
2,456
6,611
<issue_start>username_0: Using Visual Studio 2015 I've recorded a web test which includes uploading a file to the website. This site doesn't allow to upload files with the same name. In webtest scenario I have a `File Upload Parameter` with the property `Generate Unique Name` set to `True`: [![enter image description ...
2018/03/04
2,077
6,449
<issue_start>username_0: I have a large table that includes groups of records. I need to make changes to the internal group IDs - I want to run this process for each group seperatly Example data ``` Index Group InternalID Data 001 01 01 002 01 02 003 01 03 Split 004 ...
2018/03/04
1,234
4,046
<issue_start>username_0: I guess this image explains everything: [![enter image description here](https://i.stack.imgur.com/VVbrB.png)](https://i.stack.imgur.com/VVbrB.png) See? I'm setting the value of `2`, but it says `0` is duplicate. Why? Where that `0` comes from? --- Here is the table structure: ``` -- phpMy...
2018/03/04
769
2,674
<issue_start>username_0: Some reason when i call `$_POST['xalue']` it will only return the first index of `$xaxis`. ``` $xaxis = '["-100","-100","240","1056","3560","-650","5980.5","1020"]' ``` im just trying to pass the information so when the button is pressed to add the dashboard i can pass the data along. Thank...
2018/03/04
469
1,762
<issue_start>username_0: I am trying to write test that will test if django app is runnable. I just want to try run django server and if everything is ok return code 0 otherwise another code. ``` python manage.py runserver ``` This command run infinite loop and I need to stop it by *CTRL + C*. And that is the probl...
2018/03/04
994
2,281
<issue_start>username_0: I want to understand the peculiarity of using the construction Case When in Python. I have a text file of the following kind: ``` Head 1 a 10 a 14 a 15 Head 4 a 32 a 55 a 79 Head 53 a 22 a 33 Head 33 a 11 a 66 Head 32 a 88 a 89 a 88 End ``` I want parse and structure this file to next plane:...
2018/03/04
1,296
3,295
<issue_start>username_0: ID output is not available in laravel5. 1. fail ------- ``` dd(Auth::User()->id) ``` output : 0 2. success ---------- ``` dd(Auth::User()->email) ``` output : <EMAIL> Everything else works well. id is not printing. try --- app/Http/Controllers/Auth/LoginController.php ``` public fun...
2018/03/04
1,339
4,140
<issue_start>username_0: Basically, I am doing a tcp project in c and I made it so multiple clients can connect to my server by using fork. In my server I have a linked list structure that keeps data that clients are sending. However, when I am sending data from the client to the linked list located in the server, the ...
2018/03/04
360
1,307
<issue_start>username_0: I try to play online audio songs from online audio streaming websites like `gaana.com` or `saavn.com` etc. on `WebView`. **My Code:** ``` WebView webView = findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient()); WebSettings webSettings = webView.getSettings(); webSettings.s...
2018/03/04
788
2,458
<issue_start>username_0: Working on a 3D scanner for my honours project and I know that there'll be overlapping data that could mess up the mesh tessellation. I've got all the points in a 2D array of form `[[x1 y1 z1][x2 y2 z2]...[xn yn zn]]` If given a 2D list like `[[1.1 1.2 1.3][2.1 2.2 2.3][1.1 1.2 1.3]]` I want t...
2018/03/04
198
641
<issue_start>username_0: I have this input ``` [{"email":"etu@etu"},{"email":"hg"},{"email":"ismail"}] ``` and I want to extract only the value on the email using bash.<issue_comment>username_1: I recommend you use some unix tool for this and invoke it in your bash process. Check this out: [json command line proces...
2018/03/04
646
1,977
<issue_start>username_0: I have a flask app that used to run with python3.5 on apache2. I am now trying to change it to run on 3.6 (i have sone type hinting in my code that is only supported on 3.6). I have installed the module for python3.6, but when tried to restart apache and run my app, it fails. When running ...
2018/03/04
678
2,107
<issue_start>username_0: is in Python any way how to initialize the variable only once and then just import it into the remaining modules? I have following python project structure: * api + v1 - init.py + v2 - init.py + init.py * logging.py logging.py: ``` from raven import Client sentry = None def init_se...
2018/03/04
360
1,144
<issue_start>username_0: I don't understand the meaning of the double {}. This is not made clear in any learning material. Thanks. ``` variable <-struct {}{} ```<issue_comment>username_1: `variable` is a variable of type channel (values are sent on it) `<-` is a send operator `struct{}` is type empty struct (has ...
2018/03/04
448
1,855
<issue_start>username_0: I'm creating a div which on overflow goes to the bottom straight away.But how do I constantly check whether an overflow has occurred or not and then fire the function which will scroll down to the bottom of the page? I found this function which scrolls to the bottom ``` var objDiv = docume...
2018/03/04
448
1,865
<issue_start>username_0: I made a simon says project at home and brought the disk on key to school, when I opened it on the program in the school computer all of this my code is solid and it works but for some reason all of these baisc methods like the R symbol that is used in "R.id.etc" the "AppCompatActivity" that i...
2018/03/04
848
3,284
<issue_start>username_0: I am using a django form with ajax using this code: ``` Search : ``` and the Javascript code: ``` $( document ).ready(function() { $('#form-id').on('change', function() { this.submit(); }) $('#form-id').on('submit', function(evt) { evt.preven...
2018/03/04
1,067
4,084
<issue_start>username_0: While working with Angular5 with firebase as the database, I'm trying to create a new user from `createUserWithEmailAndPassword(email, password)`. But when I'm entering an already existing email (for testing), the function is returning HTTP POST error along (not expected) with an error-object...
2018/03/04
592
1,630
<issue_start>username_0: As far as I know 1-D arrays are those arrays which either have just 1 column and any number of rows or vice versa. If I run this code: ``` import numpy as np a = np.arange(10).reshape(1,10) b = np.arange(10).reshape(10,1) print(a.ndim, b.ndim) ``` It returns that both are 2-D arrays. Why...
2018/03/04
550
2,234
<issue_start>username_0: I'm using [the Hero library](https://github.com/lkzhao/Hero) to do a transition between view controllers. First view controller: ``` class ViewController: UIViewController { @IBOutlet weak var tableView: UITableView! var people = [Person]() override func viewDidLoad() { su...
2018/03/04
320
1,199
<issue_start>username_0: Using only ReactJS and no other dependencies, how can we delay a component's unmount event in the `componentWillUnmount` lifecycle method? I'm looking to add, for example, a `500ms` delay so that an animation could play before a component unmounts.<issue_comment>username_1: The best way to do ...
2018/03/04
1,270
4,279
<issue_start>username_0: I have several datasets each of which have a common grouping factor. I want to produce one large report with separate sections for each grouping factor. Therefore I want to re-run a set of `rmarkdown` code for each iteration of the grouping factor. Using the following approach from [here](http...
2018/03/04
548
2,028
<issue_start>username_0: What I'm trying to achieve, is to somehow group together all of the indexed values in an array, other than the one called. To clarify, I've written the following code. The first `document.write` works as expected and prints the indexed string which correlates with the pressed button. With the...
2018/03/04
448
1,660
<issue_start>username_0: I need to search a medium sized MySql table (about 15 million records). My query searches for a value ending with another value, for example: ``` SELECT * FROM {tableName} WHERE {column} LIKE '%{value}' ``` * `{value}` is always 7 characters length. * `{column}` is sometimes 8 characters len...
2018/03/04
694
2,511
<issue_start>username_0: ``` package com.company; import java.util.Scanner; public class javaCalculator { public static void main(String[] args) { setNumbers(x,y);//---->>>>Problem addNumbers(x,y);//---->>>Problem multiplyNumbers(x,y);//---->>>Problem } public static double[] setNumbers(double x, doubl...
2018/03/04
440
1,494
<issue_start>username_0: In this case, I want to retrieve the `m1` key by referring to it's child key with the value of `amoxicillin` from firebase. I haven't tried to code it because i don't know where to begin. ``` { "Medicines" : { "m1" : { "class" : "antibiotic", "name" : "amoxcillin" }, ...
2018/03/04
505
2,001
<issue_start>username_0: I am confused what's wrong with this routing... app.module.routing: ``` ... { path: 'path1', canActivate: [Path1Guard], loadChildren: './path1/path1.module#Path1Module', }, ``` path1.routing.module: ``` const path1Routes: Routes = [ { path: '', component: Authenti...
2018/03/04
825
3,212
<issue_start>username_0: Disclaimer: This question is purely curiosity driven and has to do a lot with how the javascript works. I understand why the following code works. Due to closures, foo has access to the scope where a resides. This makes sense. ``` var a = 10 var foo = function(){ console.log(a); } setTimeou...
2018/03/04
768
3,796
<issue_start>username_0: I have following action in Login controller. For testing purposes Im not using a login form in Index action. Instead I create the claims identity and sign in. This action is GET not POST. It creates a claims identity and use that for `AuthenticationManager.SignIn`. But when I checked browser co...
2018/03/04
615
2,402
<issue_start>username_0: ``` var colors = generateColors(); var squares = document.querySelectorAll(".squares"); var colorDisplay = document.querySelector("#colorDisplay"); var pickedColor = pickColor(); var numSquares = 6; assignColors(); function assignColors(){ for (i = 0; i < numSquares; i++){ squares...
2018/03/04
642
2,270
<issue_start>username_0: I recently started learning about C++ iterators and pointers, and while messing around with some basic exercises I came upon a situation which I think is really unusual. ``` #include #include #include #include #include using namespace std; template void print\_with\_hyphens(ITER begin...
2018/03/04
575
1,876
<issue_start>username_0: Since updating my Python using Homebrew ``` jupyter --version ``` gives ``` -bash: /usr/local/bin/jupyter: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory ``` which makes some sense, since there's no longer a Python at `/usr/local/.../python2.7`. But I don'...
2018/03/04
468
1,761
<issue_start>username_0: Strange problem I'm dynamically including the path to an image in the source directory. Putting the image directory in as a string works Fine (the part I commented out), but as soon as I put it in a variable it gives me the error " Cannot find module "."" ``` var imageDir="assets/img/MyIm...
2018/03/04
397
1,315
<issue_start>username_0: ``` var enteredValue = prompt("enter a number"); enteredValue = enteredValue + 0; console.log(isPrime(enteredValue)); function isPrime(num) { for (var i = 2; i < num; i++) { if (num % i === 0) { return false; } else { return true; } } } ``` Can anyone tell me what...
2018/03/04
302
1,189
<issue_start>username_0: I am new to angular material and I have an auto complete with nationality list, my country contains country code and value. I want to set country code If I select country from drop down and If my response is having country code ,I need to map this with my Country name in ngModel. My problem is ...
2018/03/04
555
1,721
<issue_start>username_0: I have 2 arrays which both containing strings, for example: ``` a = ['a', 'b', 'a'] b = ['b', 'a', 'a'] ``` I have found that I can use lodash with: ``` _.isEmpty(_.xor(a,b)) ``` to make sure they both equal. However this method seems to fail if I have duplicated values in the arrays, ...
2018/03/04
804
2,535
<issue_start>username_0: I have duplicate keys with different values and I want to convert it to a dictionary with 1 key and its values. The next example will explain best what I mean: ``` var tup = new List>(); tup.Add(new Tuple(1, 1)); tup.Add(new Tuple(1, 2)); var dic = new Dictionary>(); ``` What is an elegant...
2018/03/04
1,026
3,845
<issue_start>username_0: I am Rails Beginner. I'm trying to use save password using Devise gem. Somehow I see an issue using `Bcrypt` and as per suggestion i've chosen Devise. When i installed Devise and trying to save password, It is being saved as plain simple text. Here is the code which i am using. **config.rb** ...
2018/03/04
375
1,320
<issue_start>username_0: I am writing a React component that makes my text editable. When clicked, it renders an input, when blurred it renders a text like before. To make it work, I have to put a lot of attributes in my elements. I want to handle many types of inputs (text, number, date, textarea, ...) and I don't wa...
2018/03/04
1,614
7,230
<issue_start>username_0: I'm faced with a situation where I am defining a reusable base class in a module, and I want to provide certain functions that should be callable only by subclasses, not external users of that subclass. I'm writing a framework and packaging it as a Swift module. Part of my framework includes a...
2018/03/04
316
1,363
<issue_start>username_0: I encountered an error 'Internal : End of subsheet without corresponding start' in blue prism after stepping the end stage in process studio,can anyone knows what the error means and when it comes?<issue_comment>username_1: This happens when BP "gets lost" after the end of a page because it was...
2018/03/04
1,000
3,253
<issue_start>username_0: I want to convert an "array" of `bool` to a integer sequence. So I need to compute an `std::array` at compile time. Here is my code ``` #include template inline constexpr typename std::iterator\_traits::difference\_type count( InputIt first, InputIt last, const T &value ) { typename std::...
2018/03/04
858
2,853
<issue_start>username_0: I'm trying to create a small jquery script that tests if any number has been entered in a field while typing. If it has not, a warning box appears below the field with .after() , if the someone types a number -> the warning box will dissapear. The script works fine, but I can't get it to only ...
2018/03/04
898
2,619
<issue_start>username_0: I have been ruby and selenium for some time now. Trying to implement headless and it fails. Even simple example from web. Using Windows 10 on several computers including brand new one with fresh loads applicable resources. Here is the test code. ``` require 'selenium-webdriver' options = Selen...
2018/03/04
2,665
6,171
<issue_start>username_0: I have a layout with a fixed top header, fixed left sidebar, and scrollable right content area. The content includes a long table that I would like to scroll underneath a sticky header. I've created a separate table just for the header purposes, and before I add any fixed-position style to it ...
2018/03/04
820
3,087
<issue_start>username_0: I'm making a shop filter and I need to dynamically get the value of the radio button that has been selected and execute a filter function with the value as a parameter. my HTML is ``` Unisex Man Woman ``` My idea was something like ``` $(document).ready(function(){ $('#optio...
2018/03/04
405
1,355
<issue_start>username_0: I am using SQL Server stored procedures. In my form I have one mandatory field `date` and one optional field `sizeid`. There is two scenarios to retrieve data 1. optional field not empty 2. optional field empty T-SQL query ``` select * from product where date = '4/03/2018' and (case when...
2018/03/04
2,218
6,987
<issue_start>username_0: I have a table of over 10 million rows. There are roughly 50+ columns. The table stores sensors data/parameters. Let's say that I need to query data for the whole day or 86,400 seconds. It would need take roughly 20 or more seconds to complete this query. I have added individual indices on a f...
2018/03/04
830
3,213
<issue_start>username_0: As far as I know, you have to declare `require()` like this in kotlin: ``` external fun require(module: String): dynamic ``` ### Usage ``` val module = require("module") ``` But when using this, I came across this strange problem: ``` var myObject = module.SampleClass(); ...
2018/03/04
606
2,102
<issue_start>username_0: My phone (*Nexus 5*) is constantly rebooting to the TWRP screen where it crashes, shuts down and repeats. **TWRP error**: ``` Could not mount /data and unable to find crypto footer Failed to mount '/data' (Invalid argument) Unable to recreate /data/media folder. Updating partition details... ...
2018/03/04
1,195
4,144
<issue_start>username_0: Below is the actual struct type in aws go sdk elbv2 package. There are other parameters in this struct. I have kept only the necessary ones for simplicity. ``` type CreateTargetGroupInput struct { _ struct{} `type:"structure"` Name *string `type:"string" required:"true"` Port *int...
2018/03/04
1,429
3,214
<issue_start>username_0: I have a simple JavaScript file: ``` var prget = [{"datetime":"2017-10-29","count":36}, {"datetime":"2017-11-05","count":55},{"datetime":"2017-11-12","count":74},{"datetime":"2017-11-19","count":91},{"datetime":"2017-11-26","count":84},{"datetime":"2017-12-03","count":119},{"datetime":"2017...
2018/03/04
944
2,703
<issue_start>username_0: for class I need to model predictions for the March Madness bracket... and I decided to go through Python rather than Excel. My approach is, basically, to generate x amount of random numbers, that x being each team's respective shots per game, and if that number is greater than y, which would b...
2018/03/04
940
2,405
<issue_start>username_0: I have 20 players, each player can vote 3 times one of the 20 players. If the first input "number" is 10,how can I add the votes to userToVote[10][vote],the 10th place from the array. ``` #include #include using namespace std; int userToVote[20][3]; int vote,number; int main() { for(int i...
2018/03/04
672
2,346
<issue_start>username_0: I am working with wordpress Sydney theme, and I am trying to make a responsive website, I realized that it shows different css on different browsers. here is an example: chrome[![enter image description here](https://i.stack.imgur.com/yVIH0.jpg)](https://i.stack.imgur.com/yVIH0.jpg) firefox: [...
2018/03/04
692
2,492
<issue_start>username_0: I'm trying to set red color on my polylines of my map with this code: ``` PolylineOptions rectOptions = new PolylineOptions(); rectOptions.color(R.color.colorPrimary); String[][] lineInformation = ((MyApplication)getApplication()).getLineInformation(line); for (int i=0; i ``` But it's not wor...
2018/03/04
1,097
3,516
<issue_start>username_0: I want to merge related objects from two arrays. ``` var arr1 = [{thing: 'house', material: 'wood', location: 'earth'}, {thing: 'brick-wall', material: 'brick', location: 'moon'}]; var arr2 = [{property: 'made from wood', location: 'earth'}, {property: 'made from brick', location: 'moon'}]; ...
2018/03/04
351
1,298
<issue_start>username_0: I want to get the current Boolean of the switch. how to do that in swift4 ? ``` @IBOutlet weak var switch_1: UISwitch! var switch1_state: Bool = swich_1.get ??? ```<issue_comment>username_1: First of all please use *camelCased* rather than *snake\_cased* variable names. Second of all there's...
2018/03/04
934
3,375
<issue_start>username_0: I am currently working on a WordPress ecommerce website, where the chosen shopping platform is WooCommerce. In the header, I have a 'Shopping Cart' area, where visitors are able to select the text and view what is in their 'Shopping Cart'. I wanted to remove 'Shopping Cart' and replace this te...
2018/03/04
656
2,130
<issue_start>username_0: My env is Django `2.0.2` and Python `3.6.1`. How can I compare two Django QuerySets and return QuerySet with replacement of the same values from second in first? For example, I have QuerySets: ``` >>> qs_local = PriceLocal.objects.filter(user_id=request.user.id) >>> print(qs_local) [{ 'user...
2018/03/04
344
1,452
<issue_start>username_0: I'd like to get the Google Cloud Tools plugin to work with PyCharm and Goland I downloaded the plugin's .zip, and pointed each IDE at it, and installed it. In each case, I receive the following error: ``` Plugin Error Problems found loading plugins: Plugin "Google Clou...
2018/03/04
1,056
3,254
<issue_start>username_0: Hi Guys I can use some help if possible with Pandas: I have an existing csv that have the below structure: ``` column1 column2 column3 column4 1 ww 1 Sam 2 ss 2 Bill 3 Jack list = [[4,Jin],[5,Carl]] ``` I want to write into ...
2018/03/04
181
704
<issue_start>username_0: I have a task to generate a list which can contains strings and integers too. How can I solve this problem in Haskell?<issue_comment>username_1: ``` data StringOrInt = MyString String | MyInt Int deriving (Eq, Show) x :: [StringOrInt] x = [MyString "a", MyInt 2] ``` Upvotes: 2 <issue_co...
2018/03/04
415
1,616
<issue_start>username_0: I am using Database First approach and I have created model from a database. Now I have a datagrid view in my Winforms app, that is bound to a binding source. And all that works fine (an appropriate data is shown in datagrid view). Now the problem is, how to add a computed property that consist...
2018/03/04
713
1,816
<issue_start>username_0: An example: ``` class MyClass { foo: ?string; constructor(foo) { this.foo = foo; } doSomething() { if (!this.foo) throw new Error(); console.log('hi'); // if I comment this line, I get no errors! const myFoo: string = this.foo; } } ``` I get the following error: >...
2018/03/04
690
2,194
<issue_start>username_0: I have a 4 text-represented bytes that i need to divide into 2 bytes (HI and LO byte) and convert it to two integers. How can i do that in plain C? ``` 0x4b 0xab 0x14 0x9d ``` By text i mean that they look like "0x4b" not 0x4b. I already have those string splited into char array, which rep...
2018/03/04
413
1,426
<issue_start>username_0: In my project I use promise (code below), how it is possible, that promise still `pending`, when I used keyword `await`. Can someone help me figure out, what I'm doing wrong? ```js const getTs = async () => { const response = await axios.get('...') .then(res => res.data) .catch(()...
2018/03/04
906
2,423
<issue_start>username_0: I am trying to iterate an array with `forEach` and, based on a condition, I do something. For this question, I simplified the condition in order to try to understand what's going on. I expect array `b = []` after the operation, but it is not, as it operates only on half on the elements. Why d...
2018/03/04
372
1,324
<issue_start>username_0: I've a text file where important phrases are indicated with special symbols. To be exact, they will start with and end with `<\highlight>`. For example, ``` "machine learning<\highlight> is gaining more popularity, so do block chain<\highlight>." ``` In this sentence, important phrases ar...
2018/03/04
938
3,106
<issue_start>username_0: I have Django application with celery, which works fine. ``` app = Celery('backend', broker='amqp://guest:guest@localhost:5672//',) ``` Then I tried to cipher connection with SSL: ``` app = Celery('backend', broker='amqp://guest:guest@localhost:5672//',) app.config_from_object('django.conf:...
2018/03/04
909
3,265
<issue_start>username_0: I am working with web app in which I want to integrate Firebase Notifications but after I setup all the requirements I tried to use Firebase notification composer to test it, I got no errors and the status of the message was completed but I received nothing neither on background nor in foregrou...
2018/03/04
856
2,346
<issue_start>username_0: I am trying to configure a dialplan to GoTo a different context if the SIP header has a diversion number in it. This is not working, as it is failing silently. Here is my `extensions.conf` file. ``` [from-external] exten => _+,1,Noop(incoming call) same => n,Answer() same => n,Set(dive...
2018/03/04
1,848
5,958
<issue_start>username_0: I am currently using Flask-Login for authentication, however I am getting an error that `load_user() missing 1 required positional argument: 'user_id'` but when I debug my app, user\_id exists and is being correctly passed into the `login_user()` function (and stored in the `session['user_id']`...
2018/03/04
502
1,947
<issue_start>username_0: I have 3 activities, they all have a toolbar,they are all working fine,but all of them have a slight difference in their toolbar, so I had to write a lot of similar lines in every activity,is it possible to make a class for the toolbar custom xml layout the same as php ,in php when you make a h...
2018/03/04
373
1,435
<issue_start>username_0: i have a relationship like ``` +------------+---------+ | id | problem | +------------+---------+ | 1 | problem | +------------+---------+ +------------+----------+---------+ | id | problemid|solution | +------------+----------+---------+ | 1 | 1 |...
2018/03/04
413
1,519
<issue_start>username_0: I Want to Implement Two Tableview In One Class. I Khow objective-C does not support method overloading and also Khow How Use Two TableView With Same Method but what if have different parameter type? ``` - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath...
2018/03/04
1,402
4,663
<issue_start>username_0: I have a constraint with my syntax. I just tried `python` some time ago and I started it from AI. I make a bot like Jarvis to help me like opening google or youtube. From the tutorial available in [Pythonspot.com](https://pythonspot.com/personal-assistant-jarvis-in-python/) it shows for **Ubunt...
2018/03/04
323
1,055
<issue_start>username_0: Why this code work ``` public static List RemoveSmallest(List numbers) { numbers.Remove(numbers.Min()); return numbers; } ``` instead of this. What the reason? ``` public static List RemoveSmallest1(List numbers) { return numbers.Remove(numbers.Min()); } ```<issue_comment>username_1: ...
2018/03/04
1,790
6,695
<issue_start>username_0: I have a 3d array created with numpy, and I was wondering how I can rotate it by a custom angle, not just the `rot90` function that numpy has. Can anyone help? The 3d matrix represents an image (such as a cube, or some other shape) ie ``` 0: 1 1 1 1 1 1 1 1 1: 1 1 1 1 2: 1 1 1 1 1 ...