date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/07 | 887 | 3,140 | <issue_start>username_0: This should be easy and there are a lot of similar questions but nothing works for me.

Here is my code and should print a snap shot but doesn't.
```
override func viewDidLoad() {
super.viewDidLoad()
let Ref = Database.... |
2018/03/07 | 939 | 3,610 | <issue_start>username_0: Everytime I make any change to the `index.html` with my Angular project, Service Worker never gets updated and always serves the old cached version on `index.html`. How do I fix this (Also, there is no caching at the server end as well as browser)
Here is my `ngsw-config` file:
```
{
... |
2018/03/07 | 3,199 | 8,701 | <issue_start>username_0: I'm trying to take links from yelp and google places and scrape their star rating along with the number of reviews they have. I've managed to get the yelp URL scraper to work properly but when I tried to use the same methods for the Google URL I either get empty strings returned for the .text()... |
2018/03/07 | 2,208 | 6,447 | <issue_start>username_0: This is the code that gives me the problem. The error I'm receiving states that "'Fraction' object does not support indexing" at line 8, even though the Fraction object is a string? Where am I going wrong?
```
class Fraction:
def __init__(self, x, y):
self.fraction_str = str(x) + ... |
2018/03/07 | 2,474 | 7,012 | <issue_start>username_0: I'm new to Python and I'm trying to analyse this CSV file. It has a lot of different countries (as an example below).
```
country iso2 iso3 iso_numeric g_whoregion year e_pop_num e_inc_100k e_inc_100k_lo
Afghanistan AF AFG 4 EMR 2000 20093756 190 123
American Samoa AS AS... |
2018/03/07 | 958 | 3,054 | <issue_start>username_0: What is the output expected from the problem? If the goal is to find the earliest time when the frog can jump to the other side of the river How the answer for given sample comes out to be 6???
>
> A small frog wants to get to the other side of a river. The frog is
> initially located on one... |
2018/03/07 | 554 | 1,786 | <issue_start>username_0: I'm trying to toggle between three classes every 4 seconds, but I can't figure out how to get the third class working. This is what I have so far (which works)
```
$(document).ready(function() {
setInterval(function(){
$('.myClass.class1').toggleClass('class2')
}, 4000);
});
```<issue... |
2018/03/07 | 1,646 | 5,531 | <issue_start>username_0: I have been having this problem for quite a while, that my `com.android.support:design:26.1.0` fails me and I have no clue what to change anymore.
**These are my files for module gradle.**
>
> **Build.gradle (app)**
>
>
>
```
apply plugin: 'com.android.application'
android {
compil... |
2018/03/07 | 797 | 3,203 | <issue_start>username_0: I am new to Kubernetes. I am using Kops to deploy my Kubernetes application on AWS. I have already registered my domain on AWS and also created a hosted zone and attached it to my default VPC.
Creating my Kubernetes cluster through kops succeeds. However, when I try to validate my cluster usin... |
2018/03/07 | 843 | 2,769 | <issue_start>username_0: I have spent a while trying to interpret the solutions found here [pySerial 2.6: specify end-of-line in readline()](https://stackoverflow.com/questions/16470903/pyserial-2-6-specify-end-of-line-in-readline) and here [Line buffered serial input](https://stackoverflow.com/questions/10222788/line-... |
2018/03/07 | 327 | 1,134 | <issue_start>username_0: I want cookies for password protected pages in Wordpress to expire when the browser window closes. I've tried the following in my functions.php file with no luck:
```
function custom_password_cookie_expiry( $expires ) {
return 0; // Make it a session cookie
}
add_filter( 'post_password_ex... |
2018/03/07 | 643 | 2,614 | <issue_start>username_0: I want to set the life cycle rule of S3 bucket so that the each file in the bucket will be deleted 7 days after they are generated.
If I set the lifecycle rule as follows (the below is terraform code, similar to console setting, so I just use it here), will all the files in the bucket "test" ... |
2018/03/07 | 147 | 592 | <issue_start>username_0: Is there a way to find the query that was run against the database in spring data mongodb?
I know this is possible in case of JPA. So was just wondering if there was something similar in Spring data MongoDB?<issue_comment>username_1: The easiest way is to set the log level to `DEBUG` for `org.... |
2018/03/07 | 217 | 866 | <issue_start>username_0: I am making a flask app which will serve with rest endpoints to the frontend. The website is for browsing guitar chords and tabs. I want to be able to count how many times a chord been requested and store this counter persistently.
the endpoint looks like this: /chord/string:chord\_id
Is it a... |
2018/03/07 | 1,087 | 4,262 | <issue_start>username_0: HELP! So i have this issue wherein theres a "noname" attachment when sending emails with pictures as seen below
[](https://i.stack.imgur.com/o2X9S.png)
Now, i want this to remove since it is not part of my emailer.
heres is ... |
2018/03/07 | 789 | 3,287 | <issue_start>username_0: I am new to android. May I know how to make a listview (shows A,B,C) in the dialog and when people choose an item like item A (e.g. item A contains 1,2,3 objects), the dialog will show 1,2,3. Beside calling dialog 3times, is there any better way to do so?<issue_comment>username_1: The attachmen... |
2018/03/07 | 506 | 1,623 | <issue_start>username_0: I'm using `python 2.7` on `ubuntu 16.04`. As described in the code below, I can't use any function from the `np.matlib`, but after I import, then it can be used. Is there any way to troubleshoot the problem? Thanks in advance!
```
$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5... |
2018/03/07 | 724 | 3,045 | <issue_start>username_0: I am working with a messaging app and the app needs to receive the notification from the server (chat message). I am facing the problem when receiving the silent notification, most of the notification can’t received by the device, the scenario as below:
1. iOS 10 – Bring the app into backgroun... |
2018/03/07 | 582 | 1,611 | <issue_start>username_0: I have the following data structure in Python 3:
```
foo = [(1, 'ADTABC', 7), (3, 'ACHDAT', 8), (1, 'AQNDXB', 15), (2, 'AFTCBA', 14)]
```
The first and second elements of each tuple are guaranteed to be unique together. I want to create a dictionary that has as the key the concatenation of t... |
2018/03/07 | 540 | 1,595 | <issue_start>username_0: I have a function as below:
```
getValue(param) {
var result = [];
result = this.state.ObjectsData.map(x => {
if (result.indexOf(x.param) === -1) {
result.push(x.param)
}
});
}
//ObjectsData is array of objects
ObjectsData = [
{tag: 23, name: vicky... |
2018/03/07 | 1,824 | 5,373 | <issue_start>username_0: I am working with several XML files that I want to compare, each containing about 200-300 different 'xml:ids'. Let's say there are three files contain the following xml:ids:
**file1.xml**
```
xml version="1.0" encoding="UTF-8"?
1
3
```
**file2.xml**
```
xml version="1.0" encoding="UTF-8... |
2018/03/07 | 460 | 1,909 | <issue_start>username_0: I have a `Lazy load` `@OneToMany`
```
@JsonIgnore
@OneToMany(mappedBy = "order", cascade = CascadeType.ALL)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private List orderItems = new ArrayList<>();
```
After a long operation, I want to refresh the `orderItems` entities.
I h... |
2018/03/07 | 1,649 | 5,520 | <issue_start>username_0: since updating to Spark 2.3.0, tests which are run in my CI (Semaphore) fail due to a allegedly invalid spark url when creating the (local) spark context:
```
18/03/07 03:07:11 ERROR SparkContext: Error initializing SparkContext.
org.apache.spark.SparkException: Invalid Spark URL: spark://Hear... |
2018/03/07 | 226 | 736 | <issue_start>username_0: I can' t save this leap date '02/29/2006' to sql server database. I'm using C#. Is there any particular code for this? Your help will be very much appreciated. Thanks<issue_comment>username_1: You Cant save it - Because it wasnt a leap year:
[
val SpecificStrings = List("a", "b", "d")
```
Through the function, I will get the result:
```
List("a", "b")
```
So what should I code this function?Thx<i... |
2018/03/07 | 312 | 1,227 | <issue_start>username_0: I have a go routine that periodically polls every interval and does a action. It also checks for done channel, as a end signal, to stop the polling.
```
go func(){
for {
select{
case <-myticker.C:
do_something()
case <-done:
... |
2018/03/07 | 9,530 | 25,875 | <issue_start>username_0: I am a newbie for Git and having an issue with push application code to Heroku using `-f` flag(this is a testing app)
It has been working well for more than 1 yr.
Here is my situation:
I had 2 feature-branches (let's say a and b)
This is what I've done:
`git checkout master` -> `git merge ... |
2018/03/07 | 774 | 1,761 | <issue_start>username_0: I have two matrices of arbitrary sizes, e.g. matrix 1 (n \* m) and matrix 2 (k \* l). Is there a (convenient) way in R to `cbind` them row-by-row, to form a (n \* k) \* (m + l) matrix where each row of matrix 1 has a chance to be `cbind`ed to each row of matrix 2? It is a complete row-by-row co... |
2018/03/07 | 1,321 | 4,265 | <issue_start>username_0: What is the best way to store a pointer as a value of another pointer?
I have a variable `ptr` that is of type `*mut u8`. How do I store the address that the `ptr` points to as the value of another pointer `t` that is also of type `*mut u8`.
I am trying to do something like
```
*t = ptr;
`... |
2018/03/07 | 508 | 1,842 | <issue_start>username_0: ```
a = Label(root,text='h e l l o',underline=0)
```
So basically I want to be able to choose which parts of the string I want to underline. Right now it only lets me choose one at a time. If I try:
```
a = Label(root,text='h e l l o',underline=0,1)
```
I get the error:
```
a = Label(root... |
2018/03/07 | 417 | 1,002 | <issue_start>username_0: Suppose now I have the following pandas data frame:
```
id text
1 A B C
2 B D
3 A D
```
And I want to get the following result:
```
id A B C D
1 1 1 1 0
2 0 1 0 1
3 1 0 0 1
```
I don't how to describe this transformation, it looks like one-hot encoding but they should be totally dif... |
2018/03/07 | 487 | 1,740 | <issue_start>username_0: I am very new to PHP and I am trying to display the value of a selected radio button in a string. But all I get returned is "on" instead of the value associated with the selection. Any help would be great!
```
Student
Employee
```
This is the PHP I am using to print:
```
// Create a sh... |
2018/03/07 | 1,179 | 3,041 | <issue_start>username_0: I use [create event](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_events) api to create an event object with "onlineMeetingUrl: <https://meet.lync.com/example/joyce/NLSD7Y62>" but the response of "onlineMeetingUrl" is null.
Is it a bug or is there any way t... |
2018/03/07 | 188 | 779 | <issue_start>username_0: How to find the algorithm CPU time in python?
what is the function used in python, to find the CPU execution time of the code. (algorithm CPU time, even if several processes are running at a time we should be able to know that how much time does CPU takes to execute only this code)<issue_comme... |
2018/03/07 | 339 | 1,204 | <issue_start>username_0: I am working on a web scraper at the moment, right now I have it so it grabs a list of url's. I need it to use each of the url's in the list it makes one at a time into the soup function, to get my desired html output from each individual page.
Example:
```
my_list = ['www.google1213.com', 'w... |
2018/03/07 | 1,562 | 4,654 | <issue_start>username_0: I have Json Like Below,
```
var json = [{"AVGDUR":1,"USERNAME":"usera","NAME":"name2","TOTALDOC":1}][{"AVGDUR":12,"USERNAME":"userb","NAME":"nameb","TOTALDOC":2}][{"AVGDUR":1.52,"USERNAME":"userc","NAME":"namec","TOTALDOC":617}][{"AVGDUR":2.41,"USERNAME":"userd","NAME":"named","TOTALDOC":167}]... |
2018/03/07 | 298 | 971 | <issue_start>username_0: something like this code
please help me
```
"56".replaceAll(/(?\d)(?\d)/){print name1}
```<issue_comment>username_1: If I am understand correct your question, Get as a Map would help you forever. Like below shown code.
```
println getMap('12345').name1
Map getMap (String input)
{
... |
2018/03/07 | 1,524 | 5,968 | <issue_start>username_0: **Good Day I have question about JSON parsing . How to get the value of distance with this json format**
```
{
"destination_addresses" : [
"Davao City-Juction Digos Section Road, Talomo, Davao City, Davao del Sur, Philippines"
],
"origin_addresses" : [
"Roxas Ave, Poblacio... |
2018/03/07 | 771 | 2,551 | <issue_start>username_0: I have created Sqlite tables and I am trying to insert data. While inserting date field the compiler gives error:
>
> Cannot convert value of type 'Date?' to expected argument type 'UnsafePointer!'
>
>
>
Here is my code:
```
func insert() {
let db = openDatabase()
var insertState... |
2018/03/07 | 776 | 2,241 | <issue_start>username_0: Ruby 2.2, Ruby on Rails 4.2
I'm genarating some CSV data in Ruby on Rails, and want empty fields to be empty, like `,,` not like `,"",` .
I wrote codes like below:
somethings\_cotroller.rb
```
def get_data
respond_to do |format|
format.html
format.csv do
@data = SheetReposito... |
2018/03/07 | 746 | 2,333 | <issue_start>username_0: I am trying to set up a show page for a list of people in Rails 5, but having trouble getting the routes to sync.
config.route:
```
get '/team', to: 'pages#team'
get '/team/:id', to: 'pages#show', as: 'agent' #to get agent_path from rails routes
```
page\_controller:
```
def team
@admins... |
2018/03/07 | 581 | 1,850 | <issue_start>username_0: I got an app running in port 3000.
this app is working behind a reverse proxy such as:
```
server {
listen 80;
server_name myapp;
location / {
proxy_pass http://127.0.0.1:3000;
}
}
```
so, everytime I access to my site, it will serve to localhost the content from p... |
2018/03/07 | 322 | 1,272 | <issue_start>username_0: I want to get value for variable `guestname` from closure and `guestname` is defined as global virable then pass this value to other class that use it. But the problem is that when i print out the `guestname` outside the closure it's empty but inside i see the actual value. So when i passed `gu... |
2018/03/07 | 285 | 991 | <issue_start>username_0: I have to create an simple form:
```
HTML page
send
```
From my process.php file, I have to hit an url like below:
```
https://stackoverflow.com/api?rahul_sharma
```
which will give back an json response
```
{"status":"Success","username":"your username is RAHULSHARMA"}
```
If stat... |
2018/03/07 | 1,006 | 2,623 | <issue_start>username_0: I am using mongodb's stitch backend to run an application, and when I try to login as an anonymous user, it throws this error:
>
> failed to log in anonymously: { StitchError: authentication via 'anon-user' is unsupported
>
> at /\*\*\*\*\*/\*\*\*\*\*/\*\*\*\*\*/\*\*\*\*/node\_modules/mon... |
2018/03/07 | 386 | 1,233 | <issue_start>username_0: I have declared an enum in a **d.ts** file
```
declare enum myenum
{
TYPE_ONE,
TYPE_TWO,
}
declare class MobileAPI extends NSObject {....}
```
Now I am accessing the enum in a **.ts** file like bellow.
```
this.mobileAPI.addType(myenum.TYPE_ONE,NSString.stringWithString("someString... |
2018/03/07 | 733 | 2,706 | <issue_start>username_0: I read node.js docs. It says:
>
> Even though the name of this function is `process.kill()`, it is really just a signal sender, as the kill system call. The signal sent may do something other than killing the target process.
>
>
>
```js
console.log('current process id: ', process.pid);
p... |
2018/03/07 | 558 | 2,144 | <issue_start>username_0: How can I switch the `selected` style easily?
In the template I have a nav:
```
* 首页
* 数据中心
```
in the methods:
```
clickLi(page_num){
// there I have to clear all the li `selected` style, then add the style to the page_num.
}
```
in `Vue` whether there is a better way to realize t... |
2018/03/07 | 1,381 | 3,493 | <issue_start>username_0: i need to merge 1st row and 2nd row. 3 rd and 4th row. below is what i already get.
because of the currency is NULL so it does not combined.


below is my curre... |
2018/03/07 | 1,029 | 2,915 | <issue_start>username_0: I want the header to print once if the loop gets results but not print if it doesn't. I got the tip of setting the header to a True or False from here but I am trying to use it in a loop now which doesn't seem to be working.
```
header = False
if header==True:
print('{:10} {:10}'.format(... |
2018/03/07 | 1,014 | 2,826 | <issue_start>username_0: I have a PHP project, and I need to hide the .php extension in the URL with `.htaccess`.
I can already do that with this `.htaccess` file
```
# Run Php without filename extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.p... |
2018/03/07 | 1,090 | 3,802 | <issue_start>username_0: I created a small game where the computer is supposed to guess the number I choose (between 1 and 100). To make it more efficient, I made it so that its first guess is always 50, and then it tries to guess it by guessing the midpoint between his last guess and the "higher" or "lower" number he ... |
2018/03/07 | 1,059 | 3,520 | <issue_start>username_0: I am authoring a report using RMarkdown, and using kable and kableExtra to format and print the table. Here is what I want would look like the table to look like (made in Word):
[](https://i.stack.imgur.com/gKlLl.png)
I am strugglin... |
2018/03/07 | 1,117 | 3,596 | <issue_start>username_0: I'm trying to send data from a C program to a python program (both are running simultaneously). I'm attempting to use the popen function in C. The way I understand it, whatever I write to the file descriptor in C can be read from stdin in the python program. However, the python program appears ... |
2018/03/07 | 997 | 4,414 | <issue_start>username_0: I'm using Firebase for my app and I want to present different view controllers in AppDelegate with the code below but I keep getting an error.
```
import UIKit
import Firebase
import FirebaseAuth
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWin... |
2018/03/07 | 986 | 4,211 | <issue_start>username_0: I am trying to list a data that fetched from a server. I use `HttpClient`.
This is a sample data that I get
```
{
"__zone_symbol__state":true,
"__zone_symbol__value":{
"response":{
"_total":1558,
"channels":[
{
"name": "hey",
... |
2018/03/07 | 950 | 4,250 | <issue_start>username_0: I am looking at using SNS-SQS services to deliver updates to machines running the same service. Since the plan is not for machines to communicate with each other, I was planning on creating a SQS for each machine (SQS would be created at startup).
I am however, not sure how to use a Dead-Lett... |
2018/03/07 | 701 | 2,311 | <issue_start>username_0: i want to display data from ajax into model show with echo php, i have made ajax and have working no errors.
this is my model
```
public function detail($id_branch) {
$this->db->select('TR_BRANCH.*');
$this->db->from('TR_BRANCH');
$this->db->where('BRANCH_ID', $id_branch);
$qu... |
2018/03/07 | 349 | 1,324 | <issue_start>username_0: I have a igraph network object with a number of edge attributes. One edge attribute classifies type of network according to number (e.g. 1 = friendship, 2 = advice). I want to plot each type of network separately. However, I do not want to create separate sub-graphs. I want to maintain the same... |
2018/03/07 | 1,150 | 3,313 | <issue_start>username_0: I need to know how many times does "Maria" appears in this array, but when I run it, it says that it appears 51 times, and I think its only like 8
```
#include
#include
int main(int argc, char \*argv[])
{
int g;
int i;
const char \* nombres[40] = {"<NAME>","<NAME>","<NAME>","Carlitos","... |
2018/03/07 | 780 | 2,537 | <issue_start>username_0: I have a vector of structs, and I'm comparing every element in the vector against every other element, and in certain cases mutating the current element.
My issue is that you can't have both a mutable and immutable borrow happening at the same time, but I'm not sure how to reframe my problem ... |
2018/03/07 | 564 | 1,643 | <issue_start>username_0: I have two dataframe with different columns that has large number of rows (about 2 million)
The first one is df1
[](https://i.stack.imgur.com/wFjd7.png)
The second one is df2
[ {
var jobName = document.getElementById('table_jobName').innerText;
var error = document.getElementById('table_error').innerText;
var bug... |
2018/03/07 | 1,874 | 5,785 | <issue_start>username_0: I have below mentioned dataframe:
DF\_1>
```
Month # of A M Sum of A M Med A Mean A # of B M Sum of B M Median B Mean B
Mar-17 10 - 100000 - - 6 - 15000 - - -
Feb-17 22 - 150000 - - 8 - 22000... |
2018/03/07 | 2,210 | 7,568 | <issue_start>username_0: I am creating food shop app in which click on menu button on home page it should redirect to grid view ,
[](https://i.stack.imgur.com/dqT0T.png)
i have created image grid layout xml and image grid class , but not able to map... |
2018/03/07 | 1,763 | 5,495 | <issue_start>username_0: I'm currently studying iteration in python.
I have encountered the following code.
```
def myzip(*args):
iters = map(iter, args)
while iters:
res = [next(i) for i in iters]
print(res)
yield tuple(res)
list(myzip('abc', '1mnop'))
```
When I run the code in ... |
2018/03/07 | 562 | 2,116 | <issue_start>username_0: In my project I have a controller call load and it has a fuction call search() that has a form, i want to submit this form in a child function of search() like this,,
```
localhost/ci/index.php/load/search
```
to
```
localhost/ci/index.php/load/search/something/
```
how can i do this afte... |
2018/03/07 | 1,127 | 2,742 | <issue_start>username_0: Below is the code, To compare two list and I have used collections since i am ok if elements positions are differ. The script checks list2 has all elements that contains in list1. This is working fine. Now I need help what is missing or what is difference when compare list1 with list2.
```
lis... |
2018/03/07 | 491 | 1,628 | <issue_start>username_0: `PyCharm CE` and `Anaconda` have been installed.
I know I should create a `symlink` to `$HOME/.anaconda`,
but what is the command on **macOS/Linux**?
Or any other solution?
Thx<issue_comment>username_1: You can set which interpreter to use within PyCharm. First you can go to your terminal an... |
2018/03/07 | 520 | 1,789 | <issue_start>username_0: I have a `File` object, `file`. This `file` points to a file on the SD card. How can I delete this `file` on Android api version 5.+ ? I have permission in Manifest also called in in run time. I have tried `file.delete()` it works for internal and external storage but file is not deleted on **... |
2018/03/07 | 811 | 2,431 | <issue_start>username_0: I'm looking for a regular expression for use with PHP's `preg_match_all()` function, which will give me all of the `px` values from a CSS file.
For example, if the css below is used, then the expected result would be an array of:
```
array ( "11px", "0.45px", "11.0005px", "1.1px", "888.888px"... |
2018/03/07 | 296 | 1,112 | <issue_start>username_0: I can't seem to open basic text files when I run a python script in VS Code, the code runs fine when I use it in Idle but VSCode will give me a FileNotFound error, is there some sort of extension that allows me to do this? Right now I'm only using the Python and Code Runner extension. example o... |
2018/03/07 | 732 | 2,587 | <issue_start>username_0: I am trying to do a simple conversion from string (html5 input data) to a integer, but my console log is always returning `Undefined`, is the same result to `Numbers()` or `ParseInt`. If I put a "letter" (do just for test, my form is `input="number"`).
```js
var dia = Number(document.getElemen... |
2018/03/07 | 1,081 | 4,109 | <issue_start>username_0: While writing out Conway's Game of Life, I'm getting an error where the state's not actually being updated. I get a warning that `setState(...): Can only update a mounted or mounting component.` but everything I've tried so far to get rid of that hasn't helped. You can find my App Component bel... |
2018/03/07 | 862 | 3,335 | <issue_start>username_0: Hi I am using vs 2017 on windows 7 I am following [this](https://app.pluralsight.com/player?course=asp-dotnet-core-api-building-first&author=kevin-dockx&name=asp-dotnet-core-api-building-first-m3&clip=1&mode=live) tutorial on plural sight :.net core 2 web api. The GET method work fine.There is ... |
2018/03/07 | 591 | 2,312 | <issue_start>username_0: How would one move an absolute position element through CSS ideally by its center instead of its top left corner?
I currently have a circular element that I am adjusting via absolute positioning. I would like to move it based off of the center of the circle so that I can align it with a line o... |
2018/03/07 | 1,835 | 4,901 | <issue_start>username_0: I understand that Seg faults are usually caused by invalid memory access, So I believe the issue might be with how I initialized the 2d dynamic arrays that are passed to the split function. However, I have spent hours looking over it and cant seem to find the issue.
Using valgrind I get the fo... |
2018/03/07 | 903 | 2,608 | <issue_start>username_0: I have a couple of websites that use Authorize.NET payment. Since they have upgraded to only support TLS 1.2, one of my websites do not work.
I updated the integration to work with TLS v1.2 but it is not validating cards anymore.
I am using php curl with this particular change:
```
curl_seto... |
2018/03/07 | 888 | 3,039 | <issue_start>username_0: I've checked the answers to all the similar questions here and searched the web - I've read all the tutorials on stacking order - but I still have a problem.
I want to stack an element on top of another element but can't make it stack the way I want.
Here's the basic HTML and CSS structure of t... |
2018/03/07 | 832 | 3,361 | <issue_start>username_0: I'm using Google Sign In to handle user authentication in a Flutter app. This works great for a single-view app (no routing), but as soon as I try to add some routes and manage the routes effectively things get pretty tricky.
Correct me if I'm wrong, but what I think I want is a stateful widg... |
2018/03/07 | 711 | 2,681 | <issue_start>username_0: As per the [README here](https://github.com/openzipkin/brave/tree/master/spring-beans) , I am using the following configuration to pass `x-vcap-request-id` and `x-vcap-group-id` from one application to the other.
```
@Bean
public Factory propagationFactory() {
return brave.propagation.Ext... |
2018/03/07 | 665 | 2,248 | <issue_start>username_0: I'm really new to programming and my professor wants us to write a dice game. At first, it was working correctly now it keeps repeating the same answer every roll. Please help!
```
import random
turns = 0
dice1 = random.randint(1, 6)
dice2 = random.randint(1, 6)
total = dice1 + dice2
while ... |
2018/03/07 | 638 | 2,371 | <issue_start>username_0: I check if user's account has OAuth permission to Fitness API.
```
private boolean hasOAuthPermission() {
FitnessOptions fitnessOptions = getFitnessSignInOptions();
return GoogleSignIn.hasPermissions(GoogleSignIn.getLastSignedInAccount(getActivity()), fitnessOptions);
}
```
Then if i... |
2018/03/07 | 899 | 3,187 | <issue_start>username_0: Hello there stack overflowers! I am having a problem creating a list web page in which I have two starting elements and I can add elements and remove elements. I got pretty far through the website but I am running into an issue I have researched and been stumped on for the past hour and a half.... |
2018/03/07 | 584 | 2,113 | <issue_start>username_0: In c# is there a way to call a public method from another class without instantiating an instance of it?
```
class ClassA{
public void callMe(){
//something...
}
}
class ClassB{
public void WannaCallYou(){
//here I want to call ClassA's callMe()
}
}
```<issue_... |
2018/03/07 | 801 | 2,908 | <issue_start>username_0: When I select a value from select box named `State` I want to populate values in corresponding select box named `Region`. How can I solve this.
Below I've given my design and code.[](https://i.stack.imgur.com/92jAz.jpg)
```
... |
2018/03/07 | 1,128 | 3,205 | <issue_start>username_0: I'm using CSS sprites to add some custom background Radios. I need 2 styles (radio on left of label and radio on top of label).
I have tried inline-block and margin:auto (inline-styles in HTML) on my span to move the radio above but now the background is now in 00 position.
How can I style my... |
2018/03/07 | 1,121 | 2,594 | <issue_start>username_0: I have some time values that I am trying to discretize according to 3 categories: morning (4.30, 12.00), evening(12.00, 21.00), night(21.00, 4.30)
First I am trying to convert the character vector into a character using lubridate
```
library(lubridate)
h <- hm(c("14:30", "02:10", "06:30", "1... |
2018/03/07 | 256 | 918 | <issue_start>username_0: I have a scenario in which i have to use a specific material icon as cursor pointer for a mat-button. I don't have any idea how to achieve this. Any help will be appreciated.
```html
```<issue_comment>username_1: There is no way to do it using Material. You need to update the CSS by adding:
... |
2018/03/07 | 331 | 1,266 | <issue_start>username_0: After doing this:
```
var collection = ['foo', 'bar', 'john'];
console.log(collection);
collection.splice(0,1)
console.log(collection);
```
I get this
[](https://i.stack.imgur.com/Qeiql.png)
Why does the Chrome console di... |
2018/03/07 | 302 | 1,094 | <issue_start>username_0: I have an LDAP with names formed as:
CN: First Middle Last 1234
where 1234 is the ID.
I want to search people by their full names like:
ldapsearch -o ldif-wrap=no -LLL -H ldaps://server -x "CN=First Middle Last \*".
It is working in most of the cases but it happens that some people don't have m... |
2018/03/07 | 1,321 | 4,474 | <issue_start>username_0: I am trying to convert a float to a String and insert commas into the resulting String. I don't want to add/remove any zeroes, change the precision of the float, or do any kind of rounding. I want the String result to have the exact same digits as the original float, just with commas added. A l... |
2018/03/07 | 2,667 | 10,763 | <issue_start>username_0: Consider this little snippet:
```
import sys
from PyQt5 import QtWidgets
from PyQt5 import QtWidgets
from PyQt5.QtGui import QStandardItemModel
from PyQt5.QtGui import QStandardItem
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QGridLayout
from PyQt5.QtWidgets import QPushButton
fro... |
2018/03/07 | 639 | 1,571 | <issue_start>username_0: If l is a list, say [9,3,4,1,6], I know that l.sort() will sort the list in place. I also know that m=sorted(l) will create a new list, m, as a sorted version of l.
What I don't understand is why m=l.sort(), does not create m as a sorted version of l, since this appears to be an assignment of ... |
2018/03/07 | 622 | 1,537 | <issue_start>username_0: 1. My denomination "5" is not showing up and how do you reverse the dict easily. i dont want extra 5 line of code.lol
2. Can you guys help me out with it?
3. the code is working so far.
4. here is my code with a test case
```
def change(target, coins):
result = dict()
i= len(coins) -1
... |
2018/03/07 | 829 | 3,268 | <issue_start>username_0: There is a method in a `factory` [`newResource`](https://hyperledger.github.io/composer/jsdoc/module-composer-runtime.Factory.html#newResource__anchor).
The third parameter of this method is `id`. Are there any ways or workarounds to generate `id`?<issue_comment>username_1: You control what the... |
2018/03/07 | 2,000 | 7,457 | <issue_start>username_0: I have a not completely orthodox CF->S3 setup. The relevant components here are:
1. Cloudfront distribution with `origin s3.ap-southeast-2.amazonaws.com`
2. Lambda@Edge function (Origin Request) that adds a S3 authorisation (version 2) query string (Signed using the S3 policy the function uses... |
2018/03/07 | 1,939 | 7,101 | <issue_start>username_0: I want to pass a parameter in my URL when a search button is clicked.
I wanted it to look like this.
/result?search=sap
However, I am getting this error in console.
Error: Cannot match any routes. URL Segment: 'result;search=sap'
I can't figure out what I'm doing wrong. Here is my code.
Sear... |
2018/03/07 | 529 | 2,018 | <issue_start>username_0: ### can not login itunesconnect
The page give the warning 'Failed to verify your identity, Try again'.
Do somebody face the same problem?
[](https://i.stack.imgur.com/1w6FE.png)<issue_comment>username_1: Finally, without no r... |
2018/03/07 | 551 | 1,895 | <issue_start>username_0: I have a select option element in my project with two options, books and images. For book option, I want to allow only single file to upload. But for images option I need to allow multiple file selection. I am trying to this way but not succeeded:
```
Dropzone.options.frmMediaDropzone = {
... |