date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 1,196 | 4,511 | <issue_start>username_0: I've got this code:
```
var get_lat = function(address) {
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
console.log('lat is: '+ results[0].geometry.location.lat());
return results[0].geome... |
2018/03/22 | 874 | 2,475 | <issue_start>username_0: I am beginner in coding. I have dynamic product price. Price is like 40000, 60000, 654000. I want to make them in [Indian numbering system](https://en.wikipedia.org/wiki/Indian_numbering_system) like 4 Lac, 6.5 Lac, and 1 cr.
I found this code on stackoverflow
```
function numDifferentiation(... |
2018/03/22 | 788 | 3,009 | <issue_start>username_0: Is there a way to validate in java if the given private key, say certain \*.key file matches with the certain public key, to a certain .pub file using RSA algorithm?<issue_comment>username_1: You can verify if a key pair matches by
* creating a **challenge** (random byte sequence of sufficient... |
2018/03/22 | 417 | 1,520 | <issue_start>username_0: I'm working on Laravel and my question is: How can I update value in one table when inserting data to another? Do I have to write new function in controller or update existing or maybe its done on form level in eloquent (view?)?
For example:
That's my OrderController.php function handling i... |
2018/03/22 | 1,018 | 3,770 | <issue_start>username_0: I have a list of base class like this:
```
List ChildClasses
```
I have child classes like this:
```
class ChildFoo : BaseClass {}
class ChildBar : BaseClass {}
class ChildBaz : BaseClass {}
class ChildQax : BaseClass {}
class ChildBox : BaseClass {}
...
```
I need to implement a method w... |
2018/03/22 | 627 | 2,432 | <issue_start>username_0: We are trying to cache all Gradle dependencies for our Android `build` job.
This is the current approach that is failing:
```
- restore_cache:
key: android-build-{{ checksum "android/build.gradle" }}-{{ checksum "android/app/build.gradle" }}
- save_cache:
paths:
- ~/.gradle
... |
2018/03/22 | 512 | 1,893 | <issue_start>username_0: I don't understand this code;
Can someone write it proper so I can also understand.
```
public void deleteStudentsPersistence(Student student) {
em.remove(em.contains(student) ? student : em.merge(student));
}
```<issue_comment>username_1: this is a ternary operator, called cond... |
2018/03/22 | 675 | 2,568 | <issue_start>username_0: I’ve searched and read all the posts I can find, but I don’t think I get it. We have an extron SMP that provides us with a multicast live RTP stream. This stream can be viewed from any computer on our network using VLC Player. Now we want to play this stream in our browser.
I know that you can... |
2018/03/22 | 651 | 2,182 | <issue_start>username_0: I have two python files in same folder `file1.py` `file2.py`.
`file1.py`
```
data = dict()
data["user1"] = "xyz"
data["user2"] = "abc"
#saving it in json
with open(myfile, "w") as f: #myfile is a path to a json file
json.dump(data , f, indent=4, ensure_ascii=False)
```
I want to ... |
2018/03/22 | 1,093 | 3,651 | <issue_start>username_0: Java 10 brings a C#-like `var` keyword for [local type-inference](https://developer.oracle.com/java/jdk-10-local-variable-type-inference).
But does Java 10 also provide a `val` keyword, as is [found in Scala](https://stackoverflow.com/questions/4437373/use-of-def-val-and-var-in-scala)?
`val... |
2018/03/22 | 485 | 1,992 | <issue_start>username_0: I have an NSObject class, which has some primitive properties:
### MyClass.h
```
@interface MyClass: NSObject
@property (nonatomic, assign) BOOL boolProp;
@property (nonatomic, assign) NSInteger intProp;
@end
```
### MyClass.m
```
@implementation MyClass
// No init implemented
@end
``... |
2018/03/22 | 635 | 2,410 | <issue_start>username_0: I want to delete records from both tables in the JOIN from the this CTE in `SQL Server 2012`:
```
WITH RECORDS_TO_DELETE ([Counter], [ID])
AS
(
SELECT D.[Counter], D.[ID], C.[ID]
FROM [Table1] AS D
LEFT JOIN
(
SELECT [ID] FROM [Table2]
... |
2018/03/22 | 1,108 | 3,211 | <issue_start>username_0: I have a nested dictionary, an encryption function and a dotted path, I want to apply my encryption function to encrypt specific field.
Example:
mydict
```
{"a":{
...
"b":{
...
"c":"value"
}
}
}
```
field path: `a.b.c`
I want to execute encry... |
2018/03/22 | 457 | 1,876 | <issue_start>username_0: I am trying to do junit testing using plain junit by calling the controller class method as below, when i am doing this, the @Autowired annotation for object creation returns me null instead of creating the object.
Example:
JunitClass:
```
@RunWith(SpringRunner.class)
@SpringBootTest
public ... |
2018/03/22 | 530 | 2,047 | <issue_start>username_0: I use AngularFire library to read data from Firebase Realtime database. Below is the code that I used to subscribe for real time data changes
```
// db is a reference to AngularFireDatabase
this.dbSubscription = db.list('/authors').valueChanges().subscribe(items =>
```
For some user actions ... |
2018/03/22 | 525 | 1,988 | <issue_start>username_0: I am using `ng-idle` to redirect the user back to the home screen if the app isn't used within 60 seconds.
The problem I have is that if there is an ion-select popover open at the time of redirecting, these are still displayed on the screen until they are manually closed. Is there any way of d... |
2018/03/22 | 1,057 | 4,551 | <issue_start>username_0: I am using ActiveMq with SpringBoot, to send every record from large csv file to another service. I am loading records to a map and then in a for each loop I send records to ActiveMq Queue.
My problem is that, ActiveMq wont let any consumer to take record from queue, until all records from my ... |
2018/03/22 | 465 | 1,447 | <issue_start>username_0: I had a case that I can not figure out how to solve.
I have a Bootstrap 3 section where the video is in the center.
I need to add one image to the left of the video edge, the second image to the right of the video edge. Just like I schemed in the picture.
I tried to do this with `position: abs... |
2018/03/22 | 1,924 | 7,771 | <issue_start>username_0: So as the title suggests, I'd like to dynamically add `colspan="100"` to any lonely cell in a table row using jquery.
I'm using a wordpress plugin to add a table to a page, but it doesn't allow for the use of colspan, so I am hiding any empty cells with jquery.
The problem occurs when there is... |
2018/03/22 | 1,376 | 5,143 | <issue_start>username_0: I am writing API login register system for my app.
I have created a controller for login and register, so I can create my user from postmen and log in from there but when I try to call `my get details` method it's returning
>
> as a method not allowed an exception
>
>
>
here is my Contr... |
2018/03/22 | 790 | 2,857 | <issue_start>username_0: I would like to obtain `int[].class` from Matlab. Unfortunately, Matlab does not allow this syntax. Simultaneously, I allows to call any Java functions or access static members as is.
For example, I can't call
```
int.class
```
but can
```
java.lang.Integer.TYPE
```
Is it possible to fin... |
2018/03/22 | 1,404 | 5,126 | <issue_start>username_0: When I add variable products to my shop I got a price range on the catalogue and product page. I found a way to show only minimum price instead of the price range. It works great. (see code below).
But now I would like to hide those minimum price on the product pages (but only on product page... |
2018/03/22 | 767 | 3,156 | <issue_start>username_0: I am working on one Asp.net application. I have one **Email Reminder form** in which my Client's Email ID & checkbox is provided. Admin will select the checkbox & press the **send reminder** button & the mail will be sent to all the checked checkboxes i.e. to my clients.but in this form I have ... |
2018/03/22 | 672 | 2,417 | <issue_start>username_0: I am working on a Facebook Messenger bot that I am hosting on Heroku.
In my `package.json` I've specified my node version and NPM version as follows:
```
"engines": {
"node": "8.10.0",
"npm": "5.7.1"
},
```
When I do a push to heroku using `git push heroku master`, I see the followi... |
2018/03/22 | 831 | 3,026 | <issue_start>username_0: I am facing this issue since last OS update.
I am deploying Mule app with the help of anypoint-cli runtime-mgr cmdlet.
Here is the sample code I am using for the deployment in Execite Shell task of Jenkins job.
```
export ANYPOINT_USERNAME=username@env
ifexist="`anypoint-cli runtime-mgr clo... |
2018/03/22 | 483 | 1,776 | <issue_start>username_0: I have a sample package.json for my application,
```
dependencies : {
P1 : “^1.0.0” // has a peer dependency of p3 v1
P2 : “^1.0.0” // has a peer dependency of p3 v2
}
```
P1 and P2 has peer dependency on P3, but on deferent versions.
(e.g P1 has peer dependency of ... |
2018/03/22 | 462 | 1,772 | <issue_start>username_0: please, i need help!!! i am really new on all this installation i try to install ruby mine and it s give me all time this error 'Cucumber gem ist't installed for ruby -2.0.0 - p 481 SDC' i have mac and install one universal version of ruby when i put it on terminal - it s always give me this an... |
2018/03/22 | 1,879 | 7,082 | <issue_start>username_0: i am facing a problem with server side validation with php. The problem is that it always shows the validation error message even with valid values. For example on the username field if i enter something that contains no special symbols it still enters the if statement and shows the error messa... |
2018/03/22 | 592 | 1,975 | <issue_start>username_0: I'm trying to upload files to Digitalocean Spaces using Laravel file system. I followed a tutorial on youtube but I keep getting an error from Laravel saying "Endpoints must be full URIs and include a scheme and host".
This is the tutorial that I followed:
<https://www.youtube.com/watch?v=vFw... |
2018/03/22 | 1,099 | 4,361 | <issue_start>username_0: Being new to Swift this is what I found:
```
enum HttpMethod {
static let post = "POST"
static let get = "GET"
}
// can assign to string property.
request.httpMethod = HttpMethod.post // --> "POST"
```
The reason to use a caseless `enum` and not a `struct` makes sense to me after readin... |
2018/03/22 | 1,629 | 5,060 | <issue_start>username_0: I've tried to understand when Python strings are identical (aka sharing the same memory location). However during my tests, there seems to be no obvious explanation when two string variables that are equal share the same memory:
```
import sys
print(sys.version) # 3.4.3
# Example 1
s1 = "Hell... |
2018/03/22 | 513 | 2,252 | <issue_start>username_0: I am in the process of building my first live node.js web app. It contains a form that accepts data regarding my clients current stock. When submitted, an object is made and saved to an array of current stock. This stock is then permanently displayed on their website until the entry is modified... |
2018/03/22 | 368 | 1,279 | <issue_start>username_0: `EC2 Details:
OS: Ubuntu 16.04
Git client: git version 2.7.4`
**Issue:**
From AWS instance I am not able to connect to bitbucket.org repositories. Tried ping to bitbucket.org but, I didn't got any response. I check-out bit-bucket repository via ssh clone. Outbound traffic is of type 'All tra... |
2018/03/22 | 711 | 2,243 | <issue_start>username_0: Why if I have several divs, which I want to give different height depending on the content. He always takes the height from the first condition.
```js
$('.box-site-promo').each(function(index) {
console.log($(this));
if ($(this).find('.box-site-tags')) {
heightBox = 200;
cons... |
2018/03/22 | 587 | 2,092 | <issue_start>username_0: Can anyone help me with getting PHP to reference the value or id attribute in form handling. I can only see how to reference the name using $\_POST, how can this work with radio input type when the name is not unique?
Thanks in advance for any advice.
```
input type="radio" name="fuel" value="... |
2018/03/22 | 1,410 | 4,010 | <issue_start>username_0: Out of the box create-react-app with jest is always failing
Steps I did
```
create-react-app cra-test
cd cra-test
yarn install
```
Changed the original `test` in `package.json` into this
```
{
"name": "cra-test",
"version": "0.1.0",
"private": true,
"dependencies": {
"react"... |
2018/03/22 | 1,530 | 5,770 | <issue_start>username_0: I was creating a component and was trying to break my implementation. The idea is to not allow user to manipulate the exposed properties.
The implementation was like this:
```js
function MyClass(){
var data = [];
Object.defineProperty(this, 'data', {
get: function(){ return data; }... |
2018/03/22 | 426 | 1,771 | <issue_start>username_0: So I was checking some implementations online and I noticed that some people use the following way to generate a key:
```
using (var random = RandomNumberGenerator.Create())
{
var key = new byte[32];
random.GetBytes(key);
}
```
While others use... |
2018/03/22 | 355 | 1,476 | <issue_start>username_0: How to create Custom Authentication Attribute in C# Web API
```
using System.Web.Http;
using System.Web.Http.Controllers;
namespace WebApiCustomAuthorization
{
public class MyAuthorization : AuthorizeAttribute
{
protected override bool Authorized(HttpActionContext actionContex... |
2018/03/22 | 434 | 1,716 | <issue_start>username_0: Using Create-react-app, I want to lazy load some of my components, this is working fine as long as the components are in the same folder as my main component (where I define the routes) however as soon as I want to load a component from another folder like
```
loader: () => import("../contain... |
2018/03/22 | 628 | 1,727 | <issue_start>username_0: Is it possible to group only specific elements in a scala map which matches a given condition?
**From:**
```
val map = Map(((1,true,"case0")->List(1,2,3)), ((2,true,"case0")->List(3,4,5)),
((1,true,"case1")->List(2,4,6)), ((2,false,"case1")->List(3)))
```
**To:**
```
Map(((1,true,"nocas... |
2018/03/22 | 1,143 | 3,580 | <issue_start>username_0: I have just started to learn Angular 4. I get the following error
```
Uncaught TypeError: Object(...) is not a function
at eval (bidi.es5.js:70)
at eval (bidi.es5.js:72)
at Object../node_modules/@angular/cdk/esm5/bidi.es5.js (vendor.bundle.js:39)
at __webpack_require__ (inline.... |
2018/03/22 | 591 | 2,124 | <issue_start>username_0: The following code is working on development but not on production , am getting error
I have added the name attribute on the componenet but it's still not working. For now i have removed the spinner component.
```
Unknown custom element: - did you register the component correctly?
For rec... |
2018/03/22 | 637 | 2,225 | <issue_start>username_0: I'm new to Django and i'm working on uploading files.
when uploading my files, the saving is working perfectly.
but problem is i need to associate every aploaded file to a bill id, cause the uploaded file for me is a bill.
something like
>
> billX\_[45]
>
>
>
45 is the bill id in my da... |
2018/03/22 | 628 | 1,603 | <issue_start>username_0: I have dataframe like this:
```
import pandas as pd
df = pd.DataFrame({'a': [1, 2], 'b': [3, 4], 'ent':['A','B']})
| |a |b |ent
|---|---|----|----
|0 |1 |3 |A
|1 |2 |4 |B
```
I want to have this dataframe in form like **this:**
```
|ent |A |B
-------------
|a |1 |... |
2018/03/22 | 396 | 1,575 | <issue_start>username_0: For example, if we set OnClick on button and also set it invisible
It still works right ?
If yes, What's a real life scenario in which it would be beneficial ?
If there is no use , Why does android even allow to have onClick on Invisible view and it doesn't even give warning or anything.
... |
2018/03/22 | 583 | 2,340 | <issue_start>username_0: I need to create a zip file by using Java. Library is not important, but zip4j seems to be a good one. In this zip file, only some of the files or subdirectories will be password protected. For example in the following zip file, only the files starting with "\*" will be password protected:
```... |
2018/03/22 | 559 | 2,277 | <issue_start>username_0: After navigation on page,
`driver.navigate().to("http://");`
nothing is working, page is transferred but it stops execution. If we go to browser and manually refresh it, then it is executing next step.
No error or exception, But still its stop working after navigation.
```
driver.navigat... |
2018/03/22 | 709 | 3,005 | <issue_start>username_0: I have the following class component:
```
class ConceptPopup extends React.Component {
constructor(props) {
super(props);
this.state = {
attributeForm: []
};
this.addAttributeForm();
}
addAttributeForm() {
//this method adds lab... |
2018/03/22 | 511 | 2,251 | <issue_start>username_0: I'm using $mdDialog to show popup alerts. I want to refresh the the page whenever I close the Pop up container.
```
$scope.updateCustomer = function(){
HomeService.updateCustomer($scope.update)
.then (function success(response){
$mdDialog.show(
$mdDialog.alert()
... |
2018/03/22 | 437 | 1,803 | <issue_start>username_0: I'm currently working on google's dialog flow using api-ai-javascript. I'm recieving a response from server in json format and trying to access "res.result.fulfillment.messages[0]" field in it. But everytime i "ng serve" it displays following error: "error TS2339: Property 'messages' does not e... |
2018/03/22 | 1,189 | 3,731 | <issue_start>username_0: So I have a situation in which I need to populate a specific column from an URL ( Basically a get request to that URL will give a list of numbers ).
I am new with the macros but I want to make a system in which I will click a button and then that will read the data and populate the column.
*... |
2018/03/22 | 1,367 | 4,742 | <issue_start>username_0: I don't know if someone is able to help me but I'm having trouble getting Envira Gallery to work with ACF pro.
What I'm trying to do is have Envira Gallery pick-up the gallery I've made with ACF. It should be possible for what I've read. And it kind of works at the moment. I've read [this](ht... |
2018/03/22 | 1,049 | 3,153 | <issue_start>username_0: I want to store data inside Li for displaying it when it's being clicked.
I've used Data attribute but it's store only the type...rather then the object itself ...so it's doing something like
```
-
```
Here is what i've done so far :
```js
var data_obj = [{
name: "foo",
age: 33
}... |
2018/03/22 | 1,256 | 4,144 | <issue_start>username_0: What the following expression computes, exactly?
```
#define SIGN(x) ((x < 0) ? -1 : (x > 0))
```
what yields if x is zero, less than zero, more than zero?
I guess I know the answer, but I'd like to check for clarity...
Thank you
EDIT: added missing parenthesis
EDIT: more info [here](https... |
2018/03/22 | 1,351 | 4,699 | <issue_start>username_0: I am working on an security analysis for an DB2 setup which uses federated nicknames.
When setting up federated nicknames on DB2 a wrapper and user mappings must be created. For both a username and a password must be stored at the DB2.
```
CREATE SERVER V9SAMPLE TYPE DB2/UDB VERSION 9.1 WRAPP... |
2018/03/22 | 370 | 1,129 | <issue_start>username_0: What I'm trying to do can be explained with this pseudo-code:
if `variable_text1` is either "1", "2", "3" then under the new column called `rating` put "1-3"
Pretty simple but writing it in the "dumb" way is pretty long
```
Table.AddColumn(#"Added cluster_rating", "rating", each if [variable_... |
2018/03/22 | 438 | 1,686 | <issue_start>username_0: I'd like to read a .xlsx using python pandas. The problem is the at the beginning of the excel file, it has some additional data like title or description of the table and tables contents starts. That introduce the unnamed columns because pandas DataReader takes it as the columns.
But tables co... |
2018/03/22 | 1,246 | 4,140 | <issue_start>username_0: I am trying to test my redux-sagas with the redux-saga-test-plan library to make things easier. All tests are run in a JEST environment.
To help me structure my tests on a forked saga I followed the documentation here: <https://github.com/jfairbank/redux-saga-test-plan/blob/master/docs/integra... |
2018/03/22 | 981 | 3,956 | <issue_start>username_0: I am currently facing the following problem with a `Menu Strip` containing several different settings such as:
* Show X
* Show Y
* Show Z
All those items have corresponding properties of the type `bool`, because those variables are also passed to other classes. Currently, when I click on "Sho... |
2018/03/22 | 1,368 | 3,376 | <issue_start>username_0: I think "end" will be print in for loop, but this is wrong, can you tell me why. This is code:
```
dispatch_queue_t queue = dispatch_queue_create("queue", DISPATCH_QUEUE_CONCURRENT);
for (NSUInteger i = 0; i < 1000; i++) {
dispatch_async(queue, ^{
NSLog(@"i:%lu", (unsigned long)i)... |
2018/03/22 | 2,336 | 6,143 | <issue_start>username_0: Here is my package.json:
```
{
"name": "DFS",
"version": "1.0.0",
"description": "DFS App",
"author": "asd",
"private": true,
"nodemonConfig": {
"delay": "2500"
},
"scripts": {
"postinstall": "npm run build",
"dev": "node build/dev-server.js",
"start": "node bui... |
2018/03/22 | 823 | 3,144 | <issue_start>username_0: I have downloaded App Owns Data from github - <https://github.com/Microsoft/PowerBI-Developer-Samples>. I have added Row Level Security by adding the following line:
```
generateTokenRequestParameters = new GenerateTokenRequest("View", null,
identities: new List{new EffectiveIdentity(... |
2018/03/22 | 696 | 2,178 | <issue_start>username_0: Here we have a `textarea` in html file
```
some text
```
above in head I have next kind of string :
```
function do_resize(textbox) {
var maxrows=50;
var txt=textbox.value;
var cols=textbox.cols;
var arraytxt=txt.split('\n');
var rows=arraytxt.length;
for (i=0;im... |
2018/03/22 | 577 | 1,759 | <issue_start>username_0: I have created a graph from list of nodes using `networkx`. It has self loops. How to remove them? Following is sample:
```
import networkx as NX
G=NX.Graph()
G.add_edge(1,2)
G.add_edge(1,1)
print (G.edges())
[(1, 2), (1, 1)]
```
I don't want `(1, 1)` edges.<issue_comment>username_1: The me... |
2018/03/22 | 10,477 | 13,683 | <issue_start>username_0: I am plotting the following data:
```
myDates = ['2017-05-17', '2017-05-24', '2017-05-25', '2017-05-26', '2017-05-27', '2017-05-29', '2017-05-31', '2017-06-01', '2017-06-03', '2017-06-04', '2017-06-05', '2017-06-06', '2017-06-07', '2017-06-08', '2017-06-10', '2017-06-11', '2017-06-12', '2017-0... |
2018/03/22 | 5,716 | 8,492 | <issue_start>username_0: I have an object with many record types, and I need to populate some fields on it whenever it is created.
For example, I have an object called "CustomObj" with a field called "CustomF" with these 2 Record Types "RecType1" and "RecType2".
On the creation of a new "CustomObj" I need to populate... |
2018/03/22 | 1,436 | 4,348 | <issue_start>username_0: I am facing two issues, bother are pretty much similar.
When I add this code to a blogger/blogspot page it works fine, but as soon as I switch to 'compose' mode from 'html' and save the post it changes the tag automatically and gives error link.
1. I am adding below code to blogger page where ... |
2018/03/22 | 841 | 3,095 | <issue_start>username_0: ```
type Container = T extends any[] ? ArrayContainer : ObjectContainer
type ArrayContainer = {
set(arr: T, index: number): void
}
type ObjectContainer = {
set(obj: T): void
}
const testContainer = {} as any as Container<{ boxedNumber: number } | number>
// Does not compile
testContainer.... |
2018/03/22 | 220 | 768 | <issue_start>username_0: If I do `console.log(myObject)` the result like this :
[](https://i.stack.imgur.com/iV6wH.png)
I want to calculate the `length`
I try `myObject.lenght`, but it does not work
How can I solve this problem?
Seems this must co... |
2018/03/22 | 907 | 3,087 | <issue_start>username_0: I have three pages.
Page 1 gets the Email/ Username of user (Same like Gmail).
Page 2 gets password and redirects to successful login page.
Issue i am facing:
I am able to get user-agents , ip , timestamp when i enter email in page 1 and redirected to page 2. All values are successfully saved ... |
2018/03/22 | 704 | 2,251 | <issue_start>username_0: I'm trying to send an email to multiple emails, so I did a query to my users tables but the result is an array with keys that don't work `mail->to()`.
I need an array like this: `$owners = ['<EMAIL>', '<EMAIL>','<EMAIL>'];` from database.
My query:
```
$owners = DB::table('users')->select('e... |
2018/03/22 | 3,146 | 8,944 | <issue_start>username_0: I am trying to show a non dismissable dialog after verifying the textfields in a form but it keeps printing:
```
03-22 12:34:46.373 8974-9001/com.mywebsite I/flutter: ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
03-22 12:34:46.397 8974-90... |
2018/03/22 | 1,094 | 3,867 | <issue_start>username_0: Student
```
+----+-----------+--------------+
| id | First Name| Last Name |
+----+-----------+--------------+
| 1 | John | A |
+----+-----------+--------------+
| 2 | Jane | B |
+----+-----------+--------------+
```
Certifications
```
+----+------------... |
2018/03/22 | 1,105 | 3,938 | <issue_start>username_0: I have the following kotlin code to send an email with an attachment:
```
val file = File(directory, filename)
file.createNewFile()
file.writeText("My Text", Charsets.UTF_8)
// ---- file is written succesfully, now let us
// try to get the URI and pass it for the intent
val fileURI = FileProv... |
2018/03/22 | 761 | 2,703 | <issue_start>username_0: I have two tables:
**Table 1**
```
Name | Surname
```
**Table 2**
```
Introduce | Type
```
Introduce from Table 2 contains either Name or Surname or both from Table1. I'm listing all records from Table1 that are not present in Introduce and that's working just fine.
What I'm trying to... |
2018/03/22 | 1,206 | 4,214 | <issue_start>username_0: I created a new app and I am trying to use `react-native-firebase`. But I continually get this error:
>
> RNFirebase core module was not found natively on iOS, ensure you have
> correctly included the RNFirebase pod in your projects 'Podfile' and
> have run 'pod install'.
>
>
> See <htt... |
2018/03/22 | 920 | 3,493 | <issue_start>username_0: I am building an application that requires sequencing multiple bootstrap-vue modals. Specifically, a button in a nested component should open the 'manage' modal. The 'manage' modal contains buttons that, when clicked, should close the 'manage' modal and open another modal (e.g. 'edit', 'add', '... |
2018/03/22 | 765 | 1,874 | <issue_start>username_0: In q, say someone was naughty and created a function that sometimes returns a table with a mixed-type column:
```
t:([] c1:(`a;"dfdf";`b;"ccvcv"))
```
and sometimes a table with a symbol-only column:
```
t:([] c1:`a`dfdf`b`ccvcv)
```
I want to update `c1` to contain only symbols in a try-... |
2018/03/22 | 616 | 2,342 | <issue_start>username_0: currently I am developing web push notification service for our project. The problem I am facing is that my service worker in Google Chrome receives push signal, but won't show it as notification, although I am able to log data to dev console. I tried it on Firefox and also on Chrome in another... |
2018/03/22 | 1,055 | 3,557 | <issue_start>username_0: I have a function that uses the `len` function on one of it's parameters and iterates over the parameter. Now I can choose whether to annotate the type with `Iterable` or with `Sized`, but both gives errors in `mypy`.
```
from typing import Sized, Iterable
def foo(some_thing: Iterable):
p... |
2018/03/22 | 889 | 2,752 | <issue_start>username_0: I have a string in following format
qString path = <https://user:pass@someurl.com>
I want to ingore username and password from the the above path using QRegExp.
An worked with following case also
`1. qString path = http://user:pass@someurl.`
In the below case if it is does not contain any u... |
2018/03/22 | 546 | 2,346 | <issue_start>username_0: I have created a `DbContext` using EF Core 2.0 and already applied a lot of migrations in the development environment using `Update-Database` in PM-Console.
The tables are created using the `dbo`schema on my localDb as expected and as I know from EF6.
However, when i apply the `Update-Database... |
2018/03/22 | 447 | 1,570 | <issue_start>username_0: [](https://i.stack.imgur.com/JFQFw.png)
```
private void button1_Click(object sender, EventArgs e)
{
string[] AnalyteNames = new string[]{
"NA", "K", "CL", "TCO2", "BUN", "CREA", "EGFR", "GLU", "CA", "ANG", "HCT", "HG... |
2018/03/22 | 999 | 3,992 | <issue_start>username_0: There have been several similar questions asked, but I couldn't find anything that looked to be exactly the same as what I'm experiencing.
I've got a `ComboBox` inside a `DataTemplate` for a `ListView`. The `ComboBox` has the correct bindings to the `ItemsSource` as well as the `SelectedItem`.... |
2018/03/22 | 590 | 2,069 | <issue_start>username_0: Is there a way to increment each result of a loop by 2 each time? So it should increase the values by 2, then 4, then 6...
So if the first result is 2, it should be `2*2=4`
But the second result should be increased by 4: `2*4=8`
This is the loop:
```
function setDatePosition(timelineComponen... |
2018/03/22 | 1,973 | 7,433 | <issue_start>username_0: Why does `std::any_cast` throw a `std::bad_any_cast` exception when an implicit conversion from the actual stored type to the requested type would be possible?
For example:
```
std::any a = 10; // holds an int now
auto b = std::any_cast(a); // throws bad\_any\_cast exception
```
Why is thi... |
2018/03/22 | 1,986 | 7,549 | <issue_start>username_0: I have an java class like below. So I want to make a object of that class with lesser variables.
```
public class ABC{
private String firstName;
private String lastName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = f... |
2018/03/22 | 1,928 | 7,298 | <issue_start>username_0: Looking at the XAML below (which is an extract from a carousel page), is there any way to use OnIdiom to set the image gl\_CarouselIndicator to different things for phone and tablet?
I have used OnIdiom many times but I'm unsure how I would structure it in this instance.
thanks
```
```<issu... |
2018/03/22 | 849 | 1,829 | <issue_start>username_0: I want to find files having date in their extension.
In a folder having following files:
```
jvm-app-0.log.20180124.0000
jvm-app-0.log.20180124.0341
jvm-app-0.log.20180124.0341.tz
jvm-app-0.log.20180124.0355
```
I only want to find
```
jvm-app-0.log.20180124.0000
jvm-app-0.log.20180124.0341... |
2018/03/22 | 2,076 | 7,000 | <issue_start>username_0: I've got a problem with a NullPointerException.
This is my Controller:
```
public class Controller implements Initializable{
public Label lbTitle;
public Label lbAuthor;
public Label lbChapters;
public TextField tfTitle;
public TextField tfAuthor;
public TextArea ... |
2018/03/22 | 643 | 2,411 | <issue_start>username_0: [](https://i.stack.imgur.com/jOmMb.png)
My scenario is as shown in the above image. Here customer and shop will be using a windows form application and there is local DB for both.
For example if customer checks for shops products and place order, it... |
2018/03/22 | 943 | 3,342 | <issue_start>username_0: I have 3 **tables** and I want to return
the **customers** name and **total** sum of each **deposit** and **credit** amount.
```
deposit customers credit
id id id
d_amount c_amount
customer_id name customer_id
... |
2018/03/22 | 835 | 2,834 | <issue_start>username_0: I am able to get meta field in cart and checkout pages, But in email I tried to get using `$order` array but don't find any custom field in email.
How can I get custom meta fields in email notificatios (Admin, Customer)?
My code is following:
```
function wdm_add_custom_order_line_item_meta... |
2018/03/22 | 793 | 3,144 | <issue_start>username_0: I'm trying to resolve data before navigating to children routes as i have to use that data in children guard. The issue is parent resolver, resolves data after the child guard is fired. Resolver takes long time to resolve data
```
// app.module.ts
const appRoutes: Routes = [
{ path: 'login',... |
2018/03/22 | 790 | 2,120 | <issue_start>username_0: I have a database which looks like
Table1
```
ID Date
1 2018-01-01 15:04:03
2 2018-01-02 18:06:05
3 2018-01-03 23:21:12
4 2018-02-01 15:04:03
5 2018-02-02 18:06:05
6 2018-02-03 23:21:12
```
I want the count based on Month either in `JAN-18` format or... |
2018/03/22 | 892 | 2,467 | <issue_start>username_0: I'm displaying set of range values in two list boxes using VBA form. In `listbox1` headers, then per input displaying relevant data in `listbox2` by using the below code:
```
'header
Set rng = sht.Range("A1:I1")
With ListBox1
.ColumnCount = 9
.ColumnWidths = "50;40;30;120;... |
2018/03/22 | 885 | 3,165 | <issue_start>username_0: I have a problem with resource starvation on my java application running in wildfly.
It is making a lot of API calls to other REST resources, and if one of these API:s is slowed down, our system goes down as well.
It has happened that the backend systems are not responding within 14 seconds. S... |
2018/03/22 | 1,007 | 3,629 | <issue_start>username_0: I don't mind rooting a device as the application will only be used privately, i'm working on a project that requires to monitor the call state of a device, have read the documentation on it
<https://developer.android.com/reference/android/telecom/Call.html>
and i have been using it but i'm ha... |
2018/03/22 | 948 | 2,947 | <issue_start>username_0: I've setup a private Docker registry on my PC and I'm able to pull and push the image to it and pull it back again if I use the following command :
`docker pull localhost:5000/new_buntu`
But, if I replace `localhost` with my IP address, it doesn't work.
```
$ docker pull 10.118.56.140:5000/n... |