date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/14 | 586 | 2,047 | <issue_start>username_0: I would like to set the text of the label. Unfortunately the number 36 will change on each page refresh.
```
TEXT HERE
```
I can get the ID by using:
```
var id = document.getElementsByName('Incident.CustomFields.c.other_action_taken')[0].getAttribute('id');
```
How can I then use this to... |
2018/03/14 | 880 | 3,594 | <issue_start>username_0: First, new to creating Bots so please be patient.
I created a KB using QnAMaker. Created new Bot in Azure Bot Service. New bot was created using Template for QnA. Followed the steps below per documentation:
>
> In Azure portal, open the newly created Web App Bot resource.
> Click on "Appl... |
2018/03/14 | 1,516 | 5,319 | <issue_start>username_0: I've installed Yii2 advanced app, I customized the signup according to my user database. After signing up I tried to log in and it says `"Incorrect username or password"`, my password is <PASSWORD> also I've checked it many times and it still does not work.
[,
co... |
2018/03/14 | 1,462 | 5,307 | <issue_start>username_0: I wan't to have multiple AdminSite on my Django project and I don't want to give every user the superuser role just to see and edit the models of the application.
Here is the layout of my project:
```
> djangoApp
> djangoApp
- settings.py
- etc...
> AAA
- admin... |
2018/03/14 | 468 | 1,616 | <issue_start>username_0: After upgrading my rest service from Spring Boot 1.5.10 to 2.0.0 I encountered my tests failing which passed before.
Following Scenario:
```
import org.mockito.internal.matchers.Null;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
...
.andExpect(js... |
2018/03/14 | 2,779 | 9,346 | <issue_start>username_0: I am trying to add Google Analytics to a React Web Application.
I know how to do it in HTML/CSS/JS sites and I have integrated it in an AngularJS app too. But, I'm not quite sure how to go about it when it comes to react.
With HTML/CSS/JS, I had just added it to every single page.
What I had... |
2018/03/14 | 590 | 1,842 | <issue_start>username_0: I'm using ag-Grid on my application and I have it ruining fine with the default theme (ag-theme-balham).
On one specific component I want to change the header background color, but when I add the CSS on my component.scss file nothing happens.
I added the ag-Grid css on my angular-cli.json fil... |
2018/03/14 | 3,764 | 10,804 | <issue_start>username_0: I have nested query where in i am filtering the present days data and later aggregating the data using date-histogram aggregation with hourly interval, but in date-histogram output it is returning the previous day's data also. is filter is not working?
Here is my Query:
```
POST finalalertbro... |
2018/03/14 | 507 | 1,911 | <issue_start>username_0: I am trying to build an interactive shell-like terminal program in Python3 for a school project.
It should be easily expandable and not rely on non-python-builtin modules.
For this matter, I made a module, which is imported and contains something like this:
```
commandDictionary={
"command"... |
2018/03/14 | 250 | 845 | <issue_start>username_0: I need disable scroll of ion-content because im using ion-scroll on a custom component. Already tried set no-bounce and ion-fixed on ion-content. I also tried set this css:
```
.content .scroll-content {
overflow: hidden;
}
```
but it doesnt works.
I just need disable the scroll of c... |
2018/03/14 | 300 | 946 | <issue_start>username_0: I'm completely new to three.js, I'd like the smoke canvas to on top of the image to have a transparent background.
the canvas sits behind the image at the moment, that's why I have this css below.
```
canvas{
position: absolute;
z-index: 2;
top:0px;
left: 0;
}
```
I don't un... |
2018/03/14 | 1,500 | 4,551 | <issue_start>username_0: I have a dataframe, where each row corresponds to a string. I want to remove certain words from these strings - here is how I do it using a lambda-function:
```
def remove_words(s):
return s.apply(lambda x: [x for x in x if x not in ["name", "is", "m"]])
s = pd.DataFrame({"s":["Hi my ... |
2018/03/14 | 1,178 | 3,788 | <issue_start>username_0: Consider this simple makefile:
```
all: output.txt
# The actual build command won't be this simple.
# It'll more be like "some-compiler file1.txt",
# which includes file2.txt automatically.
output.txt: file1.txt
cat file1.txt file2.txt > output.txt
file2.txt:
echo "heyo" > file2.txt
... |
2018/03/14 | 285 | 1,096 | <issue_start>username_0: [enter image description here](https://i.stack.imgur.com/OwF3H.png)
When the webpack is downloaded, the prompt has been installed, but the use of instructions can't be used. Where is the problem?<issue_comment>username_1: Try to install webpack-cli. For that run:
`npm install webpack-cli -g`
... |
2018/03/14 | 1,389 | 4,135 | <issue_start>username_0: I have recently updated ChromeDriver to 2.36 after chrome was auto updated to v65.
But on running test now i am getting below exceptions
```
Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 10482
Only local connections are allowed.
Exception in thread "mai... |
2018/03/14 | 954 | 3,054 | <issue_start>username_0: In jxbrowser application, I am trying to zoom in or out to change the application scale with CTRL + wheel up/ down.
Is there any option to allow CTRL + wheel up or down in order to change the application scale?<issue_comment>username_1: Here are the arguments I use:
```
ArrayList args = new Ar... |
2018/03/14 | 762 | 2,884 | <issue_start>username_0: So this is what i had first:
```
$app->get('/object/{id:[0-9]+}', function ($request, $response, $args) {
$id = (int)$args['id'];
$this->logger->addInfo('Get Object', array('id' => $id));
$mapper = new ObjectMapper($this->db);
$object = $mapper->getObjectById($id);
retu... |
2018/03/14 | 871 | 3,165 | <issue_start>username_0: I have set status bar style to Light. When my MainPage opens, the status bar text becomes black.
My MainPage is a TabbedPage. When I set MainPage to a page that has ContentPage, the status bar text becomes white as expected.
Info.plist
```
UIStatusBarStyle
UIStatusBarStyleLightContent
UIView... |
2018/03/14 | 391 | 1,355 | <issue_start>username_0: Is there any way to run jobs from the stage in subsequent order? I've tried to do it with dependecies
```
job1:
stage:deploy
...
job2:
stage:deploy
dependencies:
- job1
```
but it gives me an error "dependency job1 is not defined in prior stages".
Is there any workaround?<issue_c... |
2018/03/14 | 1,036 | 3,518 | <issue_start>username_0: I am currently trying to make a game app in Windows with XAudio2 and I cannot figure out how to make the application not block when playing a sound. I tried calling a new thread in the samples in [this repository.](https://github.com/walbourn/directx-sdk-samples/tree/master/XAudio2)
But it wil... |
2018/03/14 | 359 | 1,130 | <issue_start>username_0: My PhpStorm IDE does not recognize the fluid view helper. Currently working with PhpStorm 2017.3.3
I installed the Fluid Plugin from sgalinski and added in the Schema and DTDs following xsd file <https://fluidtypo3.org/schemas/fluid-master.xsd> and linked it to following URI <http://typo3.org/... |
2018/03/14 | 1,035 | 3,831 | <issue_start>username_0: I'm working on a new application, based on templates, STL, namespaces, ... (my collegues have taken all necessary steps to make a mess), now I just want to add a property to a class, and this does not work, let me show you):
Within a header-file:
```
namespace utils{
class Logging_Manager : ... |
2018/03/14 | 2,275 | 8,223 | <issue_start>username_0: I'm trying to create a dataset from a CSV file with 784-bit long rows. Here's my code:
```
import tensorflow as tf
f = open("test.csv", "r")
csvreader = csv.reader(f)
gen = (row for row in csvreader)
ds = tf.data.Dataset()
ds.from_generator(gen, [tf.uint8]*28**2)
```
I get the following err... |
2018/03/14 | 2,877 | 10,294 | <issue_start>username_0: We are performing performance testing and tuning activities in of our projects. I have used JVM configs mentioned in this [article](http://blog.sokolenko.me/2014/11/javavm-options-production.html)
Exact JVM options are:
```
set "JAVA_OPTS=-Xms1024m -Xmx1024m
-XX:MetaspaceS... |
2018/03/14 | 2,162 | 6,558 | <issue_start>username_0: I'm making an array that will look like this `var qwe = [[a,b],[c],[d]]` with the purpose of a and b being the identifiers.
a - d are coming from reading the DOM. My current JS is doing what I want it to but I want to combine the similar arrays by their identifiers. Running the below code will... |
2018/03/14 | 344 | 1,303 | <issue_start>username_0: I was going through the kernel source code and I found this statement:
```
char *tagp = NULL;
/* ...CODE... */
tagp = &descriptor->b_data[sizeof(journal_header_t)];
```
I wonder **why** this address is stored in a char pointer rather than any other type more related to what it represents, ... |
2018/03/14 | 795 | 2,853 | <issue_start>username_0: I am getting the following message in one of my commit message when I view my local git log.
>
> HEAD -> dev, origin/master, origin/dev, master
>
>
>
Can anybody please explain?
Update
======
Finally, I've come up with an explanatory answer:
* Head -> dev: This is showing the current b... |
2018/03/14 | 835 | 2,900 | <issue_start>username_0: I made a java project.
The project is....output log message and system.out.println message. just simple.
So I changed into a jar file(the name is LinuxSample.jar).
and I wrote a shell script to run this jar file.
Look at this shell script. (speakee is package name and PrintLinux is main class n... |
2018/03/14 | 838 | 2,815 | <issue_start>username_0: Can anyone explain to me why these two conditions produce different outputs (even different count() )?
FIRST:
```
(df
.where(cond1)
.where((cond2) | (cond3))
.groupBy('id')
.agg(F.avg(F.column('col1')).alias('name'),
F.avg(F.column('col2')).alias('name'))
).count()
```
SECOND:
``... |
2018/03/14 | 791 | 3,305 | <issue_start>username_0: I'm trying to add notepad++ editor in git config using:
`git config --global core.editor "C:\LegacyApp\Notepad++\notepad++.exe"`
The error I'm getting is:
`error: failed to write new configuration file H://.gitconfig.lock`
I can't locate `.gitconfig.lock` file anywhere.
I have already chec... |
2018/03/14 | 876 | 3,196 | <issue_start>username_0: I feel like I'm close but something is amiss. I'm getting undefined method 'each' in my show page.
My show has the following:
```
Name:
<%= @region.name %>
Location
<%= @region.each do |region| %>
<%= region.location.name %>
<% end %>
```
In my Regions Controller I have the followin... |
2018/03/14 | 803 | 2,916 | <issue_start>username_0: I am totally new to Angular so please be forgiving:).
I try to come up with an Overview Page (overview.component) which shows a list consisting of Product Ideas (idea.component).
The code of the **Overview Component (overview.component)** looks as follows:
```
import {Component, TemplateRef}... |
2018/03/14 | 884 | 3,030 | <issue_start>username_0: im working on django rest and angular this json array is comming from server ic contain category and subCategory values..
im trying to build a dynamic navbar so i want to arrange this data like
`[
[web development] : ["subCat1","subcat2",....]
[android development] : ["subCat1","subcat2",....]... |
2018/03/14 | 842 | 2,882 | <issue_start>username_0: I have been getting this error on Nopcommerce all day, the site was workign normally before then all of a sudden started getting
>
> Error while running the 'Keep alive' schedule task. The remote server
> returned an error: (500) Internal Server Error.System.Net.WebException:
>
>
> The r... |
2018/03/14 | 507 | 1,704 | <issue_start>username_0: I want to iterate through my table, check to see if the Quantity received is higher than the quantity expected for each row, and if so execute some code.
The way I've done it below feels amateurish.
```
bool allRecieved = true;
foreach (DataRow row in SubVwr.Tables[0].Tbl.Rows)
{
if(row["... |
2018/03/14 | 432 | 1,485 | <issue_start>username_0: If a textfile contains a character, say space, as both a delimiter and part of text, how should we read the file using pandas read\_csv, read\_table or file read?<issue_comment>username_1: You can use LINQ, for better readability (presuming those are `int`-columns):
```
bool allRecieved = SubV... |
2018/03/14 | 361 | 1,221 | <issue_start>username_0: I'd like to have two side menus in a dropdown in the navbar. In order to accomplish that I'd like to use flexbox. However the words are wrapping and i would like them not to and instead grow to fit the width of the content.
**Tip**: You'll need to expand the fiddle's rendering width to avoid ... |
2018/03/14 | 901 | 2,951 | <issue_start>username_0: CakePHP 3.x
According to the [docs](https://book.cakephp.org/3.0/en/orm/query-builder.html)
>
> To limit the number of rows or set the row offset you can use the `limit()` and `page()` methods:
>
>
>
```
// Fetch rows 50 to 100
$query = $articles->find()
->limit(50)
->page(2);
```
Wha... |
2018/03/14 | 476 | 1,742 | <issue_start>username_0: How I can check if event was fired programmatically?
Namely I have an [`Ext.tree.Panel`](http://docs.sencha.com/extjs/6.2.1/classic/Ext.tree.Panel.html) and listen for it `selectionchange` event. How I can check within handler if event was fired manually by user (row click) or via `select()` m... |
2018/03/14 | 920 | 3,734 | <issue_start>username_0: I am new to XML - XSLT transformation. I have the following XML file and the corresponding XSLT file but for some reason, it does not display anything pass the h2, which is an HTML. Any help will be great!
I have checked the namespace to make sure it matches the XML document, and I also tried... |
2018/03/14 | 603 | 2,146 | <issue_start>username_0: I use laravel 5.6
I use <https://laravel.com/docs/5.6/validation#form-request-validation> to validation server side
My controller like this :
```
php
....
use App\Http\Requests\UserUpdateRequest;
class UserController extends Controller
{
...
public function update(UserUpdateRequest... |
2018/03/14 | 2,574 | 5,571 | <issue_start>username_0: If someone had this issue, I will be sincerely thankful for your help.
I'm having this error sending local email with hotmail:
```
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/huey/consumer.py", line 169, in process_task
task_value = self.huey.execute(... |
2018/03/14 | 559 | 1,702 | <issue_start>username_0: I am performing calculations on 2 numbers like below :
```
No1 = 263
No2 = 260
Decimal places = 2
Expected output = 98.86
```
**Code :**
```
decimal output = 0;
int decimalPlaces = 2;
if (No1 > 0)
output = ((100 * Convert.ToDecimal(((No2 * 100) / No1))) / 100);
output = Truncate... |
2018/03/14 | 571 | 1,810 | <issue_start>username_0: I have been using Visual Basic and Visual Studio to create a nice GUI with severals tools for the print tech guys here. In this tool I would like the technicans to choose the correct .inf files and the populate a combobox with all the printer models listed in the file.
I know how to allow the... |
2018/03/14 | 327 | 1,166 | <issue_start>username_0: What is the right way of checking if a nested property exists?
```js
if (openResult.notification) {
if (openResult.notification.payload) {
if (openResult.notification.payload.additionalData) {
if (openResult.notification.payload.additionalData.sensorOpenWarning) {
... |
2018/03/14 | 553 | 2,077 | <issue_start>username_0: Please help me, I stuck at likely simple task. I'm learning to webdriverjs , so I wrote a small code to register an account on FitBit site at url: www.fitbit.com/signup, after input my email and password, there is an div popup show up and ask user to fill all required field. Problem comes here,... |
2018/03/14 | 621 | 2,193 | <issue_start>username_0: Im getting this error
```
java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:124)
at org.openqa.selenium.... |
2018/03/14 | 715 | 2,431 | <issue_start>username_0: I have 2 tables, parent and child. I am making a procedure which will take id as input and give the output from both the tables. If a row is not found in table 2 it will give an exception.
For this, I used a cursor for select statement and passed it as out parameter in my procedure, but I am c... |
2018/03/14 | 1,682 | 6,280 | <issue_start>username_0: I've been using Jupyter Notebooks for a couple of years now. I've just headed over to Jupyter Lab, but I've found the lack of shortcuts to be a burden.
For example, I noticed that I can search for commands in the left hand palette. **But I can't seem to easily bind them to a keyboard shortcut.... |
2018/03/14 | 1,055 | 4,010 | <issue_start>username_0: **Criteria:** I'm trying to connect to a secured web service API called BigCommerce using GWT RequestBuilder.
This is my entry point:
```
public class GwtTest implements EntryPoint {
String url = "http://my-url-api/api/v2/products.xml"; // not the original url i'm using
@Override
... |
2018/03/14 | 1,516 | 5,973 | <issue_start>username_0: I have a Workday studio integration to send a GET request to a vendor's API using an HTTP component, but I'm receiving the error below. The vendor doesn't have a username/password to connect. I have to connect using a token. Does anyone know how to make this work from Studio to GET data?
**Rea... |
2018/03/14 | 1,305 | 3,341 | <issue_start>username_0: I trying to delete 6,7 and 8th character for each line.
Below is the file containing text format.
Actual output..
```
#cat test
18:40:12,172.16.70.217,UP
18:42:15,172.16.70.218,DOWN
```
Expecting below, after formatting.
```
#cat test
18:40,172.16.70.217,UP
18:42,172.16.70.218,DOWN
```... |
2018/03/14 | 369 | 1,168 | <issue_start>username_0: I want to extract text from td tag containing br tags inside.
```
from bs4 import BeautifulSoup
html = " This is a breakline |"
soup = BeautifulSoup(html, 'html.parser')
print(soup.td.string)
```
Actual Output: `None`
Expected output: `This is a breakline`<issue_comment>username_1: This wi... |
2018/03/14 | 392 | 1,340 | <issue_start>username_0: In the following code, as none of the arguments is const, i can't understand why the second overload is called in the 3 following cases.
```
#include
#include
using namespace std;
void ToLower( std::string& ioValue )
{
std::transform( ioValue.begin(), ioValue.end(), ioValue.begin(), ::tol... |
2018/03/14 | 1,407 | 5,255 | <issue_start>username_0: I am trying to learn synchronization. Got stuck here according to what I have learned the following code should give 8000 as the final result but I am getting a random result like below
package threads;
```
import java.time.LocalDateTime;
public class A implements Runnable {
String na... |
2018/03/14 | 1,444 | 4,934 | <issue_start>username_0: I'm creating a POC for a Ganttproject for my company.
I'm using the Resource Gantt from Anychart version 8.1.0 in an Angular 5 web project.
And I've set up most of the chart finding different documentations and suggestions across the internet, but I got stuck on the click event now.
Following t... |
2018/03/14 | 524 | 1,907 | <issue_start>username_0: I have installed data dog agent on one of my virtual machines When I have altered my NSG so that all "Outbound-connections" are denied, I am still able to see "CPU metric" getting updated on Data dog dashboard. I would like to know where this information is going from Azure to Datadog.<issue_co... |
2018/03/14 | 443 | 1,543 | <issue_start>username_0: I started learning angularjs in w3schools tutorials. Below was an example that was given to write your custom services
```
app.service('hexafy', function() {
this.myFunc = function (x) {
return x.toString(16);
}
});
app.controller('myCtrl', function($scope, hexafy) {
$scop... |
2018/03/14 | 1,238 | 4,622 | <issue_start>username_0: I'm trying to call API using Retrofit and Android architecture components but I'm getting this error
>
> java.lang.RuntimeException: Failed to invoke public android.arch.lifecycle.LiveData() with no args
>
>
>
this is the data class for the response
```
data class ForecastResult(val cit... |
2018/03/14 | 1,735 | 6,056 | <issue_start>username_0: I am missing something simple but I can't quite figure it out.
I need to essentially get the Max Count of a Column.
```
SELECT
S.Type AS Type,
S.Version,
COUNT(R.FK_StoveNbr) AS TimesRepaired
FROM STOVE AS S
FULL JOIN STOVE_REPAIR AS R
ON S.SerialNumber = R.FK_StoveNbr
GRO... |
2018/03/14 | 581 | 2,332 | <issue_start>username_0: I need to perform a very simple operation that involve network. I know that this must be done with an Async Task, because run a task that involves Network operations on main thread is bad.
Since is pretty verbose using the classic way
```
private class LongOperation extends AsyncTask {
@Ove... |
2018/03/14 | 1,567 | 5,255 | <issue_start>username_0: I am get a formula to calculate the Net Present Value using Rent, Number of periods, Discount Rate and Future Value.I am able to get the Present Value however, I need a formula to calculate the Net Present Value on today's date or any date a user inputs. My code is as below:
```js
function PV(... |
2018/03/14 | 755 | 2,349 | <issue_start>username_0: I can read every pixel' RGB of the image already, but I don't know how to change the values of RGB to a half and save as a image.Thank you in advance.
```
from PIL import *
def half_pixel(jpg):
im=Image.open(jpg)
img=im.load()
print(im.size)
[xs,ys]=im.size #width*height
# Examine ... |
2018/03/14 | 1,256 | 3,965 | <issue_start>username_0: When using [scipy.ndimage.interpolation.shift](https://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.ndimage.interpolation.shift.html) to shift a numpy data array along one axis with periodic boundary treatment (`mode = 'wrap'`), I get an unexpected behavior. The routine tries to fo... |
2018/03/14 | 819 | 3,266 | <issue_start>username_0: I'm currently evaluating VSTS, but I'm concerned about some of the limitations of the "free" version.
I believe there is a 10 GB storage limit. Is this for everything (source code, build artifacts, packages, etc.), and is there any way to increase this?
I've also seen a limit of four hours of... |
2018/03/14 | 586 | 2,500 | <issue_start>username_0: If I find that some of the user exists with such a parameters, I want to get 1 otherwise 0. In the future I'll have to add more blocks. But it doesn't seem to work now. What am I doing wrong?
```
SELECT CAST(CASE WHEN EXISTS(SELECT 1
FROM Customers
... |
2018/03/14 | 410 | 1,515 | <issue_start>username_0: I want to check if my response object contains mentioned properties using chai should assertion.
Below is my code snippet:
```
chai.request(app)
.post('/api/signup')
.send(
data
)
.then(function (response) {
response.should.have.status(2... |
2018/03/14 | 431 | 1,506 | <issue_start>username_0: I am trying to get a list of users, who submitted a specific event in a website, however when I run the query, I am not getting the full result set - for example, I found 2 users who had the event (and I used the same conditions), but are not in the result set.
The script looks like:
```
sele... |
2018/03/14 | 1,718 | 6,232 | <issue_start>username_0: I am not sure the question is well put, because I understood how, but I don't know to write the questions with the thing I don't understand. Here it is:
I have some classes:
```
class Animal{};
class Rabbit{}: public Animal;
class Horse{}: public Animal;
class Mouse{}: public Animal;
class Po... |
2018/03/14 | 792 | 2,677 | <issue_start>username_0: I have a string with a known beginning and end, but I want to match only the unknown center.
For example, say you knew you were going to have strings which said
"I had \_\_\_\_\_\_\_\_ for lunch today" and you only wanted to match the blank.
Here's what I have tried:
`^I had (.*) for lunc... |
2018/03/14 | 1,387 | 4,501 | <issue_start>username_0: Here is a snippet of Java code that has really baffled me over the past couple of days. The goal is to insert only one line of code in the given place such that the number printed after "Given: " is 5050. I do not want to write multiple lines or change any of the existing lines of code.
```
pu... |
2018/03/14 | 404 | 1,296 | <issue_start>username_0: From this string:
```
dfasd {{test}} asdhfj {{te{st2}} asdfasd {{te}st3}}
```
I would like to get the following substrings:
```
test, te{st2, te}st3
```
In other words I want keep everything inside double curly braces **including single curly braces**.
I can't use this pattern:
```
{{(... |
2018/03/14 | 348 | 1,257 | <issue_start>username_0: I need to update Java version
```
java version "1.4.2"
```
I don't want change version of my jdk, so if I update java, will JDK update too?
EDIT
@UnholySheep
>
> You mean you want to update the JRE (runtime environment)? That is
> indeed separate from the JDK
>
>
><issue_comment>user... |
2018/03/14 | 3,202 | 10,183 | <issue_start>username_0: I see the use of [flip-flop](https://docs.perl6.org/language/operators#index-entry-Flipflop_operator) in doc.perl6.org, see the code below :
```
my $excerpt = q:to/END/;
Here's some unimportant text.
=begin code
This code block is what we're after.
We'll use 'ff' to get it.
=end code
More unim... |
2018/03/14 | 957 | 2,649 | <issue_start>username_0: I'm trying to delete an attribute and its value from a hash. Its seems simple based on answers I see on here but it doesn't appear to work for me. Curious if anyone has any thoughts as to why? Also... this is NOT a duplicate of the question that was linked. I have tried except and slice... neit... |
2018/03/14 | 585 | 1,484 | <issue_start>username_0: I find `/*` and `*` has different means when I compare with the setting:
```
*
!/init.el
!/README.md
!.gitignore
!/lib/
```
VS
```
/*
!/init.el
!/README.md
!.gitignore
!/lib/
```
The former not track `/lib/` but the latter track it.
How to undertand `*` and `/*`?
**UPDATE**
I think... |
2018/03/14 | 3,113 | 10,572 | <issue_start>username_0: So I installed android studio 3.0.1 and as soon as it opened the gradle built and showed the following errors. I tried adding dependencies such as design and support but in vain. Could someone help me?
[](https://i.stack.imgur... |
2018/03/14 | 747 | 2,575 | <issue_start>username_0: I have a factory that creates buttons,
```
var btnFactory = (fn, text) => {
var btn = $(`${text}`);
btn.bind("click", fn);
return btn;
};
```
I want to be able insert multiple buttons, events already bound to handlers, into an element so I end up with,
```
Button1
Button2
`... |
2018/03/14 | 1,694 | 4,984 | <issue_start>username_0: I am trying to run the example in [this tutorial](https://docs.aws.amazon.com/iot/latest/developerguide/iot-embedded-c-sdk.html) from AWS IoT (AWS IoT Embedded C SDK).
My `aws_iot_config.h` file has the following configuration:
```
#define AWS_IOT_MQTT_HOST "XXXXXXX.iot.us-east-... |
2018/03/14 | 993 | 3,013 | <issue_start>username_0: In the below code, the compiler can't figure out which constructor I want to use. Why, and how do I fix this? ([Live example](http://coliru.stacked-crooked.com/a/77f21f7dd5c964b3))
```
#include
#include
#include
template
class A
{
public:
using a\_type = std::tuple;
using b\_type = std::... |
2018/03/14 | 305 | 1,189 | <issue_start>username_0: To be more specific, I want to modify some functions in `scikit-learn` and import it to python. But I do not know how to work.
I tried to modify .py files directly from where the sklearn stores in my local directory, but there are some files I could not open to modify, such as those with `.cp... |
2018/03/14 | 331 | 1,115 | <issue_start>username_0: ```
php
session_start();
?
Register Login and Logout User
Register, Login and Logout user php mysql
==========================================
php
if (isset($\_SESSION['message'])){
echo "<div id='error\_msg'" .$\_SESSION['message']. "";
unset($\_SESSION['message']);
}
?>
Home
... |
2018/03/14 | 390 | 1,397 | <issue_start>username_0: I need to create a CSV file and export it into a folder.
These are our requirements...
* Folder name needs to be the Office 365 tenant name.
* CSV file name needs to be tenant name.
* Tenant name needs to be the bit before ".onmicrosoft.com".
This is how far I've got
```
$identity = Get-Org... |
2018/03/14 | 857 | 2,959 | <issue_start>username_0: **Update**
This is happening because of hot-reloading comes with Creact React App.
Related issues:
<https://github.com/expressjs/multer/issues/566>
<https://github.com/facebook/create-react-app/issues/4095>
---
I am trying to learn file upload with Nodejs, Express, Multer and React for fron... |
2018/03/14 | 1,500 | 5,233 | <issue_start>username_0: I have started with asp.net core 2 web app and I can publish it to App Service from Visual Studio using web deploy.
I've created new clean .net core 2 console app. I'm able to upload it as webjob and run using Azure Portal, but **how do I publish it from local command line or Visual Studio?**
... |
2018/03/14 | 869 | 3,126 | <issue_start>username_0: I have a Symfony 3.3 contact form that sends an email. Now I am trying to add an attachment to the form. I insert the following line in my sendEmail function:
```
->attach($data["attachment"])
```
... and I get the following error:
>
> Argument 1 passed to Swift\_Mime\_SimpleMessag... |
2018/03/14 | 818 | 2,798 | <issue_start>username_0: There are around 9000 users in users\_table and the user with the highest order count has around 300 orders.
When I query with the code below everything works just fine until the `$match` stage. It takes more than 20 secs so the query is resulted with timeout error. I know I can increase the ... |
2018/03/14 | 730 | 2,687 | <issue_start>username_0: In the code below, I have a defined script with an ID so I may access it from the DOM. As you can see, I request the defined script in the DOM during the definition of the script. How does this not recursively call its self when requesting the innerhtml call?
My guess is that the DOM parses th... |
2018/03/14 | 1,545 | 5,928 | <issue_start>username_0: I have developed an android application using OpenCV. The user interface has a bottom navigation view. When I pressed items in the Bottom Navigation View it applies different filters to the JavaCameraView in real time.
My problem is that the bottom navigation looks flat. I want to make the ite... |
2018/03/14 | 1,469 | 5,631 | <issue_start>username_0: I'm writing recycler view which contains editable list of words. ViewHolder for RecyclerView contains 2 objects: editText and sound image icon. My idea is that when I push sound icon, I expect to hear the pronunciation of the word, which I'm realizing with the help of SDK's TextToSpeech class. ... |
2018/03/14 | 564 | 2,128 | <issue_start>username_0: In MongoDB v3.4, [views](https://docs.mongodb.com/manual/core/views/) were added as a feature. However, I haven't been able to find any resources for how'd I'd use a view I created in a Node.js application. How would I go about doing this, specifically for an aggregation view?<issue_comment>use... |
2018/03/14 | 1,187 | 5,034 | <issue_start>username_0: I have an iOS and Android app that supports +5 languages, so I thought it would be great if I could put the localized string files on a server and once the user open the app, I download the file and load it in the app.
The challenge so far was in iOS, since I need to reference all labels, butt... |
2018/03/14 | 462 | 1,871 | <issue_start>username_0: I can't seem to understand why my `fullName` variable returns `undefined` in console. It is returning the text from the input in the alert box in the click function. But outside the click function, `fullName` returns `undefined`. Here is the code:
```
var fullName, firstName, middleName, last... |
2018/03/14 | 850 | 2,944 | <issue_start>username_0: This is PDP-11 code mixing C and assembly. In the below, u.u\_rsav is an array pointer,
`savu(u.u_rsav);`
The assembly code for this function is
```
_savu: bis $340,PS
mov (sp)+,r1
mov (sp),r0
mov sp,(r0)+
mov ... |
2018/03/14 | 1,101 | 2,932 | <issue_start>username_0: all.
I have a sorted time-series `my_ts`, and I need to find the pair-wise diffs (below some threshold called `horizon`) between **all** the elements of the series (and not just between consecutive elements).
I wrote the following code to do that, but as you can see, it applies *itertools*, w... |
2018/03/14 | 2,556 | 9,216 | <issue_start>username_0: I'd like to use Visual Studio Code as my editor for Flutter development, but I don't know how to get the emulator going. I've installed Visual Studio Code on [Ubuntu 17.10](https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_17.10_.28Artful_Aardvark.29) (<NAME>).
I followed the first h... |
2018/03/14 | 1,111 | 3,943 | <issue_start>username_0: I have queries:
1) `SELECT * FROM c where c.id = '0060f06e-260c-4dc7-9496-4a52e1a512c0'`
Request charge for it is 3 RUs.
2) `SELECT * FROM c where c.clientId = '0060f06e-260<KEY>'`
Request charge for it is 3 RUs.
3) `SELECT * FROM c where c.id = '0060f06e-260c-4dc7-9496-4a52e1a512c0' OR c.... |
2018/03/14 | 1,117 | 3,660 | <issue_start>username_0: I have an array, which looks like this:
```
const persons = [
{
name: "Joe",
animals: [
{species: "dog", name: "Bolt"},
{species: "cat", name: "Billy"},
]
},
{
name: "Bob",
animals: [
{species: "dog", name: "Snoopy"}
]
}
];
```
Now I want to ... |
2018/03/14 | 1,302 | 4,407 | <issue_start>username_0: I am interested in concatenate many files together based on the numeric number and also remove the first line.
e.g. chr1\_smallfiles then chr2\_smallfiles then chr3\_smallfiles.... etc (each without the header)
Note that `chr10_smallfiles` needs to come after `chr9_smallfiles` -- that is, th... |