date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/16 | 559 | 2,045 | <issue_start>username_0: I purchased a wordpress theme, which came with custom plugin, that allows custom posts, which is titled 'tour'.
The permalink to view the custom post currently is site.com/tour/post-name
I am trying to change the /tour/ so I have updated all the code in the files of the plugin folder from 't... |
2018/03/16 | 1,092 | 3,760 | <issue_start>username_0: **for those not into reading 20 comments to look for the answer. here is what worked for me:**
1. the tableView is View Based, not Cell Based (attributes inspector)
2. tableView.reloadData() wasn’t fast enough. using insertRow(at[0]:withAnimation:.leftSlide) instead worked fine
3. make sure th... |
2018/03/16 | 826 | 2,661 | <issue_start>username_0: I wish to put an image after a few items in a Wordpress site. I don't want to place an image after all similar items, only specific ones.
Thankfully each specific item generates it's own css class.
I thought using `:after` would be the answer but i'm failing somewhere.
```
#####
Onion Sou... |
2018/03/16 | 963 | 3,150 | <issue_start>username_0: Is it possible to make an API which prints database records like this: `http://localhost:8000/products/?compare=1-2-N...(1,2,N) product id's.` I have succeeded printing only one record. My route:
```
$router->get('products/{id}','ProductController@getProduct');
```
and my controller:
```
pu... |
2018/03/16 | 686 | 2,304 | <issue_start>username_0: I'd like to apply `text-overflow: ellipsis;` to the [mat-panel-description](https://material.angular.io/components/expansion/api#MatExpansionPanelDescription) of a [mat-expansion-panel](https://material.angular.io/components/expansion/overview):
```
.mat-expansion-panel-header-description {
... |
2018/03/16 | 1,021 | 3,400 | <issue_start>username_0: I am trying to place two image buttons and some text on a single line. Here is the XML for the layout:
```
xml version="1.0" encoding="utf-8"?
```
The selector XML for each of the buttons in drawable:
`button_delete.xml`:
```
xml version="1.0" encoding="utf-8"?
```
`button_add.xml`:
```... |
2018/03/16 | 370 | 1,297 | <issue_start>username_0: I use WebStorm for React JS and I'm getting this 'Unresolved variable warning' for all props.
I searched for solution everywhere but couldn't find. Whenever i pass down prop value and then use it as this.props.something, that something is unresolved. App works fine and there is no problem, it'... |
2018/03/16 | 878 | 2,666 | <issue_start>username_0: I'm running a quick test to make sure I have my pointer arithmetic down:
**main.c**
```
#include
#include
#define ADDRESS 0xC0DCA11501LL
#define LENGTH 5
void print\_address( char \*, char );
/\* Main program \*/
int main( int argc, char \*argv[] )
{
char nums[ LENGTH ];
/\* LSB first... |
2018/03/16 | 2,107 | 4,921 | <issue_start>username_0: How can i divide a number multiple levels, i have a number and a list with 3 values, step 6 has the expected output, but i am not able to get it
```
Number = 500
Divide=[5,6,9]
```
**Step1:**
Get the number and divide by sum of numbers in divide list
```
500/ (5+6+9) = 25
```
**Step 2:... |
2018/03/16 | 1,007 | 3,812 | <issue_start>username_0: I am trying to exclude some .swift and .storyboard files from my project (Xcode9) for release build using `EXCLUDED_SOURCE_FILE_NAMES`.
But its not working for me.
Is it possible to give any folder name to exclude it completely?
How to give multiple files and folder name?
It is not working if... |
2018/03/16 | 850 | 3,180 | <issue_start>username_0: I want the data out of while or for loops in Stacked Sequence Structure after each iteration..
I want the data out of loops even if it is not stopped that is after each iteration.. to see the plot of data at each iteration and continue to the next loop in the same plot
[
df
col_a col_b
0 0 5
1 0 2
2 0 8
3 1 3
4 1 7... |
2018/03/16 | 3,116 | 9,396 | <issue_start>username_0: Is there any way to add a label on or near the center of a geom\_curve line? Currently, I can only do so by labeling either the start or end point of the curve.
```
library(tidyverse)
library(ggrepel)
df <- data.frame(x1 = 1, y1 = 1, x2 = 2, y2 = 3, details = "Object Name")
ggplot(df, aes(x ... |
2018/03/16 | 534 | 1,716 | <issue_start>username_0: I'm trying to specify a variable for opening up a file with a particular app, but no matter how I attempt to reference it, it's not working.
```
sublime1=/Applications/Sublime\ Text.app/
sublime2="/Applications/Sublime\ Text.app/"
sublime3="/Applications/Sublime Text.app/"
```
I've been tryi... |
2018/03/16 | 698 | 2,173 | <issue_start>username_0: I'm using the following code, where month is the current month(where am I):
```
lastDayOfLastMonth = month === 0 ? new Date(year - 1, 11, 0).getDate() : new Date(year, month, 0).getDate();
```
the idea, is if I'm on the first month of an year, the previous month is the last month of the pre... |
2018/03/16 | 667 | 2,725 | <issue_start>username_0: Context:
We have Java application on Maven and Spring framework.
We are using a third party library in our project where classes from the library have to be imported this way(for example):
```
import com.doodle.api.v201709.Class1;
```
As a result,whenever there is a version change , it is no... |
2018/03/16 | 380 | 1,288 | <issue_start>username_0: I am writing a telegram bot in Python. I want to send messages with bold letters. I tried to inclose message inside both `*` and `**`, but it does not solve the problem.
Is there a function for mark up or HTML formatting or a way to do it?<issue_comment>username_1: You should use:
```
bot.sen... |
2018/03/16 | 328 | 1,390 | <issue_start>username_0: I'm new to SLAM and I'm sure the question is dumb, but I'd really like to know how this pose and area data accumulation goes in SLAM. Once an algorithm initializes it starts to track pose (and write somewhere (where?) a sequence of coordinates) and recover a map (a point cloud stored somewhere ... |
2018/03/16 | 770 | 2,722 | <issue_start>username_0: I am trying to flatten a multidimensional array into a one dimensional array using a recursive function.
My single dimension array `elements` is returning `undefined`
JS Bin with my example, [here](http://jsbin.com/woxebozudo/edit?html,js,console,output).
HTML:
```
```
JS:
```
// elemen... |
2018/03/16 | 1,007 | 4,913 | <issue_start>username_0: How do I access the activity instance from within a nested onclicklistener within an adapterview? I have tried all sorts of things (context/ getcontext()) but they do not work. I am having the issue in the check permission if statement below.
```
public MyViewHolder onCreateViewHolder(ViewGrou... |
2018/03/16 | 1,120 | 3,734 | <issue_start>username_0: I have a webpage with a button and a paragraph of text. A click on the button should show or hide the paragraph. When the paragraph is shown initially, everything works fine. But when the paragraph is hidden, the first click has no consequence - the code works fine from the second click on. Why... |
2018/03/16 | 1,199 | 3,805 | <issue_start>username_0: I want to sort points in 2D coordinate system by their distance to the origin (0,0) in increasing order. I found [this](https://stackoverflow.com/questions/2531952/how-to-use-a-custom-comparison-function-in-python-3) and tried something, but still I could not get desired result.
Here is my cod... |
2018/03/16 | 300 | 1,074 | <issue_start>username_0: I have the root project-folder. Where each php files are in specific folder.
For each nav items, I have passed the php page through href="" tag.
When I click on the nav item it then takes me to the requested page as passed in href. But when from that page if i choose other nav items it s... |
2018/03/16 | 405 | 1,462 | <issue_start>username_0: My compiler gives me an error for the following code:
```
#include
#include
using namespace std;
void test()
{
throw runtime\_error("Error");
}
int main()
{
try
{
test();
}
for (int i = 0; i < 10; i++)
{
}
catch (exception& e)
{
cout << e.what();
}
}
```
It says "error: e... |
2018/03/16 | 405 | 1,438 | <issue_start>username_0: ```
import smtplib
sender = '<EMAIL>'
receivers = ['<EMAIL>']
message = """From: User
To: To user\_2
Subject: message
this is a test megssage.
"""
try:
smtpObj = smtplib.SMTP('localhost')
smtpObj.sendmail(sender, receivers, message)
print ("Successfully sent email")
except smtplib.SMTP... |
2018/03/16 | 1,783 | 6,320 | <issue_start>username_0: I really want to learn and understand how to concatenate strings with the cursor approach.
Here is my table:
```
declare @t table (id int, city varchar(15))
insert into @t values
(1, 'Rome')
,(1, 'Dallas')
,(2, 'Berlin')
,(2, 'Rome')
,(2, 'Tokyo')
,(3, 'Miami')
,... |
2018/03/16 | 598 | 2,126 | <issue_start>username_0: Getting a bit stuck trying to build this query. **(SQL SERVER)**
I'm trying to join two tables on similar rows, but then stack the unique rows from both table 1 and table 2 on the result set. I was first shooting for a full outer join, but it leaves my key fields blank when the data comes from... |
2018/03/16 | 780 | 3,196 | <issue_start>username_0: ViewToken.class:
```
spinnerGenre = (Spinner) findViewById(R.id.spinnerGenres);
spinnerGenre1 = (Spinner) findViewById(R.id.spinner);
docname = spinnerGenre1.getSelectedItem().toString();
session = spinnerGenre.getSelectedItem().toString();
next=(Button)findViewById(R.id.... |
2018/03/16 | 640 | 2,571 | <issue_start>username_0: I've picked up on a project that's a few years old, and noted CURRENT\_TIMESTAMP is being sent with a lot of the php calls to update the datetime field in a lot of rows. This works perfectly on the live environment - however, on my local setup, it does not.
Both the Live DB, and my local versi... |
2018/03/16 | 451 | 1,591 | <issue_start>username_0: This call is being made from my service to retrieve a URL to download a document:
```
return this.http.get(this.buildUrl('issueDocument', 'get', pathParams), { responseType: 'blob', params: queryParams });
```
The buildURL inside this.http.get is working properly I've tested it however, the ... |
2018/03/16 | 695 | 2,323 | <issue_start>username_0: In cassandra DB I am planning to store an array-of-object. What is the best way to do that. object mapping to Data mapping with model class in java.
```
Class Test{
@Column(name = "id")
int id,
@Column(name = "name")
String name,
Address[] address
class Address{
String add1... |
2018/03/16 | 332 | 1,292 | <issue_start>username_0: I am new to React and I am doing some tutorials online.
Now I have task like this:
*If the Component in the following code is a Stateless Functional Component, what expression would you write to access the items prop inside the Component?*
```
```
I have no idea what is correct answer and ... |
2018/03/16 | 391 | 1,223 | <issue_start>username_0: Is it possible to use telnet in a interactive mode with curl?
When I connect with window's telnet command it does behave as a telnet client and I can interact with it.<issue_comment>username_1: An unusual way to phrase that question but, yes. Yes indeed. My personal favorites are (in no partic... |
2018/03/16 | 331 | 1,078 | <issue_start>username_0: ```
<!--This is in in the body section.--!>
### paragraphs
/p>
paragraph 1
paragraph 2
paragraph 3
paragraph 4
var x = document.querySelector("#div11 p:nth-child(2)");
document.write(x);
```
This html code returns null. However, it works fine when I remove the < h3> tags from the first ... |
2018/03/16 | 415 | 1,410 | <issue_start>username_0: I am trying to select a random row from a column in my database.
I need the query to search/make sure that the random row selected is not equal to any of the values stored in two other columns.
Example:
**DATABASE NAME: database\_name**
**TABLE1 contains one column: male\_id**
**TABLE2 con... |
2018/03/16 | 503 | 1,465 | <issue_start>username_0: Is it safe to directly compare ISO Date Strings like this:
`"2018-03-16T18:00:00.000z" > "2018-04-16T18:00:00.000z" // false`
It seems as long as leading zeros are used (proper ISO formatting) this comparison is safe and there is no need to convert the values to Date Objects. Am I overlooking... |
2018/03/16 | 363 | 1,420 | <issue_start>username_0: I have a word template that prompts the user for some text when opens a new document. I'm using the Fill-In field to do that and works fine.
My question is: How can I reference the Fill-In field to assign the user text to Title of the document ?
I'm using this code, but it's not working:
```... |
2018/03/16 | 1,274 | 4,519 | <issue_start>username_0: I am new to python 3 and I'm working on sentiment analysis of tweets. My code begins with a for loop that takes in 50 tweets, which i clean and pre-process. After this (still inside the for loop) i want to save each tweet in a text file(every tweet on a new line)
Here's how the code goes:
```
... |
2018/03/16 | 821 | 3,102 | <issue_start>username_0: Reading over stack overflow and the internet i can't find a solution for a problem that seems simple to solve, but... i can't get it.
The problem is pretty simple, `${match.path}/notas`} component={Dashboard} />` doesnt' render the `Dashboard` component... why? No idea.`
Here is the general c... |
2018/03/16 | 723 | 2,493 | <issue_start>username_0: Say I have an input that is stored in a `char c`, and in a conditional I need to check whether it is either of two different characters, for example `'n'` and `'N'`. It's obvious that I can make a conditional with a logical `OR` operator:
```
if(c == 'n' || c == 'N')
...
```
However, if ther... |
2018/03/16 | 430 | 1,420 | <issue_start>username_0: I am trying to get my footer to be stickied to the bottom when the page's content doesn't reach the end of the screen.
I am building an Angular 5 application.
I added the , and tags to my `app.component.html`.
I tried adding the required css from Materialize everywhere. In the global css f... |
2018/03/16 | 1,357 | 3,646 | <issue_start>username_0: I am still a beginner, sorry if it's a silly question, I will try to keep it short and specific.
So, I wanted to create a zooming out effect in an image grid using CSS grid display and transform scale properties.
The result I got was off from the desired result, I'll post images of both after... |
2018/03/16 | 627 | 2,370 | <issue_start>username_0: I'm finding I'm able to set the shadow image on the navigation bar, but I only want to set it when I'm scrolling and not able to find how to do this. any help appreciated!!<issue_comment>username_1: ```
func scrollViewDidScroll(_ scrollView: UIScrollView) {
let offset = scrollView.contentOf... |
2018/03/16 | 1,225 | 5,020 | <issue_start>username_0: I'm using FluentAssertions to compare two objects using `Should().BeEquivalentTo()` where one object is an EF dynamic proxy. However, it appears that the unification of `ShouldBeEquivalentTo` and `ShouldAllBeEquivalentTo` ([#593](https://github.com/fluentassertions/fluentassertions/pull/593)) i... |
2018/03/16 | 1,187 | 4,914 | <issue_start>username_0: I've installed css-loader and style-loader. Then I configured webpack.dev and webpack.prod.
I suppose there's a problem with webpack because component's syntax isn't complicated.
The component ignores styles. Why?
package.json
```
"dependencies": {
"css-loader": "^0.28.11",
"prop-type... |
2018/03/16 | 243 | 857 | <issue_start>username_0: When i am trying to run my own flutter app in android studio it gives error like this
**This is my app screenshot:**

**This is my logcat:**
<issue_comment>username_1: The problem is that `Colors.black` is a s... |
2018/03/16 | 342 | 1,187 | <issue_start>username_0: The problem with the code, below, is that it removes **characters** from the string rather than the **words**.
```
php
$str = "In a minute, remove all of the corks from these bottles in the cellar";
$useless_words = array("the", "of", "or", "in", "a");
$newstr = str_replace($use... |
2018/03/16 | 1,351 | 2,502 | <issue_start>username_0: I have a data frame like this:
```
df = read.table(text="chr pos X1 X2 X3 X4 X5 X6 X7 X8 X9 X10
Chr11 24398311 Chr21 Chr21 Chr21 Chr21 Chr21 Chr21 Chr21 Chr11 Chr11 Chr17
Chr21 788729 Chr21 Chr21 Chr21 Chr21 Chr21 Chr11 Chr21 Chr11 Chr11 Chr... |
2018/03/16 | 1,725 | 6,138 | <issue_start>username_0: I have a class `Foo` defined in a header `foo.hpp`.
```
class Foo{
... some methods and properties ...
};
```
Furthermore, I need a function `bar()` which shall have the following properties:
* The function `bar()` shall be defined in the file `foo.cpp` and its symbols shall not be exporte... |
2018/03/16 | 2,880 | 9,969 | <issue_start>username_0: I am a beginner ASP.net coder. I understand that the controller is calling a List and the Model is calling a generic model and that this can be easily fixed be setting the model in the view to `@model IEnumerable`
But I want to be able to call the model in the view so I can call it in my view.... |
2018/03/16 | 813 | 2,825 | <issue_start>username_0: I have a boolean in my function that decide what function to call. Both of the function that are beying called giving back an Array.
Now in my eyes `Hex[] areaHexes` does exists but the compiler does not compile because it thinks its not set ( does not exists ).
How do I call one of both func... |
2018/03/16 | 431 | 1,542 | <issue_start>username_0: I have an anchor tag, that when clicked, I want an input to get focus and the page to scroll to the form. Neither are happening and I have no idea why because it's so simple. Here is the anchor tag:
```
[RSVP Now](#RSVPForm "RSVP Now!")
```
Here is the JavaScript:
```
const firstname = ... |
2018/03/16 | 1,444 | 3,711 | <issue_start>username_0: I am looking for a function in pandas that aligns data wrt to a different columns. For example, I have four columns, two times and two are identifiers.
```
id time id time
a , 1:10, a , 1:11
a , 1:12 , a , 1:13
b , 1:13 c , 1:15
c , 1:14
d , 1:1... |
2018/03/16 | 897 | 2,353 | <issue_start>username_0: Is there an easy way in Dask to push a pure-python module to the workers?
I have many workers in a cluster and I want to distribute a local module that I have on my client. I understand that for large packages like NumPy or Python I should distribute things in a more robust fashion, but I hav... |
2018/03/16 | 524 | 1,596 | <issue_start>username_0: I have this code:
```js
var utc = moment.tz(1521221491000, "UTC");
var local = utc.clone().tz(moment.tz.guess());
console.log(moment([2018, 03, 15]).fromNow());
console.log('moment() piece by piece: ' + moment().get('year') + ' ' + moment().get('month') + ' ' + moment().get('date') + '. Dat... |
2018/03/16 | 548 | 1,947 | <issue_start>username_0: I had created a text file with the SSRS file backup Microsoft says to backup. I was using a batch file to locate all the files in the directory structure.
Using the following commands
```
for /F %G in (C:\file.txt) dp dir /s /b %G >> c:\filepath.txt
```
It write the correct path out to the ... |
2018/03/16 | 2,786 | 6,548 | <issue_start>username_0: I have a list of multiple data frames. Example data:
```
df1 <- data.frame(Name=c("A", "B", "C"), E1=c(0, NA, 1), E2=c(1, 0, 1))
df2 <- data.frame(Name=c("A", "C", "F"), E1=c(1, 0, 1), E2=c(0, 0, 0))
ls <- list(df1, df2)
```
For each data frame, I'd like to create a new row at the bottom con... |
2018/03/16 | 481 | 1,658 | <issue_start>username_0: I am trying to define my own hashing function for `std::unordered_map` and I want to hash a field within a struct which is supposed to be the key. The code below is a simplified version of what I have:
```
struct TestStruct {
char a[64];
char b[64];
}
struct my_eq {
bool operator(... |
2018/03/16 | 484 | 1,666 | <issue_start>username_0: I am trying to create an accordion (either pure CSS or javascript/jquery). I have a list of links inside a span but need the accordion to work onclick of the first element inside this span and expand its following siblings like below:
```
[Header](#)
[Service 1](#)
[Service 2](#)
```
Her... |
2018/03/16 | 728 | 2,552 | <issue_start>username_0: I am having trouble installing paramiko on one system. This same command worked earlier, but then something changed and I had reinstall Python, and now paramiko will not install. I am using Windows 7 with Python 3.6.4.
Pip returns the following error:
```
C:\Users\me>pip --trusted-host pypi.py... |
2018/03/16 | 558 | 1,985 | <issue_start>username_0: This is my checkout.php page. I cant see after this form submitting charge will happen on stripe.
```
```
This is my process.php. But my problem is how to get any confirmation from stripe. If the charge is success or not.
```
session_start();
// Set your secret key: remember to change this ... |
2018/03/16 | 1,910 | 7,659 | <issue_start>username_0: I'm curious about how to effectively generate emails in a multilingual application.
For the sake of getting all answers aligned: let's say you have a typical commercial newsletter with lots of images, markup, and of course many textual paragraphs. Assume that all text does NOT come from a data... |
2018/03/16 | 2,041 | 7,983 | <issue_start>username_0: To preface, I'm completely new to NodeJs and MySQL.
I have a website running on Node with express like this
```
var express = require('express');
var app = express();
var path = require("path");
var mysql = require("mysql");
app.use(express.static('Script'));
var con = mysql.createConnectio... |
2018/03/16 | 894 | 3,446 | <issue_start>username_0: How can I get Jersey to inject classes without creating and registering factories on a one-for-one basis?
I have the following config:
```java
public class MyConfig extends ResourceConfig {
public MyConfig() {
register(new AbstractBinder() {
@Override
prote... |
2018/03/16 | 738 | 2,123 | <issue_start>username_0: I'm trying to make a transition to some 'a' tags. And which is that when it is mouse hovered, the underline is slowly grow from the left to the right on its text string.
I figured that I should make it with pseudo of the a tag, I succeed to make a similar transition, but it has a problem that ... |
2018/03/16 | 523 | 1,929 | <issue_start>username_0: I want to create a list of objects based of 2 lists from different types.
I have a code snippet right now that works, but I would like to see if it can be converted into LINQ to make it smaller and more efficient.
```
List regions = new List
{
new Region
{
Name = "America"
},
new Region
... |
2018/03/16 | 439 | 1,446 | <issue_start>username_0: I'd like to create a new zip file using python.
I'd like to zip files from different directories and put it in one zip file with custom folder structure.
My source will come from
```
/mydir/sample1.txt
/mydir/data/sample1_data.txt
```
The desired zip structure looks like this
```
sample1.... |
2018/03/16 | 484 | 1,597 | <issue_start>username_0: I have pandas data frame like this..
```
user pwd _message_
0 _robin_ | usi | _I like coffee_
1 _priya_ | ind | _I like green tea_
2 gate | ldn | _I like to play_
3 _Reh_ | ksm | _I respect others_
```
I have value "ksm", and I want to change the value of next column... |
2018/03/16 | 677 | 2,545 | <issue_start>username_0: I want to generate multiple airflow dags using one script. The dag names should be "test\_parameter". Below is my script:
```
from datetime import datetime
# Importing Airflow modules
from airflow.models import DAG
from airflow.operators import DummyOperator
# Specifying the default argument... |
2018/03/16 | 974 | 3,914 | <issue_start>username_0: I have written an angular 4.3.0 typescript library. While building my library I saw below error in \*.d.ts file.
>
> ERROR in [at-loader] ..\myLibrary\lib-commonjs\my-guard.service.d.ts:13:5
> TS2416: Property 'canActivate' in type 'MyGuard' is not assignable to the same property in base typ... |
2018/03/16 | 846 | 2,932 | <issue_start>username_0: On my Ionic app the ngx-translate is giving me this message on console:
>
> **.... assets/i18n/.json 404 (Not Found)**
>
>
>
With another details on HttpErrorResponse
So my app on BROWSER keeps giving this error, and when I build to use on phone it just trigger an alert message with this... |
2018/03/16 | 617 | 2,042 | <issue_start>username_0: Say I have a class with a method that takes a function as an argument. Is there any way to make this function change inclass variables?
```
def f():
# something here to change MyClass.var
class MyClass:
def __init__():
self.var = 1
def method(self, func):
#does so... |
2018/03/16 | 458 | 1,535 | <issue_start>username_0: I'm trying to count all values in a column `Value` that are over 5.
However, some results in that column appear like '>10' (it has the greater than symbol `>` in the field)
I'd like to still count that as > 5.
To do that, I did the following:
```
(COUNT(CASE WHEN t.VALUE LIKE '*>*'
... |
2018/03/16 | 968 | 3,540 | <issue_start>username_0: I was recently coming up with some rather funky singleton work and discovered that I can access a protected static member from any unique inherited type using the same base of inheritance where generics are used. An example of what I'm talking about is as follows:
```
public abstract class Cla... |
2018/03/16 | 537 | 1,753 | <issue_start>username_0: So far I have this which replaces the text in the input box if it has the object name in it, with the object value:
```
var obj = {
'1': 'fish',
'q': 'apple',
'z': 'banana',
};
$("#inputBoxID").on("keyup", function() {
if(obj.hasOwnProperty($("#inputBoxID").val())) $(this).val... |
2018/03/16 | 262 | 1,055 | <issue_start>username_0: Basically what the title states. I'm aware of what detached HEAD state is and how you get to one and how to checkout of it. But I was curious if there was a direct use case to have a detached HEAD.
Possibly better question: What is a real life dev scenario where you would want to checkout to ... |
2018/03/16 | 414 | 1,473 | <issue_start>username_0: I am going through a Maven tutorial and it mentions that you can lookup information about a dependency on ibiblio.org:
>
> Let's add another dependency to our project. Let's say we've added
> some logging to the code and need to add log4j as a dependency. First,
> we need to know what the g... |
2018/03/16 | 674 | 2,292 | <issue_start>username_0: Here is my code for the program.
```
#include
int main() {
int number;
printf("Enter an integer: ");
scanf("%d", &number);
printf("You entered: %d", number);
return 0;
}
```
If I enter an integer: `12345678912345678`
Result is Showing: `1578423886`
Why is this happening ?<issue_c... |
2018/03/16 | 765 | 2,834 | <issue_start>username_0: I am trying to remove item from a node in for each loop on my cloud function. But it always looking only first item. I want to loop all items. Here is my codes:
```
snapshot.forEach(function(child) {
console.log('all items');
return thisAppDb.ref('userRemindMatches/'+child.key+'/... |
2018/03/16 | 295 | 1,000 | <issue_start>username_0: I need to create a graph in HTML page with Flask.
I've used this tutorial:
<http://blog.ruanbekker.com/blog/2017/12/14/graphing-pretty-charts-with-python-flask-and-chartjs/>
My app has to run in offline mode eventually, so instead of using:
```
```
in my HTML file, i've copied the code in ... |
2018/03/16 | 192 | 746 | <issue_start>username_0: I'm doing cross browser javascript and the line of javascript below works fine in IE11 but doesn't work in Chrome.
```
selectedItem._element.childNodes[0].getElementsByTagName('input').item().checked;
```
The error message I get is: TypeError: Failed to execute 'item' on 'HTMLCollection': 1 ... |
2018/03/16 | 778 | 2,932 | <issue_start>username_0: I am trying to create an API App in **Azure App Service** with PowerShell.
The cmdlet I am calling always create a Web App by default. If it is possible, I would like to know how I can specify the type/kind to be `Api App` instead of `Web App`?
```
New-AzureRmWebApp -Name $name -Location $lo... |
2018/03/16 | 780 | 2,169 | <issue_start>username_0: I'm using POST Method and I want the PHP script to return the data in JSON format
//data 1:
```
```
//data 2:
```
```
**i want result be like :**
```
{id:1,name:"aa",stuff:"cc"},{id:2,name:"dd",stuff:"ff"}
```
I understand that if we use json\_encode($\_POST,true) i will have :
```
... |
2018/03/16 | 553 | 1,695 | <issue_start>username_0: I always have same problem when installing node-sass
sudo npm install -g node-sass
*gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/max/Sites/xxxxxxx/node\_modules/node-sass/build'*
I have update my node and npm version but the same nothing to do, it seems something with permi... |
2018/03/16 | 344 | 1,202 | <issue_start>username_0: I know it may sound very small issue but need to resolve, following is my SQL query
```
SELECT
CASE
WHEN A.ReleaseDate = '1900-01-01' THEN ''
WHEN A.ReleaseDate IS NULL THEN ''
ELSE ReleaseDate
END AS ReleaseDate
FROM XYZ
```
I can see `Releasedate` is `190... |
2018/03/16 | 454 | 1,802 | <issue_start>username_0: So i am currently developing a web app that will use laravel api for future mobile use and laravel passport. My passport is set up to where i used postman to login, register, and delete an account, the usual functions. The laravel API also works independently as can make the requests from my ro... |
2018/03/16 | 291 | 921 | <issue_start>username_0: I'm running a python script, where I have to convert a string column from a pandas `df` to `int`, using the `astype(int)` method. However, I get this following error:
```
"Python int too large to convert to C long"
```
My strings are all numbers in string format, up to 15 characters. Is ther... |
2018/03/16 | 810 | 3,150 | <issue_start>username_0: I have an old site that used to use `Identity` to get a new invoice number.
In SQL Server 2005, this worked fine, but since moving to SQL Server 2014, I get gaps (approx 1000 after a reboot).
Yes I know (now) you shouldn't use `Identity` for this. So I thought the solution would be using a `S... |
2018/03/16 | 1,448 | 4,995 | <issue_start>username_0: I have set up a custom single template for a specific category using the following:
```
// custom single template for specific category
function wpse_custom_category_single_template( $single_template ) {
// global $post;
// get all categories of current post
$categori... |
2018/03/16 | 507 | 1,693 | <issue_start>username_0: I want to make a JavaScript array contains the user's id of class `.user-status` to send to PHP by using ajax.
This is my HTML:
```
```
This is my JavaScript:
```
$('.user-status').each(function() {
$(this).attr('data-userid');
});
var users = ["", "", "", ""];
jQuery.ajax({
url:... |
2018/03/16 | 1,005 | 3,130 | <issue_start>username_0: I have 2 squares in a and I want that when I click one, it become black and the other don't.
My current code is working but I gave them the same function and `id`, so when I click the first, it work well, but when I click the second, it's the first one that changes.
I know whats wrong, b... |
2018/03/16 | 511 | 1,833 | <issue_start>username_0: The code below was copied directly from the current perlsyn page on perldoc.perl.org.
[I've added an initialization and declarations as needed to make it run (and it works as expected), but the point is the 'when' keyword]
Perl 5.24 complains about 'when' being experimental.
Fair enough, but I... |
2018/03/16 | 1,498 | 5,545 | <issue_start>username_0: I am implementing a client for communicate with some server by the cryptological way. The client sends get request with public RSA key to the server. Documentation "how to communicate with server" has the sample with java code. The following code generates the public key:
```
KeyPairGenerator ... |
2018/03/16 | 831 | 2,849 | <issue_start>username_0: We are using Facebook Graph API v2.9 to run "feed balancing" application: [Like What You Hate](https://likewhatyoubleep.com)
The app runs React served from a NodeJs server.
The app was running fine a few months ago (Dec. 2017) when we made some updates but we recently discovered that the app ... |
2018/03/16 | 814 | 2,286 | <issue_start>username_0: I am new to Pandas and Python. I will write my question over an example. I have a data such as
```
df = pd.DataFrame([[1, 2], [1, 3], [4, 6], [5,6], [7,8], [9,10], [11,12], [13,14]], columns=['A', 'B'])
df
A B
0 1 2
1 1 3
2 4 6
3 5 6
4 7 8
5 9 10
6 11 ... |
2018/03/16 | 400 | 1,405 | <issue_start>username_0: i'm filtering my view queryset base on the request query\_params but I don't like how i do it, is there any way to do this most pythonic?
```
def get_queryset(self):
qs = Publication.objects
if self.request.query_params.get('user'):
user = self.request.query_params.get('user')... |
2018/03/16 | 1,375 | 4,544 | <issue_start>username_0: * *Problem*: I want to show an `v-html` into the *modal* interface, and the content comes from an URL (ajax)... The snipped code is running, but it is bad, not professional: try to run. You click *GO*, take a message saying to *CLOSE* and click *GO* again...
I need to "[promisify](https://st... |
2018/03/16 | 695 | 2,499 | <issue_start>username_0: SQL queries are not one of my strong suits, and I have run into a problem that I was able to solve but am hoping to improve and make more efficient. I am using Laravel's Query Builder in these examples but don't mind using a raw request if I have to.
Currently I am making two queries as follow... |
2018/03/16 | 1,266 | 3,906 | <issue_start>username_0: I have a `Vec` of nontrivial types with a size I am certain of. I need to convert this into fixed size array. Ideally I would like to do this
1. without copying the data over - I would like to consume the `Vec`
2. without preinitializing the array with zero data because that would be a waste o... |
2018/03/16 | 997 | 3,415 | <issue_start>username_0: I'm trying to generate `kotlin` code from a swagger json file, and I can't figure out the command-line parameters that should be used.
I've tried Swagger codegen `v2.3.1` and `v2.2.3` and both fail for `kotlin`, `kotlin-client`, and `kotlin-server` with the same error. What's the correct swit... |