date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/13 | 1,052 | 3,377 | <issue_start>username_0: I want to "store member function in my class" in order to call it later in some cases. But I can't fix my code for storing member functions with parameters. Heres is my code:
```
class IMemFn
{
public:
IMemFn() {}
IMemFn(const IMemFn& other) = delete;
IMemFn& operator=(const IMemFn... |
2018/03/13 | 603 | 2,008 | <issue_start>username_0: How could I override configurations of my chart in some other file (set gap)?
My configurations located at const, at confChart.js
P.S. I tried chartGraph(gap=100), but it didn't work(
Thanks for the answer)
```js
export const chartGraph = (name, type, gap}) => ({
title: name,
gapPeri... |
2018/03/13 | 960 | 3,479 | <issue_start>username_0: Sorry in advance, I just don't know how to word this question nor look for it.
I feel like there should be a name for it, some sort of Principle, or Problem, but I don't know it. My title probably doesn't make sense either but I hope it will give enough of a hint.
I want to decide on a way to ... |
2018/03/13 | 603 | 1,982 | <issue_start>username_0: This is probably a bad question, but i have constructed a DVD object in java:
```
DVD myDVD = new DVD (11.17 , 9 , 120 , " Howl ’s Moving Castle " , " <NAME> " );
```
I have a toString to print the whole object, but I've been asked to print the director (Hayao Miyazaki) of the object without... |
2018/03/13 | 652 | 2,287 | <issue_start>username_0: I'm somewhat new to developing plugins for Wordpress and I have this idea for a simple woocommerce based plugin. I need this plugin to do something only on single product pages but I can't see to figure out at all how I would add an action when a product gets loaded to do something.
Does anyon... |
2018/03/13 | 1,202 | 3,692 | <issue_start>username_0: I ran into problem N + 1
in association :
```
class Category < ApplicationRecord
has_many :categories_designs, dependent: :destroy
has_many :designs, through: :categories_designs
has_many :templates, ->{ where(is_template: true) }, through: :categories_designs, class_name: 'Design', sour... |
2018/03/13 | 744 | 2,174 | <issue_start>username_0: I am attempting to create a link in an APEX (Oracle) chart which will open an interactive report page by using the "Link Builder -Target" wizard.
Link Builder -Target Dialog][1](https://i.stack.imgur.com/Zl7k7.jpg)
Unfortunately the link is passing the column name (bob) rather than it's value... |
2018/03/13 | 498 | 1,860 | <issue_start>username_0: Here's the scenario, we are building a web application in Laravel, and assigned a route as follows:
```
Route::get('/sample/{client}', 'SampleController@SampleMethod')->name('SampleNaming');
```
The method SampleMethod, reads from the client variable and displays data about the client in the... |
2018/03/13 | 1,797 | 7,585 | <issue_start>username_0: I have folders like C:\Users\XXX\Desktop\Test\DUT3\_Mode1A\DUT3\_Mode1B\DUT3\_Mode2.
I will browse folder upto Test. I need to change if name contains Mode1A then I just rename as M1A like different condition with names. For example I have path like DUT3\_Mode1A\DUT3\_Mode1B\DUT3\_Mode2 I nee... |
2018/03/13 | 1,100 | 3,342 | <issue_start>username_0: I am a novice in development.
I want use this script : **<https://github.com/sebtouze/LoupGarou>**.
I followed the steps well, but I get an error:
>
> Doctrine\ORM\ORMException: The identifier id is missing for a query of
> AppBundle\Entity\User at n/a
> in C:\UwAmp\www\vendor\doctrine\orm... |
2018/03/13 | 449 | 1,609 | <issue_start>username_0: I would like to change the properties of multiple diagrams together rather than clicking on them one by one. Does anyone know how this can be achieved?<issue_comment>username_1: You have answer in your post
`DefaultController.php line 189` you passed variable that is null. Check the variables ... |
2018/03/13 | 692 | 2,474 | <issue_start>username_0: Consider the following chunk of code:
```
function Bar() {
var _self = this;
this.addPin = function (param1) {
console.log('addPin');
}
function endPin(param1) {
console.log('endPin');
}
_self.addPin(1);
this.addPin(1);
addPin(1); // fa... |
2018/03/13 | 1,191 | 3,872 | <issue_start>username_0: I'm trying to extract every value for `FileRef` from a string I've already extracted out of a file. Unfortunately, the string is one line which makes it more difficult to use `for /f "tokens=*"`.
The string is:
```
""
```
How to get every value for `FileRef` inserted into a variable in the ... |
2018/03/13 | 367 | 1,310 | <issue_start>username_0: I have a very simple Linq-to-SQL query that returns a boolean:
```
using (MyDataContext TheDC = new MyModelDataContext())
{
return !TheDC.SomeTable.Any(l => l.UserID == SomeLong && l.ColumnName == SomeString);
}
```
The problem is that when the comparison involves strings that differ by ... |
2018/03/13 | 778 | 2,639 | <issue_start>username_0: I am reading data from a python dictionary and trying to add more book elements in the below tree. Below is just an examplke, i need to copy an element with it's child(s) but replace the content, in this case i need to copy the book element but replace title and author.
```
IT book
Some IT ... |
2018/03/13 | 794 | 2,631 | <issue_start>username_0: I am using the npm package "[react-draggable](https://www.npmjs.com/package/react-draggable)" to allow drag on an element that contains a form.
Now that I can drag around my element, I am very happy... But the input fields are not clickable as in you're not able to click and type. The only thi... |
2018/03/13 | 801 | 2,250 | <issue_start>username_0: Given a string, for example,...
`1-23-4567 Apple Sauce`
I'm trying to figure out how to split that into
`1-23-4567
Apple Sauce`
My idea is to somehow split based on the 4 numbers at the end of the number sequence. I can't split on spaces. I've figured out how to split based on a single char... |
2018/03/13 | 353 | 1,152 | <issue_start>username_0: I'm trying to test a string. I get the innerHTML, yet it has extra `u'\n` and `\n'`
```
AssertionError: u'\n**Codul de Utilizator/Parola introduse nu sunt corecte!**
\n' != '**Codul de Utilizator/Parola introduse nu sunt corecte!**
'
```
HTML from site
```
**Codul de Utilizator/Codul in... |
2018/03/13 | 1,137 | 3,606 | <issue_start>username_0: I'm trying to get some info from this url "<http://baloncestoenvivo.feb.es/Game/1881578>". And I want to get all the info that there is inside a table which is inside a div with this `id = "keyfacts-playbyplay-content-scroll"`
I access to this table with this code:
```
table = page_soup.find(... |
2018/03/13 | 280 | 823 | <issue_start>username_0: I have a row like this and want to know the cells address of todays date. This formula is returning an error as the col is not specified, cause I don't know which col it will be. Do you know how to solve this?
```
=cell("address";INDEX($2:$2;match(today();$2:$2;1);))
=CELL("address",INDEX(rang... |
2018/03/13 | 413 | 1,568 | <issue_start>username_0: I have made a customize button that inherited Button class in winform application, and set mouse Event as below
```
private void _MouseDown(object sender, MouseEventArgs mevent)
{
MState = MouseState.Down;
Invalidate();
}
private void _MouseUp(object sender, MouseE... |
2018/03/13 | 1,185 | 3,520 | <issue_start>username_0: ```css
div {
border: 1px solid black;
}
.div1 {
height: 600px;
width: 600px;
}
.div2 {
height: 300px;
width: 300px;
margin-right: 0px;
margin-top: 0px;
}
.div3 {
height: 150px;
width: 150px;
margin-left: 0px;
margin-bottom: 0px;
}
```
```html
```
In... |
2018/03/13 | 1,058 | 3,768 | <issue_start>username_0: I have a simple jQuery code that works perfectly (and I would like to keep). The problem is that this animation is in a section below on page and it starts running when the page loads. I need this animation (numbers start at 0 and run until the number I put in the divs) to happen only when the ... |
2018/03/13 | 646 | 2,054 | <issue_start>username_0: ```
while b:
n.append(int(b%10))
b=b/10
return n
```
Here the while statement is not stopping even when `b=0`, what is the problem with this?<issue_comment>username_1: I think you want to do integer division, if that is the case your code should have `//` instead of `/`
```
while b:
... |
2018/03/13 | 357 | 1,204 | <issue_start>username_0: Currently trying to construct a GeoPoint to run a query in Firebase Functions, but am getting errors:
```
const lesserGeopoint = new functions.firebase.firestore.GeoPoint(box.swCorner.latitude, box.swCorner.longitude);
const greaterGeopoint = new functions.firebase.firestore.GeoPoint(box.neCor... |
2018/03/13 | 900 | 3,049 | <issue_start>username_0: if i used nounce = 32766 it only gives 1 time output but for 32767 it goes to infinite loop..... why ?? same thing happen when i used int
```
#include
using namespace std;
class Mining
{
short int Nounce;
};
int main()
{
Mining Mine;
Mine.Nounce = 32767;
for (short int i = 0; i <= Min... |
2018/03/13 | 999 | 3,608 | <issue_start>username_0: I'm navigating from one page to another (using Navigation.PushModalAsync). The first page has a list. The second page has a list view. I want to pass on that list to the second page and then populate a list view with data from that list. How do I go about this?
kind regards
UPDATE:
It appears... |
2018/03/13 | 4,215 | 12,834 | <issue_start>username_0: When i run the kubectl version command , I get the following error message.
```
kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"<PASSWORD>", GitTreeState:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"... |
2018/03/13 | 1,576 | 6,378 | <issue_start>username_0: Popup won't close when i click close button, i tried debugging with console.log and it looks like `closeButton.onclick` function doesn't run at all for some reason.
When running close() function manually from the console everything works fine.
```js
class Popup {
constructor(content){
... |
2018/03/13 | 2,172 | 6,938 | <issue_start>username_0: I am trying to connect to kafka from spark streaming with the following code to do a small POC.
This is how i started Kafka
```
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --create --zookeeper localhost:2... |
2018/03/13 | 1,222 | 3,530 | <issue_start>username_0: I wanted to print the name of the coin (obtained from a JSON response of a site) + "test" when the page is loaded; the problem is that only "test" is printed as if it did not find the name of the coin.
PHP code:
```
php
$coinbase = "https://api.coinmarketcap.com/v1/ticker";
$array =... |
2018/03/13 | 653 | 1,697 | <issue_start>username_0: I am learning python, and I recently came across a module Numpy. With the help of Numpy, one can convert list to arrays and perform operations much faster.
Let's say we create an array with following values :
```
import numpy as np
np_array=array([1,2,3,4,5])
```
So we need one square brack... |
2018/03/13 | 2,416 | 9,950 | <issue_start>username_0: This is a tricky question. I suspect it will require some advanced knowledge of file systems to answer.
I have a WPF application, "App1," targeting .NET framework 4.0. It has a `Settings.settings` file that generates a standard `App1.exe.config` file where default settings are stored. When the... |
2018/03/13 | 1,770 | 7,223 | <issue_start>username_0: I'm implementing the snipet code bellow to export an xls file in the browser in a spring application :
```
@RequestMapping(method = RequestMethod.POST, value = ResourcesPath.EXCEL,
consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
@ResponseStatus(HttpStatus.OK)
public void loadEx... |
2018/03/13 | 390 | 1,052 | <issue_start>username_0: I currently have this list: `['5 4 7', '4 3 1', '6 8 4'', '4 8 6']`
Note that not all numbers are separated by commas.
I would like to be able to calculate the total for each section of the list. For example, the first calculation should be 5+4+7 to give me 16. I would just like to know how to... |
2018/03/13 | 954 | 3,190 | <issue_start>username_0: I defined 3 models related with M2M relationsships
```
class Suite(models.Model):
name = models.CharField(max_length=250)
title = models.CharField(max_length=250)
icon = models.CharField(max_length=250)
def __str__(self):
return self.title
class Role(models.Model):
... |
2018/03/13 | 647 | 2,186 | <issue_start>username_0: I need to edit the contents of a ruby gem, call him ***a.gem***.
I used `gem unpack a.gem` ,got the insides of it, and `gem unpack --spec a.gem` to get a *.gemspec*.
I've added a new file, updated the `files:` section of the *.gemspec* to include it.
I've put *a.gemspec* inside the fol... |
2018/03/13 | 717 | 2,460 | <issue_start>username_0: I am trying to install and run react-devtools. I am following this guide to do that: <https://github.com/facebook/react-devtools/blob/master/packages/react-devtools/README.md>
The install seems to go ok:
[](https://i.stack.im... |
2018/03/13 | 563 | 2,139 | <issue_start>username_0: I am currently writing a color palette generator in Python. I would like to be able to input a Mode as an argument that will produce a specific type of color scheme. Like COMPLEMENTARY or PASTEL etc.
I have seen functions like colorMode(HSB) vs. colorMode(RGB) where one of the arguments is a "... |
2018/03/13 | 920 | 3,088 | <issue_start>username_0: I've this coding that works fine on localhost. But in my website it doesnt, and I guess its due do MARIADB version 10.1.24
Here's the code:
```
$search1 = @$_GET['valuelo'];
$search2 = @$_GET['valuear'];
$search3 = @$_GET['valueco'];
$search4 = @$_GET['valuero'];
$search5 = @$_GET['valuefl'];... |
2018/03/13 | 804 | 2,881 | <issue_start>username_0: Im trying to send a get request to an api using eclipse or intellij as part of a test using java/junit and the rest assured frame work.
Each request fails, with the following message
Mar 13, 2018 1:29:56 PM org.apache.http.impl.client.DefaultHttpClient tryConnect
INFO: I/O exception (java.net... |
2018/03/13 | 426 | 1,545 | <issue_start>username_0: I have a very simple piece of code to run a dynamic `sortBy` over my array. I am using a `select` with `ng-model` to return the correct key by which to sort. However, I can change the select once, and the orderBy works. But once I do it again, I get a very strange error
Controller
```
//chang... |
2018/03/13 | 904 | 2,839 | <issue_start>username_0: I have a table:
```
CREATE TABLE `test` (
`t` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8
```
and update it by:
```
update test set t = rand();
```
then the data in the table is:
```
+---------------------+
| t |
+---------------------+
| 0.248911475... |
2018/03/13 | 667 | 2,452 | <issue_start>username_0: I have a hosted server on Google Cloud Platform (GCP), and I am trying to overwrite some files.
I was able to make a connection through WinSCP, and I'm able to find the directory of the files I need to overwrite, however, all files are read-only.
How can I manage the permissions to give mys... |
2018/03/13 | 272 | 1,024 | <issue_start>username_0: I want to convert a `TArray` which is second parameter of third SelectDirectory (`out Directories` parameter) function to string to write selected path to edit box.
But I don't allow the user for multiple selection. So, only one directory can be selected.
What should I do?<issue_comment>usern... |
2018/03/13 | 323 | 1,220 | <issue_start>username_0: I am experimenting with manipulating data in firebase and have run into the following question:
If i have 2 records inside of a subdirectory (A), and want to move them to subdirectory (B) how do i do this in javascript?
```
MainContainer
- A
- KEY 1 data
- KEY 2 data
- B
``... |
2018/03/13 | 556 | 1,644 | <issue_start>username_0: I can't seem to wrap my head around a sql query that I need to develop. I need to calculate the percentage of time a sensor has been above a limit over a defined time period.
The data in my table looks something like this:
```
Id, TimeStamp, Value, SensorName
1, 2018-03-16 00:0... |
2018/03/13 | 404 | 1,381 | <issue_start>username_0: For my curiosity, i demanded myself why in this fragment of code when call a function, it return my object that i declared with declaration Undefined?
here follow my example :
```
var scarpaAcquistata = {
marca: "nike",
numero: 42,
colore: "rosso"
};
function stampaListascarpe(pro... |
2018/03/13 | 927 | 3,202 | <issue_start>username_0: A constant annoyance for me (minor, but constant) is that I can't (or don't know how) to split a string across multiple lines in bash code. What I have is this:
```
while getopts 'd:h' argv; do
case "${argv}" in
d) local target_dir="${OPTARG}" ;;
h)
printf "U... |
2018/03/13 | 1,094 | 3,261 | <issue_start>username_0: How to properly stretch a child to parent's height? I've tried a lot of variants I found (many quite complicated), but it never worked for me. I would prefer to do this with flex-box, as that seems the newest method. Here is my try:
```
Menu
Test
* [A1](#)
* [A1](#)
Content
```
```... |
2018/03/13 | 746 | 2,700 | <issue_start>username_0: I can determine running tasks with:
```
$TaskService = new-object -ComObject('Schedule.Service')
$TaskService.connect()
$TaskFolder = $TaskService.GetFolder('\')
$TaskFolder.gettasks(1) | ? {$_.state -eq 4}
```
Is there any way to identify the process IDs of those tasks if they start the ... |
2018/03/13 | 665 | 2,408 | <issue_start>username_0: I am new to using drop down's and am wondering what the best approach is to styling drop-down fields. I essentially am looking to style the before view and then a custom style for the selection menu that appears when you click on it. Any suggestions?
[Unstyled Dropdown Example](https://i.stack... |
2018/03/13 | 680 | 2,220 | <issue_start>username_0: I would like to extract the first line from a file, read into a variable and delete right afterwards, with a single command. I know `sed` can read the first line as follows:
```
sed '1q' file.txt
```
or delete it as follows:
```
sed '1q;d' file.txt
```
but can I somehow do both with a sin... |
2018/03/13 | 688 | 2,627 | <issue_start>username_0: Aim: Using a Query - Delete all customers with no Assets
I have 2 tables. I want to delete all the rows where my count = 0:
**My condition**
```
if (SELECT COUNT(*) FROM Asset_Table WHERE Customer_ID='myString' ==0){
Delete row from Account_table
}
```
**Accounts\_Table :**
```
Custo... |
2018/03/13 | 362 | 1,424 | <issue_start>username_0: How do I create a new folder in SuiteScript 2.0 and save it to the file cabinet?
```
var folder = record.create({
type: record.Type.FOLDER,
});
folder.save()
```
What am I missing?<issue_comment>username_1: This is what I use to save a file to a specified folder:
```
var exportFold... |
2018/03/13 | 1,673 | 5,133 | <issue_start>username_0: First time posting here, have long used the site as a resource for any problems I come across but for the first time I haven't been able to fix my code using previous answers.
There's probably a very simple answer for what I'm asking and I'm just missing something.
I am trying to create a sn... |
2018/03/13 | 1,423 | 4,368 | <issue_start>username_0: This is my HTML and PHP:
```
[logout](index.php?logout=true)
php
if (isset($_GET['logout'])) {
$_SESSION = array();
session_unset();
header("location:index.php");
}
?
```
this is my JavaScript code to show information whether it's logged in or not:
```
// i call this load functi... |
2018/03/13 | 914 | 3,289 | <issue_start>username_0: In our android app we need to create a floating action button which isn't the default circle but a square with with three rounded corners. The fab looks like in the image below:
[](https://i.stack.imgur.com/uAZiV.png)
I mana... |
2018/03/13 | 775 | 2,741 | <issue_start>username_0: I want to get a xyz points of 3d objects written in .dxf, .stl to make my 3d printer software.
I tried python dxf parser, but It couldn't get xyz cordinates of 3d objects.
Anyone smart to know how can I do this?<issue_comment>username_1: What you're looking for is changing the background of y... |
2018/03/13 | 838 | 2,816 | <issue_start>username_0: Consider the following code, which would ideally result in me being able to refer to `Shelf::Things::ThingOne` and `Shelf::Things::ThingTwo`:
```
module Things
class ThingOne
end
end
class Shelf
include Things
module Things
class ThingTwo
end
end
end
Shelf::Things.constants... |
2018/03/13 | 3,083 | 9,912 | <issue_start>username_0: My application, written in Java 8 using JavaFX, takes screenshots, or rather, snapshots, and twice it generated this error:
```
java.lang.IllegalArgumentException: Unrecognized image loader: null
at javafx.scene.image.WritableImage.loadTkImage(WritableImage.java:240)
at javafx.scene.im... |
2018/03/13 | 1,626 | 6,063 | <issue_start>username_0: The Goal
--------
The goal of `startChat(partner_profile)` is to get the id of a chat between two users to then be able to redirect to this chat.
There are **two different cases**:
1. a chat between them already exists
a) `partner_profile` is first participant
b) `partner_profile` is secon... |
2018/03/13 | 1,062 | 3,878 | <issue_start>username_0: I must make an autocomplete field on form. I use bootstrap and jquery.
And i want to know if there is a good library to do this ? Something complete and with a design near bootstrap if it's possible?
Thank in advance for sharing your experience<issue_comment>username_1: I don't know if I have ... |
2018/03/13 | 741 | 2,772 | <issue_start>username_0: I'm attempting to change an icon based on a result from clicking on the previous icon.
Here is my code:
```
$(document).on('click','.switchButton', function(){
$(this).attr('data-prefix', 'fas').attr('data-icon', 'spinner').addClass('fa-pulse');
$.ajax({
url: 'tasks/update_t... |
2018/03/13 | 472 | 1,803 | <issue_start>username_0: My iOS application is crashing on memory address when it is trying to double free that address. I have tried multiple ways trying to know what is causing double free, Ex: watchpoint or enable Zombies or using Instruments in Xcode but no avail. Is there any way I can set some kind of breakpoint ... |
2018/03/13 | 310 | 1,076 | <issue_start>username_0: I have two lookup tables in my XSLT.
Table A:
```
```
Table B:
```
```
Is it possible to conditionally assign a lookup table to a variable based on a passed in parameter `protocol`?
I have tried this to no avail:
```
document('')/xsl:stylesheet/manufacturerA:lookup/device
document('... |
2018/03/13 | 993 | 3,625 | <issue_start>username_0: I have 8 `cucumber-jvm` scenarios and the very first scenario measures the page load time and environment availability. In order to avoid unnecessary runs, if the first scenario is failed - for instance, the environment is not available, or loading too slowly - all other scenarios should be ski... |
2018/03/13 | 908 | 3,222 | <issue_start>username_0: I need to write a regex that will allow 9 numbers and/or digits to be written in such format: `XXX/XXX/XXX`. However, the amount of them in each can vary, so for example it can be like: `XX/XXXX/XXX` as long as there are max 4 x's.
Tried my best but didn't come up with any solution.<issue_comm... |
2018/03/13 | 945 | 3,494 | <issue_start>username_0: I have the username/password credentials for a website, say <http://website.com/login/>. How do I proxy that website (with my own server) such that I programmatically pass my login credentials and using my proxy server, I can access the website without having to log in. In short, the credential... |
2018/03/13 | 1,279 | 4,478 | <issue_start>username_0: this is my first post here, and I'm relatively new to C (this is only my 2nd unit on it at uni).
Basically, I'm trying to write a segment of code that asks the user if they wish to continue. If they write "yes", the code continues to loop. If they write no, the code terminates the program. If ... |
2018/03/13 | 1,204 | 4,465 | <issue_start>username_0: What's the best way NOT to have to extracts the SAME KWARGS **twice**: once in the decorator (wrapper function) and once in the function itself.
Here is the function:
```
@close_logger
def close(**kwargs):
""" returns close object"""
# Get params
session_attributes = kwargs.get('... |
2018/03/13 | 607 | 2,274 | <issue_start>username_0: I'm trying to pack a new version of a custom NuGet package and when I use the `pack` command I'm getting a `.nupkg` file which has a version number that doesn't match with the one that I've specified in the `.nuspec file`.
Example:
```
nuget pack mypackage.csproj -IncludeReferencedProjects -P... |
2018/03/13 | 696 | 2,449 | <issue_start>username_0: ```
if( !body || body[0] === '<') {...}
```
I am using the above statement to check if a variable `body` is `undefined` or null or anything but the value that is expected, but I keep getting a TypeError:
```
TypeError: Cannot read property '0' of undefined
```
How can this be? According to... |
2018/03/13 | 858 | 2,695 | <issue_start>username_0: ```
import pickle
ListNames = [["Name1","City1","Email1"],["Name2","City2","Number2"]]
ListNumbers = [1,2,3,4,5,6,7,8]
with open ("TestPickle.pickle","wb") as fileSaver:
pickle.dump(ListNames,fileSaver)
pickle.dump(ListNumbers,fileSaver)
with open ("TestPickle.pickle","rb") as fileOp... |
2018/03/13 | 825 | 2,641 | <issue_start>username_0: I have a csv of emails in one column named "email". They all contain an additional space at the end of the string.
```
email
<EMAIL> + " "
```
How do I strip the space?
I've tried several solutions such as:
```
f = r'C:path\emails.csv'
rw = open(f)
r = csv.reader(rw)
for lines in r:
fo... |
2018/03/13 | 535 | 1,901 | <issue_start>username_0: I've got 2 databases *almost* identical to one another. However, it seems that for some tables in the new database, they are missing columns that are in the old database.
What would be the best way to see the differences between columns in tables between 2 databases? Specifically, I need to se... |
2018/03/13 | 835 | 3,196 | <issue_start>username_0: Using Jenkins Pipeline I changed the Repository URL from http to ssh git access.
After doing that the job is not working anymore (before that all worked correctly).
Down below the logs:
```
:xxxxxx:checkUpdateNeeded
Running [git, remote, update] produced an error: [Permission denied (publicke... |
2018/03/13 | 805 | 2,991 | <issue_start>username_0: What architecture and application development best practices must be followed in order to scale a TWX application?
The majority of applications start with few devices but with time they quickly build up to thousands of devices. Once the amount of traffic is too much for one TWX instance what s... |
2018/03/13 | 2,357 | 7,899 | <issue_start>username_0: I am trying to understand some code where a number is converted to a currency format. Thus, if you have 16.9 it converts to $16.90. The problem with the code is if you have an amount over $1,000, it just returns $1, an amount over $2,000 returns $2, etc. Amounts in the hundreds show up fine.
H... |
2018/03/13 | 1,237 | 3,943 | <issue_start>username_0: For the program below:
```
int main() {
Pid_t pid1, pid2;
Pid1 = fork();
pid2 = fork();
if (pid1 == 0) { /* child process */
thread_create(. . .);
}
if (pid2 == 0) { /* child process */
pthread_create(. . .);
}
fork();
}
```
a.How many unique processes are created?
b. How many unique thread... |
2018/03/13 | 1,130 | 3,805 | <issue_start>username_0: I have a gradle build script (main script) that import another build script via next statement
`apply from: "../init.gradle"`.
The imported script contains next configuration for build:
```
buildscript {
repositories {
mavenLocal()
...
}
dependencies {
clas... |
2018/03/13 | 470 | 1,859 | <issue_start>username_0: I've been using Prism 4.1 and have numerous classes that subscribe to events (usually in their constructor) using the `IEventAggregator` and the `ThreadOption.UIThread` option.
I've now upgraded to Prism 6 but when I run my application it falls over on one such line with an InvalidOperationExc... |
2018/03/13 | 612 | 1,821 | <issue_start>username_0: For example I have an array arr = [1,2,3,4,5,6,7,8,9,10] and I want to add the number 12 at position 0, 5, 8 and 9.
To achieve this I tried
```
extension Array {
mutating func remove(_ newElement: Element, at indexes: [Int]) {
for index in indexes.sorted(by: >) {
ins... |
2018/03/13 | 353 | 1,131 | <issue_start>username_0: I am using `jQuery.find()` to find the elements under an id. But I have a issue.
Code:
```
$('#myId').children().find('input[id^=course_' + subId + ']').attr('checked', false);
```
I have elements which have subId as `sel_1` and `sel_11` and `sel_12`. How can i get just sel\_1 as the above ... |
2018/03/13 | 399 | 1,340 | <issue_start>username_0: ```
SELECT
make,
MIN(price) AS minimum,
MAX(price) AS maximum,
MAX(price) - MIN(price) AS price_range,
AVG(price) AS average,
COUNT(price) AS count
FROM
cars
INNER JOIN makes USING (make_id)
GROUP BY
make;
```
query runs fine but create view (php... |
2018/03/13 | 541 | 2,605 | <issue_start>username_0: I have an Spring Boot app that is listening to a ActiveMQ queue.
Is there a way to tell ActiveMQ to keep consumed messages until it's received acknowledgement to delete the message from my service?
My scenario is I read message from queue and once consumed, I'm sending it to an external queu... |
2018/03/13 | 1,022 | 3,756 | <issue_start>username_0: Pretty new in C# trying to Join two collections together, where the final result will provide all data from both collections. Right now the code returns only matched documents. Thank you.
```
//Collections
IQueryable collection1 = database.GetCollection("MainData").AsQueryable();
IQuer... |
2018/03/13 | 1,153 | 3,864 | <issue_start>username_0: My problem is that I want to mix my initial application state and state stored in other place. How can I connect two objects in javascript with Lodash with ignoring null values? Here is my code:
```
const initialState = {
form: [
{
name: "car",
value: 45000
},
{
... |
2018/03/13 | 1,581 | 3,445 | <issue_start>username_0: I have a list with the following structure:
```
A1, B2, C3, 66
A1, B2, C3, 00
A2, B2, C3, 77
A3, B3, C4, 44
A4, B4, C5, 11
A4, B4, C5, 12
A4, B4, C5, 13
```
And I need to enumerate the unique `1-3` column elements to get the output like this:
```
A1, B2, C3, 66, 1
A1, B2, C3, 00, 2
A2, B2, ... |
2018/03/13 | 1,288 | 3,110 | <issue_start>username_0: For my website, I want to make a rectangle that is responsive and where I can adjust the height and width easily. I tried to turn the rectangle but when I do that the content also turns 90 degrees. Maybe you can help me?
Already much thanks
Code in snippet:
```css
.project-pill{
border: 5... |
2018/03/13 | 674 | 2,173 | <issue_start>username_0: How do I need to define a constructor such that i can construct a class A like A({a,b,c}).
This arised in an urge to avoid using a variadic constructor which seems dangerous.
Code:
```
#include
class A{
public:
A(const unsigned int a, const unsigned int b, const unsigned int c) /\*: A({a,... |
2018/03/13 | 3,759 | 10,704 | <issue_start>username_0: Is there a javascript event, which once clicked clear the values in the form.
I am building an online form, and if they user has already filled out the form. I have a message thats says not you (with the name they have entered) e.g not you harry, **click here.**
the click here part of the t... |
2018/03/13 | 1,050 | 3,622 | <issue_start>username_0: I am trying to put a specific unicode marker entry in the legend list, in matplotlib.
I want a symbol which looks like: |---| (one continuous line, and not so tall pipes maybe), in order to put this annotation in the legend list:
```
ax.annotate('', xy=(0, 1), xytext=(5, 1), arrowprops={'arro... |
2018/03/13 | 523 | 1,667 | <issue_start>username_0: Hi I'm trying to make a code to open a url dynamically, first I try from HTML using this:
```
var rutaWeb = ScriptApp.getService().getUrl();
function doGet(e) {
var page = e.parameter.p || "Web";
return HtmlService.createTemplateFromFile(page).evaluate();
}
[Página Alumno](<?!= rutaWeb + '... |
2018/03/13 | 393 | 1,361 | <issue_start>username_0: On our Centos 7 server, we discovered recently that the MariaDB queries.log file (/var/log/mariadb/queries.log) was massive (over 4GB in size). This single large file isn't a practical solution for periodic log reviews.
Ideally, I'd like to have a new log get created every day. It would look ... |
2018/03/13 | 2,660 | 9,652 | <issue_start>username_0: Very simple. Is it possible to mute or control the volume of a JavaFX WebView? I googled for a while but I can't find any mention of this. I looked at the code for `WebView` and `WebEngine` and there doesn't seem to be anything about controlling the volume.
I still need other `MediaPlayer`s in... |
2018/03/13 | 417 | 1,632 | <issue_start>username_0: I tried to follow the steps in
<http://greenrobot.org/eventbus/documentation/subscriber-index/>
but for some reason the MyeventBusIndex simply doesn't get generated!
Are there any reasons why that is the case for me??
```
android {
compileSdkVersion 27
defaultConfig {
appli... |
2018/03/13 | 711 | 3,152 | <issue_start>username_0: I've done much Googling to find out the best way of doing this in ASP.NET Core 2.0 but not come to any clear conclusions. In previous versions of ASP.NET / MVC I could route the user to the login page by checking their session is authenticated.
I'm looking for something similar in ASP.NET Cor... |
2018/03/13 | 630 | 2,376 | <issue_start>username_0: I need to reload all the grid (not only the data).
I'm trying with:
```
$('#GridName').data('kendoGrid').dataSource.read();
$('#GridName').data('kendoGrid').refresh();
```
but `read()` reloads only the data and `refresh()` is not working. When a user clicks on the button, I need to recreate... |
2018/03/13 | 850 | 3,121 | <issue_start>username_0: I have a condition that makes a check. Like this:
```
if (moveDown)
{
Debug.Log("hit1");
if (RightTowers[rightIndex].transform.GetChild(2).transform.eulerAngles.z <= -40f)
{
moveDown = false;
moveUp = true;
... |