date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 1,547 | 4,364 | <issue_start>username_0: I have a JavaScript code like so:
```
var myArray = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
for (var i = 0, di = 1; i >= 0; i += di) {
if (i == myArray.length - 1) { di = -1; }
document.writeln(myArray[i]);
}
```
I need it to stop right in the middle like 10 and... |
2018/03/22 | 613 | 2,099 | <issue_start>username_0: I use Eclipse for Python development and depend on the F2 function key to send lines of code to the console. Recently, F2 has stopped working in my installation of Eclipse Neon. I have tried everything I can think of to get it to work again:
* close and reopen the python module
* close and reo... |
2018/03/22 | 521 | 1,707 | <issue_start>username_0: ```
line = int(input("How many items are in the chart?: "))
for i in range(line + 1):
for j in range(line):
number = int(input("How much of this specific item?: "))
_star = "*"
print(_star * number)
break
```
With this code I am trying to take user input for eac... |
2018/03/22 | 271 | 1,069 | <issue_start>username_0: What I want to happen is when you run into a cube, the game resets, but this is not working. I can't even get it to log anything in the console when it collides. I have a rigidbody and a collider on both objects, but they still don't work.
```
using System.Collections;
using System.Collections... |
2018/03/22 | 1,510 | 5,456 | <issue_start>username_0: I'm relatively new to pl/sql and i'm trying to make a list with records objects but i dont know how to initialize for each item of the list both fields from record item. For example : in procedure "new item" how i can initialize example(1) ? with example(1).id\_std := integer and example(1).pro... |
2018/03/22 | 525 | 1,546 | <issue_start>username_0: I have a title tag and I want to make a small border under the title.
I use :after to do this :
```
h1:after{
content: '';
display: block;
height: 4px;
width: 60px;
margin: 9px 0 0 2px;
color:#fff;
}
```
I want the border on the left of the title, it's ok when title is align left... |
2018/03/22 | 1,039 | 3,000 | <issue_start>username_0: I write the below assembler code, and it can build pass by as and ld directly.
```
as cpuid.s -o cpuid.o
ld cpuid.o -o cpuid
```
But when I used gcc to do the whole procedure. I meet the below error.
```
$ gcc cpuid.s -o cpuid
/tmp/cctNMsIU.o: In function `_start':
(.text+0x0): multiple def... |
2018/03/22 | 678 | 2,243 | <issue_start>username_0: I'm using Bootstrap 4. I'd like the navbar-brand item (which is just a text element) to be on the far right. The menu (as normal) defaults to the left.
I've tried applying `ml-auto`, `mx-auto`, `mr-auto`, `pull-right`, etc. Nothing does what I want.
`mx-auto` was nice for the small screen. It... |
2018/03/22 | 589 | 1,442 | <issue_start>username_0: I have a coordinate text file and I wish to read it into a regionprop. I wish to use the regionprop for few analysis like Centroid. How can I do it?
Code:
```
filename = fullfile('E:/outline.txt');
fileID = fopen(filename);
C = textscan(fileID,'%d %d');
fclose(fileID);
stats = regionprops(C... |
2018/03/22 | 5,419 | 13,321 | <issue_start>username_0: I'm running two different SQL queries and getting vastly different results:
The Tables:
-----------
*mips*: This table is indexed on `time` and contains a `*_good` and `*_bad` field for each "metric" that I measure (round-trip time, re-transmitted bytes, etc). The fields are: `time`, `rtt_goo... |
2018/03/22 | 744 | 2,340 | <issue_start>username_0: I am a SQL Server newbie. I am trying to create test data.
I have a table that contains 10,000 part numbers(Table1).
I have another table that contains warehouses(Table2).
I have a third table(Table3) that will contain a row for every part number/warehouse combination.
Table1 will contain t... |
2018/03/22 | 1,684 | 5,629 | <issue_start>username_0: I'm working on a benchmark program. Upon making the `read()` system call, the program appears to hang indefinitely. The target file is 1 GB of binary data and I'm attempting to read directly into buffers that can be 1, 10 or 100 MB in size.
I'm using `std::vector` to implement dynamically-size... |
2018/03/22 | 1,372 | 4,522 | <issue_start>username_0: I'm trying to parse Oxford Dictionary in order to obtain the etymology of a given word.
```
class SkipException (Exception):
def __init__(self, value):
self.value = value
try:
doc = lxml.html.parse(urlopen('https://en.oxforddictionaries.com/definition/%s' % "good"))
except Skip... |
2018/03/22 | 1,298 | 4,084 | <issue_start>username_0: **Headnote:** I am having trouble removing spacing from around [Google's Material Design icons](https://material.io/), and cannot seem to find any solutions on Google or [the Material Design icons guide](http://google.github.io/material-design-icons/). I am not sure whether the answer is blatan... |
2018/03/22 | 336 | 1,396 | <issue_start>username_0: I try to find out the timeout of the Apache HttpClient. The doc file\* says that the default timeout for http connections is the "system default" timeout. But what is the "system default"? And how can I find out what the value for the "system default" timeout is set to?
\*"A timeout value of z... |
2018/03/22 | 524 | 1,842 | <issue_start>username_0: I have converted the video into 3 formats such as .mp4, .webm, .gov But still background video is not playing in safari browser
```
```
page url is <http://gnxtsystems.com/cookie-test/>
Please help me to fix it. Thanks in advance.<issue_comment>username_1: It might be because of the mime ty... |
2018/03/22 | 1,136 | 3,669 | <issue_start>username_0: For a dataframe containing a mix of string and numeric datatypes, the goal is to create a new `features` column that is a `minhash` of all of them.
While this could be done by performing a `dataframe.toRDD` it is expensive to do that when the next step will be to simply convert the `RDD` *back... |
2018/03/22 | 1,487 | 5,583 | <issue_start>username_0: I searched and could not find this answer anywhere else. Apologies if it's a bit of a noob question for someone not that experienced at scripting.
I'm trying to create a bash script to setup a server with all software needed for an application. In short, when installing docker I need to add th... |
2018/03/22 | 708 | 2,221 | <issue_start>username_0: Here we are calling sizeof operator on the derived class WData1. As I know, first base class constructor (Persistent) will be called. Till now WData1 doesn't exist because class Persistent constructor is being called and class Data is waiting for his turn.
\*
```
class WData1 : public Persist... |
2018/03/22 | 480 | 1,670 | <issue_start>username_0: I have `ActiveForm` checkbox:
```
= $form-field($model, 'is_necessary')->checkbox(['uncheck'=> 0]) ?>;
```
I want to make it checked by default and when I check, it's value become 1 and when uncheck - 0. Can I achieve this without any `javascript`?
I tried :
```
= $form-field($model, 'is_... |
2018/03/22 | 516 | 1,803 | <issue_start>username_0: ,

I want to get the percentage increase in price by **Country and City** based on latest transaction date and date of Previous Transaction.
How can I Qu... |
2018/03/22 | 948 | 2,684 | <issue_start>username_0: During making some heatmap I face with some problem. All my cells is painting with yellow! MLOGIC show that all the statements TRUE with yellow colour but the values in cells is a different? there is all red and white. Could you tell me my mistake& Thank you! The code and log below:
```
%macro... |
2018/03/22 | 658 | 2,538 | <issue_start>username_0: I have an array I build up when a row is selected in my bootstrap data table. I then need to pass this from my view to the controller which is going to fire up a partial view. However when I execute the code I get null reference exception in my controller. The code in the controller is just a p... |
2018/03/22 | 1,287 | 5,068 | <issue_start>username_0: I was trying to overwrite SetPasswordForm to add a placeholder and a class but it seems that it is not working. I managed to do it for login page and password reset page but here I got stuck.
```css
class MySetPasswordForm(SetPasswordForm):
new_password1 = forms.CharField(
label=... |
2018/03/22 | 1,030 | 4,318 | <issue_start>username_0: I have an application with a `TreeView` control that is built using a set of data types representing different levels in the hierarchy and an accompanying set of `HierarchicalDataTemplate`s. What I want to do now is set appropriate `AutomationProperties.Name` values on the tree items.
Normally... |
2018/03/22 | 620 | 1,473 | <issue_start>username_0: example of input file:
```
LINE1 LINE1 M) W1 W2 W3}N) REST
LINE2 LINE2 SOME OTHER WORDS
LINE3 LINE3 LINE3 M) Z1 Z2 Z3 Z4}N) REST
```
in matched lines between patterns M) and N) I need to replace all spaces but the first one, expected output is:
```
LINE1 LINE1 M) W1W2W3}N) REST
LINE2 LINE2 ... |
2018/03/22 | 1,827 | 6,821 | <issue_start>username_0: In Java I would declare a function like this:
```
public boolean Test(boolean test) throws Exception {
if (test == true)
return false;
throw new Exception();
}
```
And I can use this function without handling the exception.
If it is possible, how to do the same in Typescript? The c... |
2018/03/22 | 1,120 | 4,202 | <issue_start>username_0: In my specific `TPersistent` classes I'd like to provide a `Clone` function, which returns an independent copy of the object.
Is it possible to make this work correctly with descendants, without implementing the `Clone` function in each and every descendant?
This is not about cloning any unkn... |
2018/03/22 | 1,161 | 3,161 | <issue_start>username_0: This code is supposed to iterate over the list of lists and return the entire list that contains the smallest value. I have already identified that it keeps returning the list at index[0], but I cannot figure out why. Any help, or even hints, would be greatly appreciated.
```
def list_with_mi... |
2018/03/22 | 520 | 1,162 | <issue_start>username_0: I have a data frame:
```
a <- c(1,2,3,4,5,6)
b <- c(1,2,1,2,1,4)
c <- c("A", "B", "C", "D", "E", "F")
df <- data.frame(a,b,c)
```
What I want to do, is create another vector `d`, which contains the value of `c` in the row of `a` which matches each value of `b`
So my new vector would look... |
2018/03/22 | 1,012 | 3,700 | <issue_start>username_0: I have a Cosmos DB stored procedure in which I am passing list of comma saperated Ids. I need to pass those IDs to in query. when I'm passing one value to the parameter then its working fine but not with more that one value.
It would be great if any one could help here.
below is the code of th... |
2018/03/22 | 512 | 1,742 | <issue_start>username_0: Blender runs its own Python. When I write Python code like this
```py
import bpy
print(bpy.data.objects)
```
for Blender it runs fine with
```none
$ blender --background --python my_code.py
```
But when I want to document my code with Sphinx and the *autodoc* extension it cannot import `b... |
2018/03/22 | 1,286 | 4,323 | <issue_start>username_0: I'm new to UI. I do have confusion between `$scope`'s in AngularJS. Please refer below snippet.
```
var mainApp = angular.module("mainApp", []);
mainApp.controller(['$scope', function($scope) {
$scope.name = "John";
}]);
```
So, what's the difference between `$scope` and `function($s... |
2018/03/22 | 1,268 | 4,295 | <issue_start>username_0: I have a Cross Platform request call, and it gets the data inside the xhr.**onload** function, how do I return that data to the main function?
```
makeCorsRequest(email) {
var xhr = this.createCORSRequest(email);
xhr.send()
xhr.onload = function() {
var text = xhr.resp... |
2018/03/22 | 463 | 1,765 | <issue_start>username_0: ```
ALTER PROCEDURE GetVendor_RMA_CreditMemo
(@HasCreditMemoNo INT)
BEGIN
SELECT
*
FROM
(SELECT
CreditMemoNumber,
CASE WHEN CreditMemoNumber != ''
THEN 1
ELSE 0
END AS HasCreditMemoN... |
2018/03/22 | 768 | 2,707 | <issue_start>username_0: ```
function a() {
console.log('A!');
function b(){
console.log('B!');
}
return b;
}
```
When I do like this,
```
var s = a();
```
Here is the output:
```
A!
```
When I do like this,
```
a();
```
The output is as below:
```
A!
ƒ b(){
consol... |
2018/03/22 | 696 | 2,332 | <issue_start>username_0: I launch a tensorflow task on ML Engine and after about 2 minutes I keep getting an error message "**The replica master 0 exited with a non-zero status of 1.**"
(The task incidentally runs fine with ml-engine local.)
Question: Is there any place or log file where can I see further informatio... |
2018/03/22 | 570 | 2,043 | <issue_start>username_0: I have a file like the one below
```
HTTP/1.1 401 Unauthorized
Server: WinREST HTTP Server/1.0
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 89
WWW-Authenticate: ServiceAuth realm="WinREST", nonce="1828HvF7EfPnRtzSs/h10Q=="
UnauthorizedError 401:
Unauthorized
```
I need to... |
2018/03/22 | 596 | 2,212 | <issue_start>username_0: I open a project, but want to create a module to reference in WebStorm, (mostly so I can do work in 2 projects instead of having 2+ instance of WebStorm open).
In IntelliJ Ultimate or whatnot, it has a modules button. It Kinda looks like modules does not exist for me, or at least I have not se... |
2018/03/22 | 1,489 | 5,264 | <issue_start>username_0: I have a simple model:
```
export class Profile extends ServerData {
name: string;
email: string;
age: number;
}
```
When I am make a call to the server (Angular 4, $http) I often get the following response:
```
{
name: string;
email: string;
}
```
The `age` property is missing.... |
2018/03/22 | 1,220 | 4,216 | <issue_start>username_0: I have a set of black png icons. When a user hover over them, I want the icons to become blue. How can I convert them to blue using css? I tried css filters but its not changing colors for me.
Here is the black icon
[](https:... |
2018/03/22 | 1,016 | 3,812 | <issue_start>username_0: I have a tableview that contains 4 sections. In sections 2,3,and 4 I want to have a + button to add information to a "Saved" array. I have the logic setup for adding information, but I'm having issues with the tableview cells.
I don't want the + button to appear in section 0, since that's whe... |
2018/03/22 | 596 | 2,183 | <issue_start>username_0: ```
SELECT property.paon, property.saon, property.street, property.postcode, property.lastSalePrice, property.lastTransferDate,
epc.ADDRESS1, epc.POSTCODE, epc.TOTAL_FLOOR_AREA,
(
3959 * acos (
cos (radians(54.6921))
* cos(radians(property.... |
2018/03/22 | 856 | 3,104 | <issue_start>username_0: I am working on Aspect Based Sentiment Analysis.In this project we collected data from twitter. After collecting data we performed text cleaning methods and create a corpus. After that we used this corpus to find the aspects using noun\_phrases in python.It gives me the list of noun phrases. Fr... |
2018/03/22 | 281 | 1,089 | <issue_start>username_0: As I asked in the title, can I be added as a team member to an Enterprise Apple developer team without having paid Apple developer account? I can't find anything on that.<issue_comment>username_1: Do you control the database? If you do, you could try adding indexes on the address and postcode c... |
2018/03/22 | 4,948 | 14,596 | <issue_start>username_0: Hey guys I am trying to build a setup for my application but it does not seem to want to work.
I ran it with -l switch to get the install log, it looks like it is looking for a folder called "\_8D5342EDA5924BABBF19E5682639F820" but that folder doesn't exist in the development environment. Wher... |
2018/03/22 | 1,638 | 4,633 | <issue_start>username_0: I'm trying to host an Orchard CMS web application. After following the [build and deploy](http://docs.orchardproject.net/en/latest/Documentation/Building-and-deploying-Orchard-from-a-source-code-drop/) instructions and filling out the setup page the application hangs on the message 'This tenant... |
2018/03/22 | 292 | 1,118 | <issue_start>username_0: I have a small BLE beacon which is configured to send iBeacon packets every 1000ms.
In my usecase i want to detect the signal on multiple recievers every time it is sent. However the detection is not reliable no matter which receiving device and software i use (phone, computer, raspberry). The... |
2018/03/22 | 865 | 3,141 | <issue_start>username_0: We have a fairly simple function called `alert` which basically creates an alert card (HTML element) anytime it is triggered. For reference we are using [Eel](https://github.com/ChrisKnott/Eel) to pass variables from Python and run this in a chrome wrapper.
```
eel.expose(alert);
function ... |
2018/03/22 | 531 | 1,969 | <issue_start>username_0: Upon trying to use a jar on the local linux machine, I am getting the following error:
library initialization failed - unable to allocate file descriptor table - out of memory
The machine has 32G RAM
I can provide additional information, if needed.
Any help would be appreciated.<issue_comme... |
2018/03/22 | 979 | 2,438 | <issue_start>username_0: I'm moving from floats to flexbox I have some issues.
I have the following code:
```css
.card {
display: flex;
flex-direction: row;
border: 1px solid green;
margin-bottom: 0.8rem;
}
.card .image {
border-right: 1px solid #E3E3E3;
padding: 1.2rem;
vertical-align: middle;
... |
2018/03/22 | 605 | 2,265 | <issue_start>username_0: So I got an array with a ton of fields that are bound to
Now I also have a button in here. What I want to do is onclick I want to go to a function onSubmit which also takes the value `session.gameId` and puts it in asyncstorage.
```
{this.state.sessions.map((session, index) => {
... |
2018/03/22 | 1,526 | 4,739 | <issue_start>username_0: I am looking at setting up some unit tests for a NodeJS project, but I am wondering how to mock up my usage of AWS services. I am using a wide variety: SNS, SQS, DynamoDB, S3, ECS, EC2, Autoscaling, etc. Does anybody have any good leads on how I might mock these up?<issue_comment>username_1: I ... |
2018/03/22 | 746 | 2,676 | <issue_start>username_0: In the below code, I'm using vert.x to create a route
```
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.ext.web.Router;
import java.util.function.Consumer;
public class VerticleMain extends AbstractVerticle {
@Overr... |
2018/03/22 | 648 | 2,265 | <issue_start>username_0: I want to fetch data from database without reloading page. I am working with laravel. I have fetched those data using jquery.
Here is my jquery code.
```
function loadData() {
var id=$('#projectId').val();
$.ajax({
type: 'GET',
url: '/teammessage/'+id,
success: function... |
2018/03/22 | 434 | 1,468 | <issue_start>username_0: >
> can we *modify* a private variable through **child class**.
> We can use it by set and get methods but how can we modify them in child class.
>
>
><issue_comment>username_1: Your code is absolutely fine. please kill all the java process or restart your machine and try again. it shoul... |
2018/03/22 | 679 | 2,003 | <issue_start>username_0: I need to access `TR` elements through `firstChild` or `lastChild` object, however using `ID` or `Name` property doesn't seem to be working:
<https://jsfiddle.net/7594v0kg/13/>
```
| | |
| --- | --- |
| 123 | 456 |
| 789 | 987 |
```
Javascript code:
```
var elt=document.getElementById("... |
2018/03/22 | 925 | 3,155 | <issue_start>username_0: This is the html for the form to take input and on clicking submit all the input will be displays in the popup window. Currently i am able to only display text in the popup. Not able to show text of selected checkbox and dropdown list. Only number for dropdown and ON for checkbox if its selecte... |
2018/03/22 | 557 | 1,928 | <issue_start>username_0: I am using `materialize.css` and have been trying to programmatically close a modal and then immediately open another.
This is the code I am currently using to `open/close`:
```
$('.modal').modal('close', "#modal1");
$('.modal').modal('open', "#modal2");
```
What actually happens is that w... |
2018/03/22 | 992 | 1,879 | <issue_start>username_0: If I had a function like this:
```
foo <- function(var) {
if(length(var) > 5) stop("can't be greater than 5")
data.frame(var = var)
}
```
Where this worked:
```
df <- 1:20
foo(var = df[1:5])
```
But this didn't:
```
foo(var = df)
```
The desired output is:
```
var
1 1
2 ... |
2018/03/22 | 547 | 1,956 | <issue_start>username_0: I want to render 7 buttons in a row with equal width to fill up all the available space horizontally.
```
render() {
return (
}
keyExtractor={item => item.getDate().toString()}
horizontal={true}
style={styles.list}
/>
);
}
const styles = StyleSheet.create({
list: {
display... |
2018/03/22 | 600 | 2,312 | <issue_start>username_0: I am trying to export Groupmembers list from azuread, my whole script works fairly well, but I need each new line in the final file to have the name of the file it is importing from (as well as the content it is importing)
the part of the script i am using to do this is as follows
(found this... |
2018/03/22 | 794 | 2,286 | <issue_start>username_0: I'm used to typing `!!` in bash when I want to reference the last command executed in that shell.
```
$ ls -la
drwxr-xr-x 4 me wheel 136 Jan 19 2013 wireshark_stuff
... (etc) ...
-rw-r--r-- 1 me wheel 11 Mar 13 13:51 old_PS1
$ !! |grep for_something_in_those_results
ls ... |
2018/03/22 | 806 | 2,889 | <issue_start>username_0: I noticed that when an error is thrown in a try/catch block within a Google Apps Script, `Logger.log(e instanceof Error)` returns true. But, when that same object is passed back to the client in the `catch` statement, it logs `false`.
**GAS sample**
```js
function isValid() {
return false
}... |
2018/03/22 | 439 | 1,651 | <issue_start>username_0: I´ve cloned this sample app: <https://github.com/codekerala/laravel-and-vue.js-spa-Recipe-Box>
In RecipeController there's an index function that returns all posts (or recipes in this case). I need to get only recipes added by the current logged in user.
```
public function index()
{
... |
2018/03/22 | 2,076 | 5,870 | <issue_start>username_0: I have an interesting problem with one of my RoR application pages that is a bit hard to explain.
Basically, I have a page ***vendor.html.erb*** which allows the user to input data for vendors, including selecting their location (country, state, city) from dropdowns that appear depending on t... |
2018/03/22 | 1,490 | 5,473 | <issue_start>username_0: My code begins by signing me into PayPal, then signing into eBay and navigating to the pay fees page, then checking out with PayPal. The final "Continue" button I can't click/submit. I've tried by xpath, id and class. I even tried sending TAB 7x until the Continue button and then sending Enter ... |
2018/03/22 | 518 | 1,568 | <issue_start>username_0: Is there a way how to write a JavaScript regular expression that would recognize **.ts** file extension for this:
```
"file.ts"
```
but would fail on this:
```
"file.vue.ts"
```
What I need is, if the file name ends with **.vue.ts**, it shouldn't be handled as a **.ts** file.
I've trie... |
2018/03/22 | 628 | 2,529 | <issue_start>username_0: I was monitoring my application with the task manager and saw that the RAM usage is constantly going up.
I quickly noticed that I initialized a new variable in every iteration of the for loop:
```
for (int i = 0; i < List.size(); i++)
{
data = List.get(i); //This is already declared out... |
2018/03/22 | 365 | 1,391 | <issue_start>username_0: I am storing my data in S3 bucket provided from Amazon. I am performing analytics in R studio by creating instance.
I am storing my desired result back in my S3 bucket.
I would like to create an front end in visual studio for my results in R. Could anyone guide me on how I could proceed wit... |
2018/03/22 | 646 | 2,332 | <issue_start>username_0: I'm working with [React Native elements searchbar](https://react-native-training.github.io/react-native-elements/docs/0.19.0/searchbar.html) and am struggling to get these two little lines on the top and bottom to go away - I can't figure out what they are:
[Weirdly formatted Searchbar image h... |
2018/03/22 | 816 | 2,442 | <issue_start>username_0: I'm trying to test if one of my variables is pd.NaT. I know it is NaT, and still it won't pass the test. As an example, the following code prints nothing :
```
a=pd.NaT
if a == pd.NaT:
print("a not NaT")
```
Does anyone have a clue ? Is there a way to effectively test if `a` is NaT?<iss... |
2018/03/22 | 849 | 3,475 | <issue_start>username_0: In what way(s), if any, does the C++ standard limit the effect of undefined behavior? For instance, in the code below, from the first `if` inspecting `undefined` is control flow constrained to follow either the then path or the else path? Is it allowed to skip both paths? Execute both paths (po... |
2018/03/22 | 827 | 3,377 | <issue_start>username_0: I created a loading page for my website but I need some help.
The loading page is visible until the full HTML page is loaded and then it fades out. My problem is, I have a video as a background and I would like to make the loading page visible until my video in the background is loaded.
Is th... |
2018/03/22 | 797 | 2,228 | <issue_start>username_0: So i'm trying to use i in the name of my struct entries so I can increment it everytime I make a new entry. However, it says I must use a constant value.
But obviously if I use #define i (2) for example, I wouldn't be able to increment it since it's constant.
```
struct order {
char orderName... |
2018/03/22 | 775 | 2,828 | <issue_start>username_0: I am new to Marklogic and My Requirement is, I have XML document in Marklogic Database containing multiple elements.
```
** Example :**
Source1
Action\_Type1
Sequence\_Number1
```
When i pass "**Sequence\_Number**"it should return **/tXML/Header/Sequence\_Number**
and it is possibl... |
2018/03/22 | 490 | 1,494 | <issue_start>username_0: I thought I understood how this would work but apparently I don't. Take this example:
File 1 (sandbox.py):
```
from module1 import Testy
class Sandy(Testy):
def run(self):
print("This is value of x in Sandy: %d" % x)
super(Sandy, self).mymet()
if __name__ == "__main__":... |
2018/03/22 | 982 | 2,404 | <issue_start>username_0: I want to multiply an array along it's first axis by some vector.
For instance, if a is 2D, b is 1D, and a.shape[0] == b.shape[0], we can do:
```
a *= b[:, np.newaxis]
```
What if a has an arbitrary shape? In numpy, the ellipsis "..." can be interpreted as "fill the remaining indices with '... |
2018/03/22 | 1,873 | 6,820 | <issue_start>username_0: How can I load images in a component in Next.js? Do I have to build the project first? If yes, is there a way to load the images without building first? I cannot get this to work, no matter what I try.<issue_comment>username_1: [from the docs:](https://nextjs.org/docs/basic-features/static-file... |
2018/03/22 | 1,009 | 3,388 | <issue_start>username_0: I'm using the official stable ZooKeeper Helm chart for Kubernetes [which pulls a ZooKeeper Docker image](https://github.com/kubernetes/charts/blob/b40c8c395d8acfa428a865d8aeb9c607e0cce69c/incubator/zookeeper/templates/statefulset.yaml#L39) from Google's sample images on Google Container Registr... |
2018/03/22 | 669 | 2,601 | <issue_start>username_0: Hi I'm looking at ways to specify the widths of a large number of objects on a page AND have each object's width displayed within it as text. The main aim is to avoid having a reference to the width anywhere (whether in the HTML, CSS or JS) more than once but I need potentially thousands of the... |
2018/03/22 | 600 | 2,031 | <issue_start>username_0: I'm using Visual Studio 2017 Professional. When I build, I am getting a lot of TypeScript-related errors even though I don't have any typescript in my solution. The main one is:
`The target "TypeScriptClean" does not exist in the project.`
However, there are no references to anything called "... |
2018/03/22 | 645 | 2,042 | <issue_start>username_0: Is there any nice way to validate that all items in a dataframe's column have a valid date format?
My date format is `11-Aug-2010`.
I saw this generic answer, where:
```
try:
datetime.datetime.strptime(date_text, '%Y-%m-%d')
except ValueError:
raise ValueError("Incorrect data format,... |
2018/03/22 | 684 | 2,493 | <issue_start>username_0: I have a React / Mobex application written in TypeScript, built by Webpack 1. After updating TypeScript version from 2.3.4 to 2.4.2 i get an error
```
ERROR in C:\myproject\tsconfig.json
error TS2688: Cannot find type definition file for 'reflect-metadata'.
```
I also tried Typescript 2.7.2,... |
2018/03/22 | 438 | 1,667 | <issue_start>username_0: i want to make a function that returns a token from a server but `http.post()` gets a response after my function returned the token.
How do i wait for `http.post()` before returning the token.
My code:
```
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
@In... |
2018/03/22 | 645 | 2,718 | <issue_start>username_0: I've splitted my app into two modules: one with main basic functionality and other with less-used features like account settings, faq pages and more.
What I'm trying to accomplish is to lazy load the second module for some root route paths, like `/account` or `/settings` without having to crea... |
2018/03/22 | 1,113 | 4,336 | <issue_start>username_0: I'm trying to get into Angular4/5. I have a connection to a CMS service called Sanity (<https://www.sanity.io/>). The issue I am having is that this service is injected to a ProductsComponent class and I call methods in that service at the component's ngOnInit method. However I am getting the f... |
2018/03/22 | 659 | 2,194 | <issue_start>username_0: I have a code:
```
$orders = Order::all();
$allorders = $orders->count();
$deliveryQuery = $orders->where('status', '=', '8')->select(DB::raw('AVG(updated_at) as order_average'))->first();
```
I get error:
`Method select does not exist.`
How I can fix it? My code is working, if I do:
```
... |
2018/03/22 | 677 | 2,851 | <issue_start>username_0: I am struggle for a stable answer for this question and not getting any. My doubts are
1. do we need to store the user name and password in the token and if yes then how that i.e where this data are getting store in the payload part is it in the `sub`?
2. do we need to store the token in the ... |
2018/03/22 | 1,289 | 3,484 | <issue_start>username_0: [](https://i.stack.imgur.com/vfkgu.png)My code is displaying two errors. As I'm learning, I've tried several ways to fix it. Please, can anyone help me ?
I need to insert a number and a string in my stack. But you're making a ... |
2018/03/22 | 1,050 | 3,637 | <issue_start>username_0: i am trying to trigger on submit event on a form and validate it. two things are not working in my code the first one is that the onsubmit event is not triggered, the second one is that input field of type email is not validated i used html5 input type email and required but still to no a vale.... |
2018/03/22 | 323 | 1,174 | <issue_start>username_0: So I have an init function defined something like this:
```
init: function() {
$("#editRow").click(function() {
`}
$(".removeRow").click(function() {
`}
}``
```
1. So, I was wondering if there was any way for me to call the class method `removeRow` in the onclick event itself? Essentially wha... |
2018/03/22 | 209 | 773 | <issue_start>username_0: I'm running the latest public Corda demobench on linux(CentOS7) and when I attempt to start the first node, I get the following:
>
> terminate called after throwing an instance of 'std::bad\_cast'
>
> what(): std::bad\_cast
>
>
>
I was not getting this before I ran a "yum upgrade".
A... |
2018/03/22 | 250 | 915 | <issue_start>username_0: Okay so I'm new to C++ and I just wanted to ask why you shouldn't pass the char array by reference with the "&" sign but you should with strings since both arguments are pointers. Example code I have written:
```
void changeChar(char* buffer, int bSize) {
strcpy_s(buffer, bSize, "test123")... |
2018/03/22 | 1,092 | 3,840 | <issue_start>username_0: So here is my page(PlayGame). Generated from my controller action as:
```
// GET: Games/PlayGame/Id
[AllowAnonymous]
public ActionResult PlayGame(Game game)
{
return View(game);
}
```
On the PlayGame page I would like to do a action defined in my javascript. Here is the... |
2018/03/22 | 1,481 | 4,315 | <issue_start>username_0: I have the following nested dict:
```
ex_dict = {'path1':
{'$variable1': '2018-01-01',
'$variable2': '2020-01-01',
'$variable3': '$variable1',
'$variable4': '$variable3'},
'path2':
{'$variable1': '2018-01-01',
... |
2018/03/22 | 538 | 1,719 | <issue_start>username_0: I'm using flexbox to display a row of blocks. Each block is using flexbox to display a column of elements. One of the elements is an image that needs to maintain its aspect ratio. The code below is a simplified version of my code that illustrates what I'm trying to do.
In Chrome the images sc... |
2018/03/22 | 834 | 2,888 | <issue_start>username_0: I am trying to create an event rule that is triggered by a change in a file in S3 bucket in different AWS account. Detail description is [here](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html)
So far the rule works fine with exact file... |
2018/03/22 | 869 | 3,065 | <issue_start>username_0: I do understand the concept, where we need 2 backslashes when dealing with regex - <https://stackoverflow.com/a/1701876/72437>
The following code able to split **hello** and **world** without issue.
```
String message = "hello\nworld";
String[] result = message.split("\\n");
// hello
// wor... |
2018/03/22 | 864 | 2,105 | <issue_start>username_0: I have an array (which is technically a string) of id numbers.
```
ids = "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
```
I want to make the ids into an array that looks like this:
```
ids = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
```
The only way I've found to do this is to use map.
```
id_numbers = ids.s... |