date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/27 | 422 | 1,700 | <issue_start>username_0: I have an instance with AmazonEC2RoleforSSM role. I want to run ansible task in this machine which commissions ec2 instances, without setting AWS\_ACCESS\_KEY\_ID and AWS\_SECRET\_ACCESS\_KEY.
This doesn't work as expected, it always needs to set AWS\_ACCESS\_KEY\_ID and AWS\_SECRET\_ACCESS\_... |
2018/02/27 | 1,130 | 4,448 | <issue_start>username_0: I'm just starting to learn more about the Node.js paradigm and finding it hard to grasp basic concepts. I'm familiar with front-end tools (HTML, CSS, JS) and have been using PHP with Apache server and mySQL db to deploy websites until now.
It seems to be that node is it's own server, and I wou... |
2018/02/27 | 779 | 2,353 | <issue_start>username_0: I have a script written in Batch code. Basically the code is to copy all .htm in a folder to another folder. My problem is that some of the folders are having empty spaces and I need to exclude some of the folders as well. I'm using robocopy to do so.
For eg.
```
@echo off
robocopy.exe ^
Z:\x... |
2018/02/27 | 4,051 | 12,267 | <issue_start>username_0: If you try this:
```
spark-submit \
--packages "org.apache.hadoop:hadoop-aws:2.7.4" \
pyspark-example.py
```
You will get a large amount of noise output as `spark-submit` resolves all the dependencies of the `hadoop-aws` package and downloads them. You get slightly less output if the pac... |
2018/02/27 | 751 | 1,434 | <issue_start>username_0: I am trying to average on columns after grouping them based on the the column names. An example dataframe is generated below. All the column names having same string preceding `_` needs to be averaged together. The output will be a 10x3 column.
```
from pandas import DataFrame
import numpy a... |
2018/02/27 | 496 | 1,398 | <issue_start>username_0: I have been receiving a "This app is not allowed to query for scheme fb" error when trying to open Facebook from my app.
Apple as of 9.0 apparently requires a plist entry in `LSApplication` for url schemes in order to implement the canOpenURL method. Running IOS10.3, I don't see the `LSapplica... |
2018/02/27 | 473 | 2,069 | <issue_start>username_0: I am getting a checkmarx HIGH vulnerability issue SQL Injection.
requirement is user can insert any SQL query in the text area, on click on submit this query passes through request payload and server side it is being hold using request body annotation to pass across the layer.
vulnerability ... |
2018/02/27 | 2,782 | 6,182 | <issue_start>username_0: I have a dataframe that has some start and end dates for records:
```
import pandas as pd
df = pd.DataFrame({'Key': ['A', 'A', 'A', 'A', 'B', 'B', 'B', 'B' ],
'StartDate': ['01/01/2015', '01/01/2016', '06/01/2016','10/01/2017',
'01/01/2015', '01/01/20... |
2018/02/27 | 1,568 | 4,807 | <issue_start>username_0: I have an element with a 1px border and a child element that has a background color causing the parent element's border to disappear when I zoom out my browser's zoom to 70-80%.
I've noticed it happens in Chrome and IE11 on a PC but not in Chrome on my MacBook Pro.
Here's a screenshot of the... |
2018/02/27 | 1,680 | 5,400 | <issue_start>username_0: What I'm trying to do is make use of a function I have already created in a separate Javascript file. That file contains the following and we will call it scripttwo:
```
function assignLetterGrade(score)
{
var letterGrade;
if (score > 89)
letterGrade = 'A';
else if (score > 79)
... |
2018/02/27 | 319 | 983 | <issue_start>username_0: I have array id like this,
```
Array ( [0] => 1013 [1] => 1012 [2] => 1011 [3] => 1010 )
```
I want to update my table user by those id,
here my controller code
```
public function index()
{
$id = $this->input->post('check_list');
print_r($id); // just try to check output value
... |
2018/02/27 | 366 | 1,335 | <issue_start>username_0: I use ngx-datatable to create a table with rowDetail in my Angular5 app.
[Example code here](https://stackblitz.com/edit/angular-yvwhus?file=app%2Fapp.component.ts)
There is a button call "<NAME>" , after clicking , the Austin's age will change and update table through `this.rows = [...this.r... |
2018/02/27 | 777 | 2,374 | <issue_start>username_0: I have a simple object with a nested array of objects
```
public class Product {
public Guid Id { get; set; } = Guid.NewGuid();
public string Name { get; set; }
public ProductTag[] Tags {get; set;} = new ProductTag[0];
}
public class ProductTag {
public string TagName {get; s... |
2018/02/27 | 1,086 | 3,521 | <issue_start>username_0: **Scenario**
I have a UTC date in string format and an associated offset number in minutes:
* Date: "2017-10-01T12:00:00.000Z"
* Offset: 360
The user's browser is in the Mountain Standard Time (-7) timezone. The date value was recorded from the Central Standard Time (-6) timezone, and was sa... |
2018/02/27 | 575 | 1,771 | <issue_start>username_0: Spark SQL provides a function `broadcast` to indicate that the dataset is smaller enough and should be broadcast
```
def broadcast[T](df: Dataset[T]): Dataset[T] = {
Dataset[T](df.sparkSession,
ResolvedHint(df.logicalPlan, HintInfo(broadcast = true)))(df.exprEnc)
}
```
I know I could... |
2018/02/27 | 750 | 2,691 | <issue_start>username_0: My app use NODE\_ENV for deciding which api server should request to.
```
NODE_ENV="production" => https://api.***/
NODE_ENV="staging" => https://api.staging-***/
NODE_ENV="development" => http://localhost:3000/
```
I want to build staging bundle with mode="production" but keep NODE\_ENV="st... |
2018/02/27 | 769 | 2,631 | <issue_start>username_0: I have hex string call sumString = "20 54 48 41 4e 4b 09 79 6f 75 09" I want to convert the string of ascii characters. Here is my code:
```
string sub;
std::stringstream ss;
int dec;
char ch;
for(size_t t = 0; t < sumString.size(); t++){
ss << sumString;
ss >> hex >> dec;
ch = (ch... |
2018/02/27 | 1,083 | 3,915 | <issue_start>username_0: I am trying to login into a CI site from a WP sub-domain, by calling an API end-point with the user and password.
The problem is that even if the API returns success with a valid user and password, when I am redirected to the CI site I am not detected as logged in because apparently there is no... |
2018/02/27 | 607 | 2,069 | <issue_start>username_0: After I reinstalled IIS for some other reason, I'm now unable to debug asp.net applications in visual studio using the 'local IIS' option.
Before reinstalling IIS, everything was working fine.
This is the error I'm getting.
unable to start debugging on the web server. the remote server returne... |
2018/02/27 | 365 | 1,443 | <issue_start>username_0: I used to do it like this:
TouchAction t = new TouchAction (driver);
But now is asking me for generics!
Also some methods deprecated, could some one give me an example of how to instantiate TouchAction class in appium with java please?<issue_comment>username_1: You can just simply call the co... |
2018/02/27 | 465 | 1,740 | <issue_start>username_0: Getting no bundle error while trying to run react-native app on iOS device.
I created a sample app which works on the simulator, but when i try to run on the device i get the No Bundle Error.
[NO Bundle URL](https://i.stack.imgur.com/Dsxnq.jpg)
i tried various options like,
1. Editing the ... |
2018/02/27 | 393 | 1,472 | <issue_start>username_0: I've deployed my laravel application to the shared hosting but it cant find the view. Any step that I forgot?
This is the url : [production site](http://vgo2.iopenwise.com/)<issue_comment>username_1: I solved this problem by adding `127.0.0.1 localhost` to `/etc/hosts`.
Please check if you ha... |
2018/02/27 | 2,360 | 8,513 | <issue_start>username_0: ```
def transfer():
print ("You've chosen to transfer money.")
transAccFrom = int(input("From which account you want to transfer?\n1.Jack 2.Smith 3.Suzy 4.Craig 5.Vic :"))
transMoney = float(input("How much you want to tranfer?"))
transAccTo = int(input("To which account you wan... |
2018/02/27 | 2,586 | 7,363 | <issue_start>username_0: I have this nested python dictionary,
```
poke_dic = {
'Basic': {'Fire': ['Cyndaquil', 'Charmander', 'Torchic'],
'Grass': ['Chikorita', 'Bulbasaur', 'Treecko'],
'Water': ['Totodile', 'Squirtle', 'Mudkip']},
'Evo1': {'Fire': ['Quilava', 'Chameleon', 'C... |
2018/02/27 | 537 | 2,013 | <issue_start>username_0: I am currently learning about how content management system can be used with laravel and tried to install pyrocms along with Laravel.
I've tried many ways that I've found but none of them work for me.
I've visited official documentation as well <https://pyrocms.com/documentation/pyrocms/3.4/i... |
2018/02/27 | 493 | 1,941 | <issue_start>username_0: I am new to the web serivce programming in IBM i, based on my initial reseach I found couple of ways to achieve it.
1. Using Integrated Web Service platform comes with IBM i (<http://hostname:2001/HTTPAdmin>) but it needs profile with \*IOSYSCFG authority
2. Using just CGI programming using A... |
2018/02/27 | 502 | 2,091 | <issue_start>username_0: I have custom control that takes a list of object and present them in sort of listview.
```
public static readonly BindableProperty ItemsSourceProperty = BindableProperty.Create(nameof(ItemsSource), typeof(IEnumerable), typeof(MyCustomControl), null);
public IEnumerable ItemsSource
{
get { ... |
2018/02/27 | 569 | 2,366 | <issue_start>username_0: This is my custom-control code
```
public partial class FlatImageButton : ContentControl
{
public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register("IsActive", typeof(bool?), typeof(FlatImageButton), new FrameworkPropertyMetadata(false, new PropertyChangedCa... |
2018/02/27 | 330 | 1,165 | <issue_start>username_0: Good Day! I need a way to query the number of members per specific age range
my table looks like this
```
member | Age
1 | 15
2 | 15
3 | 17
4 | 18
5 | 18
6 | 18
7 | 20
```
I need to determine the number of members per specific age, but the thing is, ... |
2018/02/27 | 1,618 | 5,133 | <issue_start>username_0: I'm a newby of JavaScript and just met this question. Can't figure it out by googling and searching on stackoverflow. Code snippet is as following:
```js
var a = { n : 1};
var b = a;
a.x = a = {n: 2};
console.log(a.x);
console.log(b.x);
```
According to my current knowledge, ... |
2018/02/27 | 1,750 | 5,794 | <issue_start>username_0: I have a model "Post" which belongs\_to "Group." The url is like this .../groups/26/posts/1 everything was working fine until I needed to add a user name to each post so I added a new foreign key to the Posts table for "User" and made the Post model belongs\_to :user, and in the User model adde... |
2018/02/27 | 1,551 | 5,240 | <issue_start>username_0: what i previously done is that I used `router.replace`
```
componentDidUpdate(prevProps) {
const { searchParams, category, keywords } = this.props;
const { router } = this.context;
router.replace({
pathname: router.location.pathname,
state: { searchParams, category, ke... |
2018/02/27 | 476 | 1,963 | <issue_start>username_0: I do not have much experience in handling git or github repository. This is only my second project I am using it in and suddenly ran into a problem. So I request not to downvote although it might look a stupid question.
I have two local branches off master which I pushed to github remote repos... |
2018/02/27 | 861 | 2,429 | <issue_start>username_0: I want to order like this:
```
|-------| |--------| |-------| |-------| |---------|
1. item 4. item 7. item 10. item 13. item
2. item 5. item 8. item 11. item 14. item
3. item 6. item 9. item 12. item 15. item
```
Diving row is not my problem. Just numbering serial... |
2018/02/27 | 945 | 3,533 | <issue_start>username_0: My app creates a PDF file, saves it in `context.getFilesDir()`, and passes a `URI` using a content provider to launch an email `Intent`. My implementation works for every email app **except** Gmail.
What happens is the new email intent is launched and the PDF is attached, correct name and size... |
2018/02/27 | 568 | 2,076 | <issue_start>username_0: HI noob question here but im learning Haskell
I'm trying to understand how to iterate 0 through until n and return false if the iteration contains 5 other wise return true
here is my method
```
Fivecount :: Integral a => a -> Bool
isfivecount z = False
```
want something like this in J... |
2018/02/27 | 2,860 | 4,633 | <issue_start>username_0: I am using R to process a `data.frame`; one column has a certain mixture of letters and numbers, I want to put a comma between a pattern of characters:
Input:
```
arr 11p15.5(2097357-2432381)x311p15.4(3424982-4083881)x3 pat.nuc ish11p15.5(RP11-558K10x3
arr 11p15.5(2097357-2432381)x211p15.4... |
2018/02/27 | 1,782 | 4,906 | <issue_start>username_0: I'm writing a function that should take an integer `w` and a string `text` and return a string where the following are true
1) lines are of length w (the last line may be shorter as needed)
2) if a word is bigger than a line, the word will be wrapped to the next line
3) if there are consecut... |
2018/02/27 | 595 | 1,566 | <issue_start>username_0: I have a dictionary where the keys are tuples. I'm looking for a comprehension list to decompose the tuples in a list
```
dicto={(1,2):1, (3,4):1, (5,6):3}
expected outcome: [1,2,3,4,5,6] (order doesnt matter)
```
The best I came up so far is :
```
[x for x, y in dicto.keys()] ### [x, y for... |
2018/02/27 | 607 | 1,648 | <issue_start>username_0: I have a list like this:
```
$ mylist = [(u'nr',,'string1'),(u'fm',,'string2'),(u'nr',,'string3')]
```
I would like to get the unique values of `nr`and `fm` from that list (ie, no repeat ones for that first element).
I've been looking at getting unique lists using `set()` and such, and I tr... |
2018/02/27 | 728 | 2,291 | <issue_start>username_0: I have a feeling this question has been asked multiple times but I am having issues with my code. Sure it works great without a fade effect but I can’t seem to get a fade effect to work. I honestly don’t know exactly where I should post the `.fadein` and `.fadeout` tags. Here is my code before ... |
2018/02/27 | 480 | 1,730 | <issue_start>username_0: I'm new to React Native. I think this issue is probably trivial but all of the tutorials I have followed all lead to errors.
I have basic List Item that contains an onPress function that sets props to be passed to a new screen like this:
```
this.onPress()}
/>
```
My onPress function look... |
2018/02/27 | 825 | 2,753 | <issue_start>username_0: I'm new to Cython and I'm trying to compile Cython from [this project](https://github.com/altugkarakurt/OCIMP) without success.
With this setup.py,
```
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
from distutils.extension import Extension
sources_list = ... |
2018/02/27 | 1,826 | 6,775 | <issue_start>username_0: I have an mobile app with user pool (username & password). The app works fine with aws-amplify sdk. But, wanted to move the code out to Lambdas. So, I have written the following Lambda using Boto3.
Here is Lambda:
```
import boto3
def lambda_handler(event, context):
client = boto3.client... |
2018/02/27 | 242 | 742 | <issue_start>username_0: So I am working on a bot for discord and I need to have a new randomly generated number each time the function is called. How can I do so? I tried this but it doesn't work, I just get an error saying "object has no attribute 'randint'"
```
@bot.command()
async def test(*, message: str=None):
... |
2018/02/27 | 1,027 | 3,392 | <issue_start>username_0: I have a question about the structure of blueprint
My flask structure looks like
```
app/
main/
__init__.py
mail.py
__init.py
manage.py
config.py
```
I register blueprint in \_\_init\_\_.py, for `app/__init__.py`
```
from flask_mail import Mail
from flask import Fla... |
2018/02/27 | 1,031 | 3,394 | <issue_start>username_0: My switch case is supposed to be within the while loop, but it is having complications. I want the loop to end when the user inputs 1,2, or 3, while continuing to loop if any other value.
```
#include
using namespace std;
int main() {
int k = 0;
enum CompanyRole {EXECUTIVE = 1, MANAGER = 2,... |
2018/02/27 | 925 | 3,397 | <issue_start>username_0: I have a React-Native project with redux.
I perform some axios calls, and basically, the app works fine.
But, there is one thing that is not right.
I put a console.log before the dispatch, and even the app loads and renders everything just fine, I see the console.log looping on and on in the co... |
2018/02/27 | 416 | 1,284 | <issue_start>username_0: This is my table 'ekko' and I need to get all rows where the difference between today's date and column aedat is greater than 65 days. How can I construct a hive query for the same? I use unix OS.
`id rfid aedat
---|-------|-------------|
1 | 3122 | 2017-12-08 |
2 | 3423 | 2017-12-27 |
3 | ... |
2018/02/27 | 2,533 | 10,105 | <issue_start>username_0: Im really new to javafx and i guess im missing some of the logic here. My class BankApplication contains instance variables Customer and SavingsAccount. I want to initialize those so my application will run, with the name of customer and the ID on the top, as well as the balance. So I want to c... |
2018/02/27 | 657 | 2,835 | <issue_start>username_0: I got following code but it gives error "Missing return in a function expected to return 'Int'"
so what is the right way to write this code to give different return value depends on different if condition?
```
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int... |
2018/02/27 | 614 | 2,426 | <issue_start>username_0: I am running Xcode 9.2 on 10.13.3 and just today ran into a problem with Xcode not recognizing Main.storyboard on an app that I am building. It worked on Friday and then today when I opened the app to work on it I get the following error:
>
> .../Base.lproj/Main.storyboard: Interface Builder ... |
2018/02/27 | 585 | 2,403 | <issue_start>username_0: I want to add a column on a table for the visibility. I like the standard YouTube approach, where an item can be public, private or unlisted. I've never done something like this before so I'm curious as to how others may have done it, and what the tradeoffs were for them, before I implement it ... |
2018/02/27 | 1,135 | 4,000 | <issue_start>username_0: I need to be able to read in a word from a file one at a time and then be able to sort the text into a struct to track how many times words have been repeated however whenever I try to point to a specific word in the file I'm getting the whole file value instead of the specific word I'm trying ... |
2018/02/27 | 4,719 | 11,681 | <issue_start>username_0: Suppose I have a Python array `a=[3, 5, 2, 7, 5, 3, 6, 8, 4]`. My goal is to iterate through this array 3 elements at a time returning the mean of the top 2 of the three elements.
Using the above array, during my iteration step, the first three elements are `[3, 5, 2]` and the mean of the top ... |
2018/02/27 | 602 | 2,288 | <issue_start>username_0: Just need a little help with a Powershell Script.
I have a last messagebox on my script. what i want to accomplish is bring the messagebox in front of all the windows.
cmdlet that i use is
$end=[system.Windows.Forms.Messagebox]::Show('StartUP Tool Progress Completed!','StartUP Warning')<is... |
2018/02/27 | 694 | 2,540 | <issue_start>username_0: I am trying to check a URL, to see if it has any matching terms from my array.
My code is:
```
function test_string_in_url () {
$the_url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$my_array = array(
'word1',
'word2',
'word3',
);
if (strpos( $the_url, $my_a... |
2018/02/27 | 516 | 1,905 | <issue_start>username_0: I was wondering if anyone knows the reason for [i-1] in the fourth line when you also have i++ in the second line? Thank you for any help! (It's from the book "JavaScript" by Vodnik and Gosselin.)
```
if (figureCount === 3) {
for (var i = 1; i < 4; i++) {
filename = "images/IMG_0" + photoOrde... |
2018/02/27 | 805 | 2,443 | <issue_start>username_0: I have the following list.
```
ID AllStatuses
1001 {failed|processing|success}
1002 {failed}
1003 {success|failed}
1004 {processing|success}
1005 {failed|processing}
```
My requirement is to display the most optimistic status alone. Like so
```
ID Best Status
1001 success
1002 ... |
2018/02/27 | 823 | 2,698 | <issue_start>username_0: I'm just a bit confused on how to make my items in a list see several characters as one. So far, the entire thing looks like:
```
classes=input("Enter your classes: " )
def printsched(classes):
for n in classes:
print(n)
return len(classes)
printsched(cl... |
2018/02/27 | 350 | 1,022 | <issue_start>username_0: I am looking for a regex that will match the first line, but not the second. This is what I have `/^github.com\/[^\\\n]+$/`
```
github.com/reggi
github.com/reggi/example
```
<https://regexr.com/3ld7o>
```js
var patternA = /^github.com\/[^\\\n]+$/
var patternB = /^github\.com\/.+/
var patt... |
2018/02/27 | 556 | 2,104 | <issue_start>username_0: I have my Angular 5 code working without ngrx effect. After adding effect and send HTTP request, I can not trigger reducer to be invoked by an action. My effect is this. This console log is getting hit with the correct http response.
```
@Injectable()
export class PropertyEffects {
@Effect({d... |
2018/02/27 | 368 | 1,268 | <issue_start>username_0: How do I search for a range of Strings,
I want to search userID
But userID may this time is "123",
next time is "zxvcvb",
so i can't use offsetBy
```
let userID = "12345"
let URL = "http://test/main/?Username=\(userID)#!/index.php"
let firstIndex = URL.index(of: "=")
let secondIndex = URL.i... |
2018/02/27 | 359 | 1,377 | <issue_start>username_0: Say I have two components **A-Component** and **B-Component**.Both of these contains some form-fields.When a text field is `focused` I would like to add a `css class` to its parent. I know its possible to add a focus event for the text field or by using a directive.
```
```
But rather than u... |
2018/02/27 | 368 | 1,363 | <issue_start>username_0: I'm trying to implement the jquery component [jquery.mentionsInput](https://podio.github.io/jquery-mentions-input/) on my laravel app.
Essentially I'll be using this so my users can `@` mention other users in comment sections of a thread.
However, I want the callback to only fetch users who ... |
2018/02/27 | 301 | 1,114 | <issue_start>username_0: With the `UNIQUE` constraint, I can make sure that no duplicate values are entered in a particular field on a table. Is there a method for allowing only certain number of duplicates? For example, if it were possible to limit the max duplicate values to `2`, for the field `animal`, I could have ... |
2018/02/27 | 410 | 1,376 | <issue_start>username_0: I'm trying to validate if a directory received as user input exists using the os module
This is how I'm accepting the input:
```
directory = input("Hi ! \n please type a directory, thanks !")
```
The idea is that I want to make sure the user will type an existing directory and nothing else<... |
2018/02/27 | 583 | 1,494 | <issue_start>username_0: Ive a scenario to find match index of two values in two columns. So based on this link [Click](https://spreadsheeto.com/index-match/) I tried this way for the following data.
```
Holidays Location Multiplier
26-01-2018 INDIA 2
01-05-2018 INDIA 2
15-06-2018 INDIA 2
15-08-2018 IN... |
2018/02/27 | 276 | 1,128 | <issue_start>username_0: I am capturing data from Outlook mail with user defined form fields.
However certain form fields especially with validation is not showing correct values
e.g. timeline field has validation as Receivedtime + estimate though mostly it shows correct value sometimes timeline field does not show a... |
2018/02/27 | 421 | 1,887 | <issue_start>username_0: I have a question on RESTful API - Why do we care about idempotent in distributed systems. Could you please let me know<issue_comment>username_1: A service is idempotent if you can make the same call multiple times and it produces the same end-result.
In distributed systems, when you call a ce... |
2018/02/27 | 115 | 402 | <issue_start>username_0: How to can I check a checkbox by default if some condition is met?
```
if ($php = "yes"){
// check.box is check
}
```<issue_comment>username_1: ```
php
$checked = "";
if ($php == "yes"){
$checked = "checked";
}
?
/>
```
Upvotes... |
2018/02/27 | 511 | 1,706 | <issue_start>username_0: I can't get ngClass working in my Angular 5 app, the class is always showing regardless of if the boolean variable that I am using to show it conditionally is true or false.
I have a component that shows rating stars:
```
export class RatingStarComponent {
@Input() max: number;
... |
2018/02/27 | 645 | 2,305 | <issue_start>username_0: I want to add text to a text document using JavaScript and PHP. What would be the best way to do this?<issue_comment>username_1: I don't think you can append to a text document unless you are writing server side code.
There are some possible workarounds mentioned in this post:
[Is it possible ... |
2018/02/27 | 617 | 1,937 | <issue_start>username_0: I am beginner in **Kotlin**. I am getting the following exception while doing following:
```
kotlinc sample.kt -include-runtime -d sample.jar
```
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> org/jetbrains/kotlin/preloading/Preloader : Unsupported major.minor
> ... |
2018/02/27 | 199 | 837 | <issue_start>username_0: I searched everywhere and can't seem to find anything on this. For example I want to have more then one `UITextField` on the same screen. If I tap on one and type in information and click return it does an action. If you tap in the second one and return the keyboard it does a different action.
... |
2018/02/27 | 761 | 2,742 | <issue_start>username_0: I have problem in scroll to particular div (id wise),it's works well in desktop but not working mobile devices below (768 px).
I used this code for scroll but it's not working well in mobile.
```
// Scroll based on devices width
if ($( window ).width() <= 768 ){
$('body').animate({
... |
2018/02/27 | 714 | 2,487 | <issue_start>username_0: I need to remove all the white spaces for lines which starting with a pattern in a file.
I don't want to loop through lines. Is there any simple and quick solution?
For example
Input file:
```
dafd
31,31, 31
0, 0,0
```
The output file need to be
```
dafd
31,31,31
0,0,0
```<issue_comme... |
2018/02/27 | 584 | 2,213 | <issue_start>username_0: I am trying to have separate routes but same component for add/edit forms in my react app like the below:
```
```
Now in the manageClient component, I parse the query params (I pass in a query string with client id in edit route), I render conditionally based on the query param passed.
The... |
2018/02/27 | 1,306 | 4,731 | <issue_start>username_0: I'm running into an issue getting responses from the twitter api (using npm package Twitter). In Chrome I am getting:
>
> Failed to load <https://api.twitter.com/1.1/search/tweets.json?q=node.js>: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin... |
2018/02/27 | 1,925 | 6,652 | <issue_start>username_0: So I am a second semester freshman in college. My teacher wants us to write a function that round a floating point number to the nearest hundredth. He said that we need to convert the floating point into an integer data type and then covert it back to a floating point. That's all he said. I hav... |
2018/02/27 | 2,140 | 7,283 | <issue_start>username_0: I have following code which reads user's uploaded file and displays it on the preview page, the expected input file is plain text but some user complains that they are getting following errors,
>
> data = fileObj.read(4194304) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python... |
2018/02/27 | 916 | 3,554 | <issue_start>username_0: I have a class like this:
```
class Example: UIView {
init(frame: CGRect) {
super.init(frame: frame);
let tap = UITapGestureRecognizer(target: self, action: #selector(dismiss(_:)));
self.addGestureRecognizer(tap)
self.isUserInteractionEnabled = true;
... |
2018/02/27 | 566 | 2,222 | <issue_start>username_0: How do I write a command as if a button is pressed there will be a specific sentence as an output to a label on an app.<issue_comment>username_1: You shouldn't need to create an ivar for the instance of `Example`. By calling `show(parent:)` you ended up adding it to the view hierarchy, which re... |
2018/02/27 | 856 | 3,220 | <issue_start>username_0: I'm trying to use fewer callbacks in my code, so I think in a solution using async/await, but this is not working, express send the render the view before the query is complete.
The results of queries are fine, but after render.
**node -v = 8.9.1**
**controller code:**
```
app.get('/admin',... |
2018/02/27 | 917 | 3,210 | <issue_start>username_0: I am confused by this function:
```
const today = ( d => new Date() )(new Date);
```
So I am not sure where to read about this and I am not sure what this is even called. So I apologize for the terrible question title. Anyways, I am confused as to what the `(new Date)` is doing at the end of... |
2018/02/27 | 579 | 2,380 | <issue_start>username_0: I am working on a internal app in `Hybris`. Like `HMC`. I have create an extension and added the required extensions in the `extensioninfo.xml`, but when I am trying to import a `bean` in those required extensions, I am seeing `class cannot be resolved`. I have cleaned the project. But I am una... |
2018/02/27 | 674 | 2,645 | <issue_start>username_0: I'm trying to create a link in view to insert data on table using view and controller
on view my code
```
= Html::a('Insert', ['view'], ['value' = 'insertdata' 'class' => 'btn btn-primary']) ?>
```
but I dont know how to refresh page and insert data to table
my data is
```
public funct... |
2018/02/27 | 636 | 2,315 | <issue_start>username_0: I am using a pretty popular jQuery counter plugin to add some more functionality to a site that I am building. The plugin runs great and I am not getting any errors but the plugin runs whenever you scroll down to it. The issue is I want it to run only once no matter how many times you scroll ov... |
2018/02/27 | 770 | 2,728 | <issue_start>username_0: I understand that this has been asked many times before but none of the solutions work for me.
Here is the screen grab of my device(android 6.0.1 samsung J210F):
[](https://i.stack.imgur.com/z60A7.png)
When I open localhost:80... |
2018/02/27 | 980 | 3,428 | <issue_start>username_0: Hello I know this is simple question but I don't get any solution in here. So I am going to ask.
I am using magento 1.9, and I want a product list with name and product Url of particular category. I tried a lot but I am not getting product name and product URL.
**Here is my query.**
```
$cat... |
2018/02/27 | 2,459 | 7,732 | <issue_start>username_0: Hey so I am new to webpack and I am trying to use it for a project using the Cesium js api. I am following their tutorial online to the T but for some reason when I run the command "npm run build" I get the following error without it executing properly.
```
Peris-MacBook-Pro:App peri$ npm run... |
2018/02/27 | 1,496 | 5,272 | <issue_start>username_0: How to export and import Azure function's "application settings" ? I have added keys and need to move to new function app. Kindly guide.<issue_comment>username_1: Currently, it is impossible. You could check this [feedback](https://feedback.azure.com/forums/169385-web-apps/suggestions/16830592-... |
2018/02/27 | 958 | 2,901 | <issue_start>username_0: I'm trying to write an efficient query like the following
>
> "Get all rows that are deleted and that have no other row with the same value that are not-deleted"
>
>
>
Example.
```
| id | val | deleted |
========================
| 1 | "foo" | 1
------------------------
| 2 | "bar... |
2018/02/27 | 967 | 3,137 | <issue_start>username_0: I have an foreground task which shows a notification bar and the purpose is to make this notification bar **unremovable**. The configuration of the notification is:
```
Notification notification = new NotificationCompat.Builder(this)
.setContentTitle("Notification")
... |
2018/02/27 | 4,417 | 13,365 | <issue_start>username_0: I wanted to check if a given `x` lies in the interval `[0,a-1]`.
As a lazy coder I wrote
```
x in range(a)
```
and (because that piece of code was in 4.5 nested loops) quickly run into performance issues. I tested it and indeed, it turns out runtime of `n in range(n)` lies in O(n), give or ... |
2018/02/27 | 1,007 | 3,255 | <issue_start>username_0: I want to add highlight annotation into pdf file by using PDFKit. And I use this below code to add it.
```
PDFPage* page = [self.pdfView.document pageAtIndex:0];
PDFAnnotation* annotation = [[PDFAnnotation alloc] initWithBounds:CGRectMake(206, 600, 60, 59) forType:PDFAnnotationSubtypeHighlight... |
2018/02/27 | 696 | 2,327 | <issue_start>username_0: Our professor assigned us a question :
Assume you are given a pointer to the head of an existing list (named head). The nodes of the linked-list are of type struct Node (as defined on display 13.7 on page 754). Write a for-loop to iterate through the list and print the data of every other eleme... |
2018/02/27 | 918 | 3,024 | <issue_start>username_0: I am currently in CS135 and I am stuck on my assignment. It ask of me to do any type of loop but I have to "pay the customer per month one cent". And every month payment doubles. Then give an output of the 64 months,the total amount paid, and the amount paid up to the given month. I am at a com... |
2018/02/27 | 1,053 | 4,018 | <issue_start>username_0: I've looked at other solutions because there were questions similar to mine but I couldn't find an answer. I'm not sure what to do here, I've tried multiple different ways. I'm pretty new to Angular.
**ERROR:**
books-search.component.ts:13 Uncaught TypeError: Cannot read property 'testService... |
2018/02/27 | 475 | 1,426 | <issue_start>username_0: Consider the following dictionary comprehension:
```
foo = ['super capital=BLUE', 'super foo=RED']
patternMap = {x.split("=")[0]:x.split("=")[1] for x in foo}
```
It is fairly concise, but I don't like the fact that I need to call `x.split('=')` twice. I tried the following but it just resul... |