date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/04 | 412 | 1,338 | <issue_start>username_0: I am new to WSO2 identity server and going through their documentation for samples. But after running the server when i hit the browser with below url
<https://localhost:9443/carbon/admin/login.jsp>
i am getting empty page only (I have added the https security exception as well).
Do i need t... |
2018/03/04 | 550 | 1,768 | <issue_start>username_0: I've tried sorted, value\_sort, all(a, b...zip), etc. but my function to check if the list is sorted, "is\_solved" will not work. The function should check if the list of marbles is sorted in ascending order. I've commented out other approaches that I've tried that haven't worked. Any help woul... |
2018/03/04 | 402 | 1,596 | <issue_start>username_0: I need to do the following
Change environment variables according to the published env. Set Set up cron jobs according to the dev. I I would like to run just 1 command line "eb deploy dev" or something similar.<issue_comment>username_1: Use `setenv`
------------
You can set environment variab... |
2018/03/04 | 787 | 2,099 | <issue_start>username_0: I got an unexpected quote in my json string that make json.loads(jstr) fails.
```
json_str = '''{"id":"9","ctime":"2018-02-13","content":"abcd: "efg.","hots":"103b","date_sms":"2017-11-22"}'''
```
So I'd like to use the regular expression to match and delete the quote inside the value of "co... |
2018/03/04 | 190 | 754 | <issue_start>username_0: I want to restrict my search only for the places within my city, any help would be highly appreciated
I'm using => FaridSafi/react-native-google-places-autocomplete
Thanks<issue_comment>username_1: Add this in your code
```
query={{
// available options: https://develope... |
2018/03/04 | 512 | 1,849 | <issue_start>username_0: I wonder if it's possable to use knockout to change target in html ()
I have all my other info in javascript so it's a big problem for me.
Here is my javascript:
```
var libraryViewModel = {
boxes: [
{
title: "Google",
src: false,
... |
2018/03/04 | 484 | 1,747 | <issue_start>username_0: I am here again with a trouble understanding the correct way of doing Laravel Relationships
I have this User Model
```
public function concessionaire()
{
return $this->hasOne('App\Concessionaire', 'meternum', 'meternum');
}
```
and Concessionaire Model
```
public function user()
{... |
2018/03/04 | 1,021 | 4,526 | <issue_start>username_0: I'm working on a MEAN project with handlebars. I originally just used the data direct from my database queries and pushed it to my handlebars views. I've had to stop this as i want to do some data transformation, I also heard it is better security practice as it strips away data you may not int... |
2018/03/04 | 1,060 | 4,292 | <issue_start>username_0: I have multiple AJAX forms on a single page but they won't submit. The forms are within a Wordpress loop and each form has a unique ID. I've defined the form ID variable so I can trigger the current form ID to submit.
JAVASCRIPT
```
jQuery(document).ready(function ($) {
var formID = $('fo... |
2018/03/04 | 695 | 2,322 | <issue_start>username_0: How does the \* operator work in this example, and why does it work?
```
int *p, x, y;
x = 5;
p = &x // stores the address of x in p;
y = *p; // the * operator gets the value stored at the address stored in p. Now y is 5;
*p = 0; // why does this work? Shouldn't it be as writing 5 = 0? since t... |
2018/03/04 | 346 | 1,193 | <issue_start>username_0: Laravel 5.6 , model name is not found in helper class (N:B: helper class is located in App\Helpers\Helper.php)
<issue_comment>username_1: You need to add namespace.
```
php
namespace App\Helpers; // <--- Add this
class Help... |
2018/03/04 | 649 | 2,250 | <issue_start>username_0: I have a jQuery statement
```
$('.searchDisplay').append('' );
```
Here if I click this icon then this function `copyEmail()` is called which takes a string as an argument and adds it to the clipboard.
But when I click on the icon I get an error in my console
>
> Uncaught SyntaxError: ... |
2018/03/04 | 775 | 2,228 | <issue_start>username_0: I have a matrix `A` with dimension of `1024 * 307200` and another matrix `B` of dimension `1024 * 50`. I am performing `L2_norm` on these two matrices in a nested for loop to get my final matrix `C` as `307200 * 50`.
You can find the code below:
```
for i in range(307200):
for l... |
2018/03/04 | 763 | 2,220 | <issue_start>username_0: I am trying to parse large log file by grep strings between 2 different patterns
example :
```
line1
line2
...
lineN
pattern1
line4
line6
pattern2
....
other lines
pattern1
line8
line9
pattern2
...
```
The lines I need to catch is the part between pattern1/pattern2 (so, `line4` through `li... |
2018/03/04 | 773 | 2,185 | <issue_start>username_0: I have a lot of values extracted from a file and depending of the value af each variable I what to change the value through a foreach loop. But somethis is not working as I expected...
there is an example:
```
$a="1"
$B="2"
$C="3"
$D=$a, $b, $c
Foreach ($Element in $C)
{
If ($Ele... |
2018/03/04 | 1,566 | 3,849 | <issue_start>username_0: I am tryig to get Minimum dates for each id, but's not giving me results.
Plz see sample data and queries I tried.
On Oracle: 11G
Table:
```
create table gr(id number, dept number, sal number, dates date);
```
Sample Data:
```
Id DEPT Sal Dates
1 10 5000 02-MAR-2018... |
2018/03/04 | 991 | 3,702 | <issue_start>username_0: I use PyCharm for my python program, and I wrote codes below:
```
def get_files_name():
root_dir = "/Volumes/NO NAME/"
for root, ds, fs in os.walk(root_dir):
for f in fs:
print(os.path.join(root_dir, f))
get_files_name()
for root, ds, fs in os.walk(other_dir):
... |
2018/03/04 | 729 | 2,443 | <issue_start>username_0: I am attempting to create a poker game, and I have a list of values which can be anything from Ace to King in a list (named "number"). In order to determine whether or not the player has a "Four of a Kind", the program needs to check if four items in the list of values are identical.
I have no ... |
2018/03/04 | 959 | 2,717 | <issue_start>username_0: I have section "Top Categories" and I am trying to make the image cards responsive but am not able to achieve it. Not sure what am I missing. I have used flexbox classes from bootstrap 4 but still it doesn't work.
Here is the [CODEPEN](https://codepen.io/HebleV/pen/RQOzKK)
Below is the code:
... |
2018/03/04 | 435 | 1,515 | <issue_start>username_0: I am working on a ReactJS & Redux app. At some point, I have a list of elements (notes), each one of them having an array (subtasks). I would like to display all the elements, and for each of them, display the content of their array.
I tried this :
```
render(){
return(
### {this.props... |
2018/03/04 | 485 | 1,908 | <issue_start>username_0: This is a general question to all who are using react navigation, following is my navigation structure
```
export const createRootNavigator = (signedIn = false) => {
return StackNavigator({
Login: screen: Login,
Welcome: screen: Welcome,
Loading: screen: Loading,
Sign... |
2018/03/04 | 462 | 1,635 | <issue_start>username_0: I want to write a multiple tables of a PostgreSQL database into an XML file.
The following script command does the job (I need mixed upper and lowercase for schema and table names):
```
SELECT table_to_xml('"DbSchema"."DbTable"', false, true, '');
```
However, I have to replace the name of ... |
2018/03/04 | 1,244 | 4,645 | <issue_start>username_0: I'm using the following code to find a one-dimensional list of unique objects in an n-dimensional list (credits to someone on StackOverflow a while ago for the approach):
```
public static List getUniqueObjectsInArray(List array) {
Integer dimension = getDimensions(array);
return getUniqueO... |
2018/03/04 | 1,091 | 4,136 | <issue_start>username_0: I have got the following code:
```
export function fetchValueFromApi(){
return function act(dispatch){
dispatch(fetchingLimit);
return fetch('https://someapi/v1/foo/bar?api_key=123456789')
.then(response =>{
console.log("response",response.json());
... |
2018/03/04 | 1,530 | 5,370 | <issue_start>username_0: We use CircleCi in our workflow in order to deploy PHP site as docker image on ElasticBeanstalk server.
The `build` jobs in CircleCi is defined as follows:
```
deploy:
docker:
- image: docker:17.05.0-ce-git
steps:
- checkout
- setup_remote_docker
- run:
... |
2018/03/04 | 444 | 1,434 | <issue_start>username_0: Is there a way to pass the Name property as paramter to the Lazy BOM Initialization?
```
public class Item
{
private Lazy \_BOM = new Lazy(); // How to pass the Name as parameter ???
public Item(string name)
{
this.Name = name;
}
public string Name { get; private set; }
public BOM ... |
2018/03/04 | 7,068 | 17,232 | <issue_start>username_0: I have a dataset that contains `510` samples for training and `127` samples for testing, each sample has `7680` features. I want to design a model to predict the height (cm)-label-from the training data. Currently, I used SVM but it provided very bad result. Could you look at my code and give m... |
2018/03/04 | 775 | 2,242 | <issue_start>username_0: I have 2 arrays that they are identical at first but the user may remove (not able to add but just remove) items from the second array. I want to find items that are in the first array but not in the second one.
I can think of several ways to do this, but as these arrays can be very large, I'm... |
2018/03/04 | 506 | 1,877 | <issue_start>username_0: Is there any functional difference between the titular approaches in defining a foreign type? The `foreign import data Foo :: Type` approach makes the intention clearer, but is that it?<issue_comment>username_1: Although they look similar on the surface, they are very different in terms of thei... |
2018/03/04 | 1,123 | 3,504 | <issue_start>username_0: I was wondering if anyone could help to come up with an elegant solution how to split a time string received from router's API of format `"4d12h33m59s"` into pieces.
The problem is that string could be dynamical size. For example, it can be `"4d12h33m59s"` or `"12h33m59s"` or `"12y14w4d12h33m5... |
2018/03/04 | 796 | 2,655 | <issue_start>username_0: Currently we have in our web site we have one slider as following.


As we can see that position of pointer(arrow of asking price) is changed based on `Fair Condition, Good Condition and Asking Price` value. Thi... |
2018/03/04 | 408 | 1,486 | <issue_start>username_0: I've copied this code and the alert box appears but it doesn't seem to close when I click on the "x", here's the code:
```
[×](#)The File will be deleted!
```
Librarys:
[this is the way I imported them](https://i.stack.imgur.com/Qtber.png)<issue_comment>username_1: Did you import **jquery,... |
2018/03/04 | 449 | 1,720 | <issue_start>username_0: When I'm running a minor upgrade via msi, installation completed successfully, and in 'Programs and Features' I can see that the version is upgraded to the new version, BUT files are not replaced (they still have the old version).
I'm running minor upgrade via msi as followed:
```
msiexec /i ... |
2018/03/04 | 599 | 2,305 | <issue_start>username_0: Error is specified below while performing the action.
Picked up `JAVA_TOOL_OPTIONS`: `-agentlib:jvmhook`
Picked up `_JAVA_OPTIONS`: `-Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\HPE\LeanFT\bin\java_shared\classes";"C:\Program Files (x86)\HPE\LeanFT\bin\java_shared\classes\jasmine.ja... |
2018/03/04 | 634 | 1,939 | <issue_start>username_0: I need to read a file encoded in iso-8859-1.
For some reason I can't get the encoding layer (as described in `PerlIO::encoding`) to work. Here's a minimal example of what I am doing.
`test.txt` contains a single pound sign encoded in iso-8859-1.
```
% iconv -f iso-8859-1 test.txt
£
% hexdum... |
2018/03/04 | 2,012 | 5,986 | <issue_start>username_0: ```html
php
session_start();
error_reporting(1);
include("database.php");
extract($_POST);
extract($_GET);
extract($_SESSION);
/*$rs=mysql_query("select * from mst_que") or die(mysql_error());
if($_SESSION[qn]mysql_num_rows($rs))
{
unset($_SESSION[qn]);
exit;
}*/
?>
Online Quiz
... |
2018/03/04 | 664 | 2,303 | <issue_start>username_0: I am trying to calculate position to catch as many objects as possible with a circle that's R=9. I can gather the best target with the most other objects nearby, but its getting harder for me to get the best position inbetween my objects. The only possibility for me sounds like i have to calcul... |
2018/03/04 | 438 | 1,437 | <issue_start>username_0: I have a number `1349.9431`. How do I print that number with 3 decimal places, 2 decimal places and 1 decimal place with only using the division (`/`) and modulus (`%`) operators only?
Whenever I try to divide or use the modulus, I get some crazy number like: `13499.430999999999`<issue_comment... |
2018/03/04 | 487 | 1,636 | <issue_start>username_0: Hi I installed Vue with the Webpack vue-cli.
I then followed this tutorial for prerendering the html:
<https://symmetrycode.com/better-vue-seo-with-prerender-spa-plugin-and-vue-cli/>
I'm certain everything should be working fine, it runs the `npm run build` first... but when I open the html ... |
2018/03/04 | 2,914 | 10,521 | <issue_start>username_0: Question:
vba Range.FindNext v Range.Find - what have I missed ?
Hi
( I am still not too familiar with posting here, so apologies if I have anything not quite right )
I’ve been doing a few VBA codes that are all variations of searching down a long column. (Often it involves looking for many... |
2018/03/04 | 1,259 | 4,387 | <issue_start>username_0: I have a Windows 10 laptop running a Windows 7 Virtual Machine. Inside the Virtual Machine, when i start the WebDriver, it gives the error *gpu\_process\_transport\_factory.cc<1009> Lost UI shared context* when it is started:
```
IWebDriver driver = new ChromeDriver() //This causes the 1009 Er... |
2018/03/04 | 753 | 2,475 | <issue_start>username_0: all throughout my project, VSCode will automatically prompt to import a type (the yellow lightbulb appearing). Except within JEST test files (within my **tests** directory), I get no lightbulb. I can manually write the import, at which point any further imports within the same file are detected... |
2018/03/04 | 781 | 2,539 | <issue_start>username_0: so I have this custom collection in my controller and I would like to use magic getters but I am getting this error:
**Property [title] does not exist on this collection instance.**
```
$test = collect( ["title" => "title", "heading" => "heading"]);
echo $test->title; // This doesnt work
echo... |
2018/03/04 | 718 | 2,400 | <issue_start>username_0: ```
void inaditrArea(Area* a, unsigned int n)
{
unsignedd int living_cells, max_living_cells, y, x;
living_cells = 0;
max_ldiving_cells = n;
srandd(time(NULL));
whided (livindg_cells <= madx_living_cells)
{d
x = (randd() % (a->xsize));
y = (rand(d) % (a->... |
2018/03/04 | 602 | 2,527 | <issue_start>username_0: So, I learn React in Depth and now I'm studing on React Fragments. As it described in official docs <https://reactjs.org/docs/fragments.html> , Fragments are very interesting way to return multiple elements. But I cannot figure out than it is better than the usual component and the transfer of ... |
2018/03/04 | 876 | 3,332 | <issue_start>username_0: I am using the [Sanic](https://github.com/channelcat/sanic) as the server and try to handle multiple request concurrently.
I have used the await for the encode function(I use for loop to simulate do something) but when I try the `time curl http://0.0.0.0:8000/` in two separate consoles, it doe... |
2018/03/04 | 372 | 1,145 | <issue_start>username_0: ```js
$(document).ready(function() {
var aa = $('.page-1 img').attr('src');
alert(aa);
});
```
```html

```
while getting image scr using jquery returns undefined can anyone solve this problem?<issue_comment>username_1: Your selector should be `img.page-1`.
`.page-1... |
2018/03/04 | 839 | 2,773 | <issue_start>username_0: i am trying to implement google tag manager in my app (angular 5 app)
however, my app is serving a few clients (companies accounts), that access the app from multiples paths e.g:`www.myapp.com/dymamiPath123` (totally dynamically - cant be hardcode)
i need that change the google tag id per the... |
2018/03/04 | 553 | 2,213 | <issue_start>username_0: I need to create the database schema and include it in my software requirements specification for my school project, however, when I try to create a relationship between 2 tables, I get Error: Missing index on column(s).<issue_comment>username_1: I think @HazarathChillara has this right; you ne... |
2018/03/04 | 613 | 2,019 | <issue_start>username_0: I have a textarea, a button and a div
```js
function showres() {
var text = document.getElementById('mytext');
var result = document.getElementById('resulthere');
result.innerHTML = text.value;
}
```
```html
Click Me
```
It shows the value of textarea on the div on clicking the butto... |
2018/03/04 | 598 | 1,873 | <issue_start>username_0: I have string like that
```
(111|222) N999
```
And i want to get
```
x = 111
y = 222
```
with RegExp but i don't know how to do it.
Can anyone help me with that
i've play around on <https://regex101.com> but i was able only to get first 3 numbers with \d+. I could't get values after ... |
2018/03/04 | 755 | 2,414 | <issue_start>username_0: I have a python3.6 program, using nibabel package to analyze medical images in NIFTI format.
```
import glob
import nibabel as nib
health = [nib.load(pt) for pt in glob.glob(healthdir+'*.nii')] # len = 200
health_data = [h.get_data() for h in health]
```
It occurred `OSError: [Errno 24] Too ... |
2018/03/04 | 371 | 1,253 | <issue_start>username_0: I just have started with HTML and just basically trying around. So I have found some (Quite alot) stackoverflow where people are wondering the same and I just found out that alot of people using inline and my thought was if there is a way to maybe do it without a inline and I haven't come to an... |
2018/03/04 | 532 | 1,705 | <issue_start>username_0: I am trying to install [ng2-completer](https://github.com/oferh/ng2-completer). It work just fine when I run `ng serve`. However, my `ng build --prod`. I get following error
Module not found: Error: Can't resolve 'ng2-completer/ng2-completer.module' in 'folder\_path/front/src/app'
My package-... |
2018/03/04 | 505 | 1,794 | <issue_start>username_0: I want to be Visual Studio Code my default editor for all text-based file types in Windows. For Notepad++ there is an extension in the Windows Explorer to provide "Edit in Notepad++" for each file.
How can I achieve this for "Edit with Visual Studio Code"?
Do I have to "program" such extension ... |
2018/03/04 | 412 | 1,636 | <issue_start>username_0: My Spring-Batch job is set like that:
```
@Bean
Job myJob(JobBuilderFactory jobBuilderFactory,
@Qualifier("stepA") Step stepA,
@Qualifier("s"tepB) Step stepB) {
return jobBuilderFactory.get("myJob")
.incrementer(new RunIdIncrementer())
... |
2018/03/04 | 735 | 2,301 | <issue_start>username_0: I'm not sure where I'm going wrong with my CSS.. any help would be appreciated..
the CSS
```
#commentbox {
float: left;
margin-top: 10px;
background-color: #FFFFF0;
display: block;
width: 450px;
border: 1px solid #999999;
padding: 10px;
border-bottom-right-radius: 10px;
bo... |
2018/03/04 | 675 | 1,956 | <issue_start>username_0: I have a button that submits a form remotely with Ajax using the rails built in helpers:
```
button_to 'Delete Document', [:proofreader, proofreading_job, proofread_document],
method: :delete,
remote: true,
class: "btn btn-danger btn-sm",
... |
2018/03/04 | 423 | 1,544 | <issue_start>username_0: I can mock a function of a to be tested class in several ways. But how do I mock an object that is created inside of a to be tested method?
I have this to be tested class
```
@Grab('org.codehaus.groovy.modules.http-builder:http-builder:0.7')
import groovyx.net.http.HTTPBuilder
class totest ... |
2018/03/04 | 1,293 | 7,060 | <issue_start>username_0: **On the first run**, it works fine.
The Program runs the **last chosen case** when you input a **char**
```
int x;
do{
printf("Input a number:");
scanf("%d", &x);
switch(x){
case 1: printf("A\n\n");
break;
case 2: printf("B\n\n");
break;
case 3: print... |
2018/03/04 | 2,187 | 8,322 | <issue_start>username_0: I have created this using UICollectionView When I click the `Add(+)` or `Remove(-)` button then I want to update the label. How can I achieve this?
[](https://i.stack.imgur.com/EBFpB.png)
**MainViewController.swift**
```
func collectionView(_ collectio... |
2018/03/04 | 3,370 | 9,695 | <issue_start>username_0: I created a fresh virtual environment: `virtualenv -p python2 test_venv/`
And installed tensorflow: `pip install --upgrade --no-cache-dir tensorflow`
`import tensorflow` gives me `Illegal instruction (core dumped)`
Please help me understand what's going on and how I can fix it. Thank you.
##... |
2018/03/04 | 383 | 1,354 | <issue_start>username_0: Im new to React and Im creating a simple react app. I currently implement react-router. Im just want to ask what's the difference between this
```
```
to this
```
```
I cant seem to get it. When I click the link it says
>
> TypeError: Cannot read property 'params' of undefined
>
>
> ... |
2018/03/04 | 818 | 2,792 | <issue_start>username_0: My question is i am having two ul list under two different div.Let say showandhide.jsp is the file which need to load on some action.I want div1 to be always visible when the page load and div2 should be always hidden.
On click of "click me" div should toggle.
**Code is as follow**
```
click ... |
2018/03/04 | 872 | 2,047 | <issue_start>username_0: Wanted to count the occurrence of a variable in a data frame. It’s easy to do in Excel PivotTable and now learning how to do it in R.
```
v_time visitor
1/2/2018 16:07 Jack
1/3/2018 16:09 Jack
1/3/2018 16:12 David
1/3/2018 16:16 Kate
1/2/2018 16:21 David
1/2/2018 16:32 Ja... |
2018/03/04 | 932 | 3,155 | <issue_start>username_0: I am working on a tree structure that has a vector of `unique pointers` as a class member. While working on it, I realised that I am not sure how to initialize a unique pointer as a class member if the object, which the unique pointer will own, comes as a parameter.
So, I am simply asking: How... |
2018/03/04 | 769 | 2,772 | <issue_start>username_0: I am trying to get the stylelint extension to work in visual studio code. However, with no success so far. The extension with a short explanation is here:
<https://marketplace.visualstudio.com/items?itemName=shinnn.stylelint>
What I did so far: Add
```
"stylelint.enable": true,
"css.validat... |
2018/03/04 | 589 | 2,229 | <issue_start>username_0: I have a repo that consist of 4 directories. Each directory contain different part of the project
The 4 directory is : **asset, backend, mobileapp, util**
**backend** contain a nodejs project that act as a backend, the **mobileapp** will contain android and ios project
I want to push just th... |
2018/03/04 | 421 | 1,410 | <issue_start>username_0: what i'm currently is to have the user entering a link of a video. it gets stored in the database, I retrieve it, put it in a video tag to display it again to the user. My issue is that does not get displayed, appears as a video but when i click play nothing gets played and time is 00:00.
my c... |
2018/03/04 | 573 | 2,003 | <issue_start>username_0: In my web app I have several rows containing data with toggles at the end of each row. On `click` of each toggle, it should change the `opacity` of the entire row and contents.
I've made a simplified version of this on codepen here: <https://codepen.io/anon/pen/xYeeyp>
The issue I am facing i... |
2018/03/04 | 840 | 2,569 | <issue_start>username_0: I try to overlay a `canvas` exactly on top of a 256px by 256px image (of 8x8 grids) and draw an 8x8 black square --
```js
var canvas = document.querySelector("canvas");
canvas.width = 1024;
canvas.height = 1024;
var c = canvas.getContext("2d");
c.fillRect(0, 0, 8, 8);
`... |
2018/03/04 | 1,215 | 4,072 | <issue_start>username_0: still advancing in my tutorial to learn python, I was told to do
```
sudo -H pip install requests
```
I get the following :
```
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting requests
Could not fetch URL https://pypi.py... |
2018/03/04 | 4,532 | 17,626 | <issue_start>username_0: I am trying to run the following PowerShell script from within my .NET application:
```
try {
Start-Process "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -ArgumentList "--headless --disable-gpu --print-to-pdf=c:\myDir\file.pdf https://www.bing.com"
$x = "Complete"
$x | Out... |
2018/03/04 | 390 | 1,220 | <issue_start>username_0: I want to rename all the files in test folder as 1, 2, 3 and so on
```
import os, sys, path
path = r"F:\test"
dirs = os.listdir(path)
print(dirs)
count = 1
for files in dirs:
str1 = str(count)
os.rename(files, str1)
count += 1
```
but my code giving me this error:
WindowsError:... |
2018/03/04 | 3,093 | 10,549 | <issue_start>username_0: **[SQLFiddle Demo](http://www.sqlfiddle.com/#!9/20cf7a/1)**
I have a table `sample` like this
**SAMPLE's table**
```
+------------+------------------------+--------+------+
| id_laporan | id_laporan_rekomendasi | status | id |
+------------+------------------------+--------+------+
| ... |
2018/03/04 | 1,025 | 3,978 | <issue_start>username_0: On my fragment I want to get `ArrayList`. I have created a newInstance function.
```
companion object {
private val ARG_TITLE = "ARG_TITLE"
private val ARG_ANIMALS = "ARG_ANIMALS"
fun newInstance(title: String,animals: ArrayList): ExampleFragment{
val fragment = ExampleFragment... |
2018/03/04 | 1,039 | 4,206 | <issue_start>username_0: Is there a way to define a function to hook before **each** component in my app is mounted?
The idea is that if a component is *blacklisted* it doesn't mount at all.
The solution must leave the components unmodified for backward compatibility and should run in production (so rewire and other ... |
2018/03/04 | 1,211 | 4,287 | <issue_start>username_0: I'm looking to create a rolling grouped cumulative sum. I can get the result via iteration, but wanted to see if there was a more intelligent way.
Here's what the source data looks like:
```
Per C V
1 c 3
1 a 4
1 c 1
2 a 6
2 b 5
3 j 7
4 x 6
4 x 5
4 a 9
5 ... |
2018/03/04 | 325 | 1,005 | <issue_start>username_0: I'm trying to install matplotlib-basemap through Anaconda prompt, but it's just not working.
When I type:
```
conda install basemap
```
The error it gives is:
```
UnsatisfiableError: The following specifications were found to be in conflict:
- basemap
- xlsxwriter
```
Does this mea... |
2018/03/04 | 343 | 1,260 | <issue_start>username_0: I'm trying to select listbox item if contains a specific string. Here is my code:
```
string SearchDomain="youdial.in";
for (int i = 0; i < ListBox2.Items.Count; i++)
{
var UrlList = new Uri(ListBox2.Items[i].ToString());
var UrlList = UrlList.Host;
... |
2018/03/04 | 2,102 | 6,096 | <issue_start>username_0: I have been working on a separate server to configure the mariadb but still queries are taking sooo long time to return and mostly not returning.
Mariadb version: 10.1.31-1
Server has 50GB Ram and 2200 Ghz \* 10 core
Centos7 as OP
The target database currently has very huge innodb tables an... |
2018/03/04 | 221 | 702 | <issue_start>username_0: How do I get the key from a collection item?
`$posts= Post::all();`
Example (doesn't work):
`$key = $posts->where('id', $id)->getKey();`<issue_comment>username_1: The `all()` will return a collection without keys. If you're talking about integer keys like 0, 1, 2 etc, use the `search()` meth... |
2018/03/04 | 1,506 | 5,795 | <issue_start>username_0: I'm trying to replace the InMemory storage with Cosmos storage provided by Azure.
I'm storing some information within the conversation data, using it within my dialogs and resetting it from my message controller if a certain command was sent.
The way I access my conversation data within a d... |
2018/03/04 | 1,814 | 6,348 | <issue_start>username_0: I am just trying to make a random monster generator for an RPG I am writing. I am using Python 2.7. It's difficult to explain but I will try.
So I am trying to make it so that if "random.choice(numbers)" comes up with the "has 1" variable, it uses "random.choice(attachmentssingle)" instead of ... |
2018/03/04 | 311 | 1,341 | <issue_start>username_0: How manually install util on google colab?
```
!pip install web.py==0.40.dev0
import utils
```
Error
```
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in ()
20 import torch.backends.c... |
2018/03/04 | 388 | 1,522 | <issue_start>username_0: In my app, I have a button that creates a TextView with a certain message. How can I set the text alignment of the text to the right of the TextView? I see the attribute in XML, but I don't know how to do it in java.<issue_comment>username_1: Try using
```
textView.setGravity(Gravity.RIGHT)
`... |
2018/03/04 | 641 | 2,397 | <issue_start>username_0: new to Linux. I've been having a few problems since I installed some time ago, one of the main issues being my keyboard layout defaults to US on a GB keyboard.
I've found the command `setxkbmap -layout gb` fixes this. Problem is, I have to run it each time I restart the laptop.
I've tried cre... |
2018/03/04 | 2,221 | 4,826 | <issue_start>username_0: In R, I know how to extract elements of a (named) list column into separate columns, provided they are the same length:
```
library(tidyverse)
tib1 <- tibble(x = 1:3, y = list(list(a = 1, b = 2, c = 3),
list(a = 3, b = 4, c = 5),
... |
2018/03/04 | 472 | 1,604 | <issue_start>username_0: I have the function below to add text to another input. when I click anywhere on the page I want to show an alert message furthermore when I click on texts I want to run the special function for them but, in all conditions, it considers `$(document).click` part. How can I define all part of my ... |
2018/03/04 | 1,562 | 5,454 | <issue_start>username_0: I have a HTML file and a PHP file.
The HTML file has 3 clickable div buttons. When I click each of them, they should trigger a different Javascript function that returns different AJAX response.
My problem is that no matter which button I click, the program always produces the same AJAX respo... |
2018/03/04 | 666 | 2,357 | <issue_start>username_0: I have a problem, I'm trying to display div over the blurred body, but I can't really make it work. I've tried adding z-index to the div but it doesn't seem to be working.
Heres what I've tried:
```css
body {
padding: 0;
margin: 0;
overflow: hidden;
background: black;
... |
2018/03/04 | 2,475 | 7,940 | <issue_start>username_0: I have a group chat message build using Vue.js. I am currently fetching the messages which returns an array like this:
```
"data":[
{
"id":1,
"message":"yo<\/p>",
"removed":"false",
"user":{
"uid":2,
"metadata":{
"username":"Testing"
}
},
"post\_date":"2018-02-24 14... |
2018/03/04 | 2,250 | 7,647 | <issue_start>username_0: As a JS novice I need some help with the following:
I want to create a 3-steps little program:
1. let user choose list from a selectbox (fruit or vegetables)
2. let user choose the number of items (x) he wants to see
3. show x items of fruit or vegetables
As you can see, step 2 and 3 are work... |
2018/03/04 | 2,634 | 9,074 | <issue_start>username_0: >
> The Alerter is a simple monitoring tool, intended to help detect
> increases in response time for some process. It does that by computing
> a few statistics about the process across a 'window' of a certain
> number of runs, and alerting (returning true) if certain thresholds
> are met.... |
2018/03/04 | 1,900 | 6,512 | <issue_start>username_0: i'm trying to map one value to other, following is my code
what im trying to do is call one api and get that values and pass to another api and map both values in the end, i get the values from both apis but failing to concatenate. how to solve this?
```
response = conn.get("/api/vhosts")
... |
2018/03/04 | 1,953 | 6,753 | <issue_start>username_0: Am new in flask , but am getting this error , i tired searching on different questions on stackoverflow but i have found none which work, below is the error am getting:
```
Traceback (most recent call last):
File "C:/Users/Huzy_Kamz/PycharmProjects/articles/articles.py", line 6, in
from wt... |
2018/03/04 | 1,004 | 3,748 | <issue_start>username_0: I'm starting with Java Sockets and trying to ask the user for the Server Port.
If the port is already in use I ask it again.
As soon as I ask twice the reader is bugging and producing an infinite loop.
Removing the `reader.close()` solve my problem but I would like to understand what is happen... |
2018/03/04 | 241 | 1,056 | <issue_start>username_0: ```
```
I want to know the length of the array returned from the pipe.
and the index (i) is unknown outside of the div element.
how sould I bind it to with my component?
Thanks in advance<issue_comment>username_1: Closing a Scanner closes the underlying InputStream, i.e. System.in. Once you... |
2018/03/04 | 571 | 1,816 | <issue_start>username_0: I'm trying to run a simple docker setup with node and mongo:
**Dockerfile:**
```
FROM node:8.9.4-alpine
RUN mkdir /app
WORKDIR /app
COPY package.json /app/
COPY package-lock.json /app/
RUN npm install
ADD . /app/
```
**docker-compose.yml:**
```
version: '3'
services:
db:
imag... |
2018/03/04 | 305 | 1,031 | <issue_start>username_0: I want to deploy a django app on an Ubuntu machine.
I installed apache2:
```
sudo apt-get install apache2
```
Next, I have to edit httpd.conf (I'm reading [this documentation](https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/modwsgi/)) but I don't know where it is.
Where is http... |