date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 666 | 2,447 | <issue_start>username_0: I am new to cake build. I want to run Microsoft appcenter command from Cake script. I tried using cake.powershell for it
<https://cakebuild.net/addins/powershell/>
```
StartPowershellFile("./appcenter.ps1");
```
>
> // appcenter.ps1 had just CLI command for Appcenter "*appcenter test
> r... |
2018/03/22 | 699 | 2,294 | <issue_start>username_0: Using linux, I want to search a text file for the string `Blah` and then return the line full line that contained the string and all the lines following the pattern up until a line that contains the word `Failed`.
For example,
```
Test Case Name "Blah"
Error 1
Error 2
Error 3
Failed
Test Case... |
2018/03/22 | 794 | 2,443 | <issue_start>username_0: Firstly, I apologize if my title is misleading/ unclear as I am really not sure what is the best way to put it.
I have 3 optional arguments, which uses `action='store_true'`. Let's keep the argument flags to `-va, -vb, -vc`
```
var_list = ['a', 'b', 'c']
if args.va:
run_this_func(var_list... |
2018/03/22 | 589 | 2,001 | <issue_start>username_0: So I'm trying to get the sum of every score in all games related to the according player and how many game he has played
```
class Player(models.Model):
name = models.CharField()
class Game(models.Model):
points = models.IntegerField()
user = models.ForeignKey(User, on_delete=m... |
2018/03/22 | 559 | 1,855 | <issue_start>username_0: We're getting ready to deploy our app (Cytoscape) using Install4J7's feature that detects the installed JVM and offers to download a new one. We find that if we download a JVM, let the installer finish, then run the installer again, it offers to download a new JVM again. I would have thought it... |
2018/03/22 | 488 | 1,432 | <issue_start>username_0: I am trying read all lines in `out.txt` and check if that starts with word `No`. If the line starts with `No`, I am echoing `yes` to file `1.txt`, else `no` to `2.txt`
I am using below code :
```
for /F "tokens=*" %%A in (out.txt) do (
IF "%%A:~0,2%"=="No" (
@echo yes >> 1.txt
)else (
@ech... |
2018/03/22 | 355 | 875 | <issue_start>username_0: How to queryrows after group by with multiple columns.
Below is the table :
```
ord_num | loc | void | pay_type
-----------------------
10 | a101 | Y | CR
10 | a101 | N | AB
10 | a101 | N | CH
11 | a102 | N | CR
11 | a102 | Y | CR
12 | a103 | Y | JK
1... |
2018/03/22 | 3,593 | 10,593 | <issue_start>username_0: I have extended the C++ 11 `std::array`, it is working file, but when I try to overload the `operator[]`, I got this error:
```
error: lvalue required as left operand of assignment
array[0] = 911;
^~~
```
Is it possible to implement the `operator[]` adding bound checking for ... |
2018/03/22 | 738 | 2,618 | <issue_start>username_0: I want to disable all outgoing connections that are initiated by docker containers to the outside world. I can do this in linux by adding a rule to the FORWARD chain in linux. How do I do this in Docker for Mac?
I found out that Docker for Mac uses an xhyve vm and that’s where docker0 interfac... |
2018/03/22 | 695 | 2,328 | <issue_start>username_0: I am trying to find pid of a oracle process by using below command
ps -ef | grep pmon | grep orcl | grep -v grep
When trying to use python
oracle\_pid = os.system("echo `ps -ef | grep pmon | grep %s | grep -v grep | awk '{print $2}'`" %(oracle\_sid))
print(oracle\_pid)
it is printing 0 as v... |
2018/03/22 | 997 | 2,967 | <issue_start>username_0: I am trying to add two columns and create a new one. This new column should become the first column in the dataframe or the output csv file.
```
column_1 column_2
84 test
65 test
```
Output should be
```
column column_1 column_2
trial_84_test 84 test
trial_65_te... |
2018/03/22 | 670 | 2,664 | <issue_start>username_0: I have a byte array representing a gzipped json array. I send this array in chunks (up to 20 bytes) over a Bluetooth connection to another device. To indicate a start of a new transmission, I send some "reset bytes" (a sequence indicating that we have a new transmission) to the other device. Ho... |
2018/03/22 | 483 | 1,741 | <issue_start>username_0: ```
exports.admin= function(req, res, next){
if(!req.user)
{
var err = new Error ('No Valid User');
err.status = 403;
return next(err);
}
else if(!req.user.admin)
{
var err = new Error ('You must be an administrator!');
err.status = 4... |
2018/03/22 | 258 | 885 | <issue_start>username_0: I have
```
Treemap
```
class where Student is
```
TreeMap
```
students where `Person` is object.
When I do
```
class.put(String, students)
```
I am getting error:
```none
no suitable method found for put(String, TreeMap) java
```<issue_comment>username_1: But you are returning `ne... |
2018/03/22 | 433 | 1,243 | <issue_start>username_0: How can I set the maximum rows of pandas dataframe displayed in pycharm console? for example, I just want to see the first ten rows of a dataframe, but the pycharm console displayed most of the rows of this dataframe:
[](https... |
2018/03/22 | 1,029 | 2,766 | <issue_start>username_0: I am curious on why is namedtuple slower than a regular class in python. Consider the following:
```
In [1]: from collections import namedtuple
In [2]: Stock = namedtuple('Stock', 'name price shares')
In [3]: s = Stock('AAPL', 750.34, 90)
In [4]: %%timeit
...: value = s.price * s.shar... |
2018/03/22 | 663 | 1,818 | <issue_start>username_0: I have a script that is (supposed to be) assigning a dynamic variable name (s1, s2, s3, ...) to a directory path:
```
savedir() {
declare -i n=1
sn=s$n
while test "${!sn}" != ""; do
n=$n+1
sn=s$n
done
declare $sn=$PWD
echo "SAVED ($sn): ${!sn}"
}
```
T... |
2018/03/22 | 570 | 1,649 | <issue_start>username_0: Supposing I have three columns, make, year, and msrp, I want to only show rows there the amount of make/year combinations are over, for example, 10. This is because some makes only have data for one year and I dont want random car makes in my data.
Im able to get the number of year/make combin... |
2018/03/22 | 407 | 1,358 | <issue_start>username_0: I have a Microsoft Access Database file.
I wanted to delete records older than 5 years in it.
I made a backup before starting to modify the file.
I was able to run a query and then run the command below and append it or update it to the database file.
```
DELETE FROM Inspections Report WHERE ... |
2018/03/22 | 1,015 | 2,951 | <issue_start>username_0: I'm super new at this and starting in the middle while working forwards and backwards simultaneously, so forgive me if this is a super basic question.
I have this code:
```
mh<-read.csv("mkhz_meta.csv")
msub<-mh[complete.cases(mh[ , 29]),]
msub2 <- subset(msub, Target.Fungal.Phylum!= "a")
... |
2018/03/22 | 2,254 | 8,355 | <issue_start>username_0: I am trying to have this code determine which element has the closest value to a constant.
In this code the variable `boxes = 5`, any element that has `boxCapacity >= boxes` is added to an ArrayList. From that list, the one with the closest `boxCapacity` to `boxes` should be used. I am able to... |
2018/03/22 | 480 | 1,698 | <issue_start>username_0: I have an ArrayList `list` with the values `90, 80, 75` in it that I want to convert to an IntStream.
I have tried using the function `list.stream()`, but the issue I come upon is that when I attempt to use a lambda such as:
`list.stream().filter(x -> x >= 90).forEach(System.out.println(... |
2018/03/22 | 769 | 2,418 | <issue_start>username_0: I encounter a weird problem that a `data.table` function doesn't recognize a well-defined argument if the function is used in another function.
Here is a simple example:
I get an error when the first function `testFun1`,
>
> `Error in fun(value) : could not find function "fun"`
>
>
>
Ho... |
2018/03/22 | 371 | 1,511 | <issue_start>username_0: I currently creating a cross platform desktop application using Electron. I wish to add analytics to view user metrics. When I try to find for existing packages that provides metrics info, I found [electron-ga](https://github.com/jaystack/electron-ga).
The package uses GA to track user metric... |
2018/03/22 | 424 | 1,647 | <issue_start>username_0: In my code I attempt to use AJAX to fetch the content of a template file and return it as a string, which I alert. This results in `undefined`, however if instead of `return xmlhttp.responseText` I do `alert(xmlhttp.responseText)` I get the result I'm after.
Can I return the AJAX content as a ... |
2018/03/22 | 675 | 2,180 | <issue_start>username_0: Say I have a list of 5 dates `[Mar 2,Mar 6, Mar 7, Mar 26]` all in the year 2018.
The week start on Saturday and end Sunday.
I want the following result
```
[Mar 2]
[Mar 6, Mar 7]
[Mar 26]
```
How can I do it with LINQ? Or in a functional way.<issue_comment>username_1: You can use the follow... |
2018/03/22 | 954 | 3,364 | <issue_start>username_0: Jest allows you to specify a coverage reporter in the package.json like so
```
{
...
"jest": {
"coverageDirectory": "./coverage",
"coverageReporters": ["json", "text", ...]
}
...
}
```
However, this only outputs the `.json` summary to the coverage directory.... |
2018/03/22 | 502 | 1,356 | <issue_start>username_0: As the title stated, how to do that?
```
val a = 3.U
val result = a / 2.U
```
result would be `1.U`
However I want to apply ceil on division.
```
val result = ceil(a / 2.U )
```
Therefore, I could get `2.U` of the result value.<issue_comment>username_1: The problem is the expression `a... |
2018/03/22 | 865 | 2,208 | <issue_start>username_0: There are two rdds.
```
val pairRDD1 = sc.parallelize(List( ("cat",2), ("girl", 5), ("book", 4),("Tom", 12)))
val pairRDD2 = sc.parallelize(List( ("cat",2), ("cup", 5), ("mouse", 4),("girl", 12)))
```
And then I will do this join operation.
```
val kk = pairRDD1.fullOuterJoin(pairRDD2).coll... |
2018/03/22 | 1,284 | 4,596 | <issue_start>username_0: So, I recently made two big changes ... moved my code from bitbucket to github, and set up a pipeline on heroku with a new staging app (original app is now production).
I got a new github token and placed it into the auth.json file as was done with the previous bitbucket repo (it's a private r... |
2018/03/22 | 626 | 2,076 | <issue_start>username_0: Hi everyone I just want some explanation about vue props data. So I'm passing value from parent component to child component. The thing is when parent data has data changes/update it's not updating in child component.
```
Vue.component('child-component', {
template: '{{val}}',
props: ['tes... |
2018/03/22 | 582 | 1,814 | <issue_start>username_0: I'm not sure what it means to have "pull access" on a private repo. Should I be able to clone it now? I can't.
```
[1045](m7int01)~/codes>git clone https://github.com/glwhart/[repo_name]
Initialized empty Git repository in /zhome/glh43/codes/[repo_name]/.git/
error: The requested URL returned ... |
2018/03/22 | 1,041 | 3,163 | <issue_start>username_0: I have a DXF file that was exported from a drawing of a simple arc that starts at `(0, 0)`, ends at `(2, 0)` and has a radius of `1.0`. I would expect the `LWPOLYLINE` to be made up of two vertices with the first containing the start point and bulge factor, and the second point simply containin... |
2018/03/22 | 953 | 3,484 | <issue_start>username_0: I have a list of strings, and need to check each item to see if it contains some string `$path`, where the string should contain a unc path and `$path` is also a unc path.
For example:
```
"RW \\test" -match "\\test"
```
returns `True`, as `\\test` is contained in `RW \\test`. Great.
So wh... |
2018/03/22 | 241 | 736 | <issue_start>username_0: Suppose I have this (where my insertion point is designated "|"):
```
col1 col2
thing oeueaoue|
another
something
test
```
What keystroke(s) would I use so the insertion point jumps to here:
```
col1 col2
thing oeueaoue
another |
something
tes... |
2018/03/22 | 705 | 2,511 | <issue_start>username_0: I have a tab panel on my html where I am rendering a table.
```
```
I am rendering the table through a php script from mysql. Function getManual() gets triggered on clicking the tab panel.
```
function getManual() {
var folder = $('#workingDir').val();
$.post('manualAnnotation.php', {'f... |
2018/03/22 | 534 | 2,035 | <issue_start>username_0: I have a simple DAX formula that i want to use to distinct count the number of customers who have met a certain criteria. I have a table that defines these criteria i.e Tiers I am doing this on power bi and this is the measure that i am using;
```
MTierB =
var y = SUM('Brand Tiers'[TierB]),
v... |
2018/03/22 | 573 | 1,932 | <issue_start>username_0: What I am trying to do is pretty basic. Given an object, and without caring about the properties names, I want to ensure all its values to be of a certain type.
Therefore I have something like the following code:
```
// @flow
type DynamicStructure = {
[string]: number
}
const key: stri... |
2018/03/22 | 388 | 1,438 | <issue_start>username_0: I am trying to use facebook sdk for facebook login.
I gave <http://localhost> as Valid OAuth Redirect URIs but it throws the following error
>
> HTTPS is required for all Redirect URIs.
>
>
>
I used this future few days ago it worked fine. but now it throws this error
And I am not able... |
2018/03/22 | 1,192 | 4,486 | <issue_start>username_0: I was doing Authentication for my front end.
sending `ErrorObservable` but not sure how to correctly handle it.
first, a `verify()` used by `AuthGuard`
```
verify(): Observable {
//return this.http.get('/api/verify', this.jwt()).map((response: Response) => response.json());
//Do not do re... |
2018/03/22 | 1,101 | 3,920 | <issue_start>username_0: I want to aggregate ( effectively de-duping ) and sum nested data the simplest way possible , through map / reduce / lodash or whatever. Can use ES6 / ES7 it doesn't matter. Simplest , cleanest is preferred . thanks.
I have an array e.g.
```
[{
"orderNumber": "0001",
"itemList": [{
... |
2018/03/22 | 2,027 | 7,349 | <issue_start>username_0: I'd like to check whether a dictionary is a subset of another dictionary recursively. Let's assume both dictionaries having builtin types as items.
I've seen there is already a very old thread [Python: Check if one dictionary is a subset of another larger dictionary](https://stackoverflow.com/... |
2018/03/22 | 1,874 | 7,817 | <issue_start>username_0: Apps can be transferred from one company to another in both stores, Google Play and Apple Store. However, as I was told, each app has a certificate. I don't know much about this and googling confused me more than it actually helped me. I'm responsible for an app movement and the initialization ... |
2018/03/22 | 1,749 | 6,951 | <issue_start>username_0: The program works but when it hits a wall the turtle undo's the last step and tries again. However, it keeps inputting the same forward distance and angle causing it to move in the same path in a loop. Is there a way to stop the turtle from taking the same value again?
```
from turtle import T... |
2018/03/22 | 748 | 2,421 | <issue_start>username_0: When a substring having a space in the beginning is printed the leading whitespace is removed.
```
$ line="C , D,E,";
$ echo "Output-`echo ${line:3}`";
Output-D,E,
```
Why is the leading whitespace being removed from the output and how can I print the whitespace?<issue_comment>username_1: Th... |
2018/03/22 | 436 | 1,786 | <issue_start>username_0: I have a test request for executing some test cases multiple times in robotframework and have the test cases pass/fail status individually in report. Now I use for loop to execute but I get only one Pass/Fail status for all executions.<issue_comment>username_1: To my knowledge there is now way ... |
2018/03/22 | 1,225 | 4,984 | <issue_start>username_0: I am migrating my Room database. I want to add new table. So I created the Entry class like this:
```
@Entity(foreignKeys = {@ForeignKey(entity = Project.class,
parentColumns = "projectId",
childColumns = "projectId",
onDelete = ForeignKey.CASCADE)},
indices = {
@In... |
2018/03/22 | 474 | 1,616 | <issue_start>username_0: **Objective:** to fill in one dataframe with another using transpose
```
df = pd.DataFrame({'Attributes': ['love', 'family','tech']})
df.T
```
Produces this output:
```
0 1 2
Attributes love family tech
```
Secondarily, I have another dataframe that is empt... |
2018/03/22 | 449 | 1,470 | <issue_start>username_0: I found this existing [jsfiddle here](http://jsfiddle.net/6NJ8e/13/) from other questions. My question is, how do I put custom attribute in this code?
I have tried it like this but didn't work
```
Instagram
for (var i=0; i < inputs.length; i++) {
inputs[i].onchange = function() {
... |
2018/03/22 | 721 | 3,153 | <issue_start>username_0: I want to test whether the strings are updated correctly when the user changes the language. I am using `Espresso` to test whether the string matches the correct locale and I am currently changing it like so:
```
private fun changeLocale(language: String, country: String) {
val locale = Lo... |
2018/03/22 | 682 | 2,824 | <issue_start>username_0: I've been trying to get the values in a multiple select box and put it in an array. I've tried this:
JQUERY
```
var selectedValues = $('#multipleSelect').val();
```
HTML
```
Text 1
Text 2
Text 3
```
By <NAME> from [this SO question](https://stackoverflow.com/questions/3243476/how-to... |
2018/03/22 | 509 | 1,854 | <issue_start>username_0: I have 32 bytes numbers and i store them in a uint8\_t\* buffer.
How to calculate a 32 bytes number in C?
Example: add, mod, multiplication
Thanks!<issue_comment>username_1: You basically need to do math just like we learn in elementary school: Add individual elements an[d](https://en.wikipedia... |
2018/03/22 | 555 | 1,955 | <issue_start>username_0: I'm using JDBC via Clojure and want to search my postgres fields for whether they literally contain a question mark, but can't seem to get anything to work regardless of how I try to escape or double up my question marks.
```
(jdbc/query *db* "SELECT * FROM conversations WHERE full_text @... |
2018/03/22 | 671 | 2,486 | <issue_start>username_0: I have a large VB.net application that does FEM structural analysis. It requires double precision math. The application also uses DirectX for the graphics. I now know that DirectX intentionally sets the "floating-point unit” (FPU) to single precision by default when it starts. That is a big pro... |
2018/03/22 | 649 | 2,223 | <issue_start>username_0: I have to get the specific values from Request Header -- referer
```
referer: https://xxx.xx.xx/xx/xx?programGroupName=xxx&fundraiserPageID=3041315&participantFirstName=Test&participantLastName=Testerson&displayName=Test%20Testerson&fundraiserPageURL=http://xxx.xxx.xx/wpa/xx/xxx
```
In above... |
2018/03/22 | 716 | 2,422 | <issue_start>username_0: I have the following function:
```
export const functionName = (key) => {
const data = [
{
displayOrder: 0,
key: 'key-name-1',
},
{
displayOrder: 2,
key: 'key-name-2',
},
];
for (let index in data) {
return data[index].displayOrder === 0
... |
2018/03/22 | 587 | 1,875 | <issue_start>username_0: I want to use a JavaScript variable which is equal to the url of an image in a html img tag. I need the following tag to be able to display the image that is tied to the variable.
```js
document.getElementById("id-of-img-tag").src = imgVar;
document.getElementById("id-of-img-tag").innerHTML ... |
2018/03/22 | 700 | 2,261 | <issue_start>username_0: How to use `.toggle()` method but not for show and hide purposes?
For example, when I click on a certain div I would like to animate it's position
`$(div).animate({"left":"+=50px"});` and then on the second click to return the div on the same position `$(div).animate({"left":"-=50px"})`.
I... |
2018/03/22 | 952 | 3,533 | <issue_start>username_0: I have an MSSQL stored procedure which explicitly sets an output parameter to a value. However, when I execute that stored procedure from an Classic ASP page using an ADODB command, the output parameter is null.
Stored procedure:
```sql
ALTER PROCEDURE [dbo].[recordResponse]
@survey_id sm... |
2018/03/22 | 1,233 | 3,862 | <issue_start>username_0: ```
import argparse
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True,
help="path to input image")
ap.add_argument("-p", "--prototxt", required=True,
help="path to Caffe 'deploy' prototxt file")
ap.add_... |
2018/03/22 | 1,345 | 4,437 | <issue_start>username_0: Im aware there are many questions on how to turn an array into an object I know you can do something like this.. `object = {...arr};` but my question is more specific
say I have an array of objects like so..
```
[
{
dataType: something,
dataValue: book
},
{
d... |
2018/03/22 | 1,063 | 3,590 | <issue_start>username_0: I'm using `selenium-server` version 3.0.1 and `nightwatch` version ^0.9.12 on node 8.9.0. My e2e test do run, clicks work, and reading the DOM works, but `setValue` just doesn't.
For example, the following test:
```
browser
.url("...")
.waitForElementPresent('select[name=foo]', 5000)
... |
2018/03/22 | 1,385 | 4,880 | <issue_start>username_0: I found this piece of code online [Countdown Timer](https://codepen.io/SitePoint/pen/MwNPVq)
And attempted to implement it on a page but it wasn't counting down. Thanks to all who commented. Here's the NOW WORKING sample code (see below snippet)
```js
function getTimeRemaining(endtime) {... |
2018/03/22 | 745 | 2,627 | <issue_start>username_0: I am working on angularjs application. I'm iterating the response and displaying in a table, when user click on the table row information i'm passing the json value to the java script where i will process further and display information.
```
|
{{info.id}} | [product1 Data](javascript:void(0)... |
2018/03/22 | 731 | 2,531 | <issue_start>username_0: I have setup a Signup, Login, Logout with `bcrypt`. I have set up basic routing as shown below however keep getting the same error with
>
> "no route matches GET '/Signup'"...
>
>
>
anyone, please help I'm confused - '/Signup' should go to sessions#new which is new.html.erb in sessions r... |
2018/03/22 | 1,061 | 3,145 | <issue_start>username_0: I have a source string that I want to split the `data` out:
```
String source = "data|junk,data|junk|junk,data,data|junk";
String[] result = source.split(",");
```
The above gives `data|junk, data|junk|junk, data, data|junk`. To further get the data out, I did this:
```
for (int i = 0; i < ... |
2018/03/22 | 984 | 3,023 | <issue_start>username_0: ```
txt = open("document.txt").read()
spt = txt.split()
new_list = []
for i in spt:
if i.endswith(','):
w=i.rstrip(',')
new_list.append(w)
elif i.endswith('.'):
w=i.rstrip('.')
new_list.append(w)
else:
new_list.append(i)
print(new_list)
`... |
2018/03/22 | 632 | 1,750 | <issue_start>username_0: My Table TB\_PRUEBAS has a column called "CltsVcdos" with several repeated customer's Id's. Now, I want to add a new column that shows me a 1 when the Id is unique, and 0 when the Id is repeated.
Part of the Query
[](https://i... |
2018/03/22 | 621 | 1,709 | <issue_start>username_0: So I am using regex101.com to test my string and I can't get the output I need. The sample I made can be viewed here <https://regex101.com/r/YQTW4c/2>.
So my regex is this:
```
(.\*?)<\/table>
```
and the sample string:
```
||
| |
| |
```
I want to get the everything inside the tabl... |
2018/03/22 | 469 | 1,527 | <issue_start>username_0: I need to match a string with specific letters but none of the letters should be duplicated. For example, [AEIOU] should not match 'AAEIOU' or 'AAEEIOU'. It should only match 'AEIOU' and the order of the letters should not matter. I tried using the exact quantifier with {} but did not work.<iss... |
2018/03/22 | 198 | 805 | <issue_start>username_0: The Jenkins that we use for ETL automation stopped its service and then restarted it using command prompt. But I wanted to investigate about the reason that caused it to stop. But in System log file of Jenkins I can see only today's log. How can I see log of previous days. Please help.<issue_co... |
2018/03/22 | 538 | 1,843 | <issue_start>username_0: To begin, this is for a class, i dont like this language. Its simple Do loop to print the square root of numbers. The objective is to replace the value in the do loop with macro variables. Here is my source code:
```
%LET Start_Value = 1;
%LET Stop_Value = 5;
DATA sqrt_table;
DO &Start_Value.... |
2018/03/22 | 538 | 2,140 | <issue_start>username_0: So trying to setup my firestore database and I have a collection called Users that stores the users information. I also have subcollections of Towers for each user. My users documents have a playerUid field that I use for security settings. Here are my current security rules:
```
service cloud... |
2018/03/22 | 415 | 1,446 | <issue_start>username_0: I'm doing a code review of a project, which means cycling through all the files in it. I want to keep my hands on the keyboard but neither do I want to have to `CMD`+`P` and type in the name of each file.
I've bound `CMD`+`K`,`CMD`+`E` to `workbench.files.action.focusFilesExplorer` which enabl... |
2018/03/22 | 390 | 1,716 | <issue_start>username_0: When you navigate to: [blockchain.info](https://blockchain.info/wallet/#/login)
You will notice that if you click `view-source` on the page, it will show HTML context different than that when you `inspect-element`. My question is, how are they doing this?
I understand they are using `.pug` te... |
2018/03/22 | 651 | 2,195 | <issue_start>username_0: I want to make a symmetric encryption for the file `/tmp/public.txt`.
```
gpg --symmetric /tmp/public.txt
```
The command will invoke the `enter passphrase` window,i want to send the password automatically.
[](https://i.sta... |
2018/03/22 | 694 | 2,442 | <issue_start>username_0: I am starting to learn springboot and already encountered an error. I tried searching for this error, but i wasn't able to find it. I have inserted the pictures of the entire error as well as my code for the pom.xml and the main class.
pom.xml
```
org.springframework.boot
spring-boot-star... |
2018/03/22 | 276 | 1,027 | <issue_start>username_0: Hi I have a question about css.
I want to change the color the first element of class 'active' which is "3".
This is my code, but it doesn't work.
```css
.item.active:first-child {
color: red
}
```
```html
1
2
3
4
5
6
6
```
And Is there any way to solve this problem with Jquery??... |
2018/03/22 | 217 | 534 | <issue_start>username_0: I want to do multiplication using for loop. Here is the code.
```
a = 4
b = 6
for i in [a,b]:
i*=2
```
The values of `a` and `b` remain the same. How to make it work?<issue_comment>username_1: `int` are immutable, so you'll need to rebind `a` and `b` to fresh int objects
```
>>> a = 4
>... |
2018/03/22 | 724 | 2,119 | <issue_start>username_0: say I have HTML as
```
I want to be center of content
```
css
```
html, body {
height: 100%;
}
body {
margin: 0;
}
.page {
height: 100%;
display: flex;
flex-direction: column;
}
.header {
flex-shrink: 0;
background-color: green;
height: 50px;
}
.content {
flex-grow: 1;
... |
2018/03/22 | 644 | 2,108 | <issue_start>username_0: * react:16.3.0-alpha.1
* jest: "22.3.0"
* enzyme: 3.3.0
* typescript: 2.7.1
code:
```
class Foo extends React.PureComponent{
bar:number;
async componentDidMount() {
this.bar = 0;
let echarts = await import('echarts'); // async import
this.bar = 100;
}
}
```
test:
```
describe('...', ... |
2018/03/22 | 1,062 | 3,418 | <issue_start>username_0: My HTML is like this
```
Hello World
===========
Click Here
==========
```
I am trying to position `Hello World` in the center and the text `Click Here` 5% from the right edge of the screen.
Here is my CSS
```
.maindiv {
position: relative;
}
.maindiv h1:nth-child(1)... |
2018/03/22 | 341 | 1,219 | <issue_start>username_0: I've added a custom domain to an App Engine project. The TTFB of requests to that project's service on the \*.appspot.com domain is under 15ms. Accessing the service via the custom domain, however, takes about 80ms. What can I do to fix this?<issue_comment>username_1: According to someone who w... |
2018/03/22 | 1,138 | 4,294 | <issue_start>username_0: Is there a way to get list of all files in "resources" folder in Kotlin?
I can read specific file as
```
Application::class.java.getResourceAsStream("/folder/filename.ext")
```
But sometimes I just want to extract everything from folder "folder" to an external directory.<issue_comment>usern... |
2018/03/22 | 1,236 | 4,681 | <issue_start>username_0: I recently installed XAMPP on a windows machine(Windows 10) just to get a local server up and running so that I could make API calls and not run into any CORS issues and it was working fine.
Now what is happening is that whenever I make any changes in the .html or .js files it won't update the ... |
2018/03/22 | 866 | 3,440 | <issue_start>username_0: Started to dabble in Xamarin Forms.
Two things I cant figure out:
Binding of my Listview:
I have a class with:
```
public class Mainlist
{
public string Title
{
get;
set;
}
public string Value
{
get;
... |
2018/03/22 | 2,784 | 9,832 | <issue_start>username_0: I have this table on MS SQL Server
```
Customer Month Amount
-----------------------------
Tom 1 10
Kate 1 60
Ali 1 70
Tom 2 50
Kate 2 40
Tom 3 80
Ali 3 20
```
I want the select to ge... |
2018/03/22 | 2,928 | 9,920 | <issue_start>username_0: I know the "how to join the newest record" questions get asked a lot, however, this one exceeds my knowledge. I usually use a "join the max date subquery and then join the row with the matching id and time" approach to the problem, and I can add additional conditions in the where clause of the ... |
2018/03/22 | 309 | 1,016 | <issue_start>username_0: I am using `agm/core` in displaying the coordinates of a map. I have the code below
```
```
The view is this:
[](https://i.stack.imgur.com/JGSpn.png)
But I want to initially show the streets like this:
[
```<issue_comment>username_1: Remove
```
{display: flex}
```
styling for class mat-... |
2018/03/22 | 336 | 1,081 | <issue_start>username_0: My current mybatis `mapper.xml` is
```
select id, user\_id, mall\_id, log, log\_type
from user\_log
where user\_id in (
#{item,jdbcType=VARCHAR}
) and mall\_id = #{1}
```
the java `Mapper.java` is
```
List batchSelect(List userList, Long mallId);
```
When I start spring-boot ser... |
2018/03/22 | 688 | 1,955 | <issue_start>username_0: I want to compare the values for 2 or more keys in python dict and return the highest value. I can find max for 2 keys but I am clueless for 3 keys and above.
Here is my code for 2 keys comparison:
```
d = {}
d['right'] = [0.1, 0.3, 0.5]
d['left'] = [0.2, 0.1, 0.4]
result = [list(d)[0] if x >... |
2018/03/22 | 354 | 1,259 | <issue_start>username_0: I have vim emulator turned on, which is the desired behavior; turning it off only changes the blinking, block cursor into a blinking, non-block cursor.<issue_comment>username_1: >
> You can turn off cursor blinking by going to Settings, Editor, General, Appearance and untick `Caret blinking`
>... |
2018/03/22 | 578 | 1,730 | <issue_start>username_0: i have an ngFor ,a for loop written for Grocery items.I have got this code snippent from a website explaining ngFor over ngRepeat. I just copy pasted it . But it doesn't seem to work. It uses an interface, a @Component and an export default class. Can you also please explain that.Please help.
... |
2018/03/22 | 547 | 1,804 | <issue_start>username_0: I have a vector, `my_class`, that is made up of grades. I am trying to generate a new vector, `top_grades`, that is filled up with grades from `my_class` that are greater than or equal to 85.
I wrote the following code, but the `top_grades` vector ended up being the size of `my_class` vector, ... |
2018/03/22 | 517 | 1,953 | <issue_start>username_0: What's the best format (most efficient) way to transit GPS and ID data via LoRa radio signal , using an arduino ESP32 . I have setup a radio and built JSON strings but for such a low bandwidth format I suspect there's a better more efficient way.
Also what's the best way to handle security, j... |
2018/03/22 | 492 | 1,821 | <issue_start>username_0: I need to count the number of times each method is called when the project is run.
Also I need to know both the production and the dev mode, whatever tools code or something it can count for me.
I use C# .NETcore vso2017 Enterprise<issue_comment>username_1: 1. You could choose whatever forma... |
2018/03/22 | 736 | 2,854 | <issue_start>username_0: I am using the scikit-learn KNeighborsClassifier for classification on a dataset with 4 output classes. The following is the code that I am using:
`knn = neighbors.KNeighborsClassifier(n_neighbors=7, weights='distance', algorithm='auto', leaf_size=30, p=1, metric='minkowski')`
The model works... |
2018/03/22 | 800 | 2,637 | <issue_start>username_0: The following is the command called and the output.
This is during setting up channels on a hyperledger fabric network.
```
peer channel update -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/Org1MSPanchors.tx
```
>
> 2018-03-22 03:19:34.849 UTC [msp] GetLocalMSP -> DEBU 001... |