date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/16 | 599 | 1,445 | <issue_start>username_0: I have an array of arrays `[[1,2,3], [4,5,6], [7,8,9], [10,11,12]]`
I want to merge elements like this `[[1,2,3,4,5,6], [7,8,9,10,11,12]]`. But have no idea how...<issue_comment>username_1: You can try the following (works only with even number of elements)
```js
var arr = [[1,2,3], [4,5,6], ... |
2018/03/16 | 785 | 2,677 | <issue_start>username_0: I'm facing a weird issue with the `pow()`. Please check the following function
```
let r = 8.5/1200
let n = ((5*12.0)+1)
let pp = (pow(Float(1 + r), Float(n)))
debugPrint(pp) // 1.53811562
let pq = (pow((1 + r), n))
debugPrint(pq) // 1.5381189771003985
```
Here `pow(Float, Float)` fu... |
2018/03/16 | 238 | 760 | <issue_start>username_0: ```
```
this give
>
> undefined
>
>
>
I'm using `MVC CustomHtmlHelper` to create `textbox(Because we need to create a dynamic form basis on the database)`,the control get render perfectly but "Emp.Name" is getting undefined.
Since the object is declare in TS.
```
```
This work fin... |
2018/03/16 | 291 | 1,100 | <issue_start>username_0: When executing ./assembleRelease from my react-native project's android folder project, I get the following error:
```
12:47:38.876 [ERROR] [org.gradle.BuildExceptionReporter] Failed to capture snapshot of input files for task 'bundleReleaseJsAndAssets' during up-to-date check.
12:47:38.876 [E... |
2018/03/16 | 724 | 2,652 | <issue_start>username_0: I am working on a webtable that doesn't have an ID or a class name. This is how the table looks like in HTML view
```
| |
| --- |
| |
```
and so on
how do i refer this table in selenium web driver?<issue_comment>username_1: Finding the element
===================
When you neither have a... |
2018/03/16 | 1,840 | 5,626 | <issue_start>username_0: I'm trying to connect celery with a rabbitMQ broker using SSL certificates.
This is the code:
```
from celery import Celery
import ssl
broker_uri = 'amqp://user:pwd@server:5672/vhost'
certs_conf = {
"ca_certs": "/certs/serverca/cacert.pem",
"certfile": "/certs/client/rabbit-cert.pem... |
2018/03/16 | 548 | 1,741 | <issue_start>username_0: Have a look at this jsbin <https://jsbin.com/dipater/edit?html,css,output>
I want the span to appear on line 2 in both cases (container 1 and 2). How can this be achieved?
```
x
```<issue_comment>username_1: Try using the setting:
```
broker_use_ssl=True
```
You can also use the broker url... |
2018/03/16 | 892 | 2,601 | <issue_start>username_0: I have what seems like a simple question but for which I can find no straightforward answer. I would like to write a function that takes two strings as input and gives an integer as output.
In R, the function would be as simple as:
```
utc_seconds = function(date_string, tz) as.integer(as.POS... |
2018/03/16 | 759 | 2,682 | <issue_start>username_0: I have a few Crystal Reports on my website. In my local machine it is working, but in the test environment, in another server when trying to use the report I get the following problem:
[](https://i.stack.imgur.com/Ep3B8.png)
... |
2018/03/16 | 1,114 | 3,542 | <issue_start>username_0: I am trying to get content from Message in SNS event in node js lambda project
here is a code for processing message
```
exports.handler = (event, context, callback) => {
var message = event.Records[0].Sns.Message;
console.log('Message received from SNS:', message);
message.Events.forEach(... |
2018/03/16 | 352 | 1,448 | <issue_start>username_0: How can we hide the tool bar entries in eclipse from plugin as shown in the image.
[](https://i.stack.imgur.com/xgov2.png)
In the tool bar how can we hide only the perspective as shown in figure.
[](https://i.stack.imgur.com/... |
2018/03/16 | 1,401 | 3,910 | <issue_start>username_0: There is a website that provides referral points to the signed-in user. In order to get the points, people are using genuine email IDs (say in Gmail) with a single dot added in various places of the email address. Pasted below are some samples of this case. If this kind of data is present alrea... |
2018/03/16 | 422 | 1,505 | <issue_start>username_0: I have a project that requires running multiple services each on a different folder and a db server.
How can I automate running all of them each in it's own terminal?
entering each folder and running "npm start" on separate terminal window.
thanks.<issue_comment>username_1: You can use this:
... |
2018/03/16 | 875 | 2,580 | <issue_start>username_0: I started learning C++ a few days ago.
I want to compile this example program in order to embed Python in C ++.
The C++ program is:
```
#include
#include
#define pi 3.141592653589793
using namespace std;
int main () {
//Inicio el interprete Python e imprimo informacion relevante
Py\_I... |
2018/03/16 | 1,135 | 3,868 | <issue_start>username_0: I'm trying to allow users to manipulate a list in Python.
```
number_of_commands = int(input())
x = 0
my_list = []
while x <= number_of_commands:
command, i, e = input().split(' ')
command = str(command)
i = int(i)
e = int(e)
x = x + 1
if command == 'insert':
... |
2018/03/16 | 1,155 | 3,751 | <issue_start>username_0: I'm traslating from Excel to R in order to achieve better result.
So actually i got a data.frame like this:
```
A B C D E F G
0 0 0 0 0 0 0
2 0 0 0 0 0 0
2 0 0 2 0 0 1
1 0 0 2 0 1 0
```
So [A:G] are the name of the columns that can just contain 0, 1 or 2 as number.
What i would like to do is... |
2018/03/16 | 745 | 2,317 | <issue_start>username_0: I am trying to implement a median filter in python using the following code
```
from PIL import Image
path = "gaussian.png" # Your image path
img = Image.open(path)
width, height = Image.size
members = [(0,0)] * 9
newimg = Image.new("RGB",(width,height),"white")
fo... |
2018/03/16 | 561 | 2,191 | <issue_start>username_0: I have two objects
```
"Conditions1": [
{
"fieldToken": "value1",
"uniqueName": "value2",
"conditionOperator": ">",
"conditionValue": "value3"
},
{
"fieldToken": "value1",
"uniqueName": "value2",
"conditionOperator": "==",
... |
2018/03/16 | 1,349 | 4,987 | <issue_start>username_0: If Thread1 tried to lock resource locked by Thread2.
Does it go to sleep for finite time ?
Now if the Thread2 unlock the mutex then how would Thread1 will come to know that resource is available ? Is the operating system wakes it up or it checks for resource periodically ?<issue_comment>usern... |
2018/03/16 | 1,985 | 7,422 | <issue_start>username_0: So i am running the same query on phpmyadmin and in my php code.
The query is :
```
SELECT comments.roomID,comments.message, comments.dateTimeSent, sender.fname ,sender.lname,receiver.fname, receiver.lname
FROM comments
INNER JOIN users as sender ON comments.senderID = sender.id
INNER JOIN us... |
2018/03/16 | 602 | 1,950 | <issue_start>username_0: I'm using the following example to check if an item is in a list:
```
var = 'a'
var_list = ('a','b','c')
if var in var_list:
do_something()
```
But in my case, what I have is a dictionary and a list of dictionaries:
```
var = {'name': 'John', 'age': 35, 'city': 'Orlando'}
var_list = ( {'n... |
2018/03/16 | 994 | 3,494 | <issue_start>username_0: I am doing a research work on HTML5 Drag and Drop concept by referring this [link](https://www.html5rocks.com/en/tutorials/dnd/basics/). Currently, I am facing a problem on `dragenter` event which is firing for the second time (for child element) before `dragleave`. Therefore, the dashed border... |
2018/03/16 | 187 | 733 | <issue_start>username_0: Is there a way in Laravel to do some check on associating?
For example I've `Home` and `Owner`, I would like on `associate` check if `Home` as already an `Owner`, and in that case I must execute some code...
Some suggestions?<issue_comment>username_1: You should use `event.stopPropagation();`... |
2018/03/16 | 832 | 3,019 | <issue_start>username_0: I have a controller with:
```
if($_POST) {
$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
$val = $this->form_validation;
$val->set_rules('content[title]', 'Title', 'trim|required');
$val->set_rules('content[subtitle]', 'Subtit... |
2018/03/16 | 460 | 1,203 | <issue_start>username_0: I want to call a REST api and get some json data in response in python.
```
curl https://analysis.lastline.com/analysis/get_completed -X POST -F “key=<KEY>” -F “api_token=<KEY>” -F “after=2016-03-11 20:00:00”
```
I know of python [request](http://docs.python-requests.org/en/latest/), but how... |
2018/03/16 | 753 | 1,931 | <issue_start>username_0: I have a code that works properly. He prints "ok".
```
data = "on482654225954"
if data:find("on.") then
start, stop = data:find("on.")
local a = 0
for i=stop,stop+11 do
if data:sub(stop+a,stop+a):match("[0-9]") then
t = { [a] = data:sub(stop+a,stop+a) }
a ... |
2018/03/16 | 412 | 1,146 | <issue_start>username_0: I wish to execute a function every time that a div tag with specific class is added in html page.
For example :
I add dynamically :
```
```
and function go\_form() is executed.
I try a code :
```
$(document).on("load", ".myform", function(){
var div_id = $(this).attr("id")
go_... |
2018/03/16 | 1,468 | 4,927 | <issue_start>username_0: I'm starting my journey with Vue.js, and stumbled upon some problem.
I wanted to create a simple sidebar with dropdown menu, and already got this:
```js
new Vue({
el: '#app',
data() {
return {
openedItems: {},
selectedSub: '',
userMenu: false,
items: [{... |
2018/03/16 | 472 | 1,783 | <issue_start>username_0: this is so annoying.
Yesterday, everything worked fine. I commited my work on my app and went to bed.
Today- nothing works.
I try to debug my program, the app installs on my phone and works but the debugging stops only with: Unable to start program "The system cannot find the file specified".
... |
2018/03/16 | 447 | 1,603 | <issue_start>username_0: Hi Friends am in need your all help that i got an scenario that navigating from one html page to another page
Clear explanation
-----------------
navigating from html page 1 to html page2 which contains three buttons with different id. i have to make the first button to be selected on page l... |
2018/03/16 | 220 | 802 | <issue_start>username_0: I am trying to migrate mongodb data to Cosmos db. The migration tool I am using, is asking for "AccountKey" required to connect the Cosmosdb.
I am not able to get the account key in azure portal.
<https://portal.azure.com><issue_comment>username_1: You can find the **AccountKey** from **`Sett... |
2018/03/16 | 360 | 1,351 | <issue_start>username_0: ```
public typeArray= [
{
id: 'MOTHER',
name: '{{ myApp.type.MOTHER | translate }}'
}];
```
How can we write to translate while defining an array in a TypeScript file?<issue_comment>username_1: You can use your pipes in your components or anywhere you wa... |
2018/03/16 | 343 | 1,206 | <issue_start>username_0: While trying to run metasploit in arch linux im getting
```
[root@archserver ~]# msfconsole
[-] Failed to connect to the database:
PG::InvalidParameterValue: ERROR: invalid value for parameter
"TimeZone": "UTC" : SET time zone 'UTC'
```
Postgres configuration is done and db is also created... |
2018/03/16 | 971 | 3,090 | <issue_start>username_0: I keep running into trouble when working with ObjectIds and lodash. Say I have two arrays of objects I want to use lodash `_.unionBy()` with:
```
var arr1 = [
{
_id: ObjectId('abc123'),
old: 'Some property from arr1',
},
{
_id: ObjectId('def456'),
ol... |
2018/03/16 | 427 | 1,503 | <issue_start>username_0: What is the difference between **strictSSL=false** and **rejectUnauthorized=false** options in NodeJS?
The names are confusing and I did not find documentation, explaining the difference.<issue_comment>username_1: I think these two flag options are used in different context and are not exactly... |
2018/03/16 | 1,228 | 4,290 | <issue_start>username_0: Basicly I'm trying to add an object with my own functions inside the object.prototype.
```
Object.prototype.personalTest = {
sum: function () {
return this.something + this.other;
}
};
var numbers = {
something: 1,
other: 2
};
console.log(numbers.personalTest.sum());
```
Problem ... |
2018/03/16 | 391 | 1,348 | <issue_start>username_0: Experienced node js devs often recommend to use [npm pump](https://www.npmjs.com/package/pump) module instead of node [Stream.pipe](https://nodejs.org/dist/latest-v9.x/docs/api/stream.html#stream_readable_pipe_destination_options) method.
Why would I use one instead of the other?
There is a ... |
2018/03/16 | 487 | 1,500 | <issue_start>username_0: i wrote a short Codepen where i tried to alter a temporary Array while keeping the original one, but both of my Arrays get altered.
Could someone explain me what the problem is?
```
var x = ["x"];
abc(x);
function abc(x){
for(var i = 0; i < 3; i++) {
var y = x;
y.unshift("y");
... |
2018/03/16 | 750 | 2,913 | <issue_start>username_0: I'm using serverless to deploy an AWS CloudFormation template and some functions, here is a part of my serverless.yml file:
```
resources:
Resources:
MyUserPool: #An inline comment
Type: "AWS::Cognito::UserPool"
Properties:
UserPoolName: "MyUserPool"
Policies:... |
2018/03/16 | 876 | 2,876 | <issue_start>username_0: I am using `react` **v16.3.0** and `flow-bin` **v0.69.0**
Using react [Fragments](https://reactjs.org/docs/fragments.html) with either or the shorthand `<>` syntax like so
```
import React from 'react'
const ComponentA = () => (
Component
A
)
const ComponentB = () => (
<>
Compone... |
2018/03/16 | 453 | 1,576 | <issue_start>username_0: Hi I am trying to develop navigation bar using CSS.
I am display menus in navigation but these menus are not displaying as expected. I am trying to display as below.
[](https://i.stack.imgur.com/ub5rJ.png)
```css
ul {
... |
2018/03/16 | 2,856 | 10,930 | <issue_start>username_0: From my understanding about git, every time I perform a `git checkout` one of two things happens:
1. The branch already exists locally and so the HEAD is simply positioned on the top of it.
2. The branch does not exist locally and so git "clones" it from the remote repository (let's just assum... |
2018/03/16 | 308 | 1,149 | <issue_start>username_0: I created .appinstaller file for managing instalation via App Installer.
I followed this docs: <https://learn.microsoft.com/en-us/windows/uwp/packaging/install-related-set>
And I have 3 dependencies for it:
[](https://i.stack... |
2018/03/16 | 381 | 1,369 | <issue_start>username_0: I have a map function that is iterating through an array and populating a table like this:
```
var programData = this.state.data.map(program => (
|
{program.scheduledStartDateTime}
|
{program.searchableTitles[1].value.en}
|
));
```
However, sometimes the second field: `program.se... |
2018/03/16 | 1,189 | 4,359 | <issue_start>username_0: I am trying to add an array to exiting array. Its getting added but array inside array is what the out.
Current scenario
```
Array
(
[t373980] => stdClass Object
(
[tid] => 373980
[name] => Ability
[depth] =... |
2018/03/16 | 1,039 | 3,721 | <issue_start>username_0: Size of data to get: 20,000 approx
Issue: searching Elastic Search indexed data using below command in python
but not getting any results back.
```
from pyelasticsearch import ElasticSearch
es_repo = ElasticSearch(settings.ES_INDEX_URL)
search_results = es_repo.search(
query, ind... |
2018/03/16 | 810 | 3,569 | <issue_start>username_0: Before you assume, I did read ALL other posts on this problem and I was unable to find a solution to my problem.
So the thing is, however and wherever i upload my files and folders on my web host i get the same result giving me the "currently unable to handle this request. HTTP ERROR 500". I'm... |
2018/03/16 | 555 | 1,922 | <issue_start>username_0: I can't figure out what's the proper way of importing a Typescript npm module.
Here's how I'm trying to do it:
**module package.json**
```
{
"name": "my-module",
"main": "src/myModule.ts"
}
```
**module src/myModule.ts**
```
export module MyModule {
// Code inside
}
```
**code usi... |
2018/03/16 | 581 | 1,753 | <issue_start>username_0: I want a column vector as my output but instead getting a single dimension array. Please check the code in the fiddle. What have I done wrong?
My Current and Expected output are:
**Current Output:** Array `[ 0, 1 ]` Array `[ 5, 10 ]`
**Expected Output:** Array `[ 0 ]` Array `[ 1 ]` Array `[... |
2018/03/16 | 1,218 | 3,192 | <issue_start>username_0: I have two table Claim and Resubmission. **Claim** table has one **Resubmission** (i.e.,)**Resubmission** table belongs to **Claim** table.
Below is my table structure:
```
Claim:
ClaimPKID | Net | Gross | Date
1 | 2000 | 6000 | 2018-01-02
2 | 1000 | 1500 ... |
2018/03/16 | 514 | 1,649 | <issue_start>username_0: I have the following JavaScript variable I am using in conjunction with Google Maps API.
For some reason I am getting the error
>
> "Uncaught SyntaxError: Unexpected identifier"
>
>
>
I believe it has to do with the 4th line in the following code snip. I do not expect this abut it seems ... |
2018/03/16 | 1,064 | 4,627 | <issue_start>username_0: I am new to Azure ML. I am having some doubts .Could anyone please clarify my doubts listed below.
1. What is the difference between Azure ML service Azure ML experimentation service.
2. What is the difference between Azure ML workbench and Azure ML Studio.
3. I want to use azure ML Experiment... |
2018/03/16 | 693 | 2,195 | <issue_start>username_0: I have two mysql tables. One with article numbers and one with variants numbers.
No I want to join the tables so have a result table with every possible article/variant combination.
For example:
Article numbers table:
```
+-----------+-------------+
| ArticleNo | ArticleName |
+-----------+--... |
2018/03/16 | 740 | 2,692 | <issue_start>username_0: I am writing a bash script and want it to tell me if the names of the files in a directory appear in a text file and if not, remove them.
Something like this:
```
counter = 1
numFiles = ls -1 TestDir/ | wc -l
while [$counter -lt $numFiles]
do
if [file in TestDir/ not in fileNames.txt]
... |
2018/03/16 | 828 | 2,142 | <issue_start>username_0: I have a data set like this:
```
df <- data.frame(v1 = rnorm(10), col = rbinom(10, size=1,prob= 0.5))
rownames(df) <- letters[1:10]
> head(df)
v1 col
a -0.1806868 1
b 0.6934783 0
c -0.4658297 1
d 1.6760829 0
e -0.8475840 0
f -1.3499387 1
```
I plot it like this:
```... |
2018/03/16 | 906 | 3,241 | <issue_start>username_0: I am trying to read the server-side logs for the buckets in my Google Cloud Storage project via the `gcloud` command-line program (to solve an error I get using the storage client).
It does not seem like the logs are available in the [Stackdriver Logging UI](https://console.cloud.google.com/lo... |
2018/03/16 | 446 | 1,641 | <issue_start>username_0: I have a table containing:
```
table = [[1, 'FANTASTIC FOUR', 'EXOTIC SPACE'],[4, 'CRIMSON PEAK', 'MINIONS','SUPERMAN'],[20, 'FANTASTIC FOUR', 'EXOTIC SPACE']]
```
and I'm writing a python function to traverse through the table, look for similarities in the string elements and printing out i... |
2018/03/16 | 652 | 2,372 | <issue_start>username_0: I seem to have issues when trying to create a mongoose connection. I am following a book published in 2014 so my immediate response was to check the mongoose docs but they agree that the book gives the correct format. Below is my connection:
```
var dbURI = 'mongodb://localhost/Loc8r';
mongoos... |
2018/03/16 | 456 | 1,960 | <issue_start>username_0: I recently updated an app for a client and it's now ready for submission to the App Store. But after a talk with my client they told me that the previous version (not developed or submitted by me) had a kind of "password protection" on the App Store. They explained it as anyone could find the a... |
2018/03/16 | 1,654 | 6,181 | <issue_start>username_0: I'm trying to "simulate" namespacing in python. I'm using inner and outer class hirarchies to create my namespaces. For example you want to save paths of files (like resources) in one location. I tried something like this:
```
src = #path to source folder
class Resources:
root = src + "Re... |
2018/03/16 | 2,091 | 6,787 | <issue_start>username_0: I want to check the size, max value, and min value of data type int, long and their unsigned form. The output of my program shows that both int and long have the same size, max, and min value, same goes to their unsigned form. Here is the output of my program:
```
Size of int : 4 byte, Max val... |
2018/03/16 | 306 | 1,151 | <issue_start>username_0: Module can be used from both side, how can i detect this from Module bootstrap file ([`yii\base\BootstrapInterface`](http://www.yiiframework.com/wiki/652/how-to-use-bootstrapinterface/#hh2))
Use `$app->id` is not good idea.<issue_comment>username_1: You can use this simple function:
`function... |
2018/03/16 | 343 | 1,357 | <issue_start>username_0: I have got one table (Table1) with some columns filled by data and one empty column. There is another table (Table2) with one column with data. There is no foreign key or any link to that tables just row numbers are equal. I want update empty column of Table1 by data from column of Table2 row b... |
2018/03/16 | 299 | 1,118 | <issue_start>username_0: I need to know cron expression to run every monday between 1 and 1:30 am.
I have tried below expressions not worked.
```
1 * 1-2 ? * MON *
```
Can anyone help me to write cron expression?<issue_comment>username_1: You can use this simple function:
`function getContext() {
return basename(... |
2018/03/16 | 460 | 1,473 | <issue_start>username_0: Is it possible to do formal verification with Chisel3 HDL language?
If yes, is there an open-source software to do that ?
I know that we can do verilog formal verification with Yosys, but with chisel ?<issue_comment>username_1: SpaceCowboy asked the same question [here](https://stackoverflow.co... |
2018/03/16 | 652 | 2,403 | <issue_start>username_0: What is good about using `[[maybe_unused]]`?
Consider
```
int winmain(int instance, int /*prevInstance*/, const char */*cmdline*/, int show);
int winmain(int instance, [[maybe_unused]] int prevInstance, [[maybe_unused]] const char *cmdline, int show);
```
Some might insist that using commen... |
2018/03/16 | 597 | 2,242 | <issue_start>username_0: In java spring MVC Application I have a text file under resources folder,
What'is the most efficient way to read this file from a service class? Can I read this file if I deploy the application like a war on AWS?
```
Resource resource = new ClassPathResource(fileLocationInClasspath);
InputStre... |
2018/03/16 | 647 | 2,262 | <issue_start>username_0: <https://colab.research.google.com/notebooks/io.ipynb#scrollTo=KHeruhacFpSU>
In this notebook help it explains how to upload a file to drive and then download to Colaboratory but my files are already in drive.
Where can I find the file ID ?
```
# Download the file we just uploaded.
#
# Repla... |
2018/03/16 | 2,731 | 10,677 | <issue_start>username_0: EDIT:
I am trying to populate firebase recyclerview from firebase and it looks like everything is fine with reaching out for the data but when it comes to populate the textview it throws
```
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(... |
2018/03/16 | 449 | 1,802 | <issue_start>username_0: I'm writing a webtest in Visual Studio 2015. The webtest I currently have allows me to run a static test.
I would like to spice things up and therefore add more realistic data. The data I want to use is stored in an Oracle Database 12c.
So I'm trying to add a new Data Source to the webtest. I e... |
2018/03/16 | 1,084 | 3,984 | <issue_start>username_0: I assume that an ES6 class is an object as "everything" is objects in JavaScript. Is that a correct assumption?<issue_comment>username_1: From the point of view of `Object Oriented Programming` *class* is **not** an *object*. It is an *abstraction*. And every object of that is a concrete instan... |
2018/03/16 | 1,098 | 3,303 | <issue_start>username_0: I am using google charts, which shows the stacked bar chart. I tried `groupwidth`, but help well increasing the width.
Any help is much appreciated.
```js
function drawChart() {
// Define the chart to be drawn.
var data = google.visualization.arrayToDataTable([
... |
2018/03/16 | 963 | 3,156 | <issue_start>username_0: I am new to Python & I am trying to learn how to XOR hex encoded ciphertexts against one another & then derive the ASCII value of this.
I have tried some of the functions as outlined in previous posts on this subject - such as bytearray.fromhex, binascii.unhexlify, decode("hex") and they have... |
2018/03/16 | 658 | 2,272 | <issue_start>username_0: Have been searching for the solution to my problem now already for a while and have been playing around regex101.com for a while but cannot find a solution.
The problem I am facing is that I have to make a string select for different inputs, thus I wanted to do this with Regular expressions to... |
2018/03/16 | 457 | 1,377 | <issue_start>username_0: What happens to the object returned from the last line of following code
```
class weight
{
int kilogram;
int gram;
public:
void getdata ();
void putdata ();
void sum_weight (weight,weight) ;
weight sum_weight (weight) ;
};
weight weight :: sum_weight(weight w2)
{
weight t... |
2018/03/16 | 146 | 596 | <issue_start>username_0: I'm assuming if I log into a project and there are User Stories then the project was created using the Agile template and if there are Product Backlog Items and Bugs then the project was created using the Scrum template. Is this correct?<issue_comment>username_1: Yes, this is correct. Also if y... |
2018/03/16 | 1,820 | 6,068 | <issue_start>username_0: I have a text file containing several function blocks and some of them are duplicates. I want to create a new file which contains only unique Function blocks. e.g.
input.txt (I have updated the example):
```
Func (a1,b1) abc1
{
xyz1;
{
xy1;
}
xy1;
}
Func (a2,b2) abc2
{
xyz2;
... |
2018/03/16 | 644 | 2,389 | <issue_start>username_0: i am having route where i pass id,but i dont want to show id in url,
```
``
```
this gets converted in url <https://local..../invite-members/5>,
but instead of that i want <https://local..../invite-members>, but the functionality should remain the same as in i get id in invite-members throug... |
2018/03/16 | 651 | 2,475 | <issue_start>username_0: Hi i want to know that how to run angular application permanently. means if i run the npm start command on local server. then after it gives a url with port like **localhost:4200**. but when i close the terminal then my project not run.
Same thing happen with me on live server when i run my com... |
2018/03/16 | 752 | 2,890 | <issue_start>username_0: I am using opentok to stream a video file `MediaStreamTrack`
Sample code:
```
const mediaStream = $('#myPreview')[0].captureStream()
OT.initPublisher(el, {
style: {
nameDisplayMode: "on",
buttonDisplayMode: "off",
},
... |
2018/03/16 | 1,193 | 4,681 | <issue_start>username_0: I was testing some commands and I ran
```
$ kubectl delete nodes --all
```
and it deletes de-registers all the nodes including the masters. Now I can't connect to the cluster (Well, Obviously as the master is deleted).
Is there a way to prevent this as anyone could accidentally do this?
Ex... |
2018/03/16 | 313 | 1,143 | <issue_start>username_0: I have a problem using Twig in Pyrocms. I am trying to echo a variable within a shorthand if statement in Twig.
```
style="background-image: {{ (not link.bgcolor is empty ? 'linear-gradient(transparent, {{link.bgcolor}}),' : '')|raw }} url('{{link.image.url()}}');"
```
The statement is corre... |
2018/03/16 | 527 | 1,767 | <issue_start>username_0: i have modal popup in loop with database values. In popup there is a reply textarea and i want to post that value using ajax. But i am getting empty value of textarea when i alert value on click event using jquery. Here is my code
CODE:
```
php
$sn=1;$rep=1;
foreach($view_queries as $q) {?
[... |
2018/03/16 | 887 | 2,532 | <issue_start>username_0: I have to match numbers between 1 and 33689 and after this it should come A, AB or ABC.
I have now %1, `^[0-9\.]{0,5}.*[A-z]+$` and I am working with Oracle Business Intelligence. So, it is not a direct database query. With MySQL I have made with `^[a-zA-Z0-9_]{1,5}([^[:digit:]]|$)` and I have... |
2018/03/16 | 813 | 2,370 | <issue_start>username_0: I try to use `hjkl` for navigation in VS code, but I get thrown off whenever a code completion drop down appears as I must use the arrow keys to navigate those. Is there any way around this? How do you do?
[](https://i.stack.i... |
2018/03/16 | 754 | 2,629 | <issue_start>username_0: I am using `jira-ruby` Gem.
```
require 'jira-ruby'
options = {
:username => 'xxxxxxxx',
:password => '********',
:site => 'https://xxx.yyyy.com',
:context_path => '',
:auth_type => :basic,
:use_ssl => true
}
client = JIRA::Client.new(options)
project = client.Project.find... |
2018/03/16 | 598 | 1,956 | <issue_start>username_0: I wanted to output some scores in a rank from MySQL database with php. After my select query, I try echoing the value but all I get is RESOURCE ID 10#. This is my code:
```
$rank = mysql_query("SELECT 1+COUNT(*) FROM `class_ranking` WHERE overall_scores > (SELECT overall_scores FROM `class_ran... |
2018/03/16 | 4,753 | 17,927 | <issue_start>username_0: I am trying to make android build using command
ionic cordova build android
but I am facing error like
>
> Minimum supported Gradle version is 4.1. Current version is 3.3. If using t
> he gradle wrapper, try editing the distributionUrl in D:\BAXA\_POS\Development\tr
> unk\Mobile\baxa\_p... |
2018/03/16 | 562 | 2,398 | <issue_start>username_0: When I receive message from FCM, I am able to print all it's content till the point
```
if let message = userInfo[AnyHashable("message")] {
print(message)
}
```
Message body contains string like => `{"sent_at":1521203039,"sender":{"name":"sender_... |
2018/03/16 | 1,427 | 4,127 | <issue_start>username_0: on bash 4.4.12 using jq 1.5 with this one-liner `IFS=_ read -r -a a < <(jq -ncj '["a","b","c"][]+"_"') ; printf '%s\n' "${a[@]}"` I get a properly delimited output
>
> a
>
>
> b
>
>
> c
>
>
>
for elements a, b and c respectively, BUT if I try the same thing with a null delimiter like ... |
2018/03/16 | 954 | 3,788 | <issue_start>username_0: **Problem**
We have a quite complex application and we don't want in each test case to go through the whole process to get to specific screen to test it, alternatively we just want to jump to specific one with some state stored in redux store.
---
**What I've tried**
I made multiple ini... |
2018/03/16 | 679 | 2,560 | <issue_start>username_0: In xcode it shows like below image. I am trying to push my code. But I dont know what is missing by me.
[](https://i.stack.imgur.com/KHoEM.png)<issue_comment>username_1: I think there is no way detox can communicate with react... |
2018/03/16 | 723 | 2,726 | <issue_start>username_0: I used have a template string, read from DB and or text file:
```cs
var template="Your order {0} has dispatched from {1}, ETA {2:HH:MM dd.MM.yyyy}";
```
And then used `string.Format(template, orderNo, warehouse, eta)`
to inject correct values.
Now, a business decision was made, to change th... |
2018/03/16 | 583 | 2,584 | <issue_start>username_0: I have a very similar problem to this post: [Rest Assured doesn't use custom ObjectMapper](https://stackoverflow.com/questions/43127485/rest-assured-doesnt-use-custom-objectmapper)
However, I am using slightly different configurations/models and the provided answer did not solve my problem.
W... |
2018/03/16 | 454 | 1,864 | <issue_start>username_0: Created a blank ASP.NET Core 2.0 application.
In Startup.cs, would like to log incoming requests. So in configure method, I am using Microsoft.Extensions.Logging.ILogger
```
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILogger logger)
{
app.Use(next =>
... |
2018/03/16 | 2,798 | 11,645 | <issue_start>username_0: My string is like this:
```
string str = "Psppsp palm springs airport, 3400 e tahquitz canyon way, Palm springs, CA, US, 92262-6966 psppsp";
```
I get the string "psppsp" separately and need to compare it with the first and last word in str and if found (at first or last word), need to remov... |
2018/03/16 | 825 | 2,730 | <issue_start>username_0: There is `vector` of `shared_ptr` to base class.
```
struct Base
{
virtual ~Base() = 0 {}
};
struct Derived1 : Base
{
};
struct Derived2 : Base
{
};
std::vector> v;
v.push\_back(std::make\_shared(Derived1()));
v.push\_back(std::make\_shared(Derived2()));
```
How can I make a copy of t... |
2018/03/16 | 1,125 | 3,038 | <issue_start>username_0: How can I split URIPATHPARAM in grok filter.
Here is my grok pattern.
```
grok {
match => ["message", "%{TIMESTAMP_ISO8601:timestamp} %{NOTSPACE:loadbalancer} %{IP:client_ip}:%{NUMBER:client_port:int} (?:%{IP:backend_ip}:%{NUMBER:backend_port:int}|-) %{NUMBER:request_process... |
2018/03/16 | 724 | 2,718 | <issue_start>username_0: 
In above screen, you can see I am using a `UIStackView` to fill radio buttons vertically. problem is my radio buttons not utilising the full width of `UIStackView` when I use `stackV.alignment = .leading` it shows label as "dis..lified" instead of disqu... |