date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/01 | 1,463 | 4,935 | <issue_start>username_0: If I know EC2 Instance ID and EC2 Instance Name,
How to use powershell script to get EC2 instance public IP and private IP address through this information? And list the IPs for these instances<issue_comment>username_1: If you have not already done so.
How about downloading and install the A... |
2018/03/01 | 1,259 | 4,553 | <issue_start>username_0: I have an array created by `getElementsByTagName()` method and I don't understand why I get `undefined` when I ask for its elements length.
In the code the array in question is called `b`, there's also the array called `theArray` which is used as an example of the behavior I would expect from ... |
2018/03/01 | 797 | 2,744 | <issue_start>username_0: This is a code for double link list which is compiling error free but it only showing the data of first node ,not traversing any other node. Can anyone help me with it please.
```
#include
#include
#include
struct node
{
int data;
struct node \*next,\*prev;
};
struct node \*head,\*temp,\*tem... |
2018/03/01 | 777 | 2,249 | <issue_start>username_0: I am currently working on a website which has a section what will launched soon. So what I already made is blurring the DIV I wanted to blur. My idea is to add text on it saying "Coming Soon". I'm not a CSS expert, but is that possible without blurring the text in the div?
This is what I have... |
2018/03/01 | 926 | 2,954 | <issue_start>username_0: I am just learning javascript, so I really don't know what I'm doing very much. At work, we have several intranet websites that we go to to look up information. I am trying to write something that can expedite this process. I'm stuck on the very first site, just trying to get it to log in. I lo... |
2018/03/01 | 637 | 1,849 | <issue_start>username_0: Is there a way to change vim' regular expressions to python's regular expressions? I'd like to work with python's regular expressions in my vim.<issue_comment>username_1: You can create a parent div, and add the blurred div and the text div in it and use position: absolute to position them on t... |
2018/03/01 | 1,154 | 3,175 | <issue_start>username_0: I have this square 3x3 grid that I want to create the game of tic-tac-toe with, but when I put an X or O in one of the divs, it causes the cell to expand. I want to find a solution so that each cell maintains its square shape.
```css
.grid {
display: table;
border-spacing: 5px;
backg... |
2018/03/01 | 1,723 | 5,304 | <issue_start>username_0: I am working with a single large excel spreadsheet (multi-million data point). In the first column, I have ~2500 six digit identification numbers. In the second, I have ~70000 11 digit identification numbers. Every 6 digit ID is contained within one of the 11 digit IDs (for example, 701190 in c... |
2018/03/01 | 3,314 | 10,033 | <issue_start>username_0: I have a situation I am trying to find out. I am trying to compare two sets of data on the qty at a size level. It seems simple enough but the issue is in some cases the qty can be split out on two lines on one side of the equation thus I would have two lines of 250 comparing to one line of 500... |
2018/03/01 | 378 | 1,154 | <issue_start>username_0: [](https://i.stack.imgur.com/Mebmz.png)
I am able to open the above screen with `Linking.openURL('app-settings:')`.
Is there a way to go a layer deeper and open the `Notifications` setting instead (see below)?
I have search... |
2018/03/01 | 262 | 815 | <issue_start>username_0: i tried to split the answer from the question in my quiz generator, here is my code
```
string test = questions = objReader.ReadLine().Split('?');
questions[qCounter] = questions[0];
answers[qCounter] = questions[1];
qCounter++;
```<issue_comment>username_1: You'll need this syntax:
`Linkin... |
2018/03/01 | 625 | 1,997 | <issue_start>username_0: I'm trying to extract some lines from an HTML source file. The one below is simplified but it's the same idea. Using the sample below, I am trying to get it to output in numerical order...that is Form 1, Form 2, Form 3, Form 4. The problem is that the second loop restarts at the second round. S... |
2018/03/01 | 499 | 1,658 | <issue_start>username_0: I'm new to Flow and feel like this is a lot of boiler plate. Do I have to explicitly state types for React or is Flow able to infer these types automatically?
```
export class MakeCoffee extends React.Component {
componentDidMount = (): void => {
this.props.getCoffee(this.props.id);
};
re... |
2018/03/01 | 458 | 1,632 | <issue_start>username_0: ```
`# Convert string column to integer
def str_column_to_int(dataset, column):
class_values = [row[column] for row in dataset]
unique = set(class_values)
lookup = dict()
for i, value in enumerate(unique):
lookup[value] = i
for row in dataset:
row[c... |
2018/03/01 | 1,253 | 3,240 | <issue_start>username_0: I can set locale with CentOS image with
```
FROM centos
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
```
But It seems not work with Alpine image. How can I set locale with Alpine image?<issue_comment>username_1: It works for me, Dockerfile:
```
FROM openjdk:8-jdk-alpine
RUN apk update
RUN... |
2018/03/01 | 844 | 2,663 | <issue_start>username_0: I've come accross the following error about html5lib when trying to read an html data frame.
Here is the code:
```
!pip install html5lib
!pip install lxml
!pip install beautifulSoup4
import html5lib
import lxml
from bs4 import BeautifulSoup
table_list = pd.read_html("http://www.psmsl.org/da... |
2018/03/01 | 649 | 2,254 | <issue_start>username_0: I have two forms on two pages, one leads to the other. When "Submit" is pressed on page 1 it is supposed to take you to the form on page 2. Page 2 fails with "CSRF verification failed. Request aborted." With the reason being "CSRF cookie not set."
The weird part is that if I go directly to Pag... |
2018/03/01 | 546 | 1,848 | <issue_start>username_0: I'm trying to update my score everytime I call the method "updateScore()" but for some reason it doesn't work.
if I win the first time, it will update it properly, then if I select a new game and win, it won't update the score, the score remains like it is.
**Example**
first win---> (X) Wins... |
2018/03/01 | 623 | 2,386 | <issue_start>username_0: In my rails app, I have a model say 'Server' that has many 'VirtualMachine'. When a server record is configured to have 50 virtual machines, then I want to create 50 empty records of VirtualMachine immediately.
1) id: 1, start\_time: nil, space: nil
2) id: 2, start\_time: nil, space: nil
3) ... |
2018/03/01 | 1,396 | 5,681 | <issue_start>username_0: I looked at some previous threads about binary files and I am doing the dataStream like it says, but I am not for sure why mine isn't working as I think I am doing the same thing as threads say I am. My goal is to make a method that takes in a file name that is in .bin format with a shift integ... |
2018/03/01 | 439 | 1,789 | <issue_start>username_0: I am using WebAssembly in a project. I would like to package the wasm part of the project into its own module and hopefully distribute the standalone binary. I've not found anything like a 'wasm repository' so far. It would be great for web developers to be able to include a 3rd party wasm bina... |
2018/03/01 | 1,071 | 3,672 | <issue_start>username_0: I have trouble returning my search results as json in same page that I searched,
this is my function for `search page`
```
public function track(Request $request){
return view('front.track');
}
```
this is `route for it`:
```
Route::get('/track', 'frontend\FrontendController@track')->n... |
2018/03/01 | 1,151 | 4,482 | <issue_start>username_0: Does anyone know how we can **generate report** from data in **datasource** in Google AppMaker **automatically** (*e.g generate report at 12a.m.*) instead of manually click export data in deployments every time user need the report.
I have seen something similar on [Exporting data out of Goog... |
2018/03/01 | 158 | 538 | <issue_start>username_0: Am trying to get the timestamp of previous day midnight
That is if today is thursday , get the timestamp of wednesday midnight.
How do i go about this
i have tried
```
$lastdaymidnight = strtotime() //am stuck
```
What do i need to add to strtotime?<issue_comment>username_1: try this
```... |
2018/03/01 | 523 | 1,613 | <issue_start>username_0: ```
function G=costfunction(im)
G=zeros(size(im,1),size(im,2));
for ii=1:size(im,3)
G=G+(filter2([.5 1 .5; 1 -6 1; .5 1 .5],im(:,:,ii))).^2;
end
end
```
Here, `im` is an input image (rgb image).
What will this cost function return?<issue_comment>username_1: Assuming that `fi... |
2018/03/01 | 2,133 | 7,638 | <issue_start>username_0: I had this error in my project. However couldn't find anywhere how to resolve it. Anyone has this problem?
It causes the build being run all over again every time.
Compilation with Kotlin compile daemon was not successful
```
java.lang.NoSuchMethodError: org.jetbrains.kotlin.daemon.common.In... |
2018/03/01 | 366 | 1,298 | <issue_start>username_0: Consider the following code, the first call to `AcceptType1` compiles fine, however the second call of `AcceptType1(XYZ);` fails. The specific error is:
>
> Error CS0119 'XYZ' is a type, which is not valid in the given context
>
>
>
I'm not understanding the the specifics behind the error... |
2018/03/01 | 824 | 3,017 | <issue_start>username_0: Im trying to print out the name of the day of the week i.e Monday, Tuesday, Wednesday. I currently have this bit of code that does just that. I was wondering if there is a way to get rid of my switch statement and make this better. Thanks!
```
func getDayOfWeek(_ today: String) -> String? {
... |
2018/03/01 | 642 | 2,531 | <issue_start>username_0: What is the Difference between `Object.defineProperty(obj, 'x', ...)` and `obj.x`?
From [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_define_property_object_not_extensible), in **non-strict** mode:
```
var obj = { };
Object.preventExtensions(obj);
Ob... |
2018/03/01 | 582 | 2,292 | <issue_start>username_0: I am going to look up with keyword substring "vi" for key "full\_name". How can I do that?
```
[{
"full_Name": "<NAME>",
"email": "<EMAIL>"} ,
{
"full_Name": "<NAME>",
"email": "<EMAIL>"
}]
```
Thank you.<issue_comment>username_1: Neither technique will work.
---------------... |
2018/03/01 | 771 | 3,188 | <issue_start>username_0: So I'm writing some code for my class and have to have a list of floats that are input by a user and print them out with normal iteration and reverse iteration, and I have basically all of it done. But when it should ask multiple times for the user input, it only asks one time then prints every... |
2018/03/01 | 640 | 2,541 | <issue_start>username_0: This is my login code in express router:
```
if (password === realpassword) {
res.cookie('thecookie', '<PASSWORD>');
res.redirect(302, '/somepages');
} else {
res.status(403).end();
}
```
I want to set the cookie so that the `/somepages` can recognize who is this user.
But I got... |
2018/03/01 | 586 | 2,399 | <issue_start>username_0: User is able to turn off app notification on Android. Is there a way to check if the user did so?
The [React Native doc](https://facebook.github.io/react-native/docs/permissionsandroid.html) did not mention Notification permission as it's not a permission that requires prompting the user.
[An... |
2018/03/01 | 1,248 | 4,381 | <issue_start>username_0: I have some code looking like this:
```
package org.samidarko.actors
import org.samidarko.helpers.Lib
class Monitoring extends Actor {
override def receive: Receive = {
case Tick =>
Lib.sendNotification()
}
}
```
Is there a way to **mock/stub** `Lib` from **ScalaTest** li... |
2018/03/01 | 434 | 1,448 | <issue_start>username_0: I am making a website using Bootstrap, Node.js, and jQuery for a club. I am trying to write a piece of Javascript code that when an image (or preferably the div it is in) is clicked on, another javascript function I have to change the pdf displaying will run. My problem is nothing works to catc... |
2018/03/01 | 298 | 965 | <issue_start>username_0: I am creating a code in Python to get the 10001st prime number, and I am looking for a way to stop printing numbers once I have printed 10001 numbers. Is this possible?<issue_comment>username_1: Use JQuery Event Delegation to set up the handler on the parent element, but test to see if the even... |
2018/03/01 | 492 | 1,563 | <issue_start>username_0: I'm using React-Bootstrap and trying to accomplish this: [transparent navbar](https://i.stack.imgur.com/5tlG6.png)
I want the navbar to be full width while the banner with image + text on top should be 80% and centered. I believe I can't make it the background image in this case, as I'm not su... |
2018/03/01 | 1,043 | 3,275 | <issue_start>username_0: I have a list
```
list1 = ['good']
```
I have another list with synonyms of the word "good"
```
list2 = ['unspoilt', 'respectable', 'honorable', 'undecomposed', 'goodness', 'well', 'near', 'commodity', 'safe', 'dear', 'just', 'secure', 'in_force', 'practiced', 'trade_good', 'proficient', '... |
2018/03/01 | 166 | 586 | <issue_start>username_0: I don't see anything in API for disabling this behavior.
I just want users to have to click on a specific date.<issue_comment>username_1: use the prop `onSelecting`. For example: `onSelecting = {slot => false}`
Upvotes: 3 [selected_answer]<issue_comment>username_2: I had to get selection for c... |
2018/03/01 | 417 | 1,395 | <issue_start>username_0: I've searched through the internet and haven't found any solution for the newest version of bootstrap.
I've thought of two things: Using opacity (didn't work since every other element from the Jumbotron inherits it), and setting a background image whose opacity I thought I could change later ... |
2018/03/01 | 1,598 | 6,181 | <issue_start>username_0: I'm in a weird situation that i need to instantiate a new Class with a string stored in a variable but even i'm sure the class name is correct i get an error that given class name is not a constructor
Here is a dummy code that doesn't work:
```
class Foo {
constructor(){
console.l... |
2018/03/01 | 5,180 | 10,634 | <issue_start>username_0: I am plotting multiple heatmaps together and don't want them to crowed the space with their axes' labels. I tried to use plt.tight\_layout() and it is throw some errors at me.
This is my result without plt.tight\_layout():
[heatmaps without plt.tight\_layout()](https://i.stack.imgur.com/EBJPc... |
2018/03/01 | 2,349 | 6,414 | <issue_start>username_0: We are using IdentityServer4 with .NET Core Web Application("<http://docs.identityserver.io/en/release/quickstarts/0_overview.html>"). We have replaced `AddDeveloperSigningCredential` with `AddSigningCredential(CreateSigningCredential())`. As we cannot use `AddDeveloperSigningCredential` for pr... |
2018/03/01 | 203 | 689 | <issue_start>username_0: I currently have a row with 2 . Each div has a button and is fine when in full view, but is not responsive as the buttons overlap each other.
Is it best to add a @media (max-width:767px) {.col-xs-2 {width: 50%;} in the bootstrap file or change in the CSS?<issue_comment>username_1: On columns y... |
2018/03/01 | 525 | 1,824 | <issue_start>username_0: I have to print a set using standard set notation. I'm supposed to use recursion and there has to be a base case somewhere. the final answer should come out as a set, and I must print without adding a new line.
this is a function that is supposed to print out a powerset of random integers. th... |
2018/03/01 | 1,465 | 4,737 | <issue_start>username_0: I have a region:
```
Items Quantity Amount
"Item A" 423 63
"Item B and C" 27 169
"Item D " 6 199
```
I would like to create org-table of the above region:
```
|Items | Quantity| Amount|
----------------|------------------
|"Item A" | 423 | 63 |
|"Item A and C" | 27 ... |
2018/03/01 | 226 | 923 | <issue_start>username_0: I am new to Greenplum database. I have a question.
Is Cluster on table mandatory after creating an index on a column in Greenplum in case of row-based distribution?<issue_comment>username_1: The "massively parallel" (MPP) nature of Greenplum's software-level architecture, when coupled with the ... |
2018/03/01 | 464 | 1,568 | <issue_start>username_0: I can't seem to get the right expression to modify the href links of a query result with a string (to be set as a new url) taken from another query but on the same parent node. Consider this structure:
```
| | |
| --- | --- |
|
link-1
[Item 1](broken-link)
|
link-2
[Item 2](broken-l... |
2018/03/01 | 454 | 1,558 | <issue_start>username_0: I want to explode array value and have successfully doing so by using this code :
```
@foreach(explode('.', $comment->topic_id) as $topic)
{{ $topic }}
@endforeach
```
This is the output
```
Topic : 1,2
```
The problem is, I want to implement relation belongsTo to the `topic_id`. When... |
2018/03/01 | 488 | 1,624 | <issue_start>username_0: Say if I populate a `DataTable` with a SQL command like this:
```
SQLCmd.Parameters.AddWithValue("@Date",DateTime.Today());
SQLCmd.CommandText = @"select ID, Name, Date from TestTable1 where Date=@Date";
SqlDataAdapter SQLAdapter = new SqlDataAdapter(SQLCmd);
DataTable dt = new DataTable();
S... |
2018/03/01 | 973 | 3,799 | <issue_start>username_0: I am new to Java and I found a loop in existing code that seems like it should be an infinite loop (or otherwise have highly undesirable behavior) which actually works.
Can you explain what I'm missing? The reason I think it should be infinite is that according to the documentation here (<http... |
2018/03/01 | 788 | 3,057 | <issue_start>username_0: I would like to load `TextureView` as a part of my layout. I saw before some examples that it uses `TextureView` inside `setContentView` function.
```
...
TextureView textureView = new TextureView(this);
textureView.setSurfaceTextureListener(this);
setContentView(textureView);... |
2018/03/01 | 1,299 | 4,268 | <issue_start>username_0: I was trying to create some basic inspec tests to validate a set of HTTP URLs. The way I started is like this -
```
control 'http-url-checks' do
impact 1.0
title 'http-url-checks'
desc '
Specify the URLs which need to be up and working.
'
tag 'http-url-checks'
describe http('ht... |
2018/03/01 | 2,194 | 7,036 | <issue_start>username_0: Whenever I am Trying to Re-Build or Run my Code, following Error is coming: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
>
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
>
>
>
I have c... |
2018/03/01 | 722 | 2,462 | <issue_start>username_0: I created a Thor class inside a Ruby executable, and it correctly shows the help when using `./foo help bar`.
To make it more intuitive (for the sanity of my users), I'd also like to support `./foo bar --help` and `./foo bar -h`. When I do that, I get:
```
ERROR: "foo bar" was called with arg... |
2018/03/01 | 796 | 2,591 | <issue_start>username_0: I've a very simple question: trying to get the result of xml in to the header location, but I'm getting error:
Parse error: syntax error, unexpected ';'
I also found the the link there explain how to solve the problem,
[syntax error,](https://stackoverflow.com/questions/12769982/reference-what... |
2018/03/01 | 639 | 1,971 | <issue_start>username_0: ```
CREATE TABLE car (id INT, name1 CHAR(15))
CREATE TABLE sales (sid INT, cid INT, year1 INT)
INSERT INTO car
VALUES (1, 'vento'), (2, 'vento'), (3, 'baleno'), (4, 'swift')
INSERT INTO sales
VALUES (1, 1, 2017), (2, 3, 2018), (3, 3, 2017), (5, 4, 2017)
--verify
--SELECT * FROM car
--SELECT *... |
2018/03/01 | 589 | 1,989 | <issue_start>username_0: I have a table of a classroom with 3 column: Name, Class and Age. When do
```
Select * from students
```
It shows these value
```
Name | Class | Age
John | D | 7
Mary | A | 10
Jenny | B | 9... |
2018/03/01 | 2,131 | 6,356 | <issue_start>username_0: ```
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import bs4
import datetime
import time
#options = Options()
#options.add_argument("--headless")
#driver = webdriver.Firefox(firefox_options=options)
driver = webdriver.Firefox()
driver.get("https://www.... |
2018/03/01 | 864 | 3,141 | <issue_start>username_0: I have a loading image in my page and a number of react components. In several components I need to implement the functionality of show/hide loading image.
So there are three options I can think of:
1. In each component, use a state variable and a loadingImage component to show hide the ima... |
2018/03/01 | 838 | 3,109 | <issue_start>username_0: I'm trying to deploy Nexus3 as a Kubernetes pod in IBM Cloud service. I am getting this error, probably because the PVC is mounted as read only for that user. I have had this problem other times in Postgres for example but I can't recall how to solve it:
```
mkdir: cannot create directory '../... |
2018/03/01 | 715 | 2,892 | <issue_start>username_0: I'm a beginner in Javascript and my professor has only taught us HTML5 and Javascript so far so I can't show up using PHP lol. So far I have a page with a form where a user can input data and I have an external javascript file that has two functions to verify passwords and auto-populate deliver... |
2018/03/01 | 1,510 | 4,861 | <issue_start>username_0: I'm expecting that 'close' event is fired when I'm
clicking ESC button being on "shadow-modal" div, but it's not happening
**vue 2.5.13, any ideas why?**
```html
default header
default body
[Cancel](#)
```<issue_comment>username_1: While it's not input element that you're trying to bi... |
2018/03/01 | 674 | 1,866 | <issue_start>username_0: I have 2 txt file that's have data like that :
```
Account.txt
12345
12346
12347
Card.txt
1111
2222
3333
```
i want to loop both txt file in sametime and input into Text box Card and textbox account .
```
Account:
Card:
Bind
```
I already try to loop but i can only loop one txt f... |
2018/03/01 | 552 | 1,753 | <issue_start>username_0: My app crashes every time it reaches this line:
```
const {name, price} = req.query;
^
```
can't seem to locate the exact answer..here is the error log
```
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at ... |
2018/03/01 | 846 | 2,738 | <issue_start>username_0: I have a array of objects such as.
```
var arrStudents = [S1,S2,S3,S4,S5]
```
Here s1 is object of student class
```
class Student {
var id:Int!
var name:String!
var address:String?
var phone:Int!
}
```
Now I want to delete a record from array by the the student id. pleas... |
2018/03/01 | 862 | 2,853 | <issue_start>username_0: I have implemented his code working on successfully on the same activity, but how can I log out from another Activity.
To refer full code: <https://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/>
```
private void signOut() {
Auth.GoogleSignInApi.signOut(mGoogleApiC... |
2018/03/01 | 795 | 2,613 | <issue_start>username_0: After one of my PHP Scripts, I am running this code
```
echo ('alert("hi");');
```
However, no alert is shown. Is this a limitation with how the DOM is loaded, and if so, how do I work around it?<issue_comment>username_1: loop through all the indexes of the array and check if the id you want... |
2018/03/01 | 1,058 | 4,812 | <issue_start>username_0: I have a splashscreen that called with `Starter`.
```
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
StartAnimations();
Timer t = new Timer();
t.schedule(new TimerTask() {
@Override
... |
2018/03/01 | 373 | 1,298 | <issue_start>username_0: I am currently studying stacks and there is one thing that I do not understand. I have to create two constructors. What I don't understand is why do I have to set the top at -1 for my second constructor when my program already stacked some elements? Thanks
```
public stack () {
Array = ne... |
2018/03/01 | 819 | 3,164 | <issue_start>username_0: I'm trying to pass context inside `with()`, but "this" doesn't work, neither do `getContext()`, `getActivity()`. My class is a ViewHolder which extends `RecycleView`. How do I get the context?
```
protected void bind(I item, @Nullable OnContactClickListener *listener) {
Author author = item.g... |
2018/03/01 | 668 | 3,000 | <issue_start>username_0: I am getting below error while calling DbContext.SaveChanges().
**The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: AcceptChanges cannot continue becaus... |
2018/03/01 | 222 | 564 | <issue_start>username_0: My time is in 24 hour format
I am trying to use `strtotime` as
```
$final_date = strtotime("next Wednesday 20:16")
```
but when I echo
```
echo date("D, d M, Y H:s A", $final_date)
```
I get
```
Wed, 07 Mar, 2018 20:00
```
The minutes are not accounted for, but the hour works fine. W... |
2018/03/01 | 717 | 1,884 | <issue_start>username_0: I have index.blade.php as :
```
@extends('backend.layouts.app')
@section('title')
Danh sách sinh viên
@endsection
@section('content')
@if(session()->has('status'))
{{ session('status') }}
@endif
{{csrf\_field()}}
### Danh sách sinh viên
[Bấm vào đây để thêm dữ liệu]({{route('sinhvien.... |
2018/03/01 | 490 | 1,748 | <issue_start>username_0: I need to hide only one video control from safari browser which is Picture in Picture (PiP). Is there is any solution for that ?
Can we hide this using HTML5?
<issue_comment>username_1: There doesn't seem to be any official way to do it...
Currently in... |
2018/03/01 | 592 | 2,053 | <issue_start>username_0: im new to haskell and im a bit stuck i have
```
data Tree a = Empty | Leaf a | Branch a (Tree a) (Tree a)
deriving (Show)
```
I want to crate an fmap and a foldMap , so i tried
```
instance Functor Tree where
fmap f (Leaf x) = Leaf (f x)
fmap f (Branch a left right) = Branch a... |
2018/03/01 | 478 | 1,800 | <issue_start>username_0: I'm trying to serve my cloud storage content using custom domain over https. Currently, I'm using Amazon S3 with CloudFront to deliver the content using custom domain over https. But S3 with CloudFront is costly, So I'm now searching for an alternative.
1. Is Azure or Google Cloud natively sup... |
2018/03/01 | 1,647 | 4,813 | <issue_start>username_0: I have a simple node server written in typescript. My package.json is configured as:
```
"scripts": {
"build": "tsc",
"dev": "nodemon --watch src/**/* -e ts,json --exec ts-node ./src/server.ts",
"debug": "nodemon --verbose --watch src/**/* -e ts,json --exec ts-node --inspect ./src/serv... |
2018/03/01 | 2,387 | 8,808 | <issue_start>username_0: I'm trying to create a 10 character password that includes a mix of numbers, letters (uppercase and lowercase), and symbols.
Below is the script I am using in the function:
```
Function Get-TempPassword {
$TempPassword = $null
$ascii = $NULL;For ($a = 33;$a –le 126;$a++) {$ascii +=, ([char... |
2018/03/01 | 1,127 | 3,136 | <issue_start>username_0: I can tail the logs of a single docker container by doing:
```
docker logs -f container1
```
But, how can I tail the logs of multiple containers on the same screen?
```
docker logs container1 container2
```
doesn’t work. It gives an error:
```
“docker logs” requires exactly 1 argument(s... |
2018/03/01 | 268 | 963 | <issue_start>username_0: Do anyone know how to show Total Lines prior display when using `TextInputEditText` and `TextInputLayout`? I don't have this problem when using the normal EditText without the `TextInputLayout`. This is my sample code :
```
```
My goal is to have the same effect like html `textarea` when we'... |
2018/03/01 | 1,342 | 3,768 | <issue_start>username_0: When I tried to install `mysql` in python
using this command `python -m pip install mysql`
can anyone help me with this?
>
> Collecting mysql Using cached mysql-0.0.1.tar.gz Collecting
> MySQL-python (from mysql) Using cached MySQL-python-1.2.5.zip
> Installing collected packages: MySQL-p... |
2018/03/01 | 900 | 3,844 | <issue_start>username_0: I have nested array of object structure look like this
```
const resp = [
[
{
id: 1
"name": {
"en": {
"language": "en",
"value": "something"
},
"id": {
"language": "th",
"value": "something else"
}
... |
2018/03/01 | 386 | 1,430 | <issue_start>username_0: I'm getting a `.PNG` image file from an API like so
```
public static async Task GetImage(string UserID)
{
var URL = "assumeThisUrlPointsToServer"
HttpClient client = new HttpClient();
Stream stream = await client.GetStreamAsync(URL);
return new CachedImage { Source = ImageSource.FromSt... |
2018/03/01 | 761 | 2,560 | <issue_start>username_0: I'm trying to test a SQL query in SQL Server Management Studio that normally requires a multivalue parameter from the SSRS report its a part of.
I'm not sure to how hard code a multi value parameter in management studio. The report was created by a vendor, I'm just trying to make it runnable ... |
2018/03/01 | 282 | 1,150 | <issue_start>username_0: So this is my last 2 lines in one of my endpoint:
```
self.send_activation_mail(request, user=user)
return self.response(request, status=201, title='Created', description='Please check your email for activation', data=user_data)
```
returning self.response will be return the my rest client a... |
2018/03/01 | 852 | 2,003 | <issue_start>username_0: First Df is:
```
ID Name ID2 Marks
1 12 1 333
```
Second Df2 is:
```
ID Name ID2 Marks
1 3 989
7 98 8 878
```
I need output is:
```
ID Name ID2 Marks
1 12 1 333
1 3 989
7 98 8 878
```
Kindly help!<issue_comment>username_1: Use `union` or ... |
2018/03/01 | 858 | 2,133 | <issue_start>username_0: I am trying single sign on cross browsing using cookies
So I get cookie from asp.net named "**logininfo**"
When I print values of cookie in php using
```
session_start();
$NAME=$_COOKIE['logininfo'];
echo $_COOKIE["logininfo"];
```
I get Result as
```
Emp_Id=119&Org_Id=11&Unit_Id=123&User... |
2018/03/01 | 1,166 | 3,237 | <issue_start>username_0: To read the json file I have created below method in groovy. I am calling it from another class.
```
class WUPage{
@Shared
String fileContents ;
def jsonSlurper ;
def jsonObject ;
public String getValueFromJsonFile(String fileName, String jsonKey){
fileContents =... |
2018/03/01 | 600 | 2,245 | <issue_start>username_0: So I'm looking for a way to list out all the instances of a subclass either through a regular method or a classmethod.
For example:
```
class Player:
def __init__(self,role, abilities, visiting, unique,Type)
self.role = role
self.abilities = abilities
self.unique =... |
2018/03/01 | 1,325 | 4,156 | <issue_start>username_0: I have an array of object of products, which includes several products details.
```
var bags = [
{ product_id: 1 , product_name: "product 1" , quantity: 1 },
{ product_id: 2 , product_name: "product 3" , quantity: 1 },
{ product_id: 3 , product_name: "product 2" , quantity: 1 }
];
... |
2018/03/01 | 1,200 | 3,898 | <issue_start>username_0: In order to check all sub projects's code style. I create a file `checkstyle.gradle` and apply it to `build.gradle` in root dir.
```
apply plugin: 'checkstyle'
subprojects { project ->
task checkstyle(type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
ignor... |
2018/03/01 | 1,899 | 6,377 | <issue_start>username_0: I am a newbie in Javascript, I have to filter an array so I have googled, and spent my time to find the solution but no one helped me.PLZ help me.
I have the following array which is the result of a query:
```
"clause": [
{
"clause_id": 1,
"clause_text": "A",
"claus... |
2018/03/01 | 803 | 2,963 | <issue_start>username_0: I'm starting to play with Colaboratory but I've noticed that `shift-tab` doesn't pop up Docstrings for functions as it does in Jupyter.
Is this functionality absent or just accessed some other way?<issue_comment>username_1: Shift-tab dedents. To see contextual help inline, hit tab after an ope... |
2018/03/01 | 570 | 1,584 | <issue_start>username_0: I want to apply nackground gradient style like this -> <http://nimb.ws/Xq79Uw>
Following is HTML code:
```
[Artful Interiors](http://localhost/magnifissance/?cat=86)
[<NAME> Shares His Vision of Form, Tradition and Renewal](http://localhost/magnifissance/?p=12466)
```
Any one have a id... |
2018/03/01 | 1,182 | 2,472 | <issue_start>username_0: I have a program that compares a user input of Lat/Lon against a set of Lat/Lon and displays the closest.The code is below and works fine:
```
#prints out the closest lat and lon
from math import cos, asin, sqrt
#Haversine formula
def distance(lat1, lon1, lat2, lon2):
p = 0.01745329251994... |
2018/03/01 | 1,279 | 3,157 | <issue_start>username_0: I am making a program that removes a number from the index that the user provides from the array, displays the new array, then asks the user to insert a number at whatever index they choose. The first part of this program works fine when it comes to removing an index, but I am having trouble wi... |
2018/03/01 | 785 | 2,145 | <issue_start>username_0: I am calling a function on submit to check whether required uploads are done or not and if there are no uploads in the database, the form should not be submitted.
By using alert , I can see that my checkuploads.asp is returning the correct value and it is displaying the alert that data was no... |
2018/03/01 | 734 | 1,690 | <issue_start>username_0: Below is python test code to login `jira` using username and password and it works fine.
```
from jira import JIRA
jira = JIRA('http://xxx')
jira = JIRA(basic_auth=('username','password'),options={'server': 'http://xxx'})
issue = jira.issue('XXXX-762')
print "For task", issue,", summary is-... |
2018/03/01 | 440 | 1,639 | <issue_start>username_0: I have a server side web API developed in ASP.NET MVC 5.0 using C#, and it generates a large volume of data in JSON format (~25MB) reading from SQL Server back-end. When this API is called inside my jQuery client-side, the request/response is completed successfully, but it takes ~5 minutes befo... |