date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/15 | 583 | 2,099 | <issue_start>username_0: I'm trying to adjust the size of a tableView based on data coming from the previous view controller. For example :
```
if previousData == "Acitivites" {
tableView.height = 375
tableView.width = 300
} else {
tableView.height = 480
tableView.width = 300
}
```
I'm not sure exac... |
2018/03/15 | 750 | 2,156 | <issue_start>username_0: My python list contains sympy matrix object, and I need to sum them all.
If all list elements are just symbols, then using built-in sum function in python works fine.
```
import sympy as sp
x = sp.symbols('x')
ls = [x, x+1, x**2]
print(sum(ls))
>>> x**2 + 2*x + 1
```
But for the elements of... |
2018/03/15 | 1,341 | 5,129 | <issue_start>username_0: When I use admin deploy a network with one organization include three peers.
My endorsement-policy.json as below , and it not work.
```
{
"identities": [
{
"role": {
"name": "member",
"mspId": "Org1MSP"
}
}
],
... |
2018/03/15 | 1,364 | 5,289 | <issue_start>username_0: I am using inheritance to access base class elements. I have defined driver object in environment class and inherited in base class. In base class I am trying to access this object.
However I am getting an error Environment has no object driver. How do I access this element?
```
class Enviro... |
2018/03/15 | 580 | 1,971 | <issue_start>username_0: The [documentation](http://php.net/manual/en/language.types.null.php) for NULL says that if I called `unset()` on a variable, the variable will become NULL:
>
> A variable is considered to be null if:
>
>
> it has been assigned the constant NULL.
>
>
> it has not been set to any value yet... |
2018/03/15 | 1,888 | 5,869 | <issue_start>username_0: I'm comparing performance of `MethodHandle::invoke` and direct static method invokation. Here is the static method:
```
public class IntSum {
public static int sum(int a, int b){
return a + b;
}
}
```
And here is my benchmark:
```
@State(Scope.Benchmark)
public class MyBench... |
2018/03/15 | 749 | 2,671 | <issue_start>username_0: This is the `views.py` file:
```
from django.shortcuts import render
from django.views.generic import TemplateView
from .models import Report
import random
class HomePageView(TemplateView):
def get(self, request, **kwargs):
args = {}
data = Report.objects.all()
args['data'] = ... |
2018/03/15 | 542 | 2,368 | <issue_start>username_0: I am new to xamarin and I have one listview which contains two label and one string array. How can I bind this items in listview?
Items may be 1 to 5 based on data.
[](https://i.stack.imgur.com/wEB79.png)<issue_comment>username_1: You can create a `... |
2018/03/15 | 786 | 2,843 | <issue_start>username_0: I'm trying to load a web page that requires authentication using Python script with Selenium.
```
options = webdriver.ChromeOptions()
prefs = {'download.default_directory': r"download.default_directory=" + download_folder,
"download.prompt_for_download": False, 'profile.default_conten... |
2018/03/15 | 295 | 1,052 | <issue_start>username_0: How can I convert a large binary (10k bits) to a base 3 or a base 31 number?
I know that for base 16 I can convert the number by taking 4 bytes chunks from my original number and this works well. But for base 3 or 31 is this even possible, since they are not a factor of 2?
Edit
====
I tried t... |
2018/03/15 | 1,318 | 3,792 | <issue_start>username_0: I want to add a link to a table that I create from tabular data using d3. Take a quick look at my snippet:
```js
var data = [
{'Engine':'Google', 'Founded':'1998', 'Monthly-Visitors':4840295000, 'Site':'www.google.com'},
{'Engine':'Baidu', 'Founded':'2000', 'Monthly-Visitors':1471079000, '... |
2018/03/15 | 770 | 2,269 | <issue_start>username_0: We are using OrangeHRM 3.1.1 with MySQL 5.5 version and now I need to upgrade to OrangeHRM 4.0 version with MySQL 5.7. After MySQL dump restore (I used command to restore `"mysql -u root -p newdatabase name < dump.sql"`) after restoring database am not able to login (validate credential error i... |
2018/03/15 | 779 | 2,240 | <issue_start>username_0: I'm trying to add 2 Input controls to my Toolbar with Title. But in OverflowToolbar they go to overflow area and in Toolbar control are not moved to the right side by ToolbarSpacer. How do I make this work as expected?
```
...
```
[OverflowToolbar image](https://i.stack.imgur.com/aXqYx.jpg... |
2018/03/15 | 1,136 | 3,616 | <issue_start>username_0: I have this two tables in my database
1 - tbl\_category
2 - tbl\_shelf\_place
(I want to achieve this kind of output where the selected category\_name from the drop-down (book\_category) with a value of category\_id will show the shelf\_code in a textbox instead of a DROPDOWN, based on the... |
2018/03/15 | 648 | 2,241 | <issue_start>username_0: for high to low:
```
$query="select * from sponsors order by budget DESC";
```
for low to high:
```
$query="select * from sponsors order by budget ";
```
When executing this query, it only orders by the first digit. For example:
budget:
95,00,000
6,00,000
3,00,000
29,58,000
22,78,000
... |
2018/03/15 | 762 | 3,047 | <issue_start>username_0: I am using RestTemplate with ConnectionPooling using PoolingHttpClientConnectionManager as in below code :
```
PoolingHttpClientConnectionManager connectionManager = new
PoolingHttpClientConnectionManager();
connectionManager.setMaxTotal(DEFAULT_MAX_TOTAL_CONNECTIONS);
connectionManager.... |
2018/03/15 | 1,116 | 3,852 | <issue_start>username_0: Here's my database table:
```
id name icon parent_id
1 Account Settings fa fa-cog 0
2 Support fa fa-wrench 0
3 FAQ fa fa-question 2
4 Contact fa fa-phone 2
```
I'm trying to query menu list from datab... |
2018/03/15 | 851 | 2,811 | <issue_start>username_0: I want to extract data from my database, and I wish the when I extract the data all the h/p number all is same format.
sample:
+60161234567
016-1234567
0161234567
To:
+6016-1234567<issue_comment>username_1: You can use concat and substr function to change format of phone number column during... |
2018/03/15 | 827 | 2,912 | <issue_start>username_0: Running into the subject issue trying to update the proxies with nswag... funny enough, the app that this came with is preconfigured to use a specific port for that service, but I don't see anything on that port using `netstat -ano` in the command line. Does anyone have any thoughts?<issue_comm... |
2018/03/15 | 816 | 3,373 | <issue_start>username_0: I've got the `BaseComponent` which got some dependencies injected. The first dependency `EntityService` is correct and necessary.
But`AnyOtherService` is only used inside the abstract `BaseComponent`. Instead of injecting it inside the `ChildComponent`, where it is not used, I'd like to injec... |
2018/03/15 | 715 | 3,019 | <issue_start>username_0: We have a jsp file with generic page content for admin purpose.
In this we have to hide audit columns, we have used annotation to specify the columns to show in search result, and we have one custom class that filters special character fields.
```
Gson gson = gsonBuilder.registerTypeHierarch... |
2018/03/15 | 499 | 1,841 | <issue_start>username_0: Studying React right now. I am on the stage of Router and found some code in their documentation that I do not understand. (they use a lot of short-syntax operators and other stuff so it is hard to google or come up with idea what it is for).
So here is [code](https://reacttraining.com/react-... |
2018/03/15 | 611 | 2,345 | <issue_start>username_0: I have a websocket logic written in Component A as follows.
```
this.socketService.connect('/socket_url');
this.statusSubscription = this.socketService.messages
.subscribe(result => {
if (result !== 'pong') {
// update Component B with the response obtained
... |
2018/03/15 | 415 | 1,569 | <issue_start>username_0: I want to use Apache Camel to get a message on IBM MQ in a spring boot project.
I use sprin boot annotation based.
I dont find any fully example: pom.xml, receiver, configuration class, ...
Is there anyone to help me? Any link, documentation, ...?
Thanks a lot of<issue_comment>username_1: You... |
2018/03/15 | 513 | 1,852 | <issue_start>username_0: [](https://i.stack.imgur.com/MU7pa.png)
I want a function to be called whenever a new child is added to "chat". I know this can be done using "child\_added" event. However, from that function, I want to modify the newly created child.
So sup... |
2018/03/15 | 655 | 2,182 | <issue_start>username_0: I am working on a project that gets data from a text file and that value needs to be stored in a variable. but the following code does not work properly. sometimes it works while other times it returns
>
> ValueError: invalid literal for int() with base 10: ''
>
>
>
the following is the ... |
2018/03/15 | 1,309 | 3,846 | <issue_start>username_0: I have created a controller with ActionResult Index and created a list of Student class as:
```
public ActionResult Index()
{
var list = new List()
{
new Student{Id=1,RegNo="Bcs153048",Name="Ali",Age=21,},
new Student{Id=2,RegNo="Bcs153044",Name="Talha",Age=22,},
new Student{Id=3,RegNo... |
2018/03/15 | 590 | 2,418 | <issue_start>username_0: I meticulously backed up a working WordPress site, files DB tables, the works. I moved it to a new server, got everything working, the site renders, the DB is recognized, etc.
The issue is anytime I try to log-in, after login the site always redirects to the homepage `(mysite.com/index.php)`
... |
2018/03/15 | 286 | 1,030 | <issue_start>username_0: I am new to CentOS and I am trying to install composer through the terminal. Unforently it keeps saying file not found.
My terminal command as root:
```
curl -sS https://getcomposer.org/install | php
```
and the output error is
```
bash: php: command not found
curl: (23) Failed writing b... |
2018/03/15 | 455 | 1,702 | <issue_start>username_0: Here is my table. [table patient](https://i.stack.imgur.com/RdB0v.png)
I want firstname and lastname to be combined as "name" in datagridview, how can i do this?
here is my output [My output of datagridview](https://i.stack.imgur.com/Ftiy9.png)
And my code..
```
private void frmPatient_Load... |
2018/03/15 | 1,800 | 7,222 | <issue_start>username_0: I know how to set the appearance for a independent `UISearchBar`, just like the following.
```
let searchField = searchBar.value(forKey: "searchField") as? UITextField
if let field = searchField {
field.backgroundColor = UIColor.defaultBackgroundColor
field.layer.corne... |
2018/03/15 | 1,570 | 5,401 | <issue_start>username_0: I'm finding that sourcing the following bash script does not cause the a sequence of commands to stop when pipelined with `&&`.
**sourceme.sh:**
```bash
#!/usr/bin/env bash
set -o errexit
set -o | grep errexit
echo "About to error from sourceme.sh..."
$(false)
echo "sourceme.sh did not exit... |
2018/03/15 | 1,303 | 4,675 | <issue_start>username_0: I was asked to write a program to find string "error" from a file and print matched lines in python.
1. Will first open a file with read more
2. i use fh.readlines and store it in a variable
3. After this, will use for loop and iterate line by line. check for the string "error".print those li... |
2018/03/15 | 403 | 1,405 | <issue_start>username_0: According to the following documentation <https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnScrollListener.html>
You can add a listener to `RecyclerView` to be notified when the user scrolls.
```
RecyclerView.OnScrollListener.onScrolled(RecyclerView recyclerView... |
2018/03/15 | 491 | 1,669 | <issue_start>username_0: I am new in sml. I tried to convert int to int list. For example, assume that there is an input 1234, then output is a list like [1,2,3,4]. And my question is, how can I type nested functions in sml? let in end? There is my code.
```
fun digit (a : int): int =
let
fun size (a... |
2018/03/15 | 742 | 2,199 | <issue_start>username_0: I want to add a class(active) to a child of an element who has a class (is-active) and does not effect other elements. using jQuery!
```
* [Link 1](#)* * [Link 2](#)* * [Link 3](#)* * [Link 4](#)*
```
I'm using this code but it's effect all other elements.
```
if ($(".nav-item").hasClass("i... |
2018/03/15 | 937 | 3,943 | <issue_start>username_0: I've tried [this solution](https://stackoverflow.com/questions/37069609/show-loading-screen-when-navigating-between-routes-in-angular-2) but could'nt get it working. I'm completely new to Angular2 (with no knowledge of AngularJS). Well the loading screen does'nt show up, I guess I need to add s... |
2018/03/15 | 484 | 1,617 | <issue_start>username_0: Really simple code, but not working using tkinder in Python.
This code has been copied just as seen in a video tutorial, so I think it could be any config:
```
from tkinter import*
root=Tk()
miFrame=Frame(root, width=500, height=400)
miFrame=pack()
Label(miFrame, text="Hola alumnos de Pyt... |
2018/03/15 | 354 | 1,370 | <issue_start>username_0: I have a line saved as `$variable1`, for example:
```
file"yourtxthere/i/master.ext" autostart:true, width
```
How would I go about writing the correct syntax using Regex in Powershell to grab everything within the quotes. Are regular expressions the best way to do this in Powershell?<issue_... |
2018/03/15 | 303 | 1,220 | <issue_start>username_0: Please help me out with this issue while uploading application to Appstore I am getting this error:
[](https://i.stack.imgur.com/b5c1B.png)<issue_comment>username_1: I experienced similar issue recently - messed with a lot of ... |
2018/03/15 | 698 | 1,560 | <issue_start>username_0: I am trying to calculate below formula and store the value to a variable.
The pseudo code should look like:
```
a=10
b=5
c=$(((($a-$b)/52)) | bc -l)
echo $c
```
The result is empty. I couldn't figure out the syntax using `bc`. Please help me use `bc` instead of `awk` or other method.<issue_... |
2018/03/15 | 1,711 | 6,278 | <issue_start>username_0: I want to hide the first column of the datatable which is `IID` but I want to access its value for updating data on database. Here is the code
```
var details = [];
for (var m = 0; m < retrievedParsedValue.Table3.length; m++) {
var buttonColumn = "**Action**";
... |
2018/03/15 | 1,133 | 3,658 | <issue_start>username_0: I am just providing a value of 2160000000 (which is 1000 \* 60 \* 60 \* 24 \* 25 - just 25 days) to Date's class constructor. I expected to see that here will be 1970-01-26 00:00:00, but what I received is 1970-01-26 03:00:00 (additional three hours)! I haven't found any points that this constr... |
2018/03/15 | 618 | 2,451 | <issue_start>username_0: This is my method in the controller.
```
public ActionResult DeleteModelAliasData(string alias)
{
if (!ModelState.IsValid)
{
ModelState.LogModelStateError();
throw new BusinessException("COMMON_ERROR");
}
var response = _vehicleDataBusinessService.DeleteModelAl... |
2018/03/15 | 460 | 1,215 | <issue_start>username_0: I would like to convert string value HH:MM:SS.mmm to float value sec.milliseconds for arithmetic calculations. Is there a direct way to do this as currently I am doing it via split string function and it is a very tedious process. Dataframe looks like:
```
Col1
00:00:05.063
00:01:00.728
00:03:... |
2018/03/15 | 197 | 730 | <issue_start>username_0: I have a ReactJS application with dependencies managed by npm. I use eclipse as an IDE. My application runs using "npm start" command. To execute "npm start" command, I need to open terminal window and run it there. I would like to run this command from within eclipse. Is there a way to do it?<... |
2018/03/15 | 483 | 1,648 | <issue_start>username_0: I have an Angular 4 Project where I am creating a sample Map as follows:
```
let sampleMap = new Map();
sampleMap.set('key1','value1');
```
Now I am passing this Map as a parameter to a Angular 4 Post method which connects to a Spring Boot Rest backend as follows
**Angular 4 Code:**
```
th... |
2018/03/15 | 618 | 1,999 | <issue_start>username_0: So these are the for loops that I have to find the time complexity, but I am not really clearly understood how to calculate.
```
for (int i = n; i > 1; i /= 3) {
for (int j = 0; j < n; j += 2) {
... ...
}
for (int k = 2; k < n; k = (k * k) {
...
}
```
For the ... |
2018/03/15 | 2,894 | 9,936 | <issue_start>username_0: I'm using the latest version of android studio (3.0), along with latest build tools (27) and similar API level.
The layout does not get rendered in the design tab and it's causing a lot of trouble especially that I'm using coordinator layout.
How do I get around this problem?<issue_comment>us... |
2018/03/15 | 2,864 | 8,873 | <issue_start>username_0: I'm tried to fix sticky on bottom of the page using javascript/jquery but the sticky is hidden the body text. I need to show all body text without hidden along with sticky, I'm not able to figure out the issue, pls anyone suggest me what is the issue in my code.
[**CodePen Link**](https://code... |
2018/03/15 | 584 | 2,007 | <issue_start>username_0: I need to set \* in red color in a textfield's placeholder to indicate that the field is mandatory to be filled. I'm using ExtJS with CSS.
[](https://i.stack.imgur.com/ZigI5.png)<issue_comment>username_1: Unfortunately, it's n... |
2018/03/15 | 686 | 1,767 | <issue_start>username_0: I have script below:
```
$('[data-countdown]').each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
var $this = $(this).html(event.strftime(''
+ '<span class="week">%-w</span>w : '
+ '<span class="days">%-d</span>d : ... |
2018/03/15 | 1,870 | 6,125 | <issue_start>username_0: I have to project some fields of javascript to new object.
for example I have a below object
```
var obj = { fn : 'Abc',
ln : 'Xyz',
id : 123,
nt : 'Note',
sl : 50000}
```
and i want new object containing `fn and id`
```
var projectedObj ... |
2018/03/15 | 1,264 | 2,924 | <issue_start>username_0: I have arrays like below
```
A:[[1,2,3],[100,200]]
B:[[4,5],[300,400],[500,600,700]]
C:[[6,7,8,9]]
```
Now I have to make sets using above array elements.My expected result should be like
```
Set1:[[1,2,3],[4,5],[6,7,8,9]]
Set2:[[1,2,3],[300,400],[6,7,8,9]]
Set3:[[1,2,3],[500,600,700],[6,7... |
2018/03/15 | 870 | 2,130 | <issue_start>username_0: I got the iFrame for my bot that uses Microsoft bot framework by registering the bot with them. Now, I need to remove/change the title of that bot from "chat" to another custom one.
How can I do this?
[](https://i.stack.img... |
2018/03/15 | 737 | 2,154 | <issue_start>username_0: I have two dates in SQL Server
```
@dt1 = 2018-03-15 11:12:10
@dt2 = 2018-03-15 11:12:45
```
I want `(@dt1 = @dt2)`
This condition should be true.
In short, I want to ignore seconds and only consider date and hours & minutes.
How can I do it in SQL Server??<issue_comment>username_1: ```
@... |
2018/03/15 | 626 | 2,196 | <issue_start>username_0: I have IntelliJ IDE installed in my laptop.
I am trying to do some Bigdata Spark POCs written in Scala.
My requirement is that the spark-scala code written in IntelliJ IDE should run in spark cluster when I click Run. My spark cluster is residing in windows azure cloud.
How can I achieve this?<... |
2018/03/15 | 326 | 1,157 | <issue_start>username_0: Is it possible to debug styles at react-native in a screen for example?
`console.log(styles.buttonBackground)// returns 140
console.log(styles.button.backgroundColor)// undefined`
while it has background. I use all standard things of react-native.
style is defined, debugger works well. but ... |
2018/03/15 | 482 | 1,629 | <issue_start>username_0: ```
arr = {
{'a',1},
{'b',2},
{'c',3}
}
print(arr[1][1])
print(arr[2][2])
print(arr[2])
```
output would be
**a** **2** **table: 0x1e41080**, This may be a very newbie question for you guys. But even though it is really embarrassing to ask such question ... |
2018/03/15 | 235 | 924 | <issue_start>username_0: I want to add my icon in Nearby notification message as attachment which I am creating using google proximity beacon api using com.google.nearby/en namespace<issue_comment>username_1: Are you referring to the Favicon Icon displayed on the left side with Notification Message and URL?
To do that,... |
2018/03/15 | 535 | 1,529 | <issue_start>username_0: I just noticed that the following code, without immediately referencing `one` after `let [one, two] = [1, 2]`, trying `[one, two] = [two, one]` would crash:
```js
let [one, two, three] = [1, 2, 3]
[one, two] = [two, one] // CRASH! one is not defined
console.log(one, two)
```
However, simply... |
2018/03/15 | 1,155 | 3,059 | <issue_start>username_0: Hi,I have a column as below
```
+--------+--------+
| day | amount|
+--------+---------
| 2 | 2 |
| 1 | 3 |
| 1 | 4 |
| 2 | 2 |
| 3 | 3 |
| 4 | 3 |
| 5 | 6 |
| 6 | 6 |
+--------+--------+
```
now I want s... |
2018/03/15 | 1,159 | 3,351 | <issue_start>username_0: I want to get users ids with whom i have made latest conversation.
I have not a single idea how to begin with this:
My table structure for messages is like this:
```
id | msg_from_uid | msg_to_uid | msg_text | msg_date
----------------------------------------------------
1 | 8 |... |
2018/03/15 | 839 | 2,458 | <issue_start>username_0: What does `window.usrc` mean? What does it do? I've seen it [here](https://gist.github.com/peterbe/9117f2c9fc10d4c3ad274ecd61a36fb3), for example.<issue_comment>username_1: One option is to use a least/greatest trick to find the most recent record for each conversation. This is done in the subq... |
2018/03/15 | 1,410 | 4,451 | <issue_start>username_0: I am new to C++ and I'm doing a little project where I have to generate a sentence by using strings from array. The problem is that sometimes a string from the same array is ran twice even though the calculation moves from one array to the next, or sometimes the array is completely skipped. her... |
2018/03/15 | 1,238 | 3,336 | <issue_start>username_0: There are several Excel files in a folder. Their structures are the same and contents are different. I want to combine them into 1 Excel file, read in this sequence 55.xlsx, 44.xlsx, 33.xlsx, 22.xlsx, 11.xlsx.
These lines are doing a good job:
```
import os
import pandas as pd
working_folder... |
2018/03/15 | 838 | 2,060 | <issue_start>username_0: I have a mongodb collection like
```
{
{"_id":1,"cust_id": 1,"urls":["www.a.com","www.b.com","www.c.com"]},
{"_id":2,"cust_id": 2",urls":["www.x.com","www.y.com","www.z.com"]},
{"_id":3,"cust_id": 3",urls":["www.1.com","www.2.com","www.3.com"]}
}
```
and I need to fetch each url... |
2018/03/15 | 1,123 | 3,445 | <issue_start>username_0: The regular expression is "`(\d+)|(N\A)`", which matches digits or string "N\A". It works in Java, but not in JavaScript.
1. Results are different between Java and JavaScript.
2. Results of two versions in JavaScript are different.
What's wrong I made?
Code code snippet:
**Java**
Environme... |
2018/03/15 | 1,329 | 4,153 | <issue_start>username_0: Following is the ajax code :
```
$.ajax({
url: "update.php",
type: "post",
dataType: "json",
data: {"editId":editId},
success: function (data,status) {
//console.log(data);
},
error: function(response) {
console.log(response);
},
});
```
And ge... |
2018/03/15 | 641 | 2,642 | <issue_start>username_0: I am working on a application which should be very light weight and use minimum number of threads.
I need a socket server in my application for heartbeat monitor.
```
ServerSocket listener= new ServerSocket(port);
while (true) {
Socket socket = listener.accept();
Runnable thread =... |
2018/03/15 | 1,043 | 3,551 | <issue_start>username_0: I have written the code of taking input value from a text box and adding it to an array using the add button and also displaying the values of the array when the display button is clicked.
The thing is I did all this using JavaScript and now I want to do it using jQuery. I tried a code snippe... |
2018/03/15 | 616 | 2,123 | <issue_start>username_0: ```
print("Hello World")
myName = input("Whats your name?")
myVar = input("Enter a number: ")
print(myName)
print(myVar)
if(myName == "Ben" and myVar == 5):
print("You are cool")
elif(myName == "Max"):
print("You are not cool")
else:
print("Nice to meet you")
```
Sorry I know I... |
2018/03/15 | 2,039 | 7,384 | <issue_start>username_0: We have inherited old code which we are converting to modern C++ to gain better type safety, abstraction, and other goodies. We have a number of structs with many optional members, for example:
```
struct Location {
int area;
QPoint coarse_position;
int layer;
QVector3D fine_po... |
2018/03/15 | 373 | 1,362 | <issue_start>username_0: I am trying to use [jQuery Geocomplete](https://github.com/tmentink/jquery.geocomplete) with my AngularJS application.
I have this in my html page.
```
```
and added this code in controller.
```
var myElement = angular.element( document.querySelector('#destination-location-input'));
m... |
2018/03/15 | 3,117 | 7,454 | <issue_start>username_0: I have the following data frame:
```r
dat <- structure(list(`A-XXX` = c(1.51653275922944, 0.077037240321129,
0), `fBM-XXX` = c(2.22875185527511, 0, 0), `P-XXX` = c(1.73356698481106,
0, 0), `vBM-XXX` = c(3.00397859609183, 0, 0)), .Names = c("A-XXX",
"fBM-XXX", "P-XXX", "vBM-XXX"), row.names ... |
2018/03/15 | 1,089 | 3,678 | <issue_start>username_0: I have `addUser(newUser)` function in sign-in.service.ts file as follows
```
addUser(newUser)
{
const httpOptions = {
headers: new HttpHeaders({ 'Content-Type': 'application/json' })
};
let body = JSON.stringify(newUser);
this.httpclient.post('http://localhost:3000/api/... |
2018/03/15 | 1,543 | 6,089 | <issue_start>username_0: For a QUIZ Django project, we have, an almost ready back-end for creating questions and answers. Now , I want to know, how will we organize this quiz? Some points regarding this:
* Start the quiz which will go throw N diff questions . So does the student login or just enter some basic info lik... |
2018/03/15 | 513 | 1,731 | <issue_start>username_0: I need to have `TabbedPage` throughout the app. In the first page Tab's are displaying fine. When I am starting second page From Tab1, It is hiding all tabs. How can I have Tab's all over the app.
[](https://i.stack.imgur.com/A5yVm.pn... |
2018/03/15 | 200 | 892 | <issue_start>username_0: I have a list of binaries and different versions of the source codes. How am I supposed to know which version of the source code has been used for a particular binary executable?<issue_comment>username_1: This is a question about software version management. It's your decision how you want to d... |
2018/03/15 | 537 | 1,822 | <issue_start>username_0: I am using dynamic SQL on SQL Server 2008 to select specified columns from a row but I keep getting the following error:
>
> Invalid object name 'Form'
>
>
>
My code is as follows:
```
DECLARE @SQL varchar(MAX)
SET @SQL = 'select
[City],[Place]'
+
'
from Form where [Age:] = 20'
EXE... |
2018/03/15 | 2,203 | 6,640 | <issue_start>username_0: I have a data of device IDs with startTime and some feature vectors, which needs to be merged based on `hour` or `weekday_hour`. The sample data is as follows:
```
+-----+-------------------+--------------------+
|hh_id| startTime| hash|
+-----+-------------------+-----... |
2018/03/15 | 999 | 3,779 | <issue_start>username_0: I have a parent component and i am passing some HTML from it to a child common component using @ViewChild().
When Child component loads up a popup. Console throws below error.
**"ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ngIf: u... |
2018/03/15 | 634 | 2,055 | <issue_start>username_0: This is a simple version of my code that still doesn't work when I run it. When I initialize `i` to be the counter for my `for` loop, it skips `0` for some reason, this has never happened to me before and I don't know why.
```
#include
#include
int main() {
int x, i;
scanf("%d", &x);
cha... |
2018/03/15 | 320 | 1,072 | <issue_start>username_0: What I'm ultimately trying to do is get a [jsfiddle](http://jsfiddle.net/Phehb/24/) to work on my desktop, and not in the jsfiddle browser.
I've...
```
\*\*\*[content from the jsfiddle HTML pane]\*\*\*
\*\*\*[content from the Javascript pane]\*\*\*
```
however, when I open that doc in C... |
2018/03/15 | 204 | 747 | <issue_start>username_0: I stumbled upon the fact that when a random number is generated in Swift, it is of type `UInt32` by default instead of type `Int`
What's the reason?<issue_comment>username_1: I would assume it makes it faster. If you want Int random numbers take a look at GKRandomSource in the game kit, <https... |
2018/03/15 | 568 | 2,144 | <issue_start>username_0: I'm currenty working with webmin And it is a great program. I creaties And connected An SSL certificate tot mydomain.nl And when I go to that link IT has the green Kock. But when I go to mydomain.nl:10000 (webmin control panel) IT has the red locker with An warning<issue_comment>username_1: You... |
2018/03/15 | 912 | 3,394 | <issue_start>username_0: I am using this code to move UITextField and it is working but I am not happy with this code and I want (when I click return key Then Cursor move to next UITextField) this function in my registration or login form anybody can suggest me.
```
func textFieldDidBeginEditing(_ textField: UITextFie... |
2018/03/15 | 627 | 2,364 | <issue_start>username_0: I have used this plugin and it works great but one small bug I am facing is that li element gets unexpected height. You can replicate issue by following steps:
1. Open [sortable demo](https://jqueryui.com/sortable/#default) in Internet Explorer and inspect on ul list.
2. From developer tools cs... |
2018/03/15 | 678 | 2,455 | <issue_start>username_0: I'm using Webpack 4 and I want to use env environment variable in config. How I get this variable with mode --development and --production ? DefinePlugin doesn't work and documention says nothing.<issue_comment>username_1: Maybe you could do something like this:
**package.json**:
```
"scripts... |
2018/03/15 | 584 | 2,136 | <issue_start>username_0: ```
candidateForm:FormGroup;
constructor(private fBuilder: FormBuilder){ }
ngOnInit(){
this.candidateForm = this.fBuilder.group({
fname: [null, [Validators.required]],
lname: [null, [Validators.required]],
address: this.fBuilder.group({
address1: [null],
... |
2018/03/15 | 1,258 | 3,363 | <issue_start>username_0: My reason for asking this is because I because I work in a lab in which my co-worker does some analyses in Microsoft-Excel spreadsheets. I sometimes find a Microsoft Excel analytical table at the bottom of the columns of the spreadsheets. I have no trouble reading these spreadsheets into R for ... |
2018/03/15 | 452 | 1,524 | <issue_start>username_0: ```
age = float(raw_input("Enter your age: "))
grade = int(raw_input("Enter your grade: "))
if age >= 8:
if grade >= 3:
print "You can play this game."
else:
print "Sorry, you can't play the game."
```
if age is true and grade is false,this program prints wrong output.but if a... |
2018/03/15 | 540 | 1,904 | <issue_start>username_0: I'm hacking on a vector car game in javascript and html canvas.
The point is that you click on of the blue squares and the car goes there - simple!
The outer and inner borders are two arrays of xy points that i've drawn out on the canvas
I've come to the point where i need to figure out if th... |
2018/03/15 | 2,337 | 11,552 | <issue_start>username_0: I'm constantly trying to add Imageview inside my fragment Class but I'm getting Error and after I run the app, It stops with error of "Error Inflating class Imageview". But when I remove the Imageview and add Textview or Button only it works fine, Only with Imageview and ImageButton...It throws... |
2018/03/15 | 614 | 1,955 | <issue_start>username_0: I was wondering if there is a way to combine two conditions on two different column in one LINQ query?
I have got a books table -> tbl\_books which have three columns
id - pk
subject\_id - fk to tbl\_subjects
book\_summary - book summary details
var book\_ids = list of distinct book\_ids... |
2018/03/15 | 886 | 2,766 | <issue_start>username_0: The `count()` function returns the number of times a substring occurs in a string, but it fails in case of overlapping strings.
Let's say my input is:
```
^_^_^-_-
```
I want to find how many times `^_^` occurs in the string.
```
mystr=input()
happy=mystr.count('^_^')
sad=mystr.count('-_-'... |
2018/03/15 | 415 | 1,399 | <issue_start>username_0: I have tried the following code:
```
php
echo gettype($x);
?
```
And I got the following output:
[](https://i.stack.imgur.com/uCBTt.png)
Why did `gettype()` outputted "NULL" after the error was displayed? I mean an und... |
2018/03/15 | 744 | 2,323 | <issue_start>username_0: I am developing Xamarin forms app and my app seems with safe area set in top. But need to ignore it.
**Current scenario:**
[](https://i.stack.imgur.com/Al4PU.png)
**Excepted scenario:**
[{
const sidebar = (
{this.props.posts.map((post) =>
* {post.title}
)}
);
const content = this.props.posts.map((post) =>
### {post.title}
{post.content}
);
return (
{sidebar}
---
{conte... |