date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/16 | 403 | 1,495 | <issue_start>username_0: I know there had already been similar discussions on such naming conventions. However, I'm having problem with plural acronyms.
```
public List findAllDvds(DiscHolder holder) {}
public List findAllDvd(DiscHolder holder) {}
```
Assuming that I have decided to use CamelCase for acronyms, which... |
2018/03/16 | 841 | 3,443 | <issue_start>username_0: I'm a newbie in C# and would like to know if, having two classes in the same namespace, I can call a constructor of one in a constructor of the other one?
For example:
```
class Company
{
// COMPANY DETAILS
Person owner;
string name, website;
Company()
{
this.owne... |
2018/03/16 | 545 | 1,947 | <issue_start>username_0: I have a `Model` I need to get the next record id which is going to be create before create that object in my model like:
```
MyModel.last.id #=> 10
MyModel.last.destroy
MyModel.last.id #=> 9, so (Model.last.id + 1) would be 10... but...
MyModel.create #=> 11, my next id was actually 11
```
... |
2018/03/16 | 1,668 | 5,571 | <issue_start>username_0: I have to work using binary formated numbers and I'm wondering if there's a simple and easy built in way to use them. I am aware of the `bytearray` but it works with byte type and it is absolutely not intuitive (at least for me).
So, is there any way of handling binary numbers (assign them to ... |
2018/03/16 | 1,047 | 3,495 | <issue_start>username_0: I am trying to get the weight matrix of my hidden\_layer2 and print it.
It seems like I am able to get the weight matrix, but I am not able to print it.
When using `tf.Print(w, [w])` it prints nothing.
When using `print(tf.Print(w,[w])` it prints at least the info about the tensor:
```
Tenso... |
2018/03/16 | 1,023 | 3,732 | <issue_start>username_0: I wanted to upload GZip compressed JSON file on S3 bucket.I am struggling with this, can someone help me on this.As, I am trying to use zlib npm module for Gzip compression of JSON file but coudn't get a method to achieve this.
Below is my upload method to upload Gzip compressed JSON file on S... |
2018/03/16 | 240 | 928 | <issue_start>username_0: I haven't encountered any where in EF examples, but is it safe to update multiple tables in one go as below
```
using(var db = new MyDbContext(opts))
{
var record = db.Record.FirstOrDefault(x => x.Id == id);
if(record == null) return;
record.FieldN = ...
db.Update(record);
db.Oth... |
2018/03/16 | 1,680 | 5,498 | <issue_start>username_0: I am using [Ajv](http://epoberezkin.github.io/ajv/) in my project. I am trying to add a custom keyword by the help of `ajv.addKeyword` api. I am able to add keyword by doing this (borrowed from docs):
```
var ajv = new Ajv({
$data: true
});
ajv.addKeyword('range', {
type: 'number',
comp... |
2018/03/16 | 533 | 2,073 | <issue_start>username_0: I have two pages, page one is `loginPage`, another is `MainViewPage`.
I wanna transfer `userInfo` (`UserName` and `<PASSWORD>`) from page one to two, I'm using VIPER structure.
I already get the `userInfo` in the second page, but when I'm using `Presenter` function to update `UILabel` in `Sec... |
2018/03/16 | 331 | 1,045 | <issue_start>username_0: How to change *hour* part in localdb timestamp column 4 hour back.
I have a table JOB\_MONITOR
```
JOBID JOB_TYPE JOB_STATS START_DATE
3 BIN Management SUCCESSFUL 3/15/2018 5:50:29.269000 PM
```
I want to set START\_DATE value to be 4 hr back like 3/15/2018 1:50:29.269000... |
2018/03/16 | 1,278 | 4,492 | <issue_start>username_0: I'm trying to create a modal but I'm getting this error only when I close it:
```
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "va... |
2018/03/16 | 1,285 | 4,396 | <issue_start>username_0: I was trying some things with references and pointers, and I found something that I do not understand at all.
Here is my code:
```
#include
using namespace std;
class A
{
public:
A() { cout << "con\n"; }
~A() { cout << "des\n"; }
void f() { cout << "bla" << endl; }
};
A &createA()
{... |
2018/03/16 | 595 | 2,001 | <issue_start>username_0: In the `console.log`, I can see that `this.id` is `undefined` after the Ajax call. I would still like to use the `id` of `.home` after that. I know I can again still perform `$('.home').attr('id')` in the `.done` section but that would be repeating the same code again. Is there a better/more ef... |
2018/03/16 | 488 | 1,814 | <issue_start>username_0: This is the structure of my app's data in which user can log in and post the image with image's detail in the database.
I want that if a user post image, every user can see the notification **Seth Post Something**
I cannot find any link how to send a notification to all users when new data is ... |
2018/03/16 | 685 | 2,676 | <issue_start>username_0: **EDIT:** Looks like [this bug](https://stackoverflow.com/a/7509285/6683139) is the main problem here
-----------------------------------------------------------------------------------------------------
In my application's **MainActivity** I have a **custom bottom navigation** which is a hori... |
2018/03/16 | 1,310 | 5,225 | <issue_start>username_0: I followed the Spring Security 5.0 official reference documentation and sample codes [oauth2login](https://github.com/spring-projects/spring-security/tree/master/samples/boot/oauth2login) to setup OAuth2/OIDC authentication in my project, but it failed and I got the following exception when I b... |
2018/03/16 | 1,526 | 5,237 | <issue_start>username_0: My application uses the unicode character \u2192 to display a right arrow within a TextView element. However, the arrow is shown at the very bottom line, but should be centered vertically:
[](https://i.stack.imgur.com/phIQv.pn... |
2018/03/16 | 1,166 | 4,417 | <issue_start>username_0: I'm working on a simple software in c# that read bytes from a named pipe (client) and forward it to a serial port (with some processing on the data) and vice-versa. It look like:
```
if(data available on the named pipe)
write on com port (the data read from the named pipe)
if(data availabl... |
2018/03/16 | 462 | 1,647 | <issue_start>username_0: Abstract Class:
```
public abstract class absclass {
private int x,y;
public absclass(int x,int y) {
// TODO Auto-generated constructor stub
this.x=x;
this.y=y;
}
@Override
public String toString() {
// TODO Auto-generated method stub
return new String(x+" --------- "+y)... |
2018/03/16 | 785 | 2,874 | <issue_start>username_0: I have got a function which should accept either an array, or a string and another string. Other operand types are to be declined.
How do I do that?<issue_comment>username_1: You can use the is\_array() function of php to check if the given option in an array or string.
[Check it here is\_arr... |
2018/03/16 | 508 | 1,581 | <issue_start>username_0: I am facing problem, when i am trying to load this type of `html` string
```
(Identify the arrow-marked structures in the images<\/p>\r\n)
```
in `webview`.
problem is raised due to backwar... |
2018/03/16 | 1,199 | 4,326 | <issue_start>username_0: **The code**
```
import whois
domains = ['google.com', 'stackoverflow.com', 'hdtrcs.com' , 'facebook.com' ]
w = []
i = 0
for data in domains:
n = domains[i]
print(n)
i = i+1
data = whois.whois(n)
if data != None:
w.append(data['domain_name'])
else:
... |
2018/03/16 | 1,137 | 3,969 | <issue_start>username_0: I'm using mat-table in my angular 5 project.
the current result is as follows :
[](https://i.stack.imgur.com/tOrrn.gif)
I'd like to be able to "pin" a column.
you'd click on these pins and "pinned" columns would come to the... |
2018/03/16 | 677 | 2,474 | <issue_start>username_0: can an entity exist in isolation in ER diagram? When this entity has no relation ship with other entities (they have relationship with others) in the diagram?
Will this diagram be a valid ER diagram?<issue_comment>username_1: Your columns order if defined by your displayedColumnsWSelect variab... |
2018/03/16 | 1,126 | 4,133 | <issue_start>username_0: Trying to send info in JSON format using Retrofit, but it enters into Retrofit's `onFailure` method and throws the following error:
```
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
```
So far I have tried to... |
2018/03/16 | 560 | 1,435 | <issue_start>username_0: I have an array that looks like this:
```
$recs = array(1,4,7,1,5,4,1,12,1,4,6,5);
```
I want to get the most frequent item followed by the next most frequent item until I get to the least frequent item and then create another array with this information that looks like this:
```
$frequenci... |
2018/03/16 | 591 | 1,555 | <issue_start>username_0: ```
xml version="1.0" encoding="utf-8"?
```
[](https://i.stack.imgur.com/zN1fO.png)
Screen is not scrolling. The screen contains Swipe refresh also.
I have tried different solutions and added this line
>
> `android:fillViewport="tr... |
2018/03/16 | 715 | 2,100 | <issue_start>username_0: I need send a JSONObject to server and get other JSONObject from it. but I can not send JSONObject to server, in the other words my JSONObject is sent to server with null value.
Android Code:
```
JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST,
getUrl(), ... |
2018/03/16 | 706 | 3,028 | <issue_start>username_0: Theoretically speaking, if we implement optimistic concurrency on Aggregate Root level (changing entities in AR changes version on AR) and lets say we use timestamp for version property (just for simplicity) - should timeline ever be a property on AR or should it be a part of read model on one ... |
2018/03/16 | 482 | 1,430 | <issue_start>username_0: I have 3 tables
Table 1 (tickets):
```
id | name
---------------
1 | Ticket 1
2 | Ticket 2
3 | Ticket 3
```
Table 2 (ticket\_field):
```
id | name
------------
1 | Field 1
2 | Field 2
3 | Field 3
```
Table 3 (ticket\_field\_map):
```
id | ticket_id | field_id | value
--------... |
2018/03/16 | 523 | 2,022 | <issue_start>username_0: I have following code and try to use $index in delete function but it gives incorrect value of it.
```
- ![{{joinMember.member.screenName ? joinMember.member.screenName : joinMember.member.fname + ' ' + joinMember.member.lname }}]()
####
{{joinMember.member.screenName ? joinMember.member... |
2018/03/16 | 1,236 | 4,541 | <issue_start>username_0: I have a RoR Rest API and I want to emit a metric with the status of each response of my API. I managed to do that for all the cases except from those where the controller is crashing.
For example with the following code in the ApplicationController:
```
require 'statsd-ruby'
class Applicati... |
2018/03/16 | 991 | 2,126 | <issue_start>username_0: ```
a = np.array(5)
result = np.array([a-2, a-1, a, a+1, a+2])
print result
array([3, 4, 5, 6, 7])
```
correct!
But what would be a better way to get this with out manually writing `+- 2 a-2, a-1, a, a+1, a+2`
EDIT: second problem:
```
a = np.array([5,16,27])
res = np.concatenate([a-2, a... |
2018/03/16 | 1,531 | 5,501 | <issue_start>username_0: Hi I am trying to add text entered in an field to the end of a list using Jquery . This is my HTML .
```js
$(function() {
var $newitem = $('#newItemButton');
var $text = $('#itemDescription');
$newitem.show();
$('#newItemForm').hide();
$('#showForm').on('click', ... |
2018/03/16 | 344 | 1,373 | <issue_start>username_0: I am using ag-Grid **onCellEditingStopped** event handler to get the changed value of a grid cell.
```
onCellEditingStopped: function(event) {
// event.value present the current cell value
console.log('cellEditingStopped');
}
```
But it does not provide the previous value (the value... |
2018/03/16 | 994 | 3,507 | <issue_start>username_0: Am developing a application using swift,in my am integrating cometchat following the link <https://docs.cometchat.com/ios-sdk/quick-start/>. So am fetching chat history from the server.
Now I got two(sender messages and receiver messages) nsmutablearray value from the server.
i.e., `var first... |
2018/03/16 | 864 | 3,237 | <issue_start>username_0: ```
php
include_once 'config.php';
$query = $config - prepare("SELECT `edit`, `user_banned`, `ban_reason`, `ban_time`, `user_banner`, `ban_timestamp` FROM `samp_ban` ORDER BY `edit` ASC LIMIT 10");
if($query -> execute())
{
$query_results = $query->fetchAll();... |
2018/03/16 | 637 | 2,395 | <issue_start>username_0: Trying to practice Java by doing basic functionality like reading input.
I am trying to parse `movies-sample.txt` found in:
```
C:\University\BigDataManagement\Data-Mining\hw1\src\main\resources\movies-sample.txt
```
Trying to reach `movies-sample.txt` from
```
C:\University\BigDataManagem... |
2018/03/16 | 584 | 2,251 | <issue_start>username_0: I'm new to ActivePerl. However, I need to using it on my new Windows 8.1.
I try to download both 5.26.1.2601 and 5.24.3.2404 (x64) to installed.
But when I run with file.pl and file.bat, it would be suddenly closed in few second.
Then I need to test with different Windows OS. I saved these f... |
2018/03/16 | 607 | 2,374 | <issue_start>username_0: I'm trying to write a program which compares specific parameters of INI Files.
The problem is that there are some Strings in those files which are marked with an apostrophe and some other which are marked with quote marks.
What I am trying to do is to convert either every quotation mark to an ... |
2018/03/16 | 481 | 1,668 | <issue_start>username_0: I'm trying to avoid jQuery, simply needing to clone an element, *e.g.*
```
var table: Node = document.querySelector('#myTable').cloneNode(false);
```
Later, I need to
```
return table.outerHTML;
```
but I'm getting the error
```
ERROR in [at-loader] ./src/components/overworld-component.t... |
2018/03/16 | 889 | 3,206 | <issue_start>username_0: This question has been [asked](https://stackoverflow.com/questions/21817340/jquery-slidetoggle-displaynone) a [few](https://stackoverflow.com/questions/22384461/trouble-with-a-responsive-menu-and-jquerys-slidetoggle) times before years ago. I am basically asking if there is a more up to date 'c... |
2018/03/16 | 677 | 2,388 | <issue_start>username_0: I installed a Joomla 3.6.5 and now I cannot install any packages.
And this is the error I've got :
>
> Unable to find install package
>
>
>
[](https://i.stack.imgur.com/W43M5.jpg)
This happens when I click on '*Add "Inst... |
2018/03/16 | 496 | 1,448 | <issue_start>username_0: ```
select count(*)
from siebel.s_srv_req
where trunc(created)>='25-Sep-2017'
and trunc(created)<='25-Sep-2017'
and X_MBL_AREA_LIC is not null
and sr_cat_type_cd <> 'Trouble Ticket';
```
I'm trying to execute above sql in my oracle db and its not giving results.
If i execute this as below it ... |
2018/03/16 | 751 | 2,849 | <issue_start>username_0: I am trying to send sftp call through endpoint and need to pass header as one of the parameters. Can some on help me out on this.
My route will be looking like this
```
```
Another route will be like
```
20170512
```
Thanks,,<issue_comment>username_1: Your setup has multiple issues. Wh... |
2018/03/16 | 1,040 | 3,546 | <issue_start>username_0: I am having memory leaks with Unity with the following code:
Behavior: in runtime, Unity eventually uses > 64GB of RAM and crashes (Thats all this machine has)
Scene: I only have one plane in my scene with the below code.
How do I fix this? I dont think I want a weak reference here, (or at l... |
2018/03/16 | 5,340 | 9,596 | <issue_start>username_0: I've been trying to finish <NAME>'s Machine Learning course, I am at the part about logistic regression now. I am trying to discover the parameters and also calculate the cost without using the MATLAB function `fminunc`. However, I am not converging to the correct results as posted by other stu... |
2018/03/16 | 724 | 2,083 | <issue_start>username_0: Hi I am trying to write css classes as per the specification given. For example, If i am designing a button they have given specification as below.
Normal:-
[](https://i.stack.imgur.com/WRfo4.png)
Hover:-
[<issue_comment>username_1: In your second foreach, you are missing the key `group`. Also, you could use `$oXML->group` to iterator ove... |
2018/03/16 | 680 | 2,457 | <issue_start>username_0: ```vbs
SystemUtil.Run "iexplore.exe", "https://www.jetairways.com/EN/IN/Home.aspx"
wait (7)
Set traverse=Browser("Jet Airways: Airlines").Page("Jet Airways: Airlines")
traverse.WebEdit("placeholder:=From").Click
traverse.Link("acc_name:= This link will open Popup window for airpo... |
2018/03/16 | 262 | 882 | <issue_start>username_0: I have a problem to process the data from my html form with jQuery. I have this simple form:
```
Create account now
```
Now I want to get the value of the inputs with jQuery.
```
$("#singup").submit(function (e) {
var email = $('#singup-email').val();
console.log(email);
e.pre... |
2018/03/16 | 719 | 3,113 | <issue_start>username_0: I'm beginning on Jenkins in my work place. We use semantic versioning with Teamcity and I want to implement the same on Jenkins. My problem appears when I store the artifacts in builds folder ($JENKINS\_HOME/jobs/$JOB\_NAME/builds/$BUILD\_NUMBER) because Jenkins use only the build\_number to cr... |
2018/03/16 | 2,050 | 7,529 | <issue_start>username_0: I'm having an issue where when I'm selecting the cell for e.g at index 3 , it selecting cells below also at random indexes. Check and Uncheck cell is working but for some reasons when selecting a cell it is selecting other cells as well. **My array is returning 120 rows in total.** I have selec... |
2018/03/16 | 2,559 | 7,133 | <issue_start>username_0: So, implementing a brush behaviour inspired from [M Bostock example](https://gist.github.com/mbostock/6498580) I came across something I did not quite understand.
If set a callback for the 'end' event of the brush, this gets called as expected whenever you're interacting directly with the brush... |
2018/03/16 | 1,513 | 5,481 | <issue_start>username_0: I know that I can find a word in a text/array with this:
```
if word in text:
print 'success'
```
What I want to do is read a word in a text, and keep counting as many times as the word is found (it is a simple counter task). But the thing is I do not really know how to `read` words that... |
2018/03/16 | 358 | 1,233 | <issue_start>username_0: I am trying to get the string between parentheses but i am getting always getting empty value.
```
String_Input: select sum(OUTPUT_VALUE) from table_name
Output : OUTPUT_VALUE
```
What I tried here:
```
select regexp_extract(String_Input,"/\\(([^)]+)\\)/") from table_name;
```
any sugges... |
2018/03/16 | 3,031 | 9,568 | <issue_start>username_0: I have binary relation on some type `T` induced by a function `equivalent`:
```
bool equivalent(T const& a, T const& b); // returns true if a and b are equivalent
```
It has the properties that
```
equivalent(a, a) == true
```
and
```
equivalent(a, b) == equivalent(b, a)
```
for all ... |
2018/03/16 | 326 | 1,078 | <issue_start>username_0: Hi I am using using Angular 5 and I am trying to import bootstrap in my code but unable to do so. I have installed bootstrap using:
```
npm install --save bootstrap
```
I have also add the css file to the .angular-cli.json as:
```
"styles": ["../node_modules/bootstrap/dist/css/bootstrap.m... |
2018/03/16 | 377 | 1,228 | <issue_start>username_0: My use case is something like this.
1. I stored images names in an array called **imagesFolder**
2. then I retrieve names from that array and display on my vue component.
This is my code
```
![]()
export default {
data(){
return{
imagesFolder:['src/assets/mickey.png','src/assets/log... |
2018/03/16 | 320 | 1,298 | <issue_start>username_0: I know this probably isn't applied way for declaring variable but I'm curious it is possible or not
```
#define paste(front,back) front ## back
int main(int argc,int *argv[]){
int i=0;
for(i=0;i<10;i++){
int paste(var,i) = i;
}
return 0;
}
```
I know arrays but as I... |
2018/03/16 | 909 | 3,135 | <issue_start>username_0: How can I produce an html document from a .Rmd file, with self-contained images? I am using the `bsplus` package along with `rmarkdown` to create a carousel of images. It works perfectly when I open the `.html` output within the `.Rproj` working directory, but the images are no longer displayed... |
2018/03/16 | 536 | 1,977 | <issue_start>username_0: I have came accross a concept in java or selenium stating that we use `this` before a global variable. This is done when the global variable and local varibale both have the same name.
This is because if we do not use the `this` keyword then a compile run time error would be generated when we ... |
2018/03/16 | 621 | 2,054 | <issue_start>username_0: I would like to rename the beginning of different files.
input:
```
myfilename abc yeswithspaces.abc
myfilename def yeswithspaces.abc
myfilename_abc_nospaces.abc
myfilename def blabla.def
myfilename_abc_mainfile.ok
```
output wanted:
```
newfilename abc yeswithspaces.abc
newfilename def ye... |
2018/03/16 | 750 | 2,273 | <issue_start>username_0: **[This is a sample image]**

I want to crop out the header Text for several other similar colored images like this for OCR. what are the most effective steps to preprocess the image for better recognition only for the header text.<issue_comment>username... |
2018/03/16 | 791 | 3,230 | <issue_start>username_0: I am developing a web application and maintaining the data in Firebase in the following way.
[](https://i.stack.imgur.com/1aaD7.png)
There can be several nodes under the "Users" node and in each of those nodes, I am storing u... |
2018/03/16 | 646 | 2,092 | <issue_start>username_0: In a react webapp, I have a form with .
The value returned in chrome version 64 on Windows is in the following format:
```
2018-03-08T07:00
```
I assume that in other browsers it will be different.
I want to write this value in firestore, in the same format that is generated when I create,... |
2018/03/16 | 521 | 1,390 | <issue_start>username_0: I would like to replace a string with another string in a single column.
Input:
```
A.a 1
A.b .
A.c 1
A.d 1
```
Desired output:
```
A.a 1
A.b -9
A.c 1
A.d 1
```
Using `sed 's/\./-9/g' input > output` it modifies all `.` by `-9`, and this is what I obtain: ... |
2018/03/16 | 699 | 2,329 | <issue_start>username_0: I have 6 words that is stored in a `HashSet` as below :
```
String first = jtfFirstWord.getText();
String second = jtfSecondWord.getText();
String third = jtfThirdWord.getText();
String fourth = jtfFourthWord.getText();
String fifth = jtfFifthWord.getText();
String sixth = jtfSixthWord.getText... |
2018/03/16 | 970 | 3,632 | <issue_start>username_0: **Desire Output is:**
I want to delete duplicates from a table by a group.
My tables :
**rc\_document:**
```
+----------------+-------------+----------------------+
| rc_document_id | document_id | rc_document_group_id |
+----------------+-------------+----------------------+
| ... |
2018/03/16 | 466 | 1,361 | <issue_start>username_0: How can I plot 2 density plots in one output. Here are my codes for the density plot.
```
#Density Plot
d <- density(dataS)
plot(d, main= "Density plots of Revenue")
o <- density(RemoveOutlier)
plot(o, main= "Density plots of Revenue excluding outliers")
```
So basically I want to see both ... |
2018/03/16 | 723 | 2,217 | <issue_start>username_0: Why bodies seems broken on second loop example, am trying to optimize my planetary system to support more bodies.
```
for(Body body : bodies){
PVector totalForce = new PVector();
for(Body other : bodies){
if(body != other){
PVector fxy = body.attraction(other);
... |
2018/03/16 | 300 | 847 | <issue_start>username_0: CODE:
```
Select list (select one):
{% for i in 150 %}
{{ i + 1989 }}
{% endfor %}
```
I want to make year select form which is from 1900 to 2050.
How can I use `i` variable in django template tag?<issue_comment>username_1: You can use [Template range loop](https://djangosnippets.org... |
2018/03/16 | 447 | 1,452 | <issue_start>username_0: I need to set default Collation for MySQL tables with Django 2.\*, im using mysqlclient, my settings are:
```
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': 'localhost',
'P... |
2018/03/16 | 710 | 2,583 | <issue_start>username_0: When I fetch a small data set, say 2000 observations, in R using googleAnalyticsR from google analytics, everything works well.
```
df <- google_analytics(id=ga_id,
start="2017-12-01",
end="2017-12-31",
metri... |
2018/03/16 | 744 | 2,968 | <issue_start>username_0: I have two generic objects of class `Generic`:
```
Generic genericOne;
Generic genericTwo;
```
I have to mock:
```
when(someObject.someMethod(Matchers.>any()))
.thenReturn(responseOne());
when(someObject.someMethod(Matchers.>any()))
.thenReturn(responseTwo());
```
The problem is that m... |
2018/03/16 | 924 | 3,371 | <issue_start>username_0: I need to make a method that takes as argument a multi dimensional array of integers and does the following:
* Checks if the number of rows and columns are odd, otherwise returns 0.
* If the array is odd, then the method returns the sum of the terms of the
middle line, minus those in the middl... |
2018/03/16 | 1,947 | 5,991 | <issue_start>username_0: I had this working without jquery, but the problem was that the tooltip was appearing on the whole div rather than just the PNG.
The mouseover function worked well with jquery so I decided to switch to that, however I do not know how to trigger the CSS animation when the mouseover function ru... |
2018/03/16 | 1,132 | 3,472 | <issue_start>username_0: In JavaScript I have a string like
```
Package=sdvasd&Qty=1&Price=34?Package=sdabhjds&Qty=1&Price=234?
```
I want to format that like an object array like this
```
[
{'Package' : 'sdvasd', 'Qty' : 1, 'Price' : 34 }
{'Package' : 'sdabhjds', 'Qty' : 1, 'Price' : 234 }
]
```
The code what I... |
2018/03/16 | 949 | 2,980 | <issue_start>username_0: I'm finding a `sed` command in linux that can replace the following variable value to `root` in .env file
```
DB_USERNAME=123
DB_ABC_USERNAME=abc
DB_ABC_DEF_USERNAME=abcdef
```
to
```
DB_USERNAME=root
DB_ABC_USERNAME=root
DB_ABC_DEF_USERNAME=root
```
the file have another variable within ... |
2018/03/16 | 726 | 1,909 | <issue_start>username_0: I have read an excel file in a pandas data frame. I am iterating over the indexed column comparing each of the element of the row with some value. When I find a match I need to find the column number in which the match is found.
Example:
```
df = pd.DataFrame({'A': [0, 0, 2, 1], 'B': [1,2,3,4... |
2018/03/16 | 659 | 1,853 | <issue_start>username_0: I want to upload some data from a local file on my pc via SQL-manager to a sql-database on azure.
I tried
```
BULK INSERT gifts
FROM 'c:\temp\trouwpartij.txt'
WITH
(
FIELDTERMINATOR =' |',
ROWTERMINATOR =' |\n'
);
```
But unfortunatly the pat... |
2018/03/16 | 1,057 | 3,927 | <issue_start>username_0: I have multiple microservices and I am using docker-compose for development deployments. When there are some changes in the microservices code base, I am triggering ci job to re-deploy them. I have below script to do this. But each time I have to build all images from scratch, then run them. Af... |
2018/03/16 | 475 | 1,986 | <issue_start>username_0: I can't navigate through the code for an old project involving many classes. in eclipse, for example, holding Ctrl when clicking on a class/method/interface doesn't open it.
How can I define the path of this class so that I can navigate through the code in Eclipse?<issue_comment>username_1: Th... |
2018/03/16 | 729 | 2,535 | <issue_start>username_0: I want to skip text at the start of a string in Kotlin like the Java `Scanner.skip()`
please tell me how to do something like `string.skip("**")` to skip `**` at the start of `string`
for example `"**hello stack".skip("**") --> "hello stack"`<issue_comment>username_1: Edit: I didn't realize yo... |
2018/03/16 | 1,171 | 3,445 | <issue_start>username_0: I need optimization of loop (array) in loop (object). Below is my solution which is working, but if I try this with huge amount of data then is too slow.
Here is my array
```
$data = [
["PLZ", "Preis"],
["8074", "90"],
["8075", "90"],
["8076", "90"],
["8077", "9... |
2018/03/16 | 714 | 2,535 | <issue_start>username_0: I am using the code below to run a macro at specific time each day which works fine while I am at work but over weekends my computer goes into sleep mode and the code does not run. How do I work around this?
```
Sub Scheduler()
Application.OnTime TimeValue("12:00:00"), "TheScheduledSub"
En... |
2018/03/16 | 698 | 2,524 | <issue_start>username_0: I've created an AWS EC2 instance. What I'm trying to do is to add an inbound rule for the corresponding security group to the instance. The type of connection I wish the firewall to allow is HTTPS on port 443.
Every time I save it though, it changes to a Custom TCP Rule on port 443. Does anyo... |
2018/03/16 | 498 | 1,587 | <issue_start>username_0: I'm trying to redirect my port 80 to 8080 because the user need not type the url as webapp:8080 to access the web site.
Here's the command that I came across to redirect from port 80 to 8080 :
```
sudo iptables -A PREROUTING -t nat -i enp0s25 -p tcp --dport 80 -j REDIRECT --to-port 8080
```
... |
2018/03/16 | 1,802 | 6,424 | <issue_start>username_0: I am using below code to get **versionName** from **playstore** by using jsoup I am fetching details but its throwing some exception.
My code is
```
public class ForceUpdateAsync extends AsyncTask{
private String latestVersion;
private String currentVersion;
private Context context;
public ... |
2018/03/16 | 896 | 3,506 | <issue_start>username_0: I have installed Docker and have running some Ubuntu image with command:
```
sudo docker run ubuntu
```
I would like to create some text file on it and find it next time the same image will run. How to achieve that?
UPD.
Got problems with attaching to docker.
I have running docker
```
do... |
2018/03/16 | 607 | 2,081 | <issue_start>username_0: As per java doc, static block is executed when the class is initialized.
Could anyone please tell me why static block is not executed when I run below code?
```
class A {
static {
System.out.println("Static Block");
}
}
public class Main {
public static void example1() {... |
2018/03/16 | 815 | 2,424 | <issue_start>username_0: Frequently solution for this is `float`, but it will not work in my case. I tried to use flexbox, `overflow:hidden` for parent, but it didn't help either.
So I have three inline-block elements. The width of that one in the center is defined by text length in it, but others are just for drawing... |
2018/03/16 | 387 | 1,328 | <issue_start>username_0: Suppose i have written:
```
...
char c;
while(condition){
cin>>c;
//do stuff
...
}
...
```
If `2` characters are give in cin, the next cin will take the second character without me giving any. So, i tried this:
```
...
char c;
while(condition){
cin<
`... |
2018/03/16 | 820 | 2,655 | <issue_start>username_0: I'm having some trouble to prepare macro which would help me to pass the value to another cell if the specified cell is a part of merged cells.
[](https://i.stack.imgur.com/oqFCy.png)
As you can see, cells A1-A15 are merged, in B1 I've written =A1 i... |
2018/03/16 | 375 | 1,172 | <issue_start>username_0: Maybe you can help on the following code please.
I have an error on the "1". I want to select all row for the previous day if I query today. The format of the date is 2018-03-16 07:22:48.377
```
SELECT object_key, audited_changes
FROM pg_audits
WHERE source_action = 'funding'
AND 'created_at' ... |
2018/03/16 | 904 | 3,556 | <issue_start>username_0: I have a table which is made by `ng-repeat`. That part which doesnt get refreshed is below;
```
| | | | | | |
| --- | --- | --- | --- | --- | --- |
|
| {{activity.PlanDateTime}} / {{activity.ActivityType\_DisplayName}}
*{{activity.ActivityID}}* |
{{activity.ParentActivityDisplayNa... |
2018/03/16 | 505 | 2,183 | <issue_start>username_0: When I open any dialog in my Winforms application then Windows 10 behaves oddly in these ways:
1. ALT-TAB no longer displays the list of windows
2. I cannot switch to hidden applications using taskbar icons - if I select a taskbar icon of a window that is not currently visible (even if it is n... |
2018/03/16 | 667 | 2,251 | <issue_start>username_0: ```
public static int averageInArrayList(ArrayList arrayList) {
Integer sum = 0;
if(!ArrayList.isEmpty()) {
for (Integer sum : ArrayList) {
sum += ArrayList;
}
double total = sum.doubleValue() / ArrayList.size();
}
return total;
}
```
Hi I'm having trouble returning the average of al... |
2018/03/16 | 665 | 2,308 | <issue_start>username_0: I am starting a business and I would like to offer Paypal as a payment option, but for my business it is essential to be able to block an amount of money, just like a car rental or a hotel does on a credit card. Would it be possible to block an amount from my users PayPal account and release it... |