date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/26 | 955 | 2,638 | <issue_start>username_0: how to shift elements of array from one column to another column by using pointer to pointer in c++
When I do this, it says "Reference to non-static member function must be called"
```
for (int i = 0; i < size; i++)
{
array[n]->my_data[i] = array[n]->my_arr[i+1];
}
```<iss... |
2018/02/26 | 1,133 | 3,152 | <issue_start>username_0: I have a dataframe that can be segregated into multiple groups, perform function on, and then re-form the groups together as a single dataframe.
The problem is that the number of unique elements in each column is differenet, meaning to say, taking the example of the dataframe below, I would ne... |
2018/02/26 | 671 | 2,786 | <issue_start>username_0: Im trying set up recurring payment on my site by using Paypal Express Checkout. I did read through the official docs and I couldnt find anything useful related to recurring payment.
<https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/add-paypal-button/>
Im... |
2018/02/26 | 1,924 | 7,765 | <issue_start>username_0: I'm new to ionic/angular/TS and I'm trying to create a calendar with the ability to set appointments (events) and edit/delete them. I'm using a modal to edit the selected event and this modal has the delete event button. for now I'm storing the added events in an object array in a provider. Add... |
2018/02/26 | 490 | 1,881 | <issue_start>username_0: As you'll see below, I'm trying to update the `durationNumber`, so that the `colorSwitch` object turns faster. The `durationNumber` does update, but `colorSwitch` doesn't rotate faster. How do I accomplish this?
```
func turnWheel() {
var durationNumber = 2.0
let rotateAction = SKActi... |
2018/02/26 | 1,208 | 3,859 | <issue_start>username_0: I have a lot of lists like:
```
SI821lzc1n4
MCap1kr01lv
```
All of them have the same length. I need to count how many times each symbol appears on each position. Example:
```
abcd
a5c1
b51d
```
Here it'll be `a5cd`<issue_comment>username_1: ```
from statistics import mode
[mode([x[i] fo... |
2018/02/26 | 1,263 | 4,128 | <issue_start>username_0: I have 5 fields in one of my mysql tables. 3 of them are date, time1 and time2. date is DATE data type and time1 and time2 are TIME data type. I want to calculate the interval between time1 and time2, and display in the internet browser. I tried as follows in PHP,but it didn't work.
```
$start... |
2018/02/26 | 807 | 2,392 | <issue_start>username_0: I want to use imaplib to search particular emails, which subjects contain Chinese.
I got the error like this:
```
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
```
so i use .encode to encode to 'UTF-8', and I got nothing. The print print... |
2018/02/26 | 844 | 2,416 | <issue_start>username_0: I have data as below:
[](https://i.stack.imgur.com/sRzNt.jpg)
Here is the query:
```
SELECT a.product_id,coa_id, product_group_id, amount
FROM t_monthly_data a, p_product b, p_report_set c
WHERE a.product_id = b.product_id... |
2018/02/26 | 513 | 1,680 | <issue_start>username_0: I'm trying to make a function on a menu that prints half a triangle with a character chosen by the user, but when it receives the parameters by reference it receives trash, and can't see why. I will appreciate immensely if someone can help me.
```
case 2: do{system("cls");
cuadro (1,1,78,... |
2018/02/26 | 216 | 762 | <issue_start>username_0: I have a code,that shows a modal with this code using jquery:
```
$('#myModal').modal({'show':true});
```
but with angular.js not works. what is the equivalent of `$('#myModal')` using angular.js?
```
// not works for me
angular.element("#myModal")
```<issue_comment>username_1: You can us... |
2018/02/26 | 1,244 | 4,200 | <issue_start>username_0: I'm trying to write a program that finds whether is a palindrome or not. I have this code and can't figure out for the life of me why it won't work. It runs but only returns that the number is not a palindrome regardless of whether it is or not
```
def reverse(number):
reverse = 0
... |
2018/02/26 | 586 | 1,785 | <issue_start>username_0: I know this question has been asked before but earlier today I found the following code in SO:
```
import re
def findIfWordMatch(w):
return re.compile(r'\b({0})\b'.format(w), flags=re.IGNORECASE).search
```
For example if I use the following strings the function return a match object... |
2018/02/26 | 726 | 3,134 | <issue_start>username_0: So what I am trying to do is test a form textbox for input. Once I click a button, I want it to check if there is any text, if not, I want it to break there and keep prompting a messagebox until the user inputs proper text, and then continue with the program.
```
if (entryName.Text == "")
... |
2018/02/26 | 926 | 4,382 | <issue_start>username_0: i was trying to implement a comment system. where everybody can reply of every comment. The system here is when someone click on a comment a form will be visible and he can reply. So if there is 4 comments so 4 reply box will come. i wanted to store those reply through ajax. But the problem is ... |
2018/02/26 | 1,661 | 3,906 | <issue_start>username_0: I have a strings as mentioned in the below format, i would like to remove only IPv6 address from the string and print only the IPv4 address as a string. I tried with sub string and regex , but I am unable to get correct regex for this string. Could any one help to provide the solution.
Actual ... |
2018/02/26 | 1,742 | 4,684 | <issue_start>username_0: I need to solve a linear programming with few constraints but many variables:
[](https://i.stack.imgur.com/46c7p.gif)
A is mxn. m is about 15, but n is more than 1 million. I used Matlab linprog with different algorithm(dual-simplex,... |
2018/02/26 | 1,335 | 4,089 | <issue_start>username_0: I'm trying to solve an algorithm problem, but I think my resolution is not good in performance. So if someone could help I will be very grateful.
The problem is: I have 3 arrays A,B,C. I want to know how many elements are within range of each B[i] and C[i].
```
Example:
A = [1,3,5,8]
B = [3,... |
2018/02/26 | 504 | 1,809 | <issue_start>username_0: ```
SELECT * FROM `table_name` WHERE `column_name` = "60dsfdsf"
```
In phpmyadmin, if run this query, then it will retrieve `column_name` value 60 form `table_name` .
Here `column_name` type is int and primary .
I was expecting not to find any value but it's retrieving `column_name` value 6... |
2018/02/26 | 459 | 1,732 | <issue_start>username_0: I developing the express application. So I want to connect it Google chart. How can do it? [I'm following this article](https://developers.google.com/chart/interactive/docs/gallery/piechart).
And also, how can change manual data to MySQL database data.<issue_comment>username_1: Well, this is My... |
2018/02/26 | 853 | 2,857 | <issue_start>username_0: I am searching for posts with multiple tags and have came up with the following code, is there a better way to do this or is this fine?
My MySQL database has three tables posts, tags, and post\_tags
* posts: id|body
* tags: tag|mode
* post\_tags: postid|tag
(Each tag on eachvpost gets its ow... |
2018/02/26 | 2,623 | 8,619 | <issue_start>username_0: I've found that the [`numpy.vectorize`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.vectorize.html) allows one to convert 'ordinary' functions which expect a single number as input to a function which can also convert a list of inputs into a list in which the function has been ma... |
2018/02/26 | 1,201 | 3,983 | <issue_start>username_0: I'm trying to set two variables `Latitude`, `Longitude` as a random Lat/Long value found in the JSON response. The JSON response contains a `Locations` array containing a list of Lat/Long values. Every time this script is ran, I want my variable to be set to random lat/long values from the Loca... |
2018/02/26 | 489 | 1,788 | <issue_start>username_0: I need to sort the values for each field alphabetically when they get returned by the API. It seems marshmallow's pre\_dump method is the way to pre-process the data before serializing, but I haven't been able to figure this out. I've read the docs multiple times and Googled but haven't found t... |
2018/02/26 | 639 | 2,394 | <issue_start>username_0: I have two views in different part of layout, not beside or in row, I want to make height of one equal to another, how can I do this in ConstraintLayout? There is similar feature in iOS Autolayout, there should be something similar in Android.
[,?\s*', lambda m: "m"+str(mval)+"="+m.group(1)+"&"+mval+=1, s)
print(res)
```
I am expecting the below output:
```
m1=245&m2=246&m3=171&m4=172
`... |
2018/02/26 | 1,156 | 3,359 | <issue_start>username_0: I want to know, is it possible to make custom req.body which is will be send to MongoDB. In my case, I have req.body like this :
`{ f_name: 'John', l_name: 'Doe', phone: '4521234892345' }`
But, what i expected is :
```
{
"f_name": {
"type": "text",
"value": "John"
},
"l_name": ... |
2018/02/26 | 412 | 1,604 | <issue_start>username_0: i don't know why my viewmodel is null when the One\_Clicked is called, what am i missing in the viewmodel. i've tried debugging it when found that the Unknown Identifier is on the DisplayLabel property.
This is my ViewModel:
```
public class AboutViewModel : BaseViewModel
{
public AboutV... |
2018/02/26 | 968 | 3,658 | <issue_start>username_0: I need to mimic the same behavior as the "Clear SSL State" button in the "Internet Options" dialog ("Contents" tab) using an API function in Delphi.
My intention is to use this with WinInet to make subsequent independent SSL connections. Without this, two WinInet connections share the same SSL... |
2018/02/26 | 943 | 3,478 | <issue_start>username_0: If I generate the Notification from Firebase notification icon is not coming.(App is in background). Icon is coming if App is in foreground.
I came to know that after lot of research.
If App is in background it won't call `OnmessageReceivedmethod();`
So for that we have to override `OnHandleI... |
2018/02/26 | 405 | 1,332 | <issue_start>username_0: I would like to know why my items aren't showing on the DOM. Although ng-repeat is making new table rows. When I console log books it shows up fine but not with `ng-repeat`. [Console Log](https://i.stack.imgur.com/nfNav.png)
**HTML**
```
| |
| --- |
| key : {{key}} value: {{value}} |
```
... |
2018/02/26 | 214 | 727 | <issue_start>username_0: Is maven really necessary for buidling application in jboss 7? I currently have an application which is running in jboss 5 and it is build by antbuild.<issue_comment>username_1: ```
| |
| --- |
| Key : {{key}} |
<td ng-repeat="value in books[key]> value : {{value }}
https://www.w3schools.... |
2018/02/26 | 1,957 | 5,162 | <issue_start>username_0: I'm programming in python and have a list of lists of
```
a=[[1234,32.5,'John',1114],[1234,16.3,'John',1115],[1235,25.3,'John',1116],
[1239,16.3,'Lisa',1117]]
```
How can I merge the lists of the similar element in sub-index `[0]` and remove the list that contains the smallest element of i... |
2018/02/26 | 852 | 2,880 | <issue_start>username_0: I am integrating scichart to my android project and facing this error. I need to display ohlc data so, base on this tutorial <https://www.scichart.com/example/android-candlestick-chart-example/> I wrote
```
val dataSeries = OhlcDataSeries(Date::class.java, Double::class.java)
```
That was tr... |
2018/02/26 | 1,625 | 6,181 | <issue_start>username_0: I'm experimenting with closures and classes in data variables and in the example below I'm getting undefined even though I placed a `console.log()` right before the function returns the result and it isn't undefined. It seems to work if it isn't attached to an event handler. Can someone tell me... |
2018/02/26 | 429 | 1,247 | <issue_start>username_0: Sorry for the bad english, see this example:
original
```
a
line01
line02
line03
line04
b
```
want to become:
```
a
line01
line01
line02
line02
line03
line03
line04
line04
b
```
`a` and `b` are irrelevant.
I can copy one line and paste, and repeat. Is there any simple solution? like one... |
2018/02/26 | 504 | 1,950 | <issue_start>username_0: As one may know, an object just allocated by the `new` bytecode is not initialized, and is thus not a `java.lang.Object`. If I do runtime bytecode manipulation and give that object to a method, the JVM will complain or even crash (because the "thing" I gave it is not a `java.lang.Object`).
So,... |
2018/02/26 | 1,055 | 3,188 | <issue_start>username_0: removeC.c
```
#include
int main(int argc, char \*\*argv) {
if (argc != 2) {
int c;
while((c = getchar()) != EOF) {
if(c != 'c') {
putchar(c);
}
}
} else {
for (size\_t i = 0; argv[1][i] != '\0'; i++) {
if(argv[1][i] != 'c') {
putchar(argv[1][i]);
}
}
putchar('\n');
}
}
```
r... |
2018/02/26 | 1,347 | 4,736 | <issue_start>username_0: This is my first time with `sqlite` database.I am trying to `retrieve` `image` from database to an `imageview` but getting this `error`,`Couldn't read row 0, col -1 from CursorWindow`. Make sure the `Cursor` is initialized correctly before accessing `data` from it. Well its been a day and still... |
2018/02/26 | 603 | 1,774 | <issue_start>username_0: I want to log the time in `R` like I do in `Python 3` but I have no idea where to even start. In `Python` I would do it this way. How would I do this same thing in `R`?
```
>>> import time
>>> start_time = time.time()
>>> time.time() - start_time
6.0202391147613525
```<issue_comment>username... |
2018/02/26 | 469 | 1,904 | <issue_start>username_0: Some low-level languages like C require the programmer to set seed (usually `srand(time(0))` if the user wants a different sequence of random numbers whenever the program runs. If it is not set, the program generates the same sequence of random numbers for each run.
Some high-level languages a... |
2018/02/26 | 712 | 2,700 | <issue_start>username_0: I am creating dynamic `textview` on runtime. on adding `onClick()` Listener. it works only on the last `textview` created on runtime and not on every `textview` created.
This is my code:-
```
@Override
public void onComplete(@NonNull Task task) {
if (task.isComplete()) {
ArrayList tagLocat =... |
2018/02/26 | 1,176 | 3,783 | <issue_start>username_0: I am new to Visual Studio Environment and I am using VS2017 Pro.
I wanted to write simple program in C and compiled with both `c99` and `c11` standards. In Visual Studio, I could only find compiler switches for C++ standards only.
How can we tell visual studio environment that we want to compi... |
2018/02/26 | 1,837 | 6,006 | <issue_start>username_0: I am following the tutorial exactly as given [here](https://webpack.js.org/guides/getting-started/) . But I am amazed that the docs seems outdated. e.g
`npx webpack src/index.js dist/bundle.js` fails with:
>
> The CLI moved into a separate package: webpack-cli. Please install
> 'webpack-cli... |
2018/02/26 | 1,323 | 4,757 | <issue_start>username_0: Is it possible to access all the fields from a previous step as a collection like json rather than having to explicitly setting each one in the input data?
Hope the screenshot illustrates the idea:
<https://www.screencast.com/t/TTSmUqz2auq>
The idea is I have a step that lookup responses in a... |
2018/02/26 | 1,332 | 5,676 | <issue_start>username_0: So Dependency Injection is recommended usually to help with unit testing, to solve the problem of having a class dependent on other classes. This sounds great, but let me walk through the issue I'm facing.
Here is a regular implementation without DI:
```
class Upper{
Middle middle = new M... |
2018/02/26 | 609 | 2,159 | <issue_start>username_0: In <https://github.com/ant-design/ant-design>, how it the recommend method of adding spacing (margin) between buttons?
In semantic-ui, default margins defined within the library CSS. In bootstrap, one can use button groups to add spacing between buttons.
Is adding custom css or inline css the... |
2018/02/26 | 660 | 2,234 | <issue_start>username_0: I have the first table:
```
select COLUMN_NAME
from Emerald_Data.INFORMATION_SCHEMA.COLUMNS
where TABLE_NAME = N'tbl_Client_List_Pricing'
```
[](https://i.stack.imgur.com/qzqm6.png)
Don't mind the numbering in the `Column... |
2018/02/26 | 786 | 2,369 | <issue_start>username_0: I have generated the following DataFrame (a small subset shown here) and wish to generate a separate line plot for each zone, with each plot having multiple legend items ('green', 'red' and 'brown' from the Cat column). The x-axis will use 'Date' and the y-axis 'Val'.
I am relatively new to P... |
2018/02/26 | 620 | 1,948 | <issue_start>username_0: I have some HTML code:
```
![]()



```
and this is my some jquery code :
```
var imgSrc = $(".thumb-first").attr("src");
$(".img-big").attr("src",imgSrc);
$("#getImg img").on("click",function(){
tes = $(this).attr("src");
... |
2018/02/26 | 537 | 2,075 | <issue_start>username_0: I am trying to learn Python by following the book "Python Crash Course",
but I'm stuck because the book does not use the IDE I am using, PyCharm.
The problem I encounter is when I try to import pygame it says `module not found`.
I successfully installed pygame using this command:
```
python... |
2018/02/26 | 728 | 2,446 | <issue_start>username_0: I am stuck with Error Code 1604 trying to create a table. The code goes like this:
```
USE Rudinas;
CREATE TABLE clan (
first_name VARCHAR(30) NOT NULL,
last_name VARCHAR(30) NOT NULL,
city VARCHAR(30) NOT NULL,
country VARCHAR(30) NOT NULL,
zip MEDIUMINT UNSIGNED NOT NULL,
birth_date DAT... |
2018/02/26 | 416 | 1,404 | <issue_start>username_0: I'm using semantic-ui-react in my application.
It used to work perfect but at some point, it stops to render Modal dialogs in the proper place. The only thing I did install, not sure if it's a cause, is a Node 8.9.4
After installing new node version, my npm "ask" me to upgrade sass-loader.
Now... |
2018/02/26 | 991 | 3,919 | <issue_start>username_0: Can anyone guide me how to print the web service request and response from dataTaskWithRequest in json format while using swift 4.0 and objective C.
Links tried:
[How to print NSMutableURLRequest?](https://stackoverflow.com/questions/5787010/how-to-print-nsmutableurlrequest)
I can print them... |
2018/02/26 | 862 | 3,453 | <issue_start>username_0: How can I check if $expiresAt has actually expired, against the $now timestamp?
```
$expiresAt = Carbon::parse($tokenInstance->expires_at);
$now = Carbon::now();
```<issue_comment>username_1: You can print JSON data like,
```
if error == nil {
do {
let json = try JSONSerializatio... |
2018/02/26 | 535 | 1,180 | <issue_start>username_0: I have a base64-encoded nonce as a 24-character string:
```
nonce = "azRzAi5rm1ry/l0drnz1vw=="
```
And I want a 16-byte int:
```
0x6b3473022e6b9b5af2fe5d1dae7cf5bf
```
My best attempt:
```
from base64 import b64decode
b64decode(nonce)
>> b'k4s\x02.k\x9bZ\xf2\xfe]\x1d\xae|\xf5\xbf'
```... |
2018/02/26 | 6,312 | 14,343 | <issue_start>username_0: Delayed jobs service is stopping after less than 1 hour of its starting time with the following log:
```
I, [2018-02-26T06:00:26.580458 #11439] INFO -- : 2018-02-26T06:00:26+0400: [Worker(delayed_job host:myhost pid:11439)] Starting job worker
I, [2018-02-26T06:00:26.664929 #11439] INFO -- :... |
2018/02/26 | 517 | 1,913 | <issue_start>username_0: I am trying get value or text from element, but it is not working. Kindly help me in this. Below is the path and Web Element.
Link:<https://www.tcsion.com/OnlineAssessment/ScientificCalculator/Calculator.html>
Element:
```
```<issue_comment>username_1: You can use javascript executor to get... |
2018/02/26 | 2,140 | 8,114 | <issue_start>username_0: I took this tutorial example [Inheritance and Polymorphism in C](https://www.codeproject.com/Articles/108830/Inheritance-and-Polymorphism-in-C) and because I've customized it for my exact requirements it's throwing an error when I try to call base function.
**Question: Why does it fail in lin... |
2018/02/26 | 789 | 2,957 | <issue_start>username_0: I have the below two queries one is giving me total parts as output and the other is giving me total dispatched parts as output.My aim is to get total pending parts which will be given by "total parts - dispatched parts" . how i will get this result directly from the queries.
code:
```
--tota... |
2018/02/26 | 620 | 2,216 | <issue_start>username_0: i have been trying to input characters and the character should be put in the file unless users change the value of opt to 'n'.
```
#include
void main()
{
char ch,opt='y';
FILE \*fp;
fp=fopen("myfile.txt","w");
while(opt=='y' || opt =='Y')
{ scanf("%c",&ch);
fputc(ch,fp);
printf("want t... |
2018/02/26 | 456 | 1,604 | <issue_start>username_0: I'm trying to add a custom emoji as a reaction to a message using discord.py version 0.16.12 and I'm unable to get it functional. Here's the code I'm using:
```
@bot.event
async def on_message(message):
if message.content.find(':EmojiName:'):
await bot.add_reaction(message, '<:Emoj... |
2018/02/26 | 663 | 2,420 | <issue_start>username_0: I put a list of widget as action in `Scaffold` appBar, but they didn't respond when I press them, I have a `floatingButton` in the scene too and it works perfectly.
```
appBar: new AppBar(
title: new Text(
widget.title,
style: new TextStyle(
fontFamily... |
2018/02/26 | 1,041 | 3,938 | <issue_start>username_0: I am very new to nodejs and expressjs.
I am creating a very simple and one page nodejs application which will take a number from user and based on that value will return number of rows from Neo4j Database.
For that I am using one single app.js file where both app.post() and app.get() methods ... |
2018/02/26 | 655 | 2,461 | <issue_start>username_0: Is there a way to merge one branch to another using the API?
I had a look here, but it doesn't seem to offer me a solution to what I want (pushing individual files is tedious):
<https://www.visualstudio.com/en-us/docs/integrate/api/git/pushes>
I suppose if there isn't a way to do this using t... |
2018/02/26 | 241 | 943 | <issue_start>username_0: I am using react-native 0.52.0 and react- 16.2.0 . My react-native application runs slowly. I want to optimize its performance. Can anyone tell me what are the ways in which we can make react native app faster and how to measure its performance and memory usage? Is there any tool to measure its... |
2018/02/26 | 270 | 802 | <issue_start>username_0: ```
```
>
> I have read many talks on this but i havn't found any
> good and easily working ans
> If it get resized then it will not be resposive
> \*Respond fast \*
>
>
><issue_comment>username_1: ```
```
. use these classes
**modal-lg modal-sm container container fluid**
like
`... |
2018/02/26 | 410 | 1,480 | <issue_start>username_0: [](https://i.stack.imgur.com/k5N97.jpg)
I started noticing the anchor tags underline style change for letters like "p" "g", "j" "y" is this recently changed or I started noticing late. Anyone feels same ?<issue_comment>user... |
2018/02/26 | 662 | 2,097 | <issue_start>username_0: ```
String my_expr=editText.getText().toString();
Long val = Long.parseLong(my_expr);
DecimalFormat formatter = new DecimalFormat("#,###,###");
String formattedString = formatter.format(val);
editText1.setText(formattedString);
```
I've taken the whole expression(my\_expr) as a single string ... |
2018/02/26 | 873 | 2,820 | <issue_start>username_0: I get a crash at a user when calling requestPermissions on a samsung S5.
I don't understand what could be the reason?
```
if (Build.VERSION.SDK_INT >= M) {
if(checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED)
MainActivity.t... |
2018/02/26 | 1,008 | 3,527 | <issue_start>username_0: We can write `select column1,column2 into #temp from tableName` in SQL Server. But I am unable to write the same query in an Oracle database.
I want to store the result of select/insert/delete/update or any result set into a local temporary table in oracle database. How I can do this?
I am ex... |
2018/02/26 | 588 | 1,657 | <issue_start>username_0: Code
----
```
typedef struct
{
int *x;int *y;
}point;
void move(point *p)
{
(*p).x=(*p).x+1;
(*p).y=(*p).y+1;
}
int main()
{
point p;
p.x = 10;
p.y = 5;
printf("%d, %d\n", p.x, p.y);
move(&p);
printf("%d, %d\n", p.x, p.y);
return 0;
}
```
Detail
---... |
2018/02/26 | 479 | 1,822 | <issue_start>username_0: I want to display content from remote URL in android web view, which will be return by java script tag. In my case , java script tag return image , which should be load into web view.
Here is code to render image/content from remote URL.
```
public void onCreate(Bundle savedInstanceState) {
... |
2018/02/26 | 635 | 2,177 | <issue_start>username_0: I'm trying to use Google Maps API geocode. The full code is below and it worked the first time I tried, but now it's not bringing the map up and I can't figure out why.
I even tried adding "alert(data.status);" and it's returning a status of "OK".
When I inspect, the console says "latitude" ... |
2018/02/26 | 857 | 2,588 | <issue_start>username_0: I have a directory with multiple \*.pdf files. I want to find files with two or more keywords/strings in the filename.
In the below example I would like to search for a file which has "trials" and "neurology" in the filename. I used following code but no result.
```
keyword1 = "trials"
... |
2018/02/26 | 782 | 2,262 | <issue_start>username_0: ```
@app.route('/patient')
def patientData():
global patientData
patientGuid = request.args.to_dict()
df1 = pd.DataFrame([patientGuid])
#df1.to_csv("path.csv")
return str(df1)
if __name__ == "__main__":
app.run()
```
But when save file... |
2018/02/26 | 587 | 2,038 | <issue_start>username_0: I am using `telegraf` as a measuring/monitoring tool in my tests. I need to edit `telegraf` configurations automatically; since all tests are being executed automatically.
Currently I am using `re` for configuring it; this is the process:
1. Read the whole file content.
2. Use regex to find a... |
2018/02/26 | 367 | 1,144 | <issue_start>username_0: I have two tables : table1 and table2.
There is a customerId field in table2 of data type Varchar2(30), how can I alter table1 to add the customerId field of the same data type as table2 using %type.
I tried the below code but no luck.
```
alter table table2
add customer_id table1.CUSTOMER_... |
2018/02/26 | 265 | 897 | <issue_start>username_0: I have created an AVPlayer object in custom UITableViewCell. As video playing inside UITableViewCell. When I leave that UIViewController, AVPlayer still running in background. How to stop AVPlayer and remove AVPlayerLayer from custom UITableViewCell?<issue_comment>username_1: You can use [confi... |
2018/02/26 | 1,131 | 2,950 | <issue_start>username_0: Let's say I have a list like this:
```
time type value
80 1A 10
100 1A 20
60 18 56
80 18 7
80 2A 10
100 2A 10
80 28 10
100 28 20
```
and I need to change it to be like this:
```
time
type ... |
2018/02/26 | 723 | 2,429 | <issue_start>username_0: Hello stackoverflow users,
I have a jquery to open a modal and the code is as follow
```
$(".openVarifiedModal").click(function(){
var otpFor = $(this).data("value");
var formdata = $(this).data("fieldvalue");
$.ajax({
type:'GET',
url:'ajax/ajax_send_otp.php',
... |
2018/02/26 | 523 | 1,964 | <issue_start>username_0: I am fairly new to coding, especially Javascript, and am having difficulty getting my form to recognize phone numbers using parentheses. I have been able to make a code for accepting dashes between numbers to work, but the variations I have attempted with parentheses have all come back as inval... |
2018/02/26 | 308 | 1,129 | <issue_start>username_0: Recently I have Wordpress version to 4.9.4 and my existing website was running on 4.7.4.
My Query is Display Posts Shortcode plug-in is compatible up to 4.8.4. If I update to WordPress version 4.9.4 does it create any issues.?<issue_comment>username_1: in firefox , use firebug (F12) and Network... |
2018/02/26 | 4,207 | 18,252 | <issue_start>username_0: Has anyone tried integrating there java code from CCU V2 to CCU V3 with fast purge. I read the documentation but unable to understand what needs to be done in case of a java based project. After we have configured the client in Akamai console how do we write the code to access and clear.
Any he... |
2018/02/26 | 953 | 2,984 | <issue_start>username_0: So i'm working with java on a currency denominations. the code for the most part is working just fine, but the only issue is with pennies. the problem i'm having is that it will keep leaving out 1 single penny when inputting certain amounts. Apparently we are suppose to use math.round() to conv... |
2018/02/26 | 1,587 | 4,704 | <issue_start>username_0: I hope everyone is doing well.
I am trying to develop a Bokeh interaction whereby selecting a part of a scatter plot will update a table.
I am using a lot of the sample code from the Bokeh documentation. My workplace is running an older version of Bokeh (0.12.5) so I had to change the last li... |
2018/02/26 | 1,040 | 3,059 | <issue_start>username_0: I am simply trying to toggle a class on and off with a click for a todo list app I am creating with vanilla JS only (no jQuery). What am I missing or doing wrong? Here is the code I have now
HTML
```
Todo List
==========
* item 1
* item 2
* item 3
```
JS
```
var h1 = document.querySele... |
2018/02/26 | 1,270 | 5,268 | <issue_start>username_0: I'm using Hibernate v5 in combination with GAE Flexible environment and Cloud SQL.
Everything works fine, but when an instance is waken up or after some cold time(no request served), it takes a long time to connect to the database (up to 8s) while the execution of query only takes in ms. Also ... |
2018/02/26 | 4,277 | 12,344 | <issue_start>username_0: I have initialed spring boot project using start.spring.io and added WEB,JPA,H2 dependencies.
>
> Pom file
>
>
>
>
```
xml version="1.0" encoding="UTF-8"?
4.0.0
com.example
demo
0.0.1-SNAPSHOT
jar
demo
Demo project for Spring Boot
org.springframework.boot
spring-boot-starter-par... |
2018/02/26 | 286 | 1,115 | <issue_start>username_0: Me and my co-worker both are freshers and I'm doing the front-end using VueJS and he is doing back-end using Laravel.
But How do we connect both back-end and front-end to deploy the final product?
We are struggling to put VueJS project files inside the laravel project files.
We don't have ide... |
2018/02/26 | 676 | 2,617 | <issue_start>username_0: In the attached file, when I sort on column C on descending order, it puts blanks on top. (it shouldn't happen)
Column D is just "Copy as values" of column C and sort works fine in column D
So I guess there is some issue with my formula in column C
File Link: <https://drive.google.com/open?i... |
2018/02/26 | 1,488 | 5,267 | <issue_start>username_0: When I run my application in android 4.4 - 4.4.x devices my app crashes, but when I run with android 5.0 onwards its working fine.
Crash logcat:
```
FATAL EXCEPTION: main
Process: com.Forewarn.ForewarnApp, PID: 18854
jav... |
2018/02/26 | 1,276 | 4,688 | <issue_start>username_0: There is a default Core Graphics method that tells the current active PDF page number.
Is there any way to get the current active page number as showing by the page indicator?
And also is there any way to hide the the page indicator?
Answer in Objective-C would be appreciated.
... |
2018/02/26 | 1,612 | 4,137 | <issue_start>username_0: I have written a program to input 2 strings in a string array.
And then print the maximum vowels stored in the list.
Where am i going wrong here,and is there a more elegant method to this.
```
#include
#include
int main()
int i,j,c=0,k=0,maxo=0,len1,maxo1=0,len3;
char vow[] = "AEIOUaeiou";
ch... |
2018/02/26 | 704 | 2,496 | <issue_start>username_0: I am trying to create an array so store 1 for correct answer from a quiz and 0 for wrong answer in the quiz. I am able to attain the "1" or "0" value in the array in the next question. However questions before that gives me null value.
For example when I complete question 1 and attempt questio... |
2018/02/26 | 624 | 1,513 | <issue_start>username_0: I am new in Python and would appreciate your help.
I got this counter object :
```
Counter({1: 10, 2: 10, 3: 10, 4: 10, 5: 10, 6: 10, 7: 10, 8: 10, 9: 10, 10:
10})
```
Each key is actually a userId with a count `number_of_posts` as a value.
So what I finally need is to convert this... |
2018/02/26 | 1,313 | 5,251 | <issue_start>username_0: I'm trying to handle POST requests in my API endpoint using a different serializer than the one derived from Model and used for GET or PUT requests. The format of the POSTed messages is different from the Model and from GET/PUT and must be pre-processed before storing to the database.
As a de... |
2018/02/26 | 619 | 2,667 | <issue_start>username_0: When I search about difference between Comparable and Comparator interface in Java, Most of the time I got the the answer that Comparator can be used for customize sorting. Can you please answer Following question?
**1) Why we can not use the Comparable in custom sorting instead of Comparator?*... |