date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/20 | 931 | 3,162 | <issue_start>username_0: I've written some code in Laravel to display only the images that are in mysql database, in Post table.
This is the function to display the images
```
public function index()
{
$posts = Post::all()->pluck('image');
return response()->json(['images' => $posts]);
}
```
And this is the ... |
2018/03/20 | 1,123 | 4,006 | <issue_start>username_0: I'm trying to take a method and make it generic, and I'm a little stuck because the method uses Linq to look at elements. Here's the example method:
```cs
private List GetListFromIDS(string ids, IEnumerable data)
{
if (string.IsNullOrEmpty(ids))
return null;
var list = ids
.Split(new char... |
2018/03/20 | 375 | 1,563 | <issue_start>username_0: I am writing a c terminal program that runs until the user terminates it with `Ctrl`+`C`. Think something like `ping` or `top`.
My program allocates to the heap but starts no other threads or processes. Should I be handling SIGINT and freeing any allocated memory before exit or is leaving it t... |
2018/03/20 | 737 | 2,767 | <issue_start>username_0: Recently switched from Sublime Text 3 to VS Code. Overall pleased with the switch except for this one little thing that's just annoying enough to be a dealbreaker if there's no solution. In ST3 if I type, say, a , it doesn't automatically drop in a , which is nice because I'm often pasting it i... |
2018/03/20 | 583 | 2,376 | <issue_start>username_0: I am creating car park app and i want users to enter some information in edit texts before registering. The edit texts are as follows:
`First Name`, `Last Name`, `Email`, `password`, `car no`.
When user hits register button, i want to store these values in firebase database connected to my p... |
2018/03/20 | 865 | 2,908 | <issue_start>username_0: I just started learning this language and I have a problem trying to create a Matrix of type char from user input.
For example I want to read this as my input:
```
3 // this is an int n that will give me a square matrix[n][n]
.#.
###
.#.
```
For this example, this is what I have:
```
//...... |
2018/03/20 | 413 | 1,225 | <issue_start>username_0: If I want to download a newer version of a python3 package, it seems like pip, pip3, and pip3.6 all download the python2 version anyways. When I check version of each pip, I get the following:
```
$ pip -V
pip 9.0.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ pip3 -... |
2018/03/20 | 401 | 1,362 | <issue_start>username_0: Are they different or simple aliases?
I obtain the /private/var by running:
```
FileManager.default.contentsOfDirectory(at: folder, includingPropertiesForKeys: [], options: [])
```
And the second is created with a simple:
```
data.write(to: f, options: [.atomic])
```
where f is in the ... |
2018/03/20 | 560 | 1,911 | <issue_start>username_0: Example:
```
row_number |id |firstname | middlename | lastname |
0 | 1 | John | NULL | Doe |
1 | 1 | John | Jacob | Doe |
2 | 2 | Alison | Marie | Smith |
3 | 2 | NULL | Marie | Smith |
4 | 2 | Alis... |
2018/03/20 | 716 | 2,590 | <issue_start>username_0: I want to read in Spotfire Binary data into a non-TERR R engine that can handle graphing and other complex packages, etc. So I want to use the SpotfireData package with other non-TERR R engines. Yet when I try to install, I get an error:
```
install.packages("SpotfireData")
Warning in install.... |
2018/03/20 | 524 | 1,804 | <issue_start>username_0: I am having some difficulty figuring out how to take the user input and write the number to a file.
For instance, if the user inputs the number `50`, the program should create a text file with the numbers `1,2,3,....50` save the output in the file.
This is what I have so far and it works an... |
2018/03/20 | 444 | 1,510 | <issue_start>username_0: Here is a stack implementation I found on the web
```
public struct Stack {
fileprivate var array = [T]()
public var isEmpty: Bool {
return array.isEmpty
}
public var count: Int {
return array.count
}
public mutating func push(\_ element: T) {
array.append(element)
}
public muta... |
2018/03/20 | 631 | 1,451 | <issue_start>username_0: I am pretty new to R and I have a loop which gives sometimes a matrix like this:
```
1 2
FALSE 0 0
TRUE 0 2
```
I need to do as follows:
If the two cells in a single row have zeros replace them by 0.5
If one of the cells is not zero divide by the sum of the row
so the result o... |
2018/03/20 | 1,616 | 4,507 | <issue_start>username_0: >
> Write a program that examines three variables — x, y, and z — and
> prints the largest odd number among them. If none of them are odd, it
> should print a message to that effect.
>
>
>
This is my source code:
```
#include
int main() {
int x,y,z;
x = 11;
y = 15;
z = 18;
if (x... |
2018/03/20 | 1,427 | 4,333 | <issue_start>username_0: I have a DataFrame with Arrays.
```
val DF = Seq(
("123", "|1|2","3|3|4" ),
("124", "|3|2","|3|4" )
).toDF("id", "complete1", "complete2")
.select($"id", split($"complete1", "\\|").as("complete1"), split($"complete2", "\\|").as("complete2"))
|id |complete1|complete2|
+----------... |
2018/03/20 | 706 | 2,252 | <issue_start>username_0: This is a C++03 question.
In the following code, `class Foo` implements `operator[]` that returns a pointer to a member function. The code currently does this by returning a reference to a `TFunc`, which is `typedef`ed to a member function.
I'd like to learn: what would be the syntax of the `... |
2018/03/20 | 584 | 2,118 | <issue_start>username_0: I'm new to SQL Server and I am getting this error "Cannot insert the value NULL into column 'Occupied', table 'DBProjectHamlet.dbo.tblGrave'; column does not allow nulls. INSERT fails. The statement has been terminated."
This is my code for the insert followed by the code to create the table
... |
2018/03/20 | 356 | 1,316 | <issue_start>username_0: When I write this code:
```
ListView lv = new ListView();
foreach (ListViewDataItem item in lv.Items)
{
}
```
I get "**the type or name ListViewDataItem could not be found**"
**Items** is also not found under the lv object.
Basically I need to iterate through each row of the ListView and... |
2018/03/20 | 456 | 1,775 | <issue_start>username_0: I have a table that has a sql column with a date as a string like 'January 1, 2018'. I'm trying to turn that into a DateTime object in C# so I can use it to sort a list by. I'm currently grouping everything by the ID so I can return the highest revision. This is working great but I also need to... |
2018/03/20 | 1,165 | 4,041 | <issue_start>username_0: I have a symfony 2.8 application and I recently integrated VueJs 2 as my front-end framework, because it gives a lot of flexibility.
My application is not single page and I use the symfony controllers to render views. All the views are wrapped in a base twig layout:
```
{% block body %} {% ... |
2018/03/20 | 3,446 | 13,253 | <issue_start>username_0: As a homework I have to do a simple URL shortener, where I can add full link to list, which is processed by [Hashids.net library](https://github.com/ullmark/hashids.net), and I get short version of an URL.

I've got something like this now, but I ... |
2018/03/20 | 471 | 1,857 | <issue_start>username_0: I have an ES6 class in Ember 3.1 which is being handed an ember data object called `certifciate`. I would like to be able to call `.reload()` on that certificate as follows:
```
@action
showCertificateInfo(this: DomainCard, certificate) {
this.setProperties({
isShowingCertificate... |
2018/03/20 | 1,521 | 4,852 | <issue_start>username_0: Does anyone know if there is a way to run the code changes in a Laravel project **without** refreshing the page every time.
I know that to see the changes I need to
```
php artisan serve
```
but I do it every time and it is kind of frustrating.
Thank you anyways.<issue_comment>username_1: ... |
2018/03/20 | 701 | 2,591 | <issue_start>username_0: EDIT->I am also using a ui-router- Can i use resolve
name: 'PLANSPONSOR.SUMMARY',
```
state: {
url: "/summary",
templateUrl: '../script/planSummary.html',
controller: "summaryCtrl",params:{obj:null}
}
}
]
```
I am trying to trigger the API before the directive in my co... |
2018/03/20 | 879 | 2,795 | <issue_start>username_0: I am creating a spreadsheet that a LARGE amount of people are going to use that have no experience with Excel...
What I want to have happen is they scan an order number into a field and it will populate the information on all lines of their order. When they scan, the scanner only populates the... |
2018/03/20 | 562 | 1,886 | <issue_start>username_0: I want to get an element from a mutable map and do an operation on it.
For example I want to change his name value (the element on the map will be with the new value)
and I want to return it in the end
to start I wrote a working code but it is very Java
```
var newAppKey: AppKey = null... |
2018/03/20 | 318 | 1,241 | <issue_start>username_0: I need clone/checkout a git repository from a local server, but that repository contains a file with the following extension
>
> asmx?wsdl
>
>
>
And I receive an error message from git
```
error: unable to create file path/to/file/file.asmx?wsdl: Invalid argument
fatal: unable to checko... |
2018/03/20 | 1,260 | 4,115 | <issue_start>username_0: I got used to working in IDLE, but got a recommendation to use PyCharm instead.
As I'm just getting used to it, I have a question on accessing elements of a matrix.
I'm getting different string inputs from the user and filling the matrix with them;
```
from numpy import *
row=int(input())
c... |
2018/03/20 | 1,134 | 3,644 | <issue_start>username_0: ```
```
I need help adding a zero to the text box value if the input has fewer digits than the maximum length of the field. for example: if some one enters 1234 then it should add a zero to it and make it 01234. Same way if someone enters 12 then it should make it 00012 when the user moves ou... |
2018/03/20 | 779 | 2,843 | <issue_start>username_0: I'm using Monolog (<https://github.com/Seldaek/monolog>) in my project and we want to receive an email when there are errors in our application. The logs are working as expected but if the log level is ERROR (below log level is DEBUG), I want the logger to send me an email.
I tried to use the ... |
2018/03/20 | 781 | 2,706 | <issue_start>username_0: **Problem** :
I want to get the latest csv file in the downloads folder by typing `$LATEST`. When I dereference `$LATEST` I want to see the last csv file put in there.
**What I have tried** :
1. `'ls -t $DL/*.csv | head -1'` (this works)
2. `export $LATEST='ls -t $DL/*.csv | head -1'`
The p... |
2018/03/20 | 3,410 | 11,872 | <issue_start>username_0: Using Visual Studio 2017, AspNetCore 1.1.2
All of a sudden I am getting following error when I am trying to publish (Release build) any project in the solution:
>
> Assets file 'C:\example\obj\project.assets.json' doesn't have a target for
> '.NETFramework,Version=v4.5.2/win7-x86'. Ensure t... |
2018/03/20 | 2,812 | 8,215 | <issue_start>username_0: I am using following code to run kmeans algorithm on Iris flower dataset- <https://github.com/marcoscastro/kmeans/blob/master/kmeans.cpp>
I have modified the above code to read input from files. Below is my code -
```
#include
#include
#include
#include
#include
#include
#include
using... |
2018/03/20 | 444 | 1,685 | <issue_start>username_0: What to do?
I have some other Android studio project and the alt+F7 works ok.
I guess something got broken in this particular project settings.
Also a class that is in use is shown (hover mouse over class name) to be "Class XX is never used"
Should I do project clean "Invalidate caches... |
2018/03/20 | 2,834 | 9,734 | <issue_start>username_0: As far as I know in c when using `printf()` we don't use &.Right?But in my programme, if I don't use it in the display function it gives me an error.Can someone explain this? Thank you
```
#include
#define max 100
void enqueue();
char dequeue(void);
int front=-1,rear=-1,option;
char name[max]... |
2018/03/20 | 970 | 2,290 | <issue_start>username_0: I have an array which is a set of coordinates, and I want to swap them, and generate a new array.
I want to swap only the regions entries:
```
var Regions = [
{"group": "region_01",
"coords": [
[3110, 2323],
[3119, 2344],
[3117, 2385],
[3110, 2417],
[3110, 2323]
]}]
... |
2018/03/20 | 303 | 977 | <issue_start>username_0: I'm working on a program in pike and looking for a method like the *endswith()* in python- a method that gives me the extension of a given file.
Can someone help me with that?
thank you<issue_comment>username_1: extract the end of the string, and compare it with the desired extension:
```
"he... |
2018/03/20 | 303 | 1,001 | <issue_start>username_0: This is for a battleship program and the height/width of the array is passed in through a different method (called promptInt). I'm not sure how to go about calling a method to determine the size of the array. \<issue_comment>username_1: extract the end of the string, and compare it with the des... |
2018/03/20 | 323 | 1,114 | <issue_start>username_0: I want to trigger Python script from my Spring boot microservices im Asynchronous manner, SO that my Microservice will be notified once the execution of python script completes.Can any one suggest the best approach for this? appreciated if any one provide some reference to sample code.
Thanks i... |
2018/03/20 | 1,244 | 4,818 | <issue_start>username_0: So in angularjs you had the possibility to define a directive and bind the html template to an already existing controller. In principal this meant you could reuse the controller for multiple directives, therefore for multiple templates.
```
angular
.module('App')
.component('Name', {
tem... |
2018/03/20 | 1,661 | 6,164 | <issue_start>username_0: I am building an react application to connect to and display data from a MQTT server.
I have implemented the basic connection code in `mqtt/actions.js` See below:
```
const client = mqtt.connect(options);
client.on('connect', function () {
mqttConnectionState('MQTT_CONNECTED')
client.su... |
2018/03/20 | 370 | 1,302 | <issue_start>username_0: Alright I have a terms of service modal which is an ngBootstrap modal and when I press the button to close that button I want the action that closes the modal define wheter the checkbox is checked or not
This is the html:
```
#### Terms of service.
×
I accept.
```
the link to open the ... |
2018/03/20 | 528 | 1,838 | <issue_start>username_0: I have a div with the id #one. I set the background color to be red. I want the option to change this to a random color when the div is clicked on, so I made a function to do this. My question:
Why does it not work when I write 'background-color' instead of 'backgroundColor' in JS? If I write ... |
2018/03/20 | 635 | 2,277 | <issue_start>username_0: This might be a basic sql questions, however I was curious to know the answer to this.
I need to fetch top one record from the db. Which query would be more efficient, one with where clause or order by?
Example:
Table
```
Movie
id name isPlaying endDate isDeleted
```
Above is a versio... |
2018/03/20 | 1,140 | 4,494 | <issue_start>username_0: I'm attempting to implement a custom authorization policy in my asp.net core 2.0 application.
In my Custom AuthorizationHandler I have this check:
```
if (!context.User.Identity.IsAuthenticated)
{
this.logger.LogInformation("Failed to authorize user. User is not authenticated.");
... |
2018/03/20 | 576 | 2,201 | <issue_start>username_0: How can I remove NA cases in a column and calculate the mean value of a factor at the same time?
With this code I calculate the mean value of DC1 in Group\_A, within x dataframe
`test.mean <- mean(x$DC1[x$Groups=="Group_A"])`
However, some values of the DC1 column in the Group\_A factor do ... |
2018/03/20 | 1,921 | 7,495 | <issue_start>username_0: I must use a for loop to go through the h2 elements in the array and remove the class attribute for all h2 elements that aren’t the one that has been clicked. I also need to remove the class attributes for all of the div siblings of the h2 elements that weren’t clicked, but I am not sure how to... |
2018/03/20 | 1,187 | 4,346 | <issue_start>username_0: I have the function that works with edge and chrome, but not with IE (V 11.0.15063.0)
```
item = totalsArray.find(function([[l,r]]) {
return l === a && r === b
});
```
But array.find does not work with IE so I have the polyfill from mdn as well <https://developer.mozilla.org/en-US/doc... |
2018/03/20 | 1,000 | 3,392 | <issue_start>username_0: I want my Vagrant provision script to run some checks that will require user action if they're not satisfied. As easy as:
```
if [ ! -f /some/required/file ]; then
echo "[Error] Please do required stuff before provisioning"
exit
fi
```
But, as long as this is not a real error, I got ... |
2018/03/20 | 989 | 3,324 | <issue_start>username_0: I have integrated **froala editor**. When I fetch the value of div, the data after does not get saved in my db.
Below is the value of my div
`Hello, Froala inline!
line 2
line 3 and url - <http://google>.com`
Data saved in db: `Hello, Froala inline!
line 2
line 3`
How do I make s... |
2018/03/20 | 916 | 3,454 | <issue_start>username_0: I have a module in which public method of a public class creates and returns a new instance of a private class. The requirement is that `MyClassPrivateHelper` must only be instantiated by `MyClass`.
```
class MyClassPrivateHelper {
constructor(private cls: MyClass) {
}
public som... |
2018/03/20 | 605 | 2,423 | <issue_start>username_0: I want to host some html files on Google Cloud and wondered, if this is possible to do, without adding a custom domain...
With for example Cloudflare or AWS, that's possible...<issue_comment>username_1: GCS objects can be loaded just fine from a web browser, with or without a domain. They foll... |
2018/03/20 | 895 | 2,947 | <issue_start>username_0: I just upgraded my PhpStorm project from PHPUnit 4.x to PHPUnit 5.x. Running my unit tests works fine.
In order to get "run with coverage" working, I had to edit my Run/Debug configuration and add `--whitelist=/path/to/whitelisted/dir` to Test Runner options. Now coverage is generated when I c... |
2018/03/20 | 1,953 | 7,002 | <issue_start>username_0: I'm working on Magento 1.9.3.7 and I want to understand if is a good idea to migrate to Magento 2 or not.
I summarized this differences :
* Magento 2.0 is faster then Magento 1.x
* Some significant changes in the structure of directory which reduces
the complexity of structure
* New technolog... |
2018/03/20 | 1,784 | 6,175 | <issue_start>username_0: How do you pass from relative links to absolute links:
```
[A](/foo/ba.pdf)
[B](foo/ba.pdf)
[A](http://google.com/foo/ba.pdf)
[A](#hello)
```
should transform to
```
[A](PREFIX/foo/ba.pdf)
[B](PREFIX/foo/ba.pdf)
[A](http://google.com/foo/ba.pdf)
[A](#hello)
```
where `PREFIX` is string (u... |
2018/03/20 | 323 | 925 | <issue_start>username_0: I have 2 Model which have HABTM relation
**`User`**
```
has_and_belongs_to_many :rooms
```
**`Room`**
```
has_and_belongs_to_many :users
```
I also create the migration to join the table like this
```
create_join_table :users, :rooms do |t|
t.index [:user_id, :room_id]
t.in... |
2018/03/20 | 1,412 | 4,740 | <issue_start>username_0: I am writing the following classifier to check out sci-kit.
...
```
class MyClassifier():
def fit(self, x_train, y_train):
self.x_train = x_train
self.y_train = y_train
return
def predict(self, x_test):
prediction = []
for row in x_test:
... |
2018/03/20 | 1,380 | 4,595 | <issue_start>username_0: I am running a server and I have a pointed my domain via cloudflare to my server IP and have a signed SSL certificate via LetsEncrypt for my domain. My server is running an apache webserver using porto 443 for the ssl traffic.
I installed docker and a run a couple of containers. My goal is to g... |
2018/03/20 | 435 | 1,351 | <issue_start>username_0: I am working on a website, what I want to achieve is that the navbar of my page stacked over the slider.
I have tried z-index property.
My HTML Code:
```
[St. Clare's Sr. Sec School](#)
* [Home](#)
* [About](#)
* [Contact](#)
* [Messages](#)
* [More](#)
```
What I want to achieve is show... |
2018/03/20 | 366 | 1,283 | <issue_start>username_0: I need to apply some styling to the label of a Redux Form Field. The Redux Form API doesn't mention any way to style the label. The `classes.formField` class gets applied to the field itself but not the label.
This may also be a question about forcing inheritance because the label, in this ca... |
2018/03/20 | 618 | 1,988 | <issue_start>username_0: I'm using Base64 to encrypt/decrypt links. It works great, except the link is getting two equals signs so:
When a customer gets an email, the whole link is not clickable, the two important "==" isn't reading as a link.
How can I make it read the encrypted text as a whole link with the two equ... |
2018/03/20 | 633 | 1,996 | <issue_start>username_0: I've been trying to implement a function in OCaml that returns the smallest missing number (greater than 0) in a sorted list.
Here is what I've done
```
let getMissingNumber l =
let rec find min = function
| [] -> min
| t :: [] -> t + 1
| t1 :: t2 :: r -> if t... |
2018/03/20 | 529 | 1,362 | <issue_start>username_0: I'm trying to tackle what I thought was a simple query.
I have two databases each with one table in the DB.
What I would like to do is find all of the emails from DB1.Table that don't exist in DB2.Table
I'm using this query, but the result is incorrect because I know DB1.Table contains ema... |
2018/03/20 | 571 | 1,667 | <issue_start>username_0: we have an interface with a Generic Customer (gold/silver), now lets say i stored the last created cutomer somewhere (Cache/DB/etc).
how do i create a GetCustomer method that returns the type of customer.
Should i add GetCustomer to the base class or interface or elsewhere ? and how do we use ... |
2018/03/20 | 819 | 2,493 | <issue_start>username_0: I am trying to convert mysqli code to PDO way but I run into an issue.
It should behave: If deleted main parent delete his sub categories also, so that there are no "orphans" left in database.
The main parents are parent 0 in [database](https://i.stack.imgur.com/9BZw2.jpg), while sub categor... |
2018/03/20 | 650 | 2,227 | <issue_start>username_0: I have two columns of data I am cleaning up using VBA. If the value in column A is non-numeric or blank, I need to delete the entire row. Below is a sample of the data and the code I am trying to use. It seems to be completely skipping over the portion of the code that deletes the rows if IsNum... |
2018/03/20 | 305 | 1,209 | <issue_start>username_0: I'm trying to use facebook login button on a React-native android app but I keep having the .iml files created in the root folder of my project everytime I sync with Gradle.
Then I get the message saying "the modules [module1, module2] point to the same directory in the file system. Each modul... |
2018/03/20 | 455 | 1,825 | <issue_start>username_0: I have been successfully writing robot framework test scripts (Using Eclipse IDE, RED Robot Editor) and now want to start scheduling them using windows batch files. However, when I try and run the script from a windows command prompt, I'm getting an error (see below). As I mentioned, the script... |
2018/03/20 | 1,737 | 4,818 | <issue_start>username_0: I looked number different solutions online, but count not find what I am trying to achine.
Please help me on this.
I am using Apache Spark 2.1.0 with Scala. Below is my dataframe:
```
+-----------+-------+
|COLUMN_NAME| VALUE |
+-----------+-------+
|col1 | val1 |
|col2 | val2... |
2018/03/20 | 693 | 2,116 | <issue_start>username_0: I am trying to use Artifactory as a front for our Helm Charts. I have the following set up:
* helm-remote-stable : stable community Helm Charts
* helm-local-stable : stable company Helm Charts
* helm-stable: virtual repo with both of the above as upstreams
What's supposed to be happening is t... |
2018/03/20 | 1,724 | 6,379 | <issue_start>username_0: I have Miniconda3 installed at C:\Users\me\Miniconda3, and my 'Project Interpreter' within PyCharm set to my conda environment, and that is all working correctly. However it appears that conda is not set for my path variable as if I type `conda` into the PyCharm Terminal I get
```
'conda' is n... |
2018/03/20 | 1,875 | 6,749 | <issue_start>username_0: I have a file that I am reading data from, the data is in the format
[function] [number1] [number2] where [number2] is optional!
Eg.
```
+ 88 19
- 29 28
! 4
+ 2 2
```
Output from above:
>
> 107
>
> 1
>
>
>
My code works just fine for when the line is in the format [function... |
2018/03/20 | 701 | 2,470 | <issue_start>username_0: Is the following C++ code standard compliant?
```
#include
int main()
{
[](auto v){ std::cout << v << std::endl; }.operator()(42);
}
```
Both *clang++ 3.8.0* and *g++ 7.2.0* [compile this code fine](http://coliru.stacked-crooked.com/a/d6534b6f121a1706) (the compiler flags are `-std=c++14 ... |
2018/03/20 | 311 | 1,044 | <issue_start>username_0: So, I'm receiving a string named "desktop", which is, actually, a property of my obj.
So, as a property it should look like `obj.desktop`.
I've been trying to concat this the way it follows:
```
oJSonElementByIndex +"["+"'desktop'"+"]"
```
And also:
```
oJSonElementByIndex + "." + "deskt... |
2018/03/20 | 782 | 3,291 | <issue_start>username_0: I'm working on Play Framework 2.4 and AngularJs 1.5.8 with coffeescript.
I am analyzing if it is convenient to use npm.
We are using several libraries and many of them have their own dependencies.
So, I do not know, what would happen if 2 different libraries had the same dependency but in diffe... |
2018/03/20 | 1,029 | 4,289 | <issue_start>username_0: I have a component. It takes a value as its @Input. If the onDelete() method is called, there is an EventEmitter that will emit the value that was put in. I am trying to write a test for this component, and the value I get from the emitter is undefined, not the value I passed.
Here is the tes... |
2018/03/20 | 988 | 3,505 | <issue_start>username_0: Why does it say that it can not find my class? Why should I create another class with the same name in order to make make it not complain?
```
from typing import Dict
class WeekDay:
def __init__(self, day_number, day_name):
self.day_name = day_name
self.day_number = day_n... |
2018/03/20 | 2,028 | 4,850 | <issue_start>username_0: i was using android ndk 13b with visual studio 2017 and i got an update for android ndk 15c which added one error. I am also using new Clang 5.0 (before it was 3.8). This is the error :
>
> /usr/local/google/buildbot/src/android/ndk-r15-release/ndk/sources/android/support/src/stdio/vfprintf.c... |
2018/03/20 | 768 | 3,132 | <issue_start>username_0: My goal is to simply offer my addin if Office application is launched with a certain argument.
----------------------------------------------------------------------------------------------
Unfortunately, I could not find anything to help me do this. I have tried to use the Office Application ... |
2018/03/20 | 2,360 | 7,727 | <issue_start>username_0: I am trying my best to learn ASP.NET MVC programming but I've occurred a problem that I can't resolve. I am writing code - first database, I want to populate 3 of my tables via Seed method, there's the models code:
```
//Doctor Table
using System;
using System.Collections.Generic;
... |
2018/03/20 | 991 | 3,529 | <issue_start>username_0: I have some number fields set based on a large number of factors in an eCommerce site. I want an option that will clear out those numbers if a radio option is clicked, but then return to their previous numbers if a different radio option is clicked. I have the following code to set the values t... |
2018/03/20 | 368 | 1,096 | <issue_start>username_0: I am fairly new to python. Presently, I have a pandas series `pds`
```
pds.shape
#(1159,)
```
`pds` has an index which is not sequential and at each index there is a `(18,100)` array
```
pds[pds.index[1]].shape
#(18, 100)
```
How can I convert this to a pandas dataframe and/or a numpy arr... |
2018/03/20 | 463 | 1,474 | <issue_start>username_0: I have a dataset with the following structure:
Month | Day | Hour | Minute | Value1 | Value2 | Value3
The dataset has a length of 525,600 rows. What I need is the mean over fifteen minutes for each value (value1, value2, value3). The output should have the following structure:
```
Month | Beg... |
2018/03/20 | 2,332 | 8,084 | <issue_start>username_0: I've been struggling reading the javadocs to determine how to use lambdas to elegantly combine a list of rows of one type into a grouped-up list of another type.
I've figured out how to use the `Collectors.groupingBy` syntax to get the data into a `Map>` but since the results will be used in a... |
2018/03/20 | 826 | 2,565 | <issue_start>username_0: Microsofts Requirements and compatibility page for TFS found [here](https://learn.microsoft.com/en-us/vsts/tfs-server/requirements) do not show Update 2 in the SQL section.
In our current environment we have TFS2017 Update 2 running on the same machine as SQL Server 2014. I'd like to install ... |
2018/03/20 | 747 | 2,055 | <issue_start>username_0: Below code is to get some data from csv file. But the result is showing as follow:
5,Jones,123-123-1234,BCBS,GP1234,39,Sarah,Broken Arm,3
6,Smith,123-231-1234,UHC,G1234,47,Francine,Physical Therapy,03/25/2015
9,Adams,123-123-4321,Cigna,U1234,28,Bob,Broken Arm,2
5,<NAME>,123-321-1234,BCBS,... |
2018/03/20 | 2,561 | 8,964 | <issue_start>username_0: I am trying to create a filter dropdown where only the label of the dropdown will be visible initially, and then on click of the label, the list of options will drop down over the top of the rest of the content(using `absolute` positioning). The part I am struggling with is enclosing both the `... |
2018/03/20 | 3,626 | 8,664 | <issue_start>username_0: DDL:
```
CREATE TABLE [testXML]
(
[scheduleid] [uniqueidentifier] primary key,
[XMLData1] [xml] NULL
)
INSERT INTO testXML ([scheduleid],XMLData1)
VALUES ('88888888-DDDD-4444-AAAA-666666666666','
')
```
Query:
```
SELECT
[scheduleid],
StationID_q = ARD3.res.value('@q', '... |
2018/03/20 | 2,391 | 7,488 | <issue_start>username_0: I am just trying to display nth relation using `ul` and `li` in razor using recursive function call. Suppose I have db table where I store parent child relation like below one.
table structure
---------------
```
+----+----------+----------+
| ID | Name | ParentID |
+----+----------+-----... |
2018/03/20 | 2,282 | 7,416 | <issue_start>username_0: I am working on training a VGG16-like model in Keras, on a 3 classes subset from Places205, and encountered the following error:
```
ValueError: Error when checking target: expected dense_3 to have shape (3,) but got array with shape (1,)
```
I read multiple similar issues but none helped m... |
2018/03/20 | 1,157 | 4,252 | <issue_start>username_0: I tried searching, so forgive me if my searching skills are weak. I'm trying to slim down an Excel model for speed and filesize, and make it more legible, so I thought I'd replace a bunch of nested IF() statements with some AND() statements. I confirmed that the logic is the same, but my file e... |
2018/03/20 | 947 | 3,266 | <issue_start>username_0: I am including a mixin from one SASS file into another file but I've got an error with the ionic `serve` command:
```
Error: "Sass Error
Invalid CSS after " @include": expected identifier, was '"../../../theme/mai'"
```
This is the file where I am importing the mixin:
```
action-sheet-layou... |
2018/03/20 | 860 | 2,873 | <issue_start>username_0: There are tables in MySQL DB
```
entity
----------
ID NAME
1 entity1
2 entity2
3 entity3
entity_props
----------
ENTITY_ID PROP_ID PROP_VALUE
1 23 abc
1 24 def
1 25 xyz
```
When i need to select all entities which has property values 23="abc", 24... |
2018/03/20 | 1,636 | 5,587 | <issue_start>username_0: I'm following the tutorial to encrypt data with google cloud kms, but when I try to encryt give me 404 error. I seach in the code and noted that it has DEFAULT\_ROOT\_URL = <https://cloudkms.googleapis.com/>. but the root of the url do not appears in the URL, then of couse give error 404. Could... |
2018/03/20 | 845 | 2,448 | <issue_start>username_0: Why can't I match a string in a Pandas series using `in`? In the following example, the first evaluation results in False unexpectedly, but the second one works.
```
df = pd.DataFrame({'name': [ 'Adam', 'Ben', 'Chris' ]})
'Adam' in df['name']
'Adam' in list(df['name'])
```<issue_comment>usern... |
2018/03/20 | 529 | 2,337 | <issue_start>username_0: I am watching a tutorial on how to add headers with OkHttp Interceptors, but I am confused about a few things.
* What is a `Chain` object?
* What does `Request original = chain.request()` do?
* What does `return chain.proceed(request)` do?
Code:
```
OkHttpClient.Builder httpClient = new OkHt... |
2018/03/20 | 719 | 2,669 | <issue_start>username_0: Webpack dev server proxy config documentation seen here:
<https://webpack.js.org/configuration/dev-server/#devserver-proxy>
says it uses http-proxy-middleware:
<https://github.com/chimurai/http-proxy-middleware#http-proxy-events>
Using the `onProxyRes` function documented in the above link ... |
2018/03/20 | 707 | 2,782 | <issue_start>username_0: I am using a Vaadin BeanValidationBinder.
If I bind a field like this:
```
binder.forField(email).bind("email");
```
then the validation works.
If I bind the field like this:
```
binder.forField(email).bind(PersonDTO::getEmail, PersonDTO::setEmail);
```
then it does not work (there is n... |
2018/03/20 | 3,256 | 6,973 | <issue_start>username_0: I have an array of strings like this:
```
strings = [
"ANT 107 90 Intro to Envrmntl Archaeology CMWL 101 TTH 01:00PM-02:15PM Markin 2/15 0 4.00",
"AMS 210 10 Intro to American Lit II SMTH 222 TTH 11:30AM-12:45PM DeProspo,R 0/25 0 4.00",
... |
2018/03/20 | 1,820 | 4,091 | <issue_start>username_0: I want copy file from:
>
> C:\Users\Machina\Documents\Visual Studio
> 2017\Projects\P\Patcher\bin\Debug\Patches\0.0.0.2\SomeDir\OtherDir\File.txt
>
>
>
to this Folder:
>
> C:\Users\Machina\Documents\Visual Studio
> 2017\Projects\P\Patcher\bin\Debug\Builds
>
>
>
but i need to crea... |