date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/24 | 1,048 | 3,604 | <issue_start>username_0: I have made 2 buttons one for increment and another for decrement. When I click on minus button it should not display negative values but in my case when I click on minus button (initially value zero ) it shows -1 and again on click it shows zero why is this happening when I click on minus butt... |
2018/02/24 | 845 | 2,764 | <issue_start>username_0: I am beginner in OpenCart and customizing a theme, I want to change the target link of site Menu, for example If a blow Image is my menu:
[](https://i.stack.imgur.com/BSuRi.png)
I want to change target link of *Bedroom menu* to *#cmsblock-22*,... |
2018/02/24 | 946 | 3,029 | <issue_start>username_0: First query:
```
select
pid, month(dates) as month, sum(quan) as quan
from
purchase
where
month(dates) between 1 and 12
and pid = 4
group by
pid, month(dates)
```
Second query:
```
select
pid, month(dates) as months, sum(quan) as TotalAmount
from
inwa... |
2018/02/24 | 737 | 2,083 | <issue_start>username_0: I have a pandas dataframe that contains strings and numbers:
```
> print(f1)
0 1
0 Hi 0
1 5 Bye
2 6 9
3 7 10
> print(type(f1))
```
I want to set all the string values to 0. That is, I wish to get the following output:
```
0 1
0 0 0
1 5 0
2 6 9
... |
2018/02/24 | 715 | 2,460 | <issue_start>username_0: I am trying to learn Hugo using a Go debugger called `dlv`. And I am pretty stuck. After:
```
go get -v github.com/gohugoio/hugo
cd $GOPATH/src/github.com/gohugoio/hugo
go build -gcflags="-N -l"
dlv exec ./hugo -- -s /path/to/the/projectdir
```
This hangs. Pressing Ctrl+C runs `hugo` as nor... |
2018/02/24 | 479 | 1,705 | <issue_start>username_0: I am new to JavaScript and reading a [book](http://eloquentjavascript.net/03_functions.html) and in recursive chapter, there is an example as follow
```
function findSolution(target) {
function find(current, history) {
if (current == target)
return history;
else if (current > t... |
2018/02/24 | 689 | 2,578 | <issue_start>username_0: Is there a method to change the width (or height) of an open Angular Material 2 dialog?
The closest I got was getting a reference to the dialog and calling the `updateSize` method from within the dialog. Though I don't think the dialog reference method works in this way.
I use a dialog to cap... |
2018/02/24 | 326 | 1,086 | <issue_start>username_0: Is there any way to do this, such as using lambdas in some fashion? If I have a Dictionary, is it possible to shorten my code so that TryGetValue puts out Foo.a instead of just returning the object?
Right now it feels a bit long-winded, with eg "a" as int:
```
int a;
Foo bar;
if(!dict.TryGetV... |
2018/02/24 | 4,298 | 12,374 | <issue_start>username_0: I'm trying to remove duplicate file paths from a semicolon delimited strings using a regular expression. Order of the final paths does not matter.
Example Input:
```
C:\Users\user\Desktop\TESTING\path1;C:\Users\user\Desktop\TESTING\path5;C:\Users\user\Desktop\TESTING\path1;C:\Users\user\Deskt... |
2018/02/24 | 715 | 2,570 | <issue_start>username_0: I am learning C++, this may be a silly question.
I want to create a class for common type definitons and using it in many cpp files by inluding.
Header is "CommonTypesCls.h":
```
class CommonTypesCls
{
public:
typedef unsigned int UINT32;
typedef int INT32;
}
```
And I want to... |
2018/02/24 | 396 | 1,558 | <issue_start>username_0: Error Message:
>
> Configuration doesn't target device.
>
> Your configuration doesn't target a valid iOS device
>
>
>
I want to publish an iPhone app to App Store. So, I tried to perform Archive for Publish an iPhone App by selecting at the top main menu bar:
Build > Archive for Publ... |
2018/02/24 | 575 | 2,042 | <issue_start>username_0: ```
select Preferred_supplier,VENDOR_NAME,VENDOR_SITE_CODE
from ( select SUPPLIER_ID,SUPPLIER_SITE_ID,
VENDOR_NAME, VENDOR_SITE_CODE ,Approved_supplier,Preferred_supplier
from xx_po_vendorssites_v
order by (case Approved_supplier='YES' and Preferred_supplier ... |
2018/02/24 | 532 | 1,781 | <issue_start>username_0: I'm writing a query to find an exact duplicate of the order by its pruducts IDs.
The conditions to find a duplicate are:
1) Order has the same product count.
2) All product IDs are the same.
Tried something like this, but it didn't work:
```
SELECT
order.*,
count(same_products.id),
c... |
2018/02/24 | 518 | 1,733 | <issue_start>username_0: [](https://i.stack.imgur.com/4ZX9T.png)
I can't make my featured images responsive despite internet advice about max-width:100% or auto.
My site is vladmakeev.net
Tablets and phones are shown cropped image. I want full image,... |
2018/02/24 | 456 | 1,814 | <issue_start>username_0: I'm looking reset *application badge number* in **react-native-push-notification** when the user opens the app but can't find the method anywhere in the docs, any idea?<issue_comment>username_1: <https://facebook.github.io/react-native/docs/pushnotificationios.html#setapplicationiconbadgenumber... |
2018/02/24 | 1,828 | 7,267 | <issue_start>username_0: Assuming there is a simple class `Student`
```
@Data @NoArgsConstructor @AllArgsConstructor
public class Student {
private Integer age;
private String name;
}
```
Add a logging aspect With Spring AOP in aop.xml
```
```
excluding aspects fields
```
public class ExcludeAspects impl... |
2018/02/24 | 1,294 | 5,089 | <issue_start>username_0: I've been browsing around quite a lot on the matter and got something to work for my problem, but was wondering if there was a better solution.
In particular, I need to get all links to pdf files from a webpage - say, for example: <http://stock.walmart.com/investors/financial-information/annua... |
2018/02/24 | 729 | 2,586 | <issue_start>username_0: I would like to check if the mark I selected and input value are the same or not, but the alert in js works even though when they are same. Here is my code! Thanks for your support!
**HTML**
```
o
x
```
**JS**
```
var mark = document.getElementById("mark").value;
var block = document.g... |
2018/02/24 | 426 | 1,450 | <issue_start>username_0: I have url "SampleProject/profile/aA12". How can I get the value of the id from my rewritten URL using javascript? I want to get the "aA12" value.
Im using htaccess rewrite to rewrite my URL. Im new in rewritting url's. Any help will be appreciated. More powers and thank you.<issue_comment>use... |
2018/02/24 | 947 | 3,430 | <issue_start>username_0: i have poor eng, Sorry for that.
i'll do my best for my situation.
i've tried to make SignUpForm using regular expression
The issue is that when i handle if statement using the regular expression
result is true at first, but after that, become false. i guess
below is my code(javascript)
``... |
2018/02/24 | 268 | 1,020 | <issue_start>username_0: I need to use a node package in React Native.
But it requires a minor fixes for React Native bundling.
So I want to do something like this.
```
1. Clone the node package
2. Do minor updates for React Native(dependencies, update some codes for React Native)
3. Publish
```
Is this possible?
... |
2018/02/24 | 382 | 1,406 | <issue_start>username_0: I have a class `Person` which has `isChild` attribute along with other attributes
```
class Person {
boolean isChild;
//Other attributes.
}
```
Now I have a method with takes a list of `Person` as input. My output should also return a list, but the list should have all the `Person` objec... |
2018/02/24 | 780 | 1,972 | <issue_start>username_0: ```
import itertools
data1 =[100,80,80,80,80,80,90,90,85,85,85]
keys = []
groups = []
sorted_data1 = sorted(data1)
for k,g in itertools.groupby(sorted_data1):
#print('key: ',k,' group: ',list(g))
keys.append(k)
groups.append(list(g))
print('keys: ', keys)
print('Groups: ', groups... |
2018/02/24 | 601 | 1,860 | <issue_start>username_0: I am trying to get a loop like this. Suppose i have 20 rows in table `test` and i need to get its id values inside a loop like below.
```
1 // first row id
2 // second row id
3 // third row id
4 // fourth row id
..... ....upto all ids in the row
```
What i am tried to do is
S... |
2018/02/24 | 981 | 3,350 | <issue_start>username_0: I'm designing a page which needs to post a set of IDs to a php script.
There is a table with a number of Items (with associated images) to select. Old school would be to put a check box next to each Item and post the form, then loop through the form post with php.
But the design is requesting... |
2018/02/24 | 1,286 | 4,885 | <issue_start>username_0: I have made 2 buttons and one input field. Buttons (+/-) are to increment and decrement the counter. Initially the input field contents the date i.e `data.available_slots[0].date`
When I increment by clicking on + button the date changes dynamically from `Wed, Dec 06` to `Thur, Dec07` to `Fri... |
2018/02/24 | 915 | 3,019 | <issue_start>username_0: I am trying to build a Kafka Streams Application that uses lambda expressions.
My maven build configuration is *mvn clean install*
When I do RunAs > Maven build, I get the following error:
```
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[... |
2018/02/24 | 662 | 2,473 | <issue_start>username_0: I am looking for a way to get a boolean value from a string.
I have a string, stored in a database, that is a condition to be tested with.
suppose the string = "[number] < 10000"
In my code I then plan to replace [number] with a actual number so the string would become "100 < 10000".
Is there... |
2018/02/24 | 726 | 2,441 | <issue_start>username_0: I have table and table have loop for call values of my field...
problem is everytime I set conditional on the `|` with `php switch` and everytime value is empty `|` is hide and my table is deform and disassemble
how can I print `|` anyway and print value just everytime values is not empty?
... |
2018/02/24 | 1,487 | 5,282 | <issue_start>username_0: I use the lib
<https://github.com/chrisbanes/PhotoView>
At start I have Bitmap and x,y point on the Bitmap.
**How to scale and zoom image to x,y coordinates of the bitmap?**
```
int bitmapWidth = bitmap.getWidth();//2418
int bitmapHeight = bitmap.getHeight();//1889
float x = 1209f;
float y ... |
2018/02/24 | 452 | 1,691 | <issue_start>username_0: Evening, I have a calendar collection.
The cells have some rounded views shown incorrectly at the first time, but when they are reloaded they are shown correctly.
I know that the issue is that at the first time the cell doesn't know the right size of the frame.
What I've tried:
1- call the r... |
2018/02/24 | 1,037 | 4,053 | <issue_start>username_0: I have just installed Visual Studio Code together with the Java Extension Pack. However, when I opened my first file and started typing, the text I type appears after a delay - reaching up even one second.
I have a hunch that it might be due to the number of processes going behind the edito... |
2018/02/24 | 988 | 3,037 | <issue_start>username_0: This is an update to some outdated or different questions like:
* [Canvas drawings, like lines, are blurry](https://stackoverflow.com/questions/8696631/canvas-drawings-like-lines-are-blurry)
* [How do I fix blurry shape edges in HTML5 canvas?](https://stackoverflow.com/questions/42588501/how-d... |
2018/02/24 | 810 | 2,713 | <issue_start>username_0: I m still trying to learn NodeJs but I came across this path thing I encountered in Express. When I create an app using Express I noticed that in **app.js** I have these lines of code `var index = require('./routes/index');
var users = require('./routes/users');
app.use('/', index);
app.use('/u... |
2018/02/24 | 1,785 | 5,347 | <issue_start>username_0: Since two days I am trying to start a new project in Angular 5 and it look like I have some settings errors that stops my project to create the node\_modules folder, here are the list of errors I have got when I tried differents commands (I tried all of them with sudo also).
I already tried thi... |
2018/02/24 | 855 | 2,526 | <issue_start>username_0: I have an F5 bigip.conf text file in which I want to change the route domain from 701 to 703 for all lines showing "10.166.201." The route domain is represented by %701
```
10.166.201.10%701
10.166.201.15%701
10.166.201.117%701
```
I am able to do this with bash but the problem is that the "... |
2018/02/24 | 869 | 2,922 | <issue_start>username_0: The problem is the same as described here [Laravel Excel Download using Controller](https://stackoverflow.com/questions/31808416/laravel-excel-download-using-controller)
But I just can not believe that there is no method to deal with Excel downloads in Laravel without using another resource. I... |
2018/02/24 | 717 | 2,218 | <issue_start>username_0: I am trying to extract `22 chocolates` from the following string:
```
SOMETEXT for 2 FFXX. Another 22 chocolates & 45 chamkila.
```
using regex `\\d+\\s*(chocolates.|chocolate.)`. I used :
```
grep("\\d+\\s*(chocolates.|chocolate.)",s)
```
but it does not give the string `22 chocolates... |
2018/02/24 | 918 | 3,278 | <issue_start>username_0: I have developed RESTful web service which is running fine I have used one POJO and one service class that is shown below but the issue is that in the output it is showing extra $ please advise how to correct that right now the output is coming as
```
{
"student":{
"@id":"10",
"... |
2018/02/24 | 439 | 1,884 | <issue_start>username_0: So I have been working on a project to mess around with some of my coding friends. I am trying to make an AppleScript application that tells Chrome to go back a page when run and I want it to run all the time. I have had to base it off of whether or not chrome has an active window open or not, ... |
2018/02/24 | 555 | 2,073 | <issue_start>username_0: I have an Exercise to querySelect the image from the HTML and change it on mouseover , I did that correctly like this :
```
var img = document.querySelector("#image1").addEventListener('mouseover' ,function (){
this.src="images/image1_2.jpg")}
```
The question is that I have an advanced exer... |
2018/02/24 | 1,035 | 3,914 | <issue_start>username_0: I am using [Google Colaboratory](https://colab.research.google.com/notebook) & github.
I create a new Google Colab notebook, and I clone my github project into it using a simple `!git clone` in the notebook.
Now, I have a Jupyter notebook in my github project that I need to run on Google Co... |
2018/02/24 | 1,173 | 4,387 | <issue_start>username_0: So I'm using Element Vue, I need to get access to a method or to the value of the
acceptedDates
```
export default {
data() {
return {
acceptedDates: [],
pickerOptions1: {
disabledDate(time) {
return moment(time).isBetween(this.acceptedDates[0]... |
2018/02/24 | 1,663 | 4,258 | <issue_start>username_0: I am new on pandas and for now i don't get how to arrange my time serie, take a look at it :
```
date & time of connection
19/06/2017 12:39
19/06/2017 12:40
19/06/2017 13:11
20/06/2017 12:02
20/06/2017 12:04
21/06/2017 09:32
21/06/2017 18:23
21/06/2017 18:51
21/06/2017 19:08
21/06/2017 19:50
2... |
2018/02/24 | 347 | 1,433 | <issue_start>username_0: I have a project in which I would like to store data which has nothing to do with application business logic (nor have anything to do with table relationships such as: 1 to many, many to many, 1 to 1 and so on) but instead it is more of an Application settings.
Things like:
```
Color of the T... |
2018/02/24 | 873 | 3,119 | <issue_start>username_0: I use laravel 5.6
I want to upload files on 2 folders at once. So if the image uploaded successfully in the product folder, I want the image uploaded in the thumbs folder as well
I try like this :
```
public function uploadImage($file)
{
if($file) {
$fileName = str_random(40)... |
2018/02/24 | 987 | 2,557 | <issue_start>username_0: I am trying to combine two FACETED ggplot objects with `coord_equal()` using `cowplot::plot_grid()` or `egg::ggarrange()` and vertically align them.
The `egg::ggarrange()` approach works fine for UNFACETED plots, with the solution posted [here](https://stackoverflow.com/questions/48924219/vert... |
2018/02/24 | 1,215 | 2,340 | <issue_start>username_0: I have a lot of values in a mysql table at the same minute and i want to select the avg value to show a single value per minute:
```
DEBIT 2018-02-15 09:22:00 54.8611
DEBIT 2018-02-15 09:22:00 45.4861
DEBIT 2018-02-15 09:22:00 51.7361
DEBIT 2018-02-15 09:22:00 83.3333
DEBIT 2018-... |
2018/02/24 | 1,149 | 3,623 | <issue_start>username_0: I adding VideoView in fragment but only I get black background nothing more I tried with two codes but both doesn't work can you help me?
PS I don't need play, stop button and anything other just to show the video Here is the code that I add will be good if I can mute the audio of the video an... |
2018/02/24 | 1,016 | 4,664 | <issue_start>username_0: Let's consider a situation, where multiple services relay on data that can change any time and should be updated in each microservice roughly at the same time - for example there is a list of supported languages or some common policies that could change one day and affect many services at once.... |
2018/02/24 | 811 | 2,329 | <issue_start>username_0: Having problems displaying all rows from database using the
```
foreach($resut as $row) { echo $row['naam']; }
```
It displays only 1 row, While there's 2 rows.
How can I solve this?
Code:
```
php
include('db/configuratie.php');
$key = $_GET['key'];
$validkey = array("Test123");
if (e... |
2018/02/24 | 738 | 2,324 | <issue_start>username_0: I have the following solution now:
```
export default {
...
computed: {
products: function () {
return this.$store.getters['products/getPreview']
}
}
...
}
```
Vuex store will receive info after some delay from my backend. So at first call it will be emp... |
2018/02/24 | 795 | 2,772 | <issue_start>username_0: I'm trying to get write Controller (in asp.net core) code to handle my fineuploader requests but it keeps failing to see the request data despite whatever combination of [FromForm] / [FromBody] / "Content-Type": 'application/json' I use. Here is my uploader config in the view page:
```
var upl... |
2018/02/24 | 358 | 1,308 | <issue_start>username_0: I am trying to create a simple WebForm in Visual Studio 2017. I have a textbox and I have to catch "Leave" event on it, but these are the only events available:

I've been searching for similar questions and problems but I did not find any soluti... |
2018/02/24 | 633 | 2,245 | <issue_start>username_0: hello guys i m new to loopback, can anyone help me with this following things
when we install loopback by default we have client folder when we can place all our front end file now place all html file there and render these html file from router for eg ;-
```
var router = server.loopback.Route... |
2018/02/24 | 1,602 | 4,977 | <issue_start>username_0: I need to remove elements from a json string returned by an AJAX call.
I'm not sure how to loop through the string and remove all elements where the value i NULL.
My json looks like this.
```
[
{"ID":"27","Agility":"15","Balance":null,"Strength":"37","Physiology":"32"},
{"ID":"30","Agility... |
2018/02/24 | 1,149 | 4,590 | <issue_start>username_0: I want to render a component when a row is clicked in a react-table. I know i can use a subcomponent to achieve this but that doesn't allow click on the entire row. I want the subcomponent to render when the user clicks anywhere on that row. From their github page i understand that i want to ed... |
2018/02/24 | 790 | 2,134 | <issue_start>username_0: How do you add a color overlay to a video like this, as seen [here](http://sanfrancisco.themerella.com/):
[](https://i.stack.imgur.com/vDmwG.jpg)
Here is my code so far:
**HTML**
```
Your browser does not support the vid... |
2018/02/24 | 1,459 | 4,404 | <issue_start>username_0: I have several targets in the Makefile. Each target add some values to the makefile variable. For example, CFLAGS.
```
CFLAGS := 1
a: CFLAGS += 2
b: CFLAGS += 3
```
I need to write target "с" which will "see" values assigned in "a" and "b". And which, may be, add some more values.
I tried t... |
2018/02/24 | 944 | 3,177 | <issue_start>username_0: I have a method `bar(...)` that takes an argument of type `std::initializer_list`. That method calls on another method `foo(...)` that also takes an argument of type `std::initializer_list`. `foo` should be called with the same argument as `bar`, but without the first element of the initializer... |
2018/02/24 | 963 | 3,094 | <issue_start>username_0: I saved this byte array as a string in my database :
```
public static final byte[] NEW_KEY_2KTDES = {
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff,
... |
2018/02/24 | 428 | 1,698 | <issue_start>username_0: Using fancybox on desktop, it closes when clicked outside the content. Using it on a mobile device, it closes ONLY when the content is slided up or down (it doesn't react to clicking outside the content).
Is it possible (and how) to close fancybox on a mobile device just by clicking outside th... |
2018/02/24 | 1,398 | 4,495 | <issue_start>username_0: Task: It is necessary to calculate the user's age, in days, hours, minutes. Enter a date of birth and today's date.
It seems like, age calculates correctly, but in days there is not the right figure. How to calculate the difference between dates in days?
```
import java.util.Scanner;
class S... |
2018/02/24 | 897 | 3,463 | <issue_start>username_0: I have one entity in room
```
@Entity(foreignKeys ={
@ForeignKey(entity = Label.class, parentColumns = "_id", childColumns = "labelId", onDelete = CASCADE),
@ForeignKey(entity = Task.class, parentColumns = "_id", childColumns = "taskId", onDelete = CASCADE)
})
public class Labe... |
2018/02/24 | 1,967 | 6,852 | <issue_start>username_0: I am new to iOS development and I recently got stucked with a problem where I am not able to set text on both sides of a button. Also I wish to add multi-line text in a button (as shown below). I have gone through lot of answers but none of them satisfied my requirement.[
Then I got this error:
```
D:\Software\OpenOCD-20170821\bin\openocd.exe -c "tcl_port disabled" -s D:\Software\OpenOCD-2017... |
2018/02/24 | 1,695 | 5,896 | <issue_start>username_0: I have a code which is validating if all form fields are populated with data, but my form inputs are displayed dynamically based on `this.id_company` condition. As you can see if `this.is_company` equals `TRUE` then validation should also check if user has inserted `this.taxNumber` and `this.co... |
2018/02/24 | 721 | 2,988 | <issue_start>username_0: I have a class 'Image' which has 3 methods `crop()` , `resize()` and `convert()` .
Does it violate Single Responsibility Principle ?
Should I split them into different class ?
```
class Image{
public function crop() {}
public function resize() {}
public function convert() {}
... |
2018/02/24 | 482 | 1,953 | <issue_start>username_0: How to register a database server like a "PostgreSQL" or any other sql database with eureka server and use it in spring boot micro service?<issue_comment>username_1: You need to write a simple microservice, which has access to the database and expose endpoints to the repositories.
>
> For se... |
2018/02/24 | 878 | 2,971 | <issue_start>username_0: I tried to follow [this.](https://nlp.stanford.edu/projects/glove/)
But some how I wasted a lot of time ending up with nothing useful.
I just want to train a `GloVe` model on my own corpus (~900Mb corpus.txt file).
I downloaded the files provided in the link above and compiled it using `c... |
2018/02/24 | 786 | 2,686 | <issue_start>username_0: I am doing following code.
```
var data=[];
sequelize.query("SELECT `name`,`mobile` FROM `emp_table` LIMIT 0,50",function(result){
data['main']=result;
});
console.log(data['main']); // returns 'undefined'
```
I have used callback hell method. But I think this is not a right way.
Please... |
2018/02/24 | 436 | 1,658 | <issue_start>username_0: For a school project we are using angular v4.4.6, ng2-translate for translations and ngx-quill@1.6.0 for text editor. When I use the placeholder attribute like so:
Then my placeholder takes the value of the current language, but when I choose a new language my placeholder doesn't change.
I ha... |
2018/02/24 | 1,133 | 4,051 | <issue_start>username_0: Excuse me, i'm new in learning about Laravel and I have a problem about show data value from form input.
I have create.blade.php :
```
@extends('layouts.master')
@section('content')
**Create an account**
=====================
##### Welcome to Konoha Village
{{ csrf\_field() }}
@if(iss... |
2018/02/24 | 1,261 | 4,213 | <issue_start>username_0: I have a `json` request that returns an array .
```
$json = $api->get(100);
```
This returns an array that i can do for each loop etc on it. However in case I don't have internet connection , I want to save a sample of the array that I instantiate into a variable.
**basically :**
```
$of... |
2018/02/24 | 1,180 | 4,496 | <issue_start>username_0: Long story short, I need to write a data analysing tool using mainly OOP principles. I'm not quite a beginner at python but still not the best. I wrote a function which returned true or false value based on what the user inputted (below):
```
def secondary_selection():
"""This prints the o... |
2018/02/24 | 1,174 | 4,297 | <issue_start>username_0: I am building a simple program using Python3 on MacOS, to scrap all the lyrics of an artist in one single variable. Although I am able to correctly iterate through different URL's (each Url is a song from this artist) and have the output that I want being printed, I am struggling to be able to ... |
2018/02/24 | 1,732 | 5,053 | <issue_start>username_0: I'd like to draw some kind of triangle in the corner of a div. Because I don't want to use "px" I'd like to achieve the same result also with percentage values.
This is what it should looks like:
[](https://i.stack.imgur.com/DI8KN.png)
```css
.conta... |
2018/02/24 | 527 | 1,781 | <issue_start>username_0: My code starts with the following:
```
from module import *
```
How can I get a list of all `submodules` imported from this module.
For example module has:
```
module.submodule
module.submodule2
module.anothersubmodule
```
I want to get after `from module import *`:
```
[submodule, subm... |
2018/02/24 | 529 | 1,473 | <issue_start>username_0: I am trying to create a List of List of Integers, and I wanted to do it "inline" without using .Add, but it doesnt work, why?
```
// This is working
List> lists = new List>();
lists.Add(new List() { 1, 2, 3 });
lists.Add(new List() { 4, 5, 6 });
lists.Add(new List() { 7, 8, 9 });
// This comp... |
2018/02/24 | 299 | 978 | <issue_start>username_0: Below code removes hours and days properties.What I am trying to do is remove properties which are not equal to hours and days.How do I iterate properties and check if it's not equal then remove?
```
Object.keys(allcoursetimeobject).forEach(function(key) {
//this removes hours and days.... |
2018/02/24 | 1,501 | 5,204 | <issue_start>username_0: >
>
> >
> > My build.gradle file
> >
> >
> >
>
>
>
App is working fine without adding Glide but when I add Glide for image loading it suddenly crashes on my first activity when app starts.
```
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConf... |
2018/02/24 | 484 | 1,560 | <issue_start>username_0: Recently I've made a project using python, though I got confused when I tested it out.
I use x.split to seperate parts of text and then make it go to the next line. Here's what i'm dealing with:
```
list = [x.split(':') for x in open(path).read().split('\n')]
```
path = variable that gets t... |
2018/02/24 | 1,628 | 6,439 | <issue_start>username_0: in my app i want to change to selected tab's icon.
I have a icons that selected and their unselected.
When i select a tab it replace with selected icon.
And also change tabcolor as you seen in pic. same color as selected tab's icons.
[![unselected for tab icon center][]](https://i.stack.img... |
2018/02/24 | 1,610 | 5,224 | <issue_start>username_0: i developed a website where two team can face each other. The first team create a match search `m` for a certain `value` (stack), with `status` = search. The first team has a `elo` (level) attribute.
When the second team (which have a elo of 150) will search a match, we execute the following qu... |
2018/02/24 | 606 | 2,735 | <issue_start>username_0: We are using Azure Cloud Service Worker Roles for processing certain events and most of the time the workers perform these operation:
* Get a message from service bus (this is done concurrently)
* Retrieve certain data from Document DB (2 or more `i/o` calls)
* Perform certain computation
* Up... |
2018/02/24 | 1,245 | 4,472 | <issue_start>username_0: I have confusion using types which are functions.
Let say I want to implement a dictionary, which when given a and b returns Maybe b.
```
type Dict a b = a->Maybe b
```
**How can I implement an insertion function for this dictionary?**
```
insertDict :: (Eq a) => a -> b -> (Dict a b)-> (Di... |
2018/02/24 | 487 | 1,807 | <issue_start>username_0: I have a Recycler View inside a Viewpager that is inside a NestedScroll View
My layout is as follows
```
```
I have more contents inside the RecyclerView but the view is showing items items till the AppBarLayout is being scrolled.
How to make the recycler view scroll complete list?
Below ... |
2018/02/24 | 1,233 | 4,096 | <issue_start>username_0: The standard library function `fgets()` has two downsides:
* The second parameter of the function is of type `int`
* It leaves a trailing new-line character in the supplied buffer
I have made a simple function similar to `fgets()` excluding the above-mentioned downsides, to try to improve the... |
2018/02/24 | 1,604 | 6,110 | <issue_start>username_0: To begin with I am not sure how to express the issue but I am really stuck (I read this [Why can I still make changes to this final variable?](https://stackoverflow.com/questions/27850989/why-can-i-still-make-changes-to-this-final-variable) but it didn't help). I use CodenameOne framework but I... |
2018/02/24 | 642 | 2,294 | <issue_start>username_0: Assume I've a AngularJS with a state/controller URL of:
```
url: '/myurl'
```
While in a different controller (eg. on a button press), I do a:
```
$window.location.href = '/myurl';
```
To jump to another page. However is there a "AngularJS native" way of switching between pages?<issue_com... |
2018/02/24 | 724 | 2,545 | <issue_start>username_0: For single (first input box) I'm successfully get the keyup event but it's not working for every fields I want to calculate sum of all the fields and want to show them in total.
My code for javascript is here.
```
$(document).ready(function(){
var b = 1;
$('#mon'+b).keyup(function() ... |
2018/02/24 | 448 | 1,509 | <issue_start>username_0: how in the "onClick" function, check if the click was triggered by an onClick event - by mouse or event triggered by the keyboard?
```
const onClick = () => {
console.log("onClick");
}
const onKeyDown = (e) => {
console.log("onKeyDown");
}
const Root = () => (
Name
Email
)
```
When I... |
2018/02/24 | 755 | 2,770 | <issue_start>username_0: I have a docker swarm based on raspberry pi 3. I have 3 nodes. I have created an image on my laptop and pushed that to the docker registry.
If I try to start the image on a node in the swarm using docker run it works as expected.
```
docker run -ti alexellis2/pi-sharp:0.1
```
but if i try... |
2018/02/24 | 2,170 | 7,320 | <issue_start>username_0: I want to have such an interaction with a map, that when a user selects some area on the map, an image is created from this area. I made a minimized and compiltely reproducible example in this [fiddle](http://jsfiddle.net/vicvolk/h9qb74Lg/99/). The most important part is this crop function:
``... |
2018/02/24 | 492 | 1,832 | <issue_start>username_0: What problems does the statement shown here present? What could be changed that would allow a more efficient statement than this one? I was asked in an interview.
```
SELECT
DATE, location, USER_ID
FROM
customers
WHERE
UPPER(name) = 'SATISH';
```<issue_comment>username_1: Since yo... |
2018/02/24 | 564 | 2,029 | <issue_start>username_0: I got this error and here's my code I'm trying to display a table with a linked title but I tried to use pagination and I got this error
```
foreach ($actor as $projects ) {
echo '| ['.
$projects['title'].
']('.
base_url('show_project?id='.
$projects['proj_id']).
... |
2018/02/24 | 368 | 1,341 | <issue_start>username_0: I have created a JavaFX application in order to register data on my personal computer (Windows 10) and I am looking for launching it by double clicking on its JAR.
thank you in advance for your help.
Vinz<issue_comment>username_1: well i had the same problem after i was taught to use JAVAFX a... |
2018/02/24 | 711 | 2,571 | <issue_start>username_0: I have an interesting question.
I created a hive table as shown below:
```
CREATE TABLE LEARN001(
Name STRING,
Location ARRAY,
PesonalDetails STRUCT,
FatherSonDetails MAP
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '|'
COLLECTION ITEMS TERMINATED BY ','
MAP KEYS TERMINATED B... |
2018/02/24 | 159 | 523 | <issue_start>username_0: I am new for Angular, What i need?
```
```
i am using angular2 ngfor :
In Html file :
```
```
In component file :
```
clearfix:string = '';
```
Please help me.<issue_comment>username_1: You don't need to (and shouldn't) use innerHTML. The HTML belongs to the template, not to the Typ... |
2018/02/24 | 197 | 833 | <issue_start>username_0: I am trying to build rest API's which can do cross-project management of resources.
Basically trying to build a centralized app which can manage resource in other projects. Web interface and REST API to view and manage other project resources. (CloudSQL, buckets...)
I can achieve that using C... |