date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/18 | 492 | 1,946 | <issue_start>username_0: I am trying to make my Bullet fire continuously while touching the screen. This is what I got so far, but it's not really working.
```
func fireBullet() {
let bullet = SKSpriteNode(imageNamed: "bullet")
bullet.name = "Bullet"
bullet.setScale(1.5) // Bullet Size
bullet.position... |
2018/03/18 | 816 | 3,145 | <issue_start>username_0: I'm using UPDATING(col\_name) to check if column's value is updated or not inside the trigger. But the big problem is this command won't check value of :old and :new objects. UPDATING(col\_name) is true if col\_name existed in **set** part of query even with old value.
I don't want to check :ol... |
2018/03/18 | 719 | 2,712 | <issue_start>username_0: How would I order a list of items where some of the items contain double quotes?
* Advance
* Access
* “Chain free” deal
* Binding
* Broker
Doing this `FaqData = repo.FaqData.OrderBy(q => q.Description)` results in the following
* “Chain free” deal
* Advance
* Access
* Binding
* Broker
Tried... |
2018/03/18 | 548 | 1,826 | <issue_start>username_0: How do I properly count the amount of replaced strings in Javascript. For some reason the increment function below gives me "0" instead of "2".
[JSfiddle](https://jsfiddle.net/oa6wgpbf/)
```
var input = "A B C A";
function Replace(str) {
return str.replace(/A/g, "1");
Counter();
... |
2018/03/18 | 638 | 2,239 | <issue_start>username_0: why am i getting this error at the line " let postObject = [String:AnyObject] = [ "
>
> Cannot assign to value: function call returns immutable value
>
>
>
```
@IBAction func HandleSendButton(_ sender: Any) {
let postRef = Storage.storage().reference().child("messages").child("\(... |
2018/03/18 | 747 | 3,013 | <issue_start>username_0: I'm currently doing a proof of concept for an Android app with the new Firestore as backend/db. I need to fetch a bunch of documents by their id (they are all in the same collection)
Right now, I'm looping thru the id list and fetching them one by one and storing them in a list which in turn u... |
2018/03/18 | 1,728 | 3,540 | <issue_start>username_0: How would one apply this command I'm using in vim to sed or awk?
`:%s/\v\n(\D)/ \1/g`
Explanation
-----------
* `:%`: Complete buffer
* `s/`: Substitute
* `\v`: Use regex magic...I frankly still don't understand this
* `\n`: Match new line
* `(\D)`: Match 'Not a digit'. Surrounded by braces ... |
2018/03/18 | 1,082 | 2,438 | <issue_start>username_0: I am trying to make an apache superset chart with map box view.
I have to set latitude and longitude columns. But these data are in a postgresql + postgis database. So, latitude and longitude are in the same column location. An sql query would be like this:
`SELECT ST_X(location), ST_Y(locatio... |
2018/03/18 | 1,041 | 2,279 | <issue_start>username_0: I have an UIImageView which is as big as the whole view. When I insert an image, I would like for the image view to shrink itself in order for it to be as big as the image I insert itself. I cannot find a way to do it.<issue_comment>username_1: **`Awk`** equivalent would look as follows:
```
a... |
2018/03/18 | 687 | 2,310 | <issue_start>username_0: I'm trying to export to a CSV file, keys from the dictionary, and I want each key to be written as many times as his value. I want my output to be
`['battleaxe', 'dagger', 'dagger', 'dagger', 'gold coin']`
but instead I'm getting
`['battleaxe', 'daggerdaggerdagger', 'gold coin']`
My code:
... |
2018/03/18 | 646 | 2,314 | <issue_start>username_0: Developing MVC application and in Razor i imported those scripts:
```
```
i set datetimepicker like this:
```
$('#datetimepicker').datetimepicker({
locale: 'cs',
format: 'DD.MM.YYYY',
dayViewHeaderFormat: 'MMMM YYYY',
minDate: today,
stepping: 1,
showTodayButton: tru... |
2018/03/18 | 8,508 | 32,661 | <issue_start>username_0: I install the VS2017 on Windows 7. After some time I receive the error:
```
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi,version=15.6.27421.1\Microsoft.VisualStudio.MinShell.Msi.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINST... |
2018/03/18 | 943 | 3,505 | <issue_start>username_0: I am using Room with RxJava2 to implement my data layer via Repository Pattern principles.
I have the following simple code which decides where to pick data from.
```
@Override
public Single getTeamById(int teamId) {
return Single.
concat(local.getTeamById(teamId),
remote.getTeamById(t... |
2018/03/18 | 684 | 2,823 | <issue_start>username_0: I'm writing a simple bare-metal application on an embedded processor. As part of this application it must allocate some memory on the heap of approx 256kB, using malloc. Note: Originally this was statically allocated in main but at a certain size limit we had to move to dynamic allocation (gcc ... |
2018/03/18 | 1,106 | 4,104 | <issue_start>username_0: I am fairly new to java, so I don't have much experience with the syntax, I have tried some tutorials online and have watched a few videos on while and do while loops in Java from a user input. However, every edit i try breaks my code. The program below takes an answer from the user, an integer... |
2018/03/18 | 1,096 | 4,210 | <issue_start>username_0: I have the ff class:
```
namespace App\Component\Notification\RealTimeNotification;
use App\Component\Notification\NotificationInterface;
class EmailNotification implements NotificationInterface
{
private $logNotification;
private $mailer;
private $engine;
// This will ap... |
2018/03/18 | 820 | 2,737 | <issue_start>username_0: I hope this question makes sense because I'm not too sure how to ask it.
But my program - in python - asks the user to input their score from 1-10 on these ice cream flavours in an array. Displays their score and then prints their highest score as their favourite flavour. Which takes the numbe... |
2018/03/18 | 485 | 1,646 | <issue_start>username_0: I have been using the python client API of ML engine to create training jobs of some canned estimators. What I'm not able to do is get the path of the saved\_model.pb on GCS because the path it is stored in has a timestamp as a dir name. Is there anyway I can get this using a regular expression... |
2018/03/18 | 737 | 2,882 | <issue_start>username_0: So here is the function that works fine:
```
void Insert(node ** root, int inpdata){//tree's root should be passed here
if(*root == NULL){
*root = createNode(inpdata);
}
else if(inpdata < (*root)->data){
Insert(&(*root)->left,inpdata);
}
else{
Insert(&... |
2018/03/18 | 1,275 | 3,918 | <issue_start>username_0: If I send a batch of messages to a Topic, and read messages using a Subscription client, then I seem to receive messages *sequentially*, i.e. OnMessageAsync is fired for each message sent, however there is a noticeable (150+ millisecond) delay between each receive-event
**Sender**:
```
var fa... |
2018/03/18 | 3,519 | 12,743 | <issue_start>username_0: im new on this of unit tests, so im trying to code the unit test for my service, right now i have this class
```
package com.praxis.topics.service;
import com.praxis.topics.exception.EntityNotFoundException;
import com.praxis.topics.model.Topic;
import com.praxis.topics.model.enums.Status;
im... |
2018/03/18 | 785 | 2,410 | <issue_start>username_0: How do i set a maximum number so that a certain variable cannot exceed it's limit in my code, the player can repeatedly go to heal therefore their health becomes more than their maximum HP
```
public class HEAL {
public static int maxhp = 25;
public static int hp = 10;
public sta... |
2018/03/18 | 2,282 | 6,795 | <issue_start>username_0: I would like my prompt to show a cross (✘) when the previous command fails. I use the following code:
```
export PROMPT=$'%(?..✘\n)\n› '
```
This gives me the following output:
```
› echo Hello
Hello
› asjdfiasdf
zsh: command not found: asjdfiasdf
✘
›
✘
```
I would like to modify the p... |
2018/03/18 | 792 | 3,242 | <issue_start>username_0: I am using [firebaseUI for authentication](https://github.com/firebase/FirebaseUI-Android). it essentially opens a a external activity and logs the user into firebase and sends the developer a call back in onActivityResult. It works great the problem is i need to know if the user is a new signu... |
2018/03/18 | 1,316 | 4,759 | <issue_start>username_0: The code below is simple word count. the file generated by the programme is like
```
key-value:
hello 5
world 10
good 4
morning 10
nice 5
```
But my goal is to count the number of words. The result should be 5, does it mean I need to count the number of keys? If so, how can I count the numb... |
2018/03/18 | 822 | 3,078 | <issue_start>username_0: I have a javascript function like this which is used with Select2.
```
function formatResult(item) {
var markup = '\
\
\
\
\
' + item.FirstName + ' ' + item.LastName + '\
' + item.Title + '\
\
';
return markup;
}
```
... |
2018/03/18 | 1,460 | 5,146 | <issue_start>username_0: I uninstalled a previous version of android and just have install version3.0.1 I created a new application in android studio scratch I have not modified any code but when I try to build the project I get the following errors
```
Error:resource style/Theme.AppCompat.Light.DarkActionBar (aka co... |
2018/03/18 | 790 | 3,026 | <issue_start>username_0: The purpose is to change color of all characters in #text one by one, I made a loop:
```
function myFunction() {
var letters = document.getElementById('text');
for (var i = 0; i < letters.innerHTML.length; i++) {
//only change the one you want to
let... |
2018/03/18 | 439 | 1,550 | <issue_start>username_0: I am using SQL Server.
This query:
```
SELECT 3/0 AS X
```
returns an error, as expected:
>
> Msg 8134, Level 16, State 1, Line 1
>
> Divide by zero error encountered.
>
>
>
But `IF EXISTS` treats X as a row that exists. This query:
```
IF EXISTS (SELECT 3/0 AS X)
PRINT 'S... |
2018/03/18 | 901 | 3,751 | <issue_start>username_0: I'm incredibly new to C#, so please ignore my ignorance with this question. But I've searched online and can't find a solution that makes sense.
Basically, I have a list being stored in a CommonClass.CS, as below:
```
using System;
using System.Collections.Generic;
namespace NewParkingApp
{
... |
2018/03/18 | 1,195 | 5,227 | <issue_start>username_0: I am trying to build a Reminder App.
In this app, user will select a WiFi name which is saved on the phone. And when the user connects to that WiFi, Phone is going to vibrate. And after phone vibrates, service is going to die.
I have tried to write a Service to check the WiFi name in every 1 m... |
2018/03/18 | 321 | 1,066 | <issue_start>username_0: IS there a way to retrieve back my laravel app files after I typed
>
> git rm -r \*
>
>
>
I just want to delete the files that I just deleted in the directory with
>
> git rm data.txt
>
>
>
But all of them. Then I mistakenly typed
>
> git rm -r \*
>
>
>
Now most of my app d... |
2018/03/18 | 442 | 1,456 | <issue_start>username_0: Is it possible to get the `HWND` from a window by a process name?
The name of the window changes on every restart (random windowname), like this:
[](https://i.stack.imgur.com/3dCGG.png)
I just found something to get it by window name.<issue_comment... |
2018/03/18 | 951 | 3,415 | <issue_start>username_0: I want to navigate back from DrawerNav to Login. Using alert('Alert') inside the function is OK.
I have a StackNavigator with Login and DrawerNav
```
const MyStackNavigator = StackNavigator({
Login : { screen : Login },
DrawerNav : { screen : DrawerNav }
}, {
navigationOptions : { h... |
2018/03/18 | 316 | 1,113 | <issue_start>username_0: I have already used this in my webpack.config.js
```
use: [{
loader: 'babel-loader',
options: {
presets: ['es2015', 'es2016', 'react']
}
}]
```
But still I am getting error at the token **let** which I have used.
>
> I get that uglify doesn't unders... |
2018/03/18 | 252 | 984 | <issue_start>username_0: My question is quite simple I think : I'm using jQuery Mobile.
And I have on 3 pages exactly the same form for the same purpose.
I would like when I input something on any of theme it apply's on the others so when the user changes pages he will see his inputs.
I've been searching on the web al... |
2018/03/18 | 794 | 2,907 | <issue_start>username_0: I created a new folder Test.
run command: git init
then I setUp global configuration - mail and name
then I added:
>
> git remote add origin <https://bvcdata.visualstudio.com/_git/MyRepo>
>
> git push -u origin --all
>
>
>
and immediately get error:
>
> remote: TF401019: The Git ... |
2018/03/18 | 768 | 2,589 | <issue_start>username_0: How could I check the **platform** (`Android/iOS`) at runtime?
I’d like to differ my flutter application behaviour if I'm on `Android` rather than I'm on `iOS`.
Like this:
```
_openMap() async {
// Android
var url = 'geo:52.32,4.917';
if (/* i'm on iOS */) {
url = 'http://m... |
2018/03/18 | 784 | 2,647 | <issue_start>username_0: Currently working on a practice project where I am utilising the angular knowledge I have gathered and continue gathering through the online courses I am taking.
I am having a bit of trouble accessing a nested array. I saw an online tutorial and I have followed the basis of what was shown but ... |
2018/03/18 | 463 | 1,702 | <issue_start>username_0: I am trying to set up virtualenv using virtualenvwrapper for my Django project following this guide : [Django Tutorial](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/development_environment#Using_a_virtual_environment).
However, after installing and writing,
```
export WORK... |
2018/03/18 | 465 | 1,647 | <issue_start>username_0: I'm quite new to scikit learn, but wanted to try an interesting project.
I have longitude and latitudes for points in the UK, which I used to create cluster centers using scikit learns KMeans class. To visualise this data, rather than having the points as clusters, I wanted to instead draw bou... |
2018/03/18 | 961 | 3,145 | <issue_start>username_0: I've two collections, editors and books. Each book is associated with a parentId field to an editor and each book is has a score ( say 1, 2, 3 ) and a type ( sci-fi, romance, etc ...) .
Editors:
```
{ _id: 1, name: "editor1" }
{ _id: 2, name: "editor2" }
...
```
and the books
```
{ _id: 1,... |
2018/03/18 | 2,978 | 7,340 | <issue_start>username_0: I get the following error when running a c program:
```
*** Error in `./a.out': double free or corruption (!prev): 0x0000000000bb0470 ***
```
I believe this is due to fclose() being called in the program, It is a Lexical Analyzer for compilers in c language and it uses file pointers .
Here i... |
2018/03/18 | 910 | 2,590 | <issue_start>username_0: I am using the code
```
private static Attachment HeroCard() {
var hc = new HeroCard {
Images=new List {
new CardImage(@"C:\Users\.....\imgs\testImage.jpg") }
};
return hc.ToAttachment();
}
```
To load an image in a hero card's attachment. This works fine but if
I try to use the ... |
2018/03/18 | 1,214 | 5,329 | <issue_start>username_0: I play with cancelation token, and I would like to understand how this works. I have two async methods(in my example two but in theory I can have 100).
I want to cancel work in all async methods if one of them throws an exception.
My idea is to cancel token in exception where all methods are c... |
2018/03/18 | 1,187 | 4,928 | <issue_start>username_0: **This code sends the token in the email**
```
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task ForgotPassword(ForgotPasswordViewModel model)
{
if (ModelState.IsValid)
{
var user = await UserManager.FindByNameAsync(model.Email);
if (user == null || !(await UserManag... |
2018/03/18 | 1,021 | 3,674 | <issue_start>username_0: I am trying to run the following inside a powershell script:
```
ffmpeg.exe -hide_banner -i .\input.mkv -passlogfile input -c:v libvpx-vp9 -b:v 0 -crf 31 -tile-columns 6 -tile-rows 2 -threads 8 -pass 2 -speed 1 -frame-parallel 1 -row-mt 1 -c:a libopus -b:a 256000 -c:s copy -af aformat=channel_... |
2018/03/18 | 441 | 1,407 | <issue_start>username_0: All I want to do is add an image to the centre of my view in Swift Playgrounds. I have tried every solution on the internet in which none of them works. Where do I put my image file? What do I code to actually display it?
Here is an example of code that doesn't work:
```
let image = UIImage(... |
2018/03/18 | 1,377 | 4,574 | <issue_start>username_0: basically I have a form of four HTML checkboxes. If the one with value "one" is ticked I want to disable the one with value "two" and visa versa. The rest of the checkboxes operate as normal.
I've almost got it there but when I untick the box it doesn't re-enable the other again.
HTML
```
`... |
2018/03/18 | 1,738 | 5,836 | <issue_start>username_0: I'm using the extensions news and eventnews, so if have two different "types" of news now.
The news extension comes with the fields related and related\_from.
I want to have also fields related\_event and related\_event\_from.
The original related fields should store relations to news which ... |
2018/03/18 | 1,102 | 3,734 | <issue_start>username_0: I have a list of generic objects with some attributes and one of them it is a Set (treeSet) of Integers.
```
class GenericObject{
Set orderNumbers = new TreeSet<>();
Other attributes...
}
```
I want to order this list of generic objects comparing the Set... example:
My actual List list... |
2018/03/18 | 1,055 | 3,227 | <issue_start>username_0: Im trying to assign values from stdin (that I get using `char *gets(char *str)`) in the `while` loop but it doesn't seem to work. I have seven `automobile` struct` and I want that at every iteration the variable I'm triyng to fill with the input changes form a1.marca to a2.marca. I tried this s... |
2018/03/18 | 797 | 2,510 | <issue_start>username_0: I upload 12 image to imgur every half hour.
But meet this issue.
>
> Imgur ERROR message: {'exception': [], 'code': 429, 'type':
> 'ImgurException', 'message': 'You are uploading too fast. Please wait
> -0 more minutes.'}
>
>
>
I don't understand why is -0 minutes. I guess I reach my r... |
2018/03/18 | 1,818 | 3,917 | <issue_start>username_0: I have the following X and y matrices:
[](https://i.stack.imgur.com/8sKrW.png)
for which I want to calculate the best value for theta for a linear regression equation using the normal equation approach with:
theta = inv(X^T ... |
2018/03/18 | 6,730 | 16,564 | <issue_start>username_0: This seems a stupid question, and I have been looking around in the forum for a similar question, but I still don't understand.
I have to select the `NAME` of the employee with the minimum wage for his work

Below is my tabl... |
2018/03/18 | 8,665 | 24,508 | <issue_start>username_0: [enter image description here](https://i.stack.imgur.com/Vlloa.png)In my application I have allowed my users to save their details into the firebase database
I was then trying to allow the users to view their details in a ListView.
```
package com.example.aaron.inthehole;
import android.... |
2018/03/18 | 331 | 1,221 | <issue_start>username_0: I always use a Mac at work and build my Spring and Spring Boot apps using command line and using maven installed. So normally I write:
```
mvn clean install
```
Now I was using my girlfriend Windows PC and I don't want to install maven on it. My idea was to use the maven wrapper provided by ... |
2018/03/18 | 302 | 981 | <issue_start>username_0: I am getting the error `tmpl() is not a function` in my jQuery 3.3.1 project. According to [this page](http://stephenwalther.com/archive/2010/11/30/an-introduction-to-jquery-templates), templates should be part of the core, after version 1.5.
This is my HTML code:
```
<tr>
<td>${title}</td... |
2018/03/18 | 1,512 | 6,374 | <issue_start>username_0: I am thinking about building a system that requires Actors to create a subscription to an Azure Service Bus topic with a filter specific to the Actor instance. My question is, if the Actor (that has the subscription to the Topic) has been deactivated in Service Fabric will it be (re-)activated ... |
2018/03/18 | 916 | 3,307 | <issue_start>username_0: I have a controller action method in .NET Web API where at the beginning of method there's a log statement that simply logs **Started** which means that the execution has started.
Then, just before returning the response, there's another log statement that logs **Finished** which means that e... |
2018/03/18 | 990 | 3,388 | <issue_start>username_0: When running `mvn verify` I am getting below message:
[](https://i.stack.imgur.com/gJljM.png)
I already put the `log4j2.xml` under `src/test/resources` (but not in `src/main/resources` because I do not want it to ship with ac... |
2018/03/18 | 316 | 979 | <issue_start>username_0: In Python, how can I create a program that calculates the number molecules in a wet piece of water?<issue_comment>username_1: You can use `input` to request a year, the use `str.format` to create a date string
```
def get_year():
year = input('Enter a year: ')
return '1/1/{}'.format(ye... |
2018/03/18 | 573 | 1,820 | <issue_start>username_0: I want to store two different sorting expressions into list and then want to execute it using orderBy linq.
I have following code.
```
class Product
{
public int Id { get; set; }
public String Name {get; set;}
}
List GetSortExpressions() {
Expression> idSortExpression= p => p.... |
2018/03/18 | 2,542 | 9,391 | <issue_start>username_0: I am beginner at Swift and a student.
I want to pop up detailed view when the GMSMarker is tapped. However when I tap GMSMarker, infoView will be called and then, infoView tapped, detailed view shows up on this code. How do I modify this? Isn't it possible to go straight to detailed view from ... |
2018/03/18 | 444 | 1,433 | <issue_start>username_0: I want to use the Use() function of the Gorilla Mux package, but I cannot get it to work. It says: `r.Use undefined (type *mux.Router has no field or method Use)`. I used almot the identitcal example from the documentation. My code looks like this.
```
package main
import (
"net/http"
... |
2018/03/18 | 558 | 2,043 | <issue_start>username_0: I am trying to connect the firestore db to my android application. I followed instructions but I can not create and instance of a Firestore db because "FirebaseFirestore" symbol can not resolved error pops up.
Here is my dependencies at build gradle (app) file:
```
dependencies {
impleme... |
2018/03/18 | 1,351 | 2,580 | <issue_start>username_0: I have a strings like the one as follows:
```
-9.853418333333334 35.020405 0.0 0.0;-9.854273333333333 35.02038 0.0 0.0;-9.85452 35.01970166666667 0.0 0.0;-9.854205 35.019618333333334 0.0 0.0;-9.853418333333334 35.020405 0.0 0.0;
```
and I want use a regular expression to match the semicolon ... |
2018/03/18 | 761 | 1,885 | <issue_start>username_0: I'm building an art gallery with woocommerce.
each product has a limited number of prints (for example: 100).
I'm looking for a way of showing in the product title, the number of the current print based of the number of prints already sold, so for example if 20 prints where sold, the product na... |
2018/03/18 | 792 | 2,456 | <issue_start>username_0: I have two variable. both have some value like.
```js
var position = "340px";
var end_position = "4px";
var final = position + end_position;
//result comes NAN
// sometime it return 340px4px
// i want 344px
```
how do i add these value to get desirable result.
Help will be appreciated.<... |
2018/03/18 | 1,240 | 4,740 | <issue_start>username_0: I have a GUI made using javax.swing and java.awt, the request focus was working on keeping the text field in focus, so that a user can just start with a keyboard. I then added buttons for each integer 0-9, aswell as a clear field button. However the focus now always starts on a button.
The fo... |
2018/03/18 | 1,846 | 6,919 | <issue_start>username_0: I have a AST of elementary math arithmetic expressions:
```
data Expr = Constant Int
| Variable String
| Add Expr Expr
| Multiply Expr Expr
deriving (Show)
```
I also have a really simple function which simplify given expression:
```
simplify :: Expr ... |
2018/03/18 | 470 | 1,561 | <issue_start>username_0: When performing a $lookup on my schemas, it always return an empty array. What am I doing wrong?
**Result Collection**
```
const resultSchema = new mongoose.Schema({
trial: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Trial',
required: true
}
});
```
---
**Trial Collectio... |
2018/03/18 | 766 | 2,606 | <issue_start>username_0: Pretty new to Optional/Java8 usage and I had a doubt regarding its usage.
I have a function in my API which returns a String which can be null or empty. Its similar to finding the id in email like: <EMAIL> -> abc is o/p.
Now one way of doing this was:
```
public Optional getUser(final String ... |
2018/03/18 | 1,091 | 3,592 | <issue_start>username_0: I have two tags, the first one is to select the brand and the second one is to select the product.
My question/problem is that I want to tell php to echo inside the second select tag. The `echo`ed option needs to have the same `brand_name` as the selected option from the first tag.
What I nee... |
2018/03/18 | 592 | 1,925 | <issue_start>username_0: This is a reliable way to get the host url in both SSR and CSR:
```
let host = context.req ? context.req.headers.host : window.location.origin
```
But where to put this so all compoments can access the host? It should be loaded once per page and work with both SSR and CSR.<issue_comment>user... |
2018/03/18 | 877 | 3,516 | <issue_start>username_0: I've just encountered this approach for the first time: using methods which return self-references rather than overloading the constructor. Consider Selenium's [FluentWait](https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/support/ui/FluentWait.html)'s sample usage:
```
... |
2018/03/18 | 606 | 2,019 | <issue_start>username_0: This question pertains to C in Visual Studio (Community 2015) on Windows 10.
I can't seem to create an array with a const size - the below code causes an "expected constant expression" error that prevents build. It's a wchar\_t array here with a size\_t size, but I see the same behavior for ch... |
2018/03/18 | 923 | 3,392 | <issue_start>username_0: It is not working. I tried everything. Nothing works. `state.params` is simply not there if you make an advanced app.
I have this problem with the react "navigation". It says in the manual that the params object should be there <https://reactnavigation.org/docs/navigation-prop.html#state-the-... |
2018/03/18 | 621 | 2,281 | <issue_start>username_0: I am new to React and sorry for my English.
When I pass data from Child to parent component and click on another button it doesn't render.
as you can see in my comment setState creates an infinite loop stopping the option to update the value.
I have tried different ways to solve the problem ... |
2018/03/18 | 316 | 1,192 | <issue_start>username_0: It this possible? If so, I can't seem to locate any documentation around it.<issue_comment>username_1: You can do that to a limited amount by using a `THREE.ShadowMaterial` for the objects receiving the shadow. You might need to have a separate renderpass for shadow-rendering though. See here f... |
2018/03/18 | 1,681 | 4,888 | <issue_start>username_0: In my code, its supposed to be a magic 8 ball that is rigged. Pressing A should show "Yes!", pressing B should show "No."
But every time, it shows "Yes!" without any buttons being pressed.
```
from microbit import *
import random
frameq = Image("00000:""00000:""00900:""00000:""00000")
framew ... |
2018/03/18 | 513 | 2,240 | <issue_start>username_0: One of the advantage of Github Search v4 (GraphQL) over v3 is that it can selectively pick the fields that we want, instead of always getting them all. However, the problem I'm facing now is how to get certain fields.
I tried the online help but it is more convolution to me than helpful. Till... |
2018/03/18 | 436 | 1,940 | <issue_start>username_0: I have a static website on html and css, i add Fancybox code and works fine but recently update my website too HTTPS and Fancybox stop working.
Any idea what caused this problem?
Thanks<issue_comment>username_1: Short Answer: No, by design.
GraphQL was designed to have the client expli... |
2018/03/18 | 563 | 2,407 | <issue_start>username_0: I have a class which is to be extended by various sub classes. Each sub class doesn't need to reimplement the class methods, but only the declaration to infer proper type check.
As an example:
```
class QueryBuilder {
insert(data: T): string {
return '';
}
}
class User extends QueryBu... |
2018/03/18 | 2,588 | 8,654 | <issue_start>username_0: I have two files which are combined under 600 bytes (.6kb) as below.
So how is it that my app.bundle.js is so large (987kb) and more importantly how does one manage the size of it?
src file index.js
```
import _ from 'lodash';
import printMe from './print.js';
function component() {
v... |
2018/03/18 | 1,337 | 4,495 | <issue_start>username_0: I've created some templates in Django, and I want to translate them to work in ReactJS. The thing that I'm struggling with the most is the regroup function. There's a number of ways I've thought of approaching it, but I think the easiest is probably to do it within the component. All I've manag... |
2018/03/18 | 1,842 | 6,130 | <issue_start>username_0: I'm trying to play a sound by looping an array and split an array into each array, and then using switch case to detect what's in the array.
function keeper() {
```
number2 = get.num;
sNumber = number2.toString();
output = [];
for ( i = 0, len = sNumber.length; i < len; i ++) {
output.pu... |
2018/03/18 | 635 | 2,604 | <issue_start>username_0: I want to know when, or how often should a Logging class flush its stream - and why? Should it flush after every log, or wait for the stream buffer to fill and then flush, or is it somewhere in between?
To further illustrate my question:
My logging class holds a reference to some `std::ostrea... |
2018/03/18 | 750 | 2,741 | <issue_start>username_0: A user can add some text to a textarea. Every 60 seconds the text get saved into the database.
I need a message that show "Text is saved" for 3 seconds and hide again. The interval should be 60 seconds. The message should be display above the textarea but only when there is text in the textar... |
2018/03/18 | 704 | 2,554 | <issue_start>username_0: Say I have a form named `myform` with an input field named `myinput`. By default, symfony will generate HTML widget like:
```
```
This doesn't work with my current javascripts and I need to get the following instead:
```
```
I've searched quite a bit and found 2 ways to achieve this:
* r... |
2018/03/18 | 652 | 2,367 | <issue_start>username_0: I would like to protect some endpoints in my express app, I want to create something simple to manage if my app became a big app...now I'm doing something like this:
```
setProtected(router) {
const self = this;
router.use(this.auth);
...
}
setPublic(router) {
const self = thi... |
2018/03/18 | 3,912 | 12,303 | <issue_start>username_0: I'm try to install modules on Windows 10 using npm 5.6.0. When I enter npm install I get:
```
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\xiaooming\Desktop\app\node_modules\node-gyp\lib\configure.js:336:16)
gyp... |
2018/03/18 | 1,156 | 4,463 | <issue_start>username_0: Update: it is a Google Play Service issue, reported internally [here](https://github.com/apache/cordova-plugin-geolocation) and it will be fixed from version 13.4.0
We use the [cordova gelocation plugin](https://github.com/apache/cordova-plugin-geolocation) and the method `navigator.geolocatio... |
2018/03/18 | 585 | 2,065 | <issue_start>username_0: Would anybody like to explain why this code is incorrect for template functions but works well for ordinary function. For instance, if we replace `std::copy` with non-template functions, no problem.
How to change the code and make it valid for both template and non-template functions?
```
aut... |
2018/03/18 | 1,463 | 5,508 | <issue_start>username_0: I'm very new at coding, and I'm trying to create a shop list with items and prices on it.
That is, once typed in all the items, the function should calculate the sum and stop the moment you exceed the budget.
So I wrote something like:
```
def shoplist():
list={"apple":30, "orange":20, "m... |
2018/03/18 | 1,043 | 4,678 | <issue_start>username_0: So I've been trying to implement oAuth2 in a simple Spring MVC app.
In the guide I was following, in their `AuthorizationServerConfigurerAdapter` they `@Autowired` an `AuthenticationManager`. They used Spring Boot version 1.5.2.
I wanted to use Spring Boot 2.0.0 as this is the latest version ... |
2018/03/18 | 569 | 1,508 | <issue_start>username_0: I need a SQL statement where it first sorts by a interval of 1000 `Hours` steps and after that sorts the `Points` in DESC order.
I cant figure out how to use `Case` or `Between`/`case` in this example.
current result with
`SELECT * FROM CurrencyUser ORDER BY Hours DESC, Points DESC LIMIT 6`
... |
2018/03/18 | 457 | 1,537 | <issue_start>username_0: Assume type of 'a' is Vector3d and I wonder what's the type of 1-a.array(). I have this doubt because `a.cwiseProduct(b)` works but `(1-a.array()).cwiseProduct(b)` result in compilation error. What's the right way to write code like `(1-a.array()).cwiseProduct(b)`?
```
int main()
{
Vect... |
2018/03/18 | 254 | 830 | <issue_start>username_0: I would like some help solving the error in the following google script code.
Error given is "Missing ; before statement. (line 1, file "Code")"
```
Function onEdit(event) {
var sheet = event.source.getActiveSheet();
var editedCell = sheet.getActiveCell();
var columnToSortBy = 13;
va... |
2018/03/18 | 977 | 4,101 | <issue_start>username_0: React native noob here ,
I wanna know if it's possible to use the FullTextSearch feature of sqlite in react, if so , tell me where i can learn more about it .
Thanks !<issue_comment>username_1: Use **Realm Database for React Native**,
Realm is an object-oriented database. OO model makes it 10... |