date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/22
329
1,188
<issue_start>username_0: I am trying to execute following Query in Repository using Query method. I want unique Slocation and that result should be in `JSON` format(key, value) **Here is my code** ``` @Repository public interface AccountRepository extends JpaRepository, QueryDslPredicateExecutor { // Load location ...
2018/03/22
760
2,218
<issue_start>username_0: Im trying to configure Scala in IntelliJ IDE My Scala & Spark Versions in my machine ``` Welcome to Scala 2.12.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_121). apache-spark/2.2.1 ``` SBT file ``` scalaVersion := "2.12.5" resolvers += "MavenRepository" at "http://central.maven.org/m...
2018/03/22
792
2,933
<issue_start>username_0: I am migrating code from Objective-C to Swift 4.0. Here I have some float #define constants related to my deviceHeight in Specific Objective-C header class. While accessing this #define giving error `"Use of unresolved identifier"`. When I use Objective-C string #define identifier it's easily a...
2018/03/22
1,180
4,108
<issue_start>username_0: I am working on a task where i am taking the id generated from the database collection and i passing it through the postman.. i am converting that it to database obejct id created and its working accordinlg if we pass correct id else it is throwing an error ``` mongo.get().collection("post")....
2018/03/22
278
1,056
<issue_start>username_0: I am attempting to run a script that I have finished writing without having to launch PyCharm every time I run it. However, I receive the following error when trying to run it from my command-line in `Windows 10`: ``` Traceback (most recent call last): File "C:\Users\stuff\bot.py", line 5,...
2018/03/22
577
1,652
<issue_start>username_0: I have a file with filename and path to the file I want to delete the the rows which have files that do not exist anymore file.txt (For now all existing files): ``` file1;~/Documents/test/123 file2;~/Documents/test/456 file3;~/Test file4;~/Files/678 ``` Now if I delete any of the given file...
2018/03/22
666
2,568
<issue_start>username_0: I am working on a swift project.In that i need the logo to be shown in left side of navigation bar and would like to make it globally in AppDelegate. But self.navigationitem is not detected in Appdelegate?Any Help would be appreciated as its my first project in swift. ``` UINavigationBar....
2018/03/22
226
737
<issue_start>username_0: I am trying to use LIME package for explaining predictive models. See error while running the following code: ``` # Create the LIME Explainer explainer = lime.lime_tabular.LimeTabularExplainer(X_train_undersample feature_names = feature_names,class_names=['0','1'], kernel_width=3) ``` Error:...
2018/03/22
629
2,362
<issue_start>username_0: I have a function App. type is Timetrigger. I have given the time trigger expression `0 0 * * * *` , as my requirement it to run with 1 Hour interval. I have refereed the [TimeTrigger Cheat Sheet](https://codehollow.com/2017/02/azure-functions-time-trigger-cron-cheat-sheet/) But Unfortunetly ...
2018/03/22
853
3,122
<issue_start>username_0: On a plain TYPO3 8 installation, I want ckeditor to allow the img tag in the source, without enabling the image plugin. The default configuration of ckeditor in TYPO3 removes the image plugin, which causes img tags to be removed as well. According to the ckeditor documentation, this can be ach...
2018/03/22
355
1,291
<issue_start>username_0: i update php form and change the value but it cant change it saves the same previous value ``` | Course Fees | | ``` Please see the screenshot of source code and input filed . i changed the value in input field but it remain same in source code and save source code value db [![enter im...
2018/03/22
955
2,643
<issue_start>username_0: I have a table called articletag for a blog database that says which article has which tag: ``` Art_Id Tag_id 1 3 2 3 3 3 4 3 1 1 3 1 4 1 2 2 5 5 ``` another way to see this data is: ``` 1, "blog", "f...
2018/03/22
801
2,183
<issue_start>username_0: when trying to navigate to next activity after Alert Dialog, then I am getting this error: > > Activity has Leaked window DecorView@a61b0ed[] that was originally > addded here > > > here is the snippet: ``` if (alert1 != null && alert1.isShowing()) { alert1.dismiss(); } builder....
2018/03/22
712
2,779
<issue_start>username_0: I have several maven-projects: * commons-lib (*simple Java project*) * user-service (*Spring-Boot-driven project*) * composite-service (*Spring-Boot-driven project*) * frontend-service (*Spring-Boot- / Angular2-driven project*) * all-services-parent (*parent project building everything else*) ...
2018/03/22
476
1,639
<issue_start>username_0: I have the following text, which I receive from my database `"----- Some Text ------ Bônus -------- Some Text ------- "` I am storing it in a String variable and printing the variable in the console and writing it into the PDF , but the issue is I am not getting the text in the correct format...
2018/03/22
662
1,642
<issue_start>username_0: I want to use some function that requires to concat two dataframe. Here is the example: ``` import numpy as np import pandas as pd data1 = np.array([['','Col1','Col2'],['1',1,2],['2',3,4]]) data1=pd.DataFrame(data=data1[1:,1:],index=data1[1:,0],columns=data1[0,1:]) data2=np.array([['','Col1','...
2018/03/22
599
2,078
<issue_start>username_0: I have a grid of 4 buttons and once one of them is clicked it will call a function called `doSearch` which checks which button was clicked and based on that assigns a string to the `last_search` value. However, when I click any of the four buttons, I always seem to only press the `edm` button...
2018/03/22
1,193
3,488
<issue_start>username_0: I want to upgrade my application from angular4 to angular5. What changes do I need to make in `package.json`? Here are my dependencies: ``` "dependencies": { "@material/fab": "^0.28.0", "@progress/kendo-angular-charts": "1.2.1", "@progress/kendo-angular-dateinputs": "1.0.5", "...
2018/03/22
2,917
10,138
<issue_start>username_0: I have problem when try to build the app after update playservice version to 12.0.0 but it works fine with version 11.8.0. It's shows binding folder is not found in app. **Message :** > > Error:(20, 38) error: package com.app.test.databinding does not exist > Error:(31, 13) error: cannot fi...
2018/03/22
1,756
6,533
<issue_start>username_0: I am facing an issue where I have downloaded an Excel file with Angular 1 but if I am implementing the same code in Angular 5 it is showing the error that your file is corrupted. My response is in **ArrayBuffer** and I am unable to read the file. Below is my code: **Service:** ``` Download...
2018/03/22
532
1,772
<issue_start>username_0: I am new in Xamrin & trying to create a category for UItextField as below ``` using UIKit; using System.Diagnostics.Contracts; using CoreGraphics; using System.ComponentModel; using Foundation; namespace WeatherApp.iOS.Extension { [Category(typeof(UITextField))] public static class UI...
2018/03/22
1,115
3,483
<issue_start>username_0: With *Rcpp*, I've defined a matrix *M* in *C++*. Using `M.nrow()`, we should be able to retrieve the number of rows. However, when I tried to return the number of rows as an `IntegerVector`, the answer is incorrect: ``` set.seed(1100) M = matrix(sample(18), nrow = 6) Rcpp::cppFunction('Integer...
2018/03/22
1,939
5,877
<issue_start>username_0: I need help with modifying the code below. I have two tables, 1. table one has two rows and six columns 2. table two has two rows and six columns with each cell colored either red or yellow creating two congruent shapes. I want to display an alert when the cells in "table one" match the con...
2018/03/22
844
3,545
<issue_start>username_0: In my Maven, Spring Boot 2 project I have Maven module called `api1`. I have declared a number of `@RestController`s there. In order to extend the logic of the `api1` module, I have implemented another Maven module called `api2` and placed `api1` there as Maven dependency. Right now all of th...
2018/03/22
1,258
4,481
<issue_start>username_0: > > AADSTS70005: response\_type 'id\_token' is not enabled for the > application > > > I am getting above error even after setting `"oauth2AllowImplicitFlow": true`, in manifest.<issue_comment>username_1: Make sure you don't have two instances of the key `oauth2AllowImplicitFlow` in your ...
2018/03/22
541
1,819
<issue_start>username_0: I have a json object which contains some HTML. For example: ``` { "cat": "1", "catUrl": "this-is-a-url", "catSummary": "This is a summary with [a link](\"http://www.a.com\")" }, ``` Notice catSummary has an href in it. But it doesn't get rendered as a link. Instead it just rende...
2018/03/22
634
2,129
<issue_start>username_0: i try to build a store procedure who insert data to a table, after it run, the table is empty. this is the code: ``` CREATE TABLE invoices (invoiceNo int, invoiceDate date, invoiceTotal int, invoiceType char(1)) alter PROCEDURE Invoices_AGG @year int AS select (case when MONTH(i...
2018/03/22
492
1,801
<issue_start>username_0: I know this question has been asked alot, but I tried several solutions suggested and none has worked as expected. I have an EditText that opens the keyboard when I launch that activity, how can prevent it from launching the keyboard. ``` //Solutions I have tried thus far //Solution 1 //XML ...
2018/03/22
601
2,048
<issue_start>username_0: Hello this is the code I'm using: ``` menuItemButtonContainer: { marginRight: 1, marginLeft: 1, marginTop: 1, marginBottom: 1, paddingRight: 1, paddingLeft: 1, paddingTop: 1, paddingBottom: 1, borderRadius: 10, overflow: 'hidden', position: "absolu...
2018/03/22
783
3,044
<issue_start>username_0: Git is a DVCS and each local git user holds a complete copy of the repository. I am trying to set up a repository for our company's project (of small team of less than 10 people). We selected git so that we dont need to set up a server like SVN. We are using git with Visual Studio 2017. It see...
2018/03/22
707
2,688
<issue_start>username_0: I have an image which I want to place in splash screen in such a way that it is visible in navigation bar also at the top. Normally the image is visible in full activity except the navigation bar. But I want it to start from navigation bar also as in swiggy app splash screen. Below is the rela...
2018/03/22
331
1,195
<issue_start>username_0: The Wooslider plugin on my Wordpress site suddenly stopped loading images on all pages it's used on. Can somebody look into this and tell me what the issue is and how to fix it? The error code I receive in the console is: ```html Uncaught ReferenceError: jQuery is not defined at (index)...
2018/03/22
587
2,183
<issue_start>username_0: I just started using Java recently so please bear with me. I'm trying to create an array of the object Product by reading data from a csv file with the format `Name,Price,Stock` but every time I'm trying using the `Load()` function it keeps giving me an error in the Product constructor line....
2018/03/22
508
1,743
<issue_start>username_0: I've learned a little about django pagination from here : <https://docs.djangoproject.com/en/2.0/topics/pagination/#page-objects> And I want to know how to get the number of items in certain Page object. I thought a way like this : `Page.end_index() - Page.start_index() + 1` But I think may...
2018/03/22
326
1,109
<issue_start>username_0: I've got a List like: ``` results = ['SDV_GAMMA','SDV_BETA,'...','...'] ``` and then comes and for loop like: ``` for i in range (len(results)): a = instance.elementSets[results[i]] ``` The strings defined in the result-list are part of a `*.odb` result file and if they didn't exist t...
2018/03/22
485
1,861
<issue_start>username_0: I'm new to Robot Framework, I have created this code to create a folder of current date but now I don't know how to use it at the time of test suite run. So that whenever I run my suite it will store in separate folder i.e. date wise. This the code for create Folder with system date: ``` *** K...
2018/03/22
915
3,061
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/BJ0E3.png)](https://i.stack.imgur.com/BJ0E3.png) Hello everyone I need your help. I want that like in image if I search carrot listing should show Carrot first like the element having same name show first and if element contains these ...
2018/03/22
499
1,972
<issue_start>username_0: I'm using a select statement that combines two columns, EmployerID and Name as such: ``` SELECT EmployerID + '-' + Name AS CompanyName FROM Employer ``` to be put into a drop down list from the database. I have no issue selecting and filling the database, however, I need to use the Employer...
2018/03/22
505
1,505
<issue_start>username_0: I am adding dynamic forms in slider, so that multiple forms can be visible with swap. But when keyboard opens ion-slides is disappears. please suggest a solution. [![enter image description here](https://i.stack.imgur.com/Sxw9I.png)](https://i.stack.imgur.com/Sxw9I.png) [![enter image descrip...
2018/03/22
296
1,078
<issue_start>username_0: I'm having an array of `NSManagedObjects`. And I would like to search through the whole array using search bar. But the problem is in the array of `NSManagedObject` there are different types of keys(Different entities). Like if I'm search using title than there will be keys like: "`event_title...
2018/03/22
372
1,150
<issue_start>username_0: Code: ``` $db = mysqli_connect("localhost","root","","photos"); if(isset($_POST['POST'])){ $image = addslashes($_FILES['image']['tmp_name']); $image_name = addslashes($_FILES['image']['name']); $image = file_get_contents($image); $image = base64_encode($image); $sql = "INSERT INTO imaag ( ...
2018/03/22
1,294
4,500
<issue_start>username_0: I have a log file that has data lines and some explanation text lines. I would like to read the last 10 data lines from a file. How can I do it in Python? I mean, is there faster way than use ``` for line in reversed(open("filename").readlines()): ``` and then parse the file. I guess it ope...
2018/03/22
557
1,998
<issue_start>username_0: I want to parse a string to decimal using this method ``` try { Double.parseDouble(str); } catch (Exception exception) { exception.printStackTrace(); } ``` It throws exception if I put any letter in EditText or a number followed by a let...
2018/03/22
329
1,136
<issue_start>username_0: I want to split the string `"abcabcab"` into `"abc", "a", "b"` and so on. How do I achieve this?<issue_comment>username_1: You should use Long to parse a number. Because Double is a floating point number and it does not throw Exception for Floating value and also **d** represent the value ...
2018/03/22
378
1,391
<issue_start>username_0: I have a directory of files of which I want the files to be selected in a random order. I am wondering what the best way to do this is – I am thinking some sort of use of 'Arrange by: Date Modified' then using some basic bash(?) touch to change these dates in a random order. How would I code a ...
2018/03/22
2,778
9,623
<issue_start>username_0: I am looking for a script or some cmd command to uninstall any app from my computer. I am using Windows OS. Being an automation analyst I have to constantly run automated tests for different products whenever there is new build. So every time I have to uninstall and install build which takes ti...
2018/03/22
2,815
9,694
<issue_start>username_0: Android Emulator is annoying me from days. Runs properly for some days and gives somekind of error next day. This time when I click to start emulator, it appears in taskbar and then crashes giving me following errors: ``` Emulator: init: Could not find wglGetExtensionsStringARB! Emulator: getG...
2018/03/22
912
2,378
<issue_start>username_0: i am using chart js for developing my pie chart. i want to create the legend position just like this. anyone please help me to solve this... [![enter image description here](https://i.stack.imgur.com/G9vv0.jpg)](https://i.stack.imgur.com/G9vv0.jpg) here is my code... i actually want the resul...
2018/03/22
493
1,947
<issue_start>username_0: I am new to ECMA classes. In the following code, I have built a button class that is working fine. Now I am trying to call the prev\_image() method from inside the click eventlistener. I know 'this' refers to the button instance but am not sure how to call a method from the Gallery class. Tha...
2018/03/22
514
1,969
<issue_start>username_0: I'm trying to automatically login to a website using puppeteer, with the following script: ``` const puppeteer = require('puppeteer'); async function logIn(userName, password) { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https:/...
2018/03/22
729
2,824
<issue_start>username_0: Let's say I have the following structure: * package + module1 - class1 - class2 And the user of the package wants to use class1 and class2. The way I understand I have too options, in my `__init__.py`: ``` from module1 import class1,class2 ``` Which will let the user do something lik...
2018/03/22
1,029
2,278
<issue_start>username_0: I am trying to extract the grouped index values from a dataframe (df1) that represent a range of grouped times (start - end) and that encompass the grouped times given in another dataframe (df2). My required output is df3. ``` df1<-data.frame(group = c("A","A","A","A","B","B","B","B","C","C","...
2018/03/22
724
1,660
<issue_start>username_0: I upload encoded String image on image view but I got > > Caused by: java.lang.IllegalArgumentException: bad base-64 error. > > > ``` byte[] decodedString = Base64.decode(value, Base64.DEFAULT); Bitmap bitmap = BitmapFactory.decodeByteArray(decodedString, 0,decodedString.length); dashboa...
2018/03/22
1,279
4,512
<issue_start>username_0: I'm busy working through an ETL pipeline, but for this particular problem, I need to take a table of data, and turn each column into a set - that is, a unique array. I'm struggling to wrap my head around how I would accomplish this within the Kiba framework. Here's the essence of what I'm try...
2018/03/22
2,934
11,434
<issue_start>username_0: I followed [this](https://www.tutorialspoint.com/android/android_json_parser.htm) to Read JSON data in android over there I am passing result data to another activity ``` public class MainAct1 extends Activity { private static String urlString; private static final String My_TAG= "Log Stat...
2018/03/22
1,032
3,054
<issue_start>username_0: In my settings, I'm using django-environ to set the key: ``` import environ env = environ.Env() SECRET_KEY = env.read_env('SECRET_KEY') ``` At the root of my project, I do have a .env file with the actual secret key: .env: ``` SECRET_KEY=<KEY> ``` The error will run during `c...
2018/03/22
720
2,191
<issue_start>username_0: I am looking for a function that can find matches in between the columns and output if it finds a matching row outputs `"has matches"` else `"no matches"` for example ``` df = data.frame(id=c("good","bad","ugly","dirty","clean","frenzy"),di=c(1,2,"good","dirty",4,"ugly")) > df id di...
2018/03/22
709
2,276
<issue_start>username_0: I want to add numbers on google map marker.. in code i taken marker as custom image view.. I want to place numbers on that custom marker image view. .. [like i posted image](https://i.stack.imgur.com/klnHk.png) i tried like this ``` Paint mPaint=new Paint(); mPaint = new Paint(Paint.A...
2018/03/22
574
1,798
<issue_start>username_0: I am looking for a simpler solution. There a **tool A** It will process the XML of below format ``` ``` There a **tool B** It will process the XML of below format ``` ``` I have to process both the XML is same Tool. XML wise the difference is only few tag names. In java i could parse...
2018/03/22
453
1,492
<issue_start>username_0: Here is my route: `@app.route('/')`. In it I use `request.args.get('page')` for pagination. But the problem I am having is, if I go to my browser and visit `localhost:5000/?page=2` flask returns a 404. What is the reason for this? It works fine on `localhost:5000` but I want to supply a page. H...
2018/03/22
417
1,320
<issue_start>username_0: controller **PagesController** ``` public function index() { $client = new Client(); $hospital_id = 37; $res = $client->request('POST', 'http://vph.com/api/GetService'.$hospital_id,[ 'form_params' => [ 'body'=>$hospital_id ] ]); ``` i want to api hit but i...
2018/03/22
1,097
4,527
<issue_start>username_0: I'm using Spring Boot and have two very similar services which I'd like to configure in my `application.yml`. The configuration looks roughly like this: ``` serviceA.url=abc.com serviceA.port=80 serviceB.url=def.com serviceB.port=8080 ``` Is it possible to create one class annotated with `...
2018/03/22
3,692
12,050
<issue_start>username_0: Hello I have following problem, I need to write a @Query in JpaRepository that will return list of transactions. My current query looks like this: ``` @Query("SELECT t FROM Transaction t WHERE t.property IN :property AND (t.createdAt BETWEEN :dateFrom AND :dateTo) GROUP BY t.transactionType") ...
2018/03/22
1,990
6,124
<issue_start>username_0: I have a table which has ID,Date,Flag indicator (which includes yes or no value) I want to get latest date when flag indicator changed from No to Yes which determines as of today if that ID is in scope or not.. ``` ID Date Flag Indicator 1 2-Jan-15 No 1 4-Jan-16 Yes 1 2-Jan-17 ...
2018/03/22
1,902
5,978
<issue_start>username_0: Using Chrome Dev Tools console, I have xpath $x("//img[contains(@src, 'https://')]") to get image links from this website: <https://www.etsy.com/market/happiness_bracelet>. It is returning 164 results in the array, but I only need the currentSrc property of each result in the array. How would...
2018/03/22
539
2,389
<issue_start>username_0: Good morning, developing an app where I use firebase to receive notifications, I have a problem if I send a notification and the application is killed, I open the first page of the application instead I would like to open a specific view, here is my code ``` func application (_ application: UI...
2018/03/22
269
1,183
<issue_start>username_0: I have a script that has to check whether the environment variable FILE was set but also whether the path to it really exists. This is what I googled so far: ``` if env | grep -q ^FILE= then echo env variable is already exported else echo env variable was not exported exit 1 fi ``` ...
2018/03/22
776
2,856
<issue_start>username_0: so a bit of context: I'm creating a program to manage products (candles) and I need to check if the name of the candles perfume exists before updating the data. So after some research I wrote this : ``` try { stmt = conn.createStatement(); //Get a perfumeCode from a perfumeN...
2018/03/22
548
1,916
<issue_start>username_0: As far as I know, `*ptr++` should be evaluated to get the value in the original `ptr` address, and `ptr` gets updated to point to the next memory location. So the only thing that should be changing here is the address held by `ptr`. However when I ran this program ``` #include int main() {...
2018/03/22
527
1,930
<issue_start>username_0: Suppose I have a NotesDocument with a property named `"someJSONObject"` with the following value: ``` "{ "someObject": { "objId": "someId" "Object_Name": "objName", "Alternative_Name" : "altName", "Alias_Name" : "alias" } }" ``` My question is how I can get `"objId"` proper...
2018/03/22
975
4,041
<issue_start>username_0: I used a way to keep the main method running. ``` public static void main(String[] args) throws InterruptedException { while (true) { TimeUnit.SECONDS.sleep(1); } } ``` But I'm not sure it's the best way. Can someone give me some advice?<issue_comment>username_1: Here is one...
2018/03/22
477
1,837
<issue_start>username_0: I have created a new Google account along with OAuth 2.0 credentials for Google sign in. When Google asks the user for permission, it asks for "manage your contacts”. Why am I getting this "manage your contacts”? I just wanted to do a Google sign in.<issue_comment>username_1: When authenticat...
2018/03/22
2,811
8,119
<issue_start>username_0: I'm trying to understand the linking and loading phases in depth. When a translation unit is compiled / assembled into a single object file, i understand that it creates a symbol table of every variable / function found. If a variable has only file scope by using the static keyword for exam...
2018/03/22
876
3,051
<issue_start>username_0: I have a CMakeLists.txt that defines a function, that needs to refer to its own path because it needs to use a file in its own directory: ``` ├── path/to/a: | ├── CMakeLists.txt | └── file_i_need.in └── different/path/here: └── CMakeLists.txt ``` The `path/to/a/CMakeLists.txt` file h...
2018/03/22
551
1,856
<issue_start>username_0: How to remove double quote that is between a set of double quotes? `"Test T"est"` should get output as `"Test Test"` `"Test T"est", "Test1 "Test1"` should get output as `"Test Test", "Test1 Test1"`<issue_comment>username_1: You can try with `awk`: ``` $ awk -F", *" '{ ...
2018/03/22
1,451
4,548
<issue_start>username_0: I am trying to remove comments from an assembly instructions file, then print clean instructions in another file. For example: This ``` TESTD TD STDIN JEQ TESTD . Loop until ready RD STDIN . Get input to see how many times to loop ...
2018/03/22
773
2,543
<issue_start>username_0: Switched from **`google-services:3.1.1 to 3.2.0`** since then I get the following warning ``` Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug] Could not find google-services.json while looking in [src/nul...
2018/03/22
609
1,949
<issue_start>username_0: I have an `StackedAreaChart` and after I show areas on graph I want to add a custom dot. Currently my code look like this but I want to draw a dot depend on `XAxis` and `YAxis` data. Does exist any way to pass `x` and `y` coordinates to a `CustomizedDot` class? ``` import React from 'react'; ...
2018/03/22
292
959
<issue_start>username_0: I want to filter out empty value on email column. So I tried this: ``` users = User.objects.filter(email__iexact='') ``` But, record has empty value would not be appeared. Anyone know why is that? Model is: ``` class User(models.Model): email = models.EmailField(blank=True) ```<issu...
2018/03/22
2,066
7,993
<issue_start>username_0: In the CA Automic Automation Engine Java APIs, each AE object\* type has its own subclass of [`UC4Object`](https://docs.automic.com/documentation/webhelp/english/ALL/components/AE/LATEST/API/index.html?com/uc4/api/objects/UC4Object.html). Many of the operations for working with AE objects are s...
2018/03/22
1,546
6,100
<issue_start>username_0: I have the following functions : The first prints unsigned integers in a given base (radix). The second function does exactly the same but with a signed integers. As you can see, the body of these functions are exactly the same. I've been struggling for hours in order to prevent doubling the...
2018/03/22
528
1,768
<issue_start>username_0: I am trying to display a string on multilines with `\n` in the Postman Console. How can I do this? Example: ``` var mystr='line\n another line\n another line'; console.log(mystr); ``` Expecting: ``` line another line another line ``` Getting: ``` lineanother lineanother line ``` Note:...
2018/03/22
3,684
14,056
<issue_start>username_0: I am trying to capture the signature of the user through signaturepad and canvas and downloading the same into device in a project in phonegap cordova. The image is getting downloaded but it is disappearing the very next minute. Dont know where is the issue in my code. I have attached my code...
2018/03/22
562
2,059
<issue_start>username_0: I have received a response in the following format {"ErrorCode":"406","Message":"Employee Name should not be empty and should not be more than 30 characters"} and to validate the same, i have added a response assertion and given the response in response text but when i try to assert it gets f...
2018/03/22
1,014
3,828
<issue_start>username_0: I am upgrading my project from .NET Core 1 to .NET Core 2. Following the Official Docs - [Link](https://learn.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/) - I edited my csproj to contain the following packages. ``` ``` Then updated the `Program.cs` to. ``` public class Program { ...
2018/03/22
634
2,364
<issue_start>username_0: While I'm working on a Vertical `TextView`, I have one of two solutions: 1. Normal TextView with rotation -90: this makes the control of the position is too hard and with unexpected results due to the different sizes of devices 2. Custom Vertical TextView, but I don't have an idea about doing ...
2018/03/22
742
2,562
<issue_start>username_0: I am working on a quiz module where the quiz has to be submitted automatically if it crosses the time limit i.e. 30 mins. I have used jquery for this but somehow the quiz doesn't submits automatically when time limit reaches. may I know where am I going wrong. Any insight to this will be very h...
2018/03/22
482
1,522
<issue_start>username_0: My date range is ``` var currDay = Jan.1 var birthday = Feb.15 ``` I know that to find the difference in number of weeks is ``` currDay.diff(birthday, 'week') ``` However, is there a way to find the full weeks and the remaining days?<issue_comment>username_1: You can make use of [`durati...
2018/03/22
630
2,367
<issue_start>username_0: I'm getting 401 issue when i deployed the bot in local iis and registered the bot channel in azure with ngrok https url. Steps i followed : 1. Deployed bot in IIS with port 1214. 2. created https using ngrok for the port 1214 ![ngrok screenshot](https://i.stack.imgur.com/Sn7RQ.png) 3. Registe...
2018/03/22
1,583
5,597
<issue_start>username_0: I'm trying to code the mismatch kernel in python. I would like to extract all substrings of a string given a numpy boolean array mask, where the extraction pattern is not necessarily continuous (e.g. mask = [False, True, False, True], such that from 'ABCD' I extract 'BD'). After extracting subs...
2018/03/22
322
1,201
<issue_start>username_0: In Opencart v2.3X admin while editing product, I am uploading images on root folder it is giving "direct does not exist" error. Thanks in advance.<issue_comment>username_1: if your problem is that at backend,at image manager,you cannot create a new folder,or cannot click a existing folders ,su...
2018/03/22
432
1,370
<issue_start>username_0: How can I insert a record to another table with `select * from table` and add additional data? * `table_a` columns: id, name * `table_b` columns: id, name, email, phone My query: ``` INSERT INTO `table_b` SELECT * FROM `table_a` WHERE `id` = '1' + additional data ``` I've f...
2018/03/22
1,256
4,965
<issue_start>username_0: In my application I have implemented FCM push notification. It is working fine When checking notification with FCM console and pushtry.com website, Then I tried with actual Server API the foreground notification works well, But background notification not receiving and sometimes it receives ver...
2018/03/22
662
2,174
<issue_start>username_0: I'm trying to show only a selected number of rows from the database(say from 20 to 45) I'm trying to use limit but it is not working ``` Select * from UsersTable limit 20,45 ``` It is wrong since SQL Server doesn't allow this feature. The answer that I found is ``` SELECT * FROM (...
2018/03/22
964
3,673
<issue_start>username_0: Whenever I try to Login in my application this **`getSystemService()`** method produce a NPE. pls. help as solutions already available are not answer to my Question. I have called **`super.oncreate()`** already. **Stack Trace** ``` Caused by: java.lang.NullPointerException: Attempt to invoke...
2018/03/22
540
1,970
<issue_start>username_0: I would have thought this was straightforward but I think it might give unexpected results. I basically load a few documents into a variable.. then I want to save the whole document back to MongoDB. Do I have to save each one individually using save <https://docs.mongodb.com/manual/reference/m...
2018/03/22
831
2,202
<issue_start>username_0: I am a newbie to Scala. I have a Tuple[Int, String] ``` ((1, "alpha"), (2, "beta"), (3, "gamma"), (4, "zeta"), (5, "omega")) ``` For the above list, I want to print all strings where the corresponding length is 4.<issue_comment>username_1: > > > > > > printing length of string of Tuples i...
2018/03/22
1,016
4,104
<issue_start>username_0: I have following two tables, whose schema looks like given below :- ``` postgres=# \d products1; Table "public.products1" Column | Type | Modifiers --------------------+---------+----------------------------------------------...
2018/03/22
1,178
4,037
<issue_start>username_0: I'm transitioning from NGJS to NG and trying to recode my previous application to practice. I stumbled upon the new NgInit where initializations are done in Angular's Component. What I'm trying to achieve is to initialize a value WITHIN the scope to be used as a toggle to hide and unhide HTML...
2018/03/22
894
3,259
<issue_start>username_0: Just trying to learn about setting up source control with bitbucket and sourcetree for a project I'm working on in a group. I can set up a repository and push the project to it, but I'm confused about what happens when someone else tries to push their update. If someone's trying to push a new u...