date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 756 | 2,918 | <issue_start>username_0: We have a .Net project with some embedded resources that are xml files with a custom filename extension.
For some reason, on my computer, Visual Studio has suddenly (for the last few days) decided to treat these as TypeScript files and is producing tens of thousands of compile errors on each b... |
2018/03/06 | 1,653 | 4,996 | <issue_start>username_0: I have been unsuccessful in trying to figure out how to solve the following errors, (1st error:)'OPTIONS <http://localhost:3000/lists/5a9dca48cebb5a4e5fc1bfe9> 404 (Not Found)' and (2nd error:)'Failed to load <http://localhost:3000/lists/5a9dca48cebb5a4e5fc1bfe9>: Response for preflight has inv... |
2018/03/06 | 679 | 2,168 | <issue_start>username_0: I have a bunch of objects of the format like:
```
var Manchester ={
name: "Manchester",
latitude:53.3,
longitude:-2.2
};
```
stored in an array called `airports`. I then have combobox with an `id` of `combo` that is being populated from an array of objects, with the combobox ... |
2018/03/06 | 418 | 1,267 | <issue_start>username_0: I was looking to see if there was a better approach to this query
The date field is formatted - 06-03-2018
I need a column that looks like e.g. Mar-18
e.g
```
SELECT
CONCAT(P.[Month] + '-', p.[Year]) AS [Month-Year]
FROM
(
SELECT
left(datename(MONTH,[Date]),3) AS [Month]
,right(YEAR([Date])... |
2018/03/06 | 1,015 | 4,403 | <issue_start>username_0: I am trying to pass `sqlite` table values to an `arraylist`. The values of `sqlite` table shows correctly but when they are passed to `arraylist`.the last row duplicates the number of rows in `sqlite` table which means if the `sqlite` table is having 2 rows I am getting 2 indexes in `arraylist`... |
2018/03/06 | 1,193 | 3,471 | <issue_start>username_0: I am creating a div which will enclose a users name and when they hover over a profile image then it will display the name over the image, when I am doing this it does not center the div over the image solely which will be causing a problem when styling the website.
My CSS is below:
```
.mini... |
2018/03/06 | 1,140 | 3,830 | <issue_start>username_0: I am trying to read XLSX file one cell data. but I get an error "Uncaught Error: Cannot access file"
```
Uncaught Error: Cannot access file Hinnapakkumine.xlsx
at V (xlsx.full.min.js:12)
at qv (xlsx.full.min.js:22)
at Object.eg (xlsx.full.min.js:22)
at HTMLButtonElement.document.getElementById... |
2018/03/06 | 1,906 | 6,514 | <issue_start>username_0: I want to make it so that my paragraph will be displayed properly.
Paragraph example:
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec auctor
> est nec interdum tincidunt. Integer nec aliquet urna, a tincidunt
> felis. Nunc mi quam, convallis vitae pharetra quis, dapibus ... |
2018/03/06 | 1,447 | 4,238 | <issue_start>username_0: I have these tables in my MySQL database:
**BUYERS**
```
ID|SELLER
----------------
0 |Paul
1 |Jean
2 |David
3 |Jack
4 |John
5 |Fred
6 |Peter
```
**PARIS**
```
ID|CAR
---------
0 |Toyota
1 |BMW
2 |Honda
```
**LONDON**
```
ID|CAR
---------
3 |Ford
4 |BMW
5 |Honda
6 |Honda
```
I use th... |
2018/03/06 | 1,532 | 5,084 | <issue_start>username_0: I need to find all prime numbers between 1 to 1000 with test cases as :-
1. ENTER DECIMAL NUMBERS-----NEGATIVE TEST CASE
Input = 15.2
Output = Please enter a valid number
2. TEST CASE TO CHECK ALPHABETS, SPECIAL CHARACTER
Input = AAAAA
Output = Please provide numeric values
3. TEST CASE ... |
2018/03/06 | 1,076 | 4,142 | <issue_start>username_0: I have an array list
logged in the child component which returns me the initial array.
After changing data from the API `componentDidMount`
I get an array of objects
if i log that array in the Parent component in the `render` function.
it is changing
but the child component it... |
2018/03/06 | 1,062 | 4,100 | <issue_start>username_0: A Variable in Changing every 1 Minute in PHP. How do I calculate its Percent Change every 24 Hours? I know it is very easy if we have 2 variables but how should I code if we have just one variable that changes every minute and we need to calculate its percent change and echo it out?<issue_comme... |
2018/03/06 | 941 | 2,910 | <issue_start>username_0: I used following in my `pom.xml` to create the fat jar:
```
maven-assembly-plugin
package
single
jar-with-dependencies
```
But this includes the application code as well. I want to make 2 jars, one with only application code and another single jar with only dependencies.
I also tri... |
2018/03/06 | 1,034 | 4,132 | <issue_start>username_0: I have a REST resource that gets a `RestTemplateBuilder` injected to build a `RestTemplate`:
```
public MyClass(final RestTemplateBuilder restTemplateBuilder) {
this.restTemplate = restTemplateBuilder.build();
}
```
I would like to test that class. I need to mock the calls the `RestTempl... |
2018/03/06 | 711 | 2,699 | <issue_start>username_0: I am trying to standardise responses in my express.js web app with TypeScript and I am not quite sure, how can I globally set, that responses should be for example this interface:
```
{
success: boolean,
data?: any,
error?: string,
}
```
Right now I am just writing:
```
async (req: R... |
2018/03/06 | 1,542 | 4,412 | <issue_start>username_0: I have a list such as:
```
a = [[1,'b',2],[3,':',4],[5,':',6]]
```
I want to remove the 'b' and ':' characters so that I end up with:
```
[[1,2],[3,4],[5,6]]
```
(Note that the fact that these characters are in the second position of each sublist is just an accident of my choice of exampl... |
2018/03/06 | 1,417 | 4,174 | <issue_start>username_0: I am creating Shopify theme using slate, I want to add bootstrap 4 SCSS in my theme
I have tried this by adding bootstrap's SCSS folder in `styles/vendor/bootstrap` folder and import it in `theme.scss`
```
/*================ BOOTSTRAP ================*/
@import url('vendor/bootstrap/scss/... |
2018/03/06 | 1,380 | 4,147 | <issue_start>username_0: I read several tutorials but I don't understand why neither passing a callback function nor a callback method does not work.
When I console.log the Callback function is undefined.
Please help.
```
import React, { Component } from 'react';
import { FlatList } from 'react-native';
import { Rec... |
2018/03/06 | 1,262 | 3,684 | <issue_start>username_0: I am using `wow.js` with `animate.js` to show animation on mouse scroll.
I want to change the direction of animation on small device like on large screen it should animate from right and on small device it should animate from bottom.
Here is a snippet to show what I need.
```js
new WOW().ini... |
2018/03/06 | 995 | 3,144 | <issue_start>username_0: I am writing a small program that finds a winner of a marathon.
Everything seems logical until I try to filter the vector for runners that are late for some amount of time. The vector remains same after the filter function, and if use `iter_mut()` it states type errors.
```
fn main() {
l... |
2018/03/06 | 248 | 853 | <issue_start>username_0: I have defined a few methods and properties behind an Excel sheet (Sheet10).
if I call `Sheet10.SortData` from another normal module, it works fine.
However if i use the code below, it does not compile.
**Why** ?? Is there a workaround ?
works:
```
Sheet10.SortData
```
compile erro... |
2018/03/06 | 1,435 | 4,811 | <issue_start>username_0: I need to create the sitemap file of my CommerceTools based shop and it would be great if it could be done automatically from the contents of the CTP database.
Do you know if there is a module, tool or extension already developed that allows this task?
EDIT->
---
I am aware that each online... |
2018/03/06 | 755 | 2,909 | <issue_start>username_0: Assuming a given a class hierarchy
```
class Region{};
class Shape extends Region{};
class Triangle extends Shape{};
class Circle extends Shape{};
```
Is there a way to define a method accepting only `Shape` or `Triangle`, but not a `Circle` ?
I can preform run-time type check and t... |
2018/03/06 | 672 | 2,446 | <issue_start>username_0: i cannot find a way to make react-navigation work at all. i copied the working examples from the internet but they don't seem to work too. can someone tell me what i am doing wrong.
i'm using
node: 8.9.4
react: 16.3.0-alpha.1
react-native: 0.54.0
react-navigation: ^1.4.0
```
//index.js
i... |
2018/03/06 | 254 | 855 | <issue_start>username_0: I want to echo php text but not between (). Some thing like this =
```
php
$text = "Barry(male)";
echo $text;
?
```
output =
Barry
How can i do this?<issue_comment>username_1: Something like:
```
$text = "Barry(male)";
$split = explode("(", $text);
echo $split[0];
// "Barry"
```
Upvotes:... |
2018/03/06 | 710 | 2,226 | <issue_start>username_0: everyone. So I'm working with a .csv file in Linux environment and things are mostly progressing as planned. The file contains names and the year they're given and the gender assigned to them, for example:
```
"Pasi","1917","1"
"Juha","1918","1"
"Katri","1918","2"
"Senna","1948","2"
et... |
2018/03/06 | 1,236 | 4,339 | <issue_start>username_0: I have a production system which had installed SQL Server 2012, so this system has the Integration Services 11. Then we upgraded the system with SQL Server 2014, so the system had two Integration Services 11 & 12. Then we upgraded to SQL Server 2016, so the system has now three Integration Serv... |
2018/03/06 | 871 | 2,076 | <issue_start>username_0: I want to sort my array by date and count, i'm able to sort array only by date my data is as below
```
count date
"0" "2018-03-06T07:09:02+00:00"
"0" "2018-03-06T07:07:02+00:00"
"0" "2018-03-06T07:06:03+00:00"
"0" "2018-03-06T07:02:06+00:00"
"0" "2... |
2018/03/06 | 856 | 3,146 | <issue_start>username_0: I am trying to submit my app for Test Flight beta testing, while submitting is is showing error saying
"*Apps that use the entitlements [com.apple.developer.in-app-payments] must have a privacy policy for [English]. If your app doesn’t use these entitlements, remove them from your app and upl... |
2018/03/06 | 833 | 3,054 | <issue_start>username_0: i am using the following simple code to read a line of string from console but get nullpointerexception, can you folks help:
```
import java.io.Console;
public class readline_String {
public static void main(String[] args)
{
// TODO Auto-generated method stub
//Strin... |
2018/03/06 | 386 | 1,540 | <issue_start>username_0: I have uploaded a laravel project in cPanel.
`public` folder of my project is uploaded inside `public_html` of cPanel. Other folders are uploaded in the root folder of cPanel.
Now Those images which are shown are uploaded while I run the project locally and those images are now inside the `p... |
2018/03/06 | 611 | 2,788 | <issue_start>username_0: I want to use **Constructor Overloading** in my class and I also would like to have some **final** variables to define.
The structure I would like to have is this:
```
public class MyClass{
private final int variable;
public MyClass(){
/* some code and
other final... |
2018/03/06 | 498 | 2,247 | <issue_start>username_0: I am trying to simulate a tab key pressed event in SWT, but I cannot find any method to do this.
I have a composite which contains one texfield, one ListViewer and one button.
When I press tab in the textfield I want to set the focus on the button, not on the ListViewer.<issue_comment>usernam... |
2018/03/06 | 634 | 1,993 | <issue_start>username_0: ```
(function foo() { var a=b=c=1 }())
```
When I try to log a will return a not defined err, however, when I try to log b or c will return the value 1. It's wicked.<issue_comment>username_1: `b` and `c` are added into the window object and get their values as `1`. But `a` is declared via `va... |
2018/03/06 | 637 | 2,002 | <issue_start>username_0: I need to find a below record
```
O'GRAD
```
I wanted to use LIKE
```
LIKE 'O'GRAD'
```
But i come across a problem with apostrophe.
What would be the best way around it?<issue_comment>username_1: `b` and `c` are added into the window object and get their values as `1`. But `a` is declare... |
2018/03/06 | 964 | 3,071 | <issue_start>username_0: I made some media queries to hide the side menu when the window get's too small. The problem is that then I'm not capable of toggling the menu again because it's hardcoded on the css.
So I tried to click the button to hide the sidebar instead. But it clicks multiple times while I am resizing.
... |
2018/03/06 | 260 | 1,015 | <issue_start>username_0: I am trying to set an event listener to an `ImageButton` but I keep getting this error.
```
Error:(48, 36) Could not resolve handler::onSelectPictureClicked as a listener.
```
Here is what my layout looks like.
```
```
And here's my handler class
```
public class CompleteProfileActivi... |
2018/03/06 | 160 | 534 | <issue_start>username_0: I need to change the package to Eclipse.
Now my package looks like this:
```
test
java
helloword
```
But I want to change it on it:
```
java
helloword
```
How can I do that?<issue_comment>username_1: This is quite simple:
1. Select the package you want to change
2. Pres... |
2018/03/06 | 924 | 3,329 | <issue_start>username_0: I am using ExpressJS to write my application and jsonfile (<https://www.npmjs.com/package/jsonfile>) to handle json files. I have this following json file:
```
{
"news": [
{
"id": "1",
"title": "News 1 heading",
"description": "Lorem ipsum dolor sit amet upidatat non pr... |
2018/03/06 | 360 | 1,138 | <issue_start>username_0: i want to use url like: `http:localhost:8000/api/students/?key=value`.
My API is set up as follows:
`Route::get('students/{key},'Controller@method')`
but my url is: `http:localhost:8000/api/students/value`
Could anyone help me please?<issue_comment>username_1: Change Your Route :
```
Rout... |
2018/03/06 | 570 | 2,007 | <issue_start>username_0: I am facing this issue in jenkins when i run bower install --allow-root. The build fails displaying the following error:
**Failed to execute "git ls-remote --tags --heads
<https://github.com/gabelerner/canvg.git>**
final build failure error displays as follows:
**fatal: unable to access '<htt... |
2018/03/06 | 1,297 | 4,186 | <issue_start>username_0: I am using a range slider with text box, so whenever I slide the range, value gets updated in textbox. Also whenever I change the value in textbox, slider will move accordingly.
Using javascript, I am also changing the slider lower color to orange.This is working perfectly when I slide the ra... |
2018/03/06 | 415 | 1,252 | <issue_start>username_0: ```
Name: John
Surname: Doe
Age: 24
```
When I do
```
Regex.Replace(str,"(?<=^|\n)(.*)(?=:)", "")
```
I get
```
: John
: Doe
: 24
```
I want to get rid of the colons without using another replace<issue_comment>username_1: The `(?=:)` is a positive lookahead that is a non-consuming p... |
2018/03/06 | 508 | 1,637 | <issue_start>username_0: I want to find the closest button of the parent for each ".ImHere" class element.
```
$('.ImHere').each(function() {
$(".ImHere" ).parent().nextAll('.add').first().css( "background-color", "red" );
});
```
<https://jsfiddle.net/nf50k7og/42/>
But it doesn't work<issue_comment>username_1... |
2018/03/06 | 619 | 2,090 | <issue_start>username_0: I have never used ZeroMQ and first heard of it an hour ago. But from the guide ([this guide](http://zguide.zeromq.org/page:all)) it sounds like there are async I/O.
It also happens that there is a nim port : [this one](https://github.com/nim-lang/nim-zmq/blob/master/zmq.nim)
So I was wonderin... |
2018/03/06 | 1,550 | 5,347 | <issue_start>username_0: I was following [this tutorial](https://medium.com/uva-mobile-devhub/set-up-react-in-your-django-project-with-webpack-4fe1f8455396) to set up Django to serve templates with webpack-generated bundles. I have set it up just like in the tutorial. However the problem is when i go to `localhost:8000... |
2018/03/06 | 1,942 | 6,275 | <issue_start>username_0: my web site is <https://antilicense.com/>
and I give a white page
PHP Fatal error: require(): Failed opening required '.../vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include\_path='.:/opt/alt/php72/usr/share/pear') in .../vendor/composer/autoload\_real.php on line 66
my erro... |
2018/03/06 | 7,382 | 20,377 | <issue_start>username_0: I'm having trouble with a "Q&A" section. Like there's 4 questions, that are links.
If you click on one, a "p" is going to slide down. an so on. But i want the page to scroll down or up to be well placed (like top) when you click on the question.
```js
$(function() {
var $_openedFaq = null;
... |
2018/03/06 | 6,344 | 17,550 | <issue_start>username_0: I am trying to load data from a rest endpoint using the HttpClient provided by Angular. The endpoint in question uses a token to authorize the user.
```
getData() {
if (this.token) {
const httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'applicat... |
2018/03/06 | 858 | 2,891 | <issue_start>username_0: How can I ignore a dependency in a project?
**My project setting is:**
*Project A: depends on **Angular2*** & *depends on **Foundation***
*Project Foundation: depends on **Redstone\_mapper\_mongo***
The problem is I want to use angular2 in my Project A which depends on my Project Foundation... |
2018/03/06 | 415 | 1,655 | <issue_start>username_0: When building iOS Anywhere applications if I set the worklight.server.url to an https address (doesn't matter which, just that it's https address) the application will then not be able to connect to the server when installed on the device, or any server even if changed in the settings. When try... |
2018/03/06 | 321 | 1,264 | <issue_start>username_0: I'm having problem to submit form. It simply redirects to 'thank-you' page without sending form data first. Please help, code below:
```
$(function () {
$("#surveyControl").submit(function(e) {
var companyname = $("#companyname").val();
var firstname = $("#firstname").val();
var ... |
2018/03/06 | 801 | 2,306 | <issue_start>username_0: I'm making something in excel which calculates my hours I work a week/month, when a number gets to 30.60 (two shifts which when finishing on the half an hour) it calculates it as 30.60\*wage=not the right pay.
so far I have `=ROUND(SUM(C6:I6),0)` which rounds up the number, which works fine un... |
2018/03/06 | 261 | 734 | <issue_start>username_0: Assume this array is my db table.
```
array('1','1','1','2','2','2','3','3','3','4','4','4','4','5','5','5','5');
```
in that table i have status from 1 to 5. but i want get data first with status = 2,sec 5 ... ,1,3,4.
is it possible ? if not how can i do it with php.<issue_comment>usernam... |
2018/03/06 | 2,218 | 7,509 | <issue_start>username_0: I need to use `AsyncTask` that called "Logout" when my app is killed by swiped. I used `Service` to handle this event but it doesn't work.
Added service tag in `AndroidManifest.xml`
```
```
My Service code
```
public class MyService extends Service {
PostClass post = new PostClass();
... |
2018/03/06 | 1,009 | 3,429 | <issue_start>username_0: I am trying to write a test case for rabbitMq listener. I tried using spring-rabbit-test and got the below error while running tests:
>
> Error starting ApplicationContext. To display the conditions report
> re-run your application with 'debug' enabled. 2018-03-06 17:10:50.113
> ERROR 14239... |
2018/03/06 | 1,244 | 5,093 | <issue_start>username_0: I try to get the named arguments for `MyAttribute` with Roslyn.
```
var sourceCode = (@"
public class MyAttribute : Attribute
{
public string Test { get; set; }
}
[MyAttribute(Test = ""Hello"")]
public class MyClass { }
");
var syntaxTree = CSharpSyntaxTree.ParseT... |
2018/03/06 | 279 | 1,022 | <issue_start>username_0: I am facing problem regarding the slot types used. I want a slot type that must take any kind of input from the user and it must be of free formed data. I had already tried using the `AMAZON.POSTALADDRESS` but it failed many times and it is asking the question again and again.
I had also tri... |
2018/03/06 | 984 | 3,196 | <issue_start>username_0: I am trying to compile a shared library using static libraries from Boost and OpenCV. Here below the command I am using to compile my library.
```
g++ -fPIC libsaliency.cpp -shared -o libsaliency.so \
-I/home/poiesi/data/libraries/boost_1_66_0/installed_w_contrib_static/include... |
2018/03/06 | 713 | 2,864 | <issue_start>username_0: In my first ViewController, I am checking to see if the user is already logged in with Firebase and if he/she is, redirect to the main switchboard and if not, redirect to the login view. However, the Welcome View just stays in view and no redirect happens.
```
import UIKit
import Firebase
cla... |
2018/03/06 | 734 | 2,615 | <issue_start>username_0: Recently, I decided to port to Matplotlib from MATLAB for plotting my graphs. In MATLAB, what I would do is just go to files>export>render and then choose 600 dpi and then select apply to figure and then export. In Matplotlib, I am using the command savefig from the matplotlib library as
```
... |
2018/03/06 | 827 | 2,673 | <issue_start>username_0: i have a Dataframe which is like this:
```
teammember <- c('Member A', 'Member B', 'Member C')
value_a <- c('success', 'fail', NA)
value_b <- c('fail', NA, 'success')
value_c <- c('success', NA, 'fail')
data_df <- data.frame(teammember, value_a, value_b, value_c)
```
Now i want to count eac... |
2018/03/06 | 1,728 | 5,823 | <issue_start>username_0: I have a small CGI Script with 2 submit buttons. I want that the current Script redirects the User to another script, depending on which submit button is pressed.
The CGi-Script:
```
#!/usr/bin/perl -w
# Modules
use strict;
use warnings;
use CGI;
my $q = CGI->new()... |
2018/03/06 | 443 | 1,529 | <issue_start>username_0: I´m using Silverstripe 4 and created a page with a form. Something gets wrong and I only get a blank page with:
"There seems to have been a technical problem. Please click the back button, refresh your browser, and try again."
* In .htaccess I set php\_flag display\_errors on
* In the \_conf... |
2018/03/06 | 2,915 | 13,265 | <issue_start>username_0: the exception is:
Cannot issue a redirect(..) here. A previous call to redirect(..) has already redirected the response.. Stacktrace follows:
org.codehaus.groovy.grails.web.servlet.mvc.exceptions.CannotRedirectException: Cannot issue a redirect(..) here. A previous call to redirect(..) has alr... |
2018/03/06 | 642 | 2,566 | <issue_start>username_0: I have a multi-cordova project setup in jenkins and therefore the build is scripted, with a structure as follows
```
Cordova/plugins/*my custom plugins*
Cordova/A/... cordova project
Cordova/B/... another cordova project
Cordova/C/... another cordova project
```
My build script, for each pro... |
2018/03/06 | 441 | 1,689 | <issue_start>username_0: Is it possible to delete all breakpoints *without* opening Chrome devtools?
I have a breakpoint set in a large obfuscated javascript file that cause the current tab to hang if I have devtools open while the page loads. I have no problems if i let the page load, and then open the devtools, but ... |
2018/03/06 | 886 | 2,787 | <issue_start>username_0: I have this code
```
String className = "namehere";
Class someClass = Class.forname(className);
Object object = someClass.newInstance();
String methodname = "mymethod";
Method setSomething = object.getClass().getMethod(methodname);
String []ab = (String[]) setSomething.invoke(object);
```
Wh... |
2018/03/06 | 580 | 1,554 | <issue_start>username_0: I need the while results in php with row results
My SQL Table is like
```
ID | date | material | Quantity
01 | 01/01/2018| abc | 50
02 | 01/01/2018| abc | 50
03 | 02/01/2018| def | 50
04 | 03/01/2018| ghi | 50
```
sql query:
```
select sum(Quantity) as 'Total Quant... |
2018/03/06 | 1,127 | 3,950 | <issue_start>username_0: How to manage schema migrations for Google BigQuery, we have used Liquibase and Flyway in the past. What kind of tools can we use to manage schema modifications and the like (e.g. adding a new column) across dev/staging environments.<issue_comment>username_1: According to the [BQ docs](https://... |
2018/03/06 | 917 | 1,705 | <issue_start>username_0: I have a data frame like this:
```
ID<-c(rep("A", times=6), rep("B", times=5), rep("c", times=4))
V1<-c(1,2,3,0, 0,6, 1, 2, 3, 0,0, 1, 0,0,0)
V2<-c(1,2,0,0, 0,6, 1, 2, 0, 0,0, 1, 3,0,0)
V3<-c(1,2,0,0, 0,6, 1, 2, 3, 0,0, 1, 3,5,0)
df<-data.frame(ID,V1, V2, V3)
```
I would like to return colum... |
2018/03/06 | 800 | 3,215 | <issue_start>username_0: I am trying to create a custom Docker image based on Rocker using Dockerfile. In the Dockerfile I am pulling my own R package from a custom GitLab server using:
`RUN R -e "devtools::install_git('[custom gitlab server]', quiet = FALSE)"`
Everything usually works, but I have noticed that when t... |
2018/03/06 | 1,068 | 4,070 | <issue_start>username_0: Hello I'm new to Javascript and APIs.
But I have an excersise where I should get Data from.
<https://swapi.co/api/planets/>
The problem is that it doesn't list all the planets at once so that URL only shows the first 10 entries while <https://swapi.co/api/planets/?page=2> shows the next and ... |
2018/03/06 | 537 | 1,916 | <issue_start>username_0: I encountered a problem and it can probably be done by iterating over the rows of this DataFrame but there might be a more elegant solution.
I try to create the column 'desired' as a string if the value of col1 is higher than 20. I tried np.where without success.
[DataFrame](https://i.stack.i... |
2018/03/06 | 734 | 2,417 | <issue_start>username_0: i have one table with a lot of data:
```
id | title | server 1 | server 2 | server 3
--------------------------------------------
1 | item1 | 172.16.31.10| 172.16.31.10| 172.16.58.3
2 | item2 | 172.16.31.10| 172.16.31.10| 172.16.31.10
..
n | i... |
2018/03/06 | 790 | 2,564 | <issue_start>username_0: I have to write a query for following scenario:
```
Select Time, Column A, Column B
From Table A
UNION
Select Time, Column X, Column Y
From Table B
```
Data will come as below from both queries:
from Table A-
```
Time |Column A |Column B|
Oct-17 | 20 | 10 |
Nov-17 | 25 | 15... |
2018/03/06 | 870 | 3,102 | <issue_start>username_0: So I've been stuck on this for a while and I can't find anything on google for this *specific* thing.
I have this small snippet of code
```
$link = mysqli_connect("localhost", 'username','password',"database");
$sql = "SELECT * FROM `uploads` ORDER BY id DESC LIMIT 0, 1";
```
Which *should*... |
2018/03/06 | 1,173 | 3,577 | <issue_start>username_0: I'm banging my head against the wall with some basic Python importing. I have simplified the problem as much as possible hoping I'd be able to expand this to a larger scale if I understand how this works
**Here is the dilemma** -
`run.py` from inside the submodule `p1` works, but NOT when i... |
2018/03/06 | 417 | 1,306 | <issue_start>username_0: I'm looking to get the output:
```
50ml milk
```
From the following code:
```html
* 50ml [milk
Milk
----
mill-k
One of the most widely used ingredients, milk is often referred to as a complete food. While cow…](/glossary/milk)
```
Currently I'm using the XPATH:
```
//ul[@class="i... |
2018/03/06 | 609 | 2,521 | <issue_start>username_0: How to finish the program? I mean that after executing it and closing the dialog the Java process does not finish. It can be viewed in Eclipse so the red icon is still active and the program does not finish.
```
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class Main {
... |
2018/03/06 | 771 | 2,799 | <issue_start>username_0: I am getting svgs icons from my designer that looks like the following:
```
icons/Search
Created with Sketch.
```
The problem is that the id's that used by the `use` and `mask` tags are not unique and can be the same in another SVG that I get.
There is a way to flat this or something? I ... |
2018/03/06 | 1,026 | 3,093 | <issue_start>username_0: I want to get first number from the string before the word 'minimum', preceeded by a space and not succeeded by '-'. Example:
* shouldn't match the words 2-3, TT-89 etc; (ie, a number followed by - and another number or alphabets followed by - and numbers)
* should match the word 2-rolls (ie, ... |
2018/03/06 | 2,589 | 9,196 | <issue_start>username_0: I have downloaded two different 3D models from Sketchfab. i imported both model in ARKit 3D object placing. While placing the 3D models the node is not properly aligning with the manipulator for one of the models..
i have attached screenshot.
[ => {
var requestedResult;
for (i = 0; i < EventIDList.length; i++) {
queryEvent(E... |
2018/03/06 | 508 | 2,037 | <issue_start>username_0: For test automation purposes, we're currently investigating upon how we can have a fixed phone registered with a Skype for Business IP-PBX (e.g. an AudioCodes phone or a Yealink phone or...), make an outgoing call upon request.
E.g. Our test automation platform would send a request to the Skyp... |
2018/03/06 | 562 | 2,414 | <issue_start>username_0: I'm trying to implement the tablayout, I would like to set width of the tab depending on text content in individual tabs, right now it is set equally, which results on small text, tab width feels higher.<issue_comment>username_1: Try this! It will reduce your efforts.
```
```
Upvotes: 1 <issu... |
2018/03/06 | 304 | 990 | <issue_start>username_0: I was recently asked this question in an interview, but I don't know the optimal approach. Can someone point me into right direction.
The Expected time complexity was O(nlogn) and space complexity required was O(1).<issue_comment>username_1: You want to compute the [pareto-frontier](https://en... |
2018/03/06 | 533 | 1,648 | <issue_start>username_0: I'd like to display only a the first three chips of a list, and put a marker that there are more to see (like three dots for example).
Is there a way to do so with the directive ?
I'd prefer specify that I'm talking about a read-only chips list, not editable. I've tried with `md-max-chips` b... |
2018/03/06 | 574 | 2,328 | <issue_start>username_0: For example when we write:
```
int * p = new int[5];
```
at which memory segment the memory will be allocated?
In `C` I know that when we use `malloc()` it allocates memory in `heap` section but for `C++` I am not sure. I read that, for `new()` **memory allocated from free store** and for `m... |
2018/03/06 | 544 | 2,009 | <issue_start>username_0: I'm trying to overload the OAuth ID Token by adding additional claims. I can already use the Graph API to get the claims that I need but I would like to understand if it's possible to add the additional claims directly into the ID Token? I've updated the manifest by adding the required claims i... |
2018/03/06 | 153 | 534 | <issue_start>username_0: I want to share my local `WebSocket` on the internet but `ngrok` only support `HTTP` but my `ws.py` address is `ws://localhost:8000/`
it is good working on localhost buy is not know how to use this on the internet?<issue_comment>username_1: You can use `ngrok http 8000` to access it. It will w... |
2018/03/06 | 255 | 1,014 | <issue_start>username_0: I use the `userid` for validation like this:"`index.php?ui=XX`".
How can I hide the number or change it to another number?
I don't want to users see id number.
Thanks.<issue_comment>username_1: Depends on why you don't want to show it.
If it's because you don't want the users to guess th... |
2018/03/06 | 1,527 | 4,976 | <issue_start>username_0: I came across the **PermMask** values while using *JSLink* in SharePoint Online for checking permissions of user from the `ctx.CurrentItem.PermMask`
The values for different permissions aren't matching with the Microsoft's documentation, any idea what these values represent? or they have to be... |
2018/03/06 | 835 | 3,380 | <issue_start>username_0: I have executed this command to create a 'Users' table:
```
php artisan migrate
```
But after that I have created one new migration file using below command and want to create a 'Contact us' table
```
php artisan make:migration contactus
```
After both commands whenever I execute below co... |
2018/03/06 | 673 | 1,516 | <issue_start>username_0: I have two Series, where I want to replace the values in s1 by the categorical index from s2 (which is always sorted from small to big). The first index should be returned where the value from s1 is bigger than the value from s2:
```
s1 = pd.Series([-0.225, -0.5321, 0.2341, 0.467])
0 -0.2250... |
2018/03/06 | 554 | 1,889 | <issue_start>username_0: How to set following Cassandra write parameters in spark scala code for
version - DataStax Spark Cassandra Connector **1.6.3**.
Spark version - 1.6.2
spark.cassandra.output.batch.size.rows
spark.cassandra.output.concurrent.writes
spark.cassandra.output.batch.size.bytes
spark.cassandra.ou... |
2018/03/06 | 878 | 2,697 | <issue_start>username_0: I am need to create a table on MS SQL 2014 showing a date and a weekday column. It need to start at 2014-01-01 and the last day should be today. It should look like the one bellow:
```
days_date weekday
2014-01-01 Wednesday
2014-01-02 Thursday
2014-01-03 Friday
... |
2018/03/06 | 2,527 | 10,332 | <issue_start>username_0: I'm trying to set-up an AWS-lambda using [aws-sdk-go](https://github.com/aws/aws-sdk-go) that is triggered whenever a new `user` is added to a certain [dynamodb](https://aws.amazon.com/dynamodb) table.
Everything is working just fine but I can't find a way to unmarshal a map `map[string]Dynamo... |
2018/03/06 | 647 | 2,162 | <issue_start>username_0: In Oracle,
We can declare an input-output parameters (not just input **or** output) like the following:
```
Create Or Replace Procedure USERTEST.SimpleInOutProcedure(
p_InputInt Int,
p_OutputInt out Int,
p_InputOutputInt in out Int
) AS
BEGIN
p_OutputInt := p_InputInt + 1;
... |