date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/19 | 1,258 | 5,247 | <issue_start>username_0: I have been trying to write an MsBuild task to automatically get Nuget packages from a feed url and automatically update the packages.config to update to the latest version.
```
// ---- Download and install a package at a desired path ----
var sourceUri = new Uri("FEED URL");
// ---- Upd... |
2018/03/19 | 803 | 3,082 | <issue_start>username_0: I am trying to implement a simple program that contains the router in react. I am using 'react-router-dom' for it.
Here's how my App.jsx looks like
```
import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import { Headerbar } from './HeaderBar.jsx';
im... |
2018/03/19 | 688 | 1,451 | <issue_start>username_0: Is there an easy way to transform a datetime column in python to a format of `YYYYQx`, for example `2018Q1`, `2018Q2` etc?
I've tried this line but returns nothing
```
zip([list(DF_A['period'].dt.year), ['Q']*length_of_DF, list(DF_A['period'].dt.quarter)])
```<issue_comment>username_1: You c... |
2018/03/19 | 751 | 1,642 | <issue_start>username_0: Any way to combine splits?
I have two splits, `dfa` and `dfb`.
`dfa` is a Large list (4 elements) with 4 variables i.e. `dfa[[1]]` selects the first split
`dfb` is also a Large list (11 elements) with the same 4 variables.
Is there any way to make it as follows:
`dfc` Large List (15 elemen... |
2018/03/19 | 429 | 1,819 | <issue_start>username_0: Long story short, our git server (gitlab if it matters) which hosts about 100 repos got reverted to 3 weeks ago state. We (developers) apparently have all changes made after that on our local computers - that's how GIT works, right? How do we sync them back to the server? The problem I see is t... |
2018/03/19 | 725 | 2,781 | <issue_start>username_0: I went to do a `sync` in VS 2017 (15.3.5) Team explorer and it says `pull` operation failed. I am using `git` as version control.
This is the error I got:
```
Remote: Microsoft (R) Visual Studio (R) Team Services
Remote:
Remote: Found 18 objects to send. (631 ms)
Pull operati... |
2018/03/19 | 690 | 1,595 | <issue_start>username_0: I have a data set which contains the list of users and corresponding articles consulted like:
```
A_ID<-c(111,116,111,112,112,114,116,113,114,111,114,116,115,116)
U_ID<-c(221,221,222,222,223,223,223,224,224,225,225,225,226,226)
df_u_a<-data.frame(U_ID,A_ID)
```
I want to build a matrix that ... |
2018/03/19 | 503 | 1,681 | <issue_start>username_0: I am trying to know a position of a string (word) in a sentence. I am using the function below. This function is working perfectly for most of the words but for this string `GLC-SX-MM=` in the sentence `I have a lot of GLC-SX-MM= in my inventory list` there is no way to get the match. I tryied ... |
2018/03/19 | 1,724 | 5,355 | <issue_start>username_0: Is this possible to have types restricted without `if` by function calls that `never` return for e.g `undefined` like `assert` in Typescript?
Example code:
```
interface Foo { bar(): void }
function getFoo(): Foo | undefined { }
function test() {
const foo = someService.getFoo();
ass... |
2018/03/19 | 1,338 | 3,931 | <issue_start>username_0: When I use
```
php bin/console generate:doctrine:crud
```
to create crud in symfony , symfony give me several functions like
```
public function showAction(user $user)
```
and my Q is what is `user $user`? but url is `/{id}/show`
why we don't use $id in showAction function?
and how user $u... |
2018/03/19 | 768 | 2,547 | <issue_start>username_0: I currently have the following data:
```
const data = [
{
Zone: 'Airport',
Lane: 'AIRDEL',
Capacity: '90',
Status: '80',
Spaces: '10',
LastAuditedOn: 'due',
AuditedBy: 'Ross',
FirstCollection: '-',
... |
2018/03/19 | 448 | 1,418 | <issue_start>username_0: How to position things in css when creating a website so that is more flexible<issue_comment>username_1: You can do this simply using [`.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) and [`.join()`](https://developer.mozilla.org/en-US/docs/Web... |
2018/03/19 | 1,224 | 3,613 | <issue_start>username_0: I was trying to make heapsort using min heap, that too with a Structure that points to a array pointer. Now there is some logical error either in *createHeap* function or in *heapify* function.
Note:Rest of the program need not to be check or edit, **Heapify** and **createHeap** need to modify ... |
2018/03/19 | 787 | 2,272 | <issue_start>username_0: Iam trying to access [coinbase api](https://developers.coinbase.com/api/v2#list-addresses) to generate address on my ubuntu terminal.
```
curl -k -X GET "https://api.coinbase.com/v2/accounts/3e3835d3----/addresses" -H "CB-VERSION: 2015-04-08" -H "accept: application/json;charset=utf-8" -H... |
2018/03/19 | 762 | 2,589 | <issue_start>username_0: I'm working on a customer support bot which helps business users understand the meaning of certain technical terms or status of some of their requests. A typical sentence looks like below
1. Explain me about Air Compressor/Heating and cooling systems/ Law Of
Thermodynamics
2. Get me the status... |
2018/03/19 | 427 | 1,442 | <issue_start>username_0: What is wrong with this code? *I want so when the div loads all the -p- tags inside div "story\_L3" are removed leaving the plain text*. simple enough but my code does'nt work, please advice (see example)
```
This is a paragraph inside a p element.
This is a paragraph inside another p ele... |
2018/03/19 | 410 | 1,644 | <issue_start>username_0: I successfully had queued tasks working on a test site, and updated my live site (same server). The live queue is now just filling up without being processed, or attempted. I am using forge, and that is running a queue process. Can anyone help with what I can check next to find out why it would... |
2018/03/19 | 476 | 1,754 | <issue_start>username_0: Angular code to load the data
```
constructor(private http: HttpClient , private _title: Title,
private _meta: Meta) {
this.facts = this.http.get('https://non-ssr-angular.firebaseio.com/facts.json');
this.posts = this.http.get(`${this.baseURL}/api/post/ByMemberAsync/0/None`);... |
2018/03/19 | 409 | 1,323 | <issue_start>username_0: In azure functions we create the function route / name, but it Always preceded by /api
on the [documentation](https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-serverless-api) we read:
>
> Note that you did not include the /api base path prefix in the route template, a... |
2018/03/19 | 623 | 2,135 | <issue_start>username_0: I'm new to React and gulp and I'm trying to build a sample project. I managed to include a React task for gulp, to convert my react entry file (App.js), but the problem is that whenever I insert a rule in my CSS file which is imported in my App.js, I get an error, while everything works fine wh... |
2018/03/19 | 693 | 2,283 | <issue_start>username_0: I am using nHapi in c#.net to convert hl7 messages to xml format using the following code.
My code:
```
using System;
using NuGet;
using NHapi.Model;
using NHapi.Model.V231;
using NHapi.Model.V231.Message;
using NHapi.Base.Parser;
using NHapi.Base.Model;
namespace HL7parser
{
class Progra... |
2018/03/19 | 470 | 1,360 | <issue_start>username_0: Width, Height and Depth of small box: `1x1x1`
Width, Height and Depth of big box: `3x3x3`
Number of `1x1x1` that will fit in `3x3x3` box is: `27`
I have an exercise like that using python3 to get the outcome.
I did:
```
sb = input("Width, Height and Depth of small box: ")
s= 'x'
```
And... |
2018/03/19 | 727 | 2,299 | <issue_start>username_0: I am writing a 3D application where I need to check if a point is inside a capsule. Because a capsule can be divided into two half-ellipsoids and a cylinder, so the problem can be solved by checking a point against the three components. Checking if a point is inside an ellipsoid is easy, but I ... |
2018/03/19 | 768 | 2,875 | <issue_start>username_0: Edit: It was caused by an obscure `height: 34px !important;` made by someone a long time - never trust old code. Commented and worked perfectly. Thanks <NAME> for suggesting a snippet inclusion and <NAME> for bringing the height issue that made me think about it. When trying to reproduce the be... |
2018/03/19 | 637 | 2,484 | <issue_start>username_0: I create Spring Boot 2.0 Starter project using web and cache dependencies:
```
org.springframework.boot
spring-boot-starter-cache
org.springframework.boot
spring-boot-starter-web
```
Then I updated Spring bootstrap class to test REST services caching:
```
@SpringBootApplication
@Enabl... |
2018/03/19 | 320 | 1,286 | <issue_start>username_0: I have input xml like this and need to map Value of Complexelement2.value to variable "Access" in output only when Complexelement2.name is "AccessLevel" .
```
SystemType
100
AdminId
606
AccessLevel
200
```
need some suggestion for this conditional traversing for this in Dataweave- M... |
2018/03/19 | 773 | 2,013 | <issue_start>username_0: Is it possible to create a Highcharts plot background like the picture below? It's important it will adjust when the plot is zoomed in/out.
E.g. Using radialGradient, but without the "gradient" between the colors.
[](https://i.stack... |
2018/03/19 | 916 | 2,522 | <issue_start>username_0: how To delete physically old image after updating
```
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Edit(Job job, HttpPostedFileBase jobimage)
{
if (ModelState.IsValid)
{
System.IO.File.Delete(Path.Combine(Server.MapPath("~/Uploads"),job.JobImage));
string p... |
2018/03/19 | 1,248 | 2,485 | <issue_start>username_0: I have a list of frequencies (i.e. freq\_lst), which need to be retrieved by a nested list in order to do the calculation. The calculation is done using freq\_lst and r\_freq, illustrated as follows:
```
freq_lst = [0.03571429, 0.03571429, 0.07142857, 0.07142857, 0.10714286, 0.07142857, 0.071... |
2018/03/19 | 611 | 1,939 | <issue_start>username_0: Consider the following list:
```
alist = [18,5,22,6,38,43]
```
This list is composed of numbers ranging from 1 to 49. These 49 numbers are divided into 7 groups:
```
oneto49numbers = list(range(1, 50))
grouped = list(zip(*[iter(oneto49numbers)]*7))
```
How can I check the amount of differ... |
2018/03/19 | 656 | 2,436 | <issue_start>username_0: I have followed this official tutorial [Getting Started Centralized Configuration](https://spring.io/guides/gs/centralized-configuration/) using spring boot 2.0.0.RELEASE and spring cloud Finchley.M8
But refreshing properties on the fly (Without restart) is not working.
After Some debugging, I... |
2018/03/19 | 1,202 | 3,714 | <issue_start>username_0: I want to overlay multiple videos over a single video at specified interval of time.
have tried with different solution but it will not work as i aspect
i am use below command to overlay video over video
```
String[] cmdWorking3 = new String[]{"-i",yourRealPath,"-i",gifVideoFile1,"-i",gifVid... |
2018/03/19 | 486 | 1,489 | <issue_start>username_0: I created this bit go regex in the regexer website and it worked with the things I entered, I want to to allow upper and lowercase letters but to not allow combinations over 40 characters, this is the regex...
```
^[a-z]|[A-Z]{1,40}$
```
the line of code is...
```
First name:
```<issue_co... |
2018/03/19 | 881 | 3,119 | <issue_start>username_0: I want to print integer numbers from 1 to a random integer number (e.g. to a random integer number < 10 like in the following case). I can use e.g. one from the following ways:
1)
```
val randomNumber=r.nextInt(10)
for (i <- 0 to randomNumber) {println(i)}
```
2)
```
for (i <- 0 to r.nex... |
2018/03/19 | 504 | 1,526 | <issue_start>username_0: I'm trying to get this animated svg tree to work in Wordpress. It works fine in codepen, but not at all in a Wordpress page on my localhost.
Can anyone see what is missing/wrong? In the page source code the javascript files are loading.
[svg tree](https://i.stack.imgur.com/oRw7D.png)
```js
v... |
2018/03/19 | 239 | 934 | <issue_start>username_0: In `VkSubmitInfo`, when `pWaitDstStageMask[0]` is `VK_PIPLINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT`, **vulkan** implementation executes pipeline stages without waitng for `pWaitSemaphores[0]` until it reaches Color Attachment Stage.
However, if the command buffer has multiple subpasses and multi... |
2018/03/19 | 406 | 1,406 | <issue_start>username_0: Often after refactoring `throws` sections become unnecessary. IntelliJ highlights them with grey showing that they can be removed, but I'd like to remove them automatically (just like unused imports get removed via `ctrl`+`alt`+`O`).
**Q:** Is there a way to automatically remove unused `throws... |
2018/03/19 | 472 | 1,230 | <issue_start>username_0: Simple question, but I can´t get over it...
I have two arrays:
```
var arrayA = [67.98, "-", 91.77, "-", "-", 8.09];
var arrayB = [3, 4, 9, 1, 12, 77];
```
So, I need to remove all values from arrayB which have the indexes of the value `"-"` in `arrayA`. In this case the result of arrayB sh... |
2018/03/19 | 383 | 1,116 | <issue_start>username_0: I am receiving HTTP requests on a Tibco service using **HTTP Receiver** element, and I would like a way to extract or parse the Soap Body from the Request, without resorting to using the **Soap Event Source element**. Is there a way?<issue_comment>username_1: Use `Array.filter()` on `arrayB`, a... |
2018/03/19 | 912 | 4,087 | <issue_start>username_0: I am creating an API using Spring Boot Rest, I want to restrict the API so only logged in users can access it. Now to test the API I am using postman, but how to pass the user details to the API?
Here is my code:
```
@Configuration
public class SpringSecurityConfig extends WebSecurityConfigur... |
2018/03/19 | 542 | 2,066 | <issue_start>username_0: When I import `tensorflow` in Python I get this error:
>
> C:\Users\Sathsara\Anaconda3\envs\tensorflow\Lib\site-packages\h5py\_\_init\_\_.py:36:
> FutureWarning: Conversion of the second argument of issubdtype from
> float to np.floating is deprecated. In future, it will be treated
> as np... |
2018/03/19 | 1,370 | 2,671 | <issue_start>username_0: I have a pandas data-frame with a column with float numbers. I tried to split each item in a column by dot '.'. Then I want to add first items to second items. I don't know why this sample code is not working.
```
data=
0 28.47000
1 28.45000
2 28.16000
3 28.29000
4 28.380... |
2018/03/19 | 1,193 | 2,346 | <issue_start>username_0: Where should you put the `API-calls` in **Redux**?
I think they belong in Actions because they are part of the `data` and don't have side-effects.
Does that sound right?
I want to avoid RxJS or ReduxSaga.<issue_comment>username_1: Use [`numpy.modf`](https://docs.scipy.org/doc/numpy-1.12.0/re... |
2018/03/19 | 566 | 2,002 | <issue_start>username_0: I'm trying to find out how can I set up `row` and `columnspan` of programmatically created `DataGrid`. My code adds it in the first row:
```
private DataGrid CreateTextBoxesDataGrid(string name)
{
DataGrid dataGrid = new DataGrid();
dataGrid.Name = name;
//row ???
dataGrid.Styl... |
2018/03/19 | 1,197 | 4,003 | <issue_start>username_0: I am going to encrypted several fields in existing table. Basically, the following encryption technique is going to be used:
```
CREATE MASTER KEY ENCRYPTION
BY PASSWORD = '<PASSWORD>@'
GO
CREATE CERTIFICATE CERT_01
WITH SUBJECT = 'CERT_01'
GO
CREATE SYMMETRIC KEY SK_01
WITH ALGORITHM = AES_... |
2018/03/19 | 1,399 | 5,346 | <issue_start>username_0: >
> When application launched first a vertical surface is detected on one wall than camera focus to the second wall, in the second wall another surface is detected. The first wall is now no more visible to the ARCamera but this code is providing me the anchors of the first wall. but I need anc... |
2018/03/19 | 2,040 | 9,095 | <issue_start>username_0: I am working on an IoT app in which there is an on boarding process where the user connects to an access point, which has not internet connectivity, configure the device and then connects to his home Wifi network.
Android 8 devices have been causing some problems, disconnecting from the access... |
2018/03/19 | 2,072 | 8,858 | <issue_start>username_0: I have the below text:
```
PL/SQL: ORA-00904: "TFSE"."PRODUCT_C": invalid identifier
```
I want to get the value PRODUCT\_C, but I am getting TFSE instead
this is my query, usually the text was`ora-00904 PRODUCT_C` so the below was working.
```
select regexp_substr('PL/SQL: ORA-00904: "... |
2018/03/19 | 1,971 | 6,416 | <issue_start>username_0: I get this strange stacktrace when running `mvn clean verify -P P1`
```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.21.0:verify (default) on project prj-name: There are test failures.
[ERROR]
[ERROR] Please refer to C:\path\to\project\target\failsafe-report... |
2018/03/19 | 1,807 | 6,141 | <issue_start>username_0: I Using the Component's of `NG-ZORRO` . But When I Need to Use List of it Show me This `Error` :
```
Error: Template parse errors:
Can't bind to 'nzDataSource' since it isn't a known property of 'nz-list'.
1. If 'nz-list' is an Angular component and it has 'nzDataSource' input, then verify... |
2018/03/19 | 786 | 1,987 | <issue_start>username_0: I use Python 3.6.4. I have multiple lists inside a list, but with the same keys (first element of inner list) for certain elements:
```
[[1, 100],
[1, 250],
[2, 340],
[2, 5200]]
```
Element `0` is the same for the first 2 inner lists. How can I combine those to one list by the same keys t... |
2018/03/19 | 480 | 1,863 | <issue_start>username_0: Example class I'm using:
```
class Vector
{
double val[3];
public:
double & operator [] (const unsigned int & index) {return this->val[index];};
}
```
Then I call it like:
```
Vector Example;
Example[0]=5;
```
Is using operator overloading like this correct or it is against encapsulation ... |
2018/03/19 | 1,325 | 5,022 | <issue_start>username_0: For my application component creating the unit test case, in component used the service to connect the rest api to get the data.
In the component subscribing the observable with success and error case, using mockservice I could achieve the success, error scenario can be covered using spon with... |
2018/03/19 | 578 | 1,900 | <issue_start>username_0: I am working in Ubuntu and I am trying to delete all blank spaces in my file to get only one long string.
My file has `\t` and `\n` in one text that it is supposed to be a long string made of letters only (it is a genomic sequence). It looks like:
```
AAAAAAAAAAAAAGTCGCTCGGAACCTGCTTCAAG
AGTCTA... |
2018/03/19 | 954 | 3,776 | <issue_start>username_0: I have a MVC project. I want to get a simple json response {result: "ok"}. Below is my code
```
using System;
using System.Web.Mvc;
using Microsoft.Xrm.Sdk;
using CRM_WebApp.Models;
using System.Web.Http;
using System.Web.Http.Cors;
using Microsoft.Xrm.Sdk.Query;
using CRM_WebApp.Services;
na... |
2018/03/19 | 515 | 1,979 | <issue_start>username_0: Am having troubles deleting my entities, i have the following partial codes
```
@ManyToOne(type => Comment, comment => comment.replies, {
onDelete: "CASCADE"
})
parent: Comment;
```
and
```
@OneToMany(type => Comment, comment => comment.parent)
replies: Comment[];
```
I have tried `ma... |
2018/03/19 | 578 | 2,420 | <issue_start>username_0: I'm really new to API dev and don't have a broad background knowledge. So please bear that in mind if my question looks too simple (stupid). I was playing around with serverless and the AWS lambda to get a better understanding of API's. It was pretty easy to define a simple function and define ... |
2018/03/19 | 406 | 1,363 | <issue_start>username_0: I am appending the following using jQuery:
```
var dateWrapper = ''+kendo.format('{0:dd MMMM yyyy}',new Date(date))+'
'
$('.wrapper').append(dateWrapper)
```
I want the triangle to appear inline or inline-block with the date. Once appended the DIV is placed after the P, and not inside. Cann... |
2018/03/19 | 331 | 1,009 | <issue_start>username_0: Sounds trivial but how can I actually check this? I have the following breakpoints in SASS:
```
$width_breakpoints: (
small: 39.9375em,
medium: 40em,
large: 76em
);
```
Now I want to check the following (Pseudo-Code):
```
if($(window).width() < 39.9375em) {
// ad... |
2018/03/19 | 272 | 1,054 | <issue_start>username_0: I want do the following
* Create a VM
* Install Mongo
* Store Mongo DB data in Data disk
* Delete the VM which excludes the Data disk
* Then create a VM and use the above existing Data disk
My goal is goal create and delete the Azure VM, but re-use the single data disk.
How can I achieve it ... |
2018/03/19 | 1,811 | 6,351 | <issue_start>username_0: I want to a script run when I press a button through PyQT.
This is an example of my of buttons I created
```
import sys
from PyQt5.QtWidgets import QMainWindow, QPushButton, QApplication
class AutoTestWindow(QMainWindow):
def __init__(self):
super().__init__()
self.init... |
2018/03/19 | 1,105 | 4,167 | <issue_start>username_0: We're caching 404 for images as sometimes our app would be released ahead of the actual images and would like to be able to clear them based on status code rather than ALL the images or specific images one by one.
However I am new to Varnish an unsure whether that is doable as I couldn't find ... |
2018/03/19 | 652 | 2,285 | <issue_start>username_0: I'm Trying to call Partial View Into view i want to call parameterized method which is returing the partial view so how to call it.
My code is below.
**View**
```
@{Html.RenderPartial("~/Views/Appoinment/GetALLAppoinmentMedicine.cshtml",
new List { new HMS.Models.AppointmentViewModel() ... |
2018/03/19 | 346 | 1,550 | <issue_start>username_0: I've just upgraded some projects from Java 6 to Java 8 and one class was implementing [Connection](https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html) interface. Now `Connection` interface seems to have more methods but I don't want to implement all missing methods, for example:... |
2018/03/19 | 979 | 2,909 | <issue_start>username_0: I have a table with `id`, `name` and `score` and I am trying to extract the top scoring users. Each user may have multiple entries, and so I wish to SUM the score, grouped by user.
I have looked into `JOIN` operations, but they seem to be used when there are two separate tables, not with two '... |
2018/03/19 | 662 | 1,789 | <issue_start>username_0: I have a pandas data frame that looks like:
```
col11 col12
X ['A']
Y ['A', 'B', 'C']
Z ['C', 'A']
```
And another one that looks like:
```
col21 col22
'A' 'alpha'
'B' 'beta'
'C' 'gamma'
```
I would like to replace `col12` base on `col22` in a effic... |
2018/03/19 | 1,345 | 4,361 | <issue_start>username_0: I have strings similar to the following:
```
4123499-TESCO45-123
every99999994_54
```
And I want to extract the largest numeric sequence in each string, respectively:
```
4123499
99999994
```
I have previously tried regex (I am using VB6)
```
Set rx = New RegExp
rx.Pattern = "[^\d... |
2018/03/19 | 323 | 1,202 | <issue_start>username_0: It seems like the component from `react-router` only listens to `history.block` which only acts when the URL is changed.
I want to display the same component when user refreshes (F5) or close the window. How can I do that?<issue_comment>username_1: This is how you can prevent page refresh vi... |
2018/03/19 | 1,305 | 3,820 | <issue_start>username_0: I'm trying to put some state on my comments post who was created with polymorphic association.
in my app/controllers/posts/comments\_controller.rb
```
class Posts::CommentsController < CommentsController
before_action :set_commentable
#after_create :set_post_state
private
def set_com... |
2018/03/19 | 540 | 1,754 | <issue_start>username_0: A very simple question but couldn't find an answer.
I have a vector of characters (for example - "a" "a" "a" "c" "c" "c" "b" "b" "b").
I would like to group together the elements to "a" "c" "b".
Is there a specific function for that?
Thank you<issue_comment>username_1: Here you go
```
vect... |
2018/03/19 | 521 | 1,818 | <issue_start>username_0: My application is built on ASP .NET 5
I used to do a project on .NET Core and everything was OK, there were no problems with logs. But in ASP.NET 5 I do not understand how to do this
I'm trying to write logs to the database using this config:
<https://github.com/nlog/NLog/wiki/Database-target#... |
2018/03/19 | 536 | 1,903 | <issue_start>username_0: What alternative to an `Inner static Class` can I use in Kotlin Language, if it exists? If not, how can I solve this problem when I need to use a `static class` in Kotlin? See code example below:
```
inner class GeoTask : AsyncTask() {
override fun doInBackground(vararg p0: Util?) {
Loca... |
2018/03/19 | 634 | 2,437 | <issue_start>username_0: I have a `PivotModel` class which I will initialise using the `new` keyword.
```
PivotModel pivotModel = new PivotModel()
```
When `pivotModel` gets initialised, all the dependant fields(model1, model2,cell1,cell2) should get initialised with new object but not to null.
I wanted to initialis... |
2018/03/19 | 427 | 1,470 | <issue_start>username_0: I'm using Laravel 5.6 and trying to define a blade directive (in the `boot()` method of the service provider):
```
Blade::directive('hello', function () {
return "Hello, World!";
});
```
But in my views, when i write `@hello` it shows `@hello` instead of "hello world" as it should.
... |
2018/03/19 | 669 | 2,161 | <issue_start>username_0: Hi my question is how can I store a string value which contails all textfield input into an array with new index every time I press save. I have created some code below however I think its overriding the first index.
```
@IBAction func Save (_ sender: UIButton){
let firstextfield = textfield1.... |
2018/03/19 | 891 | 3,261 | <issue_start>username_0: I've got a query in eloquent correctly calculating the count as it should here:
```
$query = A::withCount(
['bs' =>
function ($query) use ($from, $to) {
$query->where(function ($query) use ($from) {
$query->whereDate('start', '<', $from)
... |
2018/03/19 | 507 | 1,810 | <issue_start>username_0: I would like to open my app's settings page inside the Settings app with Swift 4 in iOS 11. Just like the picture shows:
[](https://i.stack.imgur.com/4siJC.png)
The following codes doesn't work, it will only open the Settings... |
2018/03/19 | 309 | 1,347 | <issue_start>username_0: I'm starting with AWS and I've been taking my first steps on EC2 and EBS. I've learnt about EBS snapshots but I still don't understand if the backups, once you've created a snapshot, are managed automatically by AWS or I need to do them on my own.<issue_comment>username_1: Snapshots are managed... |
2018/03/19 | 386 | 1,305 | <issue_start>username_0: I am new to web development. Before asking this question I have gone through all the solutions, but still I was getting some problems so...
Here I have HTML:
```
Agency :
```
and here I have an array:
```
$scope.agency = ["A", "B", "C", "D"];
```
Now I want to have a A as a default val... |
2018/03/19 | 388 | 1,350 | <issue_start>username_0: I'm looking at moving from `unittest` to `pytest`. One thing I like to do, is to do a `setup.py install` and then run the tests from the installed modules, rather than directly from the source code. This means that I pick up any files I've forgotten to include in `MANIFEST.in`.
With `unittest`... |
2018/03/19 | 697 | 2,872 | <issue_start>username_0: I am trying to create an electron desktop app with angular as frontend and .net as backend.
I created a sample angular project in .netcore 2.0 from VS 2017 and followed the steps mentioned [here](https://github.com/ElectronNET/Electron.NET)
I'm having issues with `dotnet electronize init` comm... |
2018/03/19 | 630 | 2,476 | <issue_start>username_0: Do I need to show my App in UIActivityViewController for my another application without the usage of Extension? Is it possible?
And also need when i tapped on other app which are shown in UIActivity ViewController that transfer me into that app.(If is it Possible?)
I have already looked at th... |
2018/03/19 | 852 | 2,747 | <issue_start>username_0: My data looks like:
```
1 1.45
1 1.153
2 2.179
2 2.206
2 2.59
2 2.111
3 3.201
3 3.175
4 4.228
4 4.161
4 4.213
```
The output I want is :
```
1 2 (1 occurs 2 times)
2 4
3 2
4 3
```
For this I run the following code:
```
SubPatent2count = {}
for line in data.split('\n')... |
2018/03/19 | 1,130 | 4,160 | <issue_start>username_0: I am using flask\_mail to send emails, while this works for text message, I need some help if i need to send a template itself (what does this mean: so I am rendering a report that contains multiple tables and a text area on the top with a submit button, once the user fills the text area and cl... |
2018/03/19 | 265 | 931 | <issue_start>username_0: I know it's a stupid question but I would like to know if this is possible doing some configurations.
[The VSCode by default show the folders first](https://i.stack.imgur.com/TAa4l.png)<issue_comment>username_1: Yes you can do that. Just add the following entry to your `settings.json`:
```jso... |
2018/03/19 | 233 | 833 | <issue_start>username_0: I want to make a checkout on a version of a Git repository in Python.
I am using the following code lines:
```
from git import Git
g = Git(os.getcwd())
g.checkout(row[2])
```
the question is how can I make a forced checkout?<issue_comment>username_1: According to [reference](http://gitpython... |
2018/03/19 | 278 | 952 | <issue_start>username_0: I have tried this:
Inside **AddClass.aspx**
```
```
Inside **AddClass.aspx.cs**:
When Button (ID:btnSave) is clicked:
```
protected void btnSave_Click(object sender, EventArgs e)
{
string a=Request.Form["txtClass"];
}
```
And I am not getting value in string 'a' .
Is there an... |
2018/03/19 | 1,360 | 5,087 | <issue_start>username_0: We have developed a site with typo3 v8.7.11. We want to display the search box in the sidebar section, for this we installed the indexed\_search extension. B
How to display a search box in all the frontend page sidebar section?<issue_comment>username_1: you have multiple options:
1. copy the... |
2018/03/19 | 1,263 | 3,642 | <issue_start>username_0: I have trouble with vertical alignment of some google icons inside buttons. I tried to play with padding and margin but I could not fix the issue.
This is a screenshot of the problem: as you can see the icon are placed slightly higher:
[](http... |
2018/03/19 | 353 | 1,402 | <issue_start>username_0: ```
package collections;
public class Construct
{
class Inner
{
void inner()
{
System.out.println("inner class method ");
}
}
public static void main(String[] args)
{
Construct c=new Construct();
}
... |
2018/03/19 | 820 | 3,199 | <issue_start>username_0: I am currently having an issue regarding CORS (Cross-origin resource sharing) the odd thing being this only seems to happen when i prefix my url using www.
For example when i go to my website using the url: "<http://example.com/index>" everything works fine and all resources are loaded correct... |
2018/03/19 | 683 | 2,295 | <issue_start>username_0: I've tried to code a game where the character controlled by the player can move around and shoot things, the problem is, if I press the shoot key he stops walking because only one key can be noticed at once.
How do I make it so multiple keys can be used at once.
I'm very new to code so I may n... |
2018/03/19 | 1,308 | 4,802 | <issue_start>username_0: I'm facing a strange problem in my automated tests written using Protractor. We need to test a bunch of API endpoints that return JSON over HTTP, as opposed to actual websites so instead of relying on Protractor, my team decided to use [Chakram](http://dareid.github.io/chakram/jsdoc/index.html)... |
2018/03/19 | 719 | 2,131 | <issue_start>username_0: Hey i'm trying to center my images when someone is using an ipad basically below 780px but i am not able to get them to center no matter what i try? My menu and navigation bar are all centered just these images won't
[This is on normal browser PC](https://i.stack.imgur.com/GWGKz.jpg)
[This is... |
2018/03/19 | 566 | 2,088 | <issue_start>username_0: I have a problem when i want to get subcollections.
Can anybody help me, please ?
**firestore structure :**
```
questions(collection) -> curretUser.id(doc) -> questions(collection) -> questionIDautoCreated(doc)-> {title: "", description: "" }
```
**And i try to get data:**
```
return (d... |
2018/03/19 | 574 | 2,153 | <issue_start>username_0: I'm creating a fitness app in Xcode where different activities are worth different points and the user has a total points on the homepage.
I am trying to convert the UILabel (which I have specified the points for each challenge) to an Integer so I can calculate the users total points when they ... |
2018/03/19 | 436 | 1,528 | <issue_start>username_0: I am trying to parse github api for organisations for this link
[first link](https://api.github.com/orgs/mozilla/repos)
I collected all commit\_url from this link and then I need to save data from each commit link for further cleaning.
e.g I have two commit links as
[commit\_link1](https://a... |
2018/03/19 | 1,032 | 3,706 | <issue_start>username_0: few hours I try to know why sometimes my removechild don't work. After reading the forum I see some issue about the fact my removechild array reduce is number each time... But I don't know how to fix this issue... Do you have any idea?
EDIT: I justed updated the snippets
For replicate the issu... |
2018/03/19 | 311 | 1,121 | <issue_start>username_0: Does anyone know why the Datastore Admin API `export` and `import` operations are not available with APIs explorer?
Just visit the [API page](https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects/export).
Meanwhile the API for getting long-running operations [is available](... |
2018/03/19 | 382 | 1,356 | <issue_start>username_0: I have an sp which is,
```
-- States
select statusid,statusdesc,statustype,isfinal,seq, tstamp from issuestatuslut order by seq
-- PRE states
select a.statusid,a.otherstate,a.statetype,b.statusdesc, a.tstamp
from issuestatetransitionlut a, issuestatuslut b
where a.statetype=0 and a.o... |