date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/04 | 1,833 | 6,889 | <issue_start>username_0: So im trying to remove the numbers 1,2,7,14 in the array but i dont know how to remove it. I did not find any solution that is similar to this
[](https://i.stack.imgur.com/JqySO.png)
```js
function mySelect(){
var prime1... |
2018/03/04 | 936 | 3,217 | <issue_start>username_0: I have installed [Anaconda](https://en.wikipedia.org/wiki/Anaconda_(Python_distribution)) 3 and [PyCharm Community Edition](https://en.wikipedia.org/wiki/JetBrains#IDEs) after that. I am able to chose the interpreter to be a [Conda](https://en.wikipedia.org/wiki/Conda_(package_manager)) environ... |
2018/03/04 | 1,007 | 3,041 | <issue_start>username_0: I have one data table with the following schema
```
id|smalltime
1 2199-08-02 20:00:00
2 2150-11-13 15:00:00
...
```
And I have another data table with the following schema
```
id|time
1 2199-08-02 20:10:00
1 2199-08-02 19:00:00
2 2150-11-13 15:10:00
...
```
I want to find for each i... |
2018/03/04 | 875 | 2,775 | <issue_start>username_0: given I have a string list like this:
```
: ['a;b;c', '9;6;0.4', '9;2;0.6', '10;7;0.3', '10;8;0.7']
```
How can I use split to split it according to the second ";" to this format:
```
: ['a;b', '9;6', '9;2', '10;7', '10;8']
```
Thank you very much!.<issue_comment>username_1: Apparently th... |
2018/03/04 | 1,278 | 4,284 | <issue_start>username_0: I am working on Ubuntu 16.04. I am trying to `make` [darknet](https://github.com/pjreddie/darknet) after having successfully installed OpenCV. I have already successfully installed darknet with CUDA support, but I am now trying to empower it with OpenCV, setting `OPENCV=1` in its makefile as in... |
2018/03/04 | 957 | 3,149 | <issue_start>username_0: How to use the sed command to replace a string like "U.S.A." to "USA" or "D.A.R.P.A." to DARPA. The " is not part of the string.
So my goal is to replace only the abbreviations from a huge text.
I tried `sed "s/.//g" file.txt >file2.txt` but this replaces all the occurences of dots.
Then i ... |
2018/03/04 | 911 | 2,960 | <issue_start>username_0: I want to apply different functions to columns of a data frame. Currently, I am doing it one by one. As an example, I have put some reproducible code.
```
col1_mean <- mean(iris$Sepal.Length)
col2_mean <- mean(iris$Sepal.Width)
.
.
col1_median <- median(iris$Sepal.Length)
col2_median <- ... |
2018/03/04 | 1,060 | 4,077 | <issue_start>username_0: I'm using [Spacy](http://spacy.io/) for a NLP project. I have a list of phrases I'd like to mark as a new entity type. I originally tried training a NER model but since there's a finite terminology list, I think simply using a Matcher should be easier. I see in the [documentation](https://spacy... |
2018/03/04 | 679 | 2,193 | <issue_start>username_0: I played with <https://labs.play-with-docker.com/>.
I chose the template of `3 Managers and 2 Workers`:
[](https://i.stack.imgur.com/To0pO.png)
I went to `manager1` and created a secret:
```
echo "<PASSWORD>" | docker s... |
2018/03/04 | 562 | 1,804 | <issue_start>username_0: Say I have a table which looks like this:
```
+----------------------------------+-
| Id | Sub1 | Sub2 | Sub3 |
+----------------------------------+-
| X | 100 | 55 | 65 |
| Y | 45 | 55 | 65 |
| Z | 95 | 55 | 65 |
+-----------------------... |
2018/03/04 | 457 | 1,777 | <issue_start>username_0: I'm using a Trigger to update the Products table to the current date if the value for that column is null. I have everything yet, when I insert the new values into the table the DateAdded column for it says NULL instead of today's current date. I'm not exactly sure what's wrong and why it isn't... |
2018/03/04 | 450 | 1,694 | <issue_start>username_0: I am new to React Native development so bear with me.
When I create a new React Native project via CMD and I see the code, the .js has a lot of keywords used in TypeScript.
This not seems to be plain Javascript or I'm wrong? What I am seeing is Javascript or Typescript?
Thank you<issue_comm... |
2018/03/04 | 576 | 2,306 | <issue_start>username_0: How can I access string value "data" outside class onResponse. Always i use Toast outside class response is display null.
```
String data;
JsonObjectRequest objectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener() {
@Override
public void onResponse(JSON... |
2018/03/04 | 1,085 | 4,046 | <issue_start>username_0: I'm importing a csv file via Pandas, formatted as so:
```
test = [
('the beer was good.', 'pos'),
('I do not enjoy my job', 'neg'),
("I ain't feeling dandy today.", 'neg'),
("I feel amazing!", 'pos'),
('Gary is a friend of mine.', 'pos'),
("I can't believe I'm doing thi... |
2018/03/04 | 502 | 2,132 | <issue_start>username_0: I would like to know how can I pass a class instance into the BeforeAllCallback.
The test:
```
@ExtendWith(MyExtension.class)
public class IntegrationSpec extends DockerComposeAbstraction {
Myobject example = new Myobject("something");
@Test
public void testSomething() {
... |
2018/03/04 | 1,215 | 3,806 | <issue_start>username_0: I tried to write a code that which rotates each line in a text file. For example, given the next line:
>
> a b c
>
>
>
the output will be:
>
> c b a
>
>
>
this script get as argument only one argument - the name of the text file. In addition, I want to do it so will be signficance... |
2018/03/04 | 789 | 2,541 | <issue_start>username_0: I'm playing with some of the very basics of ruby mixins, and for some reason can't access behavior from my module.
Running this on Ruby Fiddle:
```
module Cats
MEOW = "meow meow meow"
def Cats.meow?
return Cats::MEOW
end
end
class Example
include Cats
def sample
return "i... |
2018/03/04 | 764 | 2,615 | <issue_start>username_0: While installing `Anaconda2` on `Windows 7`, there is an advanced options dialog box that asks if the user wants to `Add Anaconda to my PATH environment variable` and if the user wants to `Register Anaconda as my default Python 2.7`.
[](https://i.stack.imgur.com/a7DQW.png)
[](https://i.stack.imgur.com/hkely.png)
This is my re... |
2018/03/04 | 567 | 1,869 | <issue_start>username_0: I am using the library <https://github.com/szokodiakos/typegoose> to create mongoose models.
Item.ts
```
export class Item extends Typegoose { }
const ItemModel = new Item().getModelForClass(Item);
export default ItemModel;
```
User.ts
```
import { InventoryItem } from "./InventoryItem";
... |
2018/03/04 | 631 | 2,202 | <issue_start>username_0: I'm using [Slick.js](http://kenwheeler.github.io/slick/) for my carousel and I would like to prevent sliding to a slide when a specific condition is met. I'm trying to acheive this by unsing the `beforeChange` event:
```
$('.my-slider').on('beforeChange', function(event, slick, currentSlide, n... |
2018/03/04 | 440 | 1,503 | <issue_start>username_0: Say I want to make a bot with a "poke" feature (aka sends a pm to a user saying "Boop" when someone says "!poke @user#0000"), how would I do this? It works perfectly when I do this:
```
@bot.command(pass_context=True)
async def poke(ctx, message):
await client.send_message(ctx.message.auth... |
2018/03/04 | 219 | 731 | <issue_start>username_0: I am trying to achieve drawable to looks like this:

I use this xml:
```
xml version="1.0" encoding="utf-8"?
```
But got this:

Any ideas what could be wrong?
I am using the gravi... |
2018/03/04 | 1,775 | 5,657 | <issue_start>username_0: In *The C Programming Language*, they have said that only the first dimension (subscript) of an array is free to be specified; second subscript must be specified:
>
> If a two-dimensional array is to be passed to a function, the
> parameter declaration in the function must include the number... |
2018/03/04 | 1,632 | 5,379 | <issue_start>username_0: I'm trying to find the minimum value in "position" column. Here is my code:
```
public void minrank()
{
SqlConnection con1 = new SqlConnection(DecryptString(System.Configuration.ConfigurationManager.AppSettings["cn"], EncryptionKey2));
con1.Open();
string str1 = "select EmailAcmd5... |
2018/03/04 | 875 | 2,218 | <issue_start>username_0: So I've tried every trick I know and I've searched through Google and I'm not even sure if what I want to do is possible.I have a column which has let's say 10000 rows of data, many of which are duplicates. Is there a way to select a certain datum, find all of its duplicates in the column and t... |
2018/03/04 | 432 | 1,407 | <issue_start>username_0: I am calling a third party web api, which returns data like this:
```
{"name":"<NAME>","name":"jerry"}
```
I would like to convert this to a Json array, I could do a split by comma first and then by ":". but wondering if there are some better ways?<issue_comment>username_1: Assuming the data... |
2018/03/04 | 557 | 1,797 | <issue_start>username_0: Hi I installed a fresh kubernetes cluster on Ubuntu 16.04 using this tutorial:
<https://blog.alexellis.io/kubernetes-in-10-minutes/>
However as soon as I try to access my api (for example: <https://[server-ip]:6443> /api/v1/namespaces) I get the following message
```
{
"kind": "Status",... |
2018/03/04 | 4,765 | 17,639 | <issue_start>username_0: I am creating an Android library. I tried to integrate this library to Bintray using [this](http://blogs.quovantis.com/how-to-publish-android-library-on-bintrayjcenter/) tutorial. On building the project, I got this error:
```
Could not find method install() for arguments [installv_f1q320zaw5j... |
2018/03/04 | 180 | 673 | <issue_start>username_0: I have the below AngularJS code.
The current time is not displayed after executing the below code:
```
Clock App
Clock Application
=================
The current time is
{{50+3}}
var d = angular.module("a", []);
d.controller("t", function ($scope) {
var currentDate = new Date();
... |
2018/03/04 | 283 | 1,041 | <issue_start>username_0: I've created a content element with Mask for Typo3 where the editor can select the payment options provided. In the fluid template however, an integer with a bitmask is returned and not each individual option.
[/ - matches
jdsjdsj - no match
2017/03/12 - no match
12 - no match
Date() - no match
/Date(1218238800000)/ - matches
```
What I have so far is:
```
var res = str.match(/Date(\d*)/g);
```
How can I amend the regex to work?<i... |
2018/03/04 | 1,147 | 4,179 | <issue_start>username_0: I am new to Spring and need to expose web service to save Customer data.My customer object is huge json with multiple repeating elements .
I have seperate classes for each of these like Name,Address,Identification,Characteristics etc
Now when I define the POJO for Customer I need to declare all... |
2018/03/04 | 553 | 2,092 | <issue_start>username_0: The goal of the assignment I am working on is to create a bunch of different functions that involve searching a data type called a Trie, in which the constructor is defined as
```
data Trie = MakeTrie Char [Trie] deriving Eq
```
I am tying to first build simple functions so I can figure out... |
2018/03/04 | 547 | 1,979 | <issue_start>username_0: I have the following code where I want to use `k-fold cross validation` for a Linear Regression model:
```
kf = KFold(n_splits=100)
predi = cross_val_predict(model, train[columns], train[target], cv = kf)
predi = pandas.Series(predi)
model.fit(data[columns], data[target])
pred_test = model.pr... |
2018/03/04 | 418 | 1,550 | <issue_start>username_0: what is the diffrence b/w dls:document-add-properties and xdmp:document-add-properties as both do same work in properties of a managed doc in Marklogic??
I use both one by one on a managed doc but they give the same result.<issue_comment>username_1: You should checkout the [function syntax cha... |
2018/03/04 | 1,546 | 5,580 | <issue_start>username_0: I am using 2 API Points.
First one is to get all the exchanges and the second to print the BTC price on every exchange from the first point. I then want to combine both calls to 1 Object
```
var app = angular.module("App", []);
app.controller("Ctrl", function ($scope, $http) {
var rand ... |
2018/03/04 | 631 | 2,662 | <issue_start>username_0: I've recently added a UISearchController to my table view and I'm experiencing an animation issue. When the search bar is tapped and becomes active, the table view jumps up to meet the search controller's new (active) position. The problem with this is that the search controller animates to thi... |
2018/03/04 | 840 | 3,137 | <issue_start>username_0: Here's the code :
```
DROP TABLE FILM CASCADE CONSTRAINTS;
DROP TABLE COMPANY CASCADE CONSTRAINTS;
DROP TABLE MAIN_ACTOR CASCADE CONSTRAINTS;
DROP TABLE DIRECTOR CASCADE CONSTRAINTS;
CREATE TABLE FILM (
Film_ID NUMBER(4) PRIMARY KEY,
Title VARCHAR2(35) NOT... |
2018/03/04 | 468 | 1,315 | <issue_start>username_0: I am trying to learn SQL using different scenarios. Can someone please help me achieve following result, each column has to be in ascending order.
Table data
```
col1 col2
10 3
20 2
30 1
```
Output should be:
```
10,1
20,2
30,3
```
another example
Table data
```
col1 col2
10 ... |
2018/03/04 | 470 | 1,364 | <issue_start>username_0: I have this regex, it's an exemple:
```
/par(tir|te|s)|(quitter.*maison)|((heure|quand).*(rendez-vous|journΓ©e))/i
```
I would like to split it by "|" in a regular expression but this character can't be inside parenthesis for the explode. So the expected result have to be that:
```
1: par(ti... |
2018/03/04 | 593 | 1,833 | <issue_start>username_0: I have a list of lists in Python that is defined like this: `[[2, 3, 5], [3, 3, 1], [2, 3, 8]]`, not I want to delete the duplicate entries, but by duplicate I mean that the first two elements of each list match, for example, the first and third list have 2 and 3 as their first and second eleme... |
2018/03/04 | 814 | 3,076 | <issue_start>username_0: I am making an app with a dynamic table and when I load all of the values in my table and run the app, I will select a row with a checkmark and scroll down and see that another row beneath it is also selected with a checkmark. However, it is not adding the data from that other row to my data, i... |
2018/03/04 | 643 | 1,696 | <issue_start>username_0: I'm attempting to convert the string date `Fri, 9 Aug 2053 00:00:00 GMT` to day/month/year: `9/8/2053`
How do I exclude the `Fri` and `GMT` part from the string without using a string replace? Can this be accomplished using the datetime api ?
Here is my attempt, but I am unsure how to achieve... |
2018/03/04 | 662 | 2,330 | <issue_start>username_0: How to update local state of component after disptach action ?
In my case, I show a popin based on component local state :
```
this.setState({ popin: true })}>Open
...
this.setState({ popin: false })}>Close
Submit
```
On submit click, createItem dispatch action catch in Saga :
```... |
2018/03/04 | 1,639 | 5,518 | <issue_start>username_0: On my website, when clicking on links, I need to display a **modal popup** (see also [this solution](https://stackoverflow.com/a/49085573/1422096)) that:
* sometimes shows an external website (link #1 below)
* sometimes shows just a JPG image (link #2 below)
Problem: when displaying:
1. exte... |
2018/03/04 | 1,392 | 4,812 | <issue_start>username_0: I have already add the "maven{url "<https://maven.google.com>"}" but it doesn't work
This is my build.gradle file:
```
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classp... |
2018/03/04 | 325 | 1,244 | <issue_start>username_0: Trying to change the image in imageView dynamically based on the status.
Image changed successfully but problem is walk image overwrite on the run image. I want to clear the existing image and then set the new image.
`status_image.setImageResource(if(runningState == RunningState.FAST) R.dra... |
2018/03/04 | 638 | 1,945 | <issue_start>username_0: I have survey results that have the following format:
```
Lab Shepherd Poodle Frisky Sleepy Hungry
0 NaN NaN Yes Yes NaN NaN
1 Yes NaN NaN NaN NaN Yes
2 NaN Yes NaN NaN Yes NaN
```
I would like to transform my dataframe to the followin... |
2018/03/04 | 672 | 2,434 | <issue_start>username_0: I have an array with almost 2 millions of Facebook idSender, and I want to itearate over it, calling a Facebook API for each one of them.
Now, due to the asynchronicity, if I launch a simple for loop, Facebook would return me a rate limit exceed error after 4-5 minutes.
After some attempts I fo... |
2018/03/04 | 517 | 1,792 | <issue_start>username_0: How can I validate one `ng-include` at a time,
```
```
I am using the two different templates dynamically using `customtemplate`, my problem is here, it's validating both template same time.
So how to restrict one template for validation at a time.
Please suggest a better way, I have no c... |
2018/03/04 | 873 | 3,624 | <issue_start>username_0: I have a method that calls another method to retrieve data and insert it into the database, how can I test this method in Junit since this method retrieve nothing? Can anyone provide me some example of this situation?
```
public static void method(){
User user = getUser();
try {
... |
2018/03/04 | 747 | 2,044 | <issue_start>username_0: How can I select a button with the following HTML:
```
[Kaufen 210,00Β β¬](#)
```
The following is on
I want to click on the black 'Kaufen' button. I have tried the following:
```
buy = ui.WebDriverWait(self.driver, 30).until(EC.presence_of_element_located((By.XPATH, '//*[@id="j_c29"]/div[1]/... |
2018/03/04 | 1,629 | 6,667 | <issue_start>username_0: I've been testing out a few sample weather app code projects looking for a 3 to 5 day forecast one that easily compiles in android studio. I can't find a simple one that is at my level of understanding yet but working with one that might help. (If anyone knows of a simple up to date weather for... |
2018/03/04 | 1,303 | 5,572 | <issue_start>username_0: I am using Firebase for the database of my Android application. I need to look at all triplets of people in my database and assign a score to each group, so I can find the group with the greatest score. So what I had in mind was something like this pseudocode:
```
for person1 in People {
f... |
2018/03/04 | 974 | 2,404 | <issue_start>username_0: It seems like Lua addition is not working when dealing with large numbers (64bit values). I have tried to compute the following:
```
71776119061217280 + 281474976710655
```
or in hexa
```
0x00FFFFFFFFFFFFβ¬
+ 0xβFF000000000000
```
**Lua 5.1**, **5.2**, and **5.3** all return
```
7205759... |
2018/03/04 | 694 | 1,774 | <issue_start>username_0: I have added some URLs in my Django API for posting deleting and putting data and I don't know how to authenticate users first and give some of them to use these methods and ban some of them<issue_comment>username_1: What subversion of Lua `5.3`? As on a linux (amd64) machine, I get:
```
$ lu... |
2018/03/04 | 711 | 2,470 | <issue_start>username_0: I'm trying to load a gif into `WebView`, it's working ok, but the problem is that I see this :
[](https://i.stack.imgur.com/lKVCg.png)
The problem is that I can scroll and I'm not seeing the .gif completly in the `WebView`.
... |
2018/03/04 | 3,730 | 11,242 | <issue_start>username_0: I am trying to plot in 3D a polytope defined by a set of inequalities. Essentially, I try to reproduce the functionality of this matlab [plotregion](https://www.mathworks.com/matlabcentral/fileexchange/9261-plot-2d-3d-region?focused=5143921&tab=function) library in matplotlib.
My approach is t... |
2018/03/04 | 1,146 | 4,154 | <issue_start>username_0: So I spent the last hour or so trying to write up an effecient haskell function that checks if a number is prime or not. I came up with this algorithm that I'm rather happy with:
```
prime :: Int -> Bool
prime x
| x == 1 = False
| x == 2 = True
| x == 3 = True
| x `mod` 2 == 0 ... |
2018/03/04 | 658 | 2,222 | <issue_start>username_0: I am trying to build a simple python script that does one thing right now: it finds the process id of a process given it's PID. I have looked on here and found many different resources, but none that quite fit what I need. The most helpful is [this one](https://stackoverflow.com/questions/26688... |
2018/03/04 | 2,244 | 5,930 | <issue_start>username_0: Im expecting the `arg` param to have inferred type from parent class
```
export abstract class IEngineClas {
abstract viewer(arg: string): boolean
}
export class MyClass extends IEngineClas {
viewer(arg) {
return true
}
}
```
However in practice compiler complains that `arg` has i... |
2018/03/04 | 2,378 | 6,313 | <issue_start>username_0: I'm trying to achieve the following:
I want to check if an artist already exists in the hash and if so, to associate the entered verse with the specified artist, like this.
```
hash = [{verse: ['dust in the wind', 'hold on'], artist: kansas, genre: rock}]
```
I tried something like this, ... |
2018/03/04 | 748 | 2,860 | <issue_start>username_0: I have LINUX Mint 18.3 KDE 64-bit, with Linux 4.10.0-38-generic. Unfortunately after some installing of python packages and update && upgrade, when I am restarting my systems stops after grub on black screen and nothing happens. I am able to enter in recovery mode and tryed to make update && up... |
2018/03/04 | 754 | 2,175 | <issue_start>username_0: I have some letters in an array, only 8 of them, starting at A and ending at H. Using a typical random number generator, I have found that A and H are very rarely generated. How can I make this more inclusive for these two bounds?
```js
var allowedLetters = ["A","B","C","D","E","F","G","H"];
... |
2018/03/04 | 1,047 | 3,167 | <issue_start>username_0: I am programming in python. I have the coordinate of the center of the object in a binary image. How can I define a bounding box area around the object in python, which starts from left-top most nonzero point and ends in right-bottom most point?
I want to consider a rectangle area around the ... |
2018/03/04 | 2,673 | 7,182 | <issue_start>username_0: This is my first scalability-related question.
In order to simplify the problem, I will use a bingo app idea:
We have a bingo application. Each users has a ticket with 15 random numbers out of 90. Each week the bingo is held to find the winner. Numbers are drawn **live** until there is a winn... |
2018/03/04 | 444 | 1,446 | <issue_start>username_0: Suppose I have the following Shiny ui code:
```
fluidRow(
column(
width=4
),
column(
width=8
)
)
```
How can I draw the right border of the first column?<issue_comment>username_1: You can add CSS to the column using the `style` argument. So one way to do this would be:
```
... |
2018/03/04 | 1,108 | 4,090 | <issue_start>username_0: When you want to handle command-line arguments, you can define the `main` function like the below.
```
int main(int argc, char **argv) { ... }
```
or
```
int main(int argc, char *argv[]) { ... }
```
In many websites, it is explained that the first `argv` is a pointer to a pointer, and the... |
2018/03/04 | 579 | 2,121 | <issue_start>username_0: I have a rake task which stores images in `ActiveStorage`. In the same rake task I need the attachment URL of those images.
In a normal Rails context, I'd use `url_for(my_attachment)`. That helper is not available in a rake task though.
I tried to include the route helper:
```
task my_task: ... |
2018/03/04 | 510 | 1,593 | <issue_start>username_0: I've a lot of trouble with this sample of code here... I'm sure it is a beginner question but I've no idea what is wrong...
I want to do some calculations with the values in the array I got from a range but I cannot get the elements of the array, only the complete array...
```
var myarray = ... |
2018/03/04 | 626 | 2,224 | <issue_start>username_0: <http://en.cppreference.com/w/cpp/utility/to_chars>
Reference does not say anything about that, but the example is (for me) clearly using a null-terminated string, otherwise how could it know where to end, since `std::array::data` returns only a pointer.
```
#include
#include
#include
int... |
2018/03/04 | 594 | 2,195 | <issue_start>username_0: I am making a distributed system that is like Twitter where users can follow other users. I am using a mysql server database to store the data.
The tables that I have are:
* User (id, name)
* Follower (id, followerId)
* Timeline (id, timeStamp, content)
I would like to get a list of followe... |
2018/03/04 | 786 | 2,413 | <issue_start>username_0: I start with a data frame we will call DF1:
```
Team Stat1 Stat2 Stat3 Stat4 Pod
Georgia 1 3 3 6 1
Nevada 2 2 2 7 2
Clemson 3 1 2 4 2
Texas 5 4... |
2018/03/04 | 408 | 1,370 | <issue_start>username_0: Is there a way to use jsonpath in mongodb 3.4/3.6? Sample is shown below , as in reference link [JSON path parent object, or equivalent MongoDB query](https://stackoverflow.com/questions/16909739/json-path-parent-object-or-equivalent-mongodb-query) :
```
var t1 = db.runCommand({aggregate : 'n... |
2018/03/04 | 968 | 3,476 | <issue_start>username_0: Can we change the default Build behavior of Android Studio from *Constraint* to *Relative* Layout?
**Problem:** Sometimes it takes more time to Clean/Rebuild my project. And I never use Constraint Layout, so I want to set the build behavior of Android Studio from `Constraint Layout` to `Relati... |
2018/03/04 | 1,009 | 3,570 | <issue_start>username_0: I am using using subquery to get popular products that has been sold in the `order_products` table.
```
SELECT
products.name,
(SELECT count(product_id) FROM order_products WHERE order_products.product_id = products.id) as total FROM products
ORDER BY total DESC LIMIT 10
```
This que... |
2018/03/04 | 585 | 1,724 | <issue_start>username_0: I wondering how can I `addClass` to the furthest parent from `li`, I tried this and it working fine but I'm feel it's a bad logic, isn't it?
```js
$('li').each(function() {
$(this).click(function() {
$(this).parent().parent().parent().parent().parent().parent().addClass('myClass');
... |
2018/03/04 | 594 | 2,026 | <issue_start>username_0: Working in a Wordpress post, I want to add two images side-by-side and keep the block of images centered (one is aligned left, the other right). (That on its own I've got.)
When the page size is smaller, I want the images to stack. (That I've got.)
But the images aren't then centered in the p... |
2018/03/04 | 416 | 1,556 | <issue_start>username_0: I'am trying to import a class but the Eclipse doesn't recognize the downloaded libraries. I have tried to **Update** my Maven's project via **Maven-> Update Project** it did not help. I tried to remove all dependencies except selenium-java and it did not help as well as redownloading the projec... |
2018/03/04 | 789 | 2,187 | <issue_start>username_0: I have a **data frame**:
```
DF <- data.frame(Value = c("AB", "BC", "CD", "DE", "EF", "FG", "GH", "HI", "IJ", "JK", "KL", "LM"),
ID = c(1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1))
```
My question: I would like to create a **new column** that includes a (binary) **random number**... |
2018/03/04 | 250 | 863 | <issue_start>username_0: ```
select sum(cast(mmax as float)
from table
```
`mmax` is of datatype `nvarchar` and the value is
string,int,decimal, value
I trying to sum of like value 17.50,35.00.
I am avoiding string value in where clause
But not solved this problem
Error is thrown<issue_comment>username_1: One... |
2018/03/04 | 231 | 943 | <issue_start>username_0: I am using FB Customer Chat plugin on my site and have set the minized option to true. It was working fine and now all of a sudden the chat window appears by default and I am not able to close the chat window. This is causing my content to be hidden behind the chat window.
Below is the code f... |
2018/03/04 | 819 | 3,288 | <issue_start>username_0: I have successfully coded a solitaire game on Java, and now I have been asked to implement an undo/redo on top of my design.
My plan was to store a list or stack of moves the user executed, and if the user wants to undo, I would 1. check if the user can undo (ie. there are moves in the list or... |
2018/03/04 | 688 | 2,684 | <issue_start>username_0: I have a BFM in my tx agent (without a sequence driver).
```
extend uart_tx_agent_u{
uart_tx_monitor : TX uart_monitor_u is instance;
uart_tx_scb: uart_tx_scoreboard_u is instance;
when ACTIVE uart_tx_agent_u {
uart_bfm : uart_tx_bfm_u is instance;
};
};
```
When I run the ... |
2018/03/04 | 1,732 | 7,170 | <issue_start>username_0: I'm struggling with getting additional scope information from the Google PHP API. I'm using it in conjunction with JavaScript to get an access token (not sure if this is the correct way, but it works for me)
I have a Google sign up button on my page that's connected to the following function. ... |
2018/03/04 | 1,279 | 3,947 | <issue_start>username_0: I am trying to create an image with my binary file (written in Rust) but I get different errors. This is my `Dockerfile`:
```
FROM scratch
COPY binary /
COPY .env /
COPY cert.pem /etc/ssl/
ENV RUST_BACKTRACE 1
CMD /binary
```
Building finishes fine but when I try to run it I get this:
```no... |
2018/03/04 | 2,702 | 7,171 | <issue_start>username_0: I have three statements. If any of them returns *anything* I want that to be returned and the query to exit.
```
select *
from connexion
where origin = 'Stockholm'
and destination = 'Berlin';
-- IF IT RETURNS ONE OR MORE ROWS THEN RETURN ROW/ROWS AND EXIT, ELSE GO TO STATEMENT BELOW
se... |
2018/03/04 | 735 | 2,640 | <issue_start>username_0: I am dealing with text mining in R, with `tm` library. I know how to extract keywords but I would like to extract association of words that are frequently "together" in the document (for example get the expression `proof of concept` or `hydraulic jack`).
I know there is `findAssocs`function, ... |
2018/03/04 | 4,139 | 10,287 | <issue_start>username_0: When I was little, I played the next game with my cousins:
"Zero in the car's license plates": by using the numbers in the car's license plate numbers and using the elementary operations (sum, subtraction, product and division) once each, you had to find an order that equaled 0.
For example,... |
2018/03/04 | 1,747 | 5,619 | <issue_start>username_0: I am fairly new at coding in C. I am trying to get the project below to run but it says my program has stopped working after I enter the third input. I am not confident that my choice of using a while loop with all or booleans is the correct choice of approaching this. I almost feel like there ... |
2018/03/04 | 478 | 1,611 | <issue_start>username_0: I have the following element:
```
Some text
==========
```
and in a code.js the following function:
```
document.addEventListener('click', function(e) {
target = e.target;
}, false);
```
I need to obtain the string "someId" in msgId property.
Something like target.msgId
```
document... |
2018/03/04 | 418 | 1,432 | <issue_start>username_0: HTML:
```
Your Name is:
Bob
David
Jack
.
.
.
.
This is the final question.
Yes
No
```
There are about 10 of these `div`s (questions) which are created on the go (getting an array from the server).
So, my question is how I can get the values of checkboxes that are checked?
He... |
2018/03/04 | 1,912 | 5,124 | <issue_start>username_0: I am quite new to ggplot2 and it's been challenging to reproduce a similar chart in Excel. I almost got it to work, but now I need to figure out a way to make the geom\_point/line's legend key (3rd item in the legend) to not show the box around it.
Note: I know there are [answers](https://stac... |
2018/03/04 | 715 | 2,631 | <issue_start>username_0: I have a buch of `checkbox` in different containers like below:
```js
$("input:checkbox").click(function() {
var url = "http://example.com/results?&"
var flag = false;
var $box = $(this);
var $facet = $box.val();
var $name = $box.attr("name");
var group = "input:checkbox['" +... |
2018/03/04 | 465 | 1,894 | <issue_start>username_0: What are the best practices to avoid network latency between GCP server and unix server. My client application, which is on linux, is accessing GCP end point, but facing network latency. How to avoid it.<issue_comment>username_1: In your code you have
```
$("#pruebita").not(this).attr("checke... |
2018/03/04 | 459 | 1,653 | <issue_start>username_0: Currently I'm trying to load a PDF using base64 data with this React component [react-pdf-js](https://www.npmjs.com/package/react-pdf-js).
I am currently recieving a `PDFDocument: stream must have data` error when trying to load the PDF in the following manner:
```
```
I have had success ... |
2018/03/04 | 1,177 | 3,687 | <issue_start>username_0: I'm trying to learn Flutter by making a clone of WhatsApp. I've run into a problem with displaying messages in a speech bubble format like in WhatsApp.
I've tried to look at Google's tutorials, but their tutorial for a messenger only uses straight up rows.
Can anyone point me in the right di... |
2018/03/04 | 905 | 2,492 | <issue_start>username_0: First, I have read the PL/SQL documentation repeatedly, no help. Second, I have googled for hours (usually being led here) and still cannot figure this out.
I have created an index table, which seems to have been successful - at least it did not throw any errors...
```
DECLARE
CURSOR cur_emp... |