date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/01
358
1,249
<issue_start>username_0: I am already did this with gmail smtp, with fetch emailid,subject,body and send with phpmailer smtp. Here we can't get exact stats about count of mail openings and deliveries and bounce mails. So we want implement mailchimp api v3. But I cant get any exact resource. How to use mailchimp for thi...
2018/03/01
331
1,082
<issue_start>username_0: I have two DIV's, first DIV is an icon, second one is a long text, both floated left: ``` ``` CSS ``` .container { border: 1px solid gray; } .icon { float: left; width: 25px; height: 25px; } .text { float: left; } ``` The problem is when I resize the browsers width ...
2018/03/01
1,129
3,019
<issue_start>username_0: I have two arrays with same length ``` array1 = [12,13,14,15,16] array2 = [22,32,45,11,7] ``` Now I want to compare only the same index value in a for loop in javasacript ex: ``` array1[0] < array2[0] array1[1] < array2[1] array1[2] < array2[2] ``` and if value of `array1[index]` is les...
2018/03/01
893
3,374
<issue_start>username_0: I have a stored procedure that selects a aggregated SUM into a local variable. When I run the code (A Select into Statement) in MYSQL Workbench without running the Stored Procedure and then Select the Variable. I see the result I expect. When the exact same select into statement is run with...
2018/03/01
751
2,933
<issue_start>username_0: How i can have multiple router module like i have core and main as to module in angular and they will have different separate routing module and i want to import those two routing module in our app.routing.ts/app.module.ts as a parent routing module. Is there is any solution to it ?<issue_comme...
2018/03/01
894
3,447
<issue_start>username_0: I have an array containing the urls of an image and want to change the src of an `img` tag every 10 seconds. I iterate over the array with a `forEach`, the callback contains a `setTimeout` which periodically calls the function (`replaceImage`) that does DOM manipulation as follows: ``` const ...
2018/03/01
392
1,287
<issue_start>username_0: Though I have spent some time on this, I have not been able to find the solution though. I am asked to show a "go back" message after clicking that. This message has to be written with the same font the person click on. Here is my code: ``` Example - Changing the font php if (isset($\_GET...
2018/03/01
475
1,732
<issue_start>username_0: i have imported momentjs in my react app, after importing react create app is throwing following error restricting the build > > ./src/shared\_components/quiz-player/node\_modules/moment/moment.js > > Line 9: 'define' is not defined no-undef > > > when i investigate the issue it is th...
2018/03/01
635
2,098
<issue_start>username_0: I am trying to pass some data from my view to my controller in order to display data using the selected month, I am not sure if the month numbers or the Eloquent query I am doing is correct, here is what I have got so far. My routes: ``` Route::get('dcmlog/monthly','LogController@monthly'); ...
2018/03/01
472
1,587
<issue_start>username_0: I am a beginner of python Django .i created a django administration page but it was some problem with css.[this is the screen shot of the that page](https://i.stack.imgur.com/FAQAi.png).i want to be that like this. [this is the what i wanted page's screen shot](https://i.stack.imgur.com/1nvLz.p...
2018/03/01
816
3,074
<issue_start>username_0: i have an activity where i have 2 buttons and when i click on 1st button it will open first fragment and when i click on 2nd button it will open second fragment. ``` public class PagerAdapter extends FragmentPagerAdapter { public PagerAdapter(FragmentManager fm) { super(fm); } @Override...
2018/03/01
477
1,635
<issue_start>username_0: I have a table in which I'm showing some data for each selected row like this ``` Col-1 | Col-2 | || {{obj.id}} | {{obj.name}} |Click Some dynamic data ``` I want to display the div tag content for only clicked row and if I click other row button, that row with div should get displayed ...
2018/03/01
968
3,565
<issue_start>username_0: Getting Below Error while creating maven project . Also, tried below options but didn't work out: 1) Changed workspace, created new projects. 2) Added Remote Archetype catalog as <http://repo1.maven.org/maven2/archetype-catalog.xml> in Catalog file and Description as maven catalog 3) Deleted...
2018/03/01
615
2,156
<issue_start>username_0: I am using default validator that is provided by `.NET framework` which is `'TextMode=EMail'` and `'ValidateRequetMode=Enabled'` and I want to get them fired when button onclick is validated or not. My purpose is to create like below function; ``` function func() { if(tbEmail.validated==tr...
2018/03/01
1,335
5,065
<issue_start>username_0: I am starting to study algorithms and data structures seriously, and interested in learning how to compare the performance of the different ways I can implement A&DTs. For simple tests, I can get the time before/after something runs, run that thing 10^5 times, and average the running times. I ...
2018/03/01
635
2,011
<issue_start>username_0: I'd like to know how can I apply different types of hover condition to different child in one array? Here is my website (<http://k29315or.beget.tech/>) and I want to make different hover color for every picture on thw main page. Thanks for help!<issue_comment>username_1: First: add different cl...
2018/03/01
486
1,876
<issue_start>username_0: 1.when trying to access the data with tablename as a parameter using method, getting below mentioned error using Room Library in android. **--> There is a problem with the query: ERROR] SQL error or missing database (no such table: table Name)** **MainActivity.class** ``` userData1= userSamp...
2018/03/01
1,350
5,406
<issue_start>username_0: **Current scenario:** Parent pom has a distributionManagement section, where two repositories (releases and snapshots) are defined; refer below: ***Parent pom:*** ``` xml version="1.0" encoding="UTF-8"? 4.0.0 0.7 x.y.z abc ${buildVersion} pom moduleA moduleB moduleC releas...
2018/03/01
416
1,499
<issue_start>username_0: I'd like to compute the similarity between two lists of various lengths. In particular, the similarity has to take into account different conditions: -Given 2 list A and B, if A=B then similarity(A,B)=1 -In general, if B contains A, then similarity (A,B)->1. However, the measure of similarity...
2018/03/01
1,317
3,869
<issue_start>username_0: I know that this question has already been asked several times but none of them seem to work for me or they're "too complicated" for my example. I have three divs. Two of them are aligned vertically. The other one should be next to them and should have the same hight as the other two together....
2018/03/01
890
3,394
<issue_start>username_0: Im relatively new to iOS development, and my constraints skill is at a basic level. I'm having a group of labels like so [![enter image description here](https://i.stack.imgur.com/wD7jn.png)](https://i.stack.imgur.com/wD7jn.png) However the **Company Name** and **Address Line 2** are not alwa...
2018/03/01
649
3,056
<issue_start>username_0: I am triggering event on change but my code doesn't work. ``` $(document).ready(function() { $('#category').trigger('change'); $(document).on('change', '#category', function() { var type = $(this).val(); if (type != '') { show_page_block_loader(); ...
2018/03/01
471
1,551
<issue_start>username_0: I want to clone a git url or a git ssh url in sourcetree from a html page. Bitbucket does it like this: [![this is what I want to simulate](https://i.stack.imgur.com/7V3tr.png)](https://i.stack.imgur.com/7V3tr.png) I have searched in the sources but I can't find how you can open something in...
2018/03/01
219
886
<issue_start>username_0: Hello Clickatell Support We are a customer of yours in Australia and have been unable to get **any** response from support regarding cases created on the website. We are in dire need of assistance to send **vCard** and **MMS** messages via Clickatell. The documentation is non-existent when it...
2018/03/01
706
2,644
<issue_start>username_0: I have string array items but for every completion of one element, i need to move to next line. ``` String[] word = { "This is text1.So it should be single line", "This is text2", "This is text3" }; broadcastMessage.setText("" + Arrays.toString(word).replaceAll("\\[|\\]", "")); ``` But this...
2018/03/01
1,272
4,529
<issue_start>username_0: I have a saved query in Big Query but it's too big to export as CSV. I don't have permission to export to a new table so is there a way to run the query from the `bq` cli and export from there?<issue_comment>username_1: From the CLI you can't directly access your saved queries as it's a UI-only...
2018/03/01
793
2,290
<issue_start>username_0: I want to do an inline comparison without writing 'If statements' in Python. If the value meets the threshold condition, it should be unchanged. If it doesn't the value should be set to 0. In Python I don't seem to be allowed to apply a boolean operator to a list directly. In Matlab, it's conv...
2018/03/01
565
1,982
<issue_start>username_0: I sending an array of object of multiple products by [Axios](https://github.com/axios/axios). Here is my `confirmPurchases()` method, by this method I'm sending an array to laravel controller. ``` confirmPurchases() { axios .post(`/sells/sellProduct/`, this.bags) .then( res => { ...
2018/03/01
281
1,033
<issue_start>username_0: Here is my HTML form: ```html ``` I want to upload an image. Here if the file size is big(like 3 or 4 MB), I want to compress image automatically to 1MB or less than that. Any options are there to autocompress images in angularjs or javascript.<issue_comment>username_1: you can use image-com...
2018/03/01
1,523
5,174
<issue_start>username_0: I have several (many) objects in an AutoCAD drawing and each of them has the same attribute field in it's preferences. Now I would like to fill this attribute field with a number (object one - number 1, object two - number 2 and so on). Putting the numbers in manually is very time consuming, th...
2018/03/01
1,612
5,576
<issue_start>username_0: I am trying to make a Inverted Pyramid from given number of stars. Anyone can draw the inverted Pyramid when we know the number of rows. We can make the inverted pyramid like this ``` #include int main() { int i, space, rows, k=0, count = 0, count1 = 0; printf("Enter number of rows: "); ...
2018/03/01
1,204
4,831
<issue_start>username_0: ```js document.body.height = document.getElementById("page-main").clientHeight + 400; ``` ```css #page-main { position:absolute; width:100%; height:2000px; z-index:2; background:#eeeeee; } #footer { position:fixed; width:100%: bottom:0px; height:...
2018/03/01
979
2,884
<issue_start>username_0: I read and understood the entries in following asked question: [INSERT statement conflicted with the FOREIGN KEY constraint](https://stackoverflow.com/questions/2965837/insert-statement-conflicted-with-the-foreign-key-constraint). I do get the point, however, I'm in this situation where I have ...
2018/03/01
812
2,687
<issue_start>username_0: I am getting unexpected duplicate filenames in the list of files selected by the user when they select multiple photos to upload in Google Chrome on Android 7 when tested on the Samsung SM-T580 tablet. There aren't duplicate file names in the folder being uploaded from. This is especially appa...
2018/03/01
285
1,085
<issue_start>username_0: I'm wondering how to run a query that inserts an item into a database only if it doesn't already exist. I'm using json for the entity, so they look like this: ```python class Person(db.Entity): json = Required(Json) name = "Alice" if not Person.exists(lambda person: person['name'] == nam...
2018/03/01
612
2,048
<issue_start>username_0: I have the following code which adds/removes a class to my navigation div when the user scrolls. ``` setInterval(function() { if (didScroll) { hasScrolled(); didScroll = false; } }, 100); function hasScrolled() { if ($(window).width() > 768) { var st = $(this).scrollTop();...
2018/03/01
256
787
<issue_start>username_0: I have this json object: ``` [{"@type":"XPickup","companyId":24,"companyCode":null}] ``` How do I read @type in my angularjs controller to display or modify it. I am unable to access it using: ``` $scope.object.@type // syntax error $scope.object.type // undefined ``` > > Please tell me ...
2018/03/01
304
1,005
<issue_start>username_0: We generate tables dynamically Eg. Table T\_1, T\_2, T\_3, etc & we can get that table names from another table by following query. `SELECT CONCAT('T_', T_ID) AS T_NAME FROM T_NAMES WHERE T_KEY = 'ABC';` Now I want to get records from this retrieved table name. What can I do ? I'm doing like...
2018/03/01
553
1,550
<issue_start>username_0: How do you format a table in pdf using kable function? Because my output table width exceeds the width of the pdf. Here is an example: ``` --- output: pdf_document --- ```{r} df <- cbind(mtcars[1:5,], mtcars[1:5,]) knitr::kable(df) ``` ``` [![enter image description here](https://i.stack.im...
2018/03/01
235
885
<issue_start>username_0: Hi I want to develop a speedtest-like application. Everything is good but I am not able to implement chart like speedometer in Angular 2/4. I am surfing too much but I am getting speedometer chart only in JavaScript. Please someone help me to do so. If some have already implemented speedometer ...
2018/03/01
573
2,065
<issue_start>username_0: So, I have the following application: ``` @SpringBootApplication public class AutonullApplication { public static void main(String[] args) { SpringApplication.run(AutonullApplication.class, args); } @Bean First first() { return null; } public class First { } @Servic...
2018/03/01
2,729
7,942
<issue_start>username_0: I have following dependency and getting `CoordinatorLayout$Behavior` duplicate entry. I have searched so more but did not find any solution. I am getting ``` Caused by: java.io.IOException: Duplicate zip entry [classes.jar:android/support/design/widget/CoordinatorLayout$Behavior.class] at p...
2018/03/01
383
1,427
<issue_start>username_0: I'm trying to learn how to use the Google Assitant API. I had some luck when playing around with my first test app, "app1". Now, I want to build a new test app. At this point, I have set up a number of *Agents* in Dialogflow. Lets call them "app1", "app2" and "app3". I am experimenting in app3...
2018/03/01
962
3,125
<issue_start>username_0: For example, 10000001 is -127 in Two's Complement, but it's also equal to 129. How do I or a computer know which number it's referring to?<issue_comment>username_1: For signed integer 8 bit representations, [the most significant bit represents the sign](https://en.wikipedia.org/wiki/Signed_numb...
2018/03/01
319
1,115
<issue_start>username_0: My Gradle build on Android Studio fails with multiple errors such as. ``` C:\Users\%USER_HOME%\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\67e074a850e794c5187b156467264a93\res\layout\abc_alert_dialog_material.xml Error:(26, 22) No resource found that matches the given name (...
2018/03/01
408
1,539
<issue_start>username_0: How to parse any stringified array such as "[\"Bob\", \"Tim\", \"Tina\"]" in Swift? It should return a JSON array such as ["Bob", "Tim", "Tina"]. Sorry if this is a duplicate question, but I could not find any answer for a generic stringified array where the structure of the array elements are...
2018/03/01
239
1,060
<issue_start>username_0: I have a register.jsp file, and a Register.java file. The register.jsp collects user input for contact information, then the Register.java file adds that information to my database. However, after that, I need the user to be redirected to my Login.jsp page. Could anyone help me with how can it ...
2018/03/01
379
1,623
<issue_start>username_0: I have a Google Sheets spreadsheet where I keep notes on monthly tasks, so each sheet represents one month. I always move the current month's sheet so that it's first in the spreadsheet. I want to be able to send my coworkers a hyperlink that always links to a cell or row the first/leftmost she...
2018/03/01
2,409
7,027
<issue_start>username_0: While running the `docker-compose up` for git project [Linked-Data-Theater](https://github.com/architolk/Linked-Data-Theatre/blob/f12dc18dd7302fbe191b62ac12b379f1f0c642b9/docs/DOCKER.md) I am getting error `standard_init_linux.go:195: exec user process caused "no such file or directory` Belo...
2018/03/01
647
2,640
<issue_start>username_0: We can store `PHP` template files using `blade` templating engine in Laravel. But, I want to create a config file on a remote server having more than 20-30 lines each. Till now, I was doing this using `Perl`. I used to execute Perl file that used to dump contents in one file and I used to pass...
2018/03/01
875
2,490
<issue_start>username_0: please take a look at this superduper simple pen, maybe someone can tell me where the space in the div under the image is coming from? HTML ``` ![](url) ``` CSS ``` .parent { display: inline-block; background-color: indianred; padding: 0; margin: 0; img { pad...
2018/03/01
485
1,579
<issue_start>username_0: In *Java* it's possible to do the following: ``` int var = 5; var += 2; var -= 2; var *= 2; var /= 2; ``` Is it possible to do this in Forth? ``` variable var 3 var ! 1 var +! //Increment ``` Is it possible to do the other operations like that in Forth? If not, any hints on how to?<issue_...
2018/03/01
534
1,999
<issue_start>username_0: I'm trying to make a function where when user enter a text in UITextField in the same moment label shows entered text. How could I make it? Like: --- ``` textField.text = "10" Label.text = "\(textField.text) smthg" //. (10 smthg) ``` --- ``` textField.text = "10.56" Label.text = "\(tex...
2018/03/01
623
1,948
<issue_start>username_0: I've a input string such as ``` 1 29 315 4597 5 6 ``` Each of the number is separated by a \n delimiter, in regular cases what I would do is just use split() method to get an array of these numbers like `["1","29","315","4597","5","6"]` and then iterate over the array to get each of the elem...
2018/03/01
1,165
3,185
<issue_start>username_0: I have a mapping table like so ```none +------+----+ | From | To | +------+----+ | 14 | 40 | | 40 | 32 | | 32 | 95 | | 88 | 56 | | 47 | 88 | | 60 | 32 | +------+----+ ``` The table stores ids of nodes which will be mapped to each other. So from the table above, first 14 will be ...
2018/03/01
1,955
7,960
<issue_start>username_0: I made a very simple script to toggle a div and it works fine. The problem is that because of the selectors I'm using, if I have more of the items I'm applying the script to all of them respond to a click on any of them. What I'd like to achive is so when I click on one button only it's text ap...
2018/03/01
417
1,300
<issue_start>username_0: I have two tables. users and transactions.lets say type 1 is student and type 2 is teacher users: ``` +----+--------+--------------+ | id | name | user_type_id | +----+--------+--------------+ | 1 | Noob | 1 | | 2 | Coder | 2 | +----+--------+--------------+ ``` ...
2018/03/01
838
2,659
<issue_start>username_0: I would like to test that time is parsed correctly and I am only interested in checking some of the properties and not the entire object. In this case hour and minutes. I tried using `expect(object).toContain(value)` but as you can see in the snippet below it fails although the object contain...
2018/03/01
780
2,566
<issue_start>username_0: I am new to SQL (Oracle) and I understand the basic. But there is one thing I want to know and didn't find any proper answer. Let's assume I have this given *table\_1*: ``` shipno itemno amount weight_in_kg - - - - - - - - - - - - - - 001 1 1 50 ...
2018/03/01
413
1,456
<issue_start>username_0: I am trying to remove the below section from samba config file smb.conf. ``` [public] path = /opt/samba/public guest ok = yes browsable = yes writable = yes read only = no ``` Blockinfile module won't work as there are no markers . Lineinfile will also have a problem as there are ...
2018/03/01
1,727
5,418
<issue_start>username_0: I am trying to write a java based lambda function. Everything works fine except the logging. I have the log4j2.xml file in classpath. I have also followed the instruction laid down in [AWS Lambda LOgging in Java](https://docs.aws.amazon.com/lambda/latest/dg/java-logging.html) to the word. I ...
2018/03/01
476
1,578
<issue_start>username_0: In my program i have a panel of 1000 by 1500 pixels, in that panel is a panel of 4000 by 10000 pixels which I can scroll through. Now this panel starts like in the left (example in the picture) but i was wondering if I could make it start like in the right example. And is it possible to change ...
2018/03/01
630
2,865
<issue_start>username_0: I'm developing an app and need to push notification. I have to check whether user has allow notifications before pushing, so I write some code like this: ``` UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; UNAuthorizationOptions options = UNAuthorizati...
2018/03/01
165
585
<issue_start>username_0: There seems to be no information on AWS "Aurora MySQL" about how to pull out slow query logs. I am not using RDS / MySQL - I am using Aurora.<issue_comment>username_1: In the "mysql" database, open the "slow\_log" table and you can view the slow queries. Upvotes: 1 <issue_comment>username_2: Go...
2018/03/01
477
1,678
<issue_start>username_0: Through C# plugin can we load the MDG to the model.if yes what is API providied by EA to load the MDG file to the Model.<issue_comment>username_1: Try ``` public object EA_OnInitializeTechnologies(EA.Repository Repository) { return MyProject.Properties.Resources.yourMDGxml; } ``` It w...
2018/03/01
1,919
6,295
<issue_start>username_0: org.openqa.selenium.WebDriverException: Connection refused: connect I am using appium and selenium for android automation testing I am using selenium, Gson, appium and real device for testing when I r when I execute my code system shows me exception like that anyone can help regarding this ...
2018/03/01
1,347
4,533
<issue_start>username_0: I am trying to create IEautomation through vba-excel for the following link. URL: <http://qpldocs.dla.mil/search/default.aspx> The code includes search for the string "QPL-631",and click on the corresponding java script link MIL-I-631D(6).When I inspected "MIL-I-631D(6)" link ,I found followi...
2018/03/01
565
2,354
<issue_start>username_0: I've got started with Azure Service Bus in Azure. Having gone through some references over the Internet, it seems that people use **BrokeredMessage** class in Microsoft.ServiceBus.Messaging rather than **Message** class in Microsoft.Azure.ServiceBus. * BrokeredMessage class: <https://learn.mic...
2018/03/01
952
3,588
<issue_start>username_0: If I have a vue template with a vuetify dialog (but really any dialog for that matter), How do I use it to confirm navigation away from the page in vue-router's beforeRouteLeave method? **dialogTest.vue:** ``` Are you sure you wish to leave this page? Better think long and hard. Nah Yah...
2018/03/01
938
3,719
<issue_start>username_0: I am not allowed to use FileUtils in the program and error is shown when doing so. Even no suggestion is showing to import this pre-defined Class. I tried to search the solution but what I found was to import the class. But in my case even suggestion is not showing to import any class. Hovering...
2018/03/01
1,073
4,048
<issue_start>username_0: This is a project from school, but i'm only asking for help in the logic on one small part of it. I got most of it figured out. I'm being given a file with lines of string integers, for example: ``` 1234 123 12 153 23 1234 ``` I am to read each line, compute the sum, and then go to the ne...
2018/03/01
1,630
4,590
<issue_start>username_0: Hi I downloaded the cifar-10 dataset. In my code, it loads the data set as below. ``` import cv2 import numpy as np from keras.datasets import cifar10 from keras import backend as K from keras.utils import np_utils nb_train_samples = 3000 # 3000 training samples nb_valid_samples = 100 # 100...
2018/03/01
618
2,289
<issue_start>username_0: How can I update **elasticsearch** data by using [elasticsearch-dsl](https://elasticsearch-dsl.readthedocs.io/en/latest/) package? Is that possible ? I found [elasticsearch update api](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html), but it seems like bit di...
2018/03/01
879
2,895
<issue_start>username_0: I have two matrix: 1. Binary A = [[1, 0, 1, 0], [0, 0, 1, 0]]; 2. Matrix of values B = [[100, 200, 300, 400], [400, 300, 100, 200]]; I want to calculate the sum of the intervals that are formed by the rows of the matrix A. For my exmpl. result will be follow: R = [[300, 0, 700, 0], [0, 0, 300...
2018/03/01
594
2,243
<issue_start>username_0: This was discussed a lot, but all of these solutions not work: ``` $("#getFile").val(''); ``` Nor this: document.getElementById("getFile").value = ""; When console.log after using one of this - it prints the value of last file attached. Also cloning not works, although remove the input val...
2018/03/01
778
2,641
<issue_start>username_0: I would like to create this functionality: 1. call API for return items 2. items.length > 0 -> call next API 3. items.length == 0 -> call another API Here is my code: ``` let a = this.http.get("URL"); a.subscribe(response => { if(response.data.length == 0) Observable.throw({}); }); a....
2018/03/01
1,069
3,165
<issue_start>username_0: I need to return the top 20 word counts. However, I'm only able to return the no.1 word count and not the rest. ``` def print_top(all_text, top = 20): dict2 ={} word_d = word_dict(all_text) items = sorted(word_d.items(), key=get_count, reverse=True) for amounts in items[:20]: ...
2018/03/01
2,003
6,782
<issue_start>username_0: Hi I am facing an error which is mentioned below. I am unable to click on the button of Buyer as mentioned in the screenshot. I have tried wait, sleep functions too. But unable to move beyond this. Can anyone help me in it. Can anyone please help me in this: [Inspect Element code is](https://i...
2018/03/01
1,664
6,073
<issue_start>username_0: I'm doing a small project where I'm using a Raspberry PI to monitor temperature and controlling a LED using Azure IOT Hub. The temperature is visualized through a dashboard portal, where you also can control the LED. I've read the documentation thoroughly but it I'm still unsure about a couple ...
2018/03/01
306
1,089
<issue_start>username_0: I need to migrate this c++98 code snippet to C++11 to a lambda function ``` std::for_each(m_outputs.begin(), m_outputs.end(), [&](const Output & o) { process(o) } ```<issue_comment>username_1: Seems like a pointless use of lambda's anyway: `std::for_each(m_outputs.begin(), m_outputs.en...
2018/03/01
428
1,506
<issue_start>username_0: I would like to add an admin user to my node application via CLI. I created a file admin.js. This file looks like: ``` console.log('start'); myPromisse.then().catch(); // This promise add admin to mongodb console.log('end'); ``` I make `node admin` and it works ... almost :D Admin is not a...
2018/03/01
412
1,415
<issue_start>username_0: I have a range of tooltips that were set up using PHP so that you can upload an image and then customise the tooltip information as you please. All the tooltips are one size, but I'd like to set a specific size for one specific tooltip. I can't add a class to it because all the tooltips are se...
2018/03/01
847
3,219
<issue_start>username_0: Does anyone using the Serverless framework know if it's possible to use the same serverless deploy file to deploy to all three cloud providers if the underlying code is capable? Or are the serverless files specific to each cloud provider? Thanks<issue_comment>username_1: Assuming all your fun...
2018/03/01
425
1,406
<issue_start>username_0: How to pass data from Laravel to Vue.js component v-for ? I have tried the code below: ``` ``` But it returns: > > component lists rendered with v-for should have explicit keys. > > ><issue_comment>username_1: You don't use curly braces syntax in bindings. ``` ``` `events` array need...
2018/03/01
852
2,088
<issue_start>username_0: I've a CSV with the following data: ``` Customer Age A 10 B 53 C 20 D 2 E 55 F 12 ``` For that I'm using Pandas library to read the csv. My question is how I can group the Ages values in order to get a new column with intervals ...
2018/03/01
450
1,554
<issue_start>username_0: I get this error in swift 2 : > > exc\_bad\_instruction (code=exc\_i386\_invop subcode=0x0) > > > My code: ``` var learn = StructService() override func viewDidLoad(){ super.viewDidLoad() let sliderRecords = db.executeQuery ( "SELECT * FROM tablepagedesgin WHERE ...
2018/03/01
636
2,077
<issue_start>username_0: I want to hide the border of a button when it's disabled. When it's enabled, I set the border like this: ``` _btnInit.layer.borderWidth = 1; _btnInit.layer.borderColor = [[UIColor grayColor]CGColor]; ``` And when it's disabled, I want to delete the border. [![enter image description here](ht...
2018/03/01
1,260
3,399
<issue_start>username_0: I've tried so many solutions, it's giving me a headache! ```css * { box-sizing: border-box; } body { font: 15px/1.5 Arial, Helvetica, sans-serif; padding: 0; margin: 0; background-color: #fff; } /* Global */ .container { width: 100%; margin: auto; overflow: hidde...
2018/03/01
286
946
<issue_start>username_0: I'm currently working on a hotel management system's invoice (asp.net c#)... My question is that how to show the round off on a label example if the total amount is 8023.25 round off label should show .25 and totallabel should show 8023... Please can anybody help me with this {with code} ???<i...
2018/03/01
1,232
4,745
<issue_start>username_0: OK so this should be simple. I have a class ``` public class ProductConfig { public Category { get;set; } public Product { get;set; } } ``` These two navigation properties are also primary keys for the table. Declaring PRoductId and CategoryIds are redundat. How can get configure the p...
2018/03/01
8,669
31,334
<issue_start>username_0: I am trying to create a sample application with Flutter (fresh installation). [Android Studio](https://en.wikipedia.org/wiki/Android_Studio) is also installed (fresh installation). Here is the output of `flutter run` ``` flutter run No connected devices. ``` The output of `flutter doctor`: ...
2018/03/01
904
2,871
<issue_start>username_0: **Why is there a dollar sign at the starting of line 2 and line 3?** ```bash ➜ echo -e "hello\nworld" | perl -pe 's/$/\$/g' hello$ $world$ $% ``` Above, I am trying to add a dollar sign at the end of each line, but somehow it's appending a dollar sign at the beginning too. It does that when...
2018/03/01
423
1,379
<issue_start>username_0: Creating a non-clustered index on columns of type `varchar(max)` is not allowed in SQL Server. So, what is the maximum `varchar` length that a non-clustered index be created on?<issue_comment>username_1: The maximum number of bytes for a non-clustered Index (pre 2016) is 900: <https://learn.m...
2018/03/01
841
2,947
<issue_start>username_0: In `C++17`, `void_t` allow to easily do SFINAE with `class`/`struct` templates: ```cpp template struct test { static constexpr auto text = "general case"; }; template struct test())>> { static constexpr auto text = "has begin iterator"; }; ``` What's inside `void_t` is a type. My questi...
2018/03/01
614
1,880
<issue_start>username_0: I am trying to find tuples in a list with a certain symbol at the 2nd position. The list looks something like this: ``` list = [ (0, "a", 1), (1, "b", 2), (2, "c", 3)] ``` I can obviously find all the tuples with e.g. a "c" by running the following code: ``` for item in list: if item[1]...
2018/03/01
1,009
2,618
<issue_start>username_0: I have div to look like table, this is my code: ```css .cell { border: 1px solid red; display: table-cell } .tableLike { padding-bottom: 30px; display: table } .rowLike { display: table-row } .rowLike .cell:nth-child(1), .rowLike .cell:nth-child(3) { width: 15%; } ...
2018/03/01
945
3,451
<issue_start>username_0: If url hit to redirect to two navigation. **First condition** : Some countries product information are already built ``` www.example.com/product-india => product-india/index.php www.example.com/product-us => product-us/index.php ``` **Second condition** : remaining countries are going bui...
2018/03/01
1,099
3,908
<issue_start>username_0: I have two log groups generated by two different lambda. When I subscribe one log group to my elasticsearch service, it is working. However, when I add the other log group I have the following error in the log generated by cloudwatch : ``` "responseBody": "{\"took\":5,\"errors\":true,\"items\...
2018/03/01
1,157
4,188
<issue_start>username_0: We have upgraded Newtonsoft.Json from 10.0.3 to 11.0.1 and code that has been working previously does not work anymore. We have following JSON: ``` [{"mail-type":"registration","response":"250 OK id=1UjnNr-gdf-C0 ","invoice-id":,"email":"<EMAIL>"}] ``` and we call following method: ``` var...
2018/03/01
954
3,798
<issue_start>username_0: As per the [Java SE 8 Documentation](https://docs.oracle.com/javase/8/docs/api/java/io/BufferedWriter.html), the BufferedWriter class has the following methods of its own(w.r.t writing data): ``` write(char[] cbuf, int off, int len) write(int c) write(String s, int off, int len) ``` As I con...