date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/17 | 602 | 2,308 | <issue_start>username_0: So in my class I want to select a function to use as my activation function as an argument. Currently I do this through
```
class NeuralNetworks:
def __init(self, n_inputs, layer_vector, func='sig'):
(...)
self.func = func
def sigmoid(self, x):
(...)
def ... |
2018/03/17 | 613 | 2,113 | <issue_start>username_0: Assume that I have a matrix `A = rand(n,m)`. I want to compute matrix B with size n x n x m, where `B(:,:,i) = A(:,i)*A(:,i)';`
The code that can produce this is quite simple:
```
A = rand(n,m); B = zeros(n,n,m);
for i=1:m
B(:,:,i) = A(:,i)*A(:,i)'
end
```
However, I am concerned about speed... |
2018/03/17 | 326 | 1,049 | <issue_start>username_0: ```
@IBAction func endEditingText(_ sender: Any) {
let baseURL = "http://api.openweathermap.org/data/2.5/forecast?q"
let APIKeysString = "&appid=14b92e1046c4b6e4f4d5adda8259131b"
guard let cityString = sender.text else {return}
if let finalURL = URL (string:baseURL + cityString... |
2018/03/17 | 291 | 902 | <issue_start>username_0: I need to write a function in pandas which gets two series as arguments: one is the grades of several students, another is their gender. As a return I need to get a dictionary with keys "male" or "female" and values which are the means of the grades over gender... As an example,if
```
grades ... |
2018/03/17 | 419 | 1,546 | <issue_start>username_0: It's been a pain to type code in eclipse, sublime text makes everything much more easy. I can't seem to find anything. I can only find "How to add eclipse-like key bindings for sublime". I doesn't seem possible can anyone help?<issue_comment>username_1: `Eclipse` doesn't provide all the same fe... |
2018/03/17 | 417 | 1,533 | <issue_start>username_0: In my Ionic 3 application, I want to submit a form when I click on the **go button** from my mobile keyboard.
I want to trigger an event or call a function when I click on the **go button** on my mobile keyboard.<issue_comment>username_1: `Eclipse` doesn't provide all the same features as `su... |
2018/03/17 | 437 | 1,563 | <issue_start>username_0: Prestashop 1.6 has some strange functions. One of them is:
```
\themes\my_theme\js\autoload\15-jquery.uniform-modified.js
```
Which add span to radio, input button. For example:
```
```
If this span has class checked then checkbox is checked. the problem is when quest user want buy produ... |
2018/03/17 | 1,864 | 7,285 | <issue_start>username_0: I have the following code in ASP.Net Generic handler to download the file.
```
// generate you file
// set FilePath and FileName variables
string stFile = FilePath + FileName;
try {
response.Clear();
response.ContentType = "application/pdf";
response.AppendHeader("Content-Dispositi... |
2018/03/17 | 1,498 | 4,751 | <issue_start>username_0: I want to retrieve the customers who have made a total of at least 2 transactions based on three columns. Y - Successful Transaction
EX:
```
Customer_Name Col1 Col2 Col3
Customer1 Y Y N
Customer2 N N Y
Customer3 Y Y N
```
For the ... |
2018/03/17 | 632 | 2,093 | <issue_start>username_0: I have a Javascript Web application. I trying to read or write to the Cloud Firestore database but it returns this error in the browser console.
**THE ERROR:**
>
> Failed to load <https://firestore.googleapis.com/google.firestore.v1beta1.Firestore/Write/channel?VER=8&RID=21505&CVER=21&X-HTTP... |
2018/03/17 | 336 | 1,251 | <issue_start>username_0: When trying to add a new EF Connection to a SQL Server I get this exception:
>
> Failed to retrieve data for this request.
> Method not found: 'Void Microsoft.SqlServer.Management.Sdk.Sfc.EnumResult.set\_CommandElapsedTime(System.TimeSpan)
>
>
>
Facts:
* "Test Connection" works fine
* ... |
2018/03/17 | 937 | 2,505 | <issue_start>username_0: This is the image:
[](https://i.stack.imgur.com/RPxcb.jpg)
I have to use echo inside a `td` element of an HTML table. When I am trying this, it is showing an angle bracket error. How can I avoid that error? Below is my code.
```
| Net Amount... |
2018/03/17 | 296 | 1,128 | <issue_start>username_0: How to implement an `onItemClickListener()` on a custom `listView` in kotlin?\_
```
title_list_view.setOnItemClickListener{ adapterView: AdapterView<*>?,
view: View?, position: Int, l: Long ->
}
```
what to do to start a new activity after clicking an item of a Custom `ListView`?<issue_... |
2018/03/17 | 674 | 2,629 | <issue_start>username_0: I have a question about default arguments in c++. If I a have a function like this:
```
int foo(int* obj = new Int(4)) {
/* Stuff with obj. */
}
```
Now, of course, the integer is here just used as an example, but the question is if I were to provide a value for the argument like this:
... |
2018/03/17 | 666 | 2,563 | <issue_start>username_0: I tried so many ways but could not find a way to add at least four paths to the Firestore.
My JSON tree is as follows:
`ActiveTrades -> Userid -> autogeneratedId -> data fields`
I've tried as follows:
```
var ref = firebase.firestore();
var addOrder = ref.collection("ActiveTrades").doc(user... |
2018/03/17 | 803 | 3,530 | <issue_start>username_0: Recently I have been following some tutorials on Unity, wanting to get into some game programming. Now, I noticed that the guy in the tutorial does the following to copy a parameter to a variable:
```
private Dictionary inventoryRequirements;
public Job ( Dictionary inventoryRequirements) {
... |
2018/03/17 | 1,727 | 7,018 | <issue_start>username_0: In my activity there's a RecyclerView and a button to add items to the RecyclerView. Each item has two EditTexts.
[Here's a Screenshot](https://i.stack.imgur.com/8bL1J.png)
When i scroll down and up, the EditTexts get empty. and sometimes the value entered in the EditText changes it's pos... |
2018/03/17 | 889 | 2,646 | <issue_start>username_0: I am working on a website and I want the navigation (only home the homepage) to be transparent and the image to cover the full screen. This is what I have so far:
[](https://i.stack.imgur.com/RchgS.jpg)
The nav-bar is styled... |
2018/03/17 | 625 | 1,985 | <issue_start>username_0: I am trying to install pythonmagick on OSX (High Sierra).
I followed DwishR's instructions here: <https://gist.github.com/tomekwojcik/2778301>
Downloaded pythonmagick from here: <http://www.imagemagick.org/download/python/>
Modified BOOST\_ROOT=/usr/local/Cellar/boost/1.66.0/
and the make fil... |
2018/03/17 | 734 | 2,337 | <issue_start>username_0: I have a SSL-certificate Comodo PositiveSSL.
There are files:
```
AddTrustExternalCARoot.crt
COMODORSAAddTrustCA.crt
COMODORSADomainValidationSecureServerCA.crt
domain.com.key
domain_com.crt
```
Requirements vendor:
```
The certificate, private key, and certificate chain must be PEM-encode... |
2018/03/17 | 257 | 1,124 | <issue_start>username_0: I want to send a template email to perform email verification of our users.
The template email should contain a link which need to call http POST request to somewhere. And than from third party API (ex. elasticemail) handle that request via JavaScript and do another POST request to the actual ... |
2018/03/17 | 516 | 1,985 | <issue_start>username_0: I am trying to write cursor that would insert into table, but I am receiving error, need help with this. Error that I am receiving is ORA-06550.
```
DECLARE
CURSOR cur_rating IS
SELECT bc.name, bc.title, bc.checkoutdate, bc.returneddate,
b.categoryname,b.... |
2018/03/17 | 319 | 1,368 | <issue_start>username_0: I've searched about this a lot. In keras documentation it says that model.save() saves all the relevant info, i.e. model architecture, weights, optimizer state,...
Some other posts here on stackoverflow, mentioned saving the weights and loading them in the future to resume training, but the an... |
2018/03/17 | 507 | 2,019 | <issue_start>username_0: I have published an app to Google Play and I would like to add a leaderboard to it now.
I followed some tutorials about it (on GitHub) but I still can't sign in:
```
void SignIn()
{
Social.localUser.Authenticate ((bool success) =>
{
if(success)
GameObje... |
2018/03/17 | 666 | 2,395 | <issue_start>username_0: I want my `label2.Text` to display each concecutive result of the multiplication table, but only the last result gets displayed.
I made that each checkbox equals only one math table. checkbox1 = multiplication table 1, checkbox2 = multiplication table 2 and so on...
Why is only the last result... |
2018/03/17 | 573 | 2,013 | <issue_start>username_0: I'd like to send output of shell command to client.
Here is the code snippet which handles POST request:
```
app.post('/', function(req, res) {
console.log("request is received");
const ps = spawn('sh', ['test.sh', req.body.code]);
ps.stdout.on('data', (data) => {
console... |
2018/03/17 | 521 | 1,730 | <issue_start>username_0: Given two *sorted* arrays of integers A1, A2, with the same length `n` and an integer `x`, I need to write an algorithm that runs in O(nlog(n)) that determines whether there exist two elements `a1, a2` (one element in each array) that make `a1+a2=x`.
At first I thought about having two index i... |
2018/03/17 | 521 | 2,041 | <issue_start>username_0: I thought I knew how to declare variables until I just saw this example.
In the example a constant is declared.
```
let timeOfDay: String
```
I thought you could not declare a variable/constant without initializing it unless you declared it as an Optional?
Of course the program bombs when ... |
2018/03/17 | 740 | 2,575 | <issue_start>username_0: I have a problem with following 16-bit TASM program which evaluates the expression (a*b+c*d)/(a-d):
```
MyCode SEGMENT
ORG 100h
ASSUME CS:SEGMENT MyCode, DS:SEGMENT MyCode, SS:SEGMENT
Start:
jmp Beginning
a DB 2... |
2018/03/17 | 824 | 3,047 | <issue_start>username_0: In Woocommerce, I have created a custom product type `live_stream`.
But when I create a new product within this custom type and I publish it, the product remains a "simple product" and doesn't get the `live_stream` custom type set for it.
What I am doing wrong? How to make that custom produ... |
2018/03/17 | 1,315 | 4,892 | <issue_start>username_0: I'm building my own custom input fields. I want to use `ControlValueAccessor` to make use of `FormGroup` with `FormControlName` as well as `ngModel`.
Problem is when I have two input fields in one form. Those inputs are out of sync but `FormGroup` value is in sync.
Here is sample app: <https:... |
2018/03/17 | 916 | 3,606 | <issue_start>username_0: I am learning Python through a project and am running into an issue with subclassing. Based on everything I have read the process is pretty straightforward, but calls from the sub class to methods from the base class result in attribute not found errors.
My code sample includes the pertinent p... |
2018/03/17 | 675 | 1,854 | <issue_start>username_0: I have a function func() definition which contains a for() cycle.
Can I then pass func() to lsode() to be resolved as an ODE?
Update: Example of the code.
```
int = [0; 0];
slp = [0; 1];
x = [1:10];
r = zeros(1,10);
for id = 1 : 2;
r = r + int(id) + slp(id)*x;
end
plot(x,r);
function ydot ... |
2018/03/17 | 507 | 1,515 | <issue_start>username_0: I have script in which I want to replace a set of strings indicated by ##
```
script <- c("This is #var1# with a mean of #mean1#")
```
My key value list is:
```
pairs <- list(
list("#var1#", "Depression"),
list("#mean1#", "10.1")
)
```
My loop look... |
2018/03/17 | 636 | 2,480 | <issue_start>username_0: While implementing a unit test using JMockit with a `@Capturing` annotation
and a Verification block for the "captured" variable I have 2 outcomes:
1. IntelliJ: I can run and debug successfully, validating that the verification behaves correctly.
2. Executing same test code with command line ... |
2018/03/17 | 899 | 2,934 | <issue_start>username_0: I am using the following code:
```
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import serial
import serial.tools.list_ports
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk
class SerialComm(Gtk.Window):
glade = "serial_comm.glade"
builder = Gtk.Builder.new_from_... |
2018/03/17 | 659 | 2,282 | <issue_start>username_0: I have an SVG image, in which there are individual circles that I want to rotate about their own center (the center of the circles). However when I set `transform-origin:center`, and then apply a transform, it starts rotating about the center of the whole SVG image. Is there any way to set the ... |
2018/03/17 | 384 | 1,294 | <issue_start>username_0: For example, before:
```
Titles
Description
```
After:
```
Titles
Description
```<issue_comment>username_1: Use the `Emmet: Remove Tag` command:
[](https://i.stack.imgur.com/JjAyc.gif)
Setup a keybinding for t... |
2018/03/17 | 557 | 1,723 | <issue_start>username_0: My goal is to get a list which has the same structure as the two initial lists, the difference being that each element is necessarily a logical vector.
Consider two lists:
```
mlist <- rep(list(rep(c(0,2,4),68),c(1),
sample(x = c("a","b"),size = 1, prob = c(.5,.5))),200)
klist <... |
2018/03/17 | 568 | 2,131 | <issue_start>username_0: I am wanting to update an @Input property from a child and for the changes to take effect on the parent.
Parent TS (document-details):
```
export class DocumentDetailsComponent implements OnInit {
view: string = 'editor';
}
```
Parent HTML (document-details):
```
```
Child TS (document... |
2018/03/17 | 455 | 1,522 | <issue_start>username_0: I can't find what's wrong in my code and tried everything. It's my first time working with maps so I'm not sure this is how I get the value of the second key. This is my code:
```
bool DeleteConnection(ServerData &sd, ServerName sn, UserName un){
if(sd.find(sn) == sd.end()){
return false;
}
e... |
2018/03/17 | 650 | 2,416 | <issue_start>username_0: Basically I have 2 csv file as below:
```
File 1: File 2: Current output:
Num Num2 Num
1 1 1
2 2 2
3 3 3
4 4 4
Num2
... |
2018/03/17 | 839 | 3,105 | <issue_start>username_0: How do I create a Timer?
For my project I have to create a Timer, which is counting down, but
```cs
Task.Delay();
System.Threating.Threat.Sleep();
```
is not working, because it stops the whole application and I need it to stay responsive, for my timer to visually decrease.
The Timer seems ... |
2018/03/17 | 1,062 | 3,194 | <issue_start>username_0: I've been working on a single line of code for three days and I found out it seems the memory allocated not as I supposed.
I have a `Buffer` class which owns two `int` variables and a `*float` pointer, which I think takes up 16 bytes in memory.
I also have a `Film` class which holds two `int`... |
2018/03/17 | 628 | 2,154 | <issue_start>username_0: I'm learning Python (3.6.3) and making a silly (and very linear) chatbot to get started. At one point the chatbot asks you to guess its age, I used randint to generate a number between 1-1000 and want to use the outputted random integer in an if statement (so the chat bot is either happy or ups... |
2018/03/17 | 1,988 | 6,944 | <issue_start>username_0: Is there a way to import a CSS file into a styled component?
One of my dependencies, [React Quill Editor](https://github.com/zenoamaro/react-quill), is themeable by importing their CSS as a base and applying changes on top of it. All of my components are styled components, and I'd like to keep... |
2018/03/17 | 1,899 | 6,563 | <issue_start>username_0: So far I can only manage to delete the first id (in this case the id with "12345").
Im trying to delete the row with `id` 2 within `books`-array
```
Libary Table:
{
"_id": {
"$oid": "12345"
},
"libaryName": "A random libary",
"Books": [
{
... |
2018/03/17 | 1,761 | 6,053 | <issue_start>username_0: I ran this code and I don't understand how the output is `2`? As far as I'm concerned the output should always be `1`?
Code:
```
(define (count p l)
(if (empty? l)
0
(if (p (first l))
(+l (count p (rest l)))
(count p (rest l)))))
(define (ident x)
x)
(cou... |
2018/03/17 | 768 | 2,491 | <issue_start>username_0: Trying to learn 3D programming, I am currently implementing a class which batch-renders cubes with OpenGL by pushing them to the GPU each frame. I tried to implement some crude lighting by 1) Sending each face normal to the GPU as part of the vertex attributes 2) Checking the direction of said ... |
2018/03/17 | 1,137 | 4,054 | <issue_start>username_0: There are two `QListWidget` with the same number of the items. How can synchronize their scrolling?
I mean when I scroll one of them, the other one should get same scrolling.<issue_comment>username_1: You must use the `valueChanged()` signal from the `verticalScrollBar()` of `QListWidget`, si... |
2018/03/17 | 578 | 2,188 | <issue_start>username_0: I have the following tables:
```
Table "Staff"
StaffID
StaffName
Table "AssignedStaff"
StaffID
EventID
Table "Events"
EventID
Date
```
I want to display the details of all Staff members except those where there is an association with an Event with a specified Date value. I've tried the fol... |
2018/03/17 | 684 | 2,528 | <issue_start>username_0: I have set up an Azure WebApp (Linux) to run a WordPress and an other handmade PHP app on it. All works fine but I get this weird CPU usage graph (see below).
Both apps are PHP7.0 containers.
SSHing in to the two containers and using top I see no unusual CPU hogging processes.
When I reset b... |
2018/03/17 | 2,311 | 7,151 | <issue_start>username_0: How to create directory tree in *Perl* to comply with *Fancytree* expected JSON [format](https://github.com/mar10/fancytree/wiki#define-the-tree-data)?
This is the *Perl* part I came up with, that traverses through given path:
```
sub get_tree
{
my ($gpath) = @_;
my %r;
use File:... |
2018/03/17 | 1,497 | 4,726 | <issue_start>username_0: We're using flake8 and pylint to do our code style checks on a project.
But the problem is, none of those do any checks for how lines are split. Since consistency is nice in a project it looks really weird that we find
```
foo = long_function_name(var_one, var_two,
va... |
2018/03/17 | 865 | 2,791 | <issue_start>username_0: I have a html file where I have some variable like {Ticket}. In nodejs I am trying to replace that variable into an image what I have. So basically the output will be a pdf file.
So far now my code looks like this
ticket.html looks like this
```
| | |
| --- | --- |
| | {Ticket} |
var ht... |
2018/03/17 | 1,524 | 4,444 | <issue_start>username_0: I'm writing a Sudoku solving program and I'm a bit confused on using pointers with 2D arrays. Currently I am defining a `puzzle` like so:
```
int puzzle[9][9] = {
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},... |
2018/03/17 | 1,112 | 4,377 | <issue_start>username_0: I try to use Readmore.js, a jQuery plugin for collapsing and expanding long blocks of text with "Read more" and "Close" links, for the first time and can't really understand the reason why nothing changes.
I try to get article contents collapsed and Read more button to appear.
I checked twic... |
2018/03/17 | 965 | 2,487 | <issue_start>username_0: In My golden gate big data for kafka. when i try to update the record am getting only updated column and primary key column in after part in json file
```
{"table":"MYSCHEMATOPIC.PASSPORTS","op_type":"U","op_ts":"2018-03-17 13:57:50.000000","current_ts":"2018-03-17T13:57:53.901000","pos":"000... |
2018/03/17 | 457 | 945 | <issue_start>username_0: I have a log of security cameras.
I need only the IP addresses and date
How do I get out.
```
Logon
admin
07/03/2016 21:55:50
125.035.058.002
Logoff
admin
07/03/2016 21:50:02
125.035.058.002
```<issue_comment>username_1: The proper way (don't use awk, sed, regex etc...) using [xmlstarlet](/... |
2018/03/17 | 1,338 | 3,379 | <issue_start>username_0: Currently, i have a list containing:
```
table = [[3, 'AVENGERS',PACIFIC'],[1, 'A WALK,DRAGONBALL'],[2, 'A WALK,DRAGONBALL'],[5, 'A WALK,DRAGONBALL'],[6, 'JAMES BOND,MISSION'],[7,'JAMES BOND,MISSION']]
```
and I'm writing a program **to extract the numeric value** from each list within the t... |
2018/03/17 | 590 | 2,212 | <issue_start>username_0: I am querying users created in Laravel by month, here is my code
```
$devlist = DB::table("users")
->select("id" ,DB::raw("(COUNT(*)) as month"))
->orderBy('created_at')
->groupBy(DB::raw("MONTH(created_at)"))
->get();
```
Thi... |
2018/03/17 | 246 | 898 | <issue_start>username_0: I need to use spring boot devtools to force reload of static resource during dev time.
I added follow code to my pom
```
org.springframework.boot
spring-boot-devtools
true
runtime
```
but maven did not found the dependecy,
I need to add respoitory uri?<issue_comment>username_1: If you... |
2018/03/17 | 395 | 1,380 | <issue_start>username_0: I have this problem with VueJS Laravel
This is my Home.vue
```
|
{{models.nom}}
| |
import axios from 'axios'
export default{
data() {
return {
model: {}
}
},
created:function(){
this.fetchDataResto()
},
methods: {
fetchDataResto(){
var vm = this
axios.get('/test')
.then(fun... |
2018/03/17 | 772 | 2,648 | <issue_start>username_0: How to get the Object from a string?
I written a localStorage util, in it there are `get` and `set` methods.
in the set method:
```
function fnGet(name){
var getVal=storage.getItem(name);
if(getVal==null){
return console.log('the localstorage did\'t have'+name);
}
if((getVal.split(':-:')... |
2018/03/17 | 2,021 | 5,454 | <issue_start>username_0: I have array like below:
```
Array(
[top_menu] => Array(
[li] => Array(
[a] => Array(
[clr] => #FF00FF
)
[a:hover] => Array(
[clr] => #FF6600
)
)
)
[wrap-zfcnt] => Array(
[a] =... |
2018/03/17 | 480 | 1,754 | <issue_start>username_0: I am trying to use the [convolutional residual network neural network architecture](https://en.wikipedia.org/wiki/Residual_neural_network) (ResNet). So far, I have implemented simple convolutions (conv1D) for time series data classification using Keras.
Now, I am trying to build ResNet using K... |
2018/03/17 | 452 | 1,572 | <issue_start>username_0: I need to write a function on pandas which calculates the total yearly tax paid given monthly income on the following basis: the regular rate is *13%*, but when income for the year becomes larger than *1000* units, from the next month tax of *20%* is imposed.
For example, `calculate_tax(pd.Seri... |
2018/03/17 | 537 | 1,917 | <issue_start>username_0: i'm new to codeigniter i can't not get data from the controller using the ajax request i think i do mistake in writing the url of the controller function in ajax call
**here is the code of my ajax call**
```
$(document).ready(function(){
$("#fname").focusout(function(){
// alert()... |
2018/03/17 | 1,162 | 4,507 | <issue_start>username_0: I'm trying to set up some unit tests for a private project. Since I don't mind the exact runner, I tried NUnit, XUnit and MStest, but none worked so far.
After some research, I cloned the official Microsoft repository here :<https://github.com/dotnet/docs/blob/master/samples/core/getting-start... |
2018/03/17 | 603 | 2,032 | <issue_start>username_0: I'm working on parsing [this](https://www.arsenal.com/fixtures) web page.
I've got `table = soup.find("div",{"class","accordions"})` to get just the fixtures list (and nothing else) however now I'm trying to loop through each match one at a time. It looks like each match starts with an article... |
2018/03/17 | 650 | 2,479 | <issue_start>username_0: I currently have a Custom map renderer in my Xamarin Forms that use for each platform the native Map renderer.
For iOS, I'm trying to add a tracking button to come back to current position.
I have the code to create the button :
```
var button = MKUserTrackingButton.FromMapView(Map);
... |
2018/03/17 | 896 | 3,007 | <issue_start>username_0: I'm trying to implement building a singly-linked list from an `Iterator`, keeping the order of elements.
The structure is defined as:
```
#[derive(Debug)]
struct List {
list: Node,
}
type Node = Option>>;
#[derive(Debug)]
struct Link {
head: T,
tail: Node,
}
```
I was thinking of keepi... |
2018/03/17 | 672 | 2,369 | <issue_start>username_0: You have:
1. an Oracle database
2. an Oracle Client installation, including SQL\*Plus
3. the TNS information for #1
4. BUT NO TNSNames.ORA file or the desire to create and maintain one
How can you get your SQL\*Plus connection going?<issue_comment>username_1: ```
sqlplus user/password@(descri... |
2018/03/17 | 780 | 3,153 | <issue_start>username_0: In jQuery Validation Plugin I have a rule for an input field that should be set to false if a hidden input has val equal to 1, and true if 2.
I have made a function inside one of the rules for the input field, where I look for the hidden input val, and returning true or false based on the num... |
2018/03/17 | 760 | 2,991 | <issue_start>username_0: I have the following 2 classes:
```
@Entity
@Table(name = "TableA")
public class EntityA
{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "Id")
private final Integer id = null;
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "BId")
priv... |
2018/03/17 | 487 | 1,553 | <issue_start>username_0: `git diff --name-only` or `git diff --name-status` will list all files that have been changed, however there is no command to list all folder names that contain files changed.
For example, with this directory tree:
```
test/
|
|__B/
|
|____b1.txt
|
|__C/
|
|____c1.txt
```
If `b1.txt` and `c... |
2018/03/17 | 573 | 1,800 | <issue_start>username_0: >
> I have the following code.
> using the latest bootstrap version
>
>
>
```
Bootstrap Grid System
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
>
>
> Someone famous in Source Title
>
```
>
> And expecting the below result -
> [. Specifically, creating the return JSON after uploading and saving the images.
I have managed to do it using `StringBuilder`, but i would like to do it in a properly typed class if possible, using `return... |
2018/03/17 | 1,326 | 4,164 | <issue_start>username_0: I have several objects and I want to create another one that will have keys from a particular array (`const props = []`), and values from those objects - if it only exists in those objects, but if not - I want to push `null` or some other fake values.
My code:
```js
const props = ["name", "p... |
2018/03/17 | 1,088 | 2,898 | <issue_start>username_0: ```
#Basically, for the input number given, return results that are smaller
#than it compared with the list.
n = list(input('Please enter a Number: '))
#map(int, str(n))
newlist = []
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
for n in a:
if n > a:
newlist.append(a)
print... |
2018/03/17 | 1,372 | 5,207 | <issue_start>username_0: At this moment, I have a script that works correctly to list students of a class in Google Classroom, but it does NOT list ALL of the students, only the first 30. I need it to list ALL of the students, no matter how many there are. What I have now is the following:
```
function listStudents()... |
2018/03/17 | 844 | 2,421 | <issue_start>username_0: I have a data frame with 19 variables, 17 of which are factors. Some of these factors contain missing values, coded as NA. I would like to recode missings as a separate factor level "to\_impute" using forcats::fct\_explicit\_na() for all factors in the data frame.
A small example with two fact... |
2018/03/17 | 270 | 935 | <issue_start>username_0: Code:
```
`
Bootstrap
Welcome to Bootstrap 4.0 !
==========================
This is the platform that was created by twitter and is used in every website today
Name
Email
Submit
[Bootstrap 4.0](#)
* [Home (current)](#)
* [Link](#)
* [Dropdown](#)
[Action](#)
[Anothe... |
2018/03/17 | 1,219 | 3,867 | <issue_start>username_0: How can you compare two version numbers?
I don't want the simple 1.0.0.0 but I'm looking for comparing these
1.0.0.1
1.0.0.1rc1 / 1.0.0.1-rc1
1.0.0.1b
1.0.0.1a / 1.0.0.1-a
and so on
They are ordered in the direction of what is newest.
Quote from PHP.net from their function that does wha... |
2018/03/17 | 736 | 2,219 | <issue_start>username_0: I have the following question. I try to calculate the Intersection over Union, which is the overlap of two components divided by the unioin of two components. Lets assume component1 is a matrix with ones where the first object is and component2 is a matrix with ones where the second object is. ... |
2018/03/17 | 679 | 2,312 | <issue_start>username_0: In `userInput.equals("0") ?` part both resulting expressions return void type. Why then it tells me that the expression returns String?
```
import java.util.Scanner;
public class BaseConverter {
private static final int SENTINEL = 0;
public static void main(String args[]) {
... |
2018/03/17 | 734 | 2,486 | <issue_start>username_0: I have some php script that is adding a new line to a string saved in MYSQL in a mychar field.
When I look at the database using mysqladmin, I can see fields that have multiple lines. They do not show any characters. Whatever is creating the new line is invisible.
[, JSON.stringify(acc));
```
will return only the body, while
```
var accs = await $.get(GetUrl("/accounts"));
```
will return an object from which I ca... |
2018/03/17 | 613 | 2,266 | <issue_start>username_0: I have a stored proc which looks like this:
```
create function search_contacts
(_name text, _phone text, _email text, _address text, _threshold real)
returns setof contact
as $func$
declare
_id uuid := uuid_generate_v4();
begin
insert into _contact_index_tmp
select...;
insert in... |
2018/03/17 | 1,902 | 7,459 | <issue_start>username_0: From a quick read of the Kubernetes docs, I noticed that the kube-proxy behaves as a Level-4 proxy, and perhaps works well for TCP/IP traffic (s.a. typically HTTP traffic).
However, there are other protocols like SIP (that could be over TCP or UDP), RTP (that is over UDP), and core telecom ne... |
2018/03/17 | 1,364 | 4,696 | <issue_start>username_0: I am a newbie and I will try to be as clear as possible. This is about odersky scala course.
I have this code below. I understand that this is an alias type to define a Scala Set differently that the traditional way you define a Set in Scala(i.e. a Scala collection). In this type alias, you gi... |
2018/03/17 | 839 | 3,026 | <issue_start>username_0: I have a dropdown that should display different things depending on the selected value:
* When I select "test 1", it should display grid 1
* When I select "test 2", it should not display anything.
Unfortunately, it's displaying the grid also from another dropdown value.
Could you please tell... |
2018/03/17 | 332 | 1,085 | <issue_start>username_0: There is `QListWidget`. If I add an item with the text like "Line1\nLine2" I get an item containing a one string.
How can I make this item containing two strings?<issue_comment>username_1: You could add two lines to `QListWidget` in two way:
First:
```
listWidget->addItem(tr("Line1\nLine2... |
2018/03/17 | 749 | 2,191 | <issue_start>username_0: I'm trying to develop a simple program that finds decimal numbers that are equal to the average of their digits. Example 4.5 (4+5=9 / 2)= 4.5
In order to do this I need to take averages that have several decimal points and compare them to a big iterated list of decimal numbers (I'm using a ne... |
2018/03/17 | 616 | 1,816 | <issue_start>username_0: I am very new to HTML programming. I have created a webpage which will ask for password and then proceed to the next webpage, but my password is visible when i enter it in the webpage. how can i change it into bullets or \* ?
This is the HTML code :
```

Corporate Socia... |