date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/05 | 865 | 2,265 | <issue_start>username_0: I have two tables of dates, for the questions's sake call them `dates1` and `dates2`. Sometimes a given date is in both, sometimes it is in 1 but not 2, and other times in 2 but not 1.
My original requirement was just a list of *all* dates from both sets
```
SELECT Date FROM dates1
UNION
SELE... |
2018/03/05 | 675 | 2,472 | <issue_start>username_0: [](https://i.stack.imgur.com/Omsba.png)
I just built the project that I'm supposed to fix. I double checked that correct DLLs are loaded - the proj... |
2018/03/05 | 219 | 887 | <issue_start>username_0: Here is my code:
```
#include
int main()
{
char a = getchar();
printf("char: %c", a);
}
```
I'm compiling this with `gcc`.
When running, the program waits for input even after one character is entered on console. Shouldn't it immediately exit and print the character? I'm running this on... |
2018/03/05 | 1,104 | 3,651 | <issue_start>username_0: Im working on a project report for work and I'm trying to find a way to compare two lists of project codes i.e "123456" and see whether the 2nd list is missing any new values that would've been entered into the first list. The lists are thousands of records long and so far people have been doin... |
2018/03/05 | 455 | 1,642 | <issue_start>username_0: I am trying to replace a letter from a paragraph I have added this code mentioned below its working but its replacing only one letter in the paragraph, For example I have this paragraph
`This is a test paragraph, This is a test paragraph, This is a test paragraph`
Now in the above line I am t... |
2018/03/05 | 375 | 1,340 | <issue_start>username_0: I have more then thousand images stored in my web server. Now I want to transfer my all store images from my web server to cloudinary . I mean ,I want to export all my images from my web server and store all images to my cloudinary account.
Is there any possible way??How I can export the image... |
2018/03/05 | 381 | 1,208 | <issue_start>username_0: I am trying to grab 4 Minimum values from a array list.
Example
```
var ArrayList =[2,3,4,76,23,14,99,54,21]
```
I would like to grab 4 Numbers so result should be 2,3,4,14
Thanks in advance.<issue_comment>username_1: Use `/test/g` in your function in order to replace letter from a paragra... |
2018/03/05 | 381 | 1,437 | <issue_start>username_0: Artifactory Professional 5.9.0 rev 50900900
Regarding to documentation Artifactory Pro supports "Event-based push"
I am create 2 test repos with replication from one to second and "Enable Event Replication" enabled
[screenshot](https://i.stack.imgur.com/dOJdw.jpg)
But then I upload artifact... |
2018/03/05 | 549 | 2,036 | <issue_start>username_0: How do I create an `IReadOnlyList` with some values in it?
I found an example of `ReadOnlyCollection` which seems to convert an existing collection to an `ReadOnlyCollection` but that approach didn't work.
Here's what I tried:
```
var myList = new List()
{
"Hello World!",
"Some more text h... |
2018/03/05 | 748 | 2,673 | <issue_start>username_0: In one of the applications I'm working on, based on the last known speed of a vehicle, I'm interpolating the next position of the vehicle every 100 ms and plotting it on the map. This is causing a performance issue on mobile devices.
We're also using MarkerWithLabels to put a label next to th... |
2018/03/05 | 313 | 1,187 | <issue_start>username_0: My app using Audiokit is running perfectly without sandbox. But as soon as I enable sandbox in Xcode the app crashes when trying to initialize the mic access.
(The app is on the App Store for iOS, but now I am trying to submit to the Mac Store as a OS X app but I need to enable sandbox)
Has an... |
2018/03/05 | 1,188 | 4,278 | <issue_start>username_0: I'm having some trouble following the docs on how to get this to work
I have a component that has some styles created, for the most part, all of these styles will apply to wherever this component is rendered but sometimes depending on what page the app is routed to I will want to change the ov... |
2018/03/05 | 253 | 770 | <issue_start>username_0: I have a column called `expires_at` and its a datetime in my MySQL database. I need to fetch records where expires\_at hasn't been met, how can I do this?
My current query looks like this
`Model::where('user_id', Auth::user()->id)->get();`<issue_comment>username_1: >
> <https://laravel.com/d... |
2018/03/05 | 872 | 2,224 | <issue_start>username_0: My data looks like this:
```
{ outer_key1 : [ {key1: some_value},
{key2: some_value},
{key3: some_value} ],
outer_key2 : [ {key1: some_value},
{key2: some_value},
{key3: some_value} ] }
```
The inner arrays are always the same... |
2018/03/05 | 1,892 | 6,958 | <issue_start>username_0: I've found a lot of answers regarding [RxJava](https://stackoverflow.com/questions/22847105/when-do-you-use-map-vs-flatmap-in-rxjava), but I want to understand how it works in Reactor.
My current understanding is very vague, i tend to think of map as being synchronous and flatMap to be asynchr... |
2018/03/05 | 200 | 612 | <issue_start>username_0: We would like this `echo` command to be run within a script but are having issues.
```
/bin/echo -e 'connect XX:XX:XX:XX:XX:XX \n quit \n' | bluetoothctl
```
How can I run this command in a bash script?<issue_comment>username_1: `printf` is your best option, however, for the case you have th... |
2018/03/05 | 300 | 978 | <issue_start>username_0: I have model
```
class Model {
int counter;
}
```
now I get a Model object at runtime, so I mark it as dynamic.
```
dynamic model = new Model();
int counter = 3;
```
What would be possible way to do equivalent of
```
model['counter'] = counter;
```
one thing to mention is that cou... |
2018/03/05 | 671 | 2,219 | <issue_start>username_0: im improving my skills in laravel making a simple challenges web but i stuck on the next problem.
I have the users table with the id, name, mail, etc. The challenges table where i list all the challenges (with columns id, name, body, answer, score) and a third table called "Answers" where i po... |
2018/03/05 | 1,337 | 5,146 | <issue_start>username_0: I have written an android app for fun that have inner sqlite database after gathering many data using html parser I found my numbers that are saved as
**text** in database, are written in English language, so doing query in persian that people in my country try will return nothing on numbers
... |
2018/03/05 | 454 | 1,709 | <issue_start>username_0: What is the best way to reference a libarary downloaded using nuget?
When I go to references and then find the path to the library inside of the packages folder, it seems to include my TFS branch path in the reference path.
How do I get it to reference the dll in a more generic way?
I don't ... |
2018/03/05 | 479 | 1,635 | <issue_start>username_0: When I run `sudo npm install -g express-generator`:
```
/Users/myname/npm/bin/express -> /Users/myname/npm/lib/node_modules/express-generator/bin/express-cli.js
/Users/myname/npm/lib
└── express-generator@4.15.5
```
And when I run `express`:
```
express not found
```
Also, I thought it... |
2018/03/05 | 656 | 2,127 | <issue_start>username_0: Is there any effective way to remove punctuation in text but keeping hyphenated expressions, such as "accident-prone"?
I used the following function to clean my text
```
clean.text = function(x)
{
# remove rt
x = gsub("rt ", "", x)
# remove at
x = gsub("@\\w+", "", x)
x = gsub("[[:p... |
2018/03/05 | 973 | 3,579 | <issue_start>username_0: This query is working fine
```
select OrderForSeries.memberid,
Orderforseries.seriesid ,
log(count(orderforcontent.id)) as rating,
Series.Mainauthorid,
series.Likecount,
series.viewcount
from series join OrderForSeries on OrderForSeries.SeriesId=Series... |
2018/03/05 | 743 | 2,899 | <issue_start>username_0: When we inherit a method in C# how it the best way to call it. With base or this. Here are some example:
```
class User
{
public void LogData()
{
Console.WriteLine($"Log data from user");
}
}
class Admin : User
{
public void Delet... |
2018/03/05 | 848 | 3,351 | <issue_start>username_0: So I have the embed working in Power Bi based on this model
[<https://community.powerbi.com/t5/Developer/Embedded-Report-add-filter-to-EmbedConfig/td-p/199739]>
But things start failing once I add in the filter. Its throwing an error in including settings in the config. I'm following the mode... |
2018/03/05 | 586 | 2,328 | <issue_start>username_0: This post is an insight on `npm` for those of you who have a `maven` background.
In the `Java/maven` world, you build a source code to a jar, then you push your jar to Nexus. **All of this is done using `maven`**.
Eventually, your deployment tool retrieves your jar from where it was stored ... |
2018/03/05 | 225 | 790 | <issue_start>username_0: I developed an expert system using CLIPS and would like to be able to run it on the command line. Is this possible?
My end goal is to have a Java program execute the .clp in CMD and pass the output and input to and from the command line and gui.
Can I run the project in clipsdos? If so how? ... |
2018/03/05 | 522 | 2,059 | <issue_start>username_0: Hi I want to store a large array of countries in my angular app as there are large forms that sometime require a country select. I have the following ideas but have no idea what is the best practice:
1. Store the array in a data service and grab when required
2. Store the array as a property o... |
2018/03/05 | 1,803 | 6,544 | <issue_start>username_0: I have a tableview with custom cells. I am looking to make a button inside the custom cell and when I click it that it deletes that row and refreshes the main view with the new array. The array is gotten when the view loads from the userDefaults which are stored as shown below. The following co... |
2018/03/05 | 1,710 | 6,089 | <issue_start>username_0: Just starting out hope this isn’t too noob a question
For the game I’m working on I want to have different tabs, the effect of which would be similar to an iOS bottom tab controller as pictured:
[](https://i.stack.imgur.com/R... |
2018/03/05 | 677 | 1,542 | <issue_start>username_0: How to get ***`big-O`*** for this?
```
T(N) = 2T(N − 1) + N, T(1) = 2
```
I got two variants of answer ***`O(2^N)`*** or ***`O(N^2)`***, but I am not sure how to solve it correctly<issue_comment>username_1: Divide `T(N)` by `2^N` and name the result:
```
S(N) = T(N)/2^N
```
From the def... |
2018/03/05 | 1,020 | 3,732 | <issue_start>username_0: I am unable to save an Excel workbook using the code below on a server with a scheduled agent but it works on when I run it locally.
Error I get is:
>
> **Agent Manager: Agent message: INITIALIZE: - Error #213 - Microsoft Excel: SaveAs method of Workbook class failed @ line #37**
>
>
>
... |
2018/03/05 | 451 | 1,743 | <issue_start>username_0: ```
WhiteList
Hello stranger lets see if you are on the list!!
================================================
Check
function click(){
var name = document.getElementById('1').value;
if (name == "tijmen"){
document.getElementById("stuff").innerHTML = "<p>hey you are on the list welco... |
2018/03/05 | 634 | 1,931 | <issue_start>username_0: Below is my `App.vue` file code and I faced the problem with change of the font in md-tabs, component from <https://vuematerial.io/components/tabs>. The line in CSS:
```
background: #42A5F5;
```
works, but this don't
```
color: #E3F2FD;
```
**App.vue**:
```
export default {
name: 'Ap... |
2018/03/05 | 669 | 2,024 | <issue_start>username_0: `enter code here`I can't really explain it better than this code example.
<https://codepen.io/anon/pen/BYeger>
I want to make `#thing_down_here` touch `#thing_up_here`, but I can't figure out the right combination.
```css
html, body {
margin: 0;
padding: 0;
}
* {
box-sizing: bord... |
2018/03/05 | 891 | 3,010 | <issue_start>username_0: I am trying to install tensorflow with cuda and gpu support. When I try to import it, I get the following error:
```
Traceback (most recent call last):
File "", line 1, in
File "/home/srivishnu/.local/lib/python2.7/site-packages/tensorflow/\_\_init\_\_.py", line 24, in
from tensorflow.py... |
2018/03/05 | 650 | 2,594 | <issue_start>username_0: In C++ is it reasonable having an interface class inherits from a concrete class? Is this bad deign smell?
I have an interface which defines a behaviour, and a inherited class which defines an implementation.
Now I have another class and I want to state *"Whoever inherits from this class need... |
2018/03/05 | 440 | 1,904 | <issue_start>username_0: We have build a website for a client that is providing streaming video content for members. What we are facing right now is that our movies are getting downloaded. We know that we can't block off screen capture, but at the moment it seems people are downloading instead of screen capturing.
We ... |
2018/03/05 | 553 | 2,063 | <issue_start>username_0: Lets say I have a text document that cannot be changed in any way and needs to be left as is.
Example of what the text document is likely formatted to be:
```
1. What is soup commonly paired with?
2.
3.
4. Alcohol
5. Water
6. Bread
7. Vegtables
8.
9.
10.
```
Note:
The numbers are not inclu... |
2018/03/05 | 473 | 1,852 | <issue_start>username_0: I am using Xamarin forms and fetching a list of JSON objects, which are of multiple `Types`. E.g.
```
class BaseClass
{
public int Id;
}
class ClassA: BaseClass
{
public string Name;
}
class ClassB: BaseClass
{
public DateTime DateOfBirth;
}
```
and so on..
When I fetch such o... |
2018/03/05 | 883 | 2,797 | <issue_start>username_0: ```
Ex.
"docs": [
{
"id": "f37914",
"index_id": "some_index",
"field_1": [
{
"Some value",
"boost": 20.
}
]
},
]
```
If 'field\_1' is matched, then boost by corresponding 'boost' field.<issue_comment>username_1: Boost what? the document? the specific field? you can do any... |
2018/03/05 | 257 | 907 | <issue_start>username_0: If i am having 2 animations happening on a click, can we prioritize which animation to happen first.
Both animations are orthogonal. I would like to prioritize one animation after the other.
Is there any way?<issue_comment>username_1: Perhaps you can apply the animations to different events,... |
2018/03/05 | 297 | 1,027 | <issue_start>username_0: In typescript i am defining one interface and class which implements that interface.
```
interface II {
p1:string;
m1(p:number):string;
}
class A implements II {
p1; //??? why data type is not required?
m1() { // ??? why it is working even without parameter p
... |
2018/03/05 | 310 | 1,046 | <issue_start>username_0: I need to set name for some threads.
What are the fifferences between `prctl(PR_SET_NAME PR_SET_NAME )` and `pthread_setname_np()`?<issue_comment>username_1: `pthread_setname_np(pthread_t pth, char* th_name)` sets the thread `pth`'s name to `th_name`, whereas `prctl(PR_SET_NAME, th_name)` will... |
2018/03/05 | 293 | 1,120 | <issue_start>username_0: I have created an observable using `Observable.of()` by importing it from `rxjs/Observable`. But, editor was showing error. But, after so many trials I changed it from `rxjs/Observable` to `rxjs`. Then it worked fine. May I know the difference between those. I have referred some [solutions](htt... |
2018/03/05 | 698 | 2,368 | <issue_start>username_0: I have power query in MS excel 2016, I order data by name, but I have accented letters š, č, ... which are now sorted to the end of dataset but should be for example š after s or č after c. Is it possible how to make some workaround here? I guess maybe change encoding, but I can't find how.
``... |
2018/03/05 | 1,754 | 6,486 | <issue_start>username_0: I created a simple project with spring boot and JOOQ, added dependency "spring-boot-starter-jooq". The application failed to start when I compiled.
**Here is the pom.xml:**
```
xml version="1.0" encoding="UTF-8"?
4.0.0
com.bingo
api
0.0.1-SNAPSHOT
jar
api
Demo project for Spring Boo... |
2018/03/05 | 870 | 3,834 | <issue_start>username_0: Playing with randomness in C++, I have this piece of code:
```
#include
// do not initialize return
int rand\_int(){}
float rand\_float(){}
int main(int argc, const char \*argv[])
{
std::cout << rand\_int() << std::endl; // Ok, Garbage value
std::cout << rand\_float() << std::endl; ... |
2018/03/05 | 1,396 | 5,283 | <issue_start>username_0: I was reading an [article](https://blog.angularindepth.com/the-mechanics-of-dom-updates-in-angular-3b2970d5c03d) of Max NgWizard K, about how Angular updates the DOM. I came across the following:
>
> For each component that is used in the application Angular compiler generates a factory. When... |
2018/03/05 | 465 | 1,517 | <issue_start>username_0: I using the following code to write a stream to elasticsearch from python (pyspark) application.
```
#Streaming code
query = df.writeStream \
.outputMode("append") \
.format("org.elasticsearch.spark.sql") \
.option("checkpointLocation", "/tmp/") \
.option("es.resource", "logs/raw") \
.option("... |
2018/03/05 | 289 | 1,414 | <issue_start>username_0: What is an Abstract Activity in android? This question was asked at one of the interview. I tried searching about this at androidxref unfortunately not able to found.
Can any one help to answer this , Thanks!!<issue_comment>username_1: As in comments the purpose of `AbstractActivity` is same ... |
2018/03/05 | 1,386 | 5,655 | <issue_start>username_0: I have the following code which simply executes a stored procedure which accepts 1 parameter.
```vb
Public Function GetData(ByVal Faccode As String, Optional ByRef s As String = "") As DataSet
Dim params As SqlParameter() = {New SqlParameter("@aFacilityCode", SqlDbType.VarChar, ParameterD... |
2018/03/05 | 955 | 3,906 | <issue_start>username_0: I have a simple tableview within my Settings VC. There are two different cases, either the logged in user is an employee or the admin. The Admin is able to add Users to the organization, so he sees two sections with one row each (add user and log out) while a normal employee only sees one secti... |
2018/03/05 | 827 | 3,259 | <issue_start>username_0: Today I accidentally stumbled upon a MemoryBarrier and realized that I do not fully understand the work of the CPU with RAM. The search did not give me an unambiguous answer to the question, so I decided to ask a new question.
There are two arrays:
```
int[] dataStates; //default items value ... |
2018/03/05 | 909 | 3,589 | <issue_start>username_0: I'm using React-Router's [Prompt](https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/api/Prompt.md) to show confirm dialog before leaving the page. They implemented Prompt using `history.block` from the [history package](https://github.com/ReactTraining/history... |
2018/03/05 | 874 | 3,265 | <issue_start>username_0: Looking to match word1 before word2, allowing up to 5 word separation between word1 and word2. For example, if word1 is apple and word2 is mango, then pattern should match 'apple is a fruit like mango' but not match 'mango is a fruit like apple' (word2 before word1) or 'apple and orange are fru... |
2018/03/05 | 572 | 1,643 | <issue_start>username_0: So I have the following code:
```
* [One](1)
* [Two](2)
+ <A>
+ <B>
+ <C>
* [Three](3)
```
I'm trying to apply a border specifically to One Two and Three but NOT A B and C. Right now I have:
```
.nav-items.menu-active a {
color: green;
padding-bottom: 13px;
border-bottom: 5px solid ... |
2018/03/05 | 1,659 | 7,744 | <issue_start>username_0: We're implementing a new web application in Asp.net core 2.0, and I'd like to be able to restrict actions based on a combination of things, rather than one particular user role (like admin, power user, etc). The problem space looks like this:
* Each User can have a particular 'home' facility t... |
2018/03/05 | 570 | 1,817 | <issue_start>username_0: I was given an exercise, in which I was supposed to implement like this:
```
[1,2,3,4].custom_method(arg)
```
I have no idea how this would be done or if it can be done.<issue_comment>username_1: To add a method to all array objects, you need override them, like this:
```
class Array
def... |
2018/03/05 | 730 | 2,569 | <issue_start>username_0: Before explain my doubt I want to mension that there're three "actors" in this enviorement:
* A desktop program executed in some server
* A person who uses this program remotely through a computer
* And an Android tablet application that is connected with the computer via USB
When the person ... |
2018/03/05 | 615 | 1,987 | <issue_start>username_0: We started to get failed messages when refreshing extracts based on Bigquery
When looking at the error in the TABLEAU Server we see the next error:
[](https://i.stack.imgur.com/96J7L.png)
Did you encounter a similar problem?
... |
2018/03/05 | 1,025 | 3,485 | <issue_start>username_0: I have this model factory that generates new contact, it uses random `company_id`:
```
$factory->define(App\Models\Contact::class, function (Faker\Generator $faker)
{
$company_id = Company::all()->random()->id;
return [
'firstname' => $faker->firstName,
'lastname' =>... |
2018/03/05 | 4,083 | 13,647 | <issue_start>username_0: I am trying to install CVXPY on windows. I already had installed Anaconda, so I am following [this](http://www.cvxpy.org/en/latest/install/#windows-with-anaconda) steps. I updated anaconda to the latest version, and checked that the Visual Studio C++ compiler for Python was already installed on... |
2018/03/05 | 870 | 3,867 | <issue_start>username_0: What I'm trying to do is to return the value of the key named `class` of the node named `m1` with a sibling named `name`
---
Here's what my database looked like
[](https://i.stack.imgur.com/uEC4m.png)
---
Here's what my c... |
2018/03/05 | 662 | 2,643 | <issue_start>username_0: I have two tables that I'm trying to create a relationship for.
```
Table_A:
ID_A
Flag (Y/N)
Table_B:
ID_A
ID_B
```
The two tables link on `ID_A`, where `Table_A.Flag='Y'`
Is there a way to define the relationship in this way?
**Clarification:**
I am using the fact that it can be done in ... |
2018/03/05 | 681 | 2,816 | <issue_start>username_0: Is there any way while inside a Twilio Studio Flow to access Digits from a TwiML Gather that has been returned from a function inside the flow?
---
I am using Twilio Studio to create a rather complex call flow. At one point in the flow, I need to create a TwiML Gather with a dynamic number of... |
2018/03/05 | 1,274 | 4,958 | <issue_start>username_0: I have created a node app using express and a pug file. The express app called and listen on port 3000 and renders the pug file. I have a function which picks up information from an api and I would like to be able to use this information and print it using the pug file.
Here is my app.js file
... |
2018/03/05 | 1,031 | 2,986 | <issue_start>username_0: Working with mongoose and Express for a basic data endpoint, and I'm having trouble with the `Update` portion of the CRUD operations.
Testing the Update path works in Postman, but when I try from my angular app, it returns this:
>
> MongoError: Updating the path '\_\_v' would create a confli... |
2018/03/05 | 551 | 1,811 | <issue_start>username_0: wondered if anyone could shed some light on this issue:
I'm trying to locate the Airflow REST API URL to initiate a DAG to Run from AWS Lambda Function.
So far from looking at all the relevant documentation provided from the Apache Incubator Site, the only guidance to solved the problem is by... |
2018/03/05 | 1,147 | 3,416 | <issue_start>username_0: I am developing an interface in which I need to show data based on weekdays.
For some reasons it is showing them wrongly. My requirement is to show 7 boxes in each row from Monday to Sunday and show data in those day's boxes that have data saved against in them.
Here is the code I am working... |
2018/03/05 | 1,138 | 4,254 | <issue_start>username_0: Basically I need to open two files in the same workbook so I can preform some calculations on the values.
I can open a single file with the code below:
```
Sub sbVBA_To_Open_Workbook_FileDialog_xls_C()
Dim strFileToOpen As String
strFileToOpen = Application.GetOpenFilename _
... |
2018/03/05 | 1,315 | 4,875 | <issue_start>username_0: Right now I am working on a wrapper for common functions for transcrypt called TranscryptFrame. I get a compiler error and I like to know if we can solve this in any way, maybe it is just a little change in the code to get things working.
You need to have the latest TranscryptFrame.py file in ... |
2018/03/05 | 568 | 1,430 | <issue_start>username_0: I have 2 `shapely.LineString`, and I would like to verify if they are parallel.
```
a = LineString(((0, 0), (0 , 1)))
b = LineString(((1, 0), (0.9, 1))) #Not intersecting, but also not parallel)
```
When I use intersects, the `intersects`, it returns `False` because the 2 lines are not inte... |
2018/03/05 | 817 | 3,216 | <issue_start>username_0: **Context**
ASP.NET Core 2.0 MVC project
**Issue**
Using a View Model something like this:
```
public class UpdateReturnIssueViewModel
{
public IssueTrackerIssue Issue { get; set; }
public bool CloseIssue { get; set; }
}
```
Where IssueTrackerIssue is something like this:
```
pu... |
2018/03/05 | 724 | 2,614 | <issue_start>username_0: I have a vendor properties file and it has property name and values. Now I have to read property file and display only property names.
Below are some property names and its values.
```
ipaddr=10.1.1.1,192.168.3.11
ports=2345
location=anywhere
```
I want my output to display like below
``... |
2018/03/05 | 896 | 3,308 | <issue_start>username_0: I have the following adjacency list of NIST 800-53 controls:
```
id item content parent
1 Checklists null 0
2 NIST80053 NIST 80053 1
3 AC Access Control 2
4 1 POLICY.. 3
5 2 ACCOUNT.. 3
6 3 ... |
2018/03/05 | 736 | 2,952 | <issue_start>username_0: I would like to asynchronously read messages produced by user from stdin.
Something like:
```
Flux.from(stdinPublisher())
.subscribe(msg -> System.out.println("Received: " + msg));
```
So how to implement such stdin publisher here?<issue_comment>username_1: It was easy. Sorry for distur... |
2018/03/05 | 1,710 | 5,336 | <issue_start>username_0: I have an array of events containing a title, start time, end time, start date.
I'm looping through all of the results currently with:
```
foreach ($events as $event) {
echo $event['title'];
}
```
Which lists the items absolutely fine.
Is there a way I can GROUP the below array into mo... |
2018/03/05 | 1,641 | 5,390 | <issue_start>username_0: The below beautiful SP returns the table and columnname and the value
What I am interested in however is to do this search for multiple values.
The only thing I want to know is a distinct output of the table/columnname not the value.
So basically I want to know all tables / columnnames in w... |
2018/03/05 | 667 | 1,726 | <issue_start>username_0: I need to create groups of numbers which summed up do not reach 34.
For example: I have an array `x<-c(28,26,20,5,3,2,1)` and I need to create the following groups: `a=(28,5,1)`, `b=(26,3,2)`, `c=(20)` because the sums of the groups `a`, `b` and `c` do not exceed 34.
Is it possible to impleme... |
2018/03/05 | 780 | 2,815 | <issue_start>username_0: I am trying to setup Flutter in windows 10.
I have:
* Android Studio installed
* Visual Studio Code
When I run "andoid doctor" in command prompt is shows no errors:
[](https://i.stack.imgur.com/ZW5lN.png)
But When I try to c... |
2018/03/05 | 697 | 2,674 | <issue_start>username_0: This question, just to be sure my interpretation is correct :
I'm using Mojohaus jaxb2-maven-plugin to generate java classes from .xsd files, and by default it puts them in target/generated-sources
Now, I want to get track of these classes in source control (target is of course excluded), and... |
2018/03/05 | 692 | 2,354 | <issue_start>username_0: I just installed Ubuntu 17.10 and I want to try create a website using Laravel, but I hit a rock, I followed the instructions. step by step on the official website. But I think something is missing,
Because I haven't touch / edit anything in Homestead.yaml, so basically it would working right?... |
2018/03/05 | 2,508 | 4,694 | <issue_start>username_0: ```
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.rand(30,3))
df.head()
```
which gives:
```
0 1 2
0 0.741955 0.913681 0.110109
1 0.079039 0.662438 0.510414
2 0.469055 0.201658 0.259958
3 0.371357 0.018394 0.485... |
2018/03/05 | 652 | 2,296 | <issue_start>username_0: I believe that I can say...
```
for (int i = 0; i < noun[].size(); i++)
{
if ( word[0] == noun[i])
{ //do something }
}
```
The problem is, that I need to do this many times with many words. And sometimes I'd like to do many words at once. Like `if (words[0] == noun[/*any*/] && wor... |
2018/03/05 | 1,112 | 3,734 | <issue_start>username_0: Still learning SQL, I have the below select that works well, however, I would like to speed it up a bit. From what I understand about Indexing (Very little), I need to have a Unique ID column for an Index to have an effect?
None of my tables have a unique ID, even combinations of the columns w... |
2018/03/05 | 374 | 1,390 | <issue_start>username_0: I'm trying to get all the collection from a database in mongodb with PHP but I didn't find anything on internet useful.
This is what I get so far
```
$client = new MongoDB\client;
$database = $client->database2;
$collections = $database->listCollections();
foreach ($collections as $collectio... |
2018/03/05 | 1,301 | 4,872 | <issue_start>username_0: I closely follow step-by-step [lvChart Customizing Tooltips](https://lvcharts.net/App/examples/v1/wf/Tooltips%20and%20Legends) in trying to build a custom tooltip for LineChart points. But I get empty tooltip content. Other than using ObservableValue for ChartValues type, my code is near identi... |
2018/03/05 | 1,236 | 3,758 | <issue_start>username_0: I have an array of objects:
```
jobs: {
tasks:
{
Clean:[
{time: "08:00", task: 'floor 1'},
{time: "09:00", task: 'floor 2'}
],
Print:[
{time: "10:00", task: 'x files'},
{time: "11:00", task: 'x files 2... |
2018/03/05 | 1,322 | 3,916 | <issue_start>username_0: I can't seem to horizontally center my two buttons.
I have tried adding the following to the landingpage-button element:
```
margin: 0 auto;
margin-left: auto;
margin-right: auto;
```
I have also tried removing the complete margin part.
**Here is the HTML code**
```
WELCOME TO NOVA ... |
2018/03/05 | 1,102 | 3,313 | <issue_start>username_0: From what I gather a transformer is the use of functions that change , alter , a collection of elements . Like if I did added 1 to each element in a collection of
```
[1 2 3 4 5]
```
and it became
```
[2 3 4 5 6]
```
but writing the code for this looks like
```
(map inc)
```
but I k... |
2018/03/05 | 565 | 2,308 | <issue_start>username_0: Is it safe to assume that RxJS will trigger the next function of each of its observers in the order they have subscribed. I have a class with a public propery of BehaviorSubject. The first subscription made to it will be from with in the class' constructor. I would like to make sure that the ne... |
2018/03/05 | 1,428 | 4,772 | <issue_start>username_0: Let's say I am having a dictionary as `dict1` which is having the skeleton (the order and nested depth) of the new dictionary I desire. For example:
```
dict1 = {
"Personnel": {
"Performance": ""
},
"Gaming": {
"Status": "",
"Bug Status": ""
},
"Compatible": {
... |
2018/03/05 | 1,172 | 3,998 | <issue_start>username_0: I have some JSON but it's in a matrix and I do not know how to get the values separately. For example, get the last name.
This is the JSON structure:
```
{
"login": true,
"token": "<PASSWORD>",
"usuario": [
{
"names": "<NAME>",
"las_name": "Rosado"... |
2018/03/05 | 1,755 | 6,075 | <issue_start>username_0: I am trying to select copy everything from a "database" workbook. and paste it in the current workbook, sheet 5. The code I am using is the following.
```
Sub Import()
Dim DBaseWB As Workbook
Set DBaseWB = Workbooks.Open("http://collaboration.pwc.ca/team/Plant5EngineLines/Documents/Plant 5 ma... |
2018/03/05 | 381 | 1,162 | <issue_start>username_0: If I post there, it's after research that didn't get answers. Here's my problem :
I would like to display on the html the Date() in the format JavaScript use it. If I run this : `something.innerHTML = new Date();` I'll obtain "Mon Mar 05 2018 18:13:35 GMT+0100 (Paris, Madrid)". However if I ru... |
2018/03/05 | 796 | 3,101 | <issue_start>username_0: I have two tables, Police and Violations [Police holds the data of policemen, and Violations contains the data of all parking violations], and the essential idea is that a police can cancel any number of Violationss but, only one Violations canceled by a single police.So essentially, it could b... |
2018/03/05 | 1,200 | 4,099 | <issue_start>username_0: I have two pages that use base.html as a base template: index.html and login.html. login.html has a fully functional nav bar (links and :hover working) where index.html shows the nav bar but won't recognise the links.
Bear with me as this is my first post, so I have no idea what I need to prov... |
2018/03/05 | 2,096 | 8,266 | <issue_start>username_0: In our legacy job scheduling software (built on top of crontab), we are using apache config format ([parser](https://metacpan.org/source/TLINDEN/Config-General-2.63/General.pm#L769)) for writing a job definition and we are using perl config general to parse the config files. This software is hi... |
2018/03/05 | 759 | 2,026 | <issue_start>username_0: I would like to see the result of `dput` in the console while redirecting output to a file using `sink`.
```
> sink(file = 'test.txt', split = TRUE)
> x <- 2^(1:4)
> x # test.txt now contains: [1] 2 4 8 16
[1] 2 4 8 16
> dput(x) # where does this return value go?
> dput(x, file = 'test.txt'... |