date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/07
1,169
4,356
<issue_start>username_0: I am developing a website using Laravel. I need to integrate Stripe payment gateway into my website. I implemented the payment process successfully, but it is not charging the correct amount. This is my HTML form and JavaScript: ``` {!! Form::open([ 'url' => url('checkout/charge'), 'id' => ...
2018/03/07
833
3,039
<issue_start>username_0: I am using **Xunit** & **Moq**. I want to be able to mock an insert into a table. This way the record doesn't actually populate the table, but the unit test can verify that an insert was successful. Using the real DbContext, the unit test works for method **Add\_Works()** below. When I try to u...
2018/03/07
407
1,350
<issue_start>username_0: I have an angular service with a value that is defined as: ``` private client_comments = new BehaviorSubject([]); ``` I am attempting to set the value with the response from an http call, but I see: > > Argument of type 'Response' is not assignable to parameter of type 'any[]'. Property '...
2018/03/07
470
1,659
<issue_start>username_0: I am trying to put a WAF in front of an Azure web app (no ASE). The web app is running with HTTPS (SSL \*.azurewebsites.net). I have followed the instructions from this MS document: <https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-end-to-end-ssl-powershell> Eve...
2018/03/07
534
1,529
<issue_start>username_0: I have two dataframes with same index & columns. (x, y) ``` >>> x A B 0 A0 B0 1 A1 B1 >>> y A B 0 A2 B2 1 A3 B3 ``` I found out how to concatenate two dataframes with multi-index as follows. (z) ``` >>> z = pd.concat([x, y], keys=['x', 'y'], axis=1) >>> z x y ...
2018/03/07
1,380
4,129
<issue_start>username_0: I am trying to have a Tkinter gui with 4 boxes that will let me add users to Centos7. If it was a dialog using raw input it works fine but when i try to get the input from the entry fields it doesnt. I saw other related subprocess questions but none of them used Entry frields which confuse me...
2018/03/07
753
2,740
<issue_start>username_0: Is there a way to implement `RouteReuseStrategy` only for specific routes? Meaning each route with children, getting its own custom implementation of `RouteReuseStrategy`, and whose methods only fire when a route in a specific 'tree' is activated. I currently use the code from [this](https:/...
2018/03/07
993
3,771
<issue_start>username_0: So, I'm trying to use a web worker in my project to run a long-running process that is currently tying up the UI. I've been to I don't know how many sites trying to get a worker to work, but to no avail. All of my javascript is kept in separate files and referenced in the HTML file. As a test ...
2018/03/07
756
2,491
<issue_start>username_0: I'm trying to create a function that e-mails an HTML File with CSS and everything. I'm trying to figure out how to pass variables into my HTML. The HTML code is in a separate file called index.html FILE 1 `app.py` def mailer2(addr\_from,addr\_to, title, password): ``` # Define SMTP email ser...
2018/03/07
1,399
5,200
<issue_start>username_0: i am encountering a problem i'm not familiar with. So i'm trying to log exceptions from a test Azure Function but when i throw an exception and return a 400 bad request, application insight registers the log as a successful request. As i understand it it is probably register the function's su...
2018/03/07
982
4,148
<issue_start>username_0: I need a simple pagination for Angular-in-memory-web-api. Right now I have: ``` import { InMemoryDbService } from 'angular-in-memory-web-api'; export class InMemoryDataService implements InMemoryDbService { createDb() { const comments = [ { 'use...
2018/03/07
545
1,617
<issue_start>username_0: Here is my code: ``` $param2 = $val2 = ""; if ($myCondition){ $parm2 = ", param2 = ?"; $val2 = "something"; } $stmt = $dbh_conn->prepare("UPDATE myTable SET param1 = ? $param2 WHERE param3 = ?"); $stmt->execute([$val1, $val2, $val3]); ``` My code works when that condition is `true`....
2018/03/07
1,042
4,122
<issue_start>username_0: I have a view controller who's view contains of a header view and a UITableView below it. I do not want to put the header view in the table view for it to manage the scrolling, I want it to stay independent of the table view. However I want to kind of hide it when scrolling down on the table vi...
2018/03/07
932
3,539
<issue_start>username_0: I try to do bower install for my project but it throws following error ECMDERR Failed to execute "git ls-remote --tags --heads <https://github.com/functino/jquery-ui-touch-punch.git>", exit code of #128 fatal: could not read Username for '<https://github.com>': terminal prompts disabled I tri...
2018/03/07
630
2,478
<issue_start>username_0: I am implementing Jenkins pipeline in Jenkins version 2.8. everything works great so far, but I would like to implement rerun option as a tick box. My Pipline has 4 stages: 1. Stage 2. Stage 3. Stage 4. Stage I run the pipeline and it fails at 2. Stage. Now I have build #1 that failed at 2. ...
2018/03/07
496
1,792
<issue_start>username_0: In bash, why isn't this: ``` declare -a array=(a b c d e) IFS=',' echo "${array[*]}" ``` the same as: ``` echo_wrapper() { echo "$*" } declare -a array=(a b c d e) IFS=',' echo_wrapper "${array[@]}" ```<issue_comment>username_1: Expansion happens before variable assignments within a s...
2018/03/07
442
1,772
<issue_start>username_0: There is Entities User and Company. Company has user\_id. Now table structure changes and next one user can represent many companies and vice versa (Many to Many eg One to Many - Many to One). This introduces CompanyRepresentative Entity in the middle with fields user\_id, company\_id and role...
2018/03/07
1,808
5,699
<issue_start>username_0: I am new to jQuery. I am trying to increase and decrease value on `click` on the button. Now I want to show the sum of three input on total `input`. Here is what I tried : ```js var cartButtons = $('.cart-plus-minus').find('button'); $(cartButtons).on('click', function(e) { e.preventDef...
2018/03/07
573
1,865
<issue_start>username_0: I want to create a simple wrapper and get `w.headers` using this syntax: ``` w = wrapper w.get_endpoints('Users') w.headers ``` **But I get the error, headers not defined** However this works (but not the syntax I'm after): ``` w = wrapper w.get_endpoints('Users').headers ``` This is my ...
2018/03/07
556
1,679
<issue_start>username_0: I have a very annoying problem with ChromeDriver. I need to use version 2.36, but I currently have 2.35.528157 (when doing `chromedriver -v`). I have already done: ``` brew upgrade chromedriver ``` Which ran successfully, however according to my terminal, I still have 2.35.528157 I then di...
2018/03/07
550
2,114
<issue_start>username_0: I've got an old app I wrote in Node, Mongo, Express and Handlebars. It seems to be a bit outdated in the sense that it was more static and all data was called locally off the same domain and rendered with Handlebars on the server side, which I thought was always necessary for SEO and it wasn't ...
2018/03/07
2,274
7,779
<issue_start>username_0: I want to highlight outgoing edges after clicking on node. Now, I have such code: ``` style: cytoscape.stylesheet() .selector('node') .css({ 'content': 'data(id)', 'background-color': '#4286f4' }) .selector('edge.highlighted') .css({ 'line-color': 'black', ...
2018/03/07
2,144
7,406
<issue_start>username_0: I have created a "Visual Studio Enterprise 2017 (latest release) on Windows Server (x64)" Virtual machine. I would like to start and stop this machine via Powershell. ``` #Login Add-AzureAccount #Enterprize subscription. Id can be found by seraching for subsription in the portal Select-AzureS...
2018/03/07
2,137
7,417
<issue_start>username_0: I update one record in a DB: ``` $res = $query->update() ->set(['activation' => true]) ->where(['sha1' => $hash]) ->execute(); ``` The request itself is executed correctly (This is visible when you change the database itself.). And further I try to receive result of ...
2018/03/07
708
2,337
<issue_start>username_0: Suppose you have Matrix A. [![5x3 A matrix](https://i.stack.imgur.com/A6Fex.jpg)](https://i.stack.imgur.com/A6Fex.jpg) Suppose also that we have Matrix C [![5x3 C Matrix](https://i.stack.imgur.com/xZWDf.jpg)](https://i.stack.imgur.com/xZWDf.jpg) ***If we have A = B x C and we want to find ...
2018/03/07
676
2,337
<issue_start>username_0: I'm trying to find out how a specific command is defined. I've checked all locations of `$PATH` and could not find any file that is named like my command, so it seems to be something else. Here is an example using nvm, that is not an executable: ``` me@MacBook:~$ which cat /bin/cat me@MacBook...
2018/03/07
583
2,017
<issue_start>username_0: I created a list with one checkbox for each item, and I need to verify if all of them are ckecked. This is my HTML: ``` * {{ ingredient }} ```<issue_comment>username_1: The command you are looking for is `type`. `type nvm` will show how the shell will interpret the command, so unlike `whic...
2018/03/07
803
2,667
<issue_start>username_0: I have a class: `class1` with a private member variable: `std::unordered_map s\_list;` I am trying to insert or assign objects of `class2` in the above `s_list`. The `class2` has a copy constructor of the form: ``` class2::class2(const class2& obj) { x = obj.x; y = obj.y; } ``` It...
2018/03/07
411
1,624
<issue_start>username_0: This is Apache Spark on Windows. What is the need of `\tmp\hive` while changing the permission with `winutils.exe`? Can I change this path to a random temporary directory?<issue_comment>username_1: I am not sure where did you get this /tmp/hive thing. All you need to do is setup HADOOP\_HOME ...
2018/03/07
863
2,877
<issue_start>username_0: I have a problem with webview and scrolling. I want to disable all scrolling. I used `scrollEnabled`, for IOS it works fine. But for android no property like this exists. I tried a lot of scripts but nothing works. At first look everything seems ok but if user swipes to right side then the tex...
2018/03/07
676
2,623
<issue_start>username_0: ``` CREATE PROCEDURE CreateAsset @NumeratorQuery AS TEXT, @DenominatorQuery AS TEXT, @family AS VARCHAR(255), @control_num AS VARCHAR(255), @metric_sequence AS VARCHAR(255) AS -- Drop Temporary Tables if they exist IF OBJECT_ID('tempdb.dbo.#TempNumerator') IS NOT NU...
2018/03/07
753
1,994
<issue_start>username_0: I'm trying to write a program that logs into a router, copies the output of a `show log` command to the clipboard, and pastes it to a text file or web page. I can get it to print the output I'm looking for. Here is a sample: ``` .Feb 27 07:25:28.050: %OSPF-4-ERRRCV: Received invalid packet: Ba...
2018/03/07
3,074
11,818
<issue_start>username_0: I'm new at Java and attempting to build a companion app for a video game that my friends and I play (first app!). With this app, I've built a SQLite database with several tables and attempting to call this, query it, and display this data into a table. **My Question:** *Edited* > > I created...
2018/03/07
1,073
3,774
<issue_start>username_0: I have an Angular component that lazy loads data to an `Observable` through a `BehaviorSubject` when the scroll position of a container reaches the bottom. The needed properties and the `init()` function that initializes the list of items look like ``` private _itemList: BehaviorSubject; priv...
2018/03/07
1,223
4,127
<issue_start>username_0: I have tried to find but my answer doesn't match with the solution in the text. Could anyone explain me to find the time complexity? ``` for (int i=0; i ```<issue_comment>username_1: Could anyone explain me how to find the time complexity? -----------------------------------------------------...
2018/03/07
2,038
6,719
<issue_start>username_0: I've got an array of strings in the below fashion(each element contains at least 3 nodes by name `xref` with attributes `ref-type` and `rid`) ``` [20] [21] [22] [2], [3], [4] 101, 102, 103, 104, 106 [11] [12] [13] [4] [11] [12] [13] [14] ``` I'm trying to go through each element of the array...
2018/03/07
786
2,736
<issue_start>username_0: I'm trying to design a webpage somewhat similar in appearance to Microsoft's. (<https://www.microsoft.com>) This includes building a image slideshow, which is why I looked up W3 Schools and found this: <https://www.w3schools.com/howto/howto_js_slideshow.asp> This is a great example and when wri...
2018/03/07
932
3,199
<issue_start>username_0: [W10 Pro x64 v1709, Visual Studio 2017 Community 15.6.0, AnkhSVN 2.7.12815.35086] I am getting a crash at VS startup of AnkhSVN in VS 2017. I believe this just started happening today - I don't remember it happening the last time I opened the IDE. Uninstall/reinstall of the extension doesn't h...
2018/03/07
559
1,752
<issue_start>username_0: I want to filter from a Table [Sales] some values with a SQL instruction. My table has Date, ID and Sales. So I filter it for when Date is after 01/01/2017, but I also want to filter to exclude some "Id", right now I only can filter to one, or to exclude just one, how do I do it, if I want to ...
2018/03/07
865
2,891
<issue_start>username_0: I've got a table `TABLE1` like this: ``` |--------------|--------------|--------------| | POS | TYPE | VOLUME | |--------------|--------------|--------------| | 1 | A | 34 | | 2 | A | 2 | | 1 | ...
2018/03/07
407
1,532
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/sAQUS.png)](https://i.stack.imgur.com/sAQUS.png) This is a property in an ibd diagram using sysml1.3. I don't know what this red letter A is in the low right corner. It's the only item that has it. I guess I have done something to ge...
2018/03/07
809
2,824
<issue_start>username_0: I am trying to deploy my feathersJS app on heroku with mongodb database. I used mLab sandbox plan, I did not configure anything on it. But as there is no documentation or any previous questions about it here I am. I have made a feathersJS app running with mongodb. But when I deploy it on heroku...
2018/03/07
242
904
<issue_start>username_0: I built a Xamarin simple app project for android device. It's compiled and also run on my device, whereas after some times I faced an error. the error is: > > "This project needs to be migrated." > > > and also I couldn't create new android Xamarin project. In fact, it's disappeared from...
2018/03/07
2,833
7,916
<issue_start>username_0: How to make *child element inherit parent's width* using Bootstrap 4. I need to fix `download_resume` block's width. I'm using two primary js script's. **1**.First function change img like `hover` effect **2**.Second function adding sticky class to our `empty_row` block make it `position fi...
2018/03/07
788
3,575
<issue_start>username_0: One of the key attributes of an iterator is that > > The iterator pattern allow us to: > > > * access contents of a collection without exposing its internal structure. > > > What exactly is meant by that, what is the internal structure?<issue_comment>username_1: Every data structure is ...
2018/03/07
809
3,695
<issue_start>username_0: The use of affinity to control cpu and other resources of a component appears to be a new feature in RedHawk 2.1. The manual only describes its use in Resource components but I would like to use it in a Device. I tried adding the block for cpu to the DCD for the device but it appeared to have n...
2018/03/07
147
622
<issue_start>username_0: I have a dataframe with over 100 columns, I would like to check all pairs to see which are unique identifiers.<issue_comment>username_1: You can use from collections import counter. [see doc](https://docs.python.org/2/library/collections.html) Upvotes: -1 <issue_comment>username_2: You can use ...
2018/03/07
388
1,513
<issue_start>username_0: I'm using the `ews-javascript-api` to delete a contact from my exchange personal address book. I'm following the microsoft c# example (but obviously writing my code in javascript. Here's the example I'm following: [EWS Delete contact](https://msdn.microsoft.com/en-us/library/office/ee693008(v=...
2018/03/07
881
3,464
<issue_start>username_0: I use the below method to remove all blank lines from a file but it is for some reason adding an extra line at the end of the document? ``` var tempFileName = Path.GetTempFileName(); try { using (var streamReader = new StreamReader(file)) using (var streamWriter = new StreamWriter(...
2018/03/07
879
3,379
<issue_start>username_0: Newby needs help with error. I am requesting data via a http get request. The data is in xml format. I need to convert it to json for use in my Angular app. When I run the following code I get a error in the console "TypeError this.http.get().map is not a function. ``` list() { return this.h...
2018/03/07
1,451
3,522
<issue_start>username_0: I have the following sample table below in a pandas dataframe. ``` Col1 Col2 Col3 Col4 Col5 No 4/30/2018 No No 4/30/2018 No Await AIR 7/15/2015 Yes 4/30/2018 No Await LER 7/15/2015 No ...
2018/03/07
897
4,235
<issue_start>username_0: Help me please, or show other ways to resolve this problem. ``` @RestController @RequestMapping("/users") public class UserController { @RequestMapping("/login") public String logIn() { return ""; } @RequestMapping("/getUserData") @FilterThisRequest public Str...
2018/03/07
891
3,385
<issue_start>username_0: I am trying to create an SPA using React. I have an `index.js` and `App.js, SidebarContentWrap.js, Sidebar.js, Content.js` components. `index.js` has `BrowserRouter` and calls `App.js` Component. `App.js` fetches data from API in `componentWillMount` method and then renders a dynamic route `...
2018/03/07
525
2,014
<issue_start>username_0: I am handling Http result in a reducer function of an Observable. While a type of the parameter `jwt` is set as `{ id: string, auth_token: string, expires_in }`, the `jwt` argument turns out to be a `string`. I thought TypeScript does parsing automatically. Do I have to do `JSON.parse(JSON.stri...
2018/03/07
501
1,810
<issue_start>username_0: "$(WiX)\bin\heat.exe" dir $(MyProject.Dir.TargetDir) -var var.MyProject.Dir.TargetDir -t "$(ProjectDir)Filter.xslt" -dr INSTALLFOLDER -cg DesktopClientOutputComponentGroup -suid -ag -scom -sreg -sfrag -srd -o "$(ProjectDir)MyProject.Dir.Output.wxs" here dir $(MyProject.Dir.TargetDir) cannot be...
2018/03/07
1,205
5,048
<issue_start>username_0: ``` Android Studio 3.2 Canary 5 Build #AI-173.4630681, built on March 3, 2018 JRE: 1.8.0_152-release-1136-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.4-300.fc27.x86_64 ``` I have just started a new project and when I sync'd I got this dialog box. [![enter image desc...
2018/03/07
1,172
5,205
<issue_start>username_0: I'm kind of new to this Python "files" stuff. SO this is the code to retrieve the data from a file called "CabDetails.txt" which has some tabular data like the availability of the car for rent and its ID. I am able to run the program without errors but i am not getting any output. Oh btw, the i...
2018/03/07
852
2,905
<issue_start>username_0: How do I change the font size of a cell? I am using OpenPyXL. It will not let me send this question without typing the above with perfect grammar and spelling, so the last few words people should know what I mean.<issue_comment>username_1: Openpyxl styling can achieve this for you! ``` cell.s...
2018/03/07
796
2,367
<issue_start>username_0: I have got two lists in python segmentation1 and segmentaiton2 which contains tuples of indexes for instace: ``` segmentation1 = [('874', '893'), ('964', '985')] segmentation2 = [('901', '931')] # frame indexes in vid ``` and I have also and index with which i want to create and if-else stat...
2018/03/07
4,156
14,570
<issue_start>username_0: I'm working on a setup where I want to connect a RaspberryPi-3 to another machine. Most of the time it will be a Windows machine. On the Pi I want to forward all Keyboard strokes via Bluetooth to the other (Windows) machine. Therefore I did some research, someone called Liam wrote a Python scr...
2018/03/07
1,315
2,989
<issue_start>username_0: How do I jeft.join 2 data frames based on the nearest date? I currently have the script written so that it joins by the exact date, but I would prefer to do it by nearest date in case there is not an exact match. This is what I currently have: ``` MASTER_DATABASE <- left_join(ptnamesMID, CT...
2018/03/07
2,983
6,675
<issue_start>username_0: I have a string array full of guids. I am trying to replace certain guids with different guids. My approach is below; ``` var newArray = this.to.Select(s => s.Replace("e77f75b7-2373-dc11-8f13-0019bb2ca0a0", "1fe8f3f6-fe17-e811-80d8-00155d5ce473") .Replace("fbd0c892-2373-dc11-8f13-0019bb2ca...
2018/03/07
1,329
4,823
<issue_start>username_0: I want to view the more recent X builds for several Jenkins jobs. So if I wanted to show the last 5 builds for jobs 1-5 it would looks something like this: ``` status build time ------------------------- pass job1#3 13:54 fail job1#2 13:05 fail job1#1 13:01 pass...
2018/03/07
1,010
2,722
<issue_start>username_0: I would like to break a array with users: ``` [ {name: "Carlos"}, {name: "Marcos"}, {name: "Fernando"}, {name: "Jhon"}, {name: "Loius"}, {name: "Jacob"}, ] ``` And get something like this: ``` [ [ {name: "Jhon"}, {name: "Loius"}, {name: "J...
2018/03/07
707
2,601
<issue_start>username_0: I'm trying to make a video player using SDL and ffmpeg in C++. I've created two separate threads, one that renders the video on the SDL window and one that handles window events. When the user clicks and releases on the video I want it to toggle playback/pause. However, it fires multiple times ...
2018/03/07
1,577
4,808
<issue_start>username_0: I am currently working a project (a userform in Excel 2016) that is intended to input new client information each month. I would like the user to search for each client with an ID number. After the user inputs an ID number through the userform (ID nubmer is also located in A:A on next sheet tit...
2018/03/07
376
1,300
<issue_start>username_0: Currently I'm trying to use the Map's assocs method, but unable to figure out how to get it to work for a HashMap. For a regular Map the following works just fine. ``` import qualified Data.Map as M test = M.fromList [("a", 1), ("b", 2)] M.assocs test ``` However when I try the same thing wi...
2018/03/07
1,794
5,288
<issue_start>username_0: I need to manually create interaction terms for 6\*3 variables. I have stored the names of these variables into two vectors, let us call them a and b. Let us call my dataframe df. ``` a <- c("var1","var2","var3") b <- c("varA","varB","varC","varD","varE","varF") ``` I could manually create 1...
2018/03/07
836
3,238
<issue_start>username_0: my problem is when my edit text add comma cursor will move to first of text how to set the cursor always in the end of edit text when using ObservableField and mvvm this is my xml ``` ``` this is my view model ``` var amount = ObservableField() fun afterTextChanged(editable: Editable){ var...
2018/03/07
834
2,733
<issue_start>username_0: I would like to quickly test some Observable related functions. In my Chrome Developper Tools (or the Firefox one, doesn't matter). It seems to me that some days ago I was able to simply execute code like this : ``` var test$ = Rx.Observable.from([1,2,3]); ``` directly in my JavaScript cons...
2018/03/07
797
2,567
<issue_start>username_0: I have make the MVC website connection with database. the action in controller has been created as DeleteButton(idSelect) and it delete the data with id which is the prime key, and return the action of this page. ``` Delete @foreach (var item in Model) { | @Html.DisplayFor(modelItem =...
2018/03/07
1,075
4,294
<issue_start>username_0: When a scrollbar is added to a container, the horizontal scrollbar cuts off the bottom content of the container (only the first time the toggle button is pressed). Attached is the fiddle. Please note that I am ultimately trying to create a class that can be extended by a view, and the supercl...
2018/03/07
1,019
3,155
<issue_start>username_0: I'm using PHP 5.4 and getting back array structures like this: ``` Array ( [0] => Array ( [HGS-SUB] => SimpleXMLElement Object ( [0] => 59.00 ) ) [1] => Array ( [DOMN-MTH] => SimpleXML...
2018/03/07
708
3,183
<issue_start>username_0: I have a bunch of inserts which I want to have in a transaction so I can rollback in case of any errors. Now my issue is that for some of the inserts I need the ID of the previous insert. However, doing `var id = (int)command.ExecuteScalar();` throws an exception ("Object reference not set to a...
2018/03/07
487
1,583
<issue_start>username_0: I need some help with a SQL statement. I would like to count common characters between string A and B. I have the table like that. ``` A B Result --------------------- 13456 124 2 13478 344 2 79105 782 1 12457 983 0 41295 129 3 43134 343 2...
2018/03/07
514
1,782
<issue_start>username_0: I'm working on a code that takes a bowling score (in terms of the 10 frames), and evaluates it. An example of a string would be `XXXXX6/XX7/XX5` where the score would be 248 or `62--43---2----X--` where the score would be 27. My first idea was to try to split the string so that, it would group...
2018/03/07
1,233
4,154
<issue_start>username_0: <https://docs.google.com/spreadsheets/d/1sQyBTh7xCptnvr2SOQyEovmgIi6U-UapvDQOphk2Qxg/edit?usp=sharing> Above is my Google Sheets file which is linked to a form that uploads receipt image files and catalogs the info for the uploaded receipt. I have two requirements for an App Scripts job: ``...
2018/03/07
1,004
2,648
<issue_start>username_0: Based on the user input i.e. $release\_num, I have to take a call on a particular action. Its working in certain cases but fails in some other cases. Need help in refining the final solution. Code: ``` my $release_num; my $short_release_num = substr($release_num, 0, 4); if (($short_release...
2018/03/07
1,092
3,036
<issue_start>username_0: I am trying to retrieve json data using Http with the help of service and component. I have used observable and subscribe pattern for the same but when I am trying to access the data in component, I am getting below error : ``` Zone: ; Task: Promise.then ; Value: Failed to load %0A%20%20%20...
2018/03/07
321
1,185
<issue_start>username_0: I am doing a html5/JS application with Nodejs on Netbeans 8.2. I am doing the welcome page and I would like to use Bootstrap 4. But when I add bootstrap.min.css in my stylesheets folder I have an error, see the image below. However when I add the bootstrap.min.css from Bootstrap 3.3.7 I have n...
2018/03/07
986
2,694
<issue_start>username_0: I am trying to select multiple OR clause with an IN clause. Below is my expression: ``` Select * from ABC Where XYZ OR CDP OR Bell in (TermYard1,TermYard2,TermYard3,TermYard4) ``` I also tried ``` Select * from ABC Where('XYZ','CDP','Bell') in (TermYard1,TermYard2,TermYard3,TermYard4) ``` ...
2018/03/07
1,806
5,740
<issue_start>username_0: **Javascript Ternary Condition** I have javascript with this condition, what is this? ``` var y = (typeof x !== undefined) ? x || 0 : 1; ```<issue_comment>username_1: The condition ``` (typeof x !== undefined) ``` asks if `x` is not of type `undefined`. Or, if `x` is defined. This will in...
2018/03/07
793
2,991
<issue_start>username_0: i need to output e4 and e5 to 2 decimal places as it is currency ``` public void afterTextChanged(Editable s) { if (e2.getText().toString() != "") { ...
2018/03/07
1,514
5,275
<issue_start>username_0: Following the concept of the app bar "page filter" I'd like to put a `DropdownButton` as the title of the `AppBar`. I tried, but it doesn't look good. <https://material.io/guidelines/layout/structure.html#structure-app-bar> ``` class MyHomePage extends StatefulWidget { MyHomePage({Key key,...
2018/03/07
1,867
6,386
<issue_start>username_0: In Django, I am trying to make an app with a tree hierarchy of models i.e *Books* containing *Chapters* containing *Sections* etc. I want my URLs to mirror the structure, like *books/3/chapters/5/sections*. I want to use the generic class-based views. In my HTML templates, I will use the *{% u...
2018/03/07
888
3,011
<issue_start>username_0: How can I achieve a never ending loop in AngularJS? my try: ``` item_list = [{'id':1, 'photo':'path/src'}, {'id':2, 'photo':'path/src'}, {'id':3, 'photo':'path/src'}]; item_list.map(function(item) { setTimeout( function () { setCoverImage(item.photo); }, 5000); ) ``` I'm g...
2018/03/07
1,169
4,045
<issue_start>username_0: I am building and Rails 5 API where I am trying to send money amount and store it in PostgresQL database. I am sending amount 2.4 but I see in database only 2 is stored. what I am doing wrong? my migration: ``` class CreateTransactions < ActiveRecord::Migration[5.1] def change create_ta...
2018/03/07
447
1,591
<issue_start>username_0: I'm coming from a MS SQL background using SSMS. I just recently started using Oracle / Toad at a new company and I'm finding it to be a bit finicky. One of the things that I use to do in SSMS was select 2 queries, and then execute the statement and see the results for both. When I attempt to...
2018/03/07
836
2,454
<issue_start>username_0: Is there any possible way to get 95% CI for regression coefficients from the robust regression, as implemented in MASS::rlm? ```r # libraries needed library(MASS) library(stats) library(datasets) # running robust regression (x <- MASS::rlm(formula = scale(Sepal.Length) ~ scale(Sepal.Width),...
2018/03/07
483
1,967
<issue_start>username_0: I trying to write test scripts using HttpLibrary (from robot framework) on Eclipse RED editor and below are the steps i have performed - **Steps performed** 1. Installed robot framework HttpLibrary using below command > > pip install --upgrade robotframework-httplibrary > > > 2. From Se...
2018/03/07
898
2,772
<issue_start>username_0: I'm trying to add a hover function to some images on our company website. The problem is i need this for many pictures (product pictures) but not all (icons and such) and i need very simple implementation because the content will be handled by someone who knows even less about programming than...
2018/03/07
271
928
<issue_start>username_0: I'm creating a new WordPress Theme and I want a *media* folder to contain some images that are not considered to be posts. e.g. *themes/theme-name/media/sampleIMG.jpg* adding ``` ![](media/sampleIMG.jpg) ``` in my theme folders index.php leads to an 404 error code output because apparently...
2018/03/07
406
1,526
<issue_start>username_0: So I want to build a small native mobile app using Vuejs. I understand that there are two platforms on which you can develop native mobile apps using VueJs; Weex and Nativescript. Here are my questions: 1- Have you worked with any of the platforms? If yes, are they any good? (I've heard bad re...
2018/03/07
652
1,400
<issue_start>username_0: Hi I have 2 arrays of vectors: ``` A=np.array([[5,62,7],[5,62,7],[5,62,7]]) B=np.array([[1,2,3],[1,2,3],[1,2,3]]) ``` and I would like to concentrate them like that: ``` C=[[[5,62,7], [1,2,3]], [[5,62,7], [1,2,3]], [[5,62,7], [1,2,3]]] ```<issue_comment>username_1: `hstack().reshape...
2018/03/07
1,192
3,805
<issue_start>username_0: I want to insert rows into a SQLite3 table using the `knex.raw` method. Unfortunately I get a 'SQLITE\_RANGE' error, which makes my test fail. I have verified the bindings passed to the raw query in the following fashion: * They respect the order of the INSERT statement * They respect the spec...
2018/03/07
1,298
3,113
<issue_start>username_0: I have the following dataframe structure that is indexed with a timestamp: ``` neg neu norm pol pos date time 1520353341 0.000 1.000 0.0000 0.000000 0.000 1520353342 0.121 0.879 -0.2960 0.347851 0.000 1520353342 0.217 0.783 -0.6124 0.4...
2018/03/07
2,017
6,012
<issue_start>username_0: I want to perform a transformation on my DataFrame `df` so that I only have each key once and only once in the final DataFrame. For machine learning purposes, I don't want to have a bias in my dataset. This should never occur, but the data I get from my data source contains this "weirdness". S...
2018/03/07
583
2,089
<issue_start>username_0: I'm trying to replace `Handler` with `RxJava2`. I want to make `apiCall()` to backend every 800ms, but it does not work with `delay` **PRESENTER** ``` val disposable = repository.apiCall(...) .observeOn(AndroidSchedulers.mainThread()) .toObservable() ...
2018/03/07
488
1,647
<issue_start>username_0: Please explain the output of the following program, why the array is printing till 10th array index, if I do not terminate the string with a null character it always print the size of the array and then the loop terminates which means it now found the null character. I checked with different si...
2018/03/07
1,407
4,748
<issue_start>username_0: I know Memory Error related questions have been asked before, for example [here](https://stackoverflow.com/q/18282867/4701426), [here](https://stackoverflow.com/q/44508254/4701426), [here](http://grokbase.com/t/python/python-list/102db8s7pb/memoryerror-can-i-use-more), [here](https://stackoverf...