date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/02 | 796 | 2,581 | <issue_start>username_0: I'm pretty new to SQL. And I'm trying the following.
I have the following table1 with Columns group and description.
Table1 Example

I want to check if the cell values are partly the same. Like in this case Group101 and Group101D1. Now I ... |
2018/03/02 | 669 | 2,143 | <issue_start>username_0: I want to truncate my file after reading the content of it, but it does not seem to do so and additions to the file are made after the existing content, instead of the beginning of a file.
My code is as follows:
```
from sys import argv
script, filename = argv
prompt= '??'
print("We're going... |
2018/03/02 | 953 | 3,182 | <issue_start>username_0: Is there anyway to make spring cloud config client's application.yml read values from spring config server?
For example,
on my spring cloud config client, the application.yml is like this
```
spring:
application:
name: clienttest
mvc:
view:
prefix: /jsp/
suffix: .jsp
server:
port: ... |
2018/03/02 | 826 | 2,824 | <issue_start>username_0: I am creating an android app so that the nav bar and title bar needs to be hidden. I am able to do that from activity as explained in developer.android.com.
But I need to achieve this in whole my application by defining it only once.
From some forum that the below code will do that:
```
<... |
2018/03/02 | 1,412 | 5,722 | <issue_start>username_0: I have written the following script that allows me to compress a `src` (which can be either a single file or a directory) to target 'dst':
```
#!/usr/bin/env python2
import tarfile
from ntpath import basename, dirname
from os import path, listdir, makedirs, chdir
import errno
import sys
clas... |
2018/03/02 | 994 | 3,369 | <issue_start>username_0: Im trying to acomplish two things.
1) Gradient from left to right on hover
2) Gradient from right to left when there's no hover
3) Also Im trying to get rid of some kind of right grey border right at firefox
Here's my code:
**HTML:**
```
[Przejdź do sklepu](#)
```
**CSS... |
2018/03/02 | 1,640 | 3,003 | <issue_start>username_0: In the case where a tibble is grouped by multiple variables in `dplyr`, is there a way to remove a single grouping variable other than re-specifying the groups without that variable? I'm thinking it would be something like `group_by(df, -var, add = TRUE)`, though that doesn't work.
Example:
`... |
2018/03/02 | 664 | 1,838 | <issue_start>username_0: this is my string:in variable $raw
>
> Movie Title: Ittefaq (2017) Director: Abhay Chopra Stars: Sonakshi
> Sinha, <NAME>, Akshaye Khanna Release Date: 3 November 2017
> (India) Genres: Mystery, Thriller Format: MatRoska (Mkv) File Size:
> 850MB Resolution: 1280x536 Runtime: 01:45:31 Langu... |
2018/03/02 | 659 | 1,914 | <issue_start>username_0: I came across a statement that has left my head confused.
Assume x >= 0
```
(x - 1 ? 16:11)
```
Apparently this code has the same response as
```
(x > 1 ? 16:11)
```
Can someone explain how the minus one works? I thought that conditional operators had to provide a true or false result. ... |
2018/03/02 | 556 | 1,955 | <issue_start>username_0: How to create this kind of UI?
[](https://i.stack.imgur.com/HiP9W.png)
**So far, I end up creating the same UI like below**.
[](https://i.stack.imgur.com/qC... |
2018/03/02 | 667 | 2,657 | <issue_start>username_0: We are receiving events from a no. of independent data sources and hence, data arriving into our Flink topology (via Kafka) would be out of order.
We are creating 1-min event time windows in our Flink topology and generating event time watermarks as (current event time - some threshold (30 sec... |
2018/03/02 | 489 | 1,754 | <issue_start>username_0: I need to parse a html tag. For exemple:
```
[MY LINK](“http://www.google.it”)
```
So, how can I detect this link, and make it clickable in a label? Only the link clickable.
Thanks<issue_comment>username_1: Simply adding a border layout and adding a mask you can achieve what you need
**Fu... |
2018/03/02 | 850 | 2,951 | <issue_start>username_0: I have the following program:
```
#include
#include
#include
int main(int argc, char \*argv[])
{
char \*tp = NULL, \*cp = NULL, \*next\_token = NULL;
char TokenListe[] = "Hello,I Am,1";
tp = strtok\_s(TokenListe, ", ", &next\_token);
printf(tp);
return 0;
}
```
When I compile it ... |
2018/03/02 | 1,235 | 5,110 | <issue_start>username_0: I know there has been a lot written about this topic but I just can't find the right answer.
Is there a way how to know when the user received remote notification and when the user clicked on one on iOS 8.
I would like to know this because when I receive it I want to save it and when user clic... |
2018/03/02 | 474 | 1,998 | <issue_start>username_0: <http://www.django-rest-framework.org/api-guide/validators/#currentuserdefault>
I wants to read default value from `userprofile` automatically. Right now the offical method support `User` and `DateTime`. But I want my customized value. How can I do that?
```
owner = serializers.HiddenField(
... |
2018/03/02 | 498 | 2,043 | <issue_start>username_0: I have a custom post type "products". I would like to redirect all posts from "products" to one url ex: <http://example.com/page1> using htaccess.
For example:
<http://example.com/products/post1>, <http://example.com/products/post2> and <http://example.com/products/post3> to be on link click r... |
2018/03/02 | 538 | 2,099 | <issue_start>username_0: My goal is to write an object to zip file in json format. The simplest way of doing it is:
```
ZipOutputStream zip = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(zipFile)));
String json = gson.toJson(object);
zip.write(json.getBytes());
```
But I want to avoid to load th... |
2018/03/02 | 443 | 1,289 | <issue_start>username_0: How can I use `Dim order(4) As Int16` which I have declared in public class of VB in C# format?
```
where,
order(0)=0;
order(1)=0;
order(2)=0;
order(3)=0;
```<issue_comment>username_1: That are default values, just initialize the array with the right size and you are finished.
Note that yo... |
2018/03/02 | 1,224 | 4,058 | <issue_start>username_0: I started out with this code:
```
import bs4, requests
def bal(address, symbol, name):
r = requests.get('https://bitinfocharts.com/' + name + '/address/' + address)
soup = bs4.BeautifulSoup(r.text, 'html.parser')
elems = soup.find('div', itemprop = 'offers').contents[0... |
2018/03/02 | 1,237 | 4,170 | <issue_start>username_0: I have the following `table` created dynamically(so please don't mind the values and table structure)
```
| |
Finance
|
| --- | --- |
| |
section1
|
| |
section2
|
| |
section3
|
| |
section4
|
| |
Information Tech
|
| |
section1
|
```
When a checkbox insi... |
2018/03/02 | 330 | 1,230 | <issue_start>username_0: When you create a new keymap in Intellij it is always based on other keymap. It kind of extends it and only the changes are recorded.
Example file:
>
> mykeymap.xml
>
>
>
```
...
```
This is kind of nice because then I can edit them manually quicker, and I can make simple changes b... |
2018/03/02 | 324 | 1,323 | <issue_start>username_0: Is there a shortcut in IntelliJ to copy a concatenated constant into the clipboard?
For example, supposing I have this:
```
private static final String SQL = "my big " +
"sql "+
"statement";
```
Is there a way to copy `my b... |
2018/03/02 | 975 | 3,539 | <issue_start>username_0: Sorry if my question is silly, but we are facing a latency issue in our application.
KEYPRESS event handler is the culprit. We are using this below directive in the entire application. It checks `KeyPress` through `HostListener`. When key pressed, this directive checks the value with regexp and... |
2018/03/02 | 393 | 1,211 | <issue_start>username_0: ```
>
```
My question is, which one is correct and why?
```
1. 'value="$credit_exm['credit_1']"'
2. 'value="$credit_exm["credit_1"]"'
```<issue_comment>username_1: Syntax error.
Must:
```
>
```
Upvotes: 0 <issue_comment>username_2: Answer: neither.
From the [manual](http://php.net/ma... |
2018/03/02 | 421 | 1,412 | <issue_start>username_0: When i try to query the Class Session it only returns sessions from my username
this returns only 6 items when I have 10 sessions in my dashboard. I just want to get all the sessions
```
var query = new Parse.Query(Parse.Session);
query.find({
success: function (results) {
... |
2018/03/02 | 596 | 2,104 | <issue_start>username_0: It is all about 3 robots, named A, B, and C, that can move around their environment using informed search. The environment contains obstacles. **The 3 robots need to meet at some point such that the total distance they walk is minimum.**
To make the problem a little computationally simpler, we... |
2018/03/02 | 526 | 1,784 | <issue_start>username_0: I have a textarea element on which I wan't to fire an event.
When setting up a listener and the element is disabled I get an inconsistent behavior. Chrome (64.0.3282.186), Safari (11.0.3) and Edge fires the event and everything looks good (as I would expect them to do) but in Firefox (58.0.2) t... |
2018/03/02 | 569 | 1,860 | <issue_start>username_0: I am trying to get this bash program to work but I can't seem to figure it out. I am writing this script to take a list of names and print out each names group number. I am very new to bash, so I have no idea what to do with the variable GROUPNUM in my for statement for this program to work. Fo... |
2018/03/02 | 475 | 1,819 | <issue_start>username_0: I'm switching from Eclipse to IntelliJ IDEA.
In Eclipse I have many Java projects I can open and see the code I need. However, in IntelliJ IDEA I can see only one project at a time.
How can I have more than one project in the IDEA IDE?<issue_comment>username_1: This ...
>
> In Eclipse I h... |
2018/03/02 | 739 | 2,921 | <issue_start>username_0: I am using JProfiler to inspect a Java microservice while I simulate concurrent users with JMeter.
With JProfiler I can see:





![Digits... |
2018/03/02 | 1,446 | 4,681 | <issue_start>username_0: Hi there can someone help me please I have this two functions:
```
$(document).ready(function(){
sizeNestable();
});
$('#nestable1, #nestable2').change(function() {
sizeNestable();
});
function sizeNestable() {
var n3 = $('#nestable1').find('.dd3-handle').height('100%');
... |
2018/03/02 | 956 | 2,394 | <issue_start>username_0: Write a Python function histogram(l) that takes as input a list of integers with repetitions and returns a list of pairs as follows:
for each number n that appears in l, there should be exactly one pair (n,r) in the list returned by the function, where r is is the number of repetitions of n in ... |
2018/03/02 | 289 | 951 | <issue_start>username_0: I'm a Japanese.
So, my English is bad.... sorry.
---
[QUESTION]
----------
I want to write recording changes to .docx by php.
But I can't find any information.
In the first place, Can I write recording changes to .docx by php?
---
[I WANT]
--------
I want to write recording changes to .do... |
2018/03/02 | 2,528 | 7,377 | <issue_start>username_0: I need to modify a software.
I need to extract the "price" data from this, how can i do?
```
{
"result": {
"stats": [
{
"profitability_above_ltc": "0",
"price": "1.8266",
"profitability_ltc": "0",
"algo": 0,
"speed": "14266.85620849"
},... |
2018/03/02 | 2,391 | 6,774 | <issue_start>username_0: I am trying to train a Faster R-CNN on [grocery dataset](https://github.com/gulvarol/grocerydataset) detection using the new Object Detection API, but I do not quite understand the process of creating a TFRecord file for that. I am aware of the Oxford and VOC dataset examples and the scripts to... |
2018/03/02 | 969 | 3,008 | <issue_start>username_0: After a new installation of Python2.7.14 and scapy(Version git-archive.dev254ab6d5a) i cant define my LAN-card as interface. As long iface=None the sniff function works fine. If i assign iface to a string, i get the following Error. For this Error i didn't found any posts on google:/.
Code:
`... |
2018/03/02 | 998 | 3,348 | <issue_start>username_0: Spring boot 2 WebFlux generate Json stream in the new version
for example
```
@GetMapping(value = "stream", produces = APPLICATION_STREAM_JSON_VALUE)
public Flux stream() {
return Flux.interval(Duration.ofSeconds(1)).map(Data::new);
}
```
will produce issuing new data every one second
``... |
2018/03/02 | 4,083 | 14,967 | <issue_start>username_0: I'm currently developing an Android application which can either load information from my website or use the information stored in an SQLite database. I'm trying to implement a search feature into it but I ran into a problem.
The data in my recyclerview doesn't update when a search is made. I'... |
2018/03/02 | 531 | 1,519 | <issue_start>username_0: I have an XML as follows
```
00
**First**
ProjectA
01
**Second**
ProjectB
```
Example 1: If within tag has `00` and tag has `ProjectA`, **Output** should be `First`
Example 2: If within tag has `01` and tag has `ProjectB`, **Output** should be `Second`
I want try with xml\_grep... |
2018/03/02 | 544 | 1,606 | <issue_start>username_0: I use R 3.4.3, And I need to install devtools::install\_github("rstudio/rmarkdown"). But the following installation error comes up.
```
Downloading GitHub repo rstudio/rmarkdown@master
from URL https://api.github.com/repos/rstudio/rmarkdown/zipball/master
Installation failed: zip file 'C:\Use... |
2018/03/02 | 804 | 2,867 | <issue_start>username_0: I have `User` model with `food_prefrence` field for which a user has the option to select multiple choices.
In models, I am using `MultiSelectField` from [django-multiselectfield](https://github.com/goinnn/django-multiselectfield) to solve my problem. and in my User serializer, I am using fiel... |
2018/03/02 | 316 | 1,004 | <issue_start>username_0: I want to load a text file which has delimiter "|" into Dataframe in spark.
one way is to create the RDD and use toDF to create Dataframe. However I was wondering if I can create DF directly.
As of now I am using the below command
```
val productsDF = sqlContext.read.text("/user/danishdshadab... |
2018/03/02 | 690 | 2,220 | <issue_start>username_0: HTML:
```
Add New Item
```
jQuery:
```
$(".add-new-item").click(function() {
var catid = $(this).data("catid");
$(".modal").show();
$(".search-input").data("catid", catid);
});
```
The `catid` is being retrieved properly, but is not added to the input element. How come, and how do ... |
2018/03/02 | 414 | 1,390 | <issue_start>username_0: I use spacemacs config to open a python file.
emacs: 25.3.1
spacemacs: 0.300.0
platform: osx
I add python layer in `dotspacemacs-configuration-layers`,
besides I use miniconda to control my python envs with `(setenv "WORKON_HOME" "~/miniconda3/envs")` in `dotspacemacs/user-init`.
Then ... |
2018/03/02 | 409 | 1,468 | <issue_start>username_0: I'm starting to use vim in my everyday coding. While I was exploring, I discovered the use of \*map. So I decided to add the following mapping to my .vimrc file.
```
inoremap ' ''
inoremap " ""
imap ( ()
imap { {}
imap [ []
imap < <>
```
The idea is to match every ',",(,{,[,< with its clos... |
2018/03/02 | 417 | 1,600 | <issue_start>username_0: I believe the question is better understood with an example, say I have a for loop and I want to change whether it iterates over a dict or in a range of values depending on a variable. For **example**:
```
my_dict = [ 'value_a':5, 'value_b':8, ... ]
if some_boolean:
for i in r... |
2018/03/02 | 375 | 1,167 | <issue_start>username_0: I'm trying to copy the name from one object to another as below:
```
console.log(this.source.name)
```
//gives `"mike"`
```
mounted: function() {
this.client.name = Object.assign({}, this.source.name)
}
```
then
```
console.log(this.client.name)
```
//gives object with `1: m, 2: i,... |
2018/03/02 | 402 | 1,335 | <issue_start>username_0: Hi I have a problem with this subquery what I would like is to know the clients with more reservations to their name if possible without using the ORDER BY .. DESC
LIMIT 1;
I have this code:
```
SELECT c.client_id, COUNT(r.reserva_id)
FROM reserves r
INNER JOIN clients c ON c.client_id =... |
2018/03/02 | 887 | 2,788 | <issue_start>username_0: I have an `np.array` which is essentially an image in RGB format. I reshaped it to be more easy to work with. So, its shape is something like: `(22618, 3)` with each row corresponding to a pixel. I want to check if there are some pixels that correspond to a specific color(s) and also how many o... |
2018/03/02 | 877 | 2,617 | <issue_start>username_0: I'm trying to load animate.css to my app using following dependencies:
<https://github.com/daneden/animate.css>
<https://github.com/andreimc/animate-css-webpack>
I'd like to achieve that I'll be able to configure what animations will load using animate-css-web-pack.
Here's a list of all my ... |
2018/03/02 | 611 | 2,217 | <issue_start>username_0: I am working on an angular app.
Using
* Angular **5.2.5**
* Angular CLI **1.6.8**
When I executed command
```
ng build
```
I did not get any error, but when I tried production build
```
ng build --prod
```
I got error
>
> **Property 'someProperty' is private and only accessible withi... |
2018/03/02 | 1,809 | 5,926 | <issue_start>username_0: This is messy so if you don't have the time don't bother. I've tried to explain how every function in my code works as best as I could. So my question is the function `Q_drop` which I cannot get working, everything else(all other parts of the code) is working perfectly.
So the function `Q_drop... |
2018/03/02 | 1,211 | 4,387 | <issue_start>username_0: I have build a package\_version\_1.rpm. Now im trying to build a package\_version\_2.rpm. Default behavior of the RPM will remove any file from package\_version\_1.rpm that is not upgraded from package\_version\_2.rpm. To achieve what i want i must install the package like that:
sudo rpm -i --... |
2018/03/02 | 1,465 | 5,804 | <issue_start>username_0: Currently I have an Angular2 app that has an object with nested objects contained in it. The user follows a wizard to update any sections of the object and then clicks save. At the moment, I just send the entire object to the server side to be updated. To do the update, I get the database copy ... |
2018/03/02 | 552 | 2,005 | <issue_start>username_0: We have installed TeamCity on an OpenSuse machine. the version of TeamCity is 9.1.3.
I have installed JDK 1.8 on the server but I am not using it as default Java. I want to update every Agent to build with new JDK (version 8) and if update was successful for all of agents then I will try to up... |
2018/03/02 | 764 | 3,093 | <issue_start>username_0: I've configured API gateway via lambda function deployed with serverless framework. I've defined some queryStringParameters to be true in the yaml file. But the request is passing through the service even when the Required(mandatory) queryStringParams are not passed in URL. PFB the similar conf... |
2018/03/02 | 1,942 | 7,026 | <issue_start>username_0: spring-security.xml
```
xml version="1.0" encoding="UTF-8"?
com.ct.www.model
org.hibernate.dialect.MySQLDialect
true
```
[](https://i.stack.imgur.com/G1XxD.png)
web.xml
```
xml version="1.0" encoding="UTF-8"?
conte... |
2018/03/02 | 1,156 | 3,389 | <issue_start>username_0: I am trying to hide the \_id value from a nested document but I am not able to achieve the proper syntax. I am always getting errors no matter how I try.
My actual code:
```
db.integration.aggregate([
{
$match: {"integration_name" : "a-to-b" }
},
{
$lookup:
{
from: ... |
2018/03/02 | 984 | 4,225 | <issue_start>username_0: Using the code from the [Vaadin manual](https://vaadin.com/docs/v8/framework/articles/LettingTheUserDownloadAFile.html) we have:
```
Button downloadButton = new Button("Download image");
FileDownloader fileDownloader = new FileDownloader(createResource());
fileDownloader.extend(downloadButton)... |
2018/03/02 | 351 | 1,249 | <issue_start>username_0: I run two laravel projects under the same domain name.I jump to 5.2 after landing in 5.4, and the login status disappears,My cookie name is the same as the two project.
However, after my second attempt to land 5.4, I will not exit the login status after entering 5.2!why is this?
session\_driv... |
2018/03/02 | 490 | 1,692 | <issue_start>username_0: I am new to iOS development.I want to notify user when some action is done. In Android they are providing snack bar to achieve this.I saw lot of libraries.I am not sure which is standard library support for all iOS devices.
<https://www.cocoacontrols.com/search?q=notification>
Thanks in Advan... |
2018/03/02 | 3,764 | 7,685 | <issue_start>username_0: I am trying to merge two `dataframes` where the common denominator is time. However, time records can differ between the two. I want to merge the two by time but with a buffer interval of 30 minutes.
The `dataframes` are conceptually set up as this:
--------------------------------------------... |
2018/03/02 | 2,795 | 5,787 | <issue_start>username_0: I'm trying to use a package called materialize, i installed it with `npm install react-materialize --save`, then I ran `npm install` but I get an error saying it can't find the package.
Failed to compile.
```
./src/index.js
Module not found: Can't resolve 'react-materialize' in 'C:\Users\User... |
2018/03/02 | 2,812 | 6,023 | <issue_start>username_0: 1. Using Java code I am creating a zip file
2. Then we are uploading the zip file to AWS S3 using a different web service/ web application
3. Now I want to validate if the zip contains certain folders to validate the expected zip structure.
4. Currently, I am uploading the zip file to my applic... |
2018/03/02 | 2,821 | 6,020 | <issue_start>username_0: I have a web-app I'm building and want to enable users to bookmark this to homescreen on their iPhone and have it respond like a regular app.
To do this it needs to work in Safari iOS.
I used Chrome Browser when developing this, and it all works well. Pushing the Explore button loads up the co... |
2018/03/02 | 1,199 | 4,046 | <issue_start>username_0: Imagine a social network app. Users follow other users and users take photos. Photos have tags of other users.
I'm trying to get an effective Cosmos db implementation of a graph for that app. I provide an SQL Server version as well as a benchmark.
Here is the graph:
[
The container is half of the screen.
```
```<issue_comment>username_1: In case you have not noticed, in addition to relational model, SQL Server also [has a graph model]... |
2018/03/02 | 540 | 2,066 | <issue_start>username_0: I'm using nsDialogs to create a custom page in the installer of my app, where users can decide between standard and portable installation.
For this, I create two radio button controls via `NSD_CreateRadioButton` so that users can decide between the two installation modes.
After receiving feed... |
2018/03/02 | 705 | 1,755 | <issue_start>username_0: This is problem: Write a C program that reads the coefficients of a quadratic equation and prints its roots with two decimal points.
My code:
```
#include
#include
int main() {
float a,b,c;
float root1;
float root2;
root1=(-b+sqrt(b\*b-4\*a\*c))/2\*a;
root2=(-b-sqrt(b\*b-4\*a\*c))/2\*a;
... |
2018/03/02 | 830 | 3,186 | <issue_start>username_0: Using `Flutter`, a kotlin/swift function can be called by something like:
`file.dart`:
```
static const platform = const MethodChannel('my.test.flutterapp/battery');
final int result = await platform.invokeMethod('getBatteryLevel');
```
`file.kt`:
```
private val CHANNEL = "my.test.flutter... |
2018/03/02 | 937 | 3,463 | <issue_start>username_0: I have User model where it has some attributes like is\_admin, is\_verified, and also has association with other model such as Badges and Activities.
I have table design in HTML where in default, the user will be ordered by is\_verified, then is\_admin, then number of badges, then number of ac... |
2018/03/02 | 905 | 3,402 | <issue_start>username_0: I have this following button with `ng-click`
```
Save
```
and i try to convert it to React
```
```
with
```
class ButtonComponent extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.props.onSubm... |
2018/03/02 | 345 | 1,238 | <issue_start>username_0: I have json Array, I iterating that array and trying to print a particular key and value of json object, but I am getting KeyError.
```
employees = [
{
"id":"101",
"name": "abc",
"mobile":"123"
},
{
"id": "102",
"name": "xyz"
}
```
]
```
for employee in employees:
p... |
2018/03/02 | 941 | 3,276 | <issue_start>username_0: I came across a legacy code base, which is using `pass`, and `None` interchange, as empty statement.
```
if True:
pass
```
---
```
if True:
None
```
Since we prefer to have a consistent style over our code base, we wish to stick with one common standard. We need to choose between ... |
2018/03/02 | 742 | 2,699 | <issue_start>username_0: I have two services that can fetch a given object : an initial HTTP call to get the full list, and websocket notification to have live update of new elements.
I want to wire the two calls to the same observable so the display page has no knowledge of the backend.
There is the call mades :
``... |
2018/03/02 | 676 | 2,265 | <issue_start>username_0: I seem to have got stuck at a relatively simple problem but couldn't fix it after searching for last hour and after lot of experimenting.
I have two numpy arrays `x` and `y` and I am using seaborn's jointplot to plot them:
```
sns.jointplot(x, y)
```
Now I want to label the xaxis and yaxis... |
2018/03/02 | 613 | 2,093 | <issue_start>username_0: I need to process the output of a certain program in Python. The output of that program contains several symlinks which point to themselves, which can be a pain to work with.
I want to detect, from a list of files, which ones are symlinks pointing to themselves so that I can delete them.<issue... |
2018/03/02 | 1,906 | 6,281 | <issue_start>username_0: I am writing code to learn what happens when pointers are passed as arguments in a function.
```
void ptrTest(int **arg_ptr);
int main() {
int some_var = 5;
int *ptr1;
ptr1 = &some_var;
printf("Address of some_var: %u\n\n", &some_var);
printf("Value stored in *ptr1 (refe... |
2018/03/02 | 425 | 1,736 | <issue_start>username_0: I'm trying to test response time of webpages hosted on many backends. These hosts are behind load balancer and above that I have my domain.com.
I want to use python+selenium on these backends but with spoofed hostname, without messing with /etc/hosts or running fake DNS servers. Is that possib... |
2018/03/02 | 372 | 1,635 | <issue_start>username_0: I have two threads sharing the same variable of type boolean. I discovered that I have to use volatile to guarantee the value is always read from main memory. But now I want to get rid of this volatile identifier, how can I achieve that? Is it true that I easily can extract my boolean property ... |
2018/03/02 | 1,091 | 3,514 | <issue_start>username_0: I've obtained an aggregate in the following form:
```
measure
mean
attribute dataset_name method
50 d111 ... |
2018/03/02 | 910 | 2,417 | <issue_start>username_0: I have a module what lock the Sale Order.
I want to do auto-triggering this function when a Field in settings is True.
Because at this moment it's call the function only when i hit a button.
There is how i check if a field value is 'set':
```py
@api.multi
def auto_order_finishing(self):
... |
2018/03/02 | 239 | 904 | <issue_start>username_0: I have to select the file from input type= "file" using selenium test cases. So I have followed the below way.
```
browser.element(By.id('fileupload')).click();
```
By adding this line , popup window has been opened.
From that window i need to select **document.docx** file from the ... |
2018/03/02 | 304 | 1,084 | <issue_start>username_0: I am trying to detect different markers. One is a pattern named and1painting.patt and the other is the preset 'hiro'
When I show the hiro pattern, it is detected by the and1painting.patt marker. E.g. in the following code, it always shows the blue box rather than red, when I show the hiro mark... |
2018/03/02 | 267 | 990 | <issue_start>username_0: I made custom dependency which uses spring 4.x version and I include it in a project which uses spring 3.x version. When a method from this dependency is called it uses classes from spring 3.x version not from 4.x. Is it possible to force this dependency to use spring 4.x whereas the project it... |
2018/03/02 | 894 | 2,480 | <issue_start>username_0: I have pretty similar code to plot:
```
plt.plot(df_tags[df_tags.detailed_tag == tag]['week'], df_tags[df_tags.detailed_tag == tag].tonality)
```
Output:
[](https://i.stack.imgur.com/6E6v3.png)
But I want leave only min and... |
2018/03/02 | 500 | 1,540 | <issue_start>username_0: I have below code
```
DECLARE
tmp_ CLOB := empty_clob();
BEGIN
Dbms_Output.Put_Line('Test 4: Set CLOB "A" and then overwrite with empty_clob():');
Dbms_Output.Put_Line(' Expected: ');
in_ := Plsqlap_Record_API.New_Record('PARENT');
Plsqlap_Record_API.Se... |
2018/03/02 | 537 | 1,804 | <issue_start>username_0: I have the following url: `http://0.0.0.0:3000/book/all?my_query`.
How can I drop the `all?my_query` and leave just `book/`?
I tried to do something like this:
```js
if (this.$route.params.item === 'all') {
this.$router.replace ('/')
}
```
But that approach just returns me to the main ... |
2018/03/02 | 484 | 2,209 | <issue_start>username_0: I want to change the transaction isolation mode to serializable with Spring annotation but I get an exception :
`@Transactional(isolation = Isolation.SERIALIZABLE)`
```
org.springframework.transaction.InvalidIsolationLevelException:
JtaTransactionManager does not support custom isolation leve... |
2018/03/02 | 700 | 2,870 | <issue_start>username_0: I am working with a dataset that in reality will have thousands of segments. For illustration I have enclosed 8.
What I am looking to do is to create a dataset for each segment so I can calculate the contribution of each dataset. I have done the majority of the work but what I am asking is to... |
2018/03/02 | 775 | 2,947 | <issue_start>username_0: I have a question.
For example, I have the following code:
//Actions
```
export function getNews () {
return Api.getNews()
.then((response) => {
if (typeof response !== 'undefined') {
return MainStore.dispatch(NewsActionCreators.getNews(response));
}
})
... |
2018/03/02 | 741 | 2,286 | <issue_start>username_0: I have multiple select elements in my page and I need to find out how many of the elements do have a selectedIndex !== 0
```
select
Opt1
Opt2
Opt3
select
Opt1
Opt2
Opt3
select
Opt1
Opt2
Opt3
select
Opt1
Opt2
Opt3
```
I tried filter and localStorage Objects on Change, but ... |
2018/03/02 | 936 | 3,712 | <issue_start>username_0: I am using Highcharts in Angular 5 to display pie charts. I have created multiple charts and stored them in a Chart array and used ngFor directive to display them.
My component.ts file & component.html files
```js
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
imp... |
2018/03/02 | 1,589 | 4,748 | <issue_start>username_0: I have to make a button with a `::before` hidden which shows on `:hover`. This animation is working great on Chrome, IE and Firefox, but i have a weird issue on **Safari.**
Overflow:hidden is working but without the border radius.
You should run the fiddle in safari to see this issue.
Thanks... |
2018/03/02 | 622 | 1,962 | <issue_start>username_0: I am trying to add `SonarCloud` badge to my `README`.
But when I do like this
```

```
The... |
2018/03/02 | 572 | 2,253 | <issue_start>username_0: I wrote my first C# Windows Service:
Now I have a little Issue. If I Debug the code like that
```
public static void Main(string[] args)
{
if (Environment.UserInteractive)
{
m_thread = new Thread(execute);
m_thread.Start();
}
else
{
}
}
```
The Code wo... |
2018/03/02 | 1,839 | 5,659 | <issue_start>username_0: Wordpress version:4.7.9.
```
define('ALLOW_UNFILTERED_UPLOADS', true);
```
The statement was written into `wp-includes/functions.php`.
Edit a simple file named `test` which contain no any extension.
```
vim test
to upload the file which contain no file extension.
```
Get the error whe... |