date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/27
1,152
4,012
<issue_start>username_0: So I am a javascript noob. I'm doing an assignment for a webdesign class and we are practicing event listeners. So I had to assign variables to 3 separate divs, place them in an array, create a function to make them display or be hidden, and use a button/click event listener to call the functio...
2018/02/27
1,767
3,767
<issue_start>username_0: Python3 I have a dictionary with alphabet count, shown below ``` a 24873 b 5293 c 7301 d 15567 e 38088 f 6499 g 7109 h 20360 i 20283 j 751 k 3207 l 12780 m 7686 n 21510 o 24944 p 5275 q 191 r 16751 s 18831 t 30897 u 9624 v 2551 w 8390 x 439 y 7139 z 161 ``` and i want a function to print it ...
2018/02/27
2,140
5,885
<issue_start>username_0: I'm sending JSON to a restful service using TidHTTP.Post but having trouble reading the response from idHTTP when an HTTP error 400 occurs. When a 400 occurs, the server provides JSON which describes errors in the data being sent. I get readable JSON results sometimes but most of the time the r...
2018/02/27
1,771
4,960
<issue_start>username_0: I have problem with cutting paper. I have Epson TM-T20 Receipt, and trying to cut paper after printing is done. I found somewhere that this is code for cutting `byte[] bytes = { 27, 100, 3 }`, but it's not working. Below is code I'm using for printing. ``` public static void printer(String pr...
2018/02/27
1,583
3,970
<issue_start>username_0: I've rather new at php and mysqli and I've had some success but am currently facing a wall. Mostly because I dont know the terms to express what i'm trying to do. I can select a row all day long but I seem to be stuck on the same row. I need to be able to select data from further down the col...
2018/02/27
1,368
4,698
<issue_start>username_0: I am creating a deep convolutional neural network for pixel-wise classification. I am using adam optimizer, softmax with cross entropy. [Github Repository](https://github.com/dhasl002/Research-DeepLearning) I asked a similar question found [here](https://stackoverflow.com/questions/48600374/...
2018/02/27
2,085
9,657
<issue_start>username_0: I am using camera kit library for my app. When I get the picture call back, I convert the byte array to bitmap and try to pass it to the next activity like this: ``` ab_capture.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { ...
2018/02/27
1,111
3,846
<issue_start>username_0: I am trying to take entries from a Forms Plugin and reformat the results into a more usable format for front end viewing. I believe that I can do this with a pivot but I can not figure it out from the examples provided. As a Side note the datatbase includes entries from a number of different fo...
2018/02/27
906
3,239
<issue_start>username_0: I have a button in material-ui like this: ``` CREATE NEW GROUP ``` What I want is to click on the button and then go to another page inside my app, I'm new to React so I'm playing with basic stuff so I have no clue on how to do it. Now I go to localhost:3000/ so when I click on the button ...
2018/02/27
863
2,981
<issue_start>username_0: I have developed an Angular4 appln that calls a nodeExpressJS server to fetch JSON data and also adds data to the JSON object. The following is the onSubmit function of the addemployeeform. ``` onSubmit(formValue: any) { console.log("Form Value = " + JSON.stringify(formValue, null, 4)); ...
2018/02/27
787
2,937
<issue_start>username_0: I am trying automate testing using Karate. I have a XML payload. I have a static XML payload which I am readying from a file and I want to call my service in loop. For each call I would like to replace value for a tag name dynamically. How would I achieve this? e.g. Below is my Main Featu...
2018/02/27
1,250
4,639
<issue_start>username_0: I'm new to Java and currently I'm learning constructor. So I have a `Person` class ``` class Person { private String name; private double height; Person(String name, double height) { this.name = name; this.height = height; } } ``` and a `Book` class ``` pub...
2018/02/27
1,202
4,514
<issue_start>username_0: I am in the process of converting a large flash application to canvas using Typescript and I am having trouble using classes to extend library objects. Using a class library for buttons, ``` class BtnClass { constructor(el: createjs.MovieClip) { el.addEventListener("mouseover", M...
2018/02/27
1,060
3,856
<issue_start>username_0: I'm trying to create a webapp in azure using VSTS as the source controls. I have this: ``` "properties": { "repoUrl": "https://clt-8601add0-7378-4c18-839d-8c46ac1cdd98.visualstudio.com/ResourceManagerTest/_git/[ProjectName]", "branch": "master", "isManualIntegration": true } ``` ...
2018/02/27
648
2,204
<issue_start>username_0: I'm currently migrating a Wordpress blog to Contentful. During that migration I want to transform urls, e.g. `https://www.youtube.com/watch?v=psil6MKUXeE`, into embeds. Let's say I got this text: ``` Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invid...
2018/02/27
472
1,594
<issue_start>username_0: I am trying to do a nested select query but I keep getting the same error saying that every table must have its own alias. ``` SELECT Sum(SumOfASSIGN_HOURS) AS SumOfSumOfASSIGN_HOURS, Sum(SumOfASSIGN_CHARGE) AS SumOfSumOfASSIGN_CHARGE FROM ( SELECT ASSIGNMENT.PROJ_NUM, SUM(ASSIGNMENT.A...
2018/02/27
764
1,581
<issue_start>username_0: ``` import numpy as np A= array([[ 1, 2, 3, 4, 5, 6, 7, 8], [ 9, 10, 11, 12, 13, 14, 15, 16], [17, 18, 19, 20, 21, 22, 23, 24], [25, 26, 27, 28, 29, 30, 31, 32], [33, 34, 35, 36, 37, 38, 39, 40], [41, 42, 43, 44, 45...
2018/02/27
558
1,857
<issue_start>username_0: I have a dynamic that I'm using to select filters based on a select menu, but I don't want the option to appear if the records I want to return don't apply. Examples: Cats have the middle option available: ![Cats have the middle option available](https://i.stack.imgur.com/cjsYK.png) But ...
2018/02/27
880
3,094
<issue_start>username_0: I am using React with the [Material UI](http://www.material-ui.com/#/) library, and have the following component hierarchy: ``` ``` My issue is that the Snackbar shows up underneath the LoginModal, even when its zIndex is increased to `9999`. [![enter image description here](https://i.stac...
2018/02/27
829
2,938
<issue_start>username_0: I want to have a collection view of following sample. But not able to figure out how can I implement it the way it is. It has 3 columns in first section and 2 columns in second section. [![enter image description here](https://i.stack.imgur.com/vrQlZ.jpg)](https://i.stack.imgur.com/vrQlZ.jpg)...
2018/02/27
682
2,420
<issue_start>username_0: I had saved date in server database as timestamp. Then I am converting timestamp to date using below code ``` completeDate : new Date(timestamp); It shows date : Wed Feb 28 2018 00:35:06 GMT+0530 (IST) ``` But When i try to set in ion-datetime. it throws error ``` ``` **Error parsing da...
2018/02/27
992
3,285
<issue_start>username_0: I have developed an android application which provides text to speech functionality. I have used below code syntax to set indian accent : ``` public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { int result; Locale locale = new Locale("en","IN"); if...
2018/02/27
830
2,601
<issue_start>username_0: While referring a C++ code written by someone else in CodeChef for a particular problem I found a new way(at least for me) of writing a conditional statement like this: `if (n & 1 << b)`. The entire code snippet(a function) is as follows: ``` int Solve(int tim, int n) { if (tim < 0) ...
2018/02/27
643
2,347
<issue_start>username_0: I am trying to run select statement within case statement in Unix Shell script, but getting unexpected end of file error. I want to run particular select statement depending on the output of previous sql script ran in shell script. The output from previous sql script is spooled to a log, requir...
2018/02/27
3,532
9,876
<issue_start>username_0: In the homework for day one of [<NAME> Introduction to x86 Assembly](http://www.opensecuritytraining.info/IntroX86.html) hosted on [OpenSecurityTraining](http://www.opensecuritytraining.info/), he assigns, > > ***Instructions we now know(24)*** > > > NOP > PUSH/POP > CALL/RET > MOV/LEA >...
2018/02/27
726
2,179
<issue_start>username_0: If I have a list as such: ``` arr = [ ["Hi ", "My ", "Name "], ["Is ", "Sally. ", "Born "], [3, 13, 2010] ] ``` How would you get that in a single string that states ``` H, My Name Is Sally. Born 3 13 2010 ``` Is there a simpler way than ``` example = "" f...
2018/02/27
785
2,553
<issue_start>username_0: I have a dataframe of unique strings and I want to find the row and column for a given string. I want these values because I'll be eventually exporting this dataframe to an excel spreadsheet. The easiest way I've found so far to get these values is the follwing: ``` jnames = list(df.iloc[0].to...
2018/02/27
1,630
5,214
<issue_start>username_0: I am working on a school project, basically I have to create a lock system that opens a fictive gate when the correct code is entered. We have been asked to simulate our system before actually building it. So, I made the following circuit in Proteus(Labcenter Electronics' simulation software): ...
2018/02/27
8,303
25,875
<issue_start>username_0: I am complete beginner to assembly, and graphics, any help would be appreciated. I got the svga info, but when i print it, it won't print anything. If anyone can explain why that would be great. Here is the code. If there is anymore explanations needed for what I have done let me know ``` .MOD...
2018/02/27
720
2,201
<issue_start>username_0: I'm doing some clustering which results in a list of strings like this: ``` ['5-3-2', '5-3-2', '4-3-2-1', ...] ``` I want to plot a bar chart based on the frequency of the strings. Is there an easy way to do this? I think I could identify the unique elements in the list and count them, but m...
2018/02/27
1,359
5,860
<issue_start>username_0: I have two CPU-intensive methods inside a `Parallel.Invoke` call: ``` Parallel.Invoke( () => { GetMaxRateDict(tradeOffObj); }, () => { GetMinRateDict(tradeOffObj); } ); ``` For a MCVE, assume: ``` public void GetMaxRateDict(object junk) { throw new Exception("Max exception raise...
2018/02/27
1,329
5,347
<issue_start>username_0: I'm developing a simple game for a university project using **Unity**. This game makes use of machine learning, so I need **TensorFlow** in order to build a Neural Network (NN) to accomplish certain actions in the game depending on the prediction of the NN. In particular my learning approach i...
2018/02/27
1,524
6,745
<issue_start>username_0: I wrote an android program that detects if the room is noisy or quite. But whenever I rotate the phone , the text message and image won't get updated any more and the noise decibel is printed - infinity and its correct value. I think that the every time I rotate the phone a new thread being cre...
2018/02/27
2,374
9,372
<issue_start>username_0: Whats the difference between these two approaches for performing Left Outer Join with LINQ, for both I am using two lists of Buyers and Suppliers, and joining them by a common district to find the suppliers and buyers that are in the same district. ``` class Supplier { public string Name {...
2018/02/27
2,143
8,512
<issue_start>username_0: I'm trying to manipulate the result of a multi level category tree that dynamically gives me an array of objects that looks like this: ``` Array( [0] => stdClass Object ( [id] => 1 [children] => Array ( [0] => stdClass Object ...
2018/02/27
1,520
5,683
<issue_start>username_0: I'm trying to change the size of my frames in [tkinter](/questions/tagged/tkinter "show questions tagged 'tkinter'"); I'm using python 3.0 and I'm creating an inventory management type thing for a school project. This is the code I have right now, and I'm trying to edit the dimensions of the fr...
2018/02/27
1,497
5,371
<issue_start>username_0: I've looked through the docs on the website but there are no examples how to use the google translation api with a react project. Does anyone know how to integrate this so I can just make a simple translation call to the API? Thanks<issue_comment>username_1: So with Gregory's help to realize g...
2018/02/27
1,925
6,346
<issue_start>username_0: This is the problem. [![enter image description here](https://i.stack.imgur.com/mCIyV.png)](https://i.stack.imgur.com/mCIyV.png) I want those `Mobile` and `brand names` one under the other. ```css * { padding: 0px; margin: 0px; } .Heading { font-family: tahoma; width: auto; ...
2018/02/27
1,280
4,674
<issue_start>username_0: I am confused about adding the correct support libraries in Android Studio to be able to use AutoSizing TextViews. <https://developer.android.com/guide/topics/ui/look-and-feel/autosizing-textview.html> The description of what support libraries to use is kind of vague on this page. I have tri...
2018/02/27
556
1,861
<issue_start>username_0: I would like to print each closed trade's profit/loss to MetaTrader 5's "Expert" window... ``` void OnTrade() { HistorySelect(0,TimeCurrent()); int trades_total = HistoryDealsTotal(); ulong ticket=HistoryDealGetTicket(trades_total-1); long deal_type=HistoryDealGetInteger(ticket,DEAL_...
2018/02/27
1,424
3,459
<issue_start>username_0: ``` type(Table) pandas.core.frame.DataFrame Table ======= ======= ======= Column1 Column2 Column3 0 23 1 1 5 2 1 2 3 1 19 5 2 56 1 2 22 2 3 2 4 3 14 5 4 59 1 5 44 1 5 1 ...
2018/02/27
913
3,067
<issue_start>username_0: I've got an array as below: ``` return { address: 'London' telephone: '0044 345 6576 543422' items: [ {active: true, text: 'Company address: xyz, other info1'}, {active: true, text: 'Company telephone: xyz, other info2,'}, {active: true, text: 'text3'}, {active...
2018/02/27
412
1,339
<issue_start>username_0: I'm trying to use for-comprehension for the following: ``` val s: Seq[Option[Int]] = //... val t: Option[Int] = //... s.map(sv => t.flatMap(tv => sv.map(_ == tv))) ``` I tried this: ``` val r: Seq[Option[Boolean]] = for( sv <- s; tv <- t; svv <- sv ) yield svv == tv //Seq[Boolean] d...
2018/02/27
323
1,183
<issue_start>username_0: I have a table called `messages` which contains IM records between the senders and the recipients. The 4 fields are: Date, Timestamp Senderid, Recipientid. How do I find the percentage of messages sent that received a response within a minute?<issue_comment>username_1: Using different colle...
2018/02/27
883
2,875
<issue_start>username_0: I want to iterate through a list of key value pairs as efficiently as possible. The aim is to iterate through the data set to find the key value pair containing the key corresponding to the code I'm trying to find, this is nested in another for loop which is iterating through a set of codes. my...
2018/02/27
145
578
<issue_start>username_0: We have a Common Java Library for to be use in both Android and IOS .. In Android It Is common But When It Comes to IOS is there any way to use Java Library In my project.. Please help If you have any Ideas.<issue_comment>username_1: You cannot use a java library in a swift application, but you...
2018/02/27
133
494
<issue_start>username_0: What is the correct way to listen on keypress events from the Xbox gamepad? Buzzwords: UWP, HTML/CSS/JS, React, Typescript<issue_comment>username_1: You cannot use a java library in a swift application, but you can use a java to swift converter to convert your java library to a swift library. ...
2018/02/27
537
1,936
<issue_start>username_0: We have 3 stages on our API Gateway (Development, Testing, Production) they use a Cognito User Pool Authorizer for authorization, each one of the stages has a different User Pool so this configuration must be dynamic. The problem: How do i configure the Auhtorizer for my API so that each API s...
2018/02/27
1,150
4,158
<issue_start>username_0: I want to create this obstacle in red color in Java [![enter image description here](https://i.stack.imgur.com/d9f82.jpg)](https://i.stack.imgur.com/d9f82.jpg) ``` class Grid extends JFrame{ public Grid(){ setResizable(false); setDefaultCloseOperation(EXIT_ON_CLOSE); ...
2018/02/27
924
3,311
<issue_start>username_0: I'm trying to make a box with a title and 2 arrows left and right of the title. When you click on either arrow, the box should fade out and the next one should fade in. I have another one like this on my page with 2 option (send and go back) and that one works fine, but for some reason it break...
2018/02/27
731
2,664
<issue_start>username_0: I am trying to direct the page to specific coordinate when a href is clicked. Here is my attempt so far: ```js $("#link").click(fuction(){ $("body").position("top", "1000":"left","0") }) ``` ```html click here ```<issue_comment>username_1: Your only problem is that you are not assignin...
2018/02/27
971
3,535
<issue_start>username_0: I have little to no experience of JavaScript but I do know that the getElementID only carries one value so how can I have 2 values passed? Can I use it twice like I have down below or would I be better to use another GetElementBy/GetElementsBy method to do it? ```js $(document).ready(functio...
2018/02/27
3,544
12,147
<issue_start>username_0: On firemonkey `TBitmap` is `Fmx.graphics.TBitmap` but on VCL it's `VCL.graphics.Tbitmap`. Their interface are very similar, and i want to create **for example** this function ``` function resizeBitmap(const aBitmap: Tbitmap; const w, h: integer); ``` As the code in `resizeBitmap` will be exa...
2018/02/27
1,738
6,120
<issue_start>username_0: I'm, trying to implement column sorting on cell data that contains custom HTML, so I'm presuming that I need to implement a custom function to override the normal sorting routine and point it to the raw values rather than the HTML rendered output. I'm not able to gather from the ag-grid docume...
2018/02/27
524
2,067
<issue_start>username_0: Is there any way to iterate through a XDocument when you dont know what the XML structure is (using c#)? There is plenty of examples when you know the structure, like the answer to this question : [C# - Select XML Descendants with Linq](https://stackoverflow.com/questions/1439346/c-sharp-select...
2018/02/27
829
3,124
<issue_start>username_0: This question is essentially the same as question [44799104](https://stackoverflow.com/questions/44799104/can-not-display-deployed-cloud-function-in-firebase-console?rq=1), only that I provide my index.js (and the only answer there was not helpful, as I do include 'exports'). In short, I have ...
2018/02/27
1,289
4,873
<issue_start>username_0: I am running the following powershell command in a build step using TFS 2018. ``` Start-Job -ScriptBlock { Invoke-Command -FilePath \\MyServer\run.ps1 -ComputerName MyServer -ArgumentList arg1, arg2 } ``` Since I don't want the script to affect the build step it should simply fire and fo...
2018/02/27
891
2,764
<issue_start>username_0: Im dynamically rendering a V-select in my vue-app by a computed property in my component, but my select is populated with [object Object] instead of the values. How can I set the name-property? Am I doing this wrong? The dropdown is its own component: ``` export default { name: 'companydrop...
2018/02/27
444
1,586
<issue_start>username_0: So I have 2 Models Users & Staff. They have one to one relationship with one another. User.php 'hasOne' Staff AND Staff.php 'belongsTo' User When I Soft Delete a User I want to soft delete Staff entry as well, I have achieved this using(Works Perfectly): ``` static::deleting(function ($use...
2018/02/27
485
1,914
<issue_start>username_0: I can't find a reason why the following code is not working: ``` var nav = document.getElementById("nav").style.visibility; if (nav === "" || nav === "hidden") nav = "visible"; else nav = "hidden"; ``` Can someone explain me why I cannot change `nav` in the if..else?<issue_comment>us...
2018/02/27
764
2,247
<issue_start>username_0: Whenever I try to run `npm install` on my app, I get the following error: ``` Eliyas-MacBook-Pro:app-name root# npm install npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone -q https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git /var/root/.npm/_cacache/tmp/git-clone-313...
2018/02/27
350
1,484
<issue_start>username_0: I'm using @RabbitListener annotation and SimpleRabbitListenerContainerFactory bean for parallel execution of rabbitmq messages and setting the min and max concurrent consumers in the following way : ``` @Bean public SimpleRabbitListenerContainerFactory rabbitListenerContainerFactory() { S...
2018/02/27
1,086
4,733
<issue_start>username_0: If a header file is just a piece of code that gets pasted onto another when I use `#include` then what is stopping me from programming in C using only .h files? You can even `#include` into other header files! I assume there must be some performance or workflow reason why this isn't more commo...
2018/02/27
1,139
4,425
<issue_start>username_0: I'm having issues with getting ALL elements of an array to fall using the Gravity module. I have managed to get the LAST element in the array to fall and then the remaining elements just stay at the top of the screen during testing. Upon debugging I am using UIKit and want to understand this l...
2018/02/27
613
2,130
<issue_start>username_0: I created a new environment and installed some packages in Anaconda prompt: ``` conda create -n webscap requests scrapy lxml selenium html5lib pandas activate webscap conda config --env --add channels conda-forge conda install -n webscap beautifulsoup4 ``` I can see the selenium is install...
2018/02/27
940
3,026
<issue_start>username_0: I'm beginner with Angular and I try to make some exercise. I have 2 components, one for getting text and one for display this text. I have got service and everything works fine when I'm using button to trigger function to change text. What I want to make, is to change text without clicking butt...
2018/02/27
978
4,551
<issue_start>username_0: I know it's a very old question but even after referring a lot of solutions nothing could solve my issue . Actually I'm trying to remove items of recyclerview on `longclick` but I'm getting following error . By the way I'm not getting any error while deleting the last item but when I'm trying ...
2018/02/27
180
651
<issue_start>username_0: I have been using StarUML, and I'm creating an activity diagram but I want to add a new line inside an action node, How would I do that?<issue_comment>username_1: You can't create a new line with Return but you can `format` the `Node`. `CTRL`+`Shift`+`W` or `Format->Word Wrap` in the `ContextM...
2018/02/27
4,193
6,569
<issue_start>username_0: I'm trying to search through some logs while grepping for a specific line. How can I reduce the following logs even further by date and time? For example all lines between 2018/02/27 13:10:31 to 2018/02/27 13:17:34. I've tried using sed but I can't get it to work correctly on either date column...
2018/02/27
2,519
5,251
<issue_start>username_0: I have a dataset organized this way: ``` ID Species DateTime P1 A 2015-03-16 18:42:00 P2 A 2015-03-16 19:34:00 P3 A 2015-03-16 19:58:00 P4 A 2015-03-16 21:02:00 P5 B 2015-03-16 21:18:00 P6 A 2015-03-16 ...
2018/02/27
2,229
5,123
<issue_start>username_0: I'm attempting to create a relational database for a tech company who perform sales, leases and offer support. I must store data for each of these, but the items that they are selling have the potential to be hardware or software based. This means that for sales that relate to hardware, a deliv...
2018/02/27
522
1,602
<issue_start>username_0: I would need to print the boolean value (true or false) with the proper alignment formatting in python. May be this question is silly, but it is important to me. ``` #!/usr/bin/python dup_list=[{"status": True, "set": False}, { "status": True, "set": False}] fmt = "{} {}" print fmt.format("e...
2018/02/27
657
2,156
<issue_start>username_0: I'm looking to insert a new blank row after every instance of HDR in the sheet. I cannot figure out how to make the code move beyond the first instance to continue through the rest of the sheet. ``` Sub NewRowInsert() Dim SearchText As String Dim GCell As Range SearchText = "HDR...
2018/02/27
798
2,516
<issue_start>username_0: Week ago I finished my code for a text adventure using functions `fgets(STDIN)` which is working through command line. Now I need to do the same this using html(Internetbrowser) and here comes the problem. I don't know how I should replace this: ``` $choose=0; while($choose!=1 && $choose!=2 &...
2018/02/27
767
2,528
<issue_start>username_0: I'm getting error: > > Error converting data type varchar to numeric. > > > when I tried to updated object in SQL server (Microsoft). I can see that query looks like: ``` update TABLE set ORDER_NUMBER=?, where IDENTIFIER=? ``` What I think is problem with IDENTIFIER. It's ...
2018/02/27
1,226
3,670
<issue_start>username_0: I am trying to avoid string interpolating my `joins` in Rails because I've noticed a decrease in flexibility when chaining queriers together. That is, I feel that `joins(:table1)` is much more flexible than `joins('inner join table1 on table1.id = this_table.table1_id')`. What I would like t...
2018/02/27
833
2,344
<issue_start>username_0: What is the name of the technique where there is a conditional is used in an index for a list but the variable in the conditional is a list itself? As you can see `a` is a list but it is used to check for corresponding elements in the list `b`. ``` >>> a = [ 1, 2, 3] >>> b = [7, 7,7] >>> b[a...
2018/02/27
602
2,292
<issue_start>username_0: I'm fairly new to Java8. I have a requirement to subtract/remove POJOs in one list based on certain criteria (from another list) and show it on UI. Iterate one list and search for condition Remove the object Send the original list to UI ``` Children.java private String firstName; private Stri...
2018/02/27
625
1,728
<issue_start>username_0: how to effectivly iterate matrix? I must be able to get rows and columns names. My current code (**it works**): ``` m <- matrix(1:9,3,3,FALSE,dimnames = list(c("x1","x2","x3"),c("y1","y2","y3"))) for(row in 1:nrow(m)) { for(col in 1:ncol(m)) { print(paste( dimnames(m)[[1]][row]...
2018/02/27
547
1,627
<issue_start>username_0: ![This is how my database looks like.](https://i.stack.imgur.com/JOPS3.jpg) Since I am new to firebase, please help me with this. The problem here is that email is a part of another key called user\_profile that exits under the uid(which acts as a key) of the user.<issue_comment>username_1: Yo...
2018/02/27
904
2,626
<issue_start>username_0: I'm aware that Carbon has weekend related functions, but that doesn't seems to work in my case. I want to find the weekend duration in hour/minutes. For example the weekend starts after 12:00 Friday and ends at 22:30 Sunday. And the inputs be like : ``` $start_date_time = new Carbon('2018-...
2018/02/27
1,298
2,804
<issue_start>username_0: I am trying to make a comparasion or ( matching ) using preg\_match and other helpful stuff ... I had this Array: ``` $ids = array("93215018" ,"93215019" ,"93215020" ,"93215022" ,"93215025" ,"93215040" ,"93215050","93215079" ,"93215070" ,"93215021" ,"93935018" ,"93935019" ,"93935020" ,"9393...
2018/02/27
2,178
4,449
<issue_start>username_0: I have a tabular file with 6 columns. What I need to do, is to add a 7th column that counts the occurrence of the value from the column 3. I did it with Excel, adding the formula ``` =countif(C:C,$C1) ``` But the files are huge, and I have lots of them For example: My input is this one: ...
2018/02/27
1,113
2,741
<issue_start>username_0: I have an oracle database which contains data like employee number, employee's supervisor's employee number, employee name. I'm looking to extract data from this table in a way such that if I'm selecting the name of the employee and the employee's supervisor's employee number, then how do I g...
2018/02/27
1,094
4,477
<issue_start>username_0: I don't know whyreact-select is clearing what I am typing after the second or third character. Based on my log the state had been updated correctly. I am thinking it could be that the operations happen async but even if that were the case after the update I would expect the text on the select t...
2018/02/27
1,620
6,179
<issue_start>username_0: I'm a beginner in web development and I have a problem. When I open the devtools I have a JS script that appears when I'm on any site and even on those I develop. I did an antivirus scan, I search everywhere and only you can help me find the solution. I made a screen to show you it's its locati...
2018/02/27
383
1,290
<issue_start>username_0: I have tried to resolve by adding missing/unnecessary jar's but nothing works for me. if you know how to resolve this issue then kindly help... Thank you in advance. [![Code IDE ERROR](https://i.stack.imgur.com/NOxHR.png)](https://i.stack.imgur.com/NOxHR.png) I am using JDK 9.0.4 installed in...
2018/02/27
3,582
14,699
<issue_start>username_0: I need help migrating the following code from webpack 3 to 4. ``` new webpack.optimize.CommonsChunkPlugin({ minChunks: module => module.context && module.context.indexOf("node_modules") !== -1, name: "vendor", chunks: ["main"] }) ``` I have two entry files and want only the depen...
2018/02/27
462
1,748
<issue_start>username_0: The default appears to be the timestamp at which the event came into Azure; however, I'd like to plot based on a different timestamp. Is there a way to easily change this from the Time Series Insights dashboard?<issue_comment>username_1: The only solution I know, is to set the TimeStamp propert...
2018/02/27
713
2,678
<issue_start>username_0: I want to change my button text dynamically using c# in asp.net. I also tried dynamic javascript alert popup, however it also shows after mail sent. Currently i have; ``` protected void btnSend_Click(object sender, EventArgs e) { btnSend.Text = "Sending.."; // Changing Button tex...
2018/02/27
767
2,870
<issue_start>username_0: I'm trying to play `.mp3` file from `ListView` I have tried following but its not working ``` public static class FirstFragment extends Fragment { private MediaPlayer mp; View myView; private String[] theNamesOfFiles; @Nullable @Override public View onCreateView(Layout...
2018/02/27
1,542
3,374
<issue_start>username_0: ``` let arr = [ { id: 100, name: 'bmw' }, { id: 101, name" 'porsche' } ]; let selected = [{id: 100}]; ``` What is the Ramda way of getting a filtered list F based on the inputs (list, selected)?<issue_comment>username_1: My take would be to break it down into a few parts. ``` // a funct...
2018/02/27
4,706
12,774
<issue_start>username_0: I have followed this [tutorial](https://blog.kublr.com/how-to-install-a-single-master-kubernetes-k8s-cluster-34ec16efefff) and this [tutorial](https://blog.alexellis.io/kubernetes-in-10-minutes/) and [this one](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/) but am facing ...
2018/02/27
2,045
7,659
<issue_start>username_0: I'm having issues with the new CAF receiver not registering the YouTube iframe player as a player, and that it is playing. After 5 minutes connected to the receiver, the connection is broken because it thinks that the player is idle. This is the sender-code ``` var metadata = new chrome.cast...
2018/02/27
712
2,202
<issue_start>username_0: I'm kind of a rookie in python so sorry in advance if I'll raise trivial questions. I need to create a DataFrame from existing one. my new df will take input from the user and should return a specific new data frame. In my raw data, I have 5 columns of stock info : 'open', 'close', 'high', 'lo...
2018/02/27
628
2,261
<issue_start>username_0: I'm looping through files in a directory and storing the file details to an array `data`. The following code populates the array if I don't attempt to run `fs.stat` to get things like the file create/edit date: ``` fs.readdir('../src/templates', function (err, files) { if (err) { ...
2018/02/27
1,729
5,909
<issue_start>username_0: I am new to programming. I would like to call from functions(first, second, third the variables in function "enter" and in function "math" accordingly). ``` #include #include #include void math (void); void first (void); void second (void); void third (void); void enter(void); void scan(vo...
2018/02/27
815
3,306
<issue_start>username_0: I'm trying to add a vendored framework built with Kotlin/Native in a private CocoaPod but I get an error: * I have generated an iOS framework with Kotlin/Native. * I copy the framework folder (compiled/generated by Konan) into my custom pod folder * In the podspec, I add the framework path in ...
2018/02/27
572
1,747
<issue_start>username_0: given the following array: ``` arr=("hello hello" "bye bye") ``` How can I print any element from `arr` to stdout? I tried to do it by the next way: ``` for line in ${arr[*]}; do echo ${line} done ``` But in this state, the output is: hello hello bye bye And I want t...
2018/02/27
552
2,152
<issue_start>username_0: I'm not really sure how to word this.For some reason when I install an app that I'm working on from Android Studio it runs very slow (when an option is pressed it takes 10-20 seconds to register). But if I install the app from either my coworkers Android studio or adb from my own machine it wor...