date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/16
575
2,014
<issue_start>username_0: I have to print a formatted double matrix in java, with in the first column the number of the line. I'm using this code: ``` for (int i = 0; i < 80; i++) { System.out.printf("%d", i); for (int j = 0; j < 80; j++) { System.out.printf("%5f", P[i][j]); System.out.print(" ...
2018/03/16
1,077
4,062
<issue_start>username_0: **Update** My small showcase is stored on Bitbucket <https://bitbucket.org/solvapps/animationtest> I have an Activity with a view in it. `Contentview` is set to this view. ``` public class MainActivity extends AppCompatActivity { private MyView myView; @Override protected voi...
2018/03/16
1,832
6,719
<issue_start>username_0: I am new to ionic I am following [ionic framework documents](https://ionicframework.com/docs/api/components/action-sheet/ActionSheetController/) to learn it. Here is my method's code: **hello-ionic.ts** ``` openActionSheet(){ let actionSheet=this.actionsheetCtrl.create( { ti...
2018/03/16
257
976
<issue_start>username_0: i changed the images directly in the coding of the home page in the panel and now its showing on the home page only before doing this it was showing on every product page any help will be appreciated. Home Page - Screenshot [![enter image description here](https://i.stack.imgur.com/0m40Q.png)]...
2018/03/16
1,145
4,164
<issue_start>username_0: I have a use-case where I need to have temporary AWS STS token made available for each authenticated user (auth using company IDP). These tokens will be used to push some data in AWS S3. I am able to get this flow, by using SAML assertion in IDP response and integrating with AWS as SP (IDP init...
2018/03/16
387
1,307
<issue_start>username_0: We are using WP Bakery Page Builder on for a client website. The plugin works fine, but sometimes the settings in Role Manager, for what post types the composer should be on just resets. We are researching the possibility to hack the settings programmatically to set it to On be default. Just ...
2018/03/16
389
1,122
<issue_start>username_0: I'm trying to get my display my list(s) into a html table but it's printing the whole list instead of each variable inside it. I'm using jinja2 templates. ``` | Date: | Scheduled: | | --- | --- | {% for day in working\_days %} | {{working\_days}} | {% endfor %} ``` Right now it's just ...
2018/03/16
1,103
3,918
<issue_start>username_0: How can I pass a category name to new `WP_Query` when I click specific button with category name? I've got this in my `functions.php` ``` php add_action('wp_ajax_my_action', 'data_fetch'); add_action('wp_ajax_nopriv_my_action', 'data_fetch'); function data_fetch(){ $the_query = new WP_Que...
2018/03/16
906
3,288
<issue_start>username_0: There is this great [ui guide](https://uxdesign.cc/good-to-great-ui-animation-tips-7850805c12e5) which shows some cool ui transitions. I would like to know how to do this animation (the great one). [![enter image description here](https://i.stack.imgur.com/0kUOZ.gif)](https://i.stack.imgur.com...
2018/03/16
224
731
<issue_start>username_0: ``` Add Schedule Time + ........ Open Time {{Opentime}} Close Time {{Closetime}} ``` .ts ``` AddNewSchedule(){ for(var i =0; i<10; i++){ this.OpenNewSchedule = true; } } ``` i need the div *OpenNewSchedule* to be added repeated, Now its getting added only once, and each added div...
2018/03/16
1,440
5,478
<issue_start>username_0: I'm learning `SpringBoot2.0` with `Java8`. And I followed some blog-making tutorial example. The tutorial source code is: ``` @GetMapping("/{id}/edit") public String edit(@PathVariable Long id, Model model) { model.addAttribute("categoryDto", categoryService.findOne(id)); return "categor...
2018/03/16
1,300
4,312
<issue_start>username_0: I have a file defined this way: ``` A R RCONVTXT A TEXT 100A COLHDG('Text') A TEXT2B 100G COLHDG('Text') A CCSID(1200 *NOCONVERT...
2018/03/16
1,401
3,978
<issue_start>username_0: I have two list and i try to combining in one `dict` ``` list1 = ['sys_time', 'sys_time', 'sys_time'] list2 = ['2018-03-16T11:00:00.000-07:00', '2018-03-12T00:00:00.000-07:00', '2018-03-14T00:00:00.000-07:00'] dict(zip(list1, list2)) ``` **output :** ``` {'sys_time': '2018-03-14T00:00:00....
2018/03/16
859
2,872
<issue_start>username_0: Why did the pointer "precord" (in code sample 1) needed an address-of operator to change the value in structure member? ``` //Code Sample 1 #include struct student {int a;}; void input(struct student \*); void main() { struct student age; printf("Enter Your Age\n"); input(&age); print...
2018/03/16
692
2,413
<issue_start>username_0: Is there a difference between different compilers, for example if I use node-sass or gulp-sass, and I've seen a few places with Postcss-nesting, postcss-variables and so on, is this the same thing? Is there a difference between them syntax-wise?<issue_comment>username_1: When I built your progr...
2018/03/16
786
2,675
<issue_start>username_0: Hi I am new to exposing Ml models as flask API. Below is my code: ``` import numpy as np from nltk.corpus import wordnet from nltk.stem.wordnet import WordNetLemmatizer import re from sklearn.externals import joblib import warnings warnings.filterwarnings('ignore') from flask import Flask, js...
2018/03/16
3,283
7,563
<issue_start>username_0: I have a dataframe with date column, some of the data are missing based on year and month. i have to display are the months for all the years in my dataset and the corresponding columns should display with zeros. My dataframe looks like this ``` Date Churn Churnrate customerID 2008,01...
2018/03/16
2,272
6,022
<issue_start>username_0: Getting this Error In Xamarin Form Android Project I am refering Entity framework library int android project. Error as below > > Severity Code Description Project File Line Suppression State Error > Exception while loading assemblies: System.IO.FileNotFoundException: > Could not load assem...
2018/03/16
2,172
5,499
<issue_start>username_0: I am trying to web scrape the data from the Flipkart site. The link for the webpage is as follows: <https://www.flipkart.com/mi-a1-black-64-gb/product-reviews/itmexnsrtzhbbneg?aid=overall&pid=MOBEX9WXUSZVYHET> I need to automate navigation to the NEXT page by clicking on NEXT button the webpag...
2018/03/16
662
2,383
<issue_start>username_0: In low-level-api, we can use ``` print(session.run(xx_tensor_after_xx_operation, feed_dict=feed_dict)) ``` to get the real data for debugging. But in custom estimator, how to debug these tensors? Here is my snippet for a vivid sample: ``` import tensorflow as tf FLAGS = tf.app.flags.FLAG...
2018/03/16
501
1,949
<issue_start>username_0: I want to create an AsyncTask that will handle my communication with the server (the client is the android app and the server is python). My main activity will need, depends on user interaction, send data to the server. How can I pass the string that changes all the time to the AsyncTask? For e...
2018/03/16
513
1,989
<issue_start>username_0: I get this error when I run create-stack for a cloudformation template that contains IAM policies. ``` aws cloudformation create-stack --stack-name iam-stack --template-body file://./iam.yml --capabilities CAPABILITY_IAM --profile dev ``` An error occurred (InsufficientCapabilitiesException)...
2018/03/16
1,278
4,608
<issue_start>username_0: I'm building an application using Spring Boot 2 with Kotlin. Somehow I just can't get ConfigurationProperties to work. As far as I know when Maven `compile` is run then a file `spring-configuration-metadata.json` should be created in `target/classes/META-INF` My setup so far: pom.xml ====...
2018/03/16
486
1,865
<issue_start>username_0: This question for .NET framework. Putting a try/catch block in the call method is a solution for this problem but I want to handle it in upper level. Is there any solution for this?<issue_comment>username_1: Please see [official Spring documentation](https://docs.spring.io/spring-boot/docs/curr...
2018/03/16
509
1,788
<issue_start>username_0: ``` function clickCounter() { if(typeof(Storage) !== "undefined") { if (localStorage.clickcount) {// <----- here! localStorage.clickcount = Number(localStorage.clickcount)+1; } else { localStorage.clickcount = 1; } document.getElementById("result").innerHTML = "You have clicked the but...
2018/03/16
789
3,046
<issue_start>username_0: I am creating a dashboard app that fetches data from an endpoint and uses the setState method to assign variables from the JSON returned by the endpoint to state variables. When I make a change to state, some components like 'react-svg-gauge' will update but 'react-chartjs-2' does not update. ...
2018/03/16
2,270
5,770
<issue_start>username_0: I need to build a bash command in a script depending on some cuote or normal parameters. For example: ``` BAYES) class="weka.classifiers.bayes.BayesNet" A="-D -Q weka.classifiers.bayes.net.search.local.K2 -- -P 1 -S BAYES -E" B="weka.classifiers.bayes.net.estimate.SimpleEstimator -...
2018/03/16
1,595
4,785
<issue_start>username_0: I am making a tic-tac-toe game , where in i need to create button and then add events to it . There are three buttons in a row and next row 3 buttons and next row another three buttons. I have used break tag as well as \r\n notation still it doesnot work. Please help. ``` var table= []; var...
2018/03/16
1,155
3,836
<issue_start>username_0: I am experimenting with *Vue.js* (version 2.5.16) and its `v-for` directive which should be able to repeat an element according to some integer range, according to the [official Vue.js documentation](https://v2.vuejs.org/v2/guide/list.html#v-for-with-a-Range). Concretely, I am trying to write a...
2018/03/16
239
857
<issue_start>username_0: I have a toast.js file which contains the following code: ``` $(document).ready(function() { $(".tstInfo").on("click",function(){ $.toast({ heading: 'Welcome to my Elite admin', text: 'Use the predefined ones, or specify a custom position object.', position: 't...
2018/03/16
505
1,705
<issue_start>username_0: i get an "no database selected" error and i can't figure out why. Would be nice if someone could help me out. Code below. There are no typos in there and im using XAMPP/Apache as server so localhost should be right i guess? ``` php $servername = "localhost"; $dbname = "databank"; ...
2018/03/16
602
2,209
<issue_start>username_0: I have seen few web posts and solutions but do not seem to work. Am i missing the obvious? this is what I have At Solution level and not where the package resides I have a folder like the pic below [![enter image description here](https://i.stack.imgur.com/K0G5k.png)](https://i.stack.imgur...
2018/03/16
888
3,229
<issue_start>username_0: i have put one checkbox in header for the select other check boxes but click event not working on header. Javascript code ``` $(document).ready(function () { $('#example').on('click','.checkAll', function () { alert("hi"); if ($(this).prop('checked')) { $('.otherChechBox').p...
2018/03/16
997
2,822
<issue_start>username_0: Here is some html and css. I need to show arrow on hover inside link, but I can't do this. How can I fix it? ```css .header-text-links a { display: block; width: 278px; height: 55px; padding: 0px 20px; display: -webkit-box; display: -ms-flexbox; display: flex; justify-c...
2018/03/16
1,275
2,822
<issue_start>username_0: I have this zookeeper config: ``` autopurge.snapRetainCount=10 autopurge.purgeInterval=1 snapCount=3000000 ``` And my `/opt/zookeeper-3.4.11/data` dir goes large, no `autopurge` happens. I try clean up this mess with `zkCleanup.sh` but it does nothing. ``` sysadmin@clickhouse-node1:/opt/...
2018/03/16
338
1,381
<issue_start>username_0: I am working with an oversea developer who is developing one of my apps. The app uses a auto-renewable Membership, and he just pointed me out that he needs the App-Specific Shared Secret since his current role and permission (developer & marketer) does not provide him access to it. I am not...
2018/03/16
1,209
4,262
<issue_start>username_0: I decided to use Arduino IDE for ESP8266 to program on my ESP8266, targeting to read data (bytes array from a TTL camera). ESP8266-01 (8Mbits Flash ROM) has 8 pins so I decided to use GPIO16 (TXD) and GPIO2 (RXD) as SoftwareSerial pins to achieve this. But the ESP8266 printed an exception and I...
2018/03/16
529
1,934
<issue_start>username_0: Where do we include any external fonts in Angular storybook ? I'm using materialize css and some google fonts. HTML : ``` ``` CSS: Within angular-cli.json I have this ``` "styles": [ "styles.css", "../node_modules/materialize-css/dist/css/materialize.css" ] ```<issue_comment>...
2018/03/16
839
2,746
<issue_start>username_0: So there are a lot of posts around this subject, but none of which seems to help. I have an application running on a wildfly server inside a docker container. And for some reason I cannot connect my remote debugger to it. So, it is a wildfly 11 server that has been started with this command: ...
2018/03/16
623
2,021
<issue_start>username_0: I'm new to UFT and I'm trying to select element from the Auto suggest list using Record and Play option of UFT. this is my recorded script for auto suggest list ``` Browser("Log in to iCare").Page("iCare_3").WebEdit("Start typing your medication").Set "AMLODIPINE TAB" Browser("Log in to iCare"...
2018/03/16
656
2,487
<issue_start>username_0: This may be a silly question but I've searched around and found nothing. I have a code: ``` class A {} let className = 'A'; ``` I need to check if `className` corresponds to an existing class. This is all not in the global scope and is running in node.js so I can't use `window` I know th...
2018/03/16
2,072
8,867
<issue_start>username_0: I'm working on an app and I have a menu with a NavigationDrawer to navigate between fragments. In one of the fragments I make a call to the backend and then save the results in a list. When I navigate to another fragment and back, the results are gone, but I'd like to save the contents of the l...
2018/03/16
939
2,680
<issue_start>username_0: I'm trying to show the number of pages on PDF file. So in the header I put this css: ``` .page-number:after { counter-increment: pages; content: counter(page) " of " counter(pages); } ``` Html: ``` Page ``` But it returns me `Page 1 of 1` ... `Page 2 of 2`. The first counter wor...
2018/03/16
624
2,213
<issue_start>username_0: I'm new to nginx lua, and got a setup from previous developer. Trying to go through the docs to understand the scope but I'm pretty unsure. It's like this right now ``` init_by_lua_block { my_module = require 'my_module' my_module.load_data() } location / { content_by_lua_block {...
2018/03/16
539
1,276
<issue_start>username_0: I have a base list `[1,4,10]` which needs to be converted to a list having consecutive elements of each element in the base list in an efficient way Examples: * If I need 2 consecutive numbers then `[1,4,10]` will be `[1,2,4,5,10,11]`. * If 3 consecutive numbers then `[1,4,10]` will be `[1,2,...
2018/03/16
385
1,551
<issue_start>username_0: I have a `Model` and a `Property` class with the following signatures: ``` public class Property { public String name; public String getName() { return name; } public void setName(String name) { this.name = name; } } public class Model { private Lis...
2018/03/16
381
1,595
<issue_start>username_0: I would like to know how applications such as WhatsApp is still able to navigate the user to right message screen even when WhatsApp is closed/terminated. Does this imply that WhatsApp is not at all terminated but stays running in the background? I need to implement the same feature in a reac...
2018/03/16
977
3,941
<issue_start>username_0: I have a simple implementation of Room in my app. It has two entities. It works fine while app is running. But I see no data once app is restarted. This is my database creation code - ``` @Database(entities = {Person.class, College.class}, version = 1, exportSchema = true) public abstract cl...
2018/03/16
658
2,431
<issue_start>username_0: I'm studying Java, I want to know what to do. How do I fix it? What do I need to study? I do not understand how to use methord. Two types ![enter image description here](https://i.stack.imgur.com/u1Ssc.png) ![enter image description here](https://i.stack.imgur.com/3yLuP.png)<issue_comment>user...
2018/03/16
894
2,957
<issue_start>username_0: I want to crop phone screen given on the image. I tried this code but the result is not what i wanted. **[Phone Screen](https://i.stack.imgur.com/cTE70.jpg)** ![](https://i.stack.imgur.com/cTE70.jpg) ``` import cv2 import numpy as np img = cv2.imread('phone_test.jpg') gray = cv2.cvtColor(img...
2018/03/16
460
1,941
<issue_start>username_0: I have an Azure App Service. The App Service relies on databases held on my Azure SQL Server. I am attempting to disable 'Allow access to Azure Services' on the Azure SQL server to prevent malicious users in other Azure subscriptions connecting to my database, however when I do this the App S...
2018/03/16
1,106
4,141
<issue_start>username_0: I have a file with some package-level functions in Kotlin. ``` //Logger.kt fun info(tag : String, message : String){ ... } fun error{....} ``` I'm testing functions of a class that call functions of this kotlin file, and I would like to mock them. I know that package-level functions are l...
2018/03/16
1,128
4,277
<issue_start>username_0: The problem i'm facing is that i have a list of let's say 5 jobs. Each job had it's own page and at the bottom of that page i have a button to apply for this job. Now when you click the button a webform opens on a new page that you need to fill in in order to apply for that job. The problem h...
2018/03/16
709
3,057
<issue_start>username_0: I'm currently using Cucumber Framework with Selenium Java . I wish to upgrade my Normal Cucumber reports to extent reports . Tried with Extent reports 3.0.2. I was able to generate Extent reports but i was not able to embed Screenshot of failed test cases into Extent Report . Can any one plea...
2018/03/16
1,698
7,090
<issue_start>username_0: In ASP.NET core 2.1, I cannot access session variables. While debugging I have noticed that in every request the session ID changes (HttpContex.Session.Id) Did I make mistake in session configuration? Startup.cs ``` public class Startup { public Startup(IConfiguration configuration) ...
2018/03/16
1,070
4,469
<issue_start>username_0: **I'm making a chat system like Facebook or Twitter**. Everything is okay but i don't know how to select last user's massage that the user has sent or received from them. I mean when you enter the message in Facebook you can see the last messages that you've seen or not seen. There is img t...
2018/03/16
1,199
4,989
<issue_start>username_0: I have a cucumber+Java project where everything is working perfectly fine if I use JUnit Runner to execute cucumber scenarios written in Feature file but problem arises when I try to use build.gradle file to run them. ``` @Scenario1 Given I have URL When When I login Then I can see Homescree...
2018/03/16
1,807
7,002
<issue_start>username_0: I'm a bit confused. If you search about the usefulness of (smart) pointers you get very different opinions. Almost everybody agrees that one should use smart pointers over normal pointers, but there are also many opinions that you should not use pointers at all in modern C++. Lets consider t...
2018/03/16
1,186
4,466
<issue_start>username_0: Following is my sample HTTP server. I need to remove the 'Content-length:' header generated at the response. I have tried many approaches and not succeded. Is there any way to remove the content-length from server response? ``` public class SimpleHttpServer { public static void main(Strin...
2018/03/16
132
446
<issue_start>username_0: Basic HTML 5 form, trying to fire HTML 5 email validation which should not allow `"aaa@aaa"` type of emails, meaning those emails which don't have `"."` near the end. so emails like below are correct ``` <EMAIL> <EMAIL> ``` and email like below are incorrect ``` aaa@aaa ``` ```html Em...
2018/03/16
578
1,574
<issue_start>username_0: I want to return the key of the object where it's `ContractID` value equals `10`. So in this example I want to return `0`. ``` { 0 : {ContractID: 10, Name: "dog"} 1 : {ContractID: 20, Name: "bar"} 2 : {ContractID: 30, Name: "foo"} } ``` I've tried using the `filter` method but it...
2018/03/16
634
1,846
<issue_start>username_0: I want to create function that accept 'dynamic array struct' and use it to map a data from database \*mgodb ``` type Cats struct { Meow string } func getCatsPagination() { mapStructResult("Animality","Cat_Col", Cats) } type Dogs struct { Bark string } func getDogsPagination() { ma...
2018/03/16
648
1,898
<issue_start>username_0: I am getting this type of json in my $scope of angularjs: ``` $scope.someStuff = { "id": 2, "service": "bike", "min": "22", "per": "100", "tax": "1", "categoryservices": [ { "id": 32, "category": { "id": 1, ...
2018/03/16
1,319
4,461
<issue_start>username_0: I checked allow unknown sources app to be installed. java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel\_24 or Xamarin.Android.Platform!E/AndroidRuntime( 8048): at android.app.Activi...
2018/03/16
758
2,975
<issue_start>username_0: Why am I not able to give permission/authorization to a Google Apps Script that I also made using the same Google account? It seems like Google doesnt trust myself to use my own Google Apps Script with my own Spreadsheet. Here is the line of code that breaks everything. If this line doesnt ...
2018/03/16
3,468
13,753
<issue_start>username_0: The task is to automate OLAP pivot table data filtering. There are some items in pivot field named sPivotFieldName I need to exclude. The code below works pretty fine. ``` With Worksheets(sWorksheetName).PivotTables(sPivotTableName) With .CubeFields(sCubeFieldName) .Orientation = x...
2018/03/16
1,606
6,545
<issue_start>username_0: I'm trying to take a picture from device camera or pick it up from the gallery and upload it to the server via the volley everything works fine but the image quality is so bad ``` private void dispatchTakePictureIntent() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); st...
2018/03/16
547
1,957
<issue_start>username_0: I'm trying to load a template in `print_table()` function. If I uncomment the include\_once code above, it will work. Why? the `get_template function` does exactly the same. As it is now it says $people is undefined. ``` function get_template( $template_name ) { include_once __DIR__ . DIRECTOR...
2018/03/16
594
2,026
<issue_start>username_0: I am using Python to parse an excel spreadsheet and write documentation to a word document. I want to highlight binary substrings e.g. '001' by having the numbers appear in dark red. I can find the substrings using re being any text which is a binary number sequence between single quotes, that ...
2018/03/16
842
3,449
<issue_start>username_0: How can I choose according value in AsyncStorage which screen should be displayed? I don't know why setting screen value 'Home' to InitialScreen variable doesn't work? Once I log in **login.js** screen and I close app, after launching the app again I am navigated to **login.js**. But now I wan...
2018/03/16
334
1,215
<issue_start>username_0: i have 2 routes with POST methods ``` Route::post('/payment/checkOrder','Finance\PaymentCallbackController@checkOrder'); Route::post('/payment/paymentAviso', 'Finance\PaymentCallbackController@paymentAviso'); ``` how can i create legacy links for these routes? ``` /plat.php?paysystem=5&meth...
2018/03/16
595
2,377
<issue_start>username_0: I have this simple function: ``` bool foo(const std::string& str) { static const std::string ky[] = { "KeyWord1", "KeyWord2", "KeyWord3" }; static const std::set kySet(ky, ky+ sizeof(ky)/sizeof(ky[0])); return kySet.find(str) != kySet.end(); } ``` It basically holds a set of pre-s...
2018/03/16
469
1,945
<issue_start>username_0: I am trying to add a action bar to my layout but it is giving me a multiple root tag error. Here is my code. please help me EDIT: Here is the full xml ``` xml version="1.0" encoding="utf-8"? ```<issue_comment>username_1: That can only be true if the compiler does not implement the C...
2018/03/16
458
1,628
<issue_start>username_0: I was wondering what would be more performant. Native functions of the language that implies 2 iterations or a simple `for` loop. The idea is to find the index of an array of objects whose property filterId match a concrete value. The solution with a `for` would be this one whose runtime is ...
2018/03/16
628
2,395
<issue_start>username_0: I've got a table which holds email adresses. But over the years of use this table got messed up and some of the email adresses got saved in the following format. `<NAME>` Probably because of some user copy-pasting the email adres from an other application. In an effort to sanitize this colum...
2018/03/16
822
2,617
<issue_start>username_0: I have this code, I use it to transpose a list of numbers and then separate them with a comma, It works well for every list, if numbers are between 0 and 99. However if the list of numbers contains numbers with more than 2 characters, then, the code will give the attended result, only if at l...
2018/03/16
606
2,173
<issue_start>username_0: I have a products table which has a column named quantity. I also have a pivot table named member\_product which has a quantity column as well. I want to be able to subtract quantity from the products table with the quantity from member\_product table. Similar with updating the quantity of ...
2018/03/16
442
1,492
<issue_start>username_0: Please help me to install librdkafka on windows xampp for php development. PHP : 7.1.12, x86, Thread Safe, MSVC14 I downloaded compatible package from <https://pecl.php.net/package/rdkafka/3.0.5/windows> Copied `php_rdkafka.dll` to `ext` folder of my php xampp and `librdkafka.dll` to `System...
2018/03/16
289
1,229
<issue_start>username_0: I am coming from the web world where DB connection opening is on app server start and closing on its close. Currently I need to create a Swing app with db connection. Most probably I will do this without connection pool, but it's a consideration for me and it's not related to my problem. I will...
2018/03/16
226
882
<issue_start>username_0: I have gradle project which has lombok jar ,i have added the below dependency in gradle, Gradle version : 4.5.1 ``` compileOnly group:'org.projectlombok',name:'lombok', version: '1.16.20' ``` gradle build in command prompts not working<issue_comment>username_1: Make title bar read only so u...
2018/03/16
251
979
<issue_start>username_0: How can I change `java.io.tmpdir` folder for my Hadoop 3 Cluster running on YARN? By default it gets something like `/tmp/***`, but my `/tmp` filesystem is to small for everythingYARN Job will write there. Is there a way to change it ? I have also set `hadoop.tmp.dir` in `core-site.xml`, ...
2018/03/16
736
2,314
<issue_start>username_0: [Image to show the problem](https://i.stack.imgur.com/gQ0ry.png)Here is the code to illustrate the problem: ``` # -*- coding:utf-8 -*- text = u"严" print text ``` If I run the code above in VSCode debug, it will prints "涓" instead of "严", which is the result of the first 2 byte (\xe4\xb8) of ...
2018/03/16
672
2,295
<issue_start>username_0: In my application, a new log file will be generated everytime my application starts. However, this is not what I want because sometimes, I would end up with 10 log files due to opening and closing my application 10 times at different times. I want my log file to be named `Log_LOGFILECREATEDDAT...
2018/03/16
1,185
3,643
<issue_start>username_0: I have the following table in R: ``` Sample Cluster CellType Condition Genotype Lane Sample1 1 A Mut XXXX 1 Sample2 2 B Mut YYYY 1 Sample3 2 A Mut YYYY 2 Sample4 ...
2018/03/16
183
707
<issue_start>username_0: How can we justify text in react native for both android and iOS without using webView, since webView is not visible in android after placing it inside another view. The following option only works for iOS. ``` textAlign='justify' ```<issue_comment>username_1: Using webView resolved the issu...
2018/03/16
375
1,345
<issue_start>username_0: I have deployed laravel 5.4 app in AWS Ubuntu 16.04 apache2, i have created task scheduler for sending emails `dailyAt('10:00')`. When i run the artisan command `php artisan email:reminder` manually every thing works fine. But when i run `php artisan schedule:run` i am getting `No scheduled ...
2018/03/16
994
3,722
<issue_start>username_0: I am using Apollo Client for the frontend and Graphcool for the backend. There are two queries `firstQuery` and `secondQuery` that I want them to be called in sequence when the page opens. Here is the sample code (the definition of TestPage component is not listed here): ``` export default com...
2018/03/16
538
1,379
<issue_start>username_0: In my limited experience with `python & numpy`, I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this. ``` A=[3,-1, 4] B = array([1,1,1],[1,-1,1],[1,1,-1]) The most close one in B is [1, -1, 1] ``` 1. the weight of positive and negati...
2018/03/16
494
1,329
<issue_start>username_0: Is it possible to bring the arrowhead in the front of tooltip from the microtip library?, I'm trying to add shadow to the entire tooltip but the head pointing down is on the back, so it gets blocked. Tried adding a background image to after but it's not working correctly. Here's the code: ``...
2018/03/16
776
2,043
<issue_start>username_0: Background ---------- I have a string containing a javascript object. This string is not JSON stringified ( only a portion of it is ). I need to convert this string into an object so than I can use it. Here is an example of such string: ``` `{method: 'POST', url: '/iot/pipe/', query: {}, ...
2018/03/16
1,014
3,635
<issue_start>username_0: I tried everything but cannot get a file upload to work. I want it to upload to: /var/www/mysite.com/uploads Laravel is located at: /var/www/mysite.com/admin/public/ Latest thing I tried was making a filesystem like this: ``` 'uploads' => [ 'driver' => 'local', 'root' => '/var/www...
2018/03/16
1,022
3,716
<issue_start>username_0: I have two classes (Date and Employee). Class Date doesn't have a constructor, but it has 3 variables with their setters. Class Employee has a constructor where I initialized its variables. But I have to attach the 3 variables in Class Date to it. I tried using Setter method, but when I run ...
2018/03/16
536
2,183
<issue_start>username_0: I'm building an 'accessibility bar' that will include functions such as; increase/decrease contrast, text-size, line-spacing etc. Is there a default, standard, recommended or well known icon that could be used to show/hide this functionality? I feel like the 'wheelchair' icon: [wheelchair acc...
2018/03/16
408
1,550
<issue_start>username_0: I have logger file... it will be around 1GB size. I want read data from it line by line till a certain keyword "transitioning to different mode" is reached and i want the time stamp for that as well i tried different codes but its giving my only the log header and few lines from the log file ...
2018/03/16
663
2,131
<issue_start>username_0: I have a field where I need to replace the comma `,` with a dot `.` What is the best way to do this? HTML form- ``` ``` The Jquery (my first attempt) ``` jQuery(document).ready(function($){ $("#field\_ce5yi-other\_2-otext").keyup(function(){ $("#field\_ce5yi-other\_2-otext").text($("#f...
2018/03/16
526
2,067
<issue_start>username_0: I am doing a huge project and I am having some issues with it. Every time I click the login button, it takes a while to make the database connection, and if this button is an alert and you click it multiple times, it will show the alert multiple times as well. This is the button: ``` this....
2018/03/16
1,321
4,246
<issue_start>username_0: ``` #include #include #define LEN 5 #define sum\_mac(func,type)\ void\* func (void\* arr, int size)\ {\ int i;\ type \*sum = (type\*)malloc(sizeof(type));\ if(sum == NULL)\ {\ printf("Error\n");\ exit(1);\ }\ \*sum = 0;\ for(i = 0; i ``` I get the following error when I try to c...
2018/03/16
1,651
5,625
<issue_start>username_0: This question is how to really implement the read method of a readable stream. I have this implementation of a Readable stream: ``` import {Readable} from "stream"; this.readableStream = new Readable(); ``` I am getting this error > > events.js:136 > throw er; // Unhandled 'error' event...
2018/03/16
1,754
5,834
<issue_start>username_0: My google cloud bucket has two folders **train** and **test** under **gs://MYBucket/demo2/TFRecords/** which contain TFRecords of image embeddings. I pass the url of my bucket to the program as an argument. In the terminal I type the below to submit the job: ``` $training='gs://MYBucket/demo2...
2018/03/16
1,224
4,506
<issue_start>username_0: Why do we have different methods for HTTP request. GET can not send data(body) and can only request something only through URL params. Put is like changing a field value on the server and Post performs an operation everytime we execute it (concept of Idempotence). Why can't there be one method...