date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/03 | 603 | 1,906 | <issue_start>username_0: ```
start cmd /k
```
/k: is compulsory which will execute.
launching many command propmts can be done as below.
```
start cmd /k Call rc_hub.bat 4444
start cmd /k Call rc_grid1.bat 5555
start cmd /k Call rc_grid1.bat 6666
start cmd /k Call rc_grid1.bat 5570.
```
I want to know what cm... |
2018/03/03 | 601 | 1,980 | <issue_start>username_0: I've been doing a course in Python, and got to the exercise where I have this code
```
words = ['pear', 'cabbage', 'apple', 'bananas']
words.sort(key=lambda s: s[-1]) # Alternatively, key=operator.itemgetter(-1)
words # => ['cabbage', 'apple', 'pear', 'bananas'] ... Why 'cabbage' > 'apple'?
... |
2018/03/03 | 1,927 | 6,309 | <issue_start>username_0: I need some help to create a SQL query. At least a hint on how to do this.
I have a table Schedule with datetime ranges and another table UnavailableTimes also with datetime ranges. From this I want the available times, by subtracting the unavailable times from the schedule.
**T-SQL (test data... |
2018/03/03 | 541 | 1,567 | <issue_start>username_0: I want to get the features of layer A that have intersection with a specific feature in layer B (using the id of the feature in layer B). below is my query:
```
localhost:8080/geoserver/wms?LAYERS=sf:roads,sf:restricted,sf:bugsites&STYLES=&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=Get... |
2018/03/03 | 725 | 2,368 | <issue_start>username_0: I want to add array in database. I use [ruby](http://www.ruby-lang.org/en/), [sequel](https://github.com/jeremyevans/sequel) and [postgresql](https://www.postgresql.org/), but question about true way, and not program realization.
I see 3 path:
1. Use special [adapters](http://sequel.jeremyevan... |
2018/03/03 | 518 | 1,904 | <issue_start>username_0: I have codeigniter project. I want route all xml extension URL thorough a controller. if my URL get any .xml extension it will a redirect a specific controller method (because I have to check something ) after that it will load that .xml file. So I write
```
$route['(.xml)'] = "home/xml";
`... |
2018/03/03 | 371 | 1,223 | <issue_start>username_0: The task is to split huge DBF file from very old ERP system.
Size of the files are:
table1.dbf - 5307 MB
table1.cdx - 288 MB
table1.fpt - 617 MB
I do not understand how it worked on 32-bit windows... but it works.
Have you an idea how to split the table for 2 files?
for example 10% of last ... |
2018/03/03 | 1,485 | 4,226 | <issue_start>username_0: I am trying to follow along with an example from the link:
<https://eli.thegreenplace.net/2015/programmatic-access-to-the-call-stack-in-c/>
However I have run into a few issues. I have a piece of code like so that uses libunwind to print backtrace information:
**test.cpp**
```
#define UNW_LO... |
2018/03/03 | 402 | 1,488 | <issue_start>username_0: I'm new to data science and trying to do some data wrangling with python 2.7 in iPython notebook. A tutorial I was following for my first project asked me to replace all NaN intputs with Y or N. But I'd like to consider another approach where I can 1st look at all the rows with NaN inputs for a... |
2018/03/03 | 834 | 2,398 | <issue_start>username_0: As I am a novice Programmer and Coder So, I have taken 30 days of coding challenge in `Hackerrank`, but when I a running simple string storing problem in C, It shows no of errors
The Code is
```
#include
int main() {
int i = 4;
double d = 4.0;
char s[] = "HackerRank ";
// Declare second ... |
2018/03/03 | 443 | 1,748 | <issue_start>username_0: I'm trying to use `withCount()` on a relationship of a relationship. The error I'm getting is `Method Illuminate\Database\Query\Builder::forums.threads does not exist.`.
Given these models:
```
class Category extends Model
{
public function forums()
{
return $this->hasMany('Ap... |
2018/03/03 | 275 | 880 | <issue_start>username_0: I've been fighting with this error for an hour now, I can't see what's wrong here...
[](https://i.stack.imgur.com/noOWB.png)
[](https://i.stack.imgur.com/y7ZJ... |
2018/03/03 | 206 | 742 | <issue_start>username_0: Please, i have a question about Docker Swarm.
Docker Swarm replicate containers on hosts. What is the type of replication used, state machine (active replication) or passive replication ?
Kind regards.<issue_comment>username_1: You don't have a file "CryptoGODM.momd", as you set in your
```
... |
2018/03/03 | 1,565 | 6,143 | <issue_start>username_0: As most programmers I try to program my applications in the safest way possible but this we know that does not guarantee security at 100%. Therefore I think it is also appropriate to have methods to monitor if we may be being attacked. So this is my question.
(My websites are made with **PHP a... |
2018/03/03 | 1,611 | 5,824 | <issue_start>username_0: I have difficulty with running a code which checks two criteria in switch case as this code prints 'unknown' since in javascript
```
['police',false]!=['police',false]
```
Is there any way to implement this code using `switch`-`case` rather than nested `if`s?
```
var option='police';
var u... |
2018/03/03 | 1,769 | 6,490 | <issue_start>username_0: I am currently teaching myself `ocaml` for a programming language class and I am trying to figure out how to specify a function parameter and return type as a `List`.
I have create a program that reads a file `char` by `char` stores each `char` in a `List`, reverses the list then returns the `... |
2018/03/03 | 280 | 969 | <issue_start>username_0: My project is structure such as
```
root
.gitignore
-src
- config.ts
-dist
- config.js
```
I have a `.gitignore` file like this (I am showing just the first 2 lines)
```
config.ts
config.js
```
What I see is that `config.ts` (present the **src** folder) is actually ignored and... |
2018/03/03 | 232 | 672 | <issue_start>username_0: I have a csv file with multiple sections in a sheet.
I want to loop through a specific range only. Say loop through row 10 to 100.
My below code so far loops through the whole sheet.
```
awk -v val1='Batch File Name' -F ',' '{for (i=1; i<=NF; i++) if ($i==val1) {print i} }' "$FILES"
```<is... |
2018/03/03 | 391 | 1,227 | <issue_start>username_0: ```
n=int(input())
c={}
for i in range(n):
name=str(input())
c[name]=list(input().split())
print(c)
query=input()
query_scores=c[query]
print(sum(query_scores))
```
The `sum` function is not working. It shows:
>
> TypeError: unsupported operand type(s) for +: 'int' and 'str'
>
>
>... |
2018/03/03 | 514 | 1,815 | <issue_start>username_0: I installed node js on windows 7 from <https://nodejs.org/en/download/>. When I run **node -v out put is v8.9.4** But when I check **npm -v out put is**
```
The system cannot find the path specified.
5.6.0
```
In path variable entry is as
```
C:\Users\\AppData\Roaming\npm
```
blank npm f... |
2018/03/03 | 137 | 470 | <issue_start>username_0: ```
```
I link css file same method and it is working, but js file are not working, how to slove this problem please help me....
when i BootstrapCDN link it working correct.<issue_comment>username_1: Try this hope it will help you. Make sure you have already loaded the URL Helper
```
type="t... |
2018/03/03 | 323 | 1,144 | <issue_start>username_0: I am trying write a simple prime number code from 1 to 100, but I am unable to understand why its not giving me result.
```
package com.java.program;
public class PrimeNo {
public static void main(String[] args) {
System.out.println("Prime no btw 1 to 100");
for(int i=1;... |
2018/03/03 | 472 | 1,504 | <issue_start>username_0: I have configured Prometheus to scrape metrics from cAdvisor. However, the metric "container\_cpu\_load\_average\_10s" only returns 0. I am able to see the CPU metrics under the cAdvisor web UI correctly but Prometheus receives only 0. It is working fine for other metrics like "container\_cpu\_... |
2018/03/03 | 427 | 1,375 | <issue_start>username_0: I am new to PHP and have been attempting to write a simple PHP script that will is activated from a "submit" button.
1. Show a "Welcome message"
2. Redirect to a an external page for 5 seconds, then return to the script.
3. Show a "Thank you"
So far I've tried:
```
php
echo 'Welcome to ........ |
2018/03/03 | 1,537 | 5,433 | <issue_start>username_0: I want to download file with updating Progressbar not ProgressDialog.I use AsyncTask for download file.In onProgressUpdate() method i want to update the progressbar progress but not getting success.In Log progress is print but progresbar not update.My code is in Adapter.
```
class DownloadFile... |
2018/03/03 | 358 | 1,069 | <issue_start>username_0: I get an error on every attachement page in the WordPress backend.
Direct under the title of the attachement it shows the following error:
```
array(2) { [0]=> string(23) "WP_Image_Editor_Imagick" [1]=> string(18) "WP_Image_Editor_GD" }
```
Here's a screen of the error: [{
return view('newpage.blade.php');
}
}
</code... |
2018/03/03 | 314 | 1,272 | <issue_start>username_0: Using MechanicalSoup, does one have to set values for hidden fields in a form as well? Or can we just ignore them?
Here is their code in the HTML form:
```
```<issue_comment>username_1: Hidden fields are typically used internally by the website you're browsing: they are generated with a valu... |
2018/03/03 | 1,270 | 3,524 | <issue_start>username_0: ```
productcode = ['apple','orange','melons'] # 1000+ more
pairs = []
count = 0
for xi,x in enumerate(productcode):
del productcode[xi]
for yi,y in enumerate(productcode):
pc2 += 1
p = (x,y)
pairs.append(p)
print ("Number of distinct pairs:",pc2)
```
productco... |
2018/03/03 | 876 | 3,388 | <issue_start>username_0: Right now for my rails app (using devise and active admin), I am having user ids as serial numerals depending upon the serial of user id creation, i.e. first time I got user id 1, then again signed up with different details and then got user id 2 and then 3 and so on.
But I want to have custom ... |
2018/03/03 | 860 | 3,053 | <issue_start>username_0: I have tried to solve this issue, here i am inserting dynamic inputbox box values into database including their title. But not working...
Inputbox dynamic generation: (This works well)
```
$('#myTable tbody').append("| "+rno+" | "
+item.stdname+" | |
");
```
Ajax to Send these values in... |
2018/03/03 | 378 | 1,072 | <issue_start>username_0: Given a hash that looks like this:
```
{
"one":[ [ 46, 51 ], [ 46 ], [ 48 ] ],
"two":[ [ 50, 51 ], [ 46, 51 ], [ 46, 51 ] ]
}
```
How do you map this in Rails so that we could get the total number of items in all arrays? So that we would get this result:
```
{
"one": 4,
"two": 6... |
2018/03/03 | 4,759 | 7,032 | <issue_start>username_0: I have a dataframe and I want to convert it to a numpy array.
```
>>> df.index
DatetimeIndex(['2018-02-28 01:00:00', '2018-02-28 01:01:00',
'2018-02-28 01:02:00', '2018-02-28 01:03:00',
'2018-02-28 01:04:00', '2018-02-28 01:05:00',
'2018-02-28 01:06:00', '20... |
2018/03/03 | 920 | 3,388 | <issue_start>username_0: I'm using SageMath to perform some mathematical calculations, and at one point I have a for loop that looks like this:
```
uni = {}
end = (l[idx]^(e[idx] - 1)) * (l[idx] + 1) # where end in my case is about 2013265922,
# but can also be much much lar... |
2018/03/03 | 753 | 2,794 | <issue_start>username_0: I have the following array in PHP:
```
[
{
"website": "example",
"url": "example.com"
},
{
"website": "example",
"url": "example.com"
}
]
```
Now I would like to convert this to a collection so I sort by the keys `website` or `url`. However when I do this:
```
$m... |
2018/03/03 | 1,422 | 5,868 | <issue_start>username_0: I have following Azure mobile Client
```
public AzureCloudService()
{
Client = new MobileServiceClient(AzureUrl, new CustomAzureClientMessageHandler());
}
```
And i attached following message handler to that client
```
public class CustomAzureClientMessageHandler : DelegatingHandler... |
2018/03/03 | 391 | 1,543 | <issue_start>username_0: Q1.)While creating a record using failover-policy in route53-hosted-zone :
What is the difference between "evaluate-target-health" and "associate-health-check" ?
Q2.)Does route53 perform health check for EACH dns-request it receives ?<issue_comment>username_1: Both basically do the same thing... |
2018/03/03 | 356 | 1,438 | <issue_start>username_0: so I'm using Collections.min to find an object in an ArrayList, that contains the smallest integer value in one of it's elements. Basically comparing every element in the list.
Now, there are some objects in the list, that don't contain a value, so I had to set them to -1.
How would I exclude... |
2018/03/03 | 395 | 1,176 | <issue_start>username_0: I drew a custom error bar for my seaborn barplot because I need to use within-subject error bar. I used:
```
plt.errorbar([0, 1], [mean1, mean2], yerr = errBar_value,
elinewidth = 3, ecolor = "k", capsize = 0.5)
```
Here is the result
[: The server requested authentication method unknown to the client [caching_sha2_password]")
```
Need help to troubleshoot the problem.<issue_comment>us... |
2018/03/03 | 724 | 2,639 | <issue_start>username_0: I want to build my documentation (doxygen) alongside my project with CMake by default. I let CMake generate Makefiles. I know of these approaches so far:
1)
```
add_custom_target(doc ALL
COMMAND ${DOXYGEN_COMMAND})
```
2)
```
add_custom_command(
TARGET my-executable
POST_BUILD
COMM... |
2018/03/03 | 583 | 1,845 | <issue_start>username_0: I need to create a dynamic sum of data chunks out of a large data set contained in a csv file (>100k rows). The data is planned to be displayed in PowerBI but I have literately no idea of the DAX coding language or VBA. So I hope I can preformat the data in excel.
The way to distinguish the da... |
2018/03/03 | 1,178 | 3,127 | <issue_start>username_0: When I calculate the mean of a list of `float`s the following way
```py
def mean(x):
sum(x) / len(x)
```
then I usually do not care about tiny errors in floating point operations. Though, I am currently facing an issue where I want to get all elements in a `list` that are **equal or abov... |
2018/03/03 | 1,134 | 4,804 | <issue_start>username_0: I am using Firebase on my Android app and I know how to get data from the database with an EventListener. Well so far.
My problem is this: I have a ReciclerView which shows information from data but only when I modify the database. If I close the app and open again, it doesn't show anything. T... |
2018/03/03 | 918 | 3,459 | <issue_start>username_0: In my form, in Yii2 Basic if I try to inspect element for the field I get the name of model and table row
example
```
```
`name=` is showing the model name : `Userlogin`, and table row is `Username`. Is it possible to hide the name of the model and the table row like for example, `name="u... |
2018/03/03 | 1,221 | 4,532 | <issue_start>username_0: I am trying to modify the default .spec file created by Pyinstaller to include hidden imports and datas however everytime I run pyinstaller and specify the spec file like pyinstaller source.py spource.spec my source.spec gets rest to its default state i.e.
```
a = Analysis(['source.py'],
pathe... |
2018/03/03 | 827 | 2,607 | <issue_start>username_0: I'm just starting learning cordova.
I set up the "hello" test app and tried to build it. However, I get a quite strange error message where I couldn't find a solution via google:
During cordova build android in gradle target ":app:transformClassesWithDesugarForDebug" it fails with:
>
> "WARN... |
2018/03/03 | 362 | 1,262 | <issue_start>username_0: I'm still getting my head around some OOP bits. I have a main class engine.php
Its job is basically to act as an API type, to access the functions of the other classes.
```
class Engine
{
function __construct()
{
$this->likes = new Rater('likes');
$this->dislikes = new... |
2018/03/03 | 2,350 | 6,838 | <issue_start>username_0: I want to convert an ed25519 private key (which is generated by `ssh-keygen` command) to a ppk file. But I got the error.
>
> Couldn't load private key (unrecognized cipher name)
>
>
>
Can someone help me?
* tested openssh version: `OpenSSH_7.6p1, OpenSSL 1.1.0g 2 Nov 2017` and `OpenSSH_... |
2018/03/03 | 1,556 | 5,214 | <issue_start>username_0: I have an NSObject class that looks like this
```
class MyItem : NSObject {
var id: Int
var name: String
//other init code here
}
```
What I want to do is, in other class, update the value of `name` when `id` is equal to something
**Now `MyViewController`**
```
var myItem =... |
2018/03/03 | 1,735 | 5,681 | <issue_start>username_0: I am using ansible playbook to deploy my app with docker in Jenkins,
Recently I want to limit the log size of the app container,
with "docker run" has "–log-opt max-size=xxxm" option,
but How can I add the same function in ansible playbook?
I tried to set ansible playbook as below, but the te... |
2018/03/03 | 1,311 | 3,832 | <issue_start>username_0: I'd like to generate some specific style where on the left side there is an image (icon) and next to the icon theres some kind of description (plain text).
So this is what I got so far:
```css
.elem {
margin-left: 7%;
position: relative;
width: 100%;
}
.text {
display: inlin... |
2018/03/03 | 1,258 | 3,756 | <issue_start>username_0: I have a dataframe df with a place field containing strings that looks like so:
```
countryName0 / provinceName0 / countyName0 / cityName0
countryName1 / provinceName1
```
Using this code I can pull out the finest resolution place identifier:
```
df$shortplace <- trimws(basename(df$place))
... |
2018/03/03 | 2,263 | 4,772 | <issue_start>username_0: I have the following lists making up a dict, consisting of some scraped data from the interwebz:
```
names = ['Progressor GTI + RS10 PR 17/18, alpinski, unisex', 'Alpine Skis The Curv DTX 16/17, alpinski, carving', 'Alpine Skis Dobermann Spitfire Ti 16/17, alpinski', 'Redster G7 + X12 17/18, a... |
2018/03/03 | 646 | 2,435 | <issue_start>username_0: Is there any way to `setState({collapse: true})` for mobile screens only? How can i toggle the `this.state.collapse` based on current window size?
```
import React, { Component } from 'react';
import { Route, Redirect } from 'react-router-dom';
import $ from 'jquery';
import { Container, Row... |
2018/03/03 | 1,400 | 5,632 | <issue_start>username_0: **I have many application which is hosted on main domain and sub domains:**
Website A, ASP.NET (.Net Core 2.0) at www.example.com
Website B, ASP.NET MVC (4.7 .net Framework) at site.example.com
>
> Website C, ASP.NET **Identity** (.Net Core 2.0) at account.example.com
>
>
>
Website D, A... |
2018/03/03 | 1,791 | 6,027 | <issue_start>username_0: I'm trying to show the Total amount into word
Following is the code i'm using :-
```
public void amountinwords()
{
string word = ConvertNumbertoWords(Convert.ToInt32(popopop.Text));
amountttiinwwords.Text = word;
}
public static string ConvertNumbertoWords(int number)
{
if (number == 0)
retu... |
2018/03/03 | 690 | 2,474 | <issue_start>username_0: I'm trying to update my bashrc file in ubuntu with some environment variables.
I can do this using below command.
```
echo 'export APP=/opt/tinyos-2.x/apps' >> ~/.bashrc
```
But I want to do it manually, meaning open the file with vim editor then add it.
The problem here is when I open the... |
2018/03/03 | 770 | 2,647 | <issue_start>username_0: thanks for taking time to help me
im deploying a nodejs express js project
these are the steps that i have done:
1- change the port to: process.env.PORT
code:
```
const PORT = process.env.PORT || 9000;
app.listen(PORT , function() {
console.log('Application is listening on 9000');
});
`... |
2018/03/03 | 541 | 1,981 | <issue_start>username_0: I am using nodejs client library of Google cloud Web detection API and I wanted to pass a base64 encoded image to it but there is no documentation about it. I tried it using simple API calls and it works but as client library is neater I was wondering if they have implemented it there as well. ... |
2018/03/03 | 808 | 2,487 | <issue_start>username_0: It seems the format is, for every line, the string is like 'word number number .....'. So it easy to split it.
But when I split them with the script below
```
import numpy as np
def loadGloveModel(gloveFile):
print "Loading Glove Model"
f = open(gloveFile,'r')
model = {}
for li... |
2018/03/03 | 681 | 2,379 | <issue_start>username_0: I'm trying to automate a task in a full screen game as a QOL improvement. This means reading a value from a screenshot of the game, and if my set conditions are met, locate the image and right click on it.
I'm having trouble using the pyautogui locateCenterOnScreen function, it always returns ... |
2018/03/03 | 370 | 1,287 | <issue_start>username_0: This may be very simple, but I am just starting to learn.
I want to use two conditional statement to the find the length of rows in a given dataset. So, for example I have a list of two people and their genders
```
P1 | P2 | Match | Same
M | F | FALSE | FALSE
M | M | TRUE | TRUE
F | M ... |
2018/03/03 | 447 | 1,789 | <issue_start>username_0: I am trying to get into ajax success callback on specific condition.
i am passing an argument to ajax function and based on the argument match i am trying to execute the function..
i have an if condition where if the parameter is `abc` then url will be something and if parameter is `xyz` then... |
2018/03/03 | 1,771 | 4,912 | <issue_start>username_0: I am looking to reproduce the behaviour of the `atoi()` function without using any other functions such as `strtonum()`. I don't really understand how to convert a `char` or `char *` to int without it being converted to the ASCII value instead. I am doing this in C, any suggestions?<issue_comme... |
2018/03/03 | 446 | 1,508 | <issue_start>username_0: I still can't able to figured out why is this. Below is my SQL syntax..
```
create table usertbl{
id int auto_increment,
name varchar(30) not null,
cupon_code char(10) not null,
primary key(id)
}
```
So according to this table, the `cupon_code` field has a fixed length, but w... |
2018/03/03 | 661 | 2,614 | <issue_start>username_0: I have a vector named EllipseContainer who is full (or will be) of Ellipses and Circles. On this exercise, `Circle` is inheritor of `Ellipse`, so I want to know how to delete them using a dynamic cast.
They have recommended me using this:
```
if (dynamic_cast(Ellipse[i]))
delete (Circle \*)... |
2018/03/03 | 798 | 2,807 | <issue_start>username_0: I'm trying to write a plugin for stetho, following [these steps](https://github.com/facebook/stetho).
It requires some initialization in onCreate method of a custom application.
```js
public class MyApplication extends Application {
public void onCreate() {
super.onCreate();
Stetho.... |
2018/03/03 | 641 | 2,083 | <issue_start>username_0: I want to switch between 2 values in a class.
Something like this,
```
{{part.fsp\_partner\_location}}
public onShowHide(controlToShow) {
this.render.setStyle(controlToShow, white-space=='normal' ? 'nowrap' : 'normal');
}
```
Above code is throwing an error: "white is not defined"
I... |
2018/03/03 | 622 | 2,008 | <issue_start>username_0: I have following code, i need detect my clicked element index:
```
$('#id1, #id2, #id3').click(function(){ console.log( magicIndex(); ) });
```
When I click `click` div, I need to get `0` as output, because this selector item index is 0.
When I click `click`, I must get `1` as output.<issue... |
2018/03/03 | 736 | 1,821 | <issue_start>username_0: For my assignment I have to check if a calculated value is within 0.05 of 0.5. To do this i thought subtracting one from another, taking the absolute value and checking if that is smaller or equal then 0.05 should do the trick. However when i try this piece of code.
```
x = abs(0.5 - 0.55)
if... |
2018/03/03 | 782 | 2,369 | <issue_start>username_0: I want to rank the results of a SQL query resultset according to some conditions:
* Occurrences of keyword
* First match keyword to title then company name then another column and so on..
* If keyword matches into more than 2 columns in a particular row then preference/higher rank should be gi... |
2018/03/03 | 5,176 | 15,978 | <issue_start>username_0: I tried to replace the training and validation data with local images. But when running the training code, it came up with the error :
>
> ValueError: Can not squeeze dim[1], expected a dimension of 1, got 3 for 'sparse\_softmax\_cross\_entropy\_loss/remove\_squeezable\_dimensions/Squeeze' (... |
2018/03/03 | 653 | 2,098 | <issue_start>username_0: In my template I have `click` events listeners attached:
I know I could use HostListener's, or Renderer2 as follows:
```
this.clickListener = this.renderer.listen(this.htmlElement, 'click'........
this.clickListener();
```
But, just in relation to the `template` bound event handlers, wil... |
2018/03/03 | 664 | 2,260 | <issue_start>username_0: I have an ArrayList contains Book objects, how can I get the index of a specific object according to its property "ID" value ?
```
public static void main(String[] args) {
ArrayList list = new ArrayList<>();
list.add(new Book("foods", 1));
list.add(new Book("dogs", 2));
list.add(new Book... |
2018/03/03 | 349 | 1,243 | <issue_start>username_0: I find either theories or python example which is not satisfactory as a beginner. I just need to understand a simple example for understanding the step by step iterations. Could anyone please show me the 1st and 2nd iterations for the Image that I have uploaded for value iteration?
[Grid world ... |
2018/03/03 | 665 | 2,623 | <issue_start>username_0: it seems that my `AlertDialog` is not working when formed and showed for the second time. I catch PickFsDone in main program and it seems like it doesn't get set to true when I call function below for the second time...
Any advice, what am I doing wrong ?
Thanks in advance,
regards,
Rob.
>
... |
2018/03/03 | 1,017 | 2,899 | <issue_start>username_0: I am a novice programmer and coder. So, I have taken 30 days of coding challenge in HackerRank, but when I am running [the "Day 2: Operators" problem](http://hackerrank.com/challenges/30-operators/problem) in C, it shows no errors. The code is:
```
#include
#include
#include
#include
#incl... |
2018/03/03 | 757 | 3,050 | <issue_start>username_0: I recently watched tutorial of my teacher, and he show us this code:
[](https://i.stack.imgur.com/MA3Z9.png)
And he also said `products` array which is type of `any []` **IS NOT USING BENEFITS OF STRONGLY TYPE** which is feat... |
2018/03/03 | 702 | 2,239 | <issue_start>username_0: I am trying to print out a succession of coefficients of a simple polynomial using `*args`
I roughly understand how `*args` works and I know how to use a simple loop to print out each coefficient, but in a `__repr__` function that is supposed to return only one thing as the return value of fun... |
2018/03/03 | 687 | 2,486 | <issue_start>username_0: I am using vue-social-sharing library for sharing in social media and it works fine but the only problem that I am encountering is that I can't share my article title, description, and image on Facebook. When I press the facebook share button it shares my website image title and og:description ... |
2018/03/03 | 1,000 | 3,376 | <issue_start>username_0: I would want to scrap the data from this website and store it in csv file in this manner.
[](https://i.stack.imgur.com/eWjPZ.png)
But when I try to scrap the data it is not stored in exact format. All the data is stored in th... |
2018/03/03 | 567 | 1,930 | <issue_start>username_0: I want to copy a Named Range from one workbook to another using VBA.
There are three files:
1. MACRO\_PLACED.XLSM <<<< Macro is here
2. SOURCE\_DATA.XLSX <<<< Data is here
3. DESTINATION\_DATA.XLSX <<<< Data to be copied here
Initially, only the first file is opened and the other two files a... |
2018/03/03 | 2,137 | 6,961 | <issue_start>username_0: I am trying to create a simple application to send live stream video over the socket in Python 3 with OpenCV. I am new to OpenCV and socket programming so if you can provide answer in detail I will be very grateful. Thank you.
Here is sender.py
```
import socket
import time
import cv2
captu... |
2018/03/03 | 889 | 3,240 | <issue_start>username_0: I'm trying to bypass importing from a module, so in my `__init__.py` I can inject code like this:
```
globals().update(
{
"foo": lambda: print("Hello stackoverflow!")
}
)
```
so if I do `import mymodule` I will be able to call `mymodule.foo`. That is a simple concept, useles... |
2018/03/03 | 522 | 1,618 | <issue_start>username_0: I have the following function:
```
CREATE OR REPLACE Function FindOffers
( przebieg_max IN number )
RETURN offer_type_table
AS
l_offers offer_type_table := offer_type_table();
BEGIN
FOR i IN (
SELECT * FROM szczegoly_oferty sz, oferty ofe
WHERE sz.przebieg <=... |
2018/03/03 | 410 | 1,296 | <issue_start>username_0: I have asked this question previously but for VB.NET here:
[Accessing buttons names using variables](https://stackoverflow.com/questions/41557129/accessing-buttons-names-using-variables)
Now I want to do the same but in C# and with CheckBoxes so for example, if I have 31 check boxes labeled "... |
2018/03/03 | 747 | 2,234 | <issue_start>username_0: I have a Django template in which I want to display:
* some data 1
* a chart of data 1
* some data 2
* a chart of data 2
* some data 3
* a chart of data 2
I have a Django template loop in my HTML which displays the data, and then a canvas for displaying each chart. The data displays correctly... |
2018/03/03 | 926 | 3,385 | <issue_start>username_0: I want to navigate inside the page with an animation using Javascript, but also change the URL so the user can click "back" to go back to the previous "page".
I have no idea how to approach this. Do I put the content I'm navigating to on a new html page, or on the same page?
What I've tried s... |
2018/03/03 | 1,559 | 6,262 | <issue_start>username_0: I have a recycler view that renders a list with an image and text. This image url is retrieved from the file server by passing the image\_ID and then this url is used to download the actual image.
Can this be done using fresco lib? Can anyone suggest me how to do this using fresco lib?<issue_... |
2018/03/03 | 1,181 | 5,066 | <issue_start>username_0: I have an or operator (||) with an integer but for some reason it gives me an error. The integer is location. i want to track the players location, so i can control all the actions in one chunk of code. The lines that look like `if (location == (1 || 2 || 3)` give me the error.
```
Actions:
... |
2018/03/03 | 1,247 | 4,798 | <issue_start>username_0: It is said that we'd better initialize a new pointer with NULL, or unexpected result will happen.But the truth is that when I add `NULL` as follows:
```
#include
int main(){
char \*str = NULL;
gets(str);
printf("%s\n", str);
return 0;
}
```
The outcome is:
```
Segmentation fault: 11
`... |
2018/03/03 | 675 | 2,395 | <issue_start>username_0: I would like to read a text file and get its content to a variable and use that variable everywhere.
```
var latest_date = "";
$.get('/data/latest_data.txt', function(data) {
latest_date = data; // eg "20180102"
}, 'text');
// and lots of similar functions like this
$(function() {
$.getJS... |
2018/03/03 | 504 | 1,745 | <issue_start>username_0: Let's say I have the following string:
`timeUTC = "14:28"`
And I would like to convert the above string to UTC+2.
So `timeUTCp2 = "16:28"`.
How can I do that using Python3? Is the quickest way to do this algebraically or using a dependency?<issue_comment>username_1: You can use a Promise ob... |
2018/03/03 | 750 | 2,251 | <issue_start>username_0: My problem is that it seems that my ul get´s a margin. I can't figure out why it doesn't go all the way to the left. this also leads to my site expanding.
```css
/* Challenge list */
.container_list{
width: 100%;
float: left;
background-color: red;
}
ul {
width: 100%;
floa... |
2018/03/03 | 735 | 2,514 | <issue_start>username_0: I am new to javascript.I have been working on a program where I use a json dataset in javascript by assigning it to a variable.The link of the dataset is below.
<https://raw.githubusercontent.com/Biuni/PokemonGO-Pokedex/master/pokedex.json>
I have to write a function where I take a pokemon's n... |
2018/03/03 | 1,708 | 4,656 | <issue_start>username_0: Consider the following code:
```
package main
import (
"time"
"fmt"
)
const (
format = "2006 01 02 15:04 MST"
date = "2018 08 01 12:00 EDT"
)
func main() {
aloc, _ := time.LoadLocation("America/New_York")
eloc, _ := time.LoadLocation("Europe/Berlin")
tn, _ := ti... |
2018/03/03 | 1,221 | 3,571 | <issue_start>username_0: For some reason even when I initialise the variable outside of the for loop, my code will not compile...
```
public static void main(String[] args) {
int x;
for (int i = 0; i < 4; i++){
x = 10;
}
System.out.println(x);
}
```
I get the error:
```
... |