date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
1,674
3,941
<issue_start>username_0: i have a `string code= "\0\u0001\0\0\0????\u0001\0\0\0\0\0\0\0\u000f\u0001\0\0\0\u001f\u0001\\ABC01\0\0\0\u001f\0\0\0\u0002\DEF\01\0\0\0\u001f\0\0\0\u0003\\\GHI01\0\0\0\u001f\0\0\0"` i need to retrieve the data between u0001 and u0002 and u0002 and u0003 and so on. Output as: > > ABC,DEF, ...
2018/03/19
689
3,211
<issue_start>username_0: I have a swarm robotic project. The localization system is done using ultrasonic and infrared transmitters/receivers. The accuracy is +-7 cm. I was able to do follow the leader algorithm. However, i was wondering why do i still have to use Kalman filter if the sensors raw data are good? what wi...
2018/03/19
373
1,386
<issue_start>username_0: Code: ``` import { Component } from '@angular/core'; import { IonicPage, NavController } from 'ionic-angular'; @IonicPage() @Component({ selector: 'page-login', templateUrl: 'login.html', }) export class LoginPage { constructor(public navCtrl: NavController, public navParams: NavParams)...
2018/03/19
955
2,933
<issue_start>username_0: I'm using AzCopy to copy a file from local server to Azure and coming up with the following failed operation is the command is run from a batch file. If the same command is run from the command prompt the operation is successful. --- Run from a batch file - fails: ============================...
2018/03/19
742
2,712
<issue_start>username_0: I have some Git-related doubt. I have done some changes from master branch and by mistake I have commited to master branch. I did: ``` git add. git commit "my changed" ``` But I could not push to the master branch due to some issues. So I have created another branch and from that branch I d...
2018/03/19
615
1,988
<issue_start>username_0: I'm using Laravel 5.5 and have a question about routing. My route is like this ``` Route::get('/folder/{param}', 'PageController@getFolderTree'); ``` And I want to get all parameters after /folder/: <http://example.com/folder/com/example/app> -> I get /example/app How can it possible ?<is...
2018/03/19
3,220
11,392
<issue_start>username_0: I just cannot figure out how to get the result I'm looking for. Here's my code ``` import java.util.Scanner; public class StringInABox { public static void main(String[]args) { Scanner scan = new Scanner(System.in); System.out.println("Enter a phrase or word!"); String ...
2018/03/19
3,105
11,228
<issue_start>username_0: I am new to Material Design, and I have been reading about CardView. I am changing my app's layout and trying to use more of the Material Design Guidelines in it. According to Google, "Cards provide context and an entry point to more robust information and views," this is the layout that I came...
2018/03/19
3,190
11,387
<issue_start>username_0: I am currently using the datasets at <https://www.w3schools.com/sql/trysql.asp?filename=trysql_select_all> to learn SQL. The question I have been given is "Generate a list of all the Customers and the total cost of the Orders they have place – try displaying the total cost to 2 decimal places...
2018/03/19
2,874
9,458
<issue_start>username_0: Normally i use this code for echo page rows. It's work good. ``` $query = "SELECT * FROM table WHERE id = '$id' "; $result = mysqli_query($db_mysqli, $query); $row = mysqli_fetch_assoc($result); $page = $row['page']; echo $page; ``` ..... Now i use `bind_param` this code for echo page rows....
2018/03/19
1,014
3,018
<issue_start>username_0: Suppose I have data points: ``` x = [(1, 2), (1, 5), (1, 6), (2, 4), (2, 5), (2, 7), (3, 1), (3, 5), (3, 6)] y = [2.3,5.6,9.0,8.6,4.2,13.5,11.0,1.3,5.0] ``` Now I want to predict the value of `y` for some new pairs, say `(2,3),(3,4)` Suggest me a python code for the same. I have tried with...
2018/03/19
209
689
<issue_start>username_0: I am unable to build a simple hello world application using clang-6.0 on bionic beaver, the build command fails with below error. ``` clang++-6.0 -std=c++17 -stdlib=libc++ hello.cc -o hello /usr/bin/ld: cannot find -lc++abi clang: error: linker command failed with exit code 1 (use -v to see...
2018/03/19
357
1,232
<issue_start>username_0: Currently I'm using this pattern in code: ``` module.exports.getMySQL = () => { return process.env.CLEARDB_DATABASE_URL || config.get('MySQL').connection; } ``` however, node-config claims to be able to integrate these variables into a file as such. <https://github.com/lorenwest/node-conf...
2018/03/19
384
1,094
<issue_start>username_0: `json` file like this: ``` {"authors":[{"ids":["4888852"],"name":"<NAME>"},{"ids":["3325893"],"name":"<NAME>"},{"ids":["5316482"],"name":"<NAME>"}]} {"authors":[{"ids":["4836831"],"name":"<NAME>"},{"ids":["4061357"],"name":"<NAME>"}]} {"authors":[{"ids":["4888852"],"name":"<NAME>"},{"ids":["40...
2018/03/19
502
1,743
<issue_start>username_0: I'm trying to set the background color of a text both either to a color, or to 100% transparent (whatever is easiest) but I'm struggling to achieve either. I've tried "bgColor" as per some other elements but no luck :( ``` $textbox = $section->addTextBox( array( 'marginTo...
2018/03/19
413
1,344
<issue_start>username_0: I am trying to create a few rows, with 2 columns. First column is description text, and the 2nd, is an amount. The first column shouldn't word-wrap, and as it's text, may take around 80% of the row. The 2nd column is an amount, should be right justified. But when I do the code below, each col...
2018/03/19
491
1,483
<issue_start>username_0: I have a json file that comes like this ``` { "report": { "description": "Average of the quantity of items per person (total and just non-infected)", "average_items_quantity_per_person": 164.7473903966597, "average_items_quantity_per_healthy_person": 172.29787234042553 } } ``...
2018/03/19
499
1,209
<issue_start>username_0: I have a list containing 600+ elements. The `summary(list)` shows that the elements have a Mode which is either a `"list"`, `"character"` or `"logical"`. How can I remove all the elements that do not have a Mode as `"list"` without having to manually go through and remove them individually? Th...
2018/03/19
396
1,355
<issue_start>username_0: I need to align this long text and it should start from left. As shown in the following image the end of the text is nicely displayed and start is hidden. How to start the text from left, ``` alignText: 'left' ``` didnt work. ``` Geocoder.geocodePosition({ lat: origin.latitude, l...
2018/03/19
659
2,272
<issue_start>username_0: I get the following error while restoring database from dump file on server: > > ERROR: relation "table\_id\_seq" does not exist > > LINE 1: SELECT pg\_catalog.setval('table\_id\_seq', 362, true); > > > * my local psql version is 10.2 * server psql version is 9.6.8 Here is my dump co...
2018/03/19
1,551
5,149
<issue_start>username_0: This is my HTML page. In this page I have a textbox and three buttons as shown. ```html $(document).ready(function(){ $("button").css("color","green"); }); Enter First Second Three ``` If I type in "First" in the textbox and enter I want the button with the id "First" to have it'...
2018/03/19
259
888
<issue_start>username_0: i have party id but i want to get party\_name from party table and made a function but its not working can anybody please correct it where i am wrong? ``` function get_partyname($party) { global $database; $sql = 'SELECT party_name from party WHERE id= '.$party; $result = $conn->query($sq...
2018/03/19
761
2,344
<issue_start>username_0: ``` root@sungil:~/fabric-samples/first-network# export CHANNEL_NAME=mychannel root@sungil:~/fabric-samples/first-network# ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME 2018-03-19 13:11:51.489 KST [common/tools/configtxg...
2018/03/19
451
1,382
<issue_start>username_0: Please [check link](https://codepen.io/soorajbala/pen/JLbOgq?editors=1100) for more details on my code. I need to have the placeholder image aligned to left of the screen i.e. to the bank white space as illustrated by the shared code. ```css * { margin: 0; padding: 0; } main{ width...
2018/03/19
279
1,147
<issue_start>username_0: **I have 3 application running on Apache server. When restart server all application get restarted. Anyone can explain how to restart single application without affecting other applications in linux.** Thanks in advance!<issue_comment>username_1: You can't restart Apache for a single website. ...
2018/03/19
1,953
7,691
<issue_start>username_0: I am working on a little tool that allows the selection of a single file. Where it will calculate the `SHA2 hash` and shows it in a simple GUI then takes the value and checks if that hash is listed in a blacklist text file. If it is listed then it will flag it as dirty, and if not it will pass ...
2018/03/19
572
2,185
<issue_start>username_0: I am trying to deploy a stack of services in a swarm on a local machine for testing purpose and i want to build the docker image whenever i run or deploy a stack from the manager node. Is it possible what I am trying to achieve..<issue_comment>username_1: On Docker Swarm you can't build an ima...
2018/03/19
730
2,708
<issue_start>username_0: This started just today, in the past I have been able to upload to repos without issue. When I tried to add a new project to a new repo, I was given an error "cannot connect to the repmote repository at in the gui window. At first I suspected a connection problem so i tried to push another, e...
2018/03/19
1,035
4,209
<issue_start>username_0: I have been reading about unit tests & [Clean architecture](https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html) and tried to implement something that would involve those two things. It is my understanding that a Clean architecture is structured so that the methods of th...
2018/03/19
834
2,635
<issue_start>username_0: I have generated a list of buttons , and would like each one to independently change colour when click, so they go red/green alternately on each click. ``` php $getInfo = getAllRows(); $button = '<button type="button" id ="toggle" ';?> //there are 5 values to iterate over php foreach ($getIn...
2018/03/19
763
2,327
<issue_start>username_0: I have some basic html: ``` ``` JS ``` $("button").on("click", function() { var pathClass = $("path").attr("class"); var curClass = $(this).attr("data-date"); if($(this).hasClass(curClass)) { <-- save the other class `BYE` in a variable --> } }); ``` I am trying to save in ...
2018/03/19
812
2,465
<issue_start>username_0: I am new to graphQL, When I am trying to define a schema with hyphen/dash it shows error. But underscore is not making any issues. ``` # Type of Hello enum HowAreYou{ Hello-Hello Hai-Hai } throw (0, _error.syntaxError)(source, position, 'Invalid number, expected digit but got: ' +...
2018/03/19
675
2,559
<issue_start>username_0: I want to make a validation when the user clik the jbutton1 if the textboxt field empty the jlabel value will show "Input name cannot be empty". I'm beginner. Here my false code : ``` private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { if(jText...
2018/03/19
475
1,513
<issue_start>username_0: I am trying to group items within a PHP foreach by their 'field->value' and get the sum of each group separately. This code below works, but I feel like there is a more efficient way of doing it? Thanks in advance. ```html php $number_1 = 0; $number_2 = 0; $number_3 = 0; foreach ( $fie...
2018/03/19
418
1,498
<issue_start>username_0: I have a javascript function using jQuery to make a POST request to a web service. The web service response has a header "Set-Cookie: name=value; domain=api.mydomain.com; path=/", and a JSON body. I expected the browser to set the cookie, but it does not. Am I mistaken about how this should wo...
2018/03/19
450
1,614
<issue_start>username_0: I have imported a .csv file in my python program which contains a number of columns using pandas module. In my code, I just imported the first three columns. The code and the sample file are as follows. ``` import pandas as pd fields = ['TEST ONE', 'TEST TWO', 'TEST THREE'] df1=pd.read_csv('Li...
2018/03/19
813
2,602
<issue_start>username_0: **Using google finance & yahoo finance currency conversion for codeigniter.. Worked fine for 2-4 months but now suddenly conversion getting disable in between??** My Code Snippet (Helper File Code): ``` php if (!function_exists('convertCurrency')) { function convertCurrency($amount,$fro...
2018/03/19
910
3,471
<issue_start>username_0: I'm creating an activity for Sign up and Login with Firebase I have a User class like this ``` public class User { private final String mProviderId; private final String mEmail; private final String mPhoneNumber; private final String mName; private final Uri mPhotoUri; } ...
2018/03/19
476
1,626
<issue_start>username_0: I'm new to programming so the question may be a little simple for most of the users, here's my question: I want to use innerHTML to send info to a div tag that I have in my HTML ``` //I want the info to print inside this div ``` This is my JS code: ``` function asterisks(){ var line=...
2018/03/19
867
3,024
<issue_start>username_0: I facing some error when i want to send some data on the server. And this the problem is when i converting the image into Base64 code, then it will create some problem. Please help me to resolve this issue. The data could not be in correct format and status code is 500. I don't know how to reso...
2018/03/19
269
1,151
<issue_start>username_0: I have some experience with Angular 1.x, and right now I am building a stack for couple of new projects. * I want to have responsive grid, so I would like to use Bootstrap. * I want to use Angular, so I am going with latest Angular * I want to have material design... so I can choose <https://m...
2018/03/19
357
1,329
<issue_start>username_0: Am opening the aspx page in a popup from Window.open using javascript as below. ``` function OpenPopupWindow() { var userWidth = screen.availWidth; var userHeight = screen.availHeight; leftPos = (userWidth - 500) / 2, topPos = (userHeight - 500) / 2; ...
2018/03/19
507
2,054
<issue_start>username_0: I am trying to add splash screen to my react native android app but its giving me weird behaviour whenever I get a (remote/local) notification and on click to the notification component mounting the screen again that already mounted by showing splash again. I added splash by following [this art...
2018/03/19
510
1,651
<issue_start>username_0: * if there are five "short numbers" or all six are "short numbers" (short number is 1 <= number < 25) * if there are five "large numbers" or all six are "large numbers" (large number is defined as 25 <= number <= 49) * if at least five out of six numbers are even * if at least five out of six n...
2018/03/19
418
1,423
<issue_start>username_0: **Below is my code** ``` HTML/PHP: php $nay = $row['id']; ? ``` **Script:** ``` var idMap; function myFunction(id) { var x = document.getElementById("<?php echo $nay; ?>"); if (x.type === "password") { x.type = "text"; } else { x.type = "password"; } } ``` **Desire Outp...
2018/03/19
473
1,620
<issue_start>username_0: Trying to learn how to get a role name from the role table by linking it to the user table with role\_id in user table and user\_id in the role table. I'm getting this error ``` Class 'App\Role' not found (View: C:\ ``` All of my Role related files all reference role and files are names, Ro...
2018/03/19
296
811
<issue_start>username_0: Draining of Dataflow streaming job does not end while 1 days. No error log on stack driver also. job ID is > > 2018-03-09\_00\_40\_49-15224076611250277770 > > > 2018-02-12\_22\_35\_23-4736481063361562693 > > > What's the problem? And, How can I know when this drainig job complete? (p...
2018/03/19
691
2,188
<issue_start>username_0: I have included a gif image in react native project and its working perfectly in IOS without any issues. my Js file ``` ``` For android, I came across a library(FRESCO) which supports gif in android. > > compile 'com.facebook.fresco:animated-gif:1.8.1' > > > Android build.gradle ```...
2018/03/19
2,062
6,784
<issue_start>username_0: Edit: When I first click the button, the text is printed in the left column (no matter which selection is made). When I click the button again, the text is printed in the right column (again, irrespective of the selection. I really don't get it. I'm trying to print input from a form into a div...
2018/03/19
1,904
6,312
<issue_start>username_0: i want to update two columns "ORDER\_NetTotal" which is of type TEXT and "ORDER\_TOTAL\_QTY" which is of type INTEGER with a where condition on "DBHelper.ORDER\_CONFIRM\_MASTER\_ID" which is primary key. The problem is that "ORDER\_TOTAL\_QTY" gets updated while "ORDER\_NetTotal" does not get u...
2018/03/19
2,645
9,006
<issue_start>username_0: I am integrating my website with my phone to send sms using smsGatway.me i have already downloaded the apk every thing is fine the problem is with the php code i have downloaded from their website it has many errors This is the oho code ``` php class SmsGateway { static $baseUrl = "http...
2018/03/19
1,160
3,931
<issue_start>username_0: Hi I have a list with Person class as follows ``` public class person { public int age; public string name; } ``` I am trying to do the following. ``` static void Main(string[] args) { List person1 = new List(); person1.Add(new person { age = 10, name = "P1" }); person1.Add(ne...
2018/03/19
1,882
7,425
<issue_start>username_0: I'm seeking help on how to load a data stored in a Firebase Database into a `recyclerview`. The below screenshot indicates how I would like for the data to be structured when loaded into the `recyclerview`. I am able to access the data from individual paths such as "Upcoming/Events/03/23" us...
2018/03/19
2,014
7,642
<issue_start>username_0: I have 3 pages to implement this scenario. Currently, 1. If I go to the first page and, click to navigate to the 2nd page. And then, on the 2nd page, I click the back button. It works fine (i.e, Navigates to 1st page). 2. Now, from 1st page, I go to the second page and, click to navigate to t...
2018/03/19
1,720
6,613
<issue_start>username_0: When I am trying to run one of my Java application (which is deployed in IBM Websphere App server), I am getting the below error, > > java.lang.UnsatisfiedLinkError: PATH/file.so (EDC5253S An AMODE64 > application is attempting to load an AMODE31 DLL load module. > (errno2=**some\_address**...
2018/03/19
1,636
6,349
<issue_start>username_0: I got this question from one of the Person:- A user enters the software name in this format `\_\_.tar.gz` Like: `OW_XYZ_5.4.tar.gz` Find if the input file name is in valid formate(tar.gz) and if it contain all 3 part of the name. Please help me to solve this question using javascript/jquery...
2018/03/19
1,134
3,999
<issue_start>username_0: Basically an integer variable should allow only integer values to be set for its variable. Then how come such special words as follows are allowed? ``` int a = 200L; int a = 200U; int a = 200F; ``` I found this when i run the program, it ran perfectly without giving any error. Other letters ...
2018/03/19
393
1,237
<issue_start>username_0: Suppose I have table `employee` ``` +--------------+--------+------------+ | id | e_name | leder_id | +--------------+--------+------------+ | 1 | abc | 2 | | 2 | def | 4 | | 3 | ghi | 2 | | 4 | jkl ...
2018/03/19
537
1,702
<issue_start>username_0: I am trying to upload files larger than 1Mb with spring boot ``` hereorg.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes. at org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIt...
2018/03/19
781
2,920
<issue_start>username_0: I am trying to display a simple form (3 fields) on a webpage using Django but no fields are displaying - see code below. I've gone through the Django doc, MDN doc, most of the StackOverflow posts here, but it's still not working. I was able to see, using {% debug %}, that there is no object ...
2018/03/19
699
2,210
<issue_start>username_0: I have a problem with my ajax, it can't display data from database. **Controller** ``` public function rating() { $rating = $this->db->select_avg('hasil_rating') ->get('tb_rating')->row_array(); echo json_encode($rating); } ``` **Ajax** ``` function rate() { $.ajax({...
2018/03/19
832
3,019
<issue_start>username_0: I had been trying to store a field as type keyword to support case-sensitive text search, But when I try to store text with length above 32766 characters it is failing to store it, giving the below exception ``` Elasticsearch exception [type=illegal_argument_exception, reason=Document con...
2018/03/19
1,013
2,929
<issue_start>username_0: I am trying to make the deploy of my microservice in docker, but I have a problem with the petitions, I made the MS in dotnet core 2 with postgresql in Ubuntu 16.04. I don't know if the error is the dockerfile or the docker-compose.yml or the deploy. I have these files like this: ### dockerfil...
2018/03/19
343
1,066
<issue_start>username_0: I'm new to regex, so I've done a bit research. My filter should only allow: * a-Z * 0-9 (meaning 0 to 9) * () * [] I've found [this](https://stackoverflow.com/questions/2896450/allow-only-a-za-z0-9-in-string-using-php) regex: ``` "/^[a-zA-Z0-9]+$/" ``` I edited it to allow () ``` "/^[a-zA...
2018/03/19
533
1,492
<issue_start>username_0: I have 2 tables as follows: tbl\_emp ``` emp_code name 1 A 2 B 3 C 4 D ``` tbl\_from\_to ``` col_from col_to 4 2 1 2 2 3 3 4 ``` what I wanted is an output like this: ``` res_from res_to D ...
2018/03/19
646
1,705
<issue_start>username_0: Schema is like this ``` { "_id":ObjectId('5aaa41f96f69440f82ef45a7') "name":"test", "password" : "<PASSWORD>", "userInfo" : { "userName" : "usha", "organization" : [1,2] } } ``` If i am using a query like this then it is replacing userInfo object rather then updating i...
2018/03/19
620
1,889
<issue_start>username_0: I'm trying to write a simple code in order to read the stdin then use it so I tried to type little program in order to put my stdin in a defined size table and it looks like this: ``` #include #include #include #include int main(int argc, char \*argv[]){ int c , i = 0 ; char str[1024];...
2018/03/19
571
1,888
<issue_start>username_0: I want to implement a process as below: When a http request is in progress, display a loader. When the requests finish hide the loader.<issue_comment>username_1: > > I assume that you want to show a loader when a http request is on progress. > > > ``` import axios from 'axios' export ...
2018/03/19
2,387
9,153
<issue_start>username_0: I am inserting and updating the records through the same button. But I want the primary key(req\_no) to be auto generated during insert operation only and not on update. How to do it ? Getting the error: Failed to convert parameter value from a String to a Decimal at cmnd.ExecuteNonQuery(); h...
2018/03/19
687
2,210
<issue_start>username_0: tell me please how the figure for example 1222333,00 make the format thus 1 222 333.00 in php ``` echo "|"; echo " "; echo $rs->Fields(1)->Name(); echo " |"; echo " "; echo round(($rs->Fields(1)->value\*1),3).""; echo " |"; echo " "; ```<issue_comment>username_1: `OleDbType.Numeric`...
2018/03/19
270
963
<issue_start>username_0: My question is about how to make searching query with two option. for example search by name and by keyword with sqlite database in android. can i make two tables for name and keyword or just one table?<issue_comment>username_1: Something like this should work: ``` Cursor cusror = db.rawQuery(...
2018/03/19
701
2,759
<issue_start>username_0: I am new to react and was experimenting when I noticed a behavior with controlled form elements. I have a controlled input element whose value is bound to the state of the parent component and its onChange handler takes the typed value from the user and updates the state. So every-time, the use...
2018/03/19
666
2,083
<issue_start>username_0: For the given array ``` int arr[0] = {0,1,0,0,0}; ``` I need to return the starting index of the longest run of 0's So in this case `findIndex(arr)` would return another array `result = {2,3}`. 2 represents the starting index of the run and 3 represents the length of the run. Here's my a...
2018/03/19
356
1,343
<issue_start>username_0: I have some misunderstanding issues with HL7 specially in PID segment. if we have a patient has two different names, how can we build the PID-5 using the two names? Example the previous name <NAME> the current name <NAME> Any idea guys<issue_comment>username_1: PID-5 is a repeating field: ...
2018/03/19
1,188
4,165
<issue_start>username_0: i am trying to submit form after 10 seconds with form value. I am not able to include setTimeout with submit function. ```js setTimeout(function() { $('#FrmID').submit(); }, 10000); $(document).ready(function() { $("#submit").click(function() { var grp_id = $("#grp_id").val(); ...
2018/03/19
1,062
3,217
<issue_start>username_0: I have two arrays ``` Device = ["Washington DC","Newyork","San Diego","Florida"] Device1 = ["Washington DC","Newyork","San Diego","Florida"] ``` when I do this to delete spaces from elements of one of the arrays ``` Device.each do |x| x.gsub!(' ','') puts x end ``` spaces from eleme...
2018/03/19
1,470
5,053
<issue_start>username_0: Recently I am trying to solve a problem where I have to render a document tree menu (hierarchical) from a nested JSON coming from a request call. **Say my JSON looks like this** ``` [{ "title": "Food", "path": "/root", "children": [{ "title": "Veg", "path": "/root/...
2018/03/19
928
3,048
<issue_start>username_0: I am a newbie to Selenium and HTML. I'm testing a website using Selenium WebDriver, but the driver can't find an element. My code is: ``` browser = webdriver.Chrome() wait = WebDriverWait(browser, 10) data = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, '#search_result_former > div....
2018/03/19
465
1,634
<issue_start>username_0: I am trying to retrieve the values of `wInstockArray` in a table view cell. Currently the the `wInstockArray` is empty I am inserting a string on a button click and appending in array. but when I retried the values in `cellForRowAtIndexath` method it gives error > > Index out of range > > ...
2018/03/19
493
1,638
<issue_start>username_0: I have this model ``` class Permission extends Model { public function details(): MorphToMany { return $this->morphedByMany('App\Models\Details', 'model', 'model_has_permissions', 'permission_id', 'model_id'); } } class Details extends Model { public function permi...
2018/03/19
748
1,930
<issue_start>username_0: I need a macro that will apply the below-mentioned formula in column J if the value of a cell in column C is "Hits\_US" and the value of a cell in column D is "harry". Below is the formula ``` =((Column G*32)+(Column H*28)+300)/60 ``` Please note that there will be other values in column J. ...
2018/03/19
752
2,933
<issue_start>username_0: ``` Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ `setValue:forUndefinedKey:`]: this class is not \*\*key value coding-compliant\*\* for the key signinbutton.' ``` I'm getting an error after building and launching my iOS app. I see that other people have got th...
2018/03/19
494
1,588
<issue_start>username_0: Is it possible to train the current deeplab model in TensorFlow to reasonable accuracy using 4 GPUs with 11GB? I seem to be able to fit 2 batches per GPU, so am running a total batch size of 8 across 4 clones. Following the [instructions included with the model](https://github.com/tensorflow/m...
2018/03/19
376
1,466
<issue_start>username_0: I was trying to use acorn.js along with yeoman to add code to existing js files .I have tried to work with esprima and acorn to do this job but I cannot find any documentation about adding node to the AST.<issue_comment>username_1: I believe this is what you are looking for <https://github.com/...
2018/03/19
734
2,873
<issue_start>username_0: What is the difference between writing Spring boot REST API backed SPA 1. inside one project, javascript served from Spring's app server 2. two projects, Spring backend server app and javascript frontend in separate node server Are there any benefits of the first over the other other. For me...
2018/03/19
957
3,465
<issue_start>username_0: Since std::vector::push\_back(obj) creates a copy of the object, would it be more efficient to create it within the push\_back() call than beforehand? ``` struct foo { int val; std::string str; foo(int _val, std::string _str) : val(_val), str(_str) {} }; int main() { s...
2018/03/19
1,219
3,882
<issue_start>username_0: I running Kubernetes cluster on premises, initialized using KubeAdm. I configured [flannel](https://kubernetes.io/docs/concepts/cluster-administration/networking/#flannel) networking plugin. When I exposing service as a NodePort, I'm not able to receive external IP. What do I miss? [![enter i...
2018/03/19
1,663
4,348
<issue_start>username_0: I want to change value in pandas DataFrame by condition that data[Bare Nuclei'] != '?' ``` import pandas as pd import numpy as np column_names = ['Sample code number', 'Clump Thickness', 'Uniformity of Cell Size', 'Uniformity of Cell Shape', 'Marginal Adhesion'...
2018/03/19
1,223
4,488
<issue_start>username_0: Facing an error in a PHP page which was working fine before i made some minute changes. The error cause is : $type = (int)$\_POST['type']; Error is : syntax error, unexpected '' (T\_ENCAPSED\_AND\_WHITESPACE), expecting identifier (T\_STRING) or variable (T\_VARIABLE) or number(T\_NUM\_STRING...
2018/03/19
859
2,827
<issue_start>username_0: I am using Adonis 4.1.0 and `Adonis-websocket` is only been available for `v3`. Can anyone tell me workaround for using `socket.io` with Adonis 4.1.0?<issue_comment>username_1: apparently they have been working on this not long ago, it was based on `socket.io` but because of some issues like me...
2018/03/19
805
2,780
<issue_start>username_0: Hi my knowledge on javascript and I have been getting help on here which was quite helpful (thanks everybody!) but it is still very limited and basic. Basically below is I will prompt a pop-up that displays the answer to the value. The thing is from the coding I found below if I had to insert a...
2018/03/19
756
2,854
<issue_start>username_0: In my component, there are 3-4 methods along with `constructor(){...}` and `ngOnInit(){...}`. In class, I've declared one variable `values:any=[]` which is initialized with some json data in one method named as `getData()` in the same class. ``` getData(){ this.service.getData().subscribe(re...
2018/03/19
632
2,178
<issue_start>username_0: I have a form, which has two fields: "product\_name" and "product\_q" and in my form i have an option to increase the number of fields in `product_name` and `product_q` ``` demo1 demo2 1 2 ``` and an action page like ``` public function order(){ $Product_q = $this->input->p...
2018/03/19
222
729
<issue_start>username_0: I was designing a website. I am having some issue on the Faculties Page. The Issue is as Follows. [![enter image description here][1]][1] I want the Div a to reach position b. without changing the responsivity. (Bootstrap if Possible) ```html ```<issue_comment>username_1: Not possible with ...
2018/03/19
249
883
<issue_start>username_0: I'm trying to use Cloud 9 but keep getting the following message during the deployment of the IDE: ``` "Your web browser does not have third-party cookies enabled" ``` I'm using Safari 11.0.3 and in the preferences-privacy the block all cookies box is unchecked. I can use Chrome but would pr...
2018/03/19
410
1,384
<issue_start>username_0: I am trying to run coded UI test in my local machine but everytime I run the test case I get the below message in my output window. And it is not running any test case. ``` ------ Run test started ------ UTA001: TestClass attribute defined on non-public class Raet.Testing.TestScripts.FlexBene...
2018/03/19
1,087
4,857
<issue_start>username_0: I'm using an Azure function like a scheduled job, using the cron timer. At a specific time each morning it calls a stored procedure. The function is now taking 4 mins to run a stored procedure that takes a few seconds to run in SSMS. This time is increasing despite efforts to successfully impr...
2018/03/19
586
1,552
<issue_start>username_0: Can you help me? I'm trying to make a PHP Regex to accept only: **A-Z**, **a-z**, **0-9**, **(**, **)**, **!** and accented words(**á**,**é**,**í**,**ó**,**ú** and **Á**,**É**,**Í**,**Ó**,**Ú**) to filter a list. I tried everyting and searched so much, and I'm not getting succcess... What shou...
2018/03/19
938
2,893
<issue_start>username_0: I have a Hash-map of type `String`, `ArrayList`. Two different `keys` are stored in the hash-map with list of values. Now i have to compare the values of different keys and extract the common value. How can achieve this functionality ? Following is the type of `Hashmap` that i am using: **E...
2018/03/19
726
2,650
<issue_start>username_0: Users only have to fill out one of two fields. How would I require this? And where would it be? I'm trying to put it in the save, but I believe it belongs elsewhere since the validationerror pops up as a Django error screen, and not a field validation error. Here's what I've tried: ``` c...