date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/17
672
2,366
<issue_start>username_0: I'm building a personal project with React and TypeScript to learn the ropes, and I'm stuck with a strange (to me) error on the following block, where I use Axios to fetch some data: ``` const fetchItem = async () => { const response = await axios .get("http://localhost:4000/items?id=2")...
2018/03/17
608
2,761
<issue_start>username_0: I am working on LINQ query where I need all the questions where each question may or may not have sub-question. I am getting group by null/ exception issue as some parent question doesn't have child question. I am doing left join followed; group by parent question ``` (from question in Conte...
2018/03/17
522
2,252
<issue_start>username_0: I want assign the data which is retrieve from database (sqlit3) particular column for a variable and call that variable for **word tokenize**. please help with this I know tokenize part but I want to know how to assign the db value to a variable in python.<issue_comment>username_1: found the a...
2018/03/17
575
2,072
<issue_start>username_0: I am learning React and I have already created a few apps with CRA. I haven't found a good and easy way to include sass on my react projects so I came up with this: `install node-sass on the src folder` add this to the `package.json`: `"node:sass": "node-sass src/index.scss src/index.css -w...
2018/03/17
790
2,642
<issue_start>username_0: I wondering why my first `if` statement returns `Error` when my input data is an object of class `numeric`? I have clearly stated for the first `if` statement to only turn on IF the data `class` is `"data.frame"`, but when data class is `numeric`, this first `if` statement return an error! am ...
2018/03/17
373
1,458
<issue_start>username_0: I was creating some kind of base system for internal project, I was implementing a custom form system using OOP approach as I am using TypeScript. ``` class Form extends React.Component {} abstract class FormElement extends React.Component<{validations?:ValidationLogic[]}> { validate(); ...
2018/03/17
2,262
7,673
<issue_start>username_0: I just downloaded spark-2.3.0-bin-hadoop2.7.tgz. After downloading I followed the steps mentioned here [pyspark installation for windows 10](http://deelesh.github.io/pyspark-windows.html).I used the comment bin\pyspark to run the spark & got error message ``` The system cannot find the path s...
2018/03/17
871
2,754
<issue_start>username_0: I am still learning xpath and I am trying to skip the first row of a table because the first row has no values. I am not having success i searched through stack over flow and could not find anyone with a similar issue. My code is below: ``` int reqIndex = 0; do { List payDate...
2018/03/17
2,044
8,080
<issue_start>username_0: I'm trying to build a simple flying game. I have two scenes- a Management scene to spawn GameManager and SceneController instances, and a Game scene that is loaded where the player can fly through some red gates. **Once the game scene is loaded additively, I add some gates to it. However, the ...
2018/03/17
1,611
4,620
<issue_start>username_0: ``` var y; function deci(y) { var res = ""; while (y != 1) { res = res + y % 2; y = y / 2; } return (1 + res); } ```<issue_comment>username_1: This to me looks like an endless loop. Try to modify the condition to y >= 1 ``` var y; function deci(y) { var res = ""; while...
2018/03/17
1,682
5,060
<issue_start>username_0: I have a form which allows the adding of possibly hundreds of different association types to a form. I'm using the cocoon gem's `link_to_add_association` but rendering 100's of links is very slow as they're populated with all the html required to add them. Is there any way to dynamically create...
2018/03/17
604
1,919
<issue_start>username_0: So I have various UI components of varying dimensions, which I am putting up together in a page. I want to arrange them horizontally in a grid, where each row should be equal to the height of the component which has the maximum height in that row. There are no fixed number of columns for each r...
2018/03/17
524
1,773
<issue_start>username_0: I need to run the server like I simply do with: `npm run start` but I need to use the production mode. Is this possible? In ember or angular it is possible. How to do in `create-react-app`? I tried `npm run start --prod` but nothing.<issue_comment>username_1: Yes you can run `npm start` com...
2018/03/17
198
741
<issue_start>username_0: I am working on an Angular 4 project and using Arabic and English language, so I want to switch template from LTR to RTL based on language. I use a bootstrap, how to handle rtl.css files?<issue_comment>username_1: You should use the [Angular CDK bidirectionnal](https://material.angular.io/cdk/b...
2018/03/17
519
1,953
<issue_start>username_0: Why does `Console` show type `B` not `A`, even though `a2` was assigned to `new B()`? I cannot understand exactly what happens in `A a2 = new B()`. ``` class A { } class B : A { } ... A a1 = new A(); A a2 = new B(); Console.WriteLine(a2.GetType()); ```<issue_comment>username_1: Because yo...
2018/03/17
602
2,209
<issue_start>username_0: Hi guys i have been trying to find out how i can count each time a person has been entered in a database, i have duplicates in the same day so i need help with the code to just count 1 entry in a specific date eg below, i just want to count ID 56 once in the specific Date. ``` ++++++++++++++++...
2018/03/17
719
2,918
<issue_start>username_0: Let's say I'm building a shopping app and one of the features it has is to give users the ability to browse a category of items. While browsing the items, the user can store the items into their own lists (like Amazon's wish list feature). Therefore, I have a component called `item` which shows...
2018/03/17
604
2,205
<issue_start>username_0: I can't figure out how to wrap a GLib.Array in a GLib.Value. I tried this code. ``` public int main (string[] args) { var value = Value(typeof (Array)); var a = new Array(); a.append\_val("test"); value.set\_object((Object) a); return 0; } ``` But it resulted in these errors. ``` ...
2018/03/17
516
1,974
<issue_start>username_0: Is there Any way to KILL/EXIT/CLOSE VI and ATOM from a running script example script, test.sh: EDITOR1=vi EDITOR2=atom $EDITOR1 helloWorld.txt $EDITOR2 file1.txt kill $EDITOR1 kill $EITOR2 Is there any NOT Set way to kill it, I mean with a variable fore example the Filename.<issue_comment>u...
2018/03/17
636
2,024
<issue_start>username_0: I've created a `Header.php` file in the root directory. Below is the tree structure. ``` -SiteName -Header.php -Books -Samples -Math -MathBook.php -index.php -About.php ``` So MathBook.php includes Header.php like below ``` include '../../../Header.php'; ``` Head...
2018/03/17
813
3,204
<issue_start>username_0: I am integrating SNS and Slack. I have created a slack app with incoming webhook enabled. I have got the webhook URL. I created a subscription for a SNS Topic with HTTPS protocol and set the Endpoint the webhookURL. Now the subscription is PendingConfirmation. I didnot receive any confirmation ...
2018/03/17
778
3,017
<issue_start>username_0: **If method A calls method B, should you test method B before testing method A in JUnit?** I think method A is the answer since method B depends on method A. What are your thoughts?<issue_comment>username_1: You have create a lambda function that receives SNS feedback and POST it to your webho...
2018/03/17
858
3,159
<issue_start>username_0: Why this doesnt work for me? I'm trying to select jobs that are performed by more than 2 employees in each billing unit (OJ). ``` select W.NAME as NAME, W.OJ as OJ, W.JOB as JOB, W.MONTHLY_PAY as MONTHLY_PAY , SUM(W.OJ) AS "SUM" from WORKER W WHERE W.OJ > 2 GROUP BY W.IME, W...
2018/03/17
1,220
4,483
<issue_start>username_0: I'm trying to get all the conversations ordered by it last message, but when I use the `order_by` clausule, the conversations are repeated. Query without order\_by: ``` conversaciones = Conversacion.objects.filter(usuarios=request.user) ``` Result (Grouped by Conversations but not ordered b...
2018/03/17
1,213
3,931
<issue_start>username_0: I have some text of the form: ``` This is some text, and here's some in "double quotes" "and here's a double quote:\" and some more", "text that follows" ``` The text contains strings within double quotes, as can be seen above. A double quoted may be escaped with a backslash (`\`). In the ab...
2018/03/17
872
1,985
<issue_start>username_0: I often need to pluck properties out of an object ``` const obj = {a:1, b: 2, c: 3}; const plucked = pluck(obj, 'a', 'b'); // {a: 1, b:2} ``` However, this is not easy to do in TypeScript if you want type safety because I can't implement a function with the following signature in TypeScript,...
2018/03/17
718
1,512
<issue_start>username_0: ``` var a = "gsdgtrshghf"; function reverseString(strr){ if (!strr.length){ var result=""; for(var i=strr.length;i>0;i++){ var a=strr.chatAt(i); result+=a; } }return result; } console.log(reverseString(a)) ``` Whe...
2018/03/17
917
2,545
<issue_start>username_0: In the following JSON data, I want to access `'lon'` and `'lat'` in `'coord'`. I know `data.coord` would give me `[ 'lon', 'lat' ]`, but how can I get the values belonging to each? Here's my JSON data: ``` var data = { "coord": { "lon": 159, "lat": 35 }, ... }; ``...
2018/03/17
724
2,664
<issue_start>username_0: I have 3 entities: Tutors, Students, Courses Tutors teach many courses Students can be assigned to many courses that are taught by many tutors Tutors and students need to be able to log into the system I would like to represent this design using the following tables: ``` users - id - usern...
2018/03/17
407
1,472
<issue_start>username_0: We are having projects created with aws codestar. these were working fine. but from today we are facing following issue: > > Unable to upload artifact None referenced by CodeUri parameter of GetCompanyRecords resource. > > > zip does not support timestamps before 1980 > > > Now when i r...
2018/03/17
290
1,018
<issue_start>username_0: i have a list of names that return from my controler, this list return a array string from my mongodb database.I try pass this list to a list javascript. My javascript code until now: ```html var listNames = []; @foreach(var itens in @Model.ListaNames){ listNames .push(itens.name); ...
2018/03/17
2,000
7,972
<issue_start>username_0: I have done a javascript form validation using the following code.I'm not sure whether it is the correct way of validating form. ``` const signup=()=>{ let name=document.querySelector("#u_name").value; let email=document.querySelector("#email_id").value; let password=document.query...
2018/03/17
581
2,176
<issue_start>username_0: When I return encrypted or decrypted string in Base64 format it can`t resolve`BASE64Encoder()`and`BASE64Dencoder()`. How can I resolve it? ``` import javax.crypto.*; import java.io.*; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; class DesEncrypter {...
2018/03/17
453
1,674
<issue_start>username_0: I'm trying to understand how the code below, which is from Redux examples [TODOMVC](https://github.com/reactjs/redux/blob/master/examples/todomvc/src/containers/App.js), can be written using the class notation. The code is ``` const App = ({todos, actions}) => ( ``` I tried the following b...
2018/03/17
418
1,733
<issue_start>username_0: I have a meteor project that runs a python script once a day to query an API and save the results to a JSON file in `private`. The meteor server watches that JSON file for changes. When the file changes, the server reads and parses the file and updates a collection accordingly. The problem is ...
2018/03/17
673
2,290
<issue_start>username_0: Whenever I try to run my discord.js bot, my code editor says that it couldn't connect to discord via discord RPC. I've looked around and saw nothing that can help me. Can anyone help?<issue_comment>username_1: Discord just had an outage. You can follow up Discord Updates [here](https://statu...
2018/03/17
794
2,854
<issue_start>username_0: hello i am trying to make a countdown which refreshes the page when the countdown finished however the timer is not refreshing page when countdown ends it start more counting in clock wise for example the timer has to reload the page after 3 , 2 ,1 , but it goes like 3, 2, 1 , 1, 2 ,3 and so ...
2018/03/17
621
2,287
<issue_start>username_0: I'm wondering if this is a good or bad way of using pointers and new. I don't want to store more than I need, so therefore I make a buffer of 50 and the user write their username, and I use strlen to count it and store the length + 1. Do I have to delete username afterwards? Should I do this d...
2018/03/17
924
3,097
<issue_start>username_0: I'm using <https://github.com/sloria/cookiecutter-flask> for a project and I'm trying to add a javascript function to a js file that's bundled by webpack and access it from the html. I think I'm missing something basic. Source files for background: * <https://github.com/sloria/cookiecutter-f...
2018/03/17
907
3,215
<issue_start>username_0: Right now, I'm working with several lines that follow a format of [longitude, latitude] date time text and I'm not sure how to pull just the latitude and just the longitude. What I tried doing was splitting the overall file into lines (this part worked fine), then splitting the lines into word...
2018/03/17
780
2,352
<issue_start>username_0: I am trying to test if my API routes are working using nock.js to mock url requests. My routing file routes according to the following logic: ``` app.get('/api/study/load/:id', abc.loadStudy ); ``` 'loadStudy' method in 'abc.js' is used to handle the below particular GET request. Hence, an...
2018/03/17
1,326
4,846
<issue_start>username_0: I have a .NET Core 2.0 website, running on Linux, listening on port 5000, behind an NGinX reverse proxy, which is listening on port 80 and 442. NGinX is configured to redirect HTTP traffic to HTTPS, and handle all communication over HTTPS. The NGinx Reverse Proxy and Asp.Net Core app are within...
2018/03/17
1,789
5,962
<issue_start>username_0: I recentley started coding in C++ and I can't seem to understand how to ruturn the 2d array > > GridArray > > > Is the problem somewhere in the type of the method because I can't seem to resolve it. Any help would be much appriciated! ``` static int GridArray [15][20]; int MapEditor::u...
2018/03/17
1,513
4,192
<issue_start>username_0: I have created a container from httpd docker image via Dockerfile: ``` FROM httpd:2.4 COPY ./public-html/ /usr/local/apache2/htdocs/ ``` The public-html file contains just a simple html file: ``` # cat public-html/index.html Simple Page ``` Then I created the container: ``` # docker bu...
2018/03/17
416
1,346
<issue_start>username_0: I have some variables that are not part of the model attributes. for instance: my Model does have a function that generates a list of `decimal`. ``` List CreateValues(); ``` and I would like to render it as currency. ``` @{ var vals = Model.CreateValues(); } @for (var ...
2018/03/17
668
2,537
<issue_start>username_0: I'm using ASP.Net MVC with EF6, I want to enable user to send email for list of students by click on send button in View then the message will sent to each student in the list (students email address are stored in the list ). the user will enter his name, email and message, How to call Contact...
2018/03/17
823
3,115
<issue_start>username_0: Completely rewriting this question yet again to hopefully put the focus on the issue I'm trying to solve. We have the following class that, due to an external framework outside of our control, requires us to implement `ObjCProtocolRequiringBla`, like so... ``` class FooBase : NSObject, ObjCPr...
2018/03/17
914
3,237
<issue_start>username_0: I have three HTML form field values (name, saywords, mail) that I try to concat in php and write into one single txt file on my server: Each value should be on a new line in the txt field, as is why I added the "\n" in the array .... where's my error? Thanks a lot for any help! ``` $name = $...
2018/03/17
934
3,337
<issue_start>username_0: I wish prefill textarea field with my contents from the controller. It's work if I do : ``` {% for i in contents %} {{ i }} {% endfor %} ``` But I don't know how to do with : ``` $form = $this->createFormBuilder() ->add('textarea', TextareaType::class,[ 'data' => /...
2018/03/17
1,468
4,756
<issue_start>username_0: I need to read a file and put that data inside to different arrays. My .txt file looks like: ``` w1; 1 2 3 w2; 3 4 5 w3; 4 5 6 ``` I tried something like the following: ``` int[] w1 = new int [3]; int[] w2 = new int [3]; int[] w3 = new int [3]; string v = "w1:|w2:|w3:"; foreach (string li...
2018/03/17
1,276
4,151
<issue_start>username_0: Let's say I have a sorted array with [1,2,3,4,5], it should become a binary search tree with this array as its output: [4,2,5,1,3] (the brackets below represent the indices) ``` 4 (0) / \ 2 (1) 5 (2)...
2018/03/17
216
691
<issue_start>username_0: ``` Select * from [User] where [Date1] - [Date2] < 7 ``` SQL Server 2017. I want to select rows where *[Date1] - [Date2] less than 7 days*. Dates are in format YYYY-MM-DD (object).<issue_comment>username_1: I would recommend doing something like this: ``` select u.* from user u where da...
2018/03/17
1,074
2,747
<issue_start>username_0: I have been tasked with converting a a worksheet from standard Excel into PowerPivot. However, I have hit a roadblock with the PERCENTRANK.INC function which is not available in DAX. I have come close to replicating it using a formula, but there are definite differences in the calculation. Do...
2018/03/17
1,089
2,854
<issue_start>username_0: I want to memoize a function with mutable parameters (Pandas Series objects). Is there any way to accomplish this? Here's a simple Fibonacci example, the parameter is a Pandas Series where the first element represents the sequence's index. Example: ``` from functools import lru_cache @lru_c...
2018/03/17
1,104
3,327
<issue_start>username_0: ``` [ 'one/two' => 3, 'one/four/0' => 5, 'one/four/1' => 6, 'one/four/2' => 7, 'eight/nine/ten' => 11 ] ``` I am attempting to build the above array based on $json\_str: ``` $json_str = '{ "one": { "two": 3, "four": [ 5,6,7] }, "eight": ...
2018/03/17
1,019
3,057
<issue_start>username_0: I'm trying to extract the latitude and longitude fields stored in this address JSON: ``` { "city": "Hamilton", "name": "<NAME>", "type": "address", "value": "22 Fake Road, Hamilton, Ontario, Canada", "latlng": {"lat": 42.2526, "lng": -69.8549}, "country": "Canada"...
2018/03/17
634
2,137
<issue_start>username_0: I'm creating a program that searches if a word is in the file and then prints it. ``` FILE* fp = fopen("test.cfg", "rt"); if (fp) { char szFileName[256]; char country[4 + 1]; char line[256]; if (fgets(line, sizeof(line) - 1, fp)) { sprintf(country); } fclose(f...
2018/03/17
1,017
3,699
<issue_start>username_0: I have an image. I want to upload it to S3 using aws-amplify. All the Storage class upload examples are using text documents; however, I would like to upload an image. I am using expo which does not have support from react-native-fetch-blob, and react native does not have blob support... yet. ...
2018/03/17
279
967
<issue_start>username_0: Where shall I add my custom js file in Understrap (WP)? js/ or src/js/ Also, I assume then I need to load it from inc/enqueue.php and modify gulpfile.js to compile it. Is this correct?<issue_comment>username_1: You can use the folder named "JS" which is included on Understrap theme. Howev...
2018/03/17
405
1,519
<issue_start>username_0: Kotlin comes with the powerful feature for view binding using import `kotlinx.android.synthetic.main.activity_main.*`. I also know that Android Studio is powerful and flexible for customization. [![enter image description here](https://i.stack.imgur.com/rxmq7.png)](https://i.stack.imgur.com/rx...
2018/03/17
339
1,144
<issue_start>username_0: I'm wanting to execute a function after an Array is completely set. I tried to implement didSet in the declaration of the array, but the code inside of it is called each time an element is added to the array. Is there any way to do what I want? Here is some of my code: ``` var arrayScore = [0....
2018/03/17
759
2,002
<issue_start>username_0: We stored the date as `VARCHAR2` in our database table * REGDATE - `VARCHAR2`, Format `YYYY-MM-DD hh24:mi:ss.f` Sample data: ``` 2018-01-31 23:47:35.0 2018-01-01 00:00:48.0 2018-01-01 06:54:36.0 ``` I'm trying to insert this data into a new table `TABLEB` with the correct `DATE` format. I ...
2018/03/17
1,137
3,112
<issue_start>username_0: Hi I was trying to come up with a function to return a fibonacci sequence, that is an array not the usual last n-th fibonacci number. ``` function fib(n,arr=[0]) { if (n===0||n===1) { arr.push(n) return arr; } let arr2 = fib(n-2); let arr1 = fib(n-1); arr1.push(arr2[arr2.leng...
2018/03/17
1,067
2,487
<issue_start>username_0: I have a table `time_period`, ``` CREATE TABLE `time_period` ( `id` int(11) NOT NULL, `time` time NOT NULL, `slots` int(11) NOT NULL ) ; ``` The data in the table is basically time period in a 24 hour clock at the interval of 5 minutes. Something like this: ``` INSERT INTO `time_perio...
2018/03/17
731
2,651
<issue_start>username_0: Trying to set up a database connection between a Linux/Ubuntu server (client) and a Windows server (host) using the code below, but it fails for some reason. The ip address is ok (pinged it ok), port 3050 is open and username and password are also correct, so what can be the problem? The code b...
2018/03/17
961
2,880
<issue_start>username_0: Having trouble figuring out how to lemmatize words from a txt file. I've gotten as far as listing the words, but I'm not sure how to lemmatize them after the fact. Here's what I have: ``` import nltk, re nltk.download('wordnet') from nltk.stem.wordnet import WordNetLemmatizer def lemfile(): ...
2018/03/17
908
2,749
<issue_start>username_0: I am trying to apply `linear-gradient` to html progress bar but it's not applying the gradient ```js var customColor = '#cf014d'; ReactDOM.render(React.createElement("progress", { max: "100", value: "80", style: { color: "linear-gradient(to left, #fff, #fff)" } }), document.getElementById...
2018/03/17
1,710
5,489
<issue_start>username_0: I am using vee validate for form validation. i am using vue transition on displaying validations errors like this: ``` {{ errors.first('name') }} ``` Css: ``` .slide-fade-enter-active { transition: all .3s ease; } .slide-fade-leave-active { transition: all .8s cubic-bezier(1.0, 0...
2018/03/17
741
2,497
<issue_start>username_0: I'm having trouble reading a JSON list of numbers into a c# int[] array. I've tried several suggestions from SO, but none have worked. How would I go about this using JSON.net? Extract from JSON file: ``` { "course": "Norsk", "grades": [6, 3, 5, 6, 2, 8] } ``` What...
2018/03/17
642
3,029
<issue_start>username_0: I'm making a social media app using Android Studio. The problem I'm facing is that whenever pressing the login button and getting a "login successful" message, the app does not immediately open a new activity. I should click it again for it to do so. Here's my OnPostExecute code: ``` protected...
2018/03/17
622
2,692
<issue_start>username_0: When a user fills the form data which has one input in the name of 'uname' , after submitting the form, the form data is send to the server using socket.io and the user is directed to '/website.html' and the form data is appended to the url like <http://localhost:3000/website.html?uname=rohan>....
2018/03/17
2,287
4,361
<issue_start>username_0: I would like to pass an unquoted variable name `x` to a `left_join` function. The output I expect is the same as if I ran: `left_join(mtcars, mtcars, by = c('mpg' = 'mpg'))` I'm trying this: ``` ff <- function(x) { x <- enquo(x) left_join(mtcars, mtcars, by = c(x = x)) } ...
2018/03/17
673
2,401
<issue_start>username_0: The `*id` value is initially `0000-0000:c29302`. Once it gets send through the `split` function its value changes to `0000-0000`. I think this has to do with it modifying the original value instead of modifying a temporary value. I want the `*id` value to stay the same. Thanks. ``` typedef str...
2018/03/17
595
2,663
<issue_start>username_0: I have the following Play for Scala controller that wraps Spark. At the end of the method I close the context to avoid the problem of having more than one context active in the same JVM: ``` class Test4 extends Controller { def test4 = Action.async { request => val conf = new Sp...
2018/03/17
1,575
5,316
<issue_start>username_0: I am trying to pass in the channel configuration transaction artifact to the order-er using the command: ``` peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrgan...
2018/03/17
766
2,680
<issue_start>username_0: I'm trying to map the maximal amount of days without rain using the TRMM dataset in Google Earth Engine. I'm doing this by iterating over the collection and if no rain has fallen, one gets added to the cell (code below). When rain has fallen the value gets multiplied by 0 so the "counter" is re...
2018/03/17
904
3,328
<issue_start>username_0: I have a Flutter TextField which gets covered by the soft keyboard when the field is selected. I need to scroll the field up and out of the way when the keyboard is displayed. This is a pretty common problem and a solution is presented in this [StackOverflow post](https://stackoverflow.com/ques...
2018/03/17
820
3,001
<issue_start>username_0: I'm having trouble creating a stored procedure with one IN and three OUT parameters. Basically I have three queries which I want to put in a stored procedure. How can I relate the OUT paramters with each of the queries? ``` CREATE OR REPLACE PROCEDURE 'SP_NAME'( @phone_number IN VARCHAR2 R...
2018/03/17
737
2,852
<issue_start>username_0: I created an SPA with Laravel 5.6, Vue 2.5 and Laravel Passport which is working quite well. I really love Laravel and Vue as they make building SPAs with APIs very easy and a lot of fun. After setting up Laravel Passport as described in [the docs](https://laravel.com/docs/5.6/passport#consumi...
2018/03/17
606
2,316
<issue_start>username_0: I'm trying to understand what the formal names are for the pieces of text that make up running something from the terminal/command line. Take the following example: `npm install lodash --save` What are `npm`, `install`, `lodash`, and `--save` named if you were to break them down one by one? W...
2018/03/17
563
2,104
<issue_start>username_0: Is there a way I can address legend items individually? I'd like to style them, make some appear smaller, some disabled, stuff like that. If I were to define a module/plugin, how would I manipulate the array of items? ```js legend: { item: { rules: [] } } ``` doesn't work.<issue_com...
2018/03/17
787
2,164
<issue_start>username_0: I'm trying to `scale` my `data` and add it to my original data with a new name. I was wondering though why my scaled data does not get the new name assigned to it? Here is what I tried: ``` data <- mtcars["wt"] d <- scale(data) data[, paste0(names(data), ".bbb") ] <- d data ...
2018/03/17
1,073
4,063
<issue_start>username_0: I need a way to visually represent a random web page on the internet. Let's say for example [this](https://www.reddit.com/r/food/comments/85rm0d/homemade_chocolate_banana_bread_with_nuts/) web page. Currently, these are the standard assets I can use: * **Favicon**: Too small, too abstract. *...
2018/03/17
3,951
10,757
<issue_start>username_0: I want to convert this nested loops in recursion. How do I achieve this? ``` for(let i = 0; i < 5; i++) { for(let j = 0; j < 5; j++) { console.log(i,j); } } ```<issue_comment>username_1: This is an alternative. This approach uses param initialization with comma operator *(just to mak...
2018/03/17
2,417
9,907
<issue_start>username_0: ### Question What is the benefit of applying locks to the below statement? Similarly, what issue would we see if we didn't include these hints? i.e. Do they prevent a race condition, improve performance, or maybe something else? Asking as perhaps they're included to prevent some issue I've no...
2018/03/17
1,658
6,744
<issue_start>username_0: I have been trying to retrieve only the username data saved in firebase and have it displayed in a text view on navigation drawer but I either keep getting errors and app crashes or nothing gets displayed in the text view and app doesn't crash. app doesn't crash with this code. ![app](https://...
2018/03/17
969
3,451
<issue_start>username_0: I'm using the [Alfresco Rest Api](https://api-explorer.alfresco.com/api-explorer/) but I can't find any option that would return the whole tree with all sub-folders. I want to go down to the last file even if it's 'wrapped' in 3 sub folders. Any ideas ?<issue_comment>username_1: I don't think...
2018/03/17
545
1,777
<issue_start>username_0: So here is my code. I have to replace a space with an asterisk and if there are an occurence of two spaces in a row in the string replace it with one dash ``` php $string = "Keep your spacing perfect!"; $search = array(' ',' '); $search2 = array('*','-'); echo str_replace($search, $searc...
2018/03/17
770
3,029
<issue_start>username_0: I had made an app using xamarin.android that plays with images. I want other app to share images to my app, I tried the following but throws exception. Here is Android manifest file ``` xml version="1.0" encoding="utf-8"? ``` Main.axml ``` xml version="1.0" encoding="utf-8"? ``` MainActi...
2018/03/17
578
2,371
<issue_start>username_0: I'm having trouble submitting my app. I've already done the Volley settings as below, but the Play Store shows up for rejection. HostnameVerifier Your app (s) are using an unsafe implementation of the HostnameVerifier interface. You can find more information about how to solve the issue in th...
2018/03/17
395
1,395
<issue_start>username_0: I want to know the difference between date +%F and date '+%F' in UNIX. I am getting same result for both. When i am using the later one in my shell program i am not getting the expected output while the first one gives me the expected output. Eg: ``` DATE=$(date '+%F') echo $DATE 2...
2018/03/17
939
3,399
<issue_start>username_0: I use webpack 3 for my build process. webpack.config.js: ```js { test: /\.css$/, use: ExtractTextPlugin.extract({ fallback: "style-loader", use: "css-loader" }) }, { test: /\.scss$/, use: ExtractTextPlugin.extract({ use: [ {...
2018/03/17
903
3,052
<issue_start>username_0: The order in which the letters are printed is "ABDC" Why does it print the last letter C? I provided my thinking steps and guide in the comments in the code. ``` public class Base { public static void main(String[] args) { Base b = new Derived(); b.methodOne(); } public void methodOn...
2018/03/17
1,523
4,845
<issue_start>username_0: I have a view that populates a form in our Extranet. We only want to see the latest data for each group of Matter Numbers. In the image below we don't want to see any event dates to the right of where it's RED because they are old events. We do want to keep the data that is to the left. The r...
2018/03/17
1,713
4,655
<issue_start>username_0: I'm trying to recurse over a dataset to find the highest level item, i.e. one that does not have a parent. The structure looks like this: ``` ╔════════════╦════════════╗ β•‘ Item β•‘ Material β•‘ ╠════════════╬════════════╣ β•‘ 2094-00003 β•‘ MHY00007 β•‘ β•‘ 2105-0001 β•‘ 2105-0002 β•‘ β•‘ 2105-00...
2018/03/17
359
1,288
<issue_start>username_0: I have nodes which don't have the 'name' property, in that case in the browser, it doesn't show a default property to be shown. Most of the nodes look blank, which isn't good for visualization. How to display that better in such cases?<issue_comment>username_1: When you perform a query in the b...
2018/03/17
438
1,494
<issue_start>username_0: I want to add a blurred shadow for my edit text but I don't know how? I had made the shape but I don't know the attribute for adding blur to the edit text. I made a drawable resource file and make this as a background to my edit text but it doesn't look as the picture and this my code. ``` xml...
2018/03/17
478
1,218
<issue_start>username_0: I would like to replace NAs in numeric columns using some variation of `mutate_if` and `replace_na` if possible, but can't figure out the syntax. ``` df <-tibble( first = c("a", NA, "b"), second = c(NA, 2, NA), third = c(10, NA, NA) ) #> # A tibble: 3 x 3 #> first second third...
2018/03/17
377
1,506
<issue_start>username_0: I'm working on android application which works as expected , but I'm using FirebaseUI to authenticate users login , I'm using this code for authentication and registration : ``` startActivityForResult(AuthUI.getInstance() .createSignInIntentBuilder() ...
2018/03/17
1,223
3,768
<issue_start>username_0: I am using just Ruby (no rails) to make a gem that takes a yaml file as an input an it produces a pdf. I am using pdfKit and Haml. In the haml file I need to render an image. When using pure HTML, PDFKit shows the image, but when using Haml::Engine and the haml file the image doesn't get render...