date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/11
2,241
9,371
<issue_start>username_0: After much Googling, I cannot find a clear example how to avoid programming every catch to ascertain if a Promise rejection error is programmatic or operational. Compare this to the Node callback pattern of providing callback(error, params...), where operational errors are cleanly provided in t...
2018/03/11
763
2,908
<issue_start>username_0: I have this Dockerfile ... ``` FROM keymetrics/pm2:latest-alpine RUN apk update && \ apk upgrade && \ apk add \ bash COPY . ./ EXPOSE 1886 80 443 CMD pm2-docker start --auto-exit --env ${NODE_ENV} ecosystem.config.js ``` How can I execute the `CMD` command using `sudo` ? ...
2018/03/11
721
2,842
<issue_start>username_0: I know it sounds crazy, but as asked above, i have lots of pages with the word "Vocal" between and tags and i would like to change this word to "Voices". Make it one page by one would be very tiring and take a lot of time. If it is not possible, "Vocal" should remain as it is. Thanks for any he...
2018/03/11
785
3,438
<issue_start>username_0: I am trying to register time metrics based on the service method but not able to inject ResourceInfo. I want to write some generic logic to register the time based on the service. Here is my code: ``` import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; ...
2018/03/11
1,242
4,374
<issue_start>username_0: I'm really confused about how classes work, I've written this code but get the error message ``` AttributeError: 'str' object has no attribute 'pLatin_converter' ``` but surely the object does have that attribute since it is of the class `pigLatin_class`? ``` class pigLatin_class (object):...
2018/03/11
440
1,545
<issue_start>username_0: As for the Vala language cross-platform to know the bitness of the system?<issue_comment>username_1: `sizeof(void*)` will be 8 for 64-bit systems and 4 for 32 bit systems. Also, 2 for 16 bit systems, but I don't even know that glib will work there. Upvotes: 3 [selected_answer]<issue_comment>use...
2018/03/11
843
3,220
<issue_start>username_0: My superclass is defined as follows: ``` (defclass missionary-state (state) ((missionary-left :initarg :missionary-left :initform nil :accessor missionary-left :documentation "the number of missionaries on the left side of the river") (missionary-right :initarg :missionary-right :init...
2018/03/11
647
2,149
<issue_start>username_0: I need to create a procedure that takes in a number greater than 0 and less than 1 to be used as a discount amount. I also need to create an exception if the user puts in a number outside my parameters. I created the following procedure but it does not compile and I'm not sure where I've gone ...
2018/03/11
549
1,784
<issue_start>username_0: Why is `const_DES_cblock input` can only accept 8 letters at max. For example, ``` const_DES_cblock input = "hehehehe"; // is fine const_DES_cblock input = "hehehehehehehe"; // is giving warning: warning: initializer-string for array of chars is too long [enabled by default] ``` The first li...
2018/03/11
769
2,680
<issue_start>username_0: First take a look at my simple codes below: ``` function mySecondFunction(objArray,setFunc) { for (let i = 0; i < objArray.length; i++) { objArray[i].info.setTop(72); } } function myFunction() { let myObjArray = []; for (let i = 0; i < 10; i++) { myObjArray...
2018/03/11
1,743
7,611
<issue_start>username_0: I am using an MVC architecture. The SignupController creates a User object from the SignupView. Where should this User be stored? I have tried storing it into the MainController, but when I need to access the User object I need to initialise the MainController again, so the User is now null...
2018/03/11
585
1,925
<issue_start>username_0: I tried to use this code to scramble the characters into different characters and return a new list with those new characters. However, I keep getting errors saying : "a list but here has type char" on line 3, "a list list but given a char list" on the line 13 . Not sure how to fix this. Thanks...
2018/03/11
407
1,462
<issue_start>username_0: I'm looking for a way I can get multiple JavaScript Variables (for my code, 4 inputs) from one HTML input (in this case, a text input) so that when anyone hits submit multiple times, it will put each click into a different variable. ``` ### y - 5 = 2(x - 4) Check function mathCheck() { ...
2018/03/11
220
696
<issue_start>username_0: I have a simple link that needs to pass a variable through $\_GET and set it to a variable in the page that is being opened. It is failing every time however and I am not sure why. ``` [**" . $row[0] ."**](category/index.php?`id=) ``` Code in category/index.php ``` $id = $_GET['id']; e...
2018/03/11
813
3,133
<issue_start>username_0: In SpriteKit, is it possible to add elements programmatically to the scene, so when .sks is opened, they display? Currently I have my `GameScene` (which extends `SKScene`) class that opens up already added elements in the scene editor, from the .sks file, using the UnarchiveFromFile method patt...
2018/03/11
4,370
9,233
<issue_start>username_0: I have a df like so ``` check <- read.table(text='material previousUser currentUser status date originFrame currentFrame 123 inventory Dave draft 2016-1 1/1/2016 1/1/2016 123 Dave Carl transfer 2016-2 2/1/2016 1/1/2016 123 Carl customer sent 2016-4 4...
2018/03/11
593
2,074
<issue_start>username_0: When I ran the following in the [kotlin playground](https://try.kotlinlang.org/#/Examples/Hello,%20world!/Simplest%20version/Simplest%20version.kt), it prints error, nothing else. What's wrong with the following code? It's pretty simple, I am passing in a function into the data class as one of ...
2018/03/11
600
1,871
<issue_start>username_0: I am trying to send 'hello world' to the telnet server from go client. In the [documentation](https://godoc.org/github.com/reiver/go-telnet) I have found example: ``` var caller telnet.Caller = telnet.StandardCaller telnet.DialToAndCall("localhost:5555", caller) ``` What is the next step...
2018/03/11
1,776
5,640
<issue_start>username_0: **Hello** ! I have a **question** guys. I was writing my first serious python training project because I'm beginner but I encountered a problem that stops me from further development of my program. **I don't have idea how can I write *function/module* in my class that check if player X or pla...
2018/03/11
464
1,439
<issue_start>username_0: I want to extract `United States` from the following: ``` address = '1 McDonalds Dr OAK BROOK, IL 60523-1911 United States' ``` I tried: ``` for br in address.find_all('br', limit=2): result = br.next_sibling print(result) ``` And it returned: ``` OAK BROOK, IL 60523-1911 Uni...
2018/03/11
316
1,169
<issue_start>username_0: I'm doing the Michael Hartl Ruby on Rails Tutorial, and ran into this problem at the end of Chapter 11. I did a migration to add `activation_digest`, `activated`, and `activated_at` columns to my data model. ```none $ rails generate migration add_activation_to_users \ > activation_digest:stri...
2018/03/11
1,195
4,416
<issue_start>username_0: I've trying to setup ThingsBoard for a few days and up to now it's going well. I'm stuck on how to push attributes (sometimes in an aggregate mode - avg, sum, etc) and telemetry data from a Device to its related asset. Any simple way to do it? I didn't find any API for such. Thanks<issue_comm...
2018/03/11
1,819
5,262
<issue_start>username_0: I am new to Scala and SBT. I am using Kafka streaming and storing the data to Cassandra DB. while trying to take fat jar using sbt assembly command, I am getting below mentioned error. how to resolve this issue ? and take fat jar **build.sbt** ``` organization := "com.example" name := "cass...
2018/03/11
1,074
3,784
<issue_start>username_0: I'm reading trough this: <https://hackernoon.com/functional-javascript-resolving-promises-sequentially-7aac18c4431e> and in one section the author talks about replacing the second arrow function with ``` Promise.resolve([]) .then(all => funcs[0].then(result => all.concat(result))) ``` t...
2018/03/11
700
2,673
<issue_start>username_0: I'm implementing a lazy image loader in my Angular (5) app, and am curious how I can avoid having to call `setTimeout()` in my `ngAfterViewInit()`, if possible. The relevant portions of the code are: ``` # component ngOnInit(): void { this.workService.getCategories().then(workCategories => ...
2018/03/11
642
2,507
<issue_start>username_0: I have a few classes. I would like to point out this: `BaseDAO` class that implements `Queryable` and `Parcelable` interfaces. There are a few subclasses of Base one and I would like to call method ``` public static ResultSet getDataFor(Queryable queryable) throws SQLException { Statemen...
2018/03/11
994
3,458
<issue_start>username_0: Primary Issue ------------- I am currently trying to run [this](https://github.com/MTG/DeepConvSep) particular Github Project on my Mac OS. It was most certainly coded for a system running Python 2. However, I am running Python3 and I need to make a few modifications to the program. Most of th...
2018/03/11
350
1,253
<issue_start>username_0: Is there a PHP library for connecting php to the Firebase Firestore database? Is it even possible to PHP to retrieve data from Firebase?<issue_comment>username_1: Yes, you can retrieve data using PHP, an example: ``` $db->getReference('people') ->orderByChild('height') ->getSnapshot(); ``` T...
2018/03/11
1,113
4,142
<issue_start>username_0: I want to join multiple JsonResults into a single named list to get it in angularJS. This is my function :- ``` List abundleList = new List(); aBundleFetch.ListType = Constants.Board; Func functionBoard = new Func(() => FetchTblData(aBundleFetch)); JsonResult resBoard = await Task.Factory.St...
2018/03/11
851
3,000
<issue_start>username_0: I have three models * Markt * Koppel\_standhouders\_markten * Standhouders Markt hasMany standhouders through an hasManyThrough koppel\_standhouders\_markten The markt table has an id which matches markt\_id in koppel\_standhouders\_markten. Koppel\_standhouders\_markten has an standhouder\_...
2018/03/11
710
2,604
<issue_start>username_0: **Question:** Without using `any`, What is the proper typing for my `onMouseMove` function? ``` export class Main { private dTimer: number; constructor() { this.init(); } private init() { this.mouseHandlers(); } private mouseHandlers() { document.addEventListener('mo...
2018/03/11
534
1,720
<issue_start>username_0: I am trying to count statistics of 2 given columns but I want to write multiple counts in the same query for the given statistic. How can I accomplish this? Here is my code, to give you more of an idea of what I am trying to do ``` SELECT COUNT(DISTINCT `stats`.`rank` + `stats`.`level`) as ...
2018/03/11
1,010
3,553
<issue_start>username_0: I am using the **KNeighborsClassifier()** library from Scikit-Learn to predict football outcomes using team names. My training data has 18 statistics of a match, such as goals and number of fouls, and for my test set I can only use 2 team names. The problem is the number of training features...
2018/03/11
764
3,012
<issue_start>username_0: I have a tableView where I save a date. Then I want to save another date and push the first date from '0' in array to '1' position, while populating '0' with new date. ``` var dates = [String]() @IBAction func updatingArrat(_ sender: Any) { let now = Date() let dateFormatter = DateFor...
2018/03/11
1,058
4,165
<issue_start>username_0: So i wrote a function that collects a list of files in a directory. These are cut in to sizes of 4 and fed to a multiprocess pool using a for loop. Below is the code for clairity. ``` def Main(): allft_files = listdir(path_allft) ncores = cpu_count() start = datetime.datetime.now...
2018/03/11
4,098
13,198
<issue_start>username_0: Getting below errors when I’m trying to run spark-submit on k8 cluster **Error 1**: This looks like a warning it doesn’t interrupt the app running inside executor pod but keeps on getting this warning ``` 2018-03-09 11:15:21 WARN WatchConnectionManager:192 - Exec Failure java.io.EOFException...
2018/03/11
745
2,208
<issue_start>username_0: I use the following query to create temporary table but the table does not show up in the database nor give any error while executing the query. ``` $sql2 = "CREATE TEMPORARY TABLE `temp_result` ( `tscore` int(20) NOT NULL, `name` varchar(100) NOT NULL, `validsc` int(20) NOT NULL, ...
2018/03/11
1,022
3,021
<issue_start>username_0: See my code below; I need of 6 single group of numbers without repetition. I need a `for` statement to generate 6 unique numbers, I need without entire repetition on next indexes ``` public static void main(String[] args) { int n = 15; ArrayList Numbers = new ArrayList(n); ArrayList...
2018/03/11
2,046
5,130
<issue_start>username_0: I have the following tables: Golfers: ``` | vID | vGolfer | |-----|---------| | 1 | Johnson | | 2 | Thomas | | 3 | Rahm | | 4 | Spieth | | 5 | Rose | ``` Roster: ``` | key | vPlayer | vID | |-----|---------|-----| | 1 | Player1 | 1 | | 2 | Player1 | 2 | | 3 | P...
2018/03/12
2,891
10,790
<issue_start>username_0: My research has included: [PyQt reference to callable problem?](https://bbs.archlinux.org/viewtopic.php?id=153223) [Python PyQt callback never runs - how to debug?](https://stackoverflow.com/questions/34700152/python-pyqt-callback-never-runs-how-to-debug) [Passing extra arguments to PyQt slo...
2018/03/12
1,931
6,773
<issue_start>username_0: I am training a classification problem that ends in a softmax layer. I want to compute the loss as the average of the product of the prediction probability and square distances of each example's softmax output from the truth label. In pseudocode: average(probability\*distance\_from\_label\*\*2...
2018/03/12
1,572
5,992
<issue_start>username_0: How can i write a ruby.rb script using watir, that will write a string to the status and then post it. so far i have identified the status form and have been abot to click the post button, but i cant get the text in the status to update programmatically with watir. i have identified the that ho...
2018/03/12
3,273
9,917
<issue_start>username_0: Hi I was trying to train a cancer dataset, using the Resnet neural network by using the fine-tuning approach Here is how I used to fine-tune it. ``` image_input = Input(shape=(224, 224, 3)) model = ResNet50(input_tensor=image_input, include_top=True,weights='imagenet') model.summary() last_l...
2018/03/12
551
2,225
<issue_start>username_0: I'm trying to add a onClick listener to a li and the props will be passed to another component that will eventually call a function. My first thought was simply put 2 onClick, but I got a warning for duplicate props. ``` - Top Headlines ``` Then I tried the vahnilla JS way but I assume it's ...
2018/03/12
706
2,717
<issue_start>username_0: After creating a couple of Routines in MySQL, I came back to my database and they were missing, but still showing the name. [![phpMyAdmin Screenshot](https://i.stack.imgur.com/TUUVa.png)](https://i.stack.imgur.com/TUUVa.png) It says that I *might* be lacking the privileges necessary to edit t...
2018/03/12
705
2,605
<issue_start>username_0: I have a clickable icon image in the header of my web page; I want to hide the icon image when the page is pulled up on a desktop, laptop, and/or any larger screens. However, I want the icon to show when the page is pulled up on a mobile device/ phones and hand-held tablets. This is what I tri...
2018/03/12
1,281
4,579
<issue_start>username_0: Why am I getting `TypeError: notes.map is not a function` in the following part of my Notes component? `{notes.map((note) => (` components/Notes.js ``` import React, { Component } from "react" import { connect } from "react-redux" const mapStateToProps = (state) => { return { notes: state...
2018/03/12
1,607
5,754
<issue_start>username_0: I have a JSON: ``` [ { "Men": { "image": "/url.png", "Jeans": [ { "name": "asd", "about": "sadvc", "image": "/urls.sjd" }, { "name": "asd", "about": "sadvc", "image": "/urls.sjd" }, { "name": "asd",...
2018/03/12
516
2,019
<issue_start>username_0: I'm new to Spring...I have a Spring Boot API application and all of my methods (POST, GET, etc) work great with Postman when the Content-Type is set to application/json, I can send and receive JSON. However, I'd really like for my methods to also accept a GET or POST in the browser. When I use...
2018/03/12
1,544
4,553
<issue_start>username_0: I am trying alert a username when a radio button is clicked, however when a radio button is clicked the first username always alerts instead of the associated username. The result should be the following: Jack445 - if user's radio button is clicked alert "Jack445" Doe445 - if user's radio...
2018/03/12
1,339
4,095
<issue_start>username_0: I was looking at the jQuery docs and came across the .each function. This itself is fine, but in the example they used there is a return statement condition that I do not understand. To me, it seems that the code shouldn't run unless the 'val' is 'three'. In the comments however, it says that t...
2018/03/12
1,702
5,295
<issue_start>username_0: Using: <https://github.com/boonep/jquery-hex-colorpicker> Works well until I issue the page in a Flask application, then the error: Uncaught TypeError: jQuery(...).hexColorPicker is not a function. I have tried moving the script sources around, and chrome says that all sources, css, js, etc a...
2018/03/12
1,017
2,398
<issue_start>username_0: How can I quickly find the min or max sum of the elements of a row in an array? For example: ``` 1, 2 3, 4 5, 6 7, 8 ``` The minimum sum would be row 0 (1 + 2), and the maximum sum would be row 3 (7 + 8) ``` print mat.shape (8, 1, 2) print mat [[[-995.40045 -409.15112]] [[-989.1...
2018/03/12
2,270
8,216
<issue_start>username_0: I've been reading through K&R and encountered a point of confusion in the implementation of `malloc()` included. ``` typedef long Align; /* for alignment to long boundary */ union header { /* block header */ struct { union header *ptr; /* next block if on free list */ unsigned size;...
2018/03/12
303
980
<issue_start>username_0: I am trying to make the text randomly positioned on the screen. How do I do that? I am using Textillate [jsfiddle](https://jsfiddle.net/mub2gw59/1/) ``` Go == ```<issue_comment>username_1: You should set your CSS for your h1 tags to `position:fixed`. Then in your javascript for each h1 your...
2018/03/12
685
2,067
<issue_start>username_0: I am creating an object from the array of objects, using the value for one of the keys: ```js const myArray = [ { uuid: '123', name: 'abc' }, { uuid: '789', name: 'xyz' } ]; const newObj = {}; for (var i = 0; i < myArray.length; i++) { newObj[myArra...
2018/03/12
672
2,145
<issue_start>username_0: Using Swift I'm trying to stop a button from executing if the user input is not correct? A hard coded login screen of such. Is any one able to help? ``` @IBOutlet weak var errorMessage: UILabel! @IBOutlet weak var user_name: UITextField! @IBOutlet weak var password: UITextField! @IBAction f...
2018/03/12
644
2,515
<issue_start>username_0: I noticed that `create-react-native-app` isn't creating an `android/` subdirectory in my project. Is this normal behavior? I'm using Node 8.1.0, NPM 4.6.1. Here's my directory structure: [![](https://i.stack.imgur.com/thVkn.png)](https://i.stack.imgur.com/thVkn.png) I need to edit the `Androi...
2018/03/12
825
3,145
<issue_start>username_0: I'm trying to perform a one-step compile and run operation in emacs. I tried recording a macro using `C-(`, then `M-!`, then `"gcc main.c && ./a.out"`, `RET`, then `C-)`. However, when I execute this macro with `C-x e`, the `*Shell Command Output*` buffer doesn't automatically open if I happe...
2018/03/12
1,193
3,563
<issue_start>username_0: I'm a Clojure newbie and having trouble with its immutable state. I'm trying to write a function that takes a list with the frames of a bowling game. For example, a list would look like ["X" "12" "2/" "X" "45" "X" "13" "33" "X" "81"]. I want the function to output a list that takes care of the ...
2018/03/12
1,347
4,215
<issue_start>username_0: friends i am working on school management system project in php. the project almost completed. but the problem is if a new student enrolled or goes out from the class how can we rearrange the students roll number. means a class have students like ``` |---------------------|-----------------...
2018/03/12
983
3,993
<issue_start>username_0: How can I create a hook in FeathersJS that returns the JWT token with the user object in the JSON response after the user is created in the users service? I've tried in users.hooks.js: ``` after: { all: [ // Make sure the password field is never sent to the client ...
2018/03/12
352
1,431
<issue_start>username_0: Update: **Return Key Issue** I am using the return key in the TextView to send a message. However, when I press the return key(which i changed to "Send") the "\n" feature is still enabled. How can i disable the newline feature without ruining my functionality of "Send". ``` func textView(_ t...
2018/03/12
590
1,614
<issue_start>username_0: No matter what I run I get, ``` ./main.c:1:10: fatal error: libusb.h: No such file or directory #include "libusb.h" ^~~~~~~~~~ compilation terminated. ``` Things tried ``` gcc ./main.c -l/usr/include/libusb-1.0/ gcc ./main.c -l/usr/include/ gcc ./main.c -L/usr/include/libusb-1.0/...
2018/03/12
1,957
3,791
<issue_start>username_0: Suppose I have a numpy array like so: ``` array([[ 0, 0, 1, 1, 0, 0 ], [ 0, 1, 1, 1, 1, 0 ], [ 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1 ], [ 0, 1, 1, 1, 1, 0 ], [ 0, 0, 1, 1, 0, 0 ]]) ``` Is there a way to broadcast another...
2018/03/12
1,818
4,022
<issue_start>username_0: ``` data = [ {'firstname': 'Tom ', 'lastname': 'Frank', 'title': 'Mr', 'education': 'B.Sc'},{'firstname': 'Anne ', 'middlename': 'David', 'lastname': 'Frank', 'title': 'Doctor', 'education': 'Ph.D'} , {'firstname': 'Ben ', 'lastname': 'William', 'title': 'Mr'} ...
2018/03/12
582
2,345
<issue_start>username_0: Since `HBase` is built on top of `HDFS` which has a replication policy for fault tolerance, does this mean `HBase` is inherently fault tolerant and data stored in `HBase` will always be accessible thanks to the underlying `HDFS`? Or does `HBase` implement a replication policy of its own (e.g ta...
2018/03/12
431
1,520
<issue_start>username_0: I'm creating an encryptor/decryptor for ascii strings where I take the ascii value of a char, add 1 to it, then mod it by the highest ascii value so that I get a valid ascii char out. The problem is the decryption. Let's say that (a + b) % c = d I know b, c, and d's values. How do I get the a ...
2018/03/12
600
2,408
<issue_start>username_0: I am currently working on a method that will play a mp4 file when called. However, while the mp4 file is being played I want user interactions to be disabled. This is so that the user cannot tap the screen while the mp4 is playing and start the same AVAudioSession over again. My code thus far i...
2018/03/12
704
2,671
<issue_start>username_0: ``` from rest_framework.exceptions import ValidationError def to_representation(self, request_data): raise ValidationError({ 'field_name': ["Field not allowed to change"] }) ``` In the example above how can I throw multiple validation errors? I want to throw them as dicts to ...
2018/03/12
456
1,561
<issue_start>username_0: I want to find out if the `HashMap` has all its values empty or not. What is the best way to do it other than having to check the value in every entry in the map? ``` HashMap> aMap = new HashMap<>(); aMap.put(new Long(55), Optional.empty()); aMap.put(new Long(66), Optional.empty()); aMap.put...
2018/03/12
1,279
5,021
<issue_start>username_0: Im converting React app to use Typescript. And Im getting the following error: ``` ERROR in [at-loader] ./src/components/Services/Services.tsx:34:29 TS7017: Element implicitly has an 'any' type because type 'typeof "/Users/path/to/project/src/components/Services/Services.css"' has no index...
2018/03/12
761
1,974
<issue_start>username_0: I am trying to define a lot of variables in "sympy" for symbolic processing. ```py import sympy as sp b_0 = sp.symbols('b_0') b_1 = sp.symbols('b_1') ... b_X = sp.symbols('b_X') ``` and so on with the `X` going from 1 to 1000. Is there an easy way to do it?<issue_comment>username_1: There ...
2018/03/12
746
2,376
<issue_start>username_0: I've been trying to convert this Mealy finite state machine into Verilog code and it never manages to work for all combinations of states/inputs/etc. [![fsm](https://i.stack.imgur.com/rH8Jo.png)](https://i.stack.imgur.com/rH8Jo.png) Here is the Verilog code: ``` 1 `timescale 1ns/100ps 2 ...
2018/03/12
477
1,807
<issue_start>username_0: I think I understand how formValueSelector works. But what I have not be able to figure out on how to use formValueSelector to update an INPUT field. ``` connect( state => { const { firstValue, secondValue } = selector(state, 'first', 'second') // do some calculation return { ...
2018/03/12
511
1,962
<issue_start>username_0: New to python with limited prior programming experience, I'm trying to create a card game as a learning vehicle. The first step is to deal cards. I know there are many ways to do this including creating card objects and deal methods. That will come later. For now, I want to randomly generate ...
2018/03/12
496
1,740
<issue_start>username_0: I have a formula that results in either Buy, Sell or Hold. The formula looks like this: `=IF(D3>0.01,"Buy",IF(D3<-0.01,"Sell","Hold"))` As you can see it is based on what the value is in column D, the issue comes from the fact that a Buy or Sell result can be issued several times in a row but ...
2018/03/12
379
1,537
<issue_start>username_0: I am currently using Spring Kafka API's We currently have a requirement to dynamically add a suffix to Kafka topics. While trying to modify and set it back to Annotation "@KafkaListener" as follows - @KafkaListener(topics = modifiedTopics ) It gives me an error saying - The value for annotat...
2018/03/12
2,780
9,260
<issue_start>username_0: I have been attempting to create a flood fill function using an initial mouseX and mouseY value. After experimenting and failing with a 4 way recursive method I found an article that suggested using an array to store the 4 way values and queue them using the .push() function. While the array ha...
2018/03/12
1,796
5,847
<issue_start>username_0: ``` int NJOBS=0; struct Jobs{ char *jname; int btime; int priority; int order; }Job[10]; int cmd_run(int nargs, char **args) { NJOBS++; Job[NJOBS].order=NJOBS; int bt = atoi(args[2]); int pri = atoi(args[3]); Job[NJOBS].btime=bt; Job[NJOB...
2018/03/12
1,238
4,931
<issue_start>username_0: I have read the post titled '[Improving app security and performance on Google Play for years to come](https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html)'. In that article, I would like to ask about below the sentence. "Additionally, in early 2018, P...
2018/03/12
2,449
8,826
<issue_start>username_0: I'm stuck on a problem from Codefights Arcade question 13 in the intro. Below are the problem statement and my code so far. The outline of my thinking on how to solve the problem is to recursively work my way down/within the nested sequences and when I get to a single sequence (no nested sequen...
2018/03/12
950
3,309
<issue_start>username_0: I am trying to make a simple API with NodeJS/ExpressJS, and mongoose. I am getting the error: `No default engine was specified and no extension was provided` The API will call the cat API. Since it only supports XML, it will convert to JSON, then will insert into mongoDB, then the JSON return...
2018/03/12
760
2,513
<issue_start>username_0: Why does this happily compile, ``` class Foo[T] class DerivedFoo[T] extends Foo[T] class Bar(val foo: Foo[_]) class DerivedBar(override val foo: DerivedFoo[_]) extends Bar(foo) ``` while this does not? ``` class OtherDerivedFoo[T, U] extends Foo[T] class OtherDerivedBar(override val foo...
2018/03/12
436
1,986
<issue_start>username_0: What makes a thread unique from the other threads in the same process and what makes a process unique from other processes? (by unique i mean what makes it different from others?)<issue_comment>username_1: Operating systems will assign a unique Thread ID to each thread - and the same for each p...
2018/03/12
648
2,360
<issue_start>username_0: I'm making a POST request after a successful GET request with NodeJS, I am getting the crumb successfully from Jenkins but I am always getting the same response from Jenkins "No valid crumb was included in the request", can someone help me where I might be missing it here? ``` const express = ...
2018/03/12
898
3,992
<issue_start>username_0: I can see that RX is good for Android and for UI event handling. I'm struggling to see what benefits RX provides on the back-end. Was RX Java designed for back-end processing, or has this concept been taken too far?<issue_comment>username_1: Actually, RxJava was firstly implemented to tackle s...
2018/03/12
794
2,594
<issue_start>username_0: I have built a tomcat docker image from [here](https://github.com/docker-library/tomcat/blob/af4b04d13a880a81a73dc2936afdf44147144418/8.0/jre8/Dockerfile). I want to map the tomcat folder to the host machine, so I can simply access it, mainly I will need `webapps` and `logs` folder. `webapps` ...
2018/03/12
1,000
2,363
<issue_start>username_0: I am working on a regression problem, the data is presented as a csv file of three columns where the second columns contains the dates, I want to convert the date ( format: 1/1/2015 12:00:00 ) into an int (112015120000) in order to be able to normalize and apply my model. I proceeded this way:...
2018/03/12
920
2,238
<issue_start>username_0: I have to insert someone into a table, using INSERT SELECT and using parameters (The assignment says explicitly: 'For example: SET @param'). I have used both INSERT SELECT and INSERT SET separately to insert someone into a table, but I dont know how to combine those statements together. ``` ...
2018/03/12
633
2,369
<issue_start>username_0: I am using JQuery UI's datepicker to show a date. I have a webpage with a table that allows the user to edit a date by clicking the "edit" button. Through javascript the text turns into an `input type="text"` and then is set to a `datepicker` when I focus on the input. This all appears to wo...
2018/03/12
1,347
5,222
<issue_start>username_0: This is my first time creating an app and I've run into a LOT of errors and mistakes. Please believe me when I say I've googled and tried many things to work through this error but I need a fresh set of eyes on this. I will post my bits of code, sorry if it looks like a mess but I've been tryin...
2018/03/12
384
1,272
<issue_start>username_0: I have created lot of tables and views in path (called it parlgov) [![enter image description here](https://i.stack.imgur.com/leiY7.png)](https://i.stack.imgur.com/leiY7.png) I want to either delete all the tables and views in this Schema (or called path) or **preferable to only delete all** t...
2018/03/12
622
2,375
<issue_start>username_0: environment: windows 10 ruby2.5 rails 5.1.5 problem: cannot load such file -- sqlite3/sqlite3\_native (LoadError) I have try gem uninstall sqlite3 and gem install sqlite3 ,any solution on web has been try ,not working,anyone could help me? I need to fix this problem,my work need to move on. T...
2018/03/12
724
3,096
<issue_start>username_0: I'm relatively new to the modern JavaScript web development world. I've built a very simple Node/Express back-end and a separate React front-end. My vague plan is to have users that will have permission to access certain areas of the front-end, and then have the front-end make requests to the b...
2018/03/12
1,013
3,446
<issue_start>username_0: I was trying to apply observer pattern to Rust. As in other GC languages such as JS or Java, I wanted to send references to the data in `Observable` in an event to `Observer`. But the compiler kept on giving me headache because of the borrow checker. So because of that I learned of using `Rc` b...
2018/03/12
347
1,479
<issue_start>username_0: Trying to set up libtins on windows. Im relatively new to Visual studio and most of the documentation on the matter was for older versions. I was able to get the include files set up with the project but linking the .lib's was problematic and i cant seem to configure it properly. The properties...
2018/03/12
420
1,562
<issue_start>username_0: I have 2 input boxes. When I input a value into the first one, the javascript function `checkMyKad()` is triggered. `checkMyKad()` gets value in first input box, edits it, and alerts new value. I want new to be set into second input box. How do I get new value to be shown in 2nd input box? ...
2018/03/12
1,502
5,033
<issue_start>username_0: I'm having trouble. I want the code to loop through and ask `'Hey, are you hungry?'` but only if the hungry variable isn't `True` or `False`. However, whatever answer I type in, it acts as if it's `True`. In my head, if I type a variation of yes, then hungry should be `True` and the code shoul...
2018/03/12
1,105
3,729
<issue_start>username_0: I am trying to have the user enter for the first, middle, and last name in my struct. The first scan works fine, any after that do not work. Here's my code so far ``` #define _CRT_SECURE_NO_WARNINGS #include #include "contacts.h" int main (void) { // Declare variables here: struct Name n...