date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/26 | 863 | 2,340 | <issue_start>username_0: Is there by chance any collection in .NET that would allow me to pass multiple values by reference. This implies that if I were to modify an item's value in an array for instance, my original item would be altered too. This snippet should make things more clear.
```
string str1 = null, str2 = ... |
2018/02/26 | 314 | 936 | <issue_start>username_0: I have a matrix with header's and want to remove all rows based on the column, "Closed Date", having "NaN".
Input:
```
raw_data.ix[~(raw_data['Closed Date'] == "NaN")]
```
Output:
```
Closed Date
NaN
NaN
9/28/2017 19:51
NaN
```
Why is "NaN" still there?<issue_comment>username_1: Th... |
2018/02/26 | 383 | 1,348 | <issue_start>username_0: I would like to read file in Java Script.
The best it would be to read line by line, but there is also possibility to read the whole file at once.
Generally on the web there is quite a lot of implementations, but I would like to read a file in very simple way by entering, hardcoded path and fil... |
2018/02/26 | 604 | 2,363 | <issue_start>username_0: I came across <NAME>'s demo of Angular forms at AngularConnect 2017, on YouTube. The part I'm specifically interested is [where she describes nested reactive forms](https://youtu.be/CD_t3m2WMM8?t=2125)
I've done everything as Kara describes, but I end up getting a `null` parentForm no matter ... |
2018/02/26 | 733 | 2,864 | <issue_start>username_0: I am trying to figure out an error in the code below. I need the following conditions to be met:
1) If equal to zero or lower, I need python to state "Invalid Input"
2) If greater than zero, ask whether there is another input
3) As long as there is another input, I need the program to keep ... |
2018/02/26 | 872 | 3,758 | <issue_start>username_0: I'm trying to build a generic loading control. I have the dummy control all set up with the gradient and masking, but I'm finding when I actually run it in a window it appears to rotate slightly off kilter. If you drop the below code into a user control, then drop that control into a window you... |
2018/02/26 | 1,382 | 5,320 | <issue_start>username_0: I'm trying to parse a config file for a fortran model to a python dictionary. The config file is basically a number of lines containing arrays or strings e.g.:
```
0, 400, 700, 0.02, 488, 0.00026, 1, 5.3
rootname
filename
0,1,0,0,0,1
2,1,0,2,3
4,4
0.0, 0.0, 2980.9579870417047, 0.01,
...
...
..... |
2018/02/26 | 911 | 3,014 | <issue_start>username_0: I have a table `transaction_transaction` with columns:
```
id, status, total_amount, date_made, transaction_type
```
The status can be: `Active, Paid, Trashed, Renewed, Void`
So what i want to do is filter by date and status, but since sometimes there are no records with Renewed or Trashed,... |
2018/02/26 | 860 | 3,096 | <issue_start>username_0: >
> I am using Hibernate OGM (5.2.0.Alpha1) with MongoDB (3.4)
>
>
>
While I am Executing
**String query ="db.student.find({'collegeName' :'VNSGU'})"**
for pagination With JPA setFirstResult() and setMaxResult(), It is working fine, but while executing aggregate Query
**String query = ... |
2018/02/26 | 653 | 2,187 | <issue_start>username_0: I have two columns. One is
```
V1=c(1,2,1,2,1,2)
A = data.frame(V1)
```
and the second dataframe is made of two variables:
```
V1=c(1,2) # and
V2=c("FRUIT","SUGAR")
B = data.frame(V1, V2)
```
I want to add a column to V1 so that each value of V1 gets a descriptive value from B$V2 base... |
2018/02/26 | 568 | 1,824 | <issue_start>username_0: Why would this "Fail", if foo is less than 40 it should be "OK"
```
SELECT foo = '30', case when 'foo' >= '40' then 'Fail' else 'OK' end as 'Test'
```
So my actual query is (where ArrivalDate is a datetime):
```
SELECT Distinct [Title]
,DATEDIFF(day, [ArrivalDate], GetDate()) AS 'Days... |
2018/02/26 | 744 | 2,556 | <issue_start>username_0: I have the following simple saga in my react-native app:
```
import {call, put, take} from 'redux-saga/effects';
import firebase from 'react-native-firebase';
export function* signupWithEmailPassword(action: AuthAction) {
const {email, password} = action.payload;
try {
const user = yi... |
2018/02/26 | 328 | 1,237 | <issue_start>username_0: I have a JSON entry like this, which I need to enter into a column (called values)
```
["Price Descending","Price Ascending","Name Ascending","Date Descending"]
```
How can I enter this into a json column , what I am trying is this
```
$this->db->query("
INSERT INTO tag_sets (type, ... |
2018/02/26 | 795 | 2,110 | <issue_start>username_0: I have a SQL query that gets the total number of days an employee was active with the company. Some employees can come an go several times as the seasons change so the query takes that into account. An example is below:
```
EmpNum HireDate TermDate Days Years Months
1018 ... |
2018/02/26 | 1,992 | 7,188 | <issue_start>username_0: After a user committed a single file change to git, a bunch of directories that they didn't touch got deleted. How?
Here are the last 2 commits
```
git log -10
3dc0de9 - change
ddc0fe6 - change
...
```
The top commit `3dc0de9` is the one that deleted the directories, but it only changes one... |
2018/02/26 | 1,180 | 3,087 | <issue_start>username_0: I'm trying to iterate in parametric mode to plot several concentric arcs of circles with the parameter `t` ranging according to a function. I've tried, among others,
```
a=sqrt(2)
plot [-pi/2:pi/2] a*cos(t), a*sin(t)
do for [i=2:10] {
a=sqrt(2)/i
set trange [-1./2*acos(-(a**2)/2.):1./2*aco... |
2018/02/26 | 1,794 | 6,466 | <issue_start>username_0: There have been a couple of older posts regarding this issue, but date from questions asked in 2013 and 2014 and the answers in there have not helped my case.
I have the `debugger` keyword placed in multiple places in my file, and have even added manual breakpoints in the inspector UI. Still,... |
2018/02/26 | 1,869 | 6,675 | <issue_start>username_0: I have a locally saved JSON file in which I have a bunch of objects/strings. I have trouble addressing each value. The beginning looks like this:
```
{
"result":{
"heroes":[
{
"name":"npc_dota_hero_antimage",
"id":1,
"localized_name":"Anti-Mage"
},
... |
2018/02/26 | 340 | 1,271 | <issue_start>username_0: As in question the [pom.xml](https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-starters/spring-boot-starter-data-jpa/pom.xml) from started does not provide the version information<issue_comment>username_1: Using dependency tree we can see versions of all... |
2018/02/26 | 5,129 | 18,630 | <issue_start>username_0: Thank you to @QHarr for working on this with me!
My goal is to grab the values for each of the nested categories from "orders"
my json:
```
{
"total": 14,
"_links": {
"next": {
"href": "/api/my/orders/selling/all?page=2&per_page=1"
}
},
"orders": [
{
"amount_... |
2018/02/26 | 500 | 1,873 | <issue_start>username_0: This is how I display it
```
| {{ foodItem.name }} | {{ foodItem.price | currency('£') }} | {{ foodItem.category }} | Delete |
```
This is what I use to delete
```
router.delete('/', function (req, res) {
let itemToRemove = req.body;
let FoodItem = mongoose.model('FoodItem', FoodIt... |
2018/02/26 | 337 | 1,145 | <issue_start>username_0: ```
sql_exec (($sql = "insert into posts (user_id, body, picture_url, stamp) values ($userid, '". sql_escape ($body). "','$picture_url', minute(), hour())"));
```
sql\_exec function
```
function sql_exec ($sql)
{
global $my_conn;
$result = mysqli_query($my_conn, $sql);
return ... |
2018/02/26 | 700 | 2,335 | <issue_start>username_0: Does `ActiveSupport::MessageEncryptor` support deterministic encryption so that we get the same encrypted value every time we encrypt a particular string? If not, are there any other Ruby libs that support deterministic encryption?
My goal is to get same encrypted value every time I encrypt a ... |
2018/02/26 | 430 | 1,601 | <issue_start>username_0: I have a reseller web server that I am migrating into a new machine. The source server owner provided a user (let's call it user A) which has sudo access to other users, but not to root. My user does not have direct file access to the files I need to pull, but I can sudo to the proper user (use... |
2018/02/26 | 874 | 2,941 | <issue_start>username_0: >
> Today I finally stumbled upon the solution of a really trivial RX problem: Suppose you have an Observable which returns Lists of items. Like `Observable>`. You often receive something like this as responses from web APIs.
>
>
>
>
> However chances are you want to operate on the single... |
2018/02/26 | 1,889 | 8,722 | <issue_start>username_0: Trying to implement firebase auth. It was working before but after refactoring no.
So I tried to create authStateListener in a separate class and there I am checking the statement.
MainActivity
```
IMainPresenter iMainPresenter;
iMainPresenter = new MainPresenter();
iMainPrese... |
2018/02/26 | 573 | 2,316 | <issue_start>username_0: What is the difference between `channelpool` and `channelgroup`? Could someone provide an example or usecase showcasing this difference?<issue_comment>username_1: If your behavior it's the same for all user state changes you've to use "addAuthStateListener".
For AuthStateListener works you hav... |
2018/02/26 | 1,255 | 4,868 | <issue_start>username_0: I have two Dialogs. /test is triggered by the user (luis)
Then it should move to the second /help, and when it gets the event there is should go back to /test and continue there.
Problem is it doesn't wait for the event to be triggered to return to /test, even though end dialog in /help should ... |
2018/02/26 | 1,290 | 4,948 | <issue_start>username_0: I am using proxies and intercepts for logging purposes. One of the attributes I want to log is message ID from rabbit MQ.
We are using the following object:
```
namespace MassTransit
{
public interface ConsumeContext : ConsumeContext, MessageContext, PipeContext, IPublishEndpoint, IPubli... |
2018/02/26 | 5,780 | 20,935 | <issue_start>username_0: Bear with me if this is a foolish question. How can I **type** a generic function that takes two records and returns an array of their common fields?
Let's say I have:
```
type A = { name :: String, color :: String }
type B = { name :: String, address :: Address, color :: String }
myImaginar... |
2018/02/26 | 1,845 | 7,275 | <issue_start>username_0: So I'm editing the default ASP.NET MVC with authentication template, and I'm trying to create a ViewModel for `_PartialLogin.cshtml` in order to display a name instead of the user's e-mail. I searched a lot of things, but they were pretty outdated so I hope someone can help. I don't even know i... |
2018/02/26 | 1,560 | 5,180 | <issue_start>username_0: I am trying to create a Bokeh datatable that is linked to a select widget using a customJS callback. The idea is that when I change the select, the data table will update to show only the relevant rows that correspond with chosen select value. My Code is as follows:
```
from bokeh.io import ou... |
2018/02/26 | 1,077 | 3,706 | <issue_start>username_0: So I was bored and decided to do a little bit of coding using Python (I'm a noob), when i got this error:
>
> Blockquote ValueError: invalid literal for int() with base 10: '26.02.2018'
>
>
>
Here is the full script:
```
print("This is case sensitive!")
#Ask for the users name
name_1 =... |
2018/02/26 | 980 | 3,010 | <issue_start>username_0: I have to send data in json format, but they have to be of small sizes. I get data(str) as follows
```
[{"CombinationCode":127,"Pattern":"4545,.86,4520,.44,4592"},{"CombinationCode":128,"Pattern":"4545,.86,4520,.44,4592"},{"CombinationCode":129,"Pattern":"4545,.86,4520,.44,4592"}]
```
If I w... |
2018/02/26 | 423 | 1,262 | <issue_start>username_0: I would like to turn a monthly time series into a quarterly one, by only keeping 4 values from the year. I have a date column in a dataframe as an integer in this monthly format:
```
192707
192708
192709
....
```
I have converted it to date format:
```
library(zoo)
df$date<-as.Date(as.yearm... |
2018/02/26 | 424 | 1,589 | <issue_start>username_0: I am using Access 2016. I want to get the last records in a table based on the unique record count in another table The following query works:
```
SELECT TOP 3 tblMilestone.MilestoneAbbr, tblMilestone.ID
FROM tblMilestone
ORDER BY tblMilestone.ID DESC;
```
but when I replace the number `3` w... |
2018/02/26 | 791 | 1,958 | <issue_start>username_0: i have a dataframe of numpy arrays such as below:
```
col1
0 [[1,2,3,4,5,5]]
1 [[3,4,5,6,7,8]]
2 [[2,3,4,1,2,1]]
....
```
how to convert this dataframe to a dataframe like:
```
col1 col2 col3 col4 col5 col6
0 1 2 3 4 5 6
1 3... |
2018/02/26 | 3,173 | 6,039 | <issue_start>username_0: I'm comparing some forecast data against actual values. The forecasts are obtained from three different providers. However, the time stamps for the actual data and the forecast data are not the same. I want to compare the error for each point where are forecast was made.
In the below snapshot... |
2018/02/26 | 537 | 1,708 | <issue_start>username_0: I have a headache with the configuration of my project environment. Basically I will use electron + react + redux + semantic-ui-react.
What I've already done is the configuration: electron+react. Now I am trying to use semantic-ui-react.
I added dependencies, installed gulp and semantic-ui bu... |
2018/02/26 | 576 | 1,899 | <issue_start>username_0: ```
Data Table
id dessert time user
1 eclair 10:00 Jon
2 banana 10:00 Mark
3 eclair 10:00 Paul
4 chocolate 08:00 Paul
5 eclair 10:00 Paul
6 chocolate 17:00 Jon
7 banana 21:00 Jon
8 eclair 21:00 Jon
```
I am aiming to get the average time, per us... |
2018/02/26 | 605 | 2,305 | <issue_start>username_0: How do I send input on the client console to the server? So far I have
```
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
```
How do I get 'input' in the server side? What must I call on the clientSocket? I've tr... |
2018/02/26 | 437 | 1,660 | <issue_start>username_0: I have an application with multiple activities and have some behavior in onPause on my MainActivity that I don't want to happen when switching to another activity.
Right now whenever I switch activities the MainActivity onPause() is called and it always runs the behavior.<issue_comment>usernam... |
2018/02/26 | 411 | 1,559 | <issue_start>username_0: What is the best way to add a custom attribute to JSX?
Facebook say´s its already implemented with React v16.
It is. But if I understand it right, I have to do it like `my-custom-attribute="foo"`. Thats not working for me. Because I need a attribute like `MyCustomAttribute="foo"`
Any Ideas?<... |
2018/02/26 | 507 | 1,922 | <issue_start>username_0: So I ran into an issue with assigning an event listener to my audio elements to allow them to auto-play on ending, after enough messing around I got it to work but I still don't get one thing. Why does `$(this).get(0)` work but `$(this).get()` not?
```
$('.song audio').each(function(){
$(t... |
2018/02/26 | 814 | 1,832 | <issue_start>username_0: I have a large set of data with small values in the order of 10^-3. However they're written without the "e"; for example, 9.993e-3 is written as 9.993-3 in the file. This creates problems in numpy. How can I add that "e" in between the last digit and the negative sign?
Some notes: The data set... |
2018/02/26 | 536 | 1,816 | <issue_start>username_0: What would be the difference of declaring i at the beginning of the program
```
int a, b, c, i;
```
vs in the for loop
```
for (int i=0;i<=n;i++)?
```
I developed a habit to declare it in the for loop and I don't know if that's fine (I'm better at JS and I encountered many problem in my ... |
2018/02/26 | 244 | 809 | <issue_start>username_0: If I have this HTML code:
```
01
==
...
...
```
How can I select the `div.checkbox` in CSS ?
I tried:
```
.profile-cover > .checkbox
```
I do not want to be too large by selecting `.checkbox`.
Thanks.<issue_comment>username_1: `A > B` only selects a child (direct descendant), so i... |
2018/02/26 | 452 | 1,525 | <issue_start>username_0: I have 20,000 rows in a CSV which I have loaded using d3. Within this CSV there are roughly 4,000 unique category names (each being repeated across various numbers of rows).
I would like to make a list (an array or objects) of all the ~4,000 category names from my CSV, to be able to filter out... |
2018/02/26 | 327 | 1,095 | <issue_start>username_0: When I am trying to run this code on a local server m getting this error. I have already mentioned in code that text-decoration-style: none;
I am getting text decoration as an underline, I want to remove that.
```
li {
list-style-type: none;
text-decoration-style: none;
display: inline-b... |
2018/02/26 | 438 | 1,632 | <issue_start>username_0: I have this mapStateToProps and I want to print a console.log(user.isLogged), but I need to change this to use explicit return instead of implicit. How can I change this?
```
const mapStateToProps = ({ user, retrospectives }) => (
{
userData: user.userData,
isLogged: user.isLogged,
... |
2018/02/26 | 668 | 2,292 | <issue_start>username_0: I need to create an empty JQuery element to be the outer scope list of a loop, for example :
```
const forms_data = ['Name', 'Email'];
const form = $();
for (const input_name of forms_data){
form.insertAfter(``)
form.append(``)
form.after(``)
}
$('form').append(form);
```
But none of... |
2018/02/26 | 423 | 1,375 | <issue_start>username_0: how do i write a query to retrieve a pattern of exactly five letters.
I have this question to answer :
List all the Customer name whose names are formed by exactly 5 letters.
The query i wrote is like this :
```
SELECT ContactName
From Customers
WHERE ContactName LIKE '[A-Z][A-Z][A-Z][A-Z][A... |
2018/02/26 | 661 | 2,079 | <issue_start>username_0: I want to select the last item of a list even if that list is flex-reversed.
**Example:**
I have a list. I want the background color in the last element at red. So, on the first list, it's ok. On the second list, that list is revert, isn't ok because the last element is "1" and not "5". So I ... |
2018/02/26 | 1,608 | 6,198 | <issue_start>username_0: I keep trying to reason upon the functionality of a method within a subclass that inherits functionality of a parents class. But it seems that I keep getting into a mental loop of: ***one*** cannot behave without the ***other*** but the ***other*** cannot come before the ***one***... My brain h... |
2018/02/26 | 1,206 | 4,568 | <issue_start>username_0: I have a link that has a class of ".btn", sometimes the URL of that link contains either /apply/ or /apply/jump/.
How do I construct and if that returns true based on what I want to check?
E.g.:
```
if btn url contains /apply/jump/
print true
else
print false
```
I am using Python.<issue_... |
2018/02/26 | 456 | 1,741 | <issue_start>username_0: The following example <https://github.com/graphql-java/graphql-java-subscription-example> which use's graphql-java for subscriptions over a websocket.
How can the same idea be done within the spring version? GraphQLSubscriptionResolver needs to return a publisher but I am unable to work out ho... |
2018/02/26 | 1,352 | 4,736 | <issue_start>username_0: I have the following Controller for my window:
```
package window;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.chart.BarChart;
import javafx.scene.chart.CategoryAxis;
import javafx.scene.chart.NumberAxis;
import javafx.scene.chart.XYChart;
import java.util.M... |
2018/02/26 | 1,556 | 3,467 | <issue_start>username_0: How can I count the number of days between a start and end date in SQL?
```
ID | START | END
1 |2018-1-1 |2018-1-3
2 |2018-1-1 |2018-1-4
3 |2018-1-1 |2018-1-5
```
Ideally would return:
```
DATE | COUNT
2018-1-1 | 3
2018-1-2 | 3
2018-1-3 | 3
2018-1-4 | 2
20... |
2018/02/26 | 711 | 2,262 | <issue_start>username_0: I recently started to get in to Kivy and now I am trying to create app for me and my friends which is a D&D sheet. I wanted to have all the important stats in one tab in which you can scroll down so that the text font doesn't have to be that small but I can't get it working with the `self.minim... |
2018/02/26 | 416 | 1,466 | <issue_start>username_0: I have a group of edittext, the number of the edittext depend on how many steps user will type in.
What I want to implement is to show one edittext at initial, then when user type in the current edittext, it will add a new blank edittext below.
How should I implement this listener?
I think ab... |
2018/02/26 | 2,299 | 8,531 | <issue_start>username_0: I'm building a new project on Angular 2/Angular 4, and i need to use Enter FullScreen Button on my Application.
I was searching and i've Found the code:
```
toggleFullScreen() {
if (!document.fullscreenElement && // alternative standard method
!document.mozFullScreenElement ... |
2018/02/26 | 1,144 | 4,465 | <issue_start>username_0: In my store, I need to build `Soap API`, which accepts XML data from 3rd party solution, parses it and creates new customer based on provided data.
My questions is how can I get XML from post body data?
Thanks!<issue_comment>username_1: Because these properties mozFullScreenElement, msFullscr... |
2018/02/26 | 441 | 1,688 | <issue_start>username_0: When I encrypt two different character strings of the same size:
```
echo 'abc' | gpg --yes --encrypt -r <EMAIL> > /tmp/1
echo 'def' | gpg --yes --encrypt -r <EMAIL> > /tmp/2
```
I get two encrypted files of the same size:
```
$ ls -l /tmp/[12]
-rw-r--r-- 1 loic loic 592 Feb 26 19:58 /tmp/1... |
2018/02/26 | 589 | 2,014 | <issue_start>username_0: I have a file say abc.log in which data with a timestamp is appended.
For example:
```
2018-02-18 22:42:05 DATA_ONE
2018-02-18 22:42:20 DATA_TWO
2018-02-18 22:44:05 DATA_THREE
2018-02-19 00:42:05 DATA_FOUR
2018-02-19 01:42:05 DATA_FIVE
2018-02-19 01:44:05 DATA_SIX
2018-02-19 03:42:05 DA... |
2018/02/26 | 328 | 1,227 | <issue_start>username_0: Need to hide the grand total(rows/columns) bar and show only labels for grand total. I need to sort the column as per the values(measures) and need to hide the bars for grand total row/column i.e. I do not want to show any bars for the grand totals, just the labels. Please find the below screen... |
2018/02/26 | 337 | 1,208 | <issue_start>username_0: I create a table like this:
**posts**
```
id title
```
**categories**
```
id name
```
**category\_post**
```
post_id
category_id
custom_value
```
**in Category model:**
```
public function posts()
{
return $this->belongsToMany(Post::class);
}
```
with this comma... |
2018/02/26 | 783 | 1,853 | <issue_start>username_0: I have an integer based dataframe with positional coordinates in one column and a variable in the second. The coordinates range from 1-10 million, the variables from 0-950 - I'm interested in returning the sum of the variables from ranges defined within a separate frame containing the start and... |
2018/02/26 | 957 | 3,081 | <issue_start>username_0: So this question is a follow up to this one: [swift string permutations allowing the same strings](https://stackoverflow.com/questions/48976065/swift-string-permutations-allowing-the-same-strings/)
There, I asked about all possible mutations that I can make with a defined set of strings. What ... |
2018/02/26 | 611 | 2,116 | <issue_start>username_0: I have a point cloud of a terrain, and want to generate a surface mesh. Is this possible to do in Meshlab?
The point cloud is an xyz file that I generated from a raster file of a Digital Elevation Model. Each point in the point cloud is on an evenly spaced grid in the x and y axis, and at the ... |
2018/02/26 | 892 | 3,132 | <issue_start>username_0: I have a specific use case I can't seem to find an answer to. Given the DOM elements below:
```
```
I need to find the index of the `.selected` element in regard to it's siblings. But I need to ignore any siblings that have the `.foo` child element (it will only ever be the direct child).
S... |
2018/02/26 | 772 | 2,654 | <issue_start>username_0: i would like make a select from two tables, clients and loans. The query (In MySQL syntax) would be something like this:
```
SELECT * FROM loans, clients WHERE loans.status = 1 AND loans.client_id = clients.id;
```
This are my models:
```
class Client extends Eloquent {
public function... |
2018/02/26 | 700 | 2,518 | <issue_start>username_0: My current sfml project has some views. The views change both size and center. I could mathematically calculate my desired position but that seems like too much work. Does there exist any built in function I could use?<issue_comment>username_1: Yes, you can use [`sf::RenderWindow::getDefaultVie... |
2018/02/26 | 604 | 2,374 | <issue_start>username_0: I have an object with nested field.
```
"parameters": {
"type": "nested",
"properties": {
"id": {
"type": "integer"
},
"values": {
"type": "keyword"
}
}
}
```
I am trying aggregate operation:
```... |
2018/02/26 | 842 | 2,844 | <issue_start>username_0: Well i am not a great designer but i am loving this flexbox.
I am making a small login form demo with flexbox using angular 5 material.
I wish to divide my login form into 2 parts.
I am trying to make it responsive fully .
here is what i am looking for : [my login image](https://i.stack.imgur.c... |
2018/02/26 | 620 | 2,267 | <issue_start>username_0: I am mounting a folder as a virtual drive and i want to run a .exe file everytime user opens any file present in that folder. To be precise the folder would contain dummy files present on some other machine. By dummy files i mean the file would be listed but it would be a empty file. Whenever u... |
2018/02/26 | 628 | 2,305 | <issue_start>username_0: I know how to create a backend page through the UI (`../Sitefinity/Administration/BackendPages/Pages`). Is there a way to add one through the project in VS so that I can create a custom MVC Admin Page with control over the controller and styled similar to the rest of the backend?
I would like ... |
2018/02/26 | 766 | 2,484 | <issue_start>username_0: I am working on a simple project that involves changing the binary data of several pixels from a bitmap. I was simply wondering how to print the binary data of one specific pixel to the console. I have written some basic code here lets say myBitmap is already an image:
```
Bitmap myBitmap = ne... |
2018/02/26 | 828 | 2,520 | <issue_start>username_0: I have this code and I want to pick a random element from Array1 and a random element from Array2 but Xcode is only giving me the number of the element.
```
let firstNrVar = [0, 2, 4, 6, 8, 10]
let secondNrVar = [0, 2, 4, 6, 8, 10]
func numberRandomizer() {
let shuffledFirstNr = Int(arc4ra... |
2018/02/26 | 1,224 | 4,970 | <issue_start>username_0: I'm brand new to JavaScript and currently learning about writing functions shorthand. I just came across this while studying:
```
const groceries = (groceryItem) => ' - ' + groceryItem;
```
Is it acceptable/best practice in the real world to write functions like this? (no return, no brackets... |
2018/02/26 | 417 | 1,462 | <issue_start>username_0: I am currently building an app in three languages English, Arabic, and Kurdish. I have already managed to do the English and Arabic but there is no choice for Kurdish. Is there any way to add my language (Kurdish) to my app in Xcode ( I am using Swift)?<issue_comment>username_1: Kurdish languag... |
2018/02/26 | 733 | 2,448 | <issue_start>username_0: I am trying to build a bitmap from a 2D array, with a low size just for testing.
Even if I set the matrix properly (one pix black, one white), when I build the bitmap it seems like some interpolation filter is applied. How I can get just pixel values?
```
bool switchColor = false;
int width = ... |
2018/02/26 | 1,053 | 2,521 | <issue_start>username_0: I'm trying to work on the counting sort algorithm. The program runs when use the debugger but the problem is what it outputs. The output values are -842150451 in visual studio. I'm not sure why I'm getting that values. I'm also getting this pop up to:
>
> "Unhandled exception thrown: read acc... |
2018/02/26 | 1,025 | 3,891 | <issue_start>username_0: I have some code executed on an `SyncAdapter` on the background thread that looks like this
```
Task docTask = FirebaseFirestore.
getInstance().
collection("users\_dummy").
document("ID1").
get();
```
How can I continue on the background thread when this task has been finished?
I tried ... |
2018/02/26 | 536 | 1,747 | <issue_start>username_0: I have use library chart from this page [link](https://www.highcharts.com/stock/demo/basic-line). Unfortunately, the data I download is not compatible, for example:
I get from JSON time:
```
time: 1346803200
```
this time is not displayed on the chart. I must add three zeros at the end (loo... |
2018/02/26 | 320 | 1,088 | <issue_start>username_0: Can using this command
```
nmap www.google.com
```
Cause dos attack. It gave me some output but I do not understand it. I have never used nmap before.<issue_comment>username_1: Seriously?
```
$time = $chart['Data'][$i]['time'] * 1000;
```
Upvotes: 1 <issue_comment>username_2: You con multi... |
2018/02/26 | 1,104 | 3,423 | <issue_start>username_0: I'm reading from a text file a word (program) and I want to store it into my 2d array called `word1`. To do this, I read in the file and store into a placeholder array. I then convert this placeholder array into a char array so that every letter is split up. I now want to send the individual le... |
2018/02/26 | 432 | 1,655 | <issue_start>username_0: I have installed Tensorflow cpu version.I have only few images as dataset and I am training on a machine with 4GB ram and Core i5 3340m 2.70GHZ with batch size 1 and it is still extremely slow.the size of all images is same (200X185 i think).Will it train like this ? kindly tell me how can I sp... |
2018/02/26 | 433 | 1,843 | <issue_start>username_0: I have executed this command: ng build --prod --environment=prod to create the production release package. This creates a package in dist folder.
Where is the values of environment.prod.ts? Somehow, can I modify these property values. If this is possible, then I can use the same QA package an... |
2018/02/26 | 413 | 1,410 | <issue_start>username_0: When I put the values of my input and type ctrl + d the last line repeat and that is not suppost to happen. Anyone know what is happen?
```
while(1) {
if(getchar()==EOF)
break;
scanf(" %c %d", &s, &b)
}
```
For example, image that I put (input)m 2 and the res... |
2018/02/26 | 369 | 1,379 | <issue_start>username_0: Can a user application on macOS receive raw ethernet packets? I have a piece of hardware that uses it's own custom ethernet protocol and has it's own ether type defined. Is there anyway I can create a user application that sends / receives these packets? Mac OS does not support AF\_PACKET. I be... |
2018/02/26 | 819 | 2,684 | <issue_start>username_0: I have to update a search builder which builds a relation with CTE. This is necessary because a complex relation (which includes DISTINCT, JOINs etc) is first built and then it's results have to be ordered – all in one query.
Here's a simplified look at things:
```
rel = User.select('DISTINCT... |
2018/02/26 | 486 | 1,942 | <issue_start>username_0: ARCore can track static surfaces according to its documentation, but doesn't mention anything about moving surfaces, so I'm wondering if ARCore can track flat surfaces (of course, with enough feature points) that can move around.<issue_comment>username_1: Yes, ARCore tracks feature points, esti... |
2018/02/26 | 726 | 2,437 | <issue_start>username_0: I have a script where I keep time of when I start and finish. This code works on Linux, but not on my MacOS Sierra v 10.12.6
```
start=`date +"%a %b %d %Y %r"`
end=`date +"%a %b %d %Y %r"`
elapsed_time=`date -d @$(( $(date -d "$end" +%s) - $(date -d "$start" +%s) )) -u +'%H:%M:%S'`
```
The e... |
2018/02/26 | 854 | 3,185 | <issue_start>username_0: I have two queries that obtain data from various tables. Query #1 brings back data that contains ALL answers for 2 specific questions. Query #2 returns all the possible answers (a defined list).
```
Table Client_Answers ca
QuestionID AnswerID
1 1
2 3
2 ... |
2018/02/26 | 539 | 2,016 | <issue_start>username_0: I have python script (3rd party script) calling [getpass](ftp://ftp.fu-berlin.de/unix/languages/python/doc/Python-2.6-docs-html/library/getpass.html).
I need to use a script to provide the password. Simple piping doesn't work because **getpass**, according to the doc, reads from */dev/tty*. ... |
2018/02/26 | 1,859 | 7,386 | <issue_start>username_0: I am a novice at Python but am learning as I go. I found this script and it works well but I wanted to make some edits to it so that it also saves the name of the instance that it created a snapshot for.
```
import boto3
import collections
import datetime
#allows Python developers to write s... |
2018/02/26 | 522 | 1,824 | <issue_start>username_0: ```
class MoveOnlyOperation
{
public:
MoveOnlyOperation() = default;
MoveOnlyOperation(const MoveOnlyOperation&) = delete;
MoveOnlyOperation(MoveOnlyOperation&&) = default;
int operator()()
{
return 0;
}
};
```
I want to wrap an ob... |
2018/02/26 | 499 | 1,830 | <issue_start>username_0: I have a table as follows:
```
with(myTable)
{
enableCellEditing()
columnResizePolicy = SmartResize.POLICY
isEditable = true
column("Issue Date", TradeEntity::issueDate).makeEditable().cellFormat { tc ->
style { if (tc.dayOfMonth==10) backgroundColor += Color.ORANGE }
... |
2018/02/26 | 1,164 | 4,251 | <issue_start>username_0: I'm trying to click a button on an external windows application. The following code successfully finds the element, brings the parent window into focus and then "manually" clicks the button
This works okay...
```
Process tProcess = Process.GetProcesses().FirstOrDefault(x => x.MainWindowTitle.... |
2018/02/26 | 203 | 797 | <issue_start>username_0: I read in certain docker plugins, such as [docker-slave-plugin](https://wiki.jenkins.io/display/JENKINS/Docker+Slaves+Plugin), it shows there is support for compose but I do not understand how to implement it.
Has anyone used docker-compose in the Jenkins pipeline and how?<issue_comment>userna... |