date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
1,656
6,226
<issue_start>username_0: Is there a way to get the ISO ALPHA-2 code (country code) from a **country name** such as United Kingdom = GB? I'm trying to achieve the nearly the opposite of the code below ``` //To get the Country Names from the CultureInfo foreach (CultureInfo cul in CultureInfo.GetCultures(CultureTypes...
2018/03/15
637
2,488
<issue_start>username_0: I am trying to look at the running mean and running variance of a trained tensorflow model that is exported via GCMLE (`saved_model.pb`, `assets/*` & `variables/*`). Where are these values kept in the graph? I can access gamma/beta values from `tf.GraphKeys.TRAINABLE_VARIABLES` but I have not b...
2018/03/15
346
1,228
<issue_start>username_0: I would like to remove the top left back button. I tried to check "Full screen" option, but the arrow is still here. I want to remove the back button because I have a button next to this button, and I don't want the user tap on it by mistake Thx [![enter image description here](https://i.st...
2018/03/15
686
2,521
<issue_start>username_0: **pretext:** ChestType is an enum ``` public enum ChestType { COMMON, GEMNGOLDCHEST, GODLYCHEST, ASSCHEST } ``` slotAndChestIndex is a ChestType?[] chestSlotsAndChestsSaved is an int[] (Sorry for the bad names) ``` slotAndChestIndex[i] = (ChestType?)chestSlots...
2018/03/15
1,009
3,335
<issue_start>username_0: I am trying to filter through an array of objects to find all values with an image extension then push the values found into their own array. Example: `imageArray = ["steve.jpg", "funimage1.jpg", "coolimage2.png","greatimage3.svg", "jimmysavatar.jpg" ...]`. Here is a jsfiddle to test: <https:/...
2018/03/15
1,582
5,683
<issue_start>username_0: ``` my_dic={"Vajk":"vékony","Bibi":'magas'} my_dic['Bibi'] 'magas' ``` We can see, that we need the ' to refer to the value for key 'Bibi'. But if want to use the same format in .format(), it gives this error: ``` print("úgy érzem, hogy Bibi nagyon {0['Bibi']}".format(my_dic)) Traceback (mos...
2018/03/15
3,402
10,713
<issue_start>username_0: I have created a server.keystore and then a client.keyStore with a client.crt which i used to client.truststore the server.keystore with alias devmyserverkey ``` /myserver_opt/jdk1.8.0_latest/jre/bin/keytool -genkey -alias devmyserverkey -storetype pkcs12 -keyalg RSA -keysize 2048 -keystore m...
2018/03/15
1,865
6,816
<issue_start>username_0: ``` while (choice != 6) { System.out.println(" "); System.out.println("Rainfall Analysis Menu"); System.out.println("1. Display total rainfall."); System.out.println("2. Display average daily rainfall."); System.out.println("3. Display day and amount of greatest rainfall.");...
2018/03/15
1,546
5,650
<issue_start>username_0: I am trying to use formula to copy a date value from a cell to another. But trying to add date format to `worksheet.write_formula()` causes the excel to to show the following alert [![enter image description here](https://i.stack.imgur.com/dpuEK.png)](https://i.stack.imgur.com/dpuEK.png) Here...
2018/03/15
514
1,949
<issue_start>username_0: I am trying to have the time display every second in an HTML page, in a text box, but I just get the error message that getElementByID does not exist. My code is below. Nothing displays with the code below. can you please correct me, or point out what I am missing? ``` function getTime() { ...
2018/03/15
545
2,052
<issue_start>username_0: We have purchased a react theme with the intent to use its component in our web application, and we ended up with some issues getting them to transpile, we got that solved. However, we're now running into issues with types. I believe the issue here is that typescript doesn't like that props do...
2018/03/15
397
1,312
<issue_start>username_0: If I do this: ``` my_string = 'nnn'; my_string = my_string.replace(/nn/g, 'n*n'); return my_string; //n*nn ``` I get this result `n*nn`, but I need to insert asterisk `*` between every occasion of `nn`. The result should be `n*n*n`. If `my_string = 'nnnn'`, the result will be `n*nn*n`, but ...
2018/03/15
529
1,569
<issue_start>username_0: I am facing an issue while selecting the following following timespan : ``` t:([] date:2#.z.d ; time: 10D21:28:47.425287000 10D12:18:23.287989000 ) date time -------------------------------- 2018.03.15 10D21:28:47.425287000 2018.03.15 10D12:18:23.287989000 ``` when i ...
2018/03/15
562
1,740
<issue_start>username_0: I am struggling with getting the result back for a dynamic query that is being called from a different stored procedures. Here is what I am trying to achieve. Procedure A: ``` CREATE PROCEDURE A @C1 int, @F1 int AS SET @SQL = 'SELECT ID FROM EMPLOYEE_TABLE WHERE '+@C1+' = +'@F1' E...
2018/03/15
7,383
19,058
<issue_start>username_0: In flow there is support for `$Compose` functions (see [recompose as example](https://github.com/acdlite/recompose/pull/523/files#diff-a3b2ae446242082dc9e5d0161d35703fL136)). However, I can't seem to find such a mechanism in typescript. it seems that the best typescript can do is something like...
2018/03/15
806
2,611
<issue_start>username_0: What I am trying to do is, to be able to select rows which do not have a specific class name, and push them into a new array. I know that there is `:not() Selector` and `.not() method` to help me with this. But the big problem is that I can't use `:not() Selector` with `$(this)` and tried usin...
2018/03/15
880
2,761
<issue_start>username_0: I've never cloned a private GitHub repository. So I followed GitHub's guide but it's still rejecting me. I have a Red Hat linux server on AWS. I did the following: 1. Ran `ssh-keygen -t rsa -b 4096 -C "< my github email address >"`. 2. Ran `eval "$(ssh-agent -s)"`. 3. Ran `ssh-add ~/.ssh/id_rs...
2018/03/15
609
2,228
<issue_start>username_0: **Question**: I'm looking for a way to configure Java to create new files with a particular permission set by default. **Problem**: I have a Spring Boot app which uses the following: * Log4J2 for logging * H2 for flat file databases * Ehcache for cached entities All of these libraries creat...
2018/03/15
398
1,518
<issue_start>username_0: How would I provide pundit authorization for a dashboard controller which provides data from various models? My DashboardsController looks like this: ``` class DashboardsController < ApplicationController before_action :authenticate_user! before_action :set_user before_action :set_busin...
2018/03/15
1,071
3,704
<issue_start>username_0: Currently I am attempting to create a dictionary which maps a selected item form a list view with a corresponding string output in a rich text box. I would like to bold specific text in the string, which will always be the same (constant) and also adding dynamic text to the string that would ch...
2018/03/15
1,051
4,214
<issue_start>username_0: I am developing a simple react-native app and am encountering an issue on TouchableHighlight: When pressing the `TouchableHighlight`, a new screen is displayed (using StackNavigator from `react-navigation`). After pressing the back-button and returning to the original screen, the `TouchableHig...
2018/03/15
822
3,153
<issue_start>username_0: I am building a software that uses WebSocket with the package NodeJS ws. I organised my networking around a module that is charged of receiving and sending the messages. Because i am using TypeScript, I want to use the type checking which can be pretty handy sometimes. So I constructed two type...
2018/03/15
523
1,959
<issue_start>username_0: Let's consider the following interface implementation: ``` Comparator stringComparator = (o1, o2) -> 0; ``` Does it violate the Liskov Substitution Principle?<issue_comment>username_1: In this specific case, no. Your example `Comparator` is simply saying that all strings are equal. This sati...
2018/03/15
1,389
4,583
<issue_start>username_0: I am trying to visualize russians regions. I got data from [here](http://global.mapit.mysociety.org), validate [here](http://geojson.io/) and all was well - [picture](https://i.stack.imgur.com/9ev9f.jpg). But when I try to draw it, I receive only one big black rectangle. ``` var width = 700, ...
2018/03/15
958
3,134
<issue_start>username_0: I'm running the below block of code on my computer. ``` /* Example code for Think OS. Copyright 2014 <NAME> License: GNU GPLv3 */ #include #include int var1; int main () { int var2 = 5; void \*p = malloc(128); void \*p2 = malloc(128); char \*s = "Hello, World"; printf ("Address of...
2018/03/15
335
1,337
<issue_start>username_0: I am trying to build a fitness app and I would like to build the user’s profile within the app but I would like to make it as quick and easy as possible for the user. I am able to extract the users stats such as height, body mass, birth date etc from HealthKit but is there a way for me to extra...
2018/03/15
739
2,897
<issue_start>username_0: I am trying to provide memory wrappers on CentOS and using clang compiler/linker. I wrote wrappers for the allocation functions (malloc et al) and rerouted the calls using -Wl,-wrap,malloc. This all works fine and I can see it in action. `void* mem = malloc(10); // routes to __wrap_malloc fr...
2018/03/15
607
2,295
<issue_start>username_0: If you have an `IEnumerable>`, say from ``` var ans = src.GroupBy(s => s.Field); ``` Is there a better way (rarely used LINQ method/variation) to convert to an `IEnumerable>` then nested `Select`s like so: ``` var ans2 = ans.Select(g => g.Select(s => s)); ``` For those that aren't underst...
2018/03/15
629
1,804
<issue_start>username_0: For a camera movement in three.js I need to calculate point `C` so to move the camera from point `A` to a certain distance `dist` to point `B`. ![scheme showing the point to find](https://preview.ibb.co/b1BDXx/Artboard_Copy_2.png)<issue_comment>username_1: So you need to calculate the coordina...
2018/03/15
1,018
2,865
<issue_start>username_0: I am trying to do update on xml file based on condition using AWK Script. Could anyone assist me on this? **students.xml** ``` 1 A 75 2 B 35 1 C 94 ``` **Code I tried so far** I am able to extract tag values using below code ``` BEGIN { RS="<[^>]+>" } { print RT, $0 } ``...
2018/03/15
799
2,094
<issue_start>username_0: I am trying to use `mutate` to create a new column with values based on a specific column. Example final data frame (I am trying to create `new_col`): ``` x = tibble(colA = c(11, 12, 13), colB = c(91, 92, 93), col_to_use = c("colA", "colA", "colB"), new_col = ...
2018/03/15
880
2,546
<issue_start>username_0: My current query: ``` select users.id as user_id, opportunities.id as op_id, opportunities.title, certificates.id as cert_id from opportunities join opportunity_certificates on opportunities.id=opportunity_certificates.opportunity_id join certificates on opportunity_certificates.certificate_i...
2018/03/15
1,582
4,191
<issue_start>username_0: I am trying to work with a data set that requires significant cleaning. I have one subject name that I cannot seem to remove the leading white space from. Example data: ``` Data <- dput(Data) structure(list(Teacher = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L,...
2018/03/15
909
3,350
<issue_start>username_0: I have tried to implement spring external configurations using Config Server. It is working fine for the very first time when the application is started but any changes to the properties file are not being reflected. I tried to use /refresh endpoint to refresh my properties on the fly but it do...
2018/03/15
571
1,953
<issue_start>username_0: Is there any dotnet core version of DocuSign.eSign Nuget package? or even source code I can fork? [DocuSign.eSign Nuget pacakge](https://www.nuget.org/packages/DocuSign.eSign.dll/) [Source code for C# client](https://github.com/docusign/docusign-csharp-client)<issue_comment>username_1: The e...
2018/03/15
2,359
7,993
<issue_start>username_0: I have a file called simple\_example.py, which consists of 2 functions: ``` # import the necessary packages import argparse class simple: @staticmethod def func1(): # construct the argument parse and parse the arguments ap = argparse.ArgumentParser() ap.add_a...
2018/03/15
2,341
7,627
<issue_start>username_0: I have been trying to test out submitting Pig jobs on AWS EMR following Amazon's [guide](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-pig-launch.html). I made the change to the Pig script to ensure that it can find the piggybank.jar as instructed by Amazon. When I run the script I ge...
2018/03/15
2,058
6,783
<issue_start>username_0: I am writing a function that builds and populates a tree-like data structure, using the `treelib` library. You create a tree as follows: ``` foo = Tree() ``` ...and go from there, which is standard enough. Here is what I have, simplified: ``` def make_special_tree(tree, arg1, arg2): tre...
2018/03/15
1,814
5,809
<issue_start>username_0: I know that the first letters printed are b c d e f. Why is 'g' not printed? when I is 5, 'f' is printed. The i is decremented to 4 so it should enter the for loop. Instead it doesn't enter despite i being less than 6 (strlen(arr)-1=6). ``` char* arr = "abcdefg"; //String int i; for (i = 1; i...
2018/03/15
988
3,915
<issue_start>username_0: I configured Firebase Remote Config A/B testing for Android, and we did rollout on at least 10K devices. For some reason, I see "0 users" in my A/B test after more than 24 hours. Firebase GMS version is: 11.8.0 Should it show A/B participants in real-time or it's ok to see 0 users after 24 ho...
2018/03/15
781
2,349
<issue_start>username_0: I have to write a pseudo code for an algorithm which sort n 2D points which are randomly distributed within the unit circle. I need to sort them by their distance from the origin 0,0 ( by Increasing Eucledian distance to the circle's origin). So I think they should be as a 2D array or a Map: ...
2018/03/15
728
2,132
<issue_start>username_0: I have 4 tables in SQL Server 2012. This is my diagram: [![enter image description here](https://i.stack.imgur.com/Q7tG4.png)](https://i.stack.imgur.com/Q7tG4.png) I have this query: ``` SELECT pc.Product_ID, d.Dept_ID, c.Category_ID, sc.SubCategory_ID FROM dbo.ProductConfiguratio...
2018/03/15
2,160
4,098
<issue_start>username_0: i need help with plotting the dataframe below in a bargraph which i'll add as well. ``` Month Base Advanced 2008-01-01 20.676043 20.358472 2008-02-01 -57.908706 -62.368464 2008-03-01 -3.130082 -5.876791 2008-04-01 20.844747 14.162446 2008-05-01 39.8...
2018/03/15
1,880
3,992
<issue_start>username_0: My goal is to have a slider refill itself when someone tries to lower itself but for some reason none of the code in my if statement will run. ```js //Keeps the slider full var slider = document.getElementById("myRange"); //Creates variable for slider position var output = document.getEle...
2018/03/15
1,472
5,070
<issue_start>username_0: I'm using scalamock to mock this class: ``` class HttpService { def post[In, Out] (url: String, payload: In) (implicit encoder: Encoder[In], decoder: Decoder[Out]) : Future[Out] = ... ... } ``` ...so my test class has a mock used like this: ``` val httpService = mock[HttpSer...
2018/03/15
1,696
6,004
<issue_start>username_0: It seems the [COCO PythonAPI](https://github.com/cocodataset/cocoapi) only support python2. But peoples do use it in python3 environment. I tried possible methods to install it, like ``` python3 setup.py build_ext --inplace python3 setup.py install ``` But `python3 setup.py install` will f...
2018/03/16
317
1,161
<issue_start>username_0: I am trying change divs of outside html. With jquery each function. But my code doesn't work. It must change spans's html to ExampleDesc1, ExampleDesc2, ExampleDesc3... ``` var desc; $('.example1 a').each(function () { var desc = $(this).attr('description'); $('.example2 span').each(fun...
2018/03/16
1,981
6,259
<issue_start>username_0: ``` public class ArrayTest{ public static void main(String[] args) { int array[] = {32,3,3,4,5,6,88,98,9,9,9,9,9,9,1,2,3,4,5,6,4,3,7,7,8,8,88,88}; for(int i= 0;i ``` this program work fine but when i compile it, it print the values again and again i want to print the dup...
2018/03/16
737
2,241
<issue_start>username_0: According to the [rowversion docs](https://learn.microsoft.com/en-us/sql/t-sql/data-types/rowversion-transact-sql) > > Each database has a counter that is incremented for each insert or update operation that is performed on a table that contains a rowversion column within the database. > > ...
2018/03/16
749
2,375
<issue_start>username_0: My SQL query isn't correctly counting Legal Description Parcel Numbers (LDPARC) and it is duplicating accounts (ACCTNO). As you likely know, ACCTNOs can have more than one LDPARCs. So the table LDPARC is in tbl\_Loan\_Legal\_Descriptions is my issue. When an account has multiple LDPARCs, I need...
2018/03/16
825
2,657
<issue_start>username_0: I simply want to know if I can make whats in the parenthesis of this if statement simpler. ``` if (augend[i]=='0' && partialSum[i]=='0' && carry=='0') ``` Such as `(augend[i] & partialsum[i] & carry == '0')`. I'm still learning so i'm not quite sure if something like this is possible.<issue_...
2018/03/16
1,099
4,399
<issue_start>username_0: I have several materialized views in Oracle which I can query to get information. Now I want to create several tables with foreign keys referencing those MVs and to do so, I have already "added" the corresponding primary keys to the MVs (as stated in [adding primary key to sql view](https://s...
2018/03/16
1,662
7,173
<issue_start>username_0: I am getting intermittent deadlocks when using `HttpClient` to send http requests and sometimes they are never returning back to `await SendAsync` in my code. I was able to figure out the thread handling the request internally in `HttpClient`/`HttpClientHandler` for some reason has a `Synchroni...
2018/03/16
1,592
4,698
<issue_start>username_0: I am making API calls and getting back nested JSON response for every ID. If I run the API call for one ID the JSON looks like this. ``` u'{"id":26509,"name":"ORD.00001","order_type":"sales","consumer_id":415372,"order_source":"in_store","is_submitted":0,"fulfillment_method":"in_store","ord...
2018/03/16
1,689
5,846
<issue_start>username_0: I am trying to install istio. I can easily package the helm chart if I clone the repo from github but I am just wondering if there is a helm chart repo that I can use?<issue_comment>username_1: Yes there is. A quick google search turned this up: <https://github.com/istio/istio/tree/master/insta...
2018/03/16
1,980
6,536
<issue_start>username_0: Using PHP, how do I convert this string: ``` $str = "Lorem ipsum dolor sit amet 00541000004UDewAAG consectetur adipiscing elit 00541000003WKoEAAW eiusmod tempor incididunt 00541000003WKmiAA"; ``` Into an array like this: ``` $messageSegments = [ ["type" => "Text", "text" => "Lorem ipsum ...
2018/03/16
1,881
6,324
<issue_start>username_0: I don't have idea how can i deleted all completed tasks from my json file and my app view: ``` json: { "list": [ { "name": "Cleaning", "desc": "by me", "date": "11-3-2018 13:38", "active": "false", "id": 1 }, { "name": "Wash the dishes", ...
2018/03/16
923
3,472
<issue_start>username_0: I have a React Native, React hybrid app. For React Native i am using react-native-elements. My app is run using Expo and was built out with the react-native init. I am getting the Material Icons (missing) RSD; [![Material Icons missing](https://i.stack.imgur.com/DcXLX.png)](https://i.stack.im...
2018/03/16
894
3,296
<issue_start>username_0: I am in school and got an assignment to write a C program that takes an input from a user then scans a file and returns how many times that word shows up in a file. I feel like I got it 90% done, but for some reason I can't get the while loop. When I run the program it crashes at the while loop...
2018/03/16
1,627
5,262
<issue_start>username_0: We are trying to use Google OAuth in our product. The flow would be to get Client get the auth from the users and send the token to server. On server side I need to verify the token is valid. For now, I am using OAuth2Sample provided by Google as client. when I verify the sent token on server s...
2018/03/16
282
928
<issue_start>username_0: I am having issues with weird gaps between divs. Divs are collapsable and it appears it is causing an extra couple of pixels between them. It's not margin, just a gap. Here is a sample of my code. The left side "GameName" menu item is clickable. I am creating the collapse effect by just a...
2018/03/16
1,174
3,855
<issue_start>username_0: I'm using also `ReduxLazyScroll` for infinite scroll effect and it worked but before it was just `ul -> li` list. Now I want my app to generate 3 cards one beside another in bootstrap-grid style, like so: ``` .col-3 .col-3 .col-3 ``` And I have some logic problem, which I can't wrap my h...
2018/03/16
251
998
<issue_start>username_0: I am using the angular4, my code below is trying to display the information basesd on the state variable. ``` something ``` I am using '||' to represent the 'or' statement. now the state variable = 'canceled', usually it should not display 'something', however in the test 'something' te...
2018/03/16
359
1,459
<issue_start>username_0: I have a requirement in Logic Apps where I need to do HTTP GET from a website URL which gives a file which I need to download to Azure File Storage. I am able to call the downloadable URL but not sure how to go about downloading the file to Azure File storage directory. Please let me know you...
2018/03/16
593
2,307
<issue_start>username_0: My situation is that I need to query from another database and show the result in my application. Both databases are on the same server. I came up with an idea on creating SQL-View in my database which would query the other database for values that I want. But I am not quite sure on how I can c...
2018/03/16
642
2,383
<issue_start>username_0: For some reason in my program, the + sign adds two digits together, in my code: ``` numerator1 += wholenumber1 * denominator1; ``` If `wholenumber1` is `1` and `denominator1` is `4`, then the `numerator1` is `14`... I found this out by: ``` console.log(numerator1); ``` This is using input...
2018/03/16
2,096
7,499
<issue_start>username_0: I'd like to use Micrometer to record the execution time of an async method when it eventually happens. Is there a recommended way to do this? Example: Kafka Replying Template. I want to record the time it takes to actually execute the sendAndReceive call (sends a message on a request topic and...
2018/03/16
595
1,849
<issue_start>username_0: Any idea how to obtain the source code for Kotlin's stdlib? In the screencap below, I don't have any option to download the source code like other maven libraries. I'm using the following Kotlin dependency: ``` org.jetbrains.kotlin kotlin-stdlib-jdk8 1.2.30 ``` [![enter image descripti...
2018/03/16
1,371
4,885
<issue_start>username_0: My intersect method keeps returning true and setting my "score text" to intersect detected when my images do not collide, instead it changes the text as soon as the emulator starts. Please notify me if more code is needed and check back within 10 minutes. Thanks! -this is all my code and collis...
2018/03/16
632
2,304
<issue_start>username_0: I have two applications. From one applications we are coming to second applications. from the first application <http://localhost:8080/myfirst-portal/?account_number=RDQsssyMDE=&firstname=UssssGhpbA==&lastname=RGFsssuY2U=&role=csssG9ydGFsZmllbGR1c2Vy> while coming from first application to se...
2018/03/16
534
2,229
<issue_start>username_0: I'm new to PostScript and I've been tasked to create a postscript file which is supposed to show a small image. The thing is that I can't rely on the run operator, as one of the premisses is that the file is kinda "self-contained". I've seen quite a few solutions online but they were either in...
2018/03/16
749
2,624
<issue_start>username_0: I'm attempting to use to Python Tesseract to get text fron an image on my macos desktop and am running into an error that I cannot figure out. I'm running macos High Sierra 10.3.2 My directory is set to my desktop (where the image lives) and I already specified the path to my tesseract executa...
2018/03/16
951
3,441
<issue_start>username_0: In my Angular application, my @ViewChild instance is failing to fill HTL matSort. **mycomponent.ts:** ``` import { MatSort } from '@angular/material'; export class MyClassComponent { @ViewChild(MatSort) sort: MatSort; } ngOnInit() { console.log(this.sort); // undefined } ``` **m...
2018/03/16
1,657
4,774
<issue_start>username_0: I'm trying to get OpenSSL 1.0.2n to build using the latest Android NDK r16b. Building for 32-bit archs (armv7, x86) works just fine, but when I try building for 64-bit archs (arm64, x86\_64) I get a linker error stating that bsd\_signal is undefined: ``` shlib_target=; if [ -n "libcrypto.so.1....
2018/03/16
632
2,125
<issue_start>username_0: I have an object `comments`. It **can** be undefined in some cases and in the other cases it looks like ``` { id: 1, ..., next_page: 'someurl' // can also be undefined in some cases } ``` I need to grab that `next_page` property if it exist or make it null in other cases. My code: ```...
2018/03/16
1,182
3,070
<issue_start>username_0: I know this is basic but I've been struggling for a few hours now and I can't seem to apply one of the many ways there are to convert a string to datetime so I can save it in the database in this format `2018-03-16 00:12:17.555372`. Thanks ahead This is the string output in the console. ``` p...
2018/03/16
802
2,941
<issue_start>username_0: I have a requirement where coupons are associated to each state. Below is the table structure ``` ╔═════════╦═══════╗ ║ Coupon ║ State ║ ╠═════════╬═══════╣ ║ Coupon1 ║ CA ║ ║ Coupon2 ║ CA ║ ║ Coupon3 ║ NULL ║ ╚═════════╩═══════╝ ``` If no coupons are found for the state the default...
2018/03/16
737
2,844
<issue_start>username_0: I am trying to create code for sending document for signature request using docusign API: 1. I already downloaded the PHP SDK 2. I already opened a developer sandbox account 3. But after filling in some info in the PHP SDK file and run, it gave me the above error. I am guessing the error may ...
2018/03/16
314
1,120
<issue_start>username_0: I'm trying to utilize the semantic ui accordion behavior to open and close accordions based on a button click, however this is not functioning as I would expect. From the documentation: ``` $('.ui.accordion').accordion('behavior', argumentOne, argumentTwo...); ``` I am attempting to utilize...
2018/03/16
1,041
4,152
<issue_start>username_0: I'm starting with unity since a few weeks and i'm stuck with some displaying problems. You can see what I want to achieve here : ![ScreenShot](https://i.stack.imgur.com/qKM4t.png) On several of my pages I have a title with an icon on the left and I want it to be at 40px on the left of the tit...
2018/03/16
1,622
4,324
<issue_start>username_0: I am looping through different data.tables and the variables in the data.table. But I'm having trouble referencing the variables inside of the `for` loop ``` dt1 <- data.table(a1 = c(1,2,3), a2 = c(4,5,2)) dt2 <- data.table(a1 = c(1,43,1), a2 = c(52,4,1)) ``` For each datatable, I want to fi...
2018/03/16
1,400
3,695
<issue_start>username_0: How to reduce / aggregate multiple fields in a table? This does not seem efficient: ``` r.object( 'favorite_count', r.db('twitterdb').table('tweets').map(tweet => tweet('favorite_count')).avg().round(), 'retweet_count', r.db('twitterdb').table('tweets').map(tweet => tweet('retweet_co...
2018/03/16
211
730
<issue_start>username_0: We are using Jest for UI TDD of React application. We have following structure of component redering: ``` ``` We are trying to get Row with link. We are trying following code. ``` const rowProps = wrapper.find(Row).at(0) ``` How to locate to row?<issue_comment>username_1: You should be ...
2018/03/16
317
1,169
<issue_start>username_0: **Scenario** A teacher at a university is able to search for a student by using their first name and last name. Similarly, a student can search for a teacher using their first name and last name. **What I've Done** I have used an association line with a label, *searchesFor*, to denote that a...
2018/03/16
1,392
4,063
<issue_start>username_0: So I implemented this Pascal Triangle program in C, and it works well up until the 13th line, where the values onwards are no longer correct. I believe the combination function is correct, a k combination of n elements can be written with factorials, and it says so on the combination Wikipedia ...
2018/03/16
831
3,080
<issue_start>username_0: I am working on a problem where I have to pass an rpsec test. The problem is that the method is using the same name as a built in ruby method `.count` given that I cannot change the rspec test, is it possible to override `.count` to behave differently? if not, is there a better way to get arou...
2018/03/16
1,225
4,196
<issue_start>username_0: I am looking for any code example that deploys Helm chart without via CLI call. The reason behind this is: 1. My company got couple existing pipelines written with AWS CodePipeline / CodeBuild / CodeDeploy. They don't like to investigate more time on re-writing all pipelines. 2. My company doe...
2018/03/16
739
2,900
<issue_start>username_0: So, when using the code: ``` textField.setOnAction(); ``` It only functions with the Enter key, but I'm just wondering if there's some sort of EventHandler for a TextField and TextArea that can save the text within its field to an object's instance variable when a user clicks away or to anot...
2018/03/16
404
1,374
<issue_start>username_0: In the code below, I would like to have the value of myvar be provided by a program argument. ``` #include int main(int argc, const char \*\*argv) { const unsigned char myvar[] = "myvalue"; return 0; } ``` How would I get myvar to contain the value of the string from argv[1]?<issue_comme...
2018/03/16
487
1,653
<issue_start>username_0: I’m making private messages in my website. Everything is okay but I can’t get the list of all the messages that the user sent or received. I have 2 tables. `users(id,username,etc..)` and `messages (id,user1,user2,message,date)` I’ve tried following to get all list messages for one user > >...
2018/03/16
1,351
6,017
<issue_start>username_0: I am trying to figure out where to put the loop that when the user enters any value other than "rock", "paper" or "scissors" the program stays in the loop and displays `"Invalid entry"` while requesting the user to enter again. Any help is much appreciated. As it stands now, the program will...
2018/03/16
1,982
5,959
<issue_start>username_0: I have been at this for 2.5 hours now and been thru multiple posts. Tried several suggestions on <https://github.com/angular/angular/issues/15763>, which frustrated me as the source of the above error seems different. I am on angular 5 and on build, I get the error: > > ERROR in : Unexpected...
2018/03/16
546
1,743
<issue_start>username_0: The dictionary will store the names of the movies, and for each movie the dictionary value will be a list of show times. I could not figure it out. Is that correct??? ``` movie A: 9,11,15 movie B: 10,14,6 movie C: 11,13,19 dictionary={"moviesA":0, "moviesB":0, "moviesC":0} showingtimes={"mo...
2018/03/16
1,001
3,445
<issue_start>username_0: This is a pretty readable chunk of code I think, ``` for i in range(100): continue if i % 2 == 0 ``` But it's not syntactically correct. We can do other nice things in Python like, ``` for i in things: total += 3 if i % 2 == 0 else 1 ``` Or maybe, ``` return a if b > a else c ``...
2018/03/16
634
2,181
<issue_start>username_0: I made an environment on Cloud9 on AWS, then made a folder named "ruby\_projects", then inside that folder, I ran the command: ``` rails new todolist ``` then from inside the todolist folder, I ran ``` rails s ``` In the share button on the top right corner of the environment, I opened t...
2018/03/16
1,782
5,009
<issue_start>username_0: i'm looking for a get color pallet from image. i could get RGB data from image ``` getRgbData() { this.canvas = window.document.createElement('canvas') this.context = this.canvas.getContext('2d') this.width = this.canvas.width = image.width || image.naturalWidth this.height = ...
2018/03/16
705
2,471
<issue_start>username_0: I am trying to find the sum of 5 text boxes in which the user inputs the data and outputs at the sixth text box. I keep getting an error saying that the values aren't assigned yet I don't know how to assign them. This is my code so far: ``` private void button1_Click(object sender, Event...
2018/03/16
646
2,682
<issue_start>username_0: I've transferred my database and entire Wordpress file structure over to the live site, but the live site is still looking for all its resources at localhost:8888/. I looked back on what I did when getting started and I edited my `gulpfile.js` to include ``` var browserSyncOptions = { proxy...
2018/03/16
720
2,291
<issue_start>username_0: I have a question regarding Java streams. Let's say I have a stream of Object and I'd like to map each of these objects to multiple objects. For example something like ``` IntStream.range(0, 10).map(x -> (x, x*x, -x)) //... ``` Here I want to map each value to the same value, its square and ...
2018/03/16
300
1,036
<issue_start>username_0: I'm getting some weird glitches when using the layout\_weight on my Android app. To make sure that I'm not wasting anybody's time. When I have three custom views and give two views a weight of 1 and one view a weight of 2. The view with a weight of 2 is supposed to be the biggest one, right? Be...