date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/02
757
2,731
<issue_start>username_0: I have this FormArray in my Angular 5 / Angular Material application: ``` this.form = new FormGroup({ customerNumberContainers: new FormArray([ new FormGroup({ contactTenant: new FormControl('', [Validators.required, Validators.minLength(2)]), customerNumber: new...
2018/03/02
214
752
<issue_start>username_0: I create a project in asp .net mvc 5 with default `OWIN` authentication with users and roles tables. when a user logs in the default timeout is **5 minutes** and **after 5 minutes user logout and redirect to login page**. How can I increase this time from 5 minutes to 24 hours. I try these cod...
2018/03/02
374
1,319
<issue_start>username_0: I'm trying to use jQuery's `.load` function to load a div element from one page to another. But it makes the whole script only run once. I've seen a few similar question here on SO, but none of these seem to fit my problem. I've tried things such as changing `.click` to `.one` as well as addin...
2018/03/02
610
2,051
<issue_start>username_0: As a continuation from my [previous question](https://stackoverflow.com/questions/49040123/creating-interactive-options-in-pexpect/49042132) on building interactive option menus in pexpect, print statements within an interact input filter do not get sent to stdout until after the interact is co...
2018/03/02
203
799
<issue_start>username_0: Most of my Inputs are being auto-Capitalized on iOS only. I know there's the [autoCapitalize](https://facebook.github.io/react-native/docs/textinput.html#autocapitalize) property that I could set to false on every input to turn it off but I'm wondering if there's a global config I can apply pro...
2018/03/02
343
1,316
<issue_start>username_0: Flutter allows supporting of Kotlin language. [![enter image description here](https://i.stack.imgur.com/md6CD.png)](https://i.stack.imgur.com/md6CD.png) How can I integrate my Kotlin file with Flutter project? There is no option to add/create a Kotlin file (in `New` menu) in Android Studio...
2018/03/02
510
1,895
<issue_start>username_0: I'm currently working on a react native project . Here I want to use Realm as database incorporated with Redux.I searched over internet and theoretically tried to understand how whole things works together. But I found no simple demo / source code to get a clear picture of whole thing. Official...
2018/03/02
689
2,452
<issue_start>username_0: Flutter allows to support of `Swift` programming language. ![](https://i.stack.imgur.com/zi4z5.png) How can I integrate my `Swift` code file with Flutter project in Android Studio. ![enter image description here](https://i.stack.imgur.com/Marda.png) There is no option to add/create a Swift...
2018/03/02
1,916
5,669
<issue_start>username_0: I am new to R. I have written this code to generate with *highcharter* library, This is based on the dataframe that I have for 11 years i.e. 2005 - 2011 (for months April - October) The following code is for one year. I want to create a loop or something similar to create the chart for every y...
2018/03/02
1,529
5,019
<issue_start>username_0: I have a problem with the project I am working on. Until Tuesday everything seemed to be fine when I was building and running my project. Today I wanted to run the project and I received this error message: ``` [ERROR] [ERROR] Some problems were encountered while processing the POMs: [E...
2018/03/02
1,029
3,297
<issue_start>username_0: I'm fairly new to HTML and I'm trying to recreate this wireframe example for a school assignment: ![Wireframe](https://i.stack.imgur.com/TvabS.jpg) This is the code I wrote in order to get the result I'm aiming for: ```css /* Reset */ a { color: #000; text-decoration: none; } ul ...
2018/03/02
887
3,770
<issue_start>username_0: I've recently converted a `C#` code to `VB.NET`, it's a custom control called `CheckBoxComboBox`. One of the classes I converted inherits from `List`. It also has an indexer such as: ``` Public Class CheckBoxComboBoxItemList Inherits List(Of CheckBoxComboBoxItem) Default Public Rea...
2018/03/02
401
1,173
<issue_start>username_0: This is an angular 1 app. I have an array that looks like this: ``` var my_arr = [ {key: 'KEY1', label: 'label1'}, {key: 'KEY2', label: 'label2'}, {key: 'KEY3', label: '#label3'} ]; ``` I need to remove the items where the label begins with hashtag. Is there a way to do this with...
2018/03/02
1,084
4,054
<issue_start>username_0: Let's say I want to solve a multi-label problem using neural networks and Keras. The outputs are typically of the form y=[0, 1, 0, 1, 0, 0], and it's easily possible to train a network using binary cross entropy and sigmoids for the outputs (e.g. see code below). ``` from keras.models import ...
2018/03/02
662
2,629
<issue_start>username_0: Invalid attempt to read when no data is present. This error occurs on this line ``` string ingredientName = reader2.GetString(0); ``` My code: ``` var ingredientList = new List(); SqlCommand staffCommand = new SqlCommand(); string conString = EventsUnlimited.Properties.Settings.Default....
2018/03/02
792
2,929
<issue_start>username_0: I am trying to sort a static array of Ticket objects into two different arrays based on their dates and `Class`. These two arrays will be used as data to populate two different `list` views. I only want to add one Ticket per `Class` object to each `array`. I get an `error` ``` ArrayList my...
2018/03/02
826
2,977
<issue_start>username_0: I am trying out a simple SQL to sort varchar column using order by clause in DB2. Query is something like : ``` select * from ThirdParty where ThirdPartyKy > 10001 order by ThirdPartyName ``` The sample data I've for ThirdPartyName columns is (Not necessarily in the same order) : ThirdPart...
2018/03/02
735
2,353
<issue_start>username_0: I Have this data.base in class list in R. ``` $multiinstrumentais [1] "248269" "248827" $geds [1] "248198" "248198" "248857" $ghzmb [1] "248087" "296994" "302862" ``` I want to Transform in something like this in data.frame: ``` words - cod multiinstrumentais - 248269 multiinstrumentais...
2018/03/02
232
734
<issue_start>username_0: I have added my demo to: [this link](https://jsfiddle.net/edoist/wewekvkw/14/) When I click on thumbs up (comes from fontawesome) ng-click does not trigger and like count does not change. When I click to xyz, like count increases. This is not working: ``` {{comment.like}} ``` But this is...
2018/03/02
241
839
<issue_start>username_0: I am invoking a webservice from PL/SQL procedure ,while executing the procedure after 5 times I am getting the below error ,any help will be appreciated. > > ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL\_HTTP", line 1367 > ORA-29270: too many open HTTP requests > > ><issue_comment...
2018/03/02
333
1,135
<issue_start>username_0: am using [angular-material](https://material.angular.io/) with angular 5. mat-grid-tile has it's own top padding that calculates using `calc` method. I want to set custom padding on mat-grid-tile. How can i do this?<issue_comment>username_1: The grid tile component sets top padding dynamicall...
2018/03/02
1,273
3,988
<issue_start>username_0: I'm using phpSpreadsheet to convert an Excel file already in memory to a pdf, but I'm obtaining this fatal error message. Here the message ``` Fatal error: Uncaught exception 'PhpOffice\PhpSpreadsheet\Writer\Exception' with message 'Could not open file /pdf_finali/mario.pdf for writing.' in /...
2018/03/02
358
1,402
<issue_start>username_0: Template: ``` Search ``` Js script: ``` export default { methods: { redirect: function() { if (this.searchQuery) { this.$router.push({ name: 'tag', params: { tag: this.searchQuery } }) } } }, data() { re...
2018/03/02
1,063
3,770
<issue_start>username_0: Why would someone do this? ``` int foo; foo = (true?this.getFoo() : 0); //getFoo() returns int ``` It's popping up a bunch, and I really just don't understand how this wouldn't always be equivalent to: ``` int foo = this.getFoo(); ``` This is only being used on variables of type int, and ...
2018/03/02
545
1,201
<issue_start>username_0: Let's say I have a list ``` test <- list(c(1, 2, 3), c(2, 4, 6), c(1, 5, 10), c(1, 2, 3), c(1, 5, 10), c(1, 2, 3)) ``` and I need to count all of these vectors so the desired output should looks like: ``` Category Count 1, 2, 3 3 2, 4, 6 1 1, 5, 10 2 ``` Is there any simp...
2018/03/02
625
1,516
<issue_start>username_0: I have an issue where I'm trying to get an specific record where I have two dates to get an record. The date are as follows: ``` StartTime: '2018-03-02 09:00:00.000' EndTime : '2018-03-02 11:00:00.000' ``` The table looks like this: [![enter image description here](https://i.stack.imgur.co...
2018/03/02
1,741
5,709
<issue_start>username_0: I have converted my image into a csv file and it's like a matrix but I want it to be a single row. How can I convert all of the images in dataset into a csv file (each image into one line). Here's the code I've used: ``` from PIL import Image import numpy as np import os, os.path, time forma...
2018/03/02
1,524
5,064
<issue_start>username_0: I looked in the documentation, on the forum ... I would like to know this: * When I create a component with a scoped style. Should I use classes or id for my DOM ? I prefer ID because this element is unique. ex: ``` // or class="wrapper" ? CLICK // or class="myBtn" ? {{i}} // sure clas...
2018/03/02
447
1,269
<issue_start>username_0: Given a directory `dir`: ``` dir ├── sub1 │   ├── file1 │   └── file2 ├── sub2 │   ├── file1 │   └── file2 └── sub3 ├── file1 └── file2 ``` `fileTree('dir').each { println it }` gives me this: ``` dir/sub1/file1 dir/sub1/file2 dir/sub2/file1 dir/sub2/file2 dir/sub3/file1 dir/sub3/fi...
2018/03/02
457
1,776
<issue_start>username_0: I'm wondering if anyone here has any experience with the DJI Mobile SDK for Android? I'm building an app for the Osmo Mobile (2) but I'm unable to follow the tutorial from DJI, I'm guessing it's out of date: <https://dji-dev.gitbooks.io/mobile-sdk-tutorials/content/en/Android/ImportAndActiva...
2018/03/02
331
1,208
<issue_start>username_0: This has probably been asked before, but I don't really know how to search for it so if it has, I am really sorry. Say I have a file called **a.js** that has a class called `Navigation` in it, then in **b.js** I call that with a method inside the class called `getView()`; **a.js** ``` Naviga...
2018/03/02
368
1,373
<issue_start>username_0: I am new on Laravel. I create on productedit.blade.php delete button: ``` {!! Form::open(['action' => ['DashboardController@destroy', $product->id], 'method' => 'POST', 'class' => 'float-right']) !!} {{Form::hidden('_method', 'DELETE')}} {{Form::submit('Delete', ['class' => 'btn b...
2018/03/02
1,267
3,880
<issue_start>username_0: So I have this two table where it records what kind of food is the user's favorite: `users` table ``` ------------ id | country ------------ 1 | US 2 | PH 3 | US 4 | US 5 | PH ``` `food_favourites` table ``` ----------------- food_id | user_id ----------------- 3 | 1 7 ...
2018/03/02
430
1,529
<issue_start>username_0: Suppose I have got two tables, one of which is named A and contains two columns : country1 (as an ISO code), country2 (as an ISO code) whilst the other one is named B and contains two columns : code (ISO code of country) and name (full name of country). I would like to list all pairs of count...
2018/03/02
1,079
3,463
<issue_start>username_0: I've done a few things with css columns and I really like them, but today I stumbled into a problem for which I just won't find a solution: I have a page with multiple lists. These lists have dynamic contents and open up in small popups. The old behaviour was, that the list contents have been ...
2018/03/02
488
1,451
<issue_start>username_0: I'm new in spark and scala and I would like to select several columns from a dataset. I transformed my data in RDD a file using : ``` val dataset = sc.textFile(args(0)) ``` Then I split my line ``` val resu = dataset.map(line => line.split("\001")) ``` But I in my dataset I have a lot o...
2018/03/02
1,496
6,325
<issue_start>username_0: I've tried to scan [JEP-286](http://openjdk.java.net/jeps/286) about local type inference. I see that this works only for local variables - understood. So this does work indeed: ``` public class TestClass { public static void main(String [] args){ var list = new ArrayList<>(); ...
2018/03/02
1,719
4,520
<issue_start>username_0: I want to hide both scrollbars (x and y) on the `vaadin-grid` but I cant find a working solution for that. I tried to set ``` overflow = hidden ``` on the `vaadin-grid`, `vaadin-grid-outer-scroller`, `vaadin-grid-scroller`, `#table`, `#scroller`, and many more but nothing seems to have a eff...
2018/03/02
870
3,381
<issue_start>username_0: This is tightly coupled to [Chaining .then() calls in ES6 promises](https://stackoverflow.com/questions/41556251/chaining-then-calls-in-es6-promises) ... I tried this with some functions that make up a chain of promises, so basically: ``` var PromiseGeneratingMethod = function(){ return p =...
2018/03/02
589
1,896
<issue_start>username_0: I found an answer to implement a link to get rated on the app store ([App store link for "rate/review this app"](https://stackoverflow.com/questions/3124080/app-store-link-for-rate-review-this-app)). Answer is: ``` let appID = "Your App ID on App Store" let urlStr = "itms-apps://itunes.apple....
2018/03/02
403
1,460
<issue_start>username_0: Parent container is fixed width. Leftmost div is allways present with text of variable length which should be in single line. There are none, one or two divs with fixed width immediately after left div and should move to the right with increasing text length until entire parent is filled. Incre...
2018/03/02
1,227
5,123
<issue_start>username_0: is it possible to create custom effects for JavaFX, based on a Pixle Shader? I found [this](http://lqd.hybird.org/journal/?p=196) article but what is Decora? I cannot find anything about it. THX<issue_comment>username_1: Currently no - in the abstract base class Effect.java, there are abstract...
2018/03/02
731
2,315
<issue_start>username_0: I have an issue trying to target the next element in a men. Let's say we have this structure : ``` * * ``` My goal is to give an animation on every "i" or element that is next to the current active li. I aslo need to change its color, or add a blink effect to help user understand that t...
2018/03/02
453
1,361
<issue_start>username_0: I need to do a simple parse of some data coming from a field. Example: ``` 1/2 1/3 10/20 12/31 ``` I simply need to Split or Parse this on "/". Is there a simple function that will allow me to do this?<issue_comment>username_1: Check the following SQL functions: * <https://cloud.google.com/...
2018/03/02
743
2,779
<issue_start>username_0: So I am newbie to JS world and electron. I have following structure ``` root |-html |-- index.html |-- others |-- other.html |-js |--main |-- main.js |--render |-- render.js |-css |-images |-node_modules |-others ``` I have a hello world electron App. Now...
2018/03/02
854
2,836
<issue_start>username_0: I need a powershell script which gets information from another powershell script. It seems to me the it is an array what I get in my script, so I tried to compare one item or the whole array against a string. I will execute then this command on our Exchange cluster: ``` Get-ClusterResource |...
2018/03/02
812
2,830
<issue_start>username_0: I have this small program do it with Python3.5 with the following structure: ``` awesome_gui/ app.config MANIFEST.in setup.py awesome_gui/ __init__.py main.py ``` setup.py: ``` #!/usr/bin/env python import os from setuptools import setup setup( name = "...
2018/03/02
333
1,326
<issue_start>username_0: I have a column with different phases like, Primary, Secondary, Deem Primary,Deem Secondary. I would like to create another column which will use formula to consider Primary and Deem primary as "Primary" and Deem Secondary and Secondary as "Secondary". Below is the example i'm trying to achieve...
2018/03/02
596
2,021
<issue_start>username_0: I try to find the largest palindrome which is product of two 5-digit prime numbers. The program also have to return the multipliers. The problem is that the program works for a very long time and gives the wrong result. Where is the mistake and How I can correct it? ``` from sympy import sieve...
2018/03/02
1,373
5,006
<issue_start>username_0: I am sending a request to Web API and sending again another request to the same API based on the return value from first API return. Then I am trying to map the Web API components to a class, but map method doesn't wait for second call to return. Please help that how can i map after successful ...
2018/03/02
1,195
4,265
<issue_start>username_0: I'm trying to find the nearest value in an sorted array, but both upper\_bound and lower\_bound are giving the highest value. ``` float abc[] = {1,3,4,5,6,7,8,9}; float *a = lower_bound(abc, abc+8, 3.2); cout<< *a; return 0; ```<issue_comment>username_1: This flatMap operator, in conjuncti...
2018/03/02
1,149
4,615
<issue_start>username_0: To find elements that are intersecting a geometry I am using the example post by Jeremy in his blog <http://thebuildingcoder.typepad.com/blog/2010/12/find-intersecting-elements.html>. But the bounding box is always paralell to the axis X, Y and Z and this may cause a problem, like return elemen...
2018/03/02
1,154
4,478
<issue_start>username_0: Hi everyone I've been working on a simple php back end based on codeigniter v3. i developed it on cloud 9 ide, then i have migrated it on a website hosting. i changed db configuration file and ``` $config['base_url'] = 'codeigniterfolder/'; ``` mydomain/codeingiter/.htacces ``` RewriteE...
2018/03/02
699
1,861
<issue_start>username_0: I want to offset the annotation y value by a multiple of the font text margin. (something similar to `em` unit in HTML/CSS). Of course I could add a epsilon to y argument (trial and error style). But I need to adjust it dynamically because its part of a bigger function. ``` dataA <- structure...
2018/03/02
997
3,034
<issue_start>username_0: I'm trying to read some data from a file, and the endfile record detection is important to stop reading. However, depending of the array dimensions of the array used to read data, I cannot detect properly the endfile record and my Fortran program stops. The program is below: ``` !integer, dim...
2018/03/02
395
1,274
<issue_start>username_0: ``` for($count = 1;$count < =5; $count++){ $obj = new Object(); . . . } ``` my question here is, if i do this, which segment of the memory will be occupied and also, will i have memory allocated for 5 objects, or just for one and it will be overwritten at every iteration<iss...
2018/03/02
898
2,523
<issue_start>username_0: I'm using a random number generating function and it's working fine but I need to reset a function variable `nSeed` and let the function startover when an `if` happens in the scope, let's say `nSeed=5323`. How can i return it to its starting value `5323` when int `a%16==0`? I'm not sure how to...
2018/03/02
368
1,233
<issue_start>username_0: I am trying to call fucntions using string value. Here is a simple example of my problem. How to call `method(line)` properly? I tried different solutions and got success only with `@staticmethod` but this is not what I want. ``` class A(): def prime(self, key): line = 'Good' ...
2018/03/02
1,039
3,244
<issue_start>username_0: I need to understand how callback functions works. I wrote this little script with 2 functions : ``` function fn1(callback) { alert('fn1'); callback(); } function fn2() { alert('fn2'); } fn1(fn2); //display 'fn1' then 'fn2' ``` Now, I want to update my script with a "fn3" function in...
2018/03/02
377
1,341
<issue_start>username_0: I'm creating an android app and I've just added a Navigation drawer into one of my activities. I've successfully added it in, however, it now overlaps the content of the page. The jobs text and the rest should be below the ActionBar. I've tried adding a margin to the top of the jobs text which ...
2018/03/02
387
1,377
<issue_start>username_0: I am aware of editchanged event of a textbox and it is working properly when I change the text in textbox using mac's keypad but I have made numeric buttons and when I change text using buttons the editchanged of textbox is not triggered. This is my button event ``` @IBAction func digitbutton...
2018/03/02
1,177
3,763
<issue_start>username_0: My question is very similar to my previous one posted here: [Sql - SELECT rows until the sum of a row is a certain value](https://stackoverflow.com/questions/48746563/sql-select-rows-until-the-sum-of-a-row-is-a-certain-value) To sum it up, I need to return the rows, until a certain sum is reac...
2018/03/02
1,572
5,023
<issue_start>username_0: Query is supposed to collect **original** items (from `Items` table) and **alternative** items (from `ItemOtherCode` table): ``` SELECT ItemCode,SelPrice1Default, ItemAraName, ItemLatName, ItemNotes, UnitCode, ItemClassCode, ItemGroupCode, ItemSubGroupCode, TaxSet, ExpireDate, ...
2018/03/02
775
2,468
<issue_start>username_0: i want to remove from array by minimum and maximum values for example i have the next array ``` ['10','11','12','12.5','13','14','15.5','16'] ``` i need to remove values from 12 to 13 to be ``` ['10','11','14','15.5','16'] ``` how can make it working in PHP ? can any one help ? thank...
2018/03/02
913
3,161
<issue_start>username_0: I have read PSR-15 from [PHP-FIG](https://www.php-fig.org/psr/psr-15/) (HTTP Server Request Handler) and wondering when an action is called (Controller action or Closure). When processing through all middlewares the action should be called after passing all middlewares. After the action all mi...
2018/03/02
537
1,941
<issue_start>username_0: I'm trying to write a function into a React component, but I am stuck with this error: > > Uncaught Error: Module build failed: SyntaxError: "productMap" is read-only > > > Why is this happening? And how can I fix this, so I can use `productMap`? Here is my function: ``` printReceipt() ...
2018/03/02
703
2,664
<issue_start>username_0: I'm developing an WPF application and I got two datepicks input where use can select the date, But I am having some problem with these inputs cause the user can write whatever they want on it as in the image bellow [![enter image description here](https://i.stack.imgur.com/YkNS1.png)](https:/...
2018/03/02
799
2,857
<issue_start>username_0: My database has a column named `Group`. This `Group` can be one of two values: 1. `Group101` = Main group 2. `Group101D1` = Subgroup Every group has two options like this. [![enter image description here](https://i.stack.imgur.com/rriat.png)](https://i.stack.imgur.com/rriat.png) But I have...
2018/03/02
340
1,280
<issue_start>username_0: Is there any way in JPA to check pragmatically if a class is *persistent* (annotated with *@Entity*) ?<issue_comment>username_1: To check whether it the class has the `Entity` annotation : ``` if (clazz.isAnnotationPresent(Entity.class)){ // } ``` The `Entity` may be present but the class...
2018/03/02
1,189
4,767
<issue_start>username_0: I am bit new to scala curying and the call by name functions. I am facing difficulty in understanding the Syntax. What is the fllow of the function why there is need of returning the f(result) and what function is applied on it further. ``` def withScan[R](table: Table, scan: Scan)(f: (Seq[Res...
2018/03/02
816
3,071
<issue_start>username_0: This is my server code. Performing boss worker. i specify the number of worker of threads. The problem is that sometimes it doesn't reply my client and mostly stuck at receive. Sometimes it execute but only if the client threads are minimum. Client threads sometimes failed to connect. Can anyon...
2018/03/02
1,219
3,985
<issue_start>username_0: **Executive summary:** Are there any caveats/known issues with `\R` (or other regex pattern) usage in Java's `Scanner` (especially regarding internal buffer's boundary conditions)? **Details:** Since I wanted to do some multi-line pattern matching on potentially multi-platform input files, I u...
2018/03/02
4,567
13,982
<issue_start>username_0: Hi I am trying to import the data from this JSON file to work with it in my python script. However, I am receiving the following error, I believe due to the nested nature of the JSON objects. My final goal is to collect the file name, and labels for each JSON object. I do not care about having ...
2018/03/02
1,239
4,110
<issue_start>username_0: I have a block of code that doesnt seem to be executing. I'm using Node.Js 8.9 on Ubuntu 16.04 ``` const puppet = require("puppeteer"); const fs = require("fs"); let oldIP = ""; ( async () =>{ const browser = await puppet.launch({headless:false}); const Page = await browser.newPage(); try {...
2018/03/02
2,452
7,253
<issue_start>username_0: The NODEJS example code for batching pubsub requests looks like this: ``` // Imports the Google Cloud client library const PubSub = require(`@google-cloud/pubsub`); // Creates a client const pubsub = new PubSub(); /** * TODO(developer): Uncomment the following lines to run the sample. */ /...
2018/03/02
2,415
7,320
<issue_start>username_0: As a quick resume i need to build a product feed that ll be constantly updating based on the people searches on site. Important things to have in mind: * Prices for the same ID change so i need to always keep the lowest (for a given month) * Every day this feed would be uploaded to different m...
2018/03/02
994
3,273
<issue_start>username_0: I have a big program, say `my_program.py`. I want to execute with two options, say 1 or 2. In case option 1 is chosen (`python my_program.py 1`) I want `my_program.py` to execute some parts of the code (in particular lines 70 to 117 and comment lines 118 to 130), if 2 is chosen I want the oppos...
2018/03/02
381
1,563
<issue_start>username_0: is there a way to have prefilled attributes notes in enterprise architect? It should be something like this scenario: 1) I create new attribute 2) Enterprise architect prefill note of attribute with predefined text Something like template for attributes. Thank you for any advice<issue_comment...
2018/03/02
1,159
4,720
<issue_start>username_0: I am working on an android app which will run in androidTv(currently i am using MiBox for my testing purposes) The requirement is like i need capture the number active notifications received by the android OS and show it somewhere in the APP. **Service which i've written:** ===============...
2018/03/02
616
2,220
<issue_start>username_0: I am new at React and trying to learn it. I am getting data from API and I will use the data. It returns money rates based on 'USD'. I am gonna use that data for convert money but I am getting this error: [Error here](http://www.imgim.com/screenshot2018-03-02at165606.png) [![screenshot](https:...
2018/03/02
233
808
<issue_start>username_0: Can I use the YoutubeAPI on a web-app to record and save/upload a video with out it being broadcast live?<issue_comment>username_1: Set your initial data property in the state to an empty array `[]`. A stringified 'false' evaluates to true which is why it tries to call the map function, but str...
2018/03/02
799
2,785
<issue_start>username_0: Why isn't it possible to mock a method that returns an fs2.Stream with a Mockito mock? Mockito is complaining that I am trying to return a FreeC instead of a Stream. Why is that and how can I get it working? The following code: ``` import cats.effect.IO import fs2.Stream import org.mockito....
2018/03/02
628
2,588
<issue_start>username_0: I am trying to develop a quizz app using Listview the idea of app is having list of question each question has 4 Radio Buttons to choose the answer and after finishing all questions user click submit button the submit button move the user to Score layout with his total Score my problem is : i...
2018/03/02
1,191
3,699
<issue_start>username_0: i have created colored squre box using code ```css .box { height: 20px; width: 20px; margin-bottom: 15px; border: 1px solid black; } .red { background-color: red; } .green { background-color: green; } .blue { background-color: blue; } ``` ```html = Super Fast T...
2018/03/02
254
1,016
<issue_start>username_0: I need to send an email along with a large attachment. I tried using an AWS lambda function along with SES functionality, and my files are stored in S3 with sizes varying between 1MB to 1GB.<issue_comment>username_1: It really isn't advisable to send large attachments in emails like this. It w...
2018/03/02
1,269
4,667
<issue_start>username_0: I have a `Product` Entity. Each product can have 0 or N pictures. I have a `ProductPhoto` Entity which has a `order` property (0 = first). On a page, I list all the pictures of my current product. I would like to manage pictures order with 2 up/down arrows. When the user clicks on an arrow, i...
2018/03/02
446
1,537
<issue_start>username_0: I'm currently working on an iOS application in Swift, and I need to achieve the text effect shown in the attached picture. I have a label which displays some text wrote by the user, and I need to make the text background corners (not the label background) rounded. Is there a way to do that? I...
2018/03/02
359
1,229
<issue_start>username_0: When I want to create WebCenter Portal Application from JDeveloper 12c, I can't find this option in the gallery, how I usually do this from JDeveloper 11g.<issue_comment>username_1: Here is some code that could help you. The result I got is quite similar to what you want. ``` class MyTextView:...
2018/03/02
1,530
4,863
<issue_start>username_0: Recently I updated our application jdk from Java 6 to Java 8 but kept source language level still as Java 6. After change one of our unit tests was failing. I noticed that Collections.sort for LinkedList is working different in Java 8 and Java 6. Even when I am Source Level java 8 with JDk 1.8...
2018/03/02
569
2,116
<issue_start>username_0: I want a view to slide up, outside the visible area, when the navigation bar hides. The view is attached to the safeAreaLayoutGuide: ``` topConstraint = myView.topAnchor.constraint(equalTo: view.layoutMarginsGuide.topAnchor) ``` To slide it out, the constraint is changed: ``` topConstraint...
2018/03/02
266
922
<issue_start>username_0: I'm using react js 15.4.2. I have html data stored as string like `"Hello.. "`. I can not append them to the DOM. ``` ... componentDidMount(){ let obj = dataFromDB.map((data)=>{ return( {data.strHtml} ) }) this.setState({storedObj: obj}) } ...
2018/03/02
2,327
7,653
<issue_start>username_0: I am trying to solve a question where in overlapping intervals need to be merged. [The question is](https://leetcode.com/problems/merge-intervals/description/): > > Given a collection of intervals, merge all overlapping intervals. > > > For example, Given [1,3],[2,6],[8,10],[15,18], return ...
2018/03/02
1,621
6,318
<issue_start>username_0: I'm trying to use a promise on this code: ``` //Listando arquivos app.post('/readList', function(req, res) { var cleared = false var readList = new Promise(function(resolve, reject){ fs.readdir(req.body.path, (err, files) => { files.forEach(file => { console.log(fil...
2018/03/02
214
783
<issue_start>username_0: I encountered an error when I commit an image, the process is already open in an other program (like ADOBE Photoshop) and I can't commit and the images are removed. [![enter image description here](https://i.stack.imgur.com/Wnwq9.png)](https://i.stack.imgur.com/Wnwq9.png) how can I fix it? Th...
2018/03/02
451
2,032
<issue_start>username_0: We currently have a requirement where an end user can perform a signature capture inside the SO Invoice screen. End user would click a button or execute an action from the Actions Menu. A touch screen graphical editor would come up allowing the user to use their finger or any hardware supporte...
2018/03/02
536
1,790
<issue_start>username_0: I'm developing email templates and I need to use `display:inline-block` but it's not working on gmail and outlook. I just need to align an image with a text and I can't use a table . Any suggestions to make the `display:inline-block` work or any other solution that works on outlook and gmail? ...
2018/03/02
1,232
3,673
<issue_start>username_0: When I run `virtualenv`, I get this: ``` $ virtualenv -bash: /usr/local/bin/virtualenv: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory ``` `virtualenv` only started behaving this way today. It worked yesterday. It breaks because `virtualenv` is a Python scrip...
2018/03/02
1,109
3,252
<issue_start>username_0: I am running an example in a Python book for classes. ***MyClass.py*** ``` class MyClass: def __init__(self, Name="Sam", Age=32): self.Name = Name self.Age = Age def GetName(self): return self.Name def SetName(self, Name): self.Name = Name de...
2018/03/02
1,163
2,654
<issue_start>username_0: I spent two days tried to build regular expression to find two words/numbers occur Sequentially on different lines. I has a file that has text like: ``` 1 [pid 29743] 18:58:19 prctl(PR_CAPBSET_DROP, 0x9, 0, 0, 0 2 [pid 29746] 18:58:19 <... mprotect resumed> ) = 0 3 [pid 29743] 18:58:19 ...
2018/03/02
921
2,271
<issue_start>username_0: I am trying to fit my python plot with an exponential function. I have attached the code here. Any inputs is highly appreciated. ``` import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit x=[0.21, 0.43, 0.50, 0.65, 0.86, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0] y=[43, 33...