date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/19 | 692 | 2,193 | <issue_start>username_0: Is it possible to replace parts of a string with the content of an include file?
For example, this is my string
```
$string = 'The article title goes here bla bla bla...
{{ADD_AUTHOR_DETAILS_}}The article body goes here...
';
```
Basically, I want to replace `{{ADD_AUTHOR_DETAILS_}}` with... |
2018/03/19 | 8,469 | 18,235 | <issue_start>username_0: I am new to BeautifulSoup and trying to extract the table. I have followed documentation to do a nested for loop to extract the cell data but it only returns the first three rows. Here is my code:
```
from six.moves import urllib
from bs4 import BeautifulSoup
import pandas as pd
def get_url_c... |
2018/03/19 | 412 | 1,305 | <issue_start>username_0: I have a column in a data frame with mixed date formats. How do I segregate it according to the different date formats.
For e.g I want something like this
df1 = dataframe[dataframe['Cl\_date'] is '%d%b%y']
df2 = dataframe[dataframe['Cl\_date'] is '%b%y]
Please help<issue_comment>username_1: ... |
2018/03/19 | 1,418 | 4,303 | <issue_start>username_0: I have Javascript array that looks like this:
```
fruitsGroups: [
"apple0",
"banana0",
"pear0",
]
```
How can I increase the number of each item in this array?
```
fruitsGroups: [
"apple0",
"apple1",
"apple2",
"banana0",
"banana1",
"banana2",
"... |
2018/03/19 | 1,524 | 4,633 | <issue_start>username_0: I'd like to create a top view of a sine graph in dots in Maple, such that the max height is shown with the dots closest together and then the min is shown with the dots furthest apart. It can be lines rather than dots.
Is it possible in Maple? I can use MATLAB too if someone only knows how to ... |
2018/03/19 | 1,022 | 3,633 | <issue_start>username_0: I've written some automation tests where I use syntax like -
```
try {
// Test case steps and validations
} finally {
// Clean up related to test
}
```
NOTE: This does not have `catch` block as my tests do not expect exceptions.
If test fails in `try` as well as `finally` block, on... |
2018/03/19 | 1,118 | 3,804 | <issue_start>username_0: I'm using a case statement to calculate two columns, `primary_specialty` and `secondary_specialty`. This works well, however, I'd like to then perform a `GROUP BY` on the `pd.id` and receive the following error:
`column "pppd.created_at" must appear in the GROUP BY clause or be used in an agg... |
2018/03/19 | 894 | 2,711 | <issue_start>username_0: I am trying to create a trigger that will update a table called VIDEO after the table DETAILRENTAL is updated. I am trying to use IF ELSE conditionals to satisfy multiple situations.
This is what I have coded:
```
CREATE OR REPLACE TRIGGER TRG_VIDEORENTAL_UP
AFTER UPDATE OF DETAIL_RETURNDAT... |
2018/03/19 | 480 | 1,632 | <issue_start>username_0: I've set a function to execute in my backend after a certain amount of time, using a setTimeOut. Oddly, if I set the timeout to be less than 60000 ms, the code executes. Anything greater than or equal to that, then the code within the `setTimeout` does not run. After searching online, I think i... |
2018/03/19 | 773 | 2,833 | <issue_start>username_0: I'm looking to add a new column to a pre-existing table which is filled with values. The new column is going to be `NOT NULL`, and so for each pre-existing row it will need a value.
I'm looking for the initial values on this column to be calculated based off other values in the table at the ti... |
2018/03/19 | 763 | 2,614 | <issue_start>username_0: I have the following YAML contract:
```
request:
method: GET
url: /get
response:
status: 200
body:
name: 'Name'
code: '123'
asOfDate: '1994-05-25T04:00:00.000Z'
matchers:
body:
- path: "$[*].name"
type: by_type
- path: "$[*].code"
type: by_regex
... |
2018/03/19 | 757 | 2,769 | <issue_start>username_0: I am playing with React and trying to save the text that user type to the input to the `state`. I have added to the textarea an `onChange` attribute for setting the state.
However, when I start typing, I see error in the console stating `TypeError: _this.setState is not a function`.
I've trie... |
2018/03/19 | 682 | 2,458 | <issue_start>username_0: Hi I am using Fabric Java SDK and able to run the EndToEndIT.java test cases .
The test file loads chaincode as **example\_cc.go**
I want the chaincode as **example\_cc.java** and load the chaincode as java file rather than go
I am stuck and not sure how to do this . I want to know the eq... |
2018/03/19 | 443 | 1,793 | <issue_start>username_0: I want to be able to set the @JMSlistener destination from an application.properties
my code looks like this
```
@Service
public class ListenerService {
private Logger log = Logger.getLogger(ListenerService.class);
@Autowired
QueueProperties queueProperties;
public Listene... |
2018/03/19 | 514 | 1,964 | <issue_start>username_0: I want to know in my app (by code) in which app store my user is (like england / france / spain ect).
I already read that we can do this with the locale :
<https://developer.apple.com/documentation/foundation/nslocale/1643060-countrycode>
But I would like to do it with the Apple Store. For l... |
2018/03/19 | 541 | 1,915 | <issue_start>username_0: I would like to know if GCP's DataProc supports [WebHCat](https://cwiki.apache.org/confluence/display/Hive/WebHCat). [Googling](https://www.google.co.uk/search?q=gcp%20dataproc%20webhcat&oq=gcp%20dataproc%20webhcat&aqs=chrome..69i57.7173j0j1&sourceid=chrome&ie=UTF-8) hasn't turned up anything.
... |
2018/03/19 | 1,600 | 5,117 | <issue_start>username_0: So i'm moving to writing my sass to the BEM convention. I've used the [sass-lint configuration generator](https://sasstools.github.io/make-sass-lint-config/) to create my config and only edited the `class-name-format`'s `- convention:` to `strictbem` however I'm still having some issues with it... |
2018/03/19 | 796 | 3,151 | <issue_start>username_0: I have some experience with ReactJS but now I am trying to start using Redux and I have encoutered several problems. I already know how to create actions, consts, reducers, how to connect them to one single store, but I don't actually now how to use it with React. For example I have a form to g... |
2018/03/19 | 782 | 2,491 | <issue_start>username_0: Given an RDD, what's the best way to sort it and then consume it in discrete sized chunks? For example:
```
JavaRDD baseRdd = sc.parallelize(Arrays.asList(1,2,5,3,4));
JavaRDD sorted = baseRdd.sortBy(x -> x, true, 5);
// returns 1, 2
List first = sorted.take(2);
// returns 1, 2. How... |
2018/03/19 | 758 | 2,523 | <issue_start>username_0: I have a page ([codepen](https://codepen.io/RobertGelb/pen/QmKvry)) which utilizes both bootstrap & flexbox (i have good reasons for that):
```
body {
display: flex;
flex-direction: column;
}
```
When the user clicks the YES radio box, a bit of JavaScript shows another labe... |
2018/03/19 | 689 | 2,171 | <issue_start>username_0: I have text strings that look like this:
`yryr%(DENHP@Germany)`
I want my output to look like this:
`yryr__DENHP_Germany_`
(I'd also like to replace periods and commas).
These are actually variables in a pandas dataframe, and I'm trying to match parentheses at the minute... here's what I'm... |
2018/03/19 | 482 | 1,930 | <issue_start>username_0: I am trying to encrypt a string using my own password key.
After generate encrypted text i need to save it to text file to later use. Also i need to read that encrypted text end decrypt it. It will be great if some one can give me a solution to do this thing in Java SE App.<issue_comment>usern... |
2018/03/19 | 861 | 2,340 | <issue_start>username_0: I have a table like this:
```
CREATE TABLE `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`x` varchar(45) DEFAULT NULL,
`y` varchar(45) DEFAULT NULL,
`z` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
```
with this data:
```
... |
2018/03/19 | 576 | 2,263 | <issue_start>username_0: I am trying to create a user that only has access to a few views and procedures. The user seems to be created fine, but when I attempt to log in to the user account using the connection string below, I get the error `Login failed for user 'Interface_Admin'`.
```
User ID=Interface_Admin;Passwo... |
2018/03/19 | 526 | 1,757 | <issue_start>username_0: How can I generate completely static binaries with clang? I have used the following command:
```
clang -flto -o -fuse-ld=lld -static-libgcc -lc -Bstatic -m32
```
And yet, the generated output depends on a certain `.so` file:
```
$ ldd
linux-gate.so.1 => (0xf77dd000)
libc.so.6 => /lib/l... |
2018/03/19 | 1,333 | 5,615 | <issue_start>username_0: I'm building a XLSX processor that transforms a XLSX into a CSV file. Because the files can get quite big, I'm using the event-based approach using XSSFSheetXMLHandler
This works perfectly fine, but my XLSX files contains long numbers (13 digits) which are unique identification numbers, not re... |
2018/03/19 | 598 | 2,149 | <issue_start>username_0: I'm having trouble correctly accessing data in Google Maps API php.
Heres what example data looks in php:
```
{"destination_addresses":["Destination address"],"origin_addresses":["Origin address"],"rows":[{"elements":[{"distance":{"text":"3.3 km","value":3314},"duration":{"text":"6 mins","val... |
2018/03/19 | 644 | 1,785 | <issue_start>username_0: I would like to know why select count distinct return zero result. I have also checked various answers at here but it's not answer for my case. MySQL version 5.6
Link to check
<http://sqlfiddle.com/#!9/276302/3/0>
**Sample schema:**
```
CREATE TABLE IF NOT EXISTS `employees` (
`id` int(6) u... |
2018/03/19 | 418 | 1,345 | <issue_start>username_0: I have to add a new line in the existing csv at the specific line number.
I am using following command
```
sed -i '' '3i\
Line to add in csv\n' data.csv
```
But it is adding the line as
Line to add in csv**n**<issue_comment>username_1: Simply use :
```
sed -i '' '3i\
Line to add in csv\
' ... |
2018/03/19 | 1,498 | 5,264 | <issue_start>username_0: Trying to find a pseudo class that'll target a like this:
```
```
I've tried `:blank` and `:empty` but neither can detect it. Is it just not possible to do?
<https://jsfiddle.net/q3o1y74k/3/><issue_comment>username_1: `:empty` indeed only works for *totally empty* elements. Whitespace cont... |
2018/03/19 | 385 | 1,415 | <issue_start>username_0: I've renamed my app folder to aplicativo and changed the namespace to aplicativo. Everything works but artisan make commands.
I changed namespace through composer.json
```
"psr-4": {
"aplicativo\\": "aplicativo/",
}
```
Plus command:
```
artisan app:name aplicativo
```<i... |
2018/03/19 | 1,751 | 6,277 | <issue_start>username_0: **Section 1**
I have an issue in " Displaying 1 - 5 of 10 records ". I have a piece of code which works only on first page, when i click on second page then it show the same result " Displaying 1 - 5 of 10 records " Instead of " Displaying 10 of 10 records ".
**Code In Controller**
```
$tot... |
2018/03/19 | 316 | 1,126 | <issue_start>username_0: I have 4 tabs with a list in order to give them the title. I want to access the titles of each tab, but I can only access the whole HTMLcollection. Using react.
```
import React from 'react';
import {Component} from 'react';
class tabs extends Component {
render() {
return (
* ... |
2018/03/19 | 369 | 1,158 | <issue_start>username_0: I'm trying to install php unit version 6.5.
I already have 7.0.1 install and I have attempted to install phpunit versions 6.5 with:
```
brew install phpunit@6.5
```
Brew tells me that the older version is installed but `phpunit --version` is 7.0.1.
Trying `brew switch phpunit 6.5`, I get t... |
2018/03/19 | 852 | 2,595 | <issue_start>username_0: This code gets rid of all the duplicate variables. Is there a way to make the array search in this function case insensitive?
```js
var x = ["AAA", "aaa", "bbb", "BBB"];
function unique(list) {
var result = [];
$.each(list, function(i, e) {
if ($.inArray(e, result) == -1) result.p... |
2018/03/19 | 852 | 2,697 | <issue_start>username_0: I am trying to call the propDetails function and pass an ID to it. Then pass the same ID to the Static controller but I keep on getting an error: "id = id" (second ID doesn't exist).
I am sorry for this silly question and I can't figure out what I am doing wrong...
```
function propDetails(i... |
2018/03/19 | 1,165 | 3,633 | <issue_start>username_0: So, I have a *list of strings* that are all formatted in *Month* *DayNumber*, like
```
['March 1', 'March 9', 'April 14', 'March 12']
```
I need to sort the list so all the dates are in the order they would be in a calendar. Any tips? Is there a built-in method that might be able to help me,... |
2018/03/19 | 1,261 | 3,756 | <issue_start>username_0: I would like to send a linked (not embedded) image by email.
[i.e: <http://www.konbini.com/wp-content/blogs.dir/3/files/2018/03/a9a08770bba415c3b9a14cb162.jpg]>
Do you know what kind of html code have to write in the email?
I want to place the code within the body of the email.
I tried this ... |
2018/03/19 | 1,236 | 4,082 | <issue_start>username_0: Is it possible to programmatically request business partner with access assets business owns.
Facebook business-manager-api describes [best practices](https://developers.facebook.com/docs/marketing-api/businessmanager/bestpractice) to work with business-manager-api. Would be very handly if our... |
2018/03/19 | 224 | 796 | <issue_start>username_0: I am currently coding a website for a school project, and I have boxes that grow on a mouse hover that are in a div. An example of one grow div:
```
Experience
Sample text.
```
In here, I need a `-` to list my industry certifications, but then it won't validate. So I was trying this:
... |
2018/03/19 | 2,272 | 6,008 | <issue_start>username_0: I have plotted a scatter graph in R, comparing expected to observed values,using the following script:
```
library(ggplot2)
library(dplyr)
r<-read_csv("Uni/MSci/Project/DATA/new data sheets/comparisons/for comarison
graphs/R Regression/GAcAs.csv")
x<-r[1]
y<-r[2]
ggplot()+geom_point(aes(x=x... |
2018/03/19 | 606 | 2,252 | <issue_start>username_0: So basically, I have this JavaScript variable which stores this certain value, and I need to put this variable in MySQL Query statement.
Source Code:
```
var Pollution_Reading = 25;
DatabaseConnection.query('INSERT INTO Air_Pollution_Record (Air_Pollution_Reading) VALUES ('"Pollution_Reading"... |
2018/03/19 | 1,104 | 4,578 | <issue_start>username_0: I have alot of button in my application. They are placed next to each other. All of the methods are IMvxAsyncCommand type. I figured out some missmatches after tests done by users. I have found duplicate operations - two diffrent buttons are called in almost same time.
What did I do is create... |
2018/03/19 | 522 | 1,618 | <issue_start>username_0: I am using Keycloak with my Spring Boot application. I want to use Okta as Identity Provider without success, this configuration:
Spring configuration:
```
security.oauth2.resource.userInfoUri=https://dev-XXXXXX.oktapreview.com/oauth2/default/v1/userinfo
security.oauth2.resource.tokenInfoUri=... |
2018/03/19 | 674 | 2,484 | <issue_start>username_0: I am using an Excel Macro that detects two worksheets and writes them to CSV format in their current SharePoint directory. However, upon executing the macro, it proceeds to open the newly created files within the same workbook and gives me the following error:
>
> Run-time error '1004':
>
> ... |
2018/03/19 | 488 | 1,588 | <issue_start>username_0: I try at the moment to re-color a clicked link from purple back to black.
It **works** if I add following code directly into the html file:
```
window.onload = function() {
document.getElementById("url").style.color = "#000000";
};
</code></pre>
<p></p>
<p>But I dont want to have that fun... |
2018/03/19 | 351 | 1,078 | <issue_start>username_0: I have a properly working CTE query. I'm using this query in an application which does select on top of it and giving error
>
> Incorrect syntax near WITH
>
>
>
Is there any way I can do select on top of WITH?
```
select(columns) from
(WITH CTE AS(
#code
))
```<issue_comment>userna... |
2018/03/19 | 832 | 3,456 | <issue_start>username_0: I have to build a calculator and i am making some validations, the code is kinda long so i will only put the part that is breaking it.
It is a validation that makes the multiplication, it breaks when trying to multiply a negative number, every other operation is done correctly but the multipli... |
2018/03/19 | 1,707 | 5,862 | <issue_start>username_0: I need to **get** the **4-5-4 Calendar Week from a Date**. Is there any utility like Georgian Calendar in Java for 4-5-4 Retail Calendar?
If not, how can I create one? What all logic is needed? What is 53rd Week in case of Leap Year?
For example, if I pass a date (DD-MM-YYY) `04-03-2018` as in... |
2018/03/19 | 866 | 3,381 | <issue_start>username_0: I need to display a map of circles and polygons, and each circle or polygon may be different colors.
My initial plan was to subclass MKCircle and MKPolygon and add an instance variable for my Region class (which has information that will determine the color of the shape on the map) but that is... |
2018/03/19 | 580 | 1,741 | <issue_start>username_0: I want to create a new column for the text data (every row for that column is one description) after removing all numbers (such as 189, 98001), special characters ( ‘ , \_, “, (, ) ), and letters with numbers or special characters (e21x16, e267, e4, e88889, entry778, id2, n27th, pv3, ).
So I ... |
2018/03/19 | 468 | 1,826 | <issue_start>username_0: I have seen the documentation & pricing calculator but, not getting clear Idea if bucket is charged externally for data transfers / (Bandwidth consumed) or not.
Its showing
```
Storage cost
$0.026 per GB-month
Retrieval cost
Free
Class A operations (Create/ delete )
$0.005 per 1,000 ops
... |
2018/03/19 | 458 | 1,790 | <issue_start>username_0: I'm converting my open source app as a package and it always throws error
```
PHP Fatal error: Class 'Laracommerce\Tests\TestCase' not found in .... on line 18
```
[](https://i.stack.imgur.com/q4owD.png)
Based on other com... |
2018/03/19 | 486 | 2,017 | <issue_start>username_0: My initial FormGroup contains some FormControls and a FormArray, which should populate FormGroups dynamically
```
myForm: formBuilder.group({
....
noOfSomething: ['', Validators.required],
something: this.formBuilder.array([])
}),
```
I can create a FormGroup inside the Fo... |
2018/03/19 | 1,039 | 4,366 | <issue_start>username_0: I am looking for solution to get data in background mode even app is terminated.
There are lots of tutorials and answers available for this questions, but my questions is different than other. I haven't find any proper solution on stackoverflow, so posted this question.
I have scenario which I... |
2018/03/19 | 1,044 | 4,230 | <issue_start>username_0: ```
MessageSenderId = mAuth.getCurrentUser().getUid();
MessageRecieverId = getIntent().getStringExtra("visit_user_id");
private void sendMessage() {
String messageText = messageArea.getText().toString();
if (TextUtils.isEmpty(messageText)) {
Toast.makeText(getApplicationContex... |
2018/03/19 | 424 | 1,612 | <issue_start>username_0: I have two tables:
Products
```
Id Integer
Name Character Varying(200)
```
Orders
```
Id Integer
Product_Id integer
Started Timestamp
```
I need to fetch all orders with the product id and name together.
I've tried using inner join like this:
```
select orders.id, orders.started, produ... |
2018/03/19 | 631 | 2,487 | <issue_start>username_0: I took a programming class in python so I know the basics of the language. A project I'm currently attempting involves submiting a form repeatedly untill the request is successful. In order to achieve a faster success using the program, I thought cutting the browser out of the program by direct... |
2018/03/19 | 598 | 2,178 | <issue_start>username_0: I'm trying to edit a a plugins stylesheet. Yet I can't find any file containing the appropriate CSS.
When I use Chromes developer tool, it says its styled directly in the index site. Yet i can't find it. I've looked through functions.php as well.
The possibility to use !important rules, won't w... |
2018/03/19 | 1,183 | 3,775 | <issue_start>username_0: I'd like to reduce the size of this if statement so it can iterate continuously until around 20, with the pattern I have below:
```
if (i >= 0 && i <= 3) {
$('.timeline__bar').css({
transform: 'translateX(-0vw)',
});
}
if (i > 3 && i <= 7) {
$('... |
2018/03/19 | 1,274 | 3,757 | <issue_start>username_0: How to treat `/` as part of word and grep exact match?
```
$ echo "aa/bb/cc dd/ee/ff" | grep -w aa/bb
aa/bb/cc dd/ee/ff
$
```
I want grep to match the whole string without exception to `/`.
In the above example, I don't want it to match `aa/bb/cc` string, but match only if there is any `aa/... |
2018/03/19 | 1,032 | 3,294 | <issue_start>username_0: How do I make a PDF with C# application?
I would like to make an application which creates a PDF document, but it could be Excel too.
I wish to make a file which contains tables and header.<issue_comment>username_1: Use `else if` instead of `if` for the last two `if` statements. This will giv... |
2018/03/19 | 997 | 2,731 | <issue_start>username_0: I have tried to make like this block but wasn't able to make as in the design. How can I make it? Can you help me? Here is desired block [](https://i.stack.imgur.com/ud0HM.jpg)
and code I have tried:
```css
.section-1 {
b... |
2018/03/19 | 1,375 | 4,687 | <issue_start>username_0: I am trying to install virtualbox5.2 on a RHEL 7 VM When I try to rebuild kernels modules I get the following error:
```
[root@myserver~]# /usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not... |
2018/03/19 | 1,025 | 2,707 | <issue_start>username_0: I know "\v" means vertical tab or whitespaces (LF,CR, etc) in regex, so I've used [^\v] instead of [\V] to indicate any character which is not vertical whitespace. But I found the case that [^\v] didn't work in notepad++ 7.5.
Example text source ( ffmpeg log )
```
frame=13920 fps= 86 q=-1.0 s... |
2018/03/19 | 490 | 1,710 | <issue_start>username_0: I would like to learn how to print only the return value of a function.
I.E.
```
def dude():
print("Hello")
return 1
```
I would like to print only the return value and not the all of the functions process. I would like to use the function and be able to use a different command to get j... |
2018/03/19 | 415 | 1,549 | <issue_start>username_0: I have a table called "Tk20F7\_agg" that I am trying to export as a .txt file with custom specifications. The code is below but when I run it, I get this error:
"The Microsoft Access database engine could not find the object 'Tk2020181903#txt.'"
```
TempName01 = "Tk20" & Format(Date, "yyyyddm... |
2018/03/19 | 492 | 1,759 | <issue_start>username_0: For some reason I'm getting this error. Below are the specs and then what I did.
>
> Visual Studio 2017 v15.6.2
>
>
> SQL Server 2008 v10.50.4
>
>
>
I opened the package manager console and added the following packages...
```
Install-Package Microsoft.EntityFrameworkCore.SqlServer
Ins... |
2018/03/19 | 723 | 3,120 | <issue_start>username_0: Actually my app have 2 themes (pink and blue), handled by ResourceDictionary in App.xaml
Switching a switch in settings page change programmatically the values of the ResourceDictionary and the elements change as wanted (background, text colors etc).
It's maybe not the prettiest way but it wor... |
2018/03/19 | 384 | 1,370 | <issue_start>username_0: I have a code (for which performance is crucial) that I can compile in single and double precision. We use a lot of physical constants throughout the code that come out of a `namespace Constants`. What is the most elegant way of providing the constants in the preferred precision, as I cannot te... |
2018/03/19 | 5,427 | 13,105 | <issue_start>username_0: I'm new in keras and deep learning field. In fact, I built a deep autoencoder using keras library based on ionosphere data set, which contains a mixed data frame (float, strings"objects", integers..) so I tried to replace all object colunms to float or integer type since the autoencoder refuses... |
2018/03/19 | 994 | 2,897 | <issue_start>username_0: I have a navbar that contains elements, and I'm not able to center them in the middle of the navbar. I do not want to use bootstrap. Whatever I do, it still starts from the left side. I originally had the ul as the .topnav but it still wasn't centering the elements.
HTML:
```
* [Home](index... |
2018/03/19 | 568 | 2,298 | <issue_start>username_0: I am getting the following error:
>
> Unable to resolve service for type 'IMyRepository' while attempting to activate 'MyController'.
>
>
>
I understand that my application is failing on the dependency injection.
However I'm not sure how to correct this error.
My IMyRepository looks lie... |
2018/03/19 | 597 | 2,370 | <issue_start>username_0: Im creating a website right now using Angular 5 and CouchDB. In my database.service.ts a method looks like this:
```
import {HttpClient} from '@angular/common/http';
const auth = my database adress;
constructor(private http: HttpClient) {}
createUser(id: string, email_: string, password_: str... |
2018/03/19 | 361 | 1,368 | <issue_start>username_0: I have an tag input like this
```
Valor total
```
and i need to put a limit like `maxlength="15,4"`
being much more specific i need this in my input `999999999999999,9999` or something like this mask `###############,####`
i iv tried to look at web but all sugest dosent work in my c... |
2018/03/19 | 463 | 1,715 | <issue_start>username_0: I could see spark connectors & guidelines for consuming events from Event Hub using Scala in Azure Databricks.
**But, How can we consume events in event Hub from azure databricks using pySpark?**
any suggestions/documentation details would help. thanks<issue_comment>username_1: Below is the ... |
2018/03/19 | 857 | 3,552 | <issue_start>username_0: I am using UIImagePickerController to use my camera like so:
```
@objc func toggle() {
if UIImagePickerController.isSourceTypeAvailable(.camera) {
//Define UIImagePickerController variable
let imagePicker = UIImagePickerController()
//Assign the d... |
2018/03/19 | 968 | 3,001 | <issue_start>username_0: I have a list of tuples `seg = [(874, 893), (964, 985), (1012, 1031)]` and an index. I want to check if the index is inside the range of those tuples, for example, `876` is while `870` is not.
My code to do so is the following:
```
if [x for (x, y) in seg if x <= index <= y]:
print ("ind... |
2018/03/19 | 261 | 1,062 | <issue_start>username_0: I have a form with an existing data source. This data source has a one to many relationship to another table that is **not** an existing data source. Even though this second table contains multiple records (one to many), the field in the table that I want is duplicated across all records. There... |
2018/03/19 | 418 | 1,370 | <issue_start>username_0: I have created the following ggplot using the code below. I need to remove the red vertical line on the right. Any help would be appreciated.
[](https://i.stack.imgur.com/qVd4a.jpg)
```
ggplot(model.1, aes(x = time, y = activ... |
2018/03/19 | 536 | 2,105 | <issue_start>username_0: It seems I have a unwanted file in a directory. The file is an MS Word file, with a filename that begins with ~$, which I understand is a locked file, probably created by MS Word. But, the file remains after MS Word is closed.
I have the Windows explorer setup to show hidden files, but it does... |
2018/03/19 | 727 | 2,844 | <issue_start>username_0: I would like to use Gradle tasks to execute java commands for the [salesforce dataloader](https://github.com/forcedotcom/dataloader) so that we can have our data loading tasks in a self-contained project. I've installed the dataloader into my local maven repo and set up my gradle project as fol... |
2018/03/19 | 790 | 2,767 | <issue_start>username_0: Currently attempting to have special characters, primarily '.' a number, however, it seems enums require letters only. Is there a way to use special characters? Currently trying to make a file saver and many file types have numbers in them, an example being:
```
public enum FileType {
7z(... |
2018/03/19 | 1,115 | 3,627 | <issue_start>username_0: I have the following data frame
```
design <- read.table(text =
"block position
1 1
1 2
1 3
1 4
2 1
2 2
2 3
2 4", header = TRUE)
```
I want to randomly assign four treatments within one block. I could do this for example with the following code:
```
... |
2018/03/19 | 549 | 2,100 | <issue_start>username_0: Our team is trying to execute
```
`java -jar network-bootstrapper.jar `
```
to bootstrap a Corda node. The documentation on [Bootstrapping the network](https://docs.corda.net/head/setting-up-a-corda-network.html#bootstrapping-the-network) instructs the reader to:
```
To use it, create a ... |
2018/03/19 | 439 | 1,850 | <issue_start>username_0: I'm trying to start a new activity using intent and on finishing the activity, I want my previous activity to retain its data. I already have other activities passing some data into this main activity but on starting this new activity, when I go back, all that data disappears and gives me a nul... |
2018/03/19 | 638 | 2,374 | <issue_start>username_0: As you can see in the code section below, once you click on one the buttons the text in the field changes **but the event does not get fired (and it does not run alertTextInput() method)**, when you type text directly under the text field the event is triggered as expected.
How can I activate ... |
2018/03/19 | 605 | 2,077 | <issue_start>username_0: I am building a Flask app and I am having some troubles with one of the HTML-templates. What I want to do is a sort of 3x3 tile layout for news stories, all tiles of equal height and width. This is my html code:
```
{% extends "base.html" %}
{% block app_content %}
{% for result in results[... |
2018/03/19 | 498 | 1,742 | <issue_start>username_0: I'm trying to check if WordPress user is logged in or not from an external PHP file and here is my code
```
php
/*Load up wordpress externally*/
define( 'WP_USE_THEMES', false );
define( 'COOKIE_DOMAIN', false );
define( 'DISABLE_WP_CRON', true );
require('../../trading/wp-load.php');
if ( i... |
2018/03/19 | 772 | 2,455 | <issue_start>username_0: This is the code it is supposed to simulate the rolls of 2 dice 5 times.
```
import java.util.*;
public class RollDice {
static double die1;
static double die2;
static double sum;
public static void main (String[] args) {
String output = "";
for (int i =0; i<... |
2018/03/19 | 582 | 1,848 | <issue_start>username_0: I try to create request in func and after call the func and return responсe json.
But because request is async response arrived after func returns any data.
How handle request finishing?<issue_comment>username_1: If by average you mean the average across all the dice rolls, you can get it summ... |
2018/03/19 | 1,902 | 6,508 | <issue_start>username_0: I'm trying to create a blobstore entry from an image data-uri object, but am getting stuck.
Basically, I'm posting via ajax the data-uri as text, an example of the payload:
```
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPA...
```
I'm trying to receive this payload with the following han... |
2018/03/19 | 666 | 2,442 | <issue_start>username_0: html Code
```
```
js function:
```
function delete_image()
{
var status = confirm("Are you sure you want to delete ?");
if(status==true) {
var file = $("#delete_file").val();
$.ajax({
type:"POST",
url:"php/del.php",
... |
2018/03/19 | 883 | 3,575 | <issue_start>username_0: Problem in retrieving firebase database to an android app.
----------------------------------------------------------
[Here is the image of firebase realtime database updating from from raspberry pi](https://i.stack.imgur.com/LiAHP.png)
---
error: Failed to convert value of type java.util.Ha... |
2018/03/19 | 560 | 2,067 | <issue_start>username_0: Every documentation from Visual Studio (2013, 15 17) says the Visual Studio Experimental Instance will have its own register entries in the Registry Editor under xxExp and xxExp\_Config Keys.
I can't find those Keys/Folders under HKEY\_CURRENT\_USER/SOFTWARE/Microsot/Visual Studio, but i know ... |
2018/03/19 | 207 | 791 | <issue_start>username_0: I have a VMSS which is not connected to a load balancer running windows 2016 server edition operating system. How can I RDP into this setup? Is port 3389 open by default?<issue_comment>username_1: If you use Azure image to create VMSS, you can **create a windows VM work as a jumpbox** in that s... |
2018/03/19 | 1,377 | 4,663 | <issue_start>username_0: It's quite annoying since upgrading to Android Studio 3.0.1 such that the "Back/Forward" buttons are not displayed in tool bar at the top in IDE any more. I know, I can select "Navigation-> Back/Forward", but obviously, it's very annoying if you Back/Forward frequently; Also, the short cut by k... |
2018/03/19 | 667 | 2,293 | <issue_start>username_0: The testcase shall assert that the method `tagcache()` of a resource is called, to ensure the resource's tag cache is updated. I know that the method is called, yet the test fails because:
```
Expected: to be called at least once
Actual: never called - unsatisfied and active
```
But why?
``... |
2018/03/19 | 717 | 2,119 | <issue_start>username_0: The Code I have so far only does for 1 index however I want it to read all existing indexes within the array. element array can carry many groups of numbers for example
Array ["2,2,5" , "5,2,1"] contains 2 indexes [0] and [1]
```
var element = Array[0]
let splitData = element.components(separ... |
2018/03/19 | 527 | 1,568 | <issue_start>username_0: I build an embedded linux with YOCTO for the KARO TX6S-8035 target. I use the
Mfgtools-TX6-2018-01 tool to flash images into the board but when i boot the device i have the following error: **Kernel panic - not syncing: Requested init /linuxrc failed (error -2)**.
How can i fix this?
Here is ... |