date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/13 | 1,154 | 4,030 | <issue_start>username_0: >
> I am trying to create a list of selected functions from a given python module.
> Here is an example script I have tried along with the outputs:
>
>
>
```
import os
def getfuncts(modyule):
return (dir(modyule))
def pull_function(modyule):
highgrade = []
l = getfuncts(mody... |
2018/03/13 | 1,090 | 3,968 | <issue_start>username_0: Here is the case:
We have 390 site collections, where we want to know if they use managed metadata or not due to a migration that is happening this authum.
If they do, we have no idea what termset etc they would be using.
Googeling, I can'f find much about on how to approch this.
I assume th... |
2018/03/13 | 1,296 | 4,626 | <issue_start>username_0: How to get user's input in both int and float for python3?
>
> Apparently programmed a calculator, but i would love for user's input to be in int and float not just int or float but both. That's basically all am concerned about, changing the int to get int and float. Sadly Java uses double.
>... |
2018/03/13 | 287 | 993 | <issue_start>username_0: I have the following array:
```
var ships = [ { locations: [], hits:0 },
{ different: [], different1:0 },
{ different3: [], different2:0 } ];
```
How do I reference the array "locations" inside the 1st object and push something to it? Thanks!<issue_comment>usernam... |
2018/03/13 | 933 | 3,597 | <issue_start>username_0: I have made an html form and validate it with php or more precisely part of validation (just check rquired field)
Here is the html codes:
```
### Registration Form
Name : \* php echo $nameErr; ?
Username : \* php echo $usernameErr; ?
Password : \* php echo $passwordErr; ?
Retype Pas... |
2018/03/13 | 1,710 | 4,951 | <issue_start>username_0: I have a piece of plain text in my html code inside in a div. The div's class is 'intro'.
In my CSS, I have two classes for this piece of text:
```
.intro {
width: 100%;
margin-top: 3%;
display: none;
}
.introalt {
width: 100%;
margin-top: 3%;
display: block;
}
```
In my script, I have t... |
2018/03/13 | 1,680 | 4,822 | <issue_start>username_0: I have a .csv file which look like this:
>
> message\_id, hashtag
>
> id\_1, hashtag\_1
>
> id\_2, hashtag\_1
>
> ...
>
> id\_k, hashtag\_m
>
> ....
>
>
>
>
I'm trying to find a cosine measure between each pair of hashtags in csv by doing the following:
```
de... |
2018/03/13 | 2,193 | 5,903 | <issue_start>username_0: I am working on an updated internal website that will pull data from a sql server. The data is automatically inserted into the database from a VAX system. The raw database looks like this:
```
mysql> SELECT * FROM userdb.clientdata WHERE datadate = '2016-09-23' AND header IN (1,3,6,9,212,2048)... |
2018/03/13 | 513 | 2,037 | <issue_start>username_0: I have an Akka application having several nodes in a cluster. Each node runs an assortment of different Actors, i.e. not all nodes are the same--there is some duplication for redundancy.
I've tried code like this to get a ref to communicate with an Actor on another node:
```
val myservice = c... |
2018/03/13 | 455 | 1,858 | <issue_start>username_0: With this function i want to replace a static image with an animated image (gif) on mouseover. But it's not working only on FIRST mouseover. Is there someone that could help me?
JQuery function:
```
function mouseListener(imageDiv, image, animated, static)
{
$(function() {
$(imageDiv).... |
2018/03/13 | 715 | 2,278 | <issue_start>username_0: Quick question about sorting the table. Anyone can explain why it's not sorting ASC or DESC example taken straight from Material UI Example: <https://codesandbox.io/s/13r5l3qyz3>,
Results:
```
Gargantua
Koala Den
aorro
```
or
```
aorro
Koala Den
Gargantua
```
Thanks<issue_comment>userna... |
2018/03/13 | 523 | 1,790 | <issue_start>username_0: I know it has to go inside <% %>, but I'm not sure if it's very different from a typical forEach/for loop. The documentation on the EJS site is pretty limited, so I came here.
```
<% include ../../partials/header %>
List of all quotes
==================
* <%
all quote stuff goes here
aut... |
2018/03/13 | 1,354 | 4,224 | <issue_start>username_0: I am using Angular Material Data table in my application. I need to display multiple columns with a horizontal scroll table. I am facing an issue with the table row border. It's not displaying an entire width of the row. Please check the attached image for your reference. Please help me to reso... |
2018/03/13 | 847 | 2,607 | <issue_start>username_0: I've been using Instagram's undocumented API `https://www.instagram.com//?\_\_a=1` to get a public user feed.
I was also able to get multiple pages via their `max_id` query parameter like so: `https://www.instagram.com//?\_\_a=1&max\_id=`
```
end_cursor = json_response.graphql.user.edge_owne... |
2018/03/13 | 653 | 1,581 | <issue_start>username_0: I have a co-occurrence matrix in pandas. How do I get the co-occurence values of all the combinations, sorted descending without looping?
(I didn't write the values on the other side of the diagonal, but they are there, and hold mirrored values)
Input:
```
A B C D E F
A 0 1 0 1 2 ... |
2018/03/13 | 585 | 1,711 | <issue_start>username_0: I have an BufferedinputStream that contains the byte[] representation of a file file and before that it contains the name of file ("FileName.fileExtension")
I'd like to read the first line and then read the byte representation of the file so I can Convert It to the it's extension
I tried this ... |
2018/03/13 | 1,495 | 4,498 | <issue_start>username_0: I can't seem to install Pandas for Python on my Macbook. I have gone through different threads to try to understand but have not been able to find a solution.
i have used `pip install pandas`
The Error i get:
```
xxx-MacBook-Pro:~ edss$ pip install pandas
Collecting pandas
Using cached pan... |
2018/03/13 | 1,239 | 3,575 | <issue_start>username_0: My question is how can I pass multiple parameter to DELETE request.
My controller class as follow,
```
namespace MYAPI1.Controllers
{
public class TaskController : ApiController
{
// DELETE: api/Task/5
[Route("api/Task/id1/id2/{id3}")]
public void Delete(int i... |
2018/03/13 | 511 | 2,034 | <issue_start>username_0: I am running into a SOAP error when I am exiting out of a PowerShell remote session where I am remoting from a Windows 10 system to a Ubuntu 16.04 server. Is there a way to fix or silence this error?
I'm receiving the following error:
```
Closing the remote server shell instance failed with t... |
2018/03/13 | 344 | 1,146 | <issue_start>username_0: I am attempting to scrape a webpage that requires a login using `curl` in the Mac Terminal but can't seem to get it right. I have a `cookies.txt` file with my login info that I am reading into the command, but I can't get it to scrape the intended page. When I run
`curl -b /Users/dwm8/Desktop/... |
2018/03/13 | 531 | 1,806 | <issue_start>username_0: I am able to print out the localhost, 127.0.0.1, just fine but I am having trouble printing out port 61627 as seen below. As mentioned in this [question](https://stackoverflow.com/questions/41250805/how-do-i-print-the-local-and-remote-address-and-port-of-a-connected-socket), I set `outputdata =... |
2018/03/13 | 553 | 1,969 | <issue_start>username_0: I am using OS X High Sierra.
I started with the install documentation here:
<https://flutter.io/setup-macos/>
however I cannot seem to install libimobiledevice and ideviceinstaller.
When I start flutter doctor I get the following:
```
✗ libimobiledevice and ideviceinstaller are not installed.... |
2018/03/13 | 344 | 1,269 | <issue_start>username_0: I have craeted a new div and inside the div Idisplay the information about a topic and also a link to read more about the topic, but my onlick funciton is not working it keeps telling that id is not define. How can I pass value thru innerHTML
```
function displayNews(section, id, title) {
... |
2018/03/13 | 436 | 1,674 | <issue_start>username_0: Appium
Python
iOS
el.text and get\_attribute('label') etc. all seem to pulling accessibility information. Is there a way to pull the actual text that is displayed on screen using Appium? I need to be able to pull for a given element.<issue_comment>username_1: You can use .text
```
element = d... |
2018/03/13 | 1,197 | 4,936 | <issue_start>username_0: I have an issue with my authentication service + component in that the service seems to be reinitialized every time I load up the auth component. The flow that should be present in my app is that the root app-component should, upon the application starting, send a log in request to check if the... |
2018/03/13 | 713 | 2,875 | <issue_start>username_0: I'm making a very simple login script (beginner at PHP) and here is my code. I can't figure out how to redirect after true login credentials. I know this probably is a duplicate but I can't figure this out without help on my exact script (as mentioned above I'm not that good).
**update:** So I... |
2018/03/13 | 490 | 1,655 | <issue_start>username_0: I have a data frame with 3 columns, for example:
```
my.data <- data.frame(A=c(1:5), B=c(6:10), C=c(11:15))
```
I would like to split each column into its own data frame (so I'd end up with a list containing three data frames). I tried to use the "split" function but I don't know what I woul... |
2018/03/13 | 799 | 2,563 | <issue_start>username_0: I need to find an object in array based on array of values and then remove them, this was easy when I only needed to find one item, I did it like this:
```
if (mdl.findObjectByKey(response, 'cat_id', 171) == true) {
console.log("item removed from dropdown");
var catId = response.map(item =... |
2018/03/13 | 1,334 | 4,804 | <issue_start>username_0: I'm trying to create node library using webpack and babel so that I can use ES2017. Everything works properly but the problem is a size of the output file which is huge comparing to the original file size. My test library is really simple and as the only dependency has `mongodb` package. Here i... |
2018/03/13 | 1,208 | 4,973 | <issue_start>username_0: I am developing a MySQL editor in C#, and I made it so you can rename databases by double-clicking the name. For some reason though, **AfterLabelEdit** is executed twice if I try to rename an already renamed section.
---
**Example**
---
I have a database named 'test\_db'. After I double cli... |
2018/03/13 | 1,009 | 3,927 | <issue_start>username_0: I am trying to make a simple echo UDP server that sends back all incoming datagrams prefixed with a UTF8 string.
In my attempts to reach this goal, I succeeded in sending back the incoming data, but when I try to prefix this data with the string: `"You sent: "`, I get an error `writeDataUnsupp... |
2018/03/13 | 2,075 | 7,513 | <issue_start>username_0: Can anyone help? I am creating a project for uni and I seem to be getting some errors.
I keep getting the following error on my webpage: **Uncaught ReferenceError: Authors is not defined**
I would be grateful if anyone could help with this. I have used html, php and javascript. (slim as well)... |
2018/03/13 | 483 | 1,825 | <issue_start>username_0: I'm using a service that gets data , that I will use it in my component.
```
ngOnInit() {
this.EJnames= this.dataservice.getResults();
this.generalinfosservice.getResults("nothing").then(data=>{this.datas=data; console.log(data)});
console.log(this.datas);
}
```
In my `getResul... |
2018/03/13 | 383 | 1,568 | <issue_start>username_0: In the following the snippet, is the lifetime of the sphere extended in such a way that the value of `r` is not undefined?
```
struct Sphere {
auto& radius() const { return _radius;}
float _radius{};
};
struct Capsule {
auto sphere() const { return Sphere{12.0}; }
};
auto func() ... |
2018/03/13 | 3,210 | 9,845 | <issue_start>username_0: I need to find this month, previous month and the next month of a specific date.
For example, date was set to 31 of every month, what I expect to get the date is
2018-02-28, 2018-03-31 and 2018-04-30. For those dates which has no 31, than it becomes the day before.
And finally generate 2 per... |
2018/03/13 | 581 | 2,205 | <issue_start>username_0: I am developing a Spring Boot program that use RestHighLevelClient to insert document into ElasticSearch. Now I have built the configuration for the client, however, I am not sure how to insert/index. The documentation on ElasticSearch seems confusing to me..
Here is the piece of code I tried ... |
2018/03/13 | 869 | 3,138 | <issue_start>username_0: I'm new using MVC C# on web applications...and I am having troubles deleting a row in the database...the result is an "HTTP Error 400.0 - Bad Request"
I'm not get this error when tables have just 1 primary keys.
Controller:
```
// GET: DocenteCursoes/Delete/5
public ActionResult Delete(s... |
2018/03/13 | 938 | 2,481 | <issue_start>username_0: I have the following `df1` :
```
prueba
12-03-2018 7
08-03-2018 1
06-03-2018 9
05-03-2018 5
```
I would like to get each value in the column beggining by the last (`5`) and substract the entire column by that value. then iterate upwards and subtract the rem... |
2018/03/13 | 3,912 | 11,909 | <issue_start>username_0: Update 19 April
---------------
After a few days using cookie `ig_pr` two days ago is block. Looks like the only way to get the data now is use `sessionid` with a specific value
Original
--------
I was using instagram ?\_\_a=1 url to read all the post of instagram's users.
A few hours ago t... |
2018/03/13 | 504 | 1,838 | <issue_start>username_0: I've been following the Angular upgrade guide to create a hybrid AngularJS/Angular app, but I'm falling at the first hurdle.
I get the following error:
`Uncaught Error: Can't resolve all parameters for AppModule: (?).`
Here's my `app.module.ts` file:
```
import { NgModule } from '@angular/c... |
2018/03/13 | 230 | 840 | <issue_start>username_0: I'm trying to get the temperature data from an API, and output it on my Android App.
I'm getting an errior saying "Cannot resolve method "parseDouble", what am I doing wrong?<issue_comment>username_1: I managed to figure this out through a combination of [this article](https://scotch.io/tutori... |
2018/03/13 | 702 | 2,731 | <issue_start>username_0: I'm trying to write some tests for my database client which requires me to first authenticate into Firebase.
I'm using Jest as my test runner.
My test looks like:
```
it ('should sign in ', async (done) => {
try {
await auth.signInWithEmailAndPassword('<EMAIL>', '<PASSWORD>user');
... |
2018/03/13 | 357 | 1,290 | <issue_start>username_0: We are using Bitbucket at work, here is the UI for creating a new commit message/description when doing a merge via pull request:
[](https://i.stack.imgur.com/WljiP.png)
as you can see in the screenshot, the question is:
whe... |
2018/03/13 | 839 | 2,428 | <issue_start>username_0: I need to pass a multiple criteria list (a constant array) via cell reference rather than hard-typing it into my formula.
So, instead of this:
`=SUM(SUMIFS(sum_range,criteria_range,{"red","blue"}))`
But I would need to use this:
`=SUM(SUMIFS(sum_range,criteria_range,$A1))` where $A1 is... |
2018/03/13 | 915 | 2,939 | <issue_start>username_0: In jQuery, having retrieved a number of elements, I iterate through them with a .each loop, after which I spit them out on canvas. However, I need to control the elements in groups, so that out of 100 elements, 10 will get a certain value, another 10 will get a different set of values, and so o... |
2018/03/13 | 390 | 1,293 | <issue_start>username_0: By the time the doctest is run, the volatile output is different thus the test fails. Ideally (but not necessarily), the solution should try to avoid to write testable code outside the docstring in order to avoid impacting the test coverage.
```
from datetime import datetime
def get_now():
... |
2018/03/13 | 1,612 | 5,835 | <issue_start>username_0: Say I have a user model like:
```
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.String(255))
last_name = db.Column(db.String(255))
email = db.Column(db.String(255), unique=True)
password = db.Column(db.String(255))
... |
2018/03/13 | 1,589 | 5,799 | <issue_start>username_0: I have successfully compiled QuantLib 1.12 on Ubuntu with --enable-sessions and --enable-thread-safe-observer-pattern flags. I also compiled java Swig bindings. When I try to run Bonds example in java, I get an undefined symbol error on sessionId().
```
java -cp ./QuantLib.jar:. -Djava.library... |
2018/03/13 | 1,385 | 4,209 | <issue_start>username_0: I am trying to print the tuple `new_zoo` given below without brackets:
```
zoo=('python','elephant','penguin')
new_zoo=('monkey','camel',zoo)
```
I know usually we can use `', '.join(...)`. But because here the `new_zoo` tuple contains a inside tuple zoo, so when I use `', '.join(new_zoo)` i... |
2018/03/13 | 1,034 | 3,333 | <issue_start>username_0: Basically I'm trying to add together the count column values of item columns with the same name in a csv file. I then need to sort the results in ascending alphabetic order by item column values. For example:
```none
Leading Cause, Deaths
Diabetes Mellitus, 123
Influenza and Pneumonia, 325
Dia... |
2018/03/13 | 1,021 | 2,930 | <issue_start>username_0: I'm working on a Travelling Salesman Solver, I'm trying to make it execute in two threads and return the path drawing(Jframe) and the path distance/output of the best search.
My Code is below:
```
Executer myRunnable = new Executer();
Thread t = new Thread(myRunnable);
t.start();
... |
2018/03/13 | 275 | 1,223 | <issue_start>username_0: We have generated the OTP using Totp algorithm and it would be live for short time. Can you please tell me how to verify generated OTP with user entered otp. Is there any method for compare those or need to store the password somewhere and validate with the entered otp.
Please suggest me which... |
2018/03/13 | 999 | 3,513 | <issue_start>username_0: I wrote a function to add items to my log file. Variables `loglevs[]` and `des` together exceed 30 characters (by far). When I use the function as below, all works fine.
```
char *logitem (int loglev, const char *des) {
extern const char *loglevs[];
char *lld; // loglevel & descriptio... |
2018/03/13 | 229 | 645 | <issue_start>username_0: can someone please help me?
my input is a list of two strings. each string is a four digits number. I need to take the two strings. and print each's digits from the end to the beginning separated by commas, but without a comma after the last digit.
thanks (:<issue_comment>username_1: You can j... |
2018/03/13 | 503 | 1,463 | <issue_start>username_0: I decided to work on CodeAbbey exercises for some practice in C++. I'm currently working on Problem #15 (Maximum or Array), which tells me to: create a linear search on an array(of size 300), find the maximum and minimum values in the list, then print out the max and min.
It seems that I got e... |
2018/03/13 | 932 | 3,070 | <issue_start>username_0: I'm writing a program that finds passwords. I ran into a problem when I saw that the "for" loops to replace parts of the password would have to be repeated for the variable of the chosen password length. The goal of this program is to generate and check a password of any character array, starti... |
2018/03/13 | 458 | 1,714 | <issue_start>username_0: Using EF to create the classes I choose the singularize option. Some of the classes were singularize but other doesn't.
This work ok:
```
products -> product
presentations -> presentation
```
But this two wasn't:
```
price_sources -x-> price_source
user_types -x-> user_type
```
[![enter ... |
2018/03/13 | 466 | 1,708 | <issue_start>username_0: Look at this very basic php code:
```
php
$mng = new MongoDB\Driver\Manager("mongodb://localhost:27017");
$query = new MongoDB\Driver\Query(['login' = $_GET['login'], 'pwd' => $_GET['pwd']]);
$rows = $mng->executeQuery("ma_bdd.utilisateurs", $query);
foreach ($rows as $row)
{
echo $row->l... |
2018/03/13 | 532 | 1,948 | <issue_start>username_0: ~~I don't know why whenever i use an icon from <https://fontawesome.com> and integrate it into my html my browser( google chrome) shows a flashing question mark in place of the icon. Any solutions?~~
Update:
=======
The flashing icon issue has been solved, but there's a new issue.
I don't kn... |
2018/03/13 | 1,327 | 4,549 | <issue_start>username_0: I've got a couple of HW platforms (same cpu, etc.) that require different asound.conf files.
The way that I'm controlling the target platform is via the MACHINE variable and target image (i.e., *MACHINE=machine\_1 nice bitbake machine-1-bringup-image*)
Normally, if just replacing the conf fil... |
2018/03/13 | 1,080 | 3,659 | <issue_start>username_0: So I've configured my Ruby on Rails app to use CloudFront as a CDN. JavaScript, CSS & image assets seem to be serving correctly via CloudFront but fonts are failing with a CORS issue -
```
Access to Font at 'https://abcdefghikl.cloudfront.net/assets/fonts/din-regularalternate-webfont-79090091... |
2018/03/13 | 1,424 | 4,566 | <issue_start>username_0: My Kafka Connect sink is running out of heap space. There are other threads like this: [Kafka Connect running out of heap space](https://stackoverflow.com/questions/41964676/kafka-connect-running-out-of-heap-space)
where the issue is just running with the default memory setting. Previously, ra... |
2018/03/13 | 645 | 1,886 | <issue_start>username_0: I first run this Query to `INSERT` a row
```
INSERT INTO a (acol, bcol, ccol) VALUES (1, 1, 12);
```
Then I follow it with
```
INSERT INTO a (acol, bcol, ccol) VALUES (1, 1, 12)
ON DUPLICATE KEY UPDATE ccol=VALUES(10);
```
while having `UNIQUE KEY` on `aco, bcol`, But I keep getting thi... |
2018/03/13 | 1,119 | 4,186 | <issue_start>username_0: This is my main urls.py
```
urlpatterns = [
url(r'^', include_docs_urls(title='Foot The Ball API')),
url(r'^admin/', admin.site.urls),
url(r'^api/v1/aggregator/', include('aggregator.urls')),
url(r'^api/v1/bouncer/', include('bouncer.urls')),
]
```
These are the urls in bou... |
2018/03/13 | 10,850 | 28,160 | <issue_start>username_0: I am trying to link vulkan to my project, and I got some weird erros.
Below is my CMakeList, I have build vulkan on my computer, also I have installed glfw.
```
cmake_minimum_required(VERSION 3.8)
project(VulkanTest)
set(CMAKE_CXX_STANDARD 14)
set(SOURCE_FILES main.cpp )
add_executable(${PR... |
2018/03/13 | 314 | 982 | <issue_start>username_0: I'm looking to split a string into substrings and each of the substrings starts and ends with [[ ]]
e.g.
I've only used a dash and colon as examples - it could be anything including space or no space. I'm just looking to get each of the substrings including the square brackets.
```
string m... |
2018/03/13 | 996 | 4,223 | <issue_start>username_0: I'm new to Firebase, and decided to get my feet wet. However, I'm having trouble retrieving values from a query. I'm basically trying to get the password value, but I believe it's returning nothing.

Error:
>
> java.lang.NullPointerException: pri... |
2018/03/13 | 1,718 | 5,633 | <issue_start>username_0: I've got few files with different files:
* main.py
* watch.py
* read.py
* detect.py <-- Uses tensorflow based library
`darkflow` that relies on the graph mode
* translate.py <-- uses tf
eager execution
During darkflow's TFNet initialization I get this error:
```
Traceback (most recent call l... |
2018/03/13 | 419 | 1,432 | <issue_start>username_0: I am building a reusable navigation "tabs" component where I would like the selected tab to be set to "true" for aria-selected on click, however aria-selected is remaining false for all three tabs on click. How do I set an individual tab to true if it is clicked?
app.component.ts
```
import {... |
2018/03/13 | 468 | 1,671 | <issue_start>username_0: I am trying to adjust the UI in my game to properly fit on the screen of an iPhone X.
In my code I am attempting to code the line `return Screen.safeArea`
However 'safeArea' is highlighted red and when I hover over the error with my cursor a message is displayed saying "error CS0117: 'Unity... |
2018/03/13 | 1,616 | 4,690 | <issue_start>username_0: I have an R data frame, with one column of data frames, each of which I want to print to a file:
```
df0 <- tibble(x = 1:3, y = rnorm(3))
df1 <- tibble(x = 1:3, y = rnorm(3))
df2 <- tibble(x = 1:3, y = rnorm(3))
animalFrames <- tibble(animals = c('sheep', 'cow', 'horse'),
... |
2018/03/13 | 468 | 1,939 | <issue_start>username_0: Can't directly take screenshots from an iPad simulator/device. Thus, resorting to rescaling crisp iPhone screenshots into iPad screenshots. The results are minor width stretching.
1242x2208 (iPhone 5.5") is rescaled into 2048x2732 (iPad 12.9") using 'nearest neighbor (preserve hard edges)' in ... |
2018/03/13 | 652 | 2,744 | <issue_start>username_0: Apologies if this has been answered before; I scoured Stack Overflow but couldn't quite find anything like it. I have a feeling that what I'm asking is not possible, but I'm sure there must be a way to achieve it.
I'm working with a base class which contains a number of pure virtual functions ... |
2018/03/13 | 716 | 2,155 | <issue_start>username_0: I would like to split the rows of a column given a separator (in my specific case, it would be 0), treating the column like a traditional linked list (e.g. a Python list).
Then, obtain the mode of each cluster and replace each value of the cluster with his mode.
Let's say I have the following... |
2018/03/13 | 1,817 | 5,435 | <issue_start>username_0: I'm trying to create a flag variable (i.e. a new column with binary values, like 1 for True, 0 for False) - I've tried both `np.where` ([as per this post](https://stackoverflow.com/questions/44273037/comparing-two-dataframes-specific-questions)) and `df.where` to no avail.
With df.where using:... |
2018/03/13 | 663 | 1,655 | <issue_start>username_0: I'm interested in sorting a list that's formed from several sublists.
For example, I'm receiving as input the following:
```
<NAME> 264
Pop Alin 263
Stan Darius 304
Pop Tudor 252
<NAME> 323
Stroe Mihai 279
<NAME> 268
```
I'm reading the lines:
```
for i in range(n):
c=input("").spli... |
2018/03/13 | 692 | 2,811 | <issue_start>username_0: Hello I have a doubly linked list without implementing, my issue is that I'm not sure how can I apoint a tail because of the constructor for Element that feels confusing to me, it is my homework so it has to be done with that constructor .
So far, my method addFirst does its job but it doesn't ... |
2018/03/13 | 686 | 2,126 | <issue_start>username_0: Given `val as: Seq[Int] = ...`
A lot of times I need to apply an operation to two consecutive elements, e.g.
By the way I don't like
```
for (i <- 1 until as.size) {
// do something with as(i) and as(i - 1)
}
```
Or by another
```
as.tail.foldLeft((0, as.head)) { (acc, e) =>
// do som... |
2018/03/13 | 364 | 1,462 | <issue_start>username_0: I'm trying to use Hash in my global functions file.
I keep getting this error.
Class 'App\Http\Controllers\Hash' not found
where my file below is located at:
/app/Helpers/functions.php
```
php
use App\Http\Controllers\Hash;
// If old password matches password
function checkOl... |
2018/03/13 | 454 | 1,676 | <issue_start>username_0: I am trying to write to a pdf and send it in an email.I am able to implement this on my local machine. The problem is when I deploy to azure I am not sure where to store the pdf . I have seen one question regarding this
and tried this solution from stackoverflow -
[Does iText (any version) wor... |
2018/03/13 | 2,134 | 8,129 | <issue_start>username_0: **Use Case Summary**
1. User A creates a story
2. User A shares story with unknown (to the app) User B via email (sent via cloud function)
3. User B receives an email about the story
4. User B visits app and creates a new account
5. User B sees/reads story create by User A
**Note:** stories c... |
2018/03/13 | 1,421 | 4,583 | <issue_start>username_0: I would like to create a single library from objects from multiple sub-directories, each one containing their own CMakeLists.txt with OBJECT library trick to have multiple targets with different compile options.
Here are the files:
```
project_dir
|--- subdir1
| |--- src1.c
| |--- CMake... |
2018/03/13 | 1,094 | 2,718 | <issue_start>username_0: Supposed I have two strings to convert from SAS program name to table number.
My goal is to convert the first "f-2-2-7-5-vcb" to "2.2.7.5".
And this should be done dynamically. Like for "f-2-2-12-1-2-hbd87q",
it needed to be "2.2.12.1.2" .
How to accomplish this?
```
data input;
input str... |
2018/03/13 | 1,111 | 4,265 | <issue_start>username_0: Maybe I misunderstood what this package does, but I assumed that it would read cached responses and help with offline application functionality.
```
import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
export const DATA_QUERY = gql`
query Data {
... |
2018/03/13 | 978 | 3,534 | <issue_start>username_0: I would like to show an example of a model that overfit a test set and does not generalize well on future data.
I split the news dataset in 3 sets:
```
train set length: 11314
test set length: 5500
future set length: 2031
```
I am using a text dataset and build a `CountVectorizer`.
I am cre... |
2018/03/13 | 886 | 2,103 | <issue_start>username_0: I want the program to print the numbers within the `a` list as a new list - the `x` list, instead of printing each number within its own list.
When I run this, the output is:
```
[1]
[1, 1]
[1, 1, 2]
[1, 1, 2, 3]
```
When I only want:
```
[1, 1, 2, 3]
```
This is, like, the easiest thin... |
2018/03/13 | 605 | 2,192 | <issue_start>username_0: hello I would like to display a list of message and date but don't know how, I already find some code (Model and Themeleaf) but I can't change it properly :> my code:
Service
```
@Autowired
private SpittleRepository spittleRepository;
private List spittles = new ArrayList<>(Arrays.asList(
n... |
2018/03/13 | 646 | 2,436 | <issue_start>username_0: It's a .net core project running on a Mac. I've a custom Exception class that I'm serializing as JSON as output in case of an error.
```
public class HttpException : Exception {
private readonly int statusCode;
public HttpException() {}
public HttpException(int statusCode, stri... |
2018/03/13 | 476 | 1,540 | <issue_start>username_0: Using Angular 5 and Firebase, I have created a review website that allows users to create reviews on the `CreateComponent` and read them on the `ReviewComponent`. I'd like the body of the review to be able to contain HTML for links or images.
The `ReviewComponent` pulls the body of the review ... |
2018/03/13 | 1,174 | 3,808 | <issue_start>username_0: In python 3.7, I have this numpy array with shape=(2, 34900). This arrays is a list of coordinates where the index 0 represents the X axis and the index 1 represents the y axis.
When I use seaborn.kde\_plot() to make a visualization of the distribution of this data, I'm able to get the result ... |
2018/03/13 | 985 | 3,936 | <issue_start>username_0: So I was checking out the realworld implementation of Sapper/Svelte: <https://github.com/sveltejs/realworld>
I've read a lot about SASS preprocessing, and it doesn't seem like it is fully supported, but there are some docs on it. From what I could put together, I should be able to preprocess m... |
2018/03/13 | 7,363 | 17,473 | <issue_start>username_0: I thought I had this solved but I guess not. I've got my Django app on Heroku, and it works perfectly with `DEBUG = True` but does not work with `DEBUG = False`.
**UPDATED QUESTION**
Now I'm just battling with this error:
2018-03-14T18:42:08.812921+00:00 heroku[router]: at=error code=H12 de... |
2018/03/13 | 1,340 | 5,806 | <issue_start>username_0: Today is Tuesday March 13th, 2018. The previous Sunday was March 11th, 2018. My code to calculate the previous Sunday is:
```
// NOTE that this particular code block may return the correct result for you IF your timezone
// is something other than "America/Chicago". E.g. "America/Belize". Use... |
2018/03/13 | 914 | 2,916 | <issue_start>username_0: I'm trying to add environment variables to my quartz properties file, but it's not being loaded properly.
Heres my quartz.properties
```
org.quartz.scheduler.instanceName: scheduler
org.quartz.scheduler.instanceId: AUTO
org.quartz.scheduler.skipUpdateCheck: true
org.quartz.threadPool.... |
2018/03/13 | 1,433 | 3,725 | <issue_start>username_0: Say I have the following data, dat1;
```
width from by
2 1 A
3 1 A
2 2 A
3 2 A
2 1 B
3 1 B
2 2 B
3 2 B
```
And additionally have that, dat2;
```
x pos by
4 1 A
5 2 A
7 3 A
3 4 ... |
2018/03/13 | 1,024 | 3,677 | <issue_start>username_0: I got some strange behavior of my code.
I can`t pass a structure to the callback function.
```
#include
#include "stdint.h"
typedef struct {
int test\_rssi;
int setup\_rssi;
} test\_setup\_scan\_result;
typedef void (\*WifiCallback)(uint8\_t);
WifiCallback TestSetupCb;
void resume\_conf... |
2018/03/13 | 607 | 2,407 | <issue_start>username_0: I need a vbs script with a message box that opens iexplorer when I click yes, and close the msg box when I click no. Thanks, I am new to programming, and need help. Thank you.<issue_comment>username_1: I have run it in Valgrind and I have identified a blatant error (which manifests in several p... |
2018/03/13 | 1,477 | 3,809 | <issue_start>username_0: This dataframe contains what I'll call the "data":
```
library(tidyverse)
df_d <- data_frame(key = c("cat", "cat", "dog", "dog"),
value_1 = c(1,2,3,4),
value_2 = c(2,4,6,8))
```
Here is a dataframe that I intend to use as something like a function look-up tabl... |
2018/03/13 | 592 | 2,225 | <issue_start>username_0: I've gone through a bunch of tutorials and docs but cannot seem to be able to update on page when data changes in Firestore (NOTE: not Firebase)
Heres what I have currently which is working fine except if data changes in the DB it is not reflected on the page itself unless I refresh. Code belo... |
2018/03/13 | 332 | 1,324 | <issue_start>username_0: I am working on an asp.net web forms project. I have an asp.net button which has both OnClientClick and onClick events. The OnClientClick event executes the javascript function processHolidayDates() which in turn shows a Telerik's Ok/Cancel message box. When the Ok button is clicked it will ret... |