date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/03 | 392 | 1,412 | <issue_start>username_0: I created a new `Xamarin Forms PCL` solution, and in debug mode I checked the `Enable ProGuard` option and I selected `Linking` comboxbox to `Sdk and User Assemblies`.
Now I run my application on android, after that it shows me an error in MainActivity.cs class and on line
```
LoadApplication... |
2018/03/03 | 388 | 1,349 | <issue_start>username_0: I am taking input from the user & updating it in a table. I directly execute the update query from C# code.
`[GoalsDesc]` is dynamically set with a string variable. The issue here is the user inputs single quotes `'` which crashes the update query.
```
UPDATE [dbo].[Goals]
SET [GoalsDesc] = ... |
2018/03/03 | 508 | 1,720 | <issue_start>username_0: I am trying to host 2 react apps on an NGINX server. My configuration is currently as follows:
```
server {
listen 80;
server_name www.domain.net;
location / {
root /var/www/portfolio_site/code/client/build;
try_files $uri /index.html;
}
location /json/ {
root /var/www/json-converter... |
2018/03/03 | 2,651 | 9,780 | <issue_start>username_0: Angular 2 - I have many pages in my application and where in each page I am calling the backend services. Here my query was how to create a common error-popup component where it will take error message and show the popup when ever it required my application. Can you please help to find the solu... |
2018/03/03 | 1,203 | 4,734 | <issue_start>username_0: I'm practicing the Observer Design Pattern using Java.
I have 2 types of Customers.
One is interested into the price while the other one by the availability.
I'm trying to refactor this following code :
```
public void setAvailable(boolean available) {
this.available = available;... |
2018/03/03 | 573 | 1,748 | <issue_start>username_0: In this example i m not able to count "manoj" in the given string...how i can
do this..
```
String text = "manoj kumjjjartiwarimanojmanoj";
char[] line = text.toCharArray();
char[] temp = "manoj".toCharArray();
int count=0;
for (int i =0; i < line.length; i++) {
int t =0;
for (int... |
2018/03/03 | 472 | 1,545 | <issue_start>username_0: I am trying to make a website that shows some text going right to left.
A good example of what I am trying to make is the background on this website [realtimebitcoin.info](https://realtimebitcoin.info/).
I am not quite sure where to start.
Any advice would be much appreciated.
Thanks,... |
2018/03/03 | 429 | 1,228 | <issue_start>username_0: How to avoid the following CSS duplication:
```css
div#logo div:nth-child(1) div {
width: 30%;
height: 30%;
background-color: white;
}
div#logo div:nth-child(3) div {
width: 30%;
height: 30%;
background-color: white;
}
```<issue_comment>username_1: ```css
div#logo div... |
2018/03/03 | 609 | 1,833 | <issue_start>username_0: I have the following code:
```
sic_code = int(input("Filter by SIC code (1-4 digits)? Default is all: ")
# Connect to the database file
conn = sqlite3.connect(db)
c = conn.cursor()
sql = ("SELECT Name "
"FROM stock_data "
"WHERE SIC_Code = {sc}".format(sc=sic_code))
# Run SQL ... |
2018/03/03 | 609 | 1,925 | <issue_start>username_0: I have a requirement to fetch values from
```
Map() objectMap= new HashMap();
Object1 obj1 = new Object1();
Object2 obj2 = new Object2();
//Object1 class:
public class Object1{
private String name;
private String id;
private String number;
//along with getters and setters
}
//Object2 cl... |
2018/03/03 | 467 | 1,949 | <issue_start>username_0: I execute a native query by JPA. My DB is oracle and I have a Clob column. When I get the result, How can I get the clob value from the resultList? I cast it to String and I get ClassCastException. actual object is com.sun.proxy.$Proxy86.
```
Query query = entityManager.createNativeQuery("Sele... |
2018/03/03 | 395 | 1,198 | <issue_start>username_0: I have created one app using xamarin android native.
Now I want to display admob ads in that, both banner & interstitial.
But I did not found any step by step good tutorial.
I found few, but it was for xamarin.forms not for native.
So can any one give me link of that, OR if any one has done... |
2018/03/03 | 672 | 2,171 | <issue_start>username_0: I'm currently trying to add a bootstrap carousel to this website in which I'm making for someone and every time I add a photo or a caption, the photos either line up in a list and the captions stack up on top of each other. Can someone help ?
This is what the website looks like:
Photos stacke... |
2018/03/03 | 415 | 1,468 | <issue_start>username_0: I am new to swift, it is apparent that the codes are constantly changing. I am currently completing the youtube tutorial- <https://www.youtube.com/watch?v=rvKyeOqMldA>, which I found interesting but couldn't move forward after 10 minutes of the tutorial. I am getting the following error message... |
2018/03/03 | 748 | 2,771 | <issue_start>username_0: I have written a simple Translate class that stores a constant associative array. Key is the source language and value is the translation in target language. How can I search for a given key in this array and return its value (translation here)?
```
namespace utils;
abstract class Translate
... |
2018/03/03 | 262 | 1,054 | <issue_start>username_0: I'm having a trouble in using the new bootstrap 4, do anyone of you know how to add/insert multiple bootstrap carousel in one single page.
I've search many sites but they only give answers using bootstrap 3.
thank you in advance for your help!<issue_comment>username_1: The demo page itself use... |
2018/03/03 | 432 | 1,449 | <issue_start>username_0: I'm building a project with g++ whose build system requires invoking [mc.exe](https://msdn.microsoft.com/en-us/library/windows/desktop/aa385638(v=vs.85).aspx) as a step.
What's the simplest way to obtain this little standalone utility -- preferably without having to install gigabytes worth of ... |
2018/03/03 | 1,226 | 3,370 | <issue_start>username_0: I'm trying to develop a web app which analyzes a single word and its synonym words happen to shows in a bunch of paragraphs.
Accumulate how many times the word and its synonyms appear in the paragraphs.
Currently what I find some API such as twinword.com, it only make similarities in two sent... |
2018/03/03 | 820 | 3,116 | <issue_start>username_0: There is tow tables for my products, which one is related to main warehouse and the other one is related to a little store. Both tables keep amounts of products.
```
tblWareHouse
-----------------------------------
ProductID ProductSeries Amount
1 600 80
1 ... |
2018/03/03 | 1,275 | 4,712 | <issue_start>username_0: I have a [graph](https://github.com/Satshabad/Simple-Graph-Implementation/blob/master/src/Graph.java) implementation. My graph class is shown below:
```
public class Graph {
private HashMap>> adjacencyList;
/\*\*
\* This list holds all the vertices so that we can iterate over them in the
\... |
2018/03/03 | 384 | 1,282 | <issue_start>username_0: I have stored some data in Redis using `Jedis`.
Now I want to retrieve set values if the key exists in the set.
I'm using `get` function but I end up getting this error:
>
> WRONGTYPE Operation against a key holding the wrong kind of value.
>
>
>
```
String str = jedis.get(word);
```
T... |
2018/03/03 | 376 | 1,292 | <issue_start>username_0: I have created an Excel document containing 2 columns in a sheet.
[](https://i.stack.imgur.com/kaEDs.png)
There is too much unwanted space between cells, such that the user has... |
2018/03/03 | 656 | 2,402 | <issue_start>username_0: I've come across the following snippet of code:
```
(defstructure object
"An object is anything that occupies space. Some objects are 'alive'."
(name "?") ; Used to print the object on the map
(alive? nil) ; Is the object alive?
(loc (@ 1 1)) ; The ... |
2018/03/03 | 1,080 | 3,772 | <issue_start>username_0: If I type debugger and I want to check something. But call to that function returns a promise, then i am stuck.
For example:
I typed debugger and it stopped.
```
function test(db) {
debugger;
// here i want to see something
var a = .....;
}
```
But if I type
```
let d = db.Us... |
2018/03/03 | 385 | 990 | <issue_start>username_0: I have a question that ***How to Convert 32 bit float value to two 16 bit integers***.
Actually Im converting two 16 bits integers into 32 - bit float.
from the reference of [two-16-bit-ints-to-one-32-bit-float-value](https://stackoverflow.com/questions/43908820/two-16-bit-ints-to-one-32-bit-... |
2018/03/03 | 1,553 | 3,871 | <issue_start>username_0: I have the following dataframe:
```
+--------------------+---+---+-----+----+--------+----+
| ak| 1 | 2 | 3 | 4 | 5 | 6 |
+--------------------+---+---+-----+----+--------+----+
|8dce120638dbdf438 | 2| 1| 0| 0| 0| 0|
|3fd28484316249e95 | 1| 0| ... |
2018/03/03 | 820 | 2,956 | <issue_start>username_0: I'm developing flutter project and I'm a newbie to flutter, My Avd manager shows only virtual device except real, whereas my another android project shows my real device and my [Android WIFI ADB Here is Image](https://i.stack.imgur.com/us4fJ.png) is also showing a connected device, but flutter ... |
2018/03/03 | 1,364 | 4,567 | <issue_start>username_0: Problem
-------
A document looks like this:
```
{
data: [
{ identifier: 'a', value: 10 },
{ identifier: 'b', value: 53 },
{ identifier: 'c', value: 16 }
]
}
```
I'd like to set all values to `null` if another object inside the same array with identifier `x` meets a condition... |
2018/03/03 | 605 | 2,516 | <issue_start>username_0: I am reading Effective Java of <NAME>, and in concurrency chapter there is one example:
```
public class Main {
private static boolean stop;
public static void main(String[] args) throws InterruptedException {
new Thread(() -> {
int i = 0;
while (!sto... |
2018/03/03 | 558 | 2,154 | <issue_start>username_0: Hello everyone and thank you for your time! I have a simple question for you.. I have an html page where is only a basemap (open street map). And i have also a javascript file, where it takes your coordinates and it counts a percentage. How can i embed this javascript file in the html page? I m... |
2018/03/03 | 655 | 2,423 | <issue_start>username_0: How can I disable autocompleting form with credentials in semantic-ui-react? Tried this but it does not work
```
import { Form } from 'semantic-ui-react';
....
```<issue_comment>username_1: I don't think you can put `autoComplete` on `Form`.
Instead try it on either `Form.Group` or on each ... |
2018/03/03 | 1,176 | 4,447 | <issue_start>username_0: I want to run a gpu accelerated python script on windows using conda environment (dlwin36).
I’m trying to activate dlwin36 and execute a script:
1) activate dlwin36
2) set KERAS\_BACKEND=tensorflow
3) python myscript.py
If I manually open cmd on my machine and write:"activate dlwin36"
it w... |
2018/03/03 | 1,787 | 4,684 | <issue_start>username_0: I'm trying to combine the values of two lists into single dictionary set but after combining dictionaries key and values are not arranged as origional order in list , it pairs with random key and values, so how can I combine them in order? See the input and output below:
```
data_ids = ['22630... |
2018/03/03 | 1,253 | 3,311 | <issue_start>username_0: So I have a .CSV file that contains dataset information, the data seems to be described in JSON. I want to read it with MatLab. One line example(7000 total) of the data:
```
imagename.jpg,"[[{""name"":""nose"",""position"":[2911.68,1537.92]},{""name"":""left eye"",""position"":[3101.76,544.32]... |
2018/03/03 | 430 | 1,437 | <issue_start>username_0: Probably I am confused or something but I am not able to understand this silly scenario.
```js
if("true"){
console.log("Above is true");
}
else{
console.log("Above is false");
}
```
In the above case the console is nicely printing `Above is true`. Which makes total sense. But when I ... |
2018/03/03 | 402 | 1,347 | <issue_start>username_0: I want to use [reactor](http://projectreactor.io/) achieve:
```
for (val worker : getWorkers(request)) {
val response = worker.tryDo(work);
if (response != null) {
return response;
}
}
return null;
```
`getWorkers` can transfer to return `Flux`, `tryDo` can also return a ... |
2018/03/03 | 1,152 | 5,140 | <issue_start>username_0: I'm trying to upload an image to a existing bucket in my Google Cloud Storage.
The image file gets uploaded successfully when I go and check,
but the returned download url is `null`
CODE
====
```
private String uploadImage(File filePath, String blobName, File uploadCreds) throws FileNotFo... |
2018/03/03 | 265 | 932 | <issue_start>username_0: This error is raised:
>
> "Syntax error on token "int"
>
> Invalid expression on the line `int = Integer.parseInt("status");`.
>
>
>
When the following code gets executed :
```
<%@page import="dao.admindao"%>
<%
int i=admindao.saveAssign(u);
response.sendRedirect("assignedm... |
2018/03/03 | 489 | 1,521 | <issue_start>username_0: I am using python zeep library and I am trying to send a request to a soap client, but I keep getting this error:
>
> ValueError: The String type doesn't accept collections as value
>
>
>
This is the XML file of the WSDL client:
```
```
and here is my code:
```
from zeep import Client... |
2018/03/03 | 578 | 2,100 | <issue_start>username_0: I use this [***document***](http://www.techotopia.com/index.php/An_Android_Custom_Document_Printing_Tutorial) to create a Pdf file. By hitting a button to create a pdf file, Pdf-Viewer opens the created pdf automatically. I would like to know where that temporary file is saved in the device to ... |
2018/03/03 | 754 | 2,223 | <issue_start>username_0: Oh mysql why oh why?
This query works on rds
```
SELECT pair, max(utc_dt) as utc_dt, `value` FROM qta.time_series WHERE ticker='spot_ticker' AND time_interval='DAILY'
and pair = 'AED' group by pair, utc_dt
```
On my local mysql here is the error:
```
Error Code: 1140. In aggregated query w... |
2018/03/03 | 699 | 2,190 | <issue_start>username_0: I am trying to have my javascript pop a dialog if there is data that hasn't been written yet, but it is always showing the confirmation dialog, even if there is nothing to be written.
I have reduced the problem to this minimal failing case:
```
window.addEventListener("beforeunload", (e) => {... |
2018/03/03 | 656 | 1,987 | <issue_start>username_0: I want to fetch a list of Azure active users along with their set of permissions (role) via REST APIs.
So far I am not able to directly fetch them. I tried to figure them out using Active directory but no luck so far.
Here is the [documentation](https://learn.microsoft.com/en-gb/rest/api) of ... |
2018/03/03 | 797 | 2,567 | <issue_start>username_0: I am creating a project using AngularJS and I want to load the data once in my Angular controller. My code works, but sometimes it shows me empty data.
Here is my code:
```
if(!$scope.locations){
$scope.promise = pricingService.getIPVPNLocations().then(function(response){
$... |
2018/03/03 | 1,107 | 3,985 | <issue_start>username_0: I want to bind a dynamic object to a string like replacing the instance.field in string to the real value of the instance.
See my code below to understand:
```
String body = "My Name is: model.Name";
Model model = new Model();
model.Name = "Mohammed";
String result = ReplaceMethod(body,model... |
2018/03/03 | 1,463 | 5,360 | <issue_start>username_0: I have written an API in nodejs which will fetch all the related records based on the client-name given.And in angular i'm using dropdown to select client-name with unique names.So far it is working fine, but i want to display all the related data(if one client-name contains 2-3 different recor... |
2018/03/03 | 595 | 1,596 | <issue_start>username_0: With CSS grid, how can I style three divs to wrap at the same time when the screen gets smaller ?
That means to go from this:
```
+---------+--+---------+--+---------+
| div | | div | | div |
+---------+--+---------+--+---------+
```
to this:
```
+-----+
| div |
+-----+
| ... |
2018/03/03 | 869 | 2,508 | <issue_start>username_0: I am trying to append more strings together, when I use append once, it works fine, but after using it again it fails.
```
camName = "./XML//X";
std::string camera1 = "cam1";
camName.append(camera1);
```
This gives me string ./XML//Xcam1 and it's fine.
```
camName = "./XML//X";
std::string ... |
2018/03/03 | 620 | 1,986 | <issue_start>username_0: I have a top page navigation where I want it to have a transparent background when at the top of the screen, then a white background when the user scrolls down.
The code I have works, however I want it to animate, which doesn't work as I have it since the class gets removed and the animation ... |
2018/03/03 | 365 | 1,275 | <issue_start>username_0: I created a table with JS and I want to pass the Id of the row to an external function "COPY". I'm having difficulty doing that.
```
for (var i =1; i <= (strln/2); i++) {
// creates a table row
var row = document.createElement("tr");
row.setAttribute("id",""+i+"");
row.setAttribute("onclick","... |
2018/03/03 | 1,143 | 4,311 | <issue_start>username_0: I am building an app with Redux, and I have this issue: The state of my reducer is updated when I add elements to it, but the display stays the same.
Here is the code for my component:
```
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { displayList } ... |
2018/03/03 | 1,533 | 5,281 | <issue_start>username_0: I want to know how I can wait for one script to load before loading the next one. For example(and also actually load another page into the page completely):
```
$(document).ready( function() {
$("#content1").load("index2.html");
});
```
So after loading script1 properly(and run all thats i... |
2018/03/03 | 2,093 | 8,592 | <issue_start>username_0: My use case is to be able to send a message outside Facebook's 24 + 1 policy by using message tags as described on [Facebook Dev Docs](https://developers.facebook.com/docs/messenger-platform/send-messages/message-tags). It states I need to set the **messaging\_type and a valid tag**. I have set... |
2018/03/03 | 502 | 1,789 | <issue_start>username_0: I want to trigger a event to refresh all the options of dropdown, when we are opening it. And make sure that event won't get fired when we close the dropdown or select any option in it.
I am using following html code for dropdown.
```
Select
B
D
```
Could anyone suggest the right way of... |
2018/03/03 | 1,198 | 5,570 | <issue_start>username_0: I have 3 custom radio buttons and they're not checked by default. They act like a filter. I want to know if there's a way to uncheck a checked button and listen to that action. So basically I can cancel the filter.
I know I should use `checkbox` in this case, but I don't want more than one to... |
2018/03/03 | 1,334 | 5,979 | <issue_start>username_0: I am a beginner, I get 300 data from a server and I store this data in an Array [[String:String]], I don't want all those 300 data displayed in the table view at once, but I want to display it incrementally, let say 15 data per scroll in table view, after 15 data loaded, the next 15 will be loa... |
2018/03/03 | 676 | 2,357 | <issue_start>username_0: I found this SVG animation online and it works in Chrome, but not in Firefox. I found a lot of answers, added -webkit-, but still not working. I tried to change percents to pixels in translateX(), but nothing. Or maybe I'm not doing it right.
<https://codepen.io/anon/pen/MQRogz>
HTML:
```css... |
2018/03/03 | 596 | 1,893 | <issue_start>username_0: I'm posting very simple json data to a .net Core 2.0 API.
Why is it when I have a method like this:
```
public async Task GetNewToken([FromBody]string id)
```
Then id is null, but if I encapsulate that in a model:
```
public class RandomViewModel
{
public string id { get; set; }
}
pub... |
2018/03/03 | 666 | 2,461 | <issue_start>username_0: >
> fatal: unable to access '<https://gitlab.com/>\*\*\*\*\*\*\*\*/\*\*\*\*\*\*.git/':
> schannel: next InitializeSecurityContext failed: Unknown error
> (0x80092013) - The revocation function was unable to check revocation
> because the revocation server was offline.
>
>
>
When trying ... |
2018/03/03 | 478 | 1,360 | <issue_start>username_0: I have a hash (`test`) of hash refs:
```
use strict;
use warnings 'all';
my %test = (
110 => { 'foobar' => '3.09' },
119 => { 'foobar' => '2.08' },
118 => { 'foobar' => '2.18' },
);
for my $key ( keys %test ) {
print( "$key, $test{$key}->{'foobar'}\n" );
}
```
### output
`... |
2018/03/03 | 270 | 918 | <issue_start>username_0: ```
sp_describe_first_result_set @tsql=N'%s'
```
returns a lot of info. But I only want `name` and `system_type_name`.
Is it possible to specify the columns in the returned results?<issue_comment>username_1: Your `sort` code works fine with the data you have shown, except that `cmp` should... |
2018/03/03 | 817 | 2,691 | <issue_start>username_0: In my mql4 Expert Advisor, I've written this function to close all the buy trades at once. When I test it via the *Strategy Tester*, it closes some buy trades, but for a few other *buy* trades it returns the: `OrderClose error 4051:invalid ticket for OrderClose function` error.
```cpp
void Clo... |
2018/03/03 | 1,023 | 3,626 | <issue_start>username_0: I'm used to working with MSSQL but recently have had to use MYSQL, I know it is similar but the way things are done are confusing me slightly.
My question is after I have called a stored procedure (insert, update, select, delete) how can I do a check within PHP that the call was successful bef... |
2018/03/03 | 908 | 2,993 | <issue_start>username_0: My data is like this:
[](https://i.stack.imgur.com/tXcjb.jpg)
I want to take all the data in the column `dokumen_name` which contains A12345.
This is my query:
```
php
require "init.php";
$sql = 'SELECT Id,... |
2018/03/03 | 298 | 971 | <issue_start>username_0: I am working on a project in which used
>
> compileSdkVersion 26
>
> buildToolsVersion '25.0.0' and
>
> compile 'com.android.support:support-v13:26.1.0'
>
>
>
Getting this error while building application earlier it was working fine.
* What went wrong:
Execution failed for task ... |
2018/03/03 | 279 | 1,036 | <issue_start>username_0: I'm unable to locate Android SDK in the settings menu of android studio
Today, when I run Android Studio, I saw a problem with it. I can't see "android\_SDK", in setting menu. not exist in left menu "setting>system setting". What happened??? can you help me to solve it. I reinstalled android s... |
2018/03/03 | 478 | 1,517 | <issue_start>username_0: on basis of local variable value I want to make condition on a particular column in select statement.
---
```
declare @str VARCHAR(50)='ProjectCostAll'
SELECT pm.intProjectID,pm.strProjectName,im.intInvID,im.strInvNo
FROM dbo.tblProjectMaster PM
LEFT JOIN dbo.tblInvoiceDetails ID ON id.intP... |
2018/03/03 | 4,335 | 16,871 | <issue_start>username_0: Here's my script
```
import urllib.request
import json
import time
from jose import jwk, jwt
from jose.utils import base64url_decode
import base64
region = '....'
userpool_id = '.....'
app_client_id = '...'
keys_url = 'https://cognito-idp.{}.amazonaws.com/{}/.well-known/<KEY>'.format(region,... |
2018/03/03 | 1,300 | 3,751 | <issue_start>username_0: I am using `shareSingle()` from <https://github.com/EstebanFuentealba/react-native-share> to get the facebook share functionality in my application.
I wrote the code below following the documentation, but it throws:
>
> Possible Unhandled Promise Rejection error. TypeError: undefined is not ... |
2018/03/03 | 570 | 2,138 | <issue_start>username_0: I am WebDev intern and I have done some work in the master branch.
And I have done a week's work without realising that I am in the master branch.
I need to switch branches so that I can commit my local changes from a branch that is not the master branch.
What I need to do:
* Take all the l... |
2018/03/03 | 554 | 1,964 | <issue_start>username_0: I changed the background color of **View** to a dark grey color in ViewController.swift and this shows up in the simulator but in the storyboard the **View** has a white background. Is there a way to refresh/force the storyboard to show the right background color.
```
self.view.backgroundColor... |
2018/03/03 | 559 | 2,122 | <issue_start>username_0: 1. Suppose I have 10k of record and whenever I am trying to update state using setState every time component is re-render but I want after all changes on state component should render once only.
example :-
```js
constructor(){
this.state={
employeeList:[{name:a},{name:b},{name:c}... |
2018/03/03 | 994 | 3,685 | <issue_start>username_0: I got this text typing animation effect code that types out a code and it's perfectly working however, I'm looking to make it loop forever with a 3 seconds delay when it ends. The animation and everything remains the same. I just don't want it to end as I'm displaying at the side of my project ... |
2018/03/03 | 348 | 1,120 | <issue_start>username_0: I am trying to run Quill, but I can't figure out why is it not working.
It shows up in my textarea but it won't execute any command like bold text or italic text. But i can see toolbar.
I added this to my site:
```
var quill = new Quill('textarea', {
modules: { toolbar: true },
theme: 'sn... |
2018/03/03 | 575 | 1,994 | <issue_start>username_0: I am trying to make a weekly statistics for user registration. It should work for weekly. There are total of seven days in a week. I want to print the number of users who are registered every day in the week on the screen.
For example:
>
> Number of users who registered on Monday = 38
>
>
... |
2018/03/03 | 777 | 3,242 | <issue_start>username_0: I had successfully uploaded an app for TestFlight but after archiving and uploading now it is giving me this error I can't explain. Just to make sure I unchecked all entitlements in the capabilities target tab but that doesn't seem to matter.
I looked over all the app id's, certificates and pr... |
2018/03/03 | 2,581 | 9,960 | <issue_start>username_0: I have a domain `example.com`. I have a S3 bucket named `example.com` setup with an `index.html` file that works. Now I like to create two subfolders called `old` and `new`, each containing a separate version of a single page application. Requesting `https://example.com/old` (I like to omit the... |
2018/03/03 | 293 | 961 | <issue_start>username_0: I'm following this react workshop:
<https://github.com/spietrek/workshop.reactjs.1/blob/master/presentation/Introduction%20to%20ReactJS%20Workshop.pdf>
I'm following all the code but I'm getting an error:
`Module not found: Can't resolve './AppRoutes'...`
Here's the editable project url:
<ht... |
2018/03/03 | 709 | 2,799 | <issue_start>username_0: This are the getters and setters:
```
public class Icb_Model {
private double price;
private double totalPrice;
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public double getTotalPrice() {
return totalPrice;
}
public void s... |
2018/03/03 | 800 | 2,800 | <issue_start>username_0: I am doing some reading and practice to better understand java inheritance. When I run the Lion class below, it prints out `0 and null`. I think it should rather print out the parameters values i.e. `30 and roars`. what I am doing wrong?
```
public class Animal {
int numTeeth;
public... |
2018/03/03 | 845 | 2,850 | <issue_start>username_0: I had configured my security adapter.
I had mentioned the security check name in my app side also.
**This is MFP server version: 8.0.0.00-20160822-2140**
**MFPdev\_CLI version: 8.0.0-2017102406**
(It was working long day back. is there any problem with my app and server-side versions? Only ... |
2018/03/03 | 743 | 2,250 | <issue_start>username_0: Why does a `word-wrap: break-word` CSS rule not shrink an element in Firefox, when the corresponding rule works in Chrome?
The `.form-field` container here is constrained to 300px width, and the `legend` inside it has a 100% width. The long words inside stretch the `legend` out to overflow the... |
2018/03/03 | 505 | 1,785 | <issue_start>username_0: This is my React class prior to implementing react-bootstrap-table (it works, it prints what it's it's supposed to):
```
class ResultItem extends ComponentBase {
constructor(props) {
super(props);
this.state = {
key: null,
description: '',
start_date: '',
end_date: '',
vendor_na... |
2018/03/03 | 962 | 2,902 | <issue_start>username_0: Suppose I have the following setup
```
CPPSRC+=path1/foo.cpp
CPPSRC+=path2/main.cpp
CSRC+=path3/zoo.c
CSRC+=path4/bar.c
```
I want to produce all object files `.o` into `build/` folder (so I supposingly need both pathsubst and pattern matching).
I also need the `.cpp` to be compiled with `... |
2018/03/03 | 560 | 2,206 | <issue_start>username_0: I am new to this and wanted to check out how a Webframework works. I installed CakePHP via Controller in Windows 10. I am using the Windows IIS7 Server and not W/XAMP. I used [this](https://www.youtube.com/watch?v=TZRP3geT0xo) video and [this](https://book.cakephp.org/3.0/en/installation.html) ... |
2018/03/03 | 560 | 2,215 | <issue_start>username_0: i want to create multiple buttons in Tkinter, in a for loop. The problem is that I'm iterating through a dataframe (the values in the rows are the content of the Tkinter gadets I'm creating) with .iterrows which means, I have no "i", only rows and index.
The problem is, that as I'm creating t... |
2018/03/03 | 340 | 1,273 | <issue_start>username_0: I have a `.tex` file that I need to compile to PDF using XeLaTeX (I am using fontspec, among other packages). Using RStudio, I can successfully generate a PDF via the Compile PDF command, having specified XeLaTeX as the engine in my RStudio preferences.
How can I programmatically invoke this c... |
2018/03/03 | 333 | 1,188 | <issue_start>username_0: I'm having troubles in getting selection box value inside jQuery. I want selection box value inside check box change of function. ie:
inside
```html
$('input').on('change', function() //need selection box value here
});
```
```html
option1
option21
```
Gone through the stackoverfl... |
2018/03/03 | 450 | 1,525 | <issue_start>username_0: I've converted text to emoticons using preg\_replace like this,
```
public function get_smiles()
{
$text = preg_replace("/(^|[ ])\:\)/", "😊", "");
return $text;
}
```
And in codeigniter view,
```
php $smiles = $this-libarary1->get_smiles(); ?>
php for... |
2018/03/03 | 1,962 | 7,625 | <issue_start>username_0: Everything is OK with registration form but I can't figure out how to complete login form. I searched a lot but without no luck, I'm new to PHP. Please give me tips and solutions.
```
if (isset($_POST['username']) && isset($_POST['password']))
{
$username = $_POST['username'];
$_SESSION['L... |
2018/03/03 | 578 | 1,961 | <issue_start>username_0: My input text file looks like on this format
```
Consignee Documnet No
MANULI DA AMAZONIA 12345678
INDUSTRIA DE EMBALAGENS LTDA AV. Export Reference
BURITI 3670 BAIRRO DISTRITO 44444557
INDUSTRIAL 69075-000 MAN... |
2018/03/03 | 472 | 1,727 | <issue_start>username_0: I wanted to use [`weakref.finalize`](https://docs.python.org/3.6/library/weakref.html#weakref.finalize) to cleanup some background threads when an object goes out of sight, but the finalizer is not run **(edit:) when the object is in the module scope**.
Note however that the object own no refe... |
2018/03/03 | 5,547 | 16,674 | <issue_start>username_0: **Problem statement**: Two input string with styling like strong,li,ol,line-through etc in HTML. In the screen, there should be two box : Original Text & Edited Text. If any text of original Text is missing in Edited Text then it should highlight that word in red colour. If he has added anythin... |
2018/03/03 | 1,117 | 3,988 | <issue_start>username_0: ```
import express from 'express'
import bodyParser from 'body-parser'
import api from 'routes'
import timeout from 'connect-timeout'
import haltOnTimeout from 'middlewares/haltOnTimeout'
import compression from 'compression'
import helmet from 'helmet'
import path from 'path'
const app = expr... |
2018/03/03 | 851 | 3,259 | <issue_start>username_0: I have a MySQL database that has a InnoDB table called `user`.
Each user is required to create a user name during the creation of the account. The user name can only be between 1 and 40 characters (utf-8) long. The purpose of this user name is to allow for one user to search for another.
The... |
2018/03/03 | 424 | 1,562 | <issue_start>username_0: I can't get the answers webpage for Microsoft to work so I have to come here.
I'm trying to to find and replace using wildcards so I want to replace anything which begins with yy( and then there will be some wildcards followed by a closed parentheses. I want to replace that final closed parent... |
2018/03/03 | 664 | 2,253 | <issue_start>username_0: My second is shown when page is refreshed and I want to avoid this.
```js
$(function(){
$("#div2").hide();
$("button").click(function(){
$("#div1").hide()
$("#div2").fadeIn(1000)
});
});
```
```html
Lorem, ipsum dolor sit amet consectetur adipisicing elit.... |
2018/03/03 | 802 | 2,700 | <issue_start>username_0: I used to have python and python3 installed. So I could decide which python to use. I now updated python with homebrew and it migrated python3 to python. How do I run python2 now?
When I check the installation I get:
```
$ python -V
Python 3.6.4
$ python2 -V
-bash: python2: command not found
... |
2018/03/03 | 1,671 | 6,402 | <issue_start>username_0: I am trying to build a stimulate income tax calculator. The progress I am wanting to make is :
1. print out a message of "What is your total income :" to ask user to input their income in positive numeric number.
2. to read their inputs
3. make a loop: if the user put in strings, print "Enter ... |
2018/03/03 | 803 | 3,196 | <issue_start>username_0: This is an Android question.
Inside my (ReactNative (which renders an `EditText` in Android)) when the user types "#" and then they use Androids swipe mode to auto-complete a word, it adds a space between the "#" and the autocompleted word. So what I was doing was, `onChange` of the text, I r... |