date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/12 | 1,385 | 4,610 | <issue_start>username_0: I have this ViewModel:
```
public class DepositViewModel
{
public DepositViewModel()
{
DepositDate = DateTime.Now;
CollectedReceipts = new List();
CancelledReceipts = new List();
}
[Display(Name = "Deposit #")]
public long DepositId { get; set; }
[Display(Name =... |
2018/03/12 | 1,820 | 4,859 | <issue_start>username_0: I'm a Python and Pandas newbie here and first ever Stackoverflow question.
I'm working with some survey data and need to create multiple composite scores. The problem I have is that there are 50 satisfaction scores and 50 importance scores and therefore I need to calculate 50 composite scores ... |
2018/03/12 | 900 | 3,601 | <issue_start>username_0: I'm using ASP.NET Core 2.0, and I have a request object annotated like this:
```
public class MyRequest
{
[Required]
public Guid Id { get; set; }
[Required]
public DateTime EndDateTimeUtc { get; set; }
[Required]
public DateTime StartDateTimeUtc { get; set; }
}
```
... |
2018/03/12 | 898 | 3,100 | <issue_start>username_0: I am very new to doing time series in Python and Prophet. I have a dataset with the variables article code, date and quantity sold. I am trying to forecast the quantity sold for each article for each month using Prophet in python. [](https://i.stac... |
2018/03/12 | 516 | 1,921 | <issue_start>username_0: I have tried using `--removekeywords name:Login(keyword)` in the command line but the `log.html` file doesn't hide the keyword.
Can anyone please help me out at least to flatten the `Login` keyword in `log.html` file<issue_comment>username_1: If you want to hide credentials, there are two thi... |
2018/03/12 | 1,284 | 5,265 | <issue_start>username_0: I have a python virtual environment declared in my workspace settings, everything is fine with it.
Now I have a build task that calls a `make` target which in turn calls a pip package. When I run it, it doesn't use my `venv` even though it is the selected interpreter.
I've tried to add a `ac... |
2018/03/12 | 805 | 2,991 | <issue_start>username_0: I want to run feature files in a desired order or sequence, for example:
```
tags:"`@ProtractorScenario` or @CucumberScenario"
```
But cucumber scenario is getting executed first. Can someone guide me on this?
>
> Note: Cucumber is executing scenario based on alphabetical order of featur... |
2018/03/12 | 740 | 2,113 | <issue_start>username_0: I want to change values in a large amount of rows into something else.
I open my data from a csv using pandas as follows:
```
import pandas as pd
import numpy as np
import os
df = pd.read_csv('data.csv', encoding = "ISO-8859-")
```
I then slice my DF changing column names:
```
df1 = df['... |
2018/03/12 | 421 | 1,389 | <issue_start>username_0: I am new to React and wanted to inject the nav bar I created in HTML, into my original document. However the React component isnt linking to the div in the HTML, I'm not really too sure as to what is wrong to be honest!
```js
var NavBar = React.Component({
render () {
return (
[![N... |
2018/03/12 | 712 | 1,601 | <issue_start>username_0: I have the following table and i want to generate a view. See the result.
How can i achieve that?
I tried with group\_cat but that doesnt work :(
```
id product_id cat_id date
1 1 1 2018-05-01
2 1 1 2018-05-02
3 1 1 2018-05-04
4 1 1 2... |
2018/03/12 | 1,212 | 4,643 | <issue_start>username_0: Follow code:
**Fragment1.cs:**
```
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
view = inflater.Inflate(Resource.Layout.fragment_1, container, false);
gridView = (GridView)view.FindViewById(Resource.Id.grid_view);
gr... |
2018/03/12 | 612 | 1,906 | <issue_start>username_0: I am trying to make a regex to match all words that do not begin with a `.`. This word may be in the middle of a string, etc. and hence it is not guaranteed to be at the start or end of the string.
I have search online for answers to no avail as the other answers require the use of `^` or `$`.... |
2018/03/12 | 1,380 | 4,660 | <issue_start>username_0: I would like to know if it's secure to use `let` and `const` keywords while working with UI5. I don't know if returning a `let`, `const`, or even creating for instance a `sap.m.Table` with `let` would have adverse effects.
Maybe someone has some previous experience with this?<issue_comment>use... |
2018/03/12 | 1,093 | 3,656 | <issue_start>username_0: I'm learning how to work with VBA.
I need to read an Integer and store it in an Array breaking it down to single characters.
For example, if I input the number 1927, I need it to be stored as
```
Array[0] = 1
Array[1] = 9
Array[2] = 2
Array[3] = 7
```
I've been looking how to... |
2018/03/12 | 576 | 1,978 | <issue_start>username_0: In `winerror.h`:
```
...
#define NO_ERROR 0L // dderror
...
```
In `ErrorHelper.h` :
```
...
namespace ErrorCodes
{
enum Error
{
NO_ERROR = 0,// Not an error
...
}
}
...
```
Even if `#undef NO_ERROR` is written befor... |
2018/03/12 | 740 | 2,495 | <issue_start>username_0: I'm trying to run a nodejs app on my VPS but for somereason I get a ERR\_CONNECTION\_TIMED\_OUT error.
Here is my code:
```
const http = require('http');
const server = http.createServer((req, res) => {
res.end();
});
server.on('clientError', (err, socket) => {
socket.end('HTTP/1.1 400 ... |
2018/03/12 | 440 | 1,386 | <issue_start>username_0: When trying to create a custom pdf that includes another pdf url it throws an error, it doesn't like the `&` in the url. I tried all kinds of stuff including changing the `&` to `%26` or `&` nothing seems to work...
this is my code in netsuite debugger:
```
require(['N/render', 'N/search', 'N... |
2018/03/12 | 1,485 | 4,775 | <issue_start>username_0: When choosing a name for a tensorflow variable, this is ok:
```
>> tf.Variable(2, name='a')
```
However, this is not:
```
>> tf.Variable(2, name='a:b')
---------------------------------------------------------------------------
ValueError Traceback (most rece... |
2018/03/12 | 519 | 1,826 | <issue_start>username_0: Given that this is a working url with the correct routing using react-router-v4 and browserhistory:
>
> <https://localhost:8020/User/Category>
>
>
>
My code implemnetation does it right, but what if the user makes the following error whilst composing the url manually:
>
> <http://local... |
2018/03/12 | 477 | 1,633 | <issue_start>username_0: I've spent the last 2 hours searching for startup.sh and catalina.sh
as I need to find catalina.sh to add and verify some options, according to the CIS Benchmark.
The problem is that I couldnt find either startup.sh or catalina.sh as shown in the following code :
```
[root@localhost tomcat]# c... |
2018/03/12 | 974 | 1,769 | <issue_start>username_0: anyone can help to decode this?
var\_dump
```
sring(56441) "{"success":{"message":"PDF \u0444\u0430\u0439\u043b\u0430 \u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e!","name":"invoice-0000000001.pdf","data":"JVBERi0xLjQKMSAwIG9iago8PAo... |
2018/03/12 | 1,139 | 4,615 | <issue_start>username_0: In JVM languages there is a data type called Optional which says value can be Null/None. By using the data type of a function as Option(for example Option(Int)). Calling statement of function can take action.
How does one implement a similar approach in Python.
I want to create a function and ... |
2018/03/12 | 1,232 | 4,962 | <issue_start>username_0: I'm using mongoose to query a database for objects and wish to write each object to a file. The console.log shows me that the data I want is being returned from the query, but the file that is created by fs.append (./returned.json) is always empty. Is it not possible to do this within an async ... |
2018/03/12 | 327 | 1,184 | <issue_start>username_0: I need to make some mechanism that checks if a table X is columnstored or not and if it is not to convert it.
I am aware that to convert a table X for example to clustered columnstore index we can use the following code:
```
CREATE CLUSTERED COLUMNSTORE INDEX MyColumnStoreIndex
ON Table_X
``... |
2018/03/12 | 357 | 1,305 | <issue_start>username_0: I know how to create an exception, but I want to intentionally "break" another class.
Let there be two classes X and Y.
If X is running, how can I create an exception that causes the console to output an exception from Y?
Thanks!
~Java preferred
Edit:
Apparently +MarsAtomic and +Murat K. c... |
2018/03/12 | 1,548 | 4,204 | <issue_start>username_0: I am scraping real estate data to format into a tabular format. Some properties do not have all of the same details. For instance - a plot of land does not contain information on the number of bedrooms.
```
* 3 bd
* 1 ba
* 1,224 sq ft
* 6,098 sq ft lot
```
vs.
```
* 3.1 acre lot
```
... |
2018/03/12 | 196 | 578 | <issue_start>username_0: Hello is there any way to convert a JUCE string to a std::string? I cannot seem to figure out how to do it in any way.
```
string GetGate() { return (to_string(Gate.char)); };
juce::String Gate = "A1";
```<issue_comment>username_1: According to the JUCE manual, there is the method `std::strin... |
2018/03/12 | 637 | 2,389 | <issue_start>username_0: I have made a user profile card where the user can click on choose file to select and upload an image.
[](https://i.stack.imgur.com/By1Kj.png)
Everything works fine however I would like to change it so instead of having to cli... |
2018/03/12 | 431 | 1,547 | <issue_start>username_0: I have a data definition
I Deserialize JSON to this object
@return is JSON
```
JsonConvert.DeserializeObject>>(utils.RemoveJsonOuterClass("GetTable", JsonConvert.DeserializeObject(@return).ToString()));
olist = [
[{
"item": 1
"Name "One"
}],
[{
"item": 2
"Name "Two"
}],
[{
"ite... |
2018/03/12 | 505 | 1,858 | <issue_start>username_0: I'm trying to read a function call as a string and evaluate this function within another function. I'm using eval(parse(text = )) to evaluate the string. The function I'm calling in the string doesn't seem to have access to the environment in which it is nested. In the code below, my "isgreater... |
2018/03/12 | 559 | 2,110 | <issue_start>username_0: I have a c# Service, that performs a database renewal. every hour. I have uploaded it in the server. I adjusted it to seconds, it works a few times, and then does not work again. It also works if i press it a single time.
How do i make it work every hour, for ever? (until i make it stop).
I tr... |
2018/03/12 | 348 | 1,036 | <issue_start>username_0: I am trying to develop a regular expression for match if a string just contains letters, numbers, space and dot(.) anywhere and with no order.
Like this:
```
hello223 3423. ---> True
lalala.32 --->True
.hellohow1 ---> True
0you and me = ---> False (it contains =)
@newye ---> False (it contai... |
2018/03/12 | 982 | 3,897 | <issue_start>username_0: I am *still* [discovering Pylint](https://stackoverflow.com/q/48929752/6709630) and I understand why many *Pythonists* deactivate some (or many) warnings to lower `Pylint`'s voice, but for the moment, as a [Python newbie](https://stackoverflow.com/search?q=user:6709630+[python]) I want to use `... |
2018/03/12 | 306 | 1,211 | <issue_start>username_0: How can I avoid XSD validation of the application.xml file for Spring when starting up the server?
My company has the access cut to go out to the internet in some servers and the application fails on start up because it can't validate against the XSD in <http://www.springframework.org/schema/b... |
2018/03/12 | 248 | 970 | <issue_start>username_0: In my C# program, I plan to query my database for cities and states, and I want to store the information in some sort of list so that I can run a foreach loop.
I considered a hash table at first, but I'm not sure that would work since there can be multiple identical keys (cities with the same n... |
2018/03/12 | 409 | 1,578 | <issue_start>username_0: I'm writing a custom rule that will check whether the class under analysis is extending a type.
For example:
```java
class Bus {
}
class Transport {
}
class PublicTransport extends Transport {
}
class Bus should extend class Transport or a sub class of Transport.
public class EnsureSu... |
2018/03/12 | 1,498 | 5,462 | <issue_start>username_0: Task:
-----
I need to identify all palindromes within a directory. I use a proc contents and proc sort to identify the datasets within a directory, like so:
```
proc contents data = dPath._all_ out = dFiles (keep = memname);
run;
proc sort data = dFiles nodupkey; by memname;run;
```
I w... |
2018/03/12 | 1,103 | 3,939 | <issue_start>username_0: I'm trying to do some regex replace on files and the strings that I'm trying to replace contains things like `()[]{}`...etc and I want to keep as it after the replace, here is a simple example
```
string str = @"This is a drill (2).";
string reseult = Regex.Replace(str, "\\((\\d+)\\)", "\\($1\... |
2018/03/12 | 1,189 | 3,904 | <issue_start>username_0: I am trying to list all the branches that contains 'feature' in it.
Before posting this here I have referred to the solution provided [here](https://stackoverflow.com/questions/33400972/do-a-wildcard-filter-of-branch-names/33401085#)
The solutions provided there does not work for me - ie; `gi... |
2018/03/12 | 937 | 3,368 | <issue_start>username_0: I need Excel to detect the last column I have and sort on that column. I have a macro that generates a new column every time it is used so I cannot use a constant.
```
Sub sortyness()
Dim sortdata(A1 & ":", Cells(LastRow, LastColumn)) As Range
ActiveWorkbook.Worksheets("Compiled").Sort.SortF... |
2018/03/12 | 626 | 2,634 | <issue_start>username_0: I'm struggling with Bindings.when... I'm attempting to create a percentage score that updates when either the number of successful tests changes (reflected in the code below as 'successCountProperty'), or the total number of tests changes (reflected in the sizeProperty of 'results'). When I exe... |
2018/03/12 | 616 | 2,482 | <issue_start>username_0: I have the query
```
var result = (from myView in db.loginSessions
where myView.machine.ToUpper().Equals(machine.ToUpper())
&& myView.start >= myStart
&& myView.end <= myEnd
orderby myView.start
select new loginSessionList {
Id = myView.id,
Mac... |
2018/03/12 | 690 | 2,575 | <issue_start>username_0: I have python script and I need to retrieve the current consumer group offset for a set of consumers reading from a kafka topic, using a kafka1 broker cluster. These are native kafka consumers that store the offset in the kafka cluster, not in zookeeper.
The script itself does not need to cons... |
2018/03/12 | 755 | 2,639 | <issue_start>username_0: I am creating a web app in which I have a `Json` file in which I have many keys with values, like the following,
```
{
"Login_Header_Text": "Login",
"Login_Header_Recent_Updates": "Recent Updates",
"Login_TextBox_UserName": "User Name",
"Login_TextBox_Password": "<PASSWORD>",
"Login_... |
2018/03/12 | 807 | 2,532 | <issue_start>username_0: I want to combine 2 different set of arrays
**First Array**
```
Array
(
[0] => Array
(
[title] => pacifica-aurum-pride-towers
[getName] => pacifica-aurum-pride-towers
[getImg] => test
[getPrice] => 18
[getPlace] => erode
... |
2018/03/12 | 496 | 1,906 | <issue_start>username_0: Can you help me how can I solve this.. I am trying to display the values from the foreach array.. Relationship makes me more complicated to understand so I opt to do it on my way.
It displays an error of like this
Property [pic] does not exist on this collection instance.
```
$dataTagged ... |
2018/03/12 | 562 | 1,670 | <issue_start>username_0: I'm trying to display post's category name but it's not working.
How could I get this to work?
I've wrote the following in function.php
```
function wptuts_recentpost2($atts, $content=null){
$getpost = get_posts( array('number' => 1, 'offset' => 1) );
$getpost = $getpost[0];
$return = get_the_... |
2018/03/12 | 315 | 999 | <issue_start>username_0: I have a situation where I need a regex to find 4 consecutive numbers or strings
For example.
John12 - True (because it contains 4 consecutive characters)
M1593a - True (because it contains 4 consecutive letters)
La349a - False (because it fails to satisfy both)
How can we solve this?<issue_... |
2018/03/12 | 606 | 2,327 | <issue_start>username_0: I have a wicket page with a data panel that makes use of the `BreadCrumbBar` (org.apache.wicket.extensions.breadcrumb). If I go down a level a new breadcrumb is automatically added and the data panel is refreshed. If I click on one of the previous breadcrumbs my data panel gets updated correctl... |
2018/03/12 | 514 | 1,869 | <issue_start>username_0: I have an aspx page containing this code.
```
```
On the cs page, this is behind.
```
if (verificata == true)
rb_Vero.Checked = true;
else
rb_Falso.Checked = true;
```
When the "verificata" variable changes (true/false), the radio button does not always change.<issue_comment>user... |
2018/03/12 | 1,141 | 3,908 | <issue_start>username_0: I am using [Ng-bootstrap](https://ng-bootstrap.github.io/#/home) in an Angular 5 project. I am trying to create a dropdown in my navigation header, and i've managed to make it work, however it is in the background of the things in my container - and i'd of course like it to be in front.
This i... |
2018/03/12 | 369 | 1,174 | <issue_start>username_0: I have a list of words. Say:
```
list = ['this', 'that', 'and', 'more']
```
I want to replace words in such fashion:
```
x |y
-----------
this |that
plus |more
```
Every time a word from the list is in column `y`, I want to replace it with what's found in column `x` on the same row. If... |
2018/03/12 | 377 | 936 | <issue_start>username_0: When using Angular Flex Layout I have noticed that it applied `flex: 0 1 1e-09px` to an element.
Was just wondering what the `1e-09px` means and if this is a valid value for this field or just an error.<issue_comment>username_1: According to the [Github page](https://github.com/angular/flex-la... |
2018/03/12 | 2,154 | 5,939 | <issue_start>username_0: I have an array that looks like this:
```
array([[ 0, 1, 2],
[ 1, 1, 6],
[ 2, 2, 10],
[ 3, 2, 14]])
```
I want to sum the values of the third column that have the same value in the second column, so the result is something is:
```
array([[ 0, 1, 8],
... |
2018/03/12 | 6,238 | 18,085 | <issue_start>username_0: I am currently working on the ASTM protocol to send orders tests request to medical instrument. But I cannot send a message to the equipment correctly. To be more explicit, I want for example to send these frames:
```
String h1, s2, s3, s4, s5, s6 = "";
h1 = "H|@^\\|ODM-IdfDGIW... |
2018/03/12 | 351 | 1,172 | <issue_start>username_0: I have a url inside of a tag assigned to a data array. I entered in the following code:
```
$link = home_url();
'side_by_side_content' => [
"img" => [
"src" => "/wp-content/uploads/2018/02/hello.jpg",
"alt" => "Hello"
],
"title" => "H... |
2018/03/12 | 503 | 1,649 | <issue_start>username_0: I'm trying to create new SharePoint ListItem using Microsoft Graph.
To create a list item with simple fields like Title, my POST body looks like:
```
{
"fields":{
"Title":"Ehsan's REST"
}
}
```
But as soon as I add a field with the multichoice value I get `The request is malfor... |
2018/03/12 | 640 | 2,644 | <issue_start>username_0: I've been following along a book I've been studying as I'm rather new to C# and one of the projects is to create a date of birth calculator using the console template on VSC. Now i'm sure I've followed the tutorial correctly but for some reason my program close on the last line to present the e... |
2018/03/12 | 549 | 2,070 | <issue_start>username_0: I have square component with **selector 'app-square'**:
```
```
I have styles for that component:
```
input[type=text] {
width: 40px;
height: 40px;
font-size: 15pt;
text-align: center;
}
```
And i want that there will be no gap between two app-square elements... |
2018/03/12 | 578 | 1,195 | <issue_start>username_0: **My code**
```
var bills = [50.23, 19.12, 34.01, 100.11, 12.15, 9.90,
29.11, 12.99,10.00, 99.22, 102.20, 100.10, 6.77, 2.22 ];
var totals = bills.map(function(tip){
tip += 15/100;
tip = tip.toFixed(2);
return tip;
});
console.log(totals);
```
**RETURN... |
2018/03/12 | 721 | 2,796 | <issue_start>username_0: I need to use httpclient into foreach loop.
It is possible? What is the right way?
Here is my code:
```
this.attachToDelete.forEach(
element => {
this.documentService.DeleteAttachment(element, this.newDocumentId.toString());
console.log("upload delete from su... |
2018/03/12 | 377 | 1,429 | <issue_start>username_0: I'm working on ASP.NET MVC with EF6. How to add paging with items from model in view without calling any function from controller?
```html
@model IEnumerable
@foreach(var item in Model){
| @Html.DisplayFor(modelItem=> item.name) |
}
```<issue_comment>username_1: LINQ offers to extensions y... |
2018/03/12 | 572 | 1,928 | <issue_start>username_0: Recently, I took a subject called Data structure. I've created a program to try out my knowledge but don't know why the program did not work. I can't figure it out so I post it here to ask for solution. I hope people can help me. I am newbie here. So please ignore my opinion if my opinion is fo... |
2018/03/12 | 871 | 3,054 | <issue_start>username_0: Both [this answer](https://stackoverflow.com/a/9371717) on Stack Overflow and [cppreference.com](http://en.cppreference.com/w/cpp/io/ios_base/sync_with_stdio) suggest turning off stream synchronization to improve performance, arguing that stream synchronization would disable buffering.
Now thi... |
2018/03/12 | 3,856 | 12,753 | <issue_start>username_0: I am trying to reason how to convert an imperative style program into a functional one like Haskell.
The function is:
```
void calcPerim(point polycake[], int v, int y, double *perim1, double *perim2){
int next = 0;
int index = 0;
point points[2];
*perim1 = 0.0;
*perim2 =... |
2018/03/12 | 1,724 | 3,587 | <issue_start>username_0: Can someone let me know how I can do Polynomial Regression with [Apache Maths](https://mvnrepository.com/artifact/org.apache.commons/commons-math3) 3.6.1
Below are the data points I used for my testing
```
60735214881.391304 1520254800000.000000
60697824142.469570 1520258400000.000000
60651... |
2018/03/12 | 312 | 1,127 | <issue_start>username_0: Today I got an email from <EMAIL> saying that our Apple Push Service Certificate is about to expire.
I haven't seen any email from Apple like this. Wanted to see if it is legit?
>
> Dear \*\*\*,
>
>
> The following Apple Push Notification Service certificate, created for
> AppleID [email ... |
2018/03/12 | 1,277 | 3,334 | <issue_start>username_0: I would like to reverse the Key and value Pair of Customer ID and Number of Visits:
```
scala> val pair = input.map(line => line.split(" ") (2)).map(input => (input, 1)).reduceByKey(_+_).foreach(println)
```
Result:
```
(48784,3)
(47847,10)
(87673,8)
(67654,4)
```
I would like to reverse ... |
2018/03/12 | 448 | 1,629 | <issue_start>username_0: I have a lib which imports the vuex store
```
import {store} from "./index"
```
and that `index` file has an constant export like
```
export const store = new Vuex.Store({ ...
```
in the file I'm doing the import, I wanted to use something from the store after the import, but `store` was ... |
2018/03/12 | 1,019 | 4,199 | <issue_start>username_0: I created a mySQL database with phpMyAdmin. In this database I stored the names and the location of my friends (along with an id as a primary key for the database). I wrote and run the following php script to retrieve these data from the database and project them on my local web server (XAMPP):... |
2018/03/12 | 224 | 709 | <issue_start>username_0: ```
select cashiername
from payment
where CashierID = 007
```
I want to write a query when `cashierid = 007`, `cashiername` would be N/A and other `cashiername` appear according to their `cashierid`<issue_comment>username_1: ```
select CASE WHEN CashierID = '007' THEN 'N/A' ELSE cashiername... |
2018/03/12 | 520 | 1,803 | <issue_start>username_0: I am using glide 4.3.1
I want to call signature method but does't appears.
my code
```
Glide.with(context).load(context.getFilesDir().getPath() + "/" + imgName).into(imgView);
```
I want to do this
```
Glide.with(context).load(context.getFilesDir().getPath() + "/" + imgName).signature(new... |
2018/03/12 | 452 | 1,757 | <issue_start>username_0: I have one customView and customView added in scroll view. Now i want differentiate both touch events. My problem is when try to scroll, customView also getting touch event and when i try to change in customView, scroll view getting events.
1. How can we stop customView touch event when scrol... |
2018/03/12 | 1,225 | 3,744 | <issue_start>username_0: So I have a table of banners, and in that table there is a field that tells me on which sites they should be shown, like a poor man's relational table.
```
Banner.jpg | ABC,CDE,FGH
Banner2.jpg | IPO,IPOMON,IPOHLM
```
And so on. And I use `find_in_set()` to collect banners for a specifi... |
2018/03/12 | 784 | 2,907 | <issue_start>username_0: I'm not really sure about how to distinguish whether I should define a relationship as dependency or association for certain cases.
For example,
```java
class AttendanceSheet {
Map students;
boolean[] attend;
public void addStudent(Student s)
{
students.add(s.getName(),s.getStudentNu... |
2018/03/12 | 680 | 1,933 | <issue_start>username_0: I have the following string, where I would like to remove all instances of EUR
```
var str = "200.00 EUR, 33.33 EUR, 100.95 EUR, 300 EUR";
```
So the output is:
var str = "200.00, 33.33, 100.95, 300";
I tried
```
var res = str.replace("EUR", "");
```
But that only removes EUR one time.... |
2018/03/12 | 434 | 1,309 | <issue_start>username_0: It's probably really easy but I just can't figure out how to change the ticker symbol in the Tradingview widget. I want the chart to change to the tickers in a array i got. The chart needs to change every 30 seconds with a new ticker and do that forever.
This is what I got so far:
```html
[... |
2018/03/12 | 710 | 2,495 | <issue_start>username_0: I'm having difficulty getting my flask app to run by using the "python" method. I have no problems using
```
export FLASK_APP=microblog.py
flask run
```
but attempting to use
```
python microblog.py
```
will result in the following error
```
ImportError: No module named 'app'
```
where... |
2018/03/12 | 404 | 1,467 | <issue_start>username_0: Here's an example:
<https://phabricator.wikimedia.org/diffusion/EPFM/browse/master/?grep=BeforeFreeTextSubst>
A Mediawiki extension where Hooks::run( 'PageForms::BeforeFreeTextSubst', ...) gets invoked but there's no other record or trace of where it's defined. If there was some mapping of st... |
2018/03/12 | 442 | 1,604 | <issue_start>username_0: its objective is to print all Fibonacci numbers up to the 93th
```
#include
void main(){
unsigned long long first=0,second=1,sum;
printf("%llu,%llu",first,second);
unsigned char hops=1;
while (hops<93) {
sum=first+second;
printf(",%llu",sum);
first=second;
second=sum;
hops++;
}
pri... |
2018/03/12 | 879 | 3,552 | <issue_start>username_0: How can i reduce the blur effect on a UIVisualEffectView it gives me options of light, extraLight and dark which are not good enough for me i am trying to achieve something like this
[](https://i.stack.imgur.com/s6DxY.png)<iss... |
2018/03/12 | 515 | 1,733 | <issue_start>username_0: I have two files: test1.py and test2.py
in test1.py:
```
a = 1
def printa():
print a
```
in test2.py:
```
from test1 import a, printa
a = 2
printa()
```
I got
```
1
```
but if I change the test2.py to
```
import test1
test1.a = 2
printa()
```
I got **2** instead. How does it wo... |
2018/03/12 | 652 | 2,262 | <issue_start>username_0: Example text:
```
START
This is example example example example example example example example .
END
START
This is example 1234 14 756 214 6456 5 2 4234 66 match.
END
START
This is This isThis isThis isThis isThis isThis isThis isThis is.
END
```
I need to only match the text that is betwee... |
2018/03/12 | 221 | 877 | <issue_start>username_0: I'm trying to get the url that the Connection uses to connect the database as following :
```
getEntityManager().unwrap(SessionImplementor.class).connection().getMetaData().getURL();
```
But I get this error :
```
java.lang.IllegalStateException: No transactional EntityManager available
``... |
2018/03/12 | 1,093 | 4,174 | <issue_start>username_0: I am trying to output some svgs and output them from a list, here is my render method:
```
render() {
const renderTag = () => {
const Tag = this.props.id
return()
}
return (
{renderTag()}
)
}
```
However, the DOM node is alway... |
2018/03/12 | 1,304 | 4,489 | <issue_start>username_0: How to get image src, after click on other image?
```js
$(document).ready(function() {
$('img.getimage').click(function() {
alert($(this).attr('src'));
});
});
```
```css
.sinistra {
width: 150px;
}
.getimage {
width: 50px;
}
```
```html
.
How can I catch fatal crashes in Android?
Thanks!<issue_comment>username_1: Have a try to write a class that implements interface java.lang.Thread.UncaughtExceptionHandler.... |
2018/03/12 | 2,201 | 8,868 | <issue_start>username_0: I'm trying to add [KnpLabs Doctrine Behaviors](https://github.com/KnpLabs/DoctrineBehaviors) - and precisely, the [Translatable Behavior](https://github.com/KnpLabs/DoctrineBehaviors#translatable) - on one of the entity in my API Platform project.
Here's what I've done so far :
```
names... |
2018/03/12 | 480 | 1,258 | <issue_start>username_0: Is there a more *tidy* way to achieve the following?
```
d = data_frame(domain = c('http:news.com/', 'http:news.com/', 'http:news.com/'),
url = c('http:cnn.com/article/123', 'politics', 'economics'))
d %>% mutate(url = {
f = !str_detect(url, '^http'); # filter
replace(url, ... |
2018/03/12 | 997 | 3,191 | <issue_start>username_0: This is the function I found on CodeReview site, it determines if a number is a prime, while also handling negative numbers. There are few things I can't really catch up with.
1) Why is the first condition `<= 3` when it's supposed to deal with negatives?
2) What does `return n > 1` actual... |
2018/03/12 | 626 | 2,469 | <issue_start>username_0: I'm trying to read a file but I can't seem to make it work. It shows an error: "File not found exception". The system cannot find the file specified. I enclosed the code below. Can anyone solve this issue?
```java
package trailfiledemo;
import java.io.File;
import java.io.FileNotFoundExceptio... |
2018/03/12 | 559 | 2,147 | <issue_start>username_0: I'm trying to run Laravel project on AWS EC2. It was working fine until uploaded a new version to deploy. All routes return error 404 except for '/' though all routes exist. httpd.conf in /etc/httpd/conf contains this
```
AllowOverride All
# Allow open access:
Require all granted
```
I alwa... |
2018/03/12 | 1,501 | 4,058 | <issue_start>username_0: ```
enter code hereerror: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
```
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;**file**='/private/<KEY>pip-build-g2pxxnlc/murmurhash/setup.py... |
2018/03/12 | 1,010 | 3,958 | <issue_start>username_0: I'm trying to pass the result of one test to another in pytest - or more specifically, reuse an object created by the first test in the second test.
This is how I currently do it.
```
@pytest.fixture(scope="module")
def result_holder:
return []
def test_creation(result_holder):
objec... |
2018/03/12 | 477 | 1,743 | <issue_start>username_0: I want to create a BLE Connection between my Laptop (Windows 10) and a BLE Device which will be the Master.
I installed Bluez and I can detect Bluetooth devices like my Smartphone but no device that only supports BLE. I want to download gattlib with `pip install gattlib` but I got an `OSError: ... |
2018/03/12 | 551 | 1,903 | <issue_start>username_0: I recently began using the Jsoup library and have had some issues accessing classes and printing the parsed code. I want to print out the team name ("NYE") and the amount of wins (14), and I have tried multiple ways to execute this problem, including using getElementsByClass, getElementsByTag, ... |
2018/03/12 | 504 | 1,755 | <issue_start>username_0: I need to perform an insert to Cassandra table without creating tombstones for any column. I am using a query similar to this :
`insert into my_table(col1,col2,col3) values(val1,val2,null)`
where col1, col2 and col3 are all the attributes in my\_table.
Is there any other solution or workaroun... |
2018/03/12 | 660 | 2,939 | <issue_start>username_0: I've just started looking into ReactiveUI and I guess I'm missing something. Say I have a 'Connect' button and want to create a new network connection based on the server address in a TextBox. I thought, I'd create a ReactiveCommand and bind it to the Button, then do something like WithLatestFr... |
2018/03/12 | 488 | 1,719 | <issue_start>username_0: Why this code not working?
html
```
Ending Project
Changing
========
```
The Javascript code:
```
$("input").on("click" , function(){
$("h1").css("background-color" , "black");
});
```
I trying to change the background color when I click the button
but it not working and I am... |
2018/03/12 | 275 | 865 | <issue_start>username_0: I have following list:
```
cnames = [" green ", " blue ", " yellow ", " gray ", " pink ", " orange ", "purple ", " red ", "brown "]
```
How do I get 6 random and unique indexes representing a number between `0` and `len(cnames)` from that list?<issue_comment>username_1: You can use python st... |