date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/01 | 803 | 2,890 | <issue_start>username_0: I've read about messaging, triggers, behaviors, etc. ... all seems a bit overkill for what I am trying to accomplish.
I have a repeating data entry screen in xaml that has 1 picker, 2 entries, and 1 button. The picker, once a value is selected, keeps that selection. The 1st entry does the same... |
2018/03/01 | 626 | 2,501 | <issue_start>username_0: I am trying to link an individual with their parent using survey data. Specifically, I have data on whether or not an individual has a degree or not. I want to create an indicator variable equal to one if the parent has a degree. I have a family identifier variable and a variable for whether th... |
2018/03/01 | 750 | 1,688 | <issue_start>username_0: I'm looking to format the output of a vector to print on a newline every X element.
For example, let's say I want to print through every 4th letter of the alphabet and to format the output:
```
'A', 'B', 'C', 'D',
'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L',
'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T'... |
2018/03/01 | 1,003 | 3,683 | <issue_start>username_0: I am trying to figure out how can I use datepicker with django-filter. I have tried a bunch of widgets but it's not working. Any suggestions will be appreciated!
I want to use datepicker for the row\_date search filter.
`filters.py`
```
from home2.models import AvailstaticCopy
from django im... |
2018/03/01 | 714 | 2,578 | <issue_start>username_0: ```
public static int updateApproved(admin u){
int status=0;
try{
Connection con=getConnection();
PreparedStatement ps=con.prepareStatement("update admission set status=? where admiss_id=?");
ps.setString(1,u.getStatus());
... |
2018/03/01 | 289 | 915 | <issue_start>username_0: I have a serverless project, I'm trying to export Dynamo DB tables into single csv, and then upload it to S3.
All npm modules i checked export single table. Is there a way to export multiple table data into one single csv?<issue_comment>username_1: The AWS CLI can be used to download data from... |
2018/03/01 | 2,193 | 6,051 | <issue_start>username_0: I'm building a responsive template with CSS Grid Layout (still learning) and thanks to a few of you on here, I've got most of it working.
* mobile (max-width: 767px)
+ everything should appear on its own row
* tablet (min-width: 768px)
+ nav is on the first row
+ aside and main on the se... |
2018/03/01 | 923 | 3,119 | <issue_start>username_0: I need to iterate over a list while getting the next and previous Items. I'm currently doing it like so:
```
var items = collection.ToList();
for (int index = 0; index < items.Count; index++)
{
var prevItem = index == 0 ? null : items[index - 1];
var currentItem = items[index];
var... |
2018/03/01 | 1,098 | 2,654 | <issue_start>username_0: If we have timestamp in column like `'2018-01-01 01:35:00.000'`. I want to round off the timestamp to hour and get the value as `'2018-01-01 01:00:00.000'`.<issue_comment>username_1: So your question is not round but truncate the time format to hours. The truncate function works only for date (... |
2018/03/01 | 1,072 | 3,858 | <issue_start>username_0: I have a few elements with various options that the user can select to hide and show elements in a table.
This select' box is what I refer to as the Selector. There are a number of these in the document.
```
Red
Green
Blue
Orange
Black
```
Here is the table that contains the data.
... |
2018/03/01 | 604 | 2,089 | <issue_start>username_0: I have a problem when committing a file with atom text editor
I've used in **Git Bash**
`git config --global core.editor "atom --wait"`
but when committing a file like this:
`git commit`
This error show up:
`hint: Waiting for your editor to close the file... 'C:\Users\SALAH' is not recogn... |
2018/03/01 | 481 | 1,708 | <issue_start>username_0: So, let's say that in a method I have the following if statement:
```
String displayName = e.getPlayer().getInventory().getItemInMainHand().getItemMeta().getDisplayName();
if(displayName.equals(ChatColor.translateAlternateColorCodes('&', "&9&lDiamond Golem Spawner")))
{ // }
```
How can I cr... |
2018/03/01 | 441 | 1,462 | <issue_start>username_0: How do I go about extracting more than one JSON key at a time given this script - the script cycles through a list of message ids and extracts the JSON response. I only want to extract certain keys from the response.
```
import urllib3
import json
import csv
from progressbar import ProgressBa... |
2018/03/01 | 439 | 1,950 | <issue_start>username_0: I am writing a Spring Boot application where I want to authenticate users against a LDAP server. I have seen solutions and [API documentation](http://directory.apache.org/api/user-guide/2.1-connection-disconnection.html#using-a-pool-of-connections) where an **Admin Users** credentials are hardc... |
2018/03/01 | 250 | 729 | <issue_start>username_0: Here is my code:
```
import numpy as np
a = [4,6,12]
np.cumsum(a)
print(a)
```
Instead of getting `[4,10,22]`, I am still getting `[4,6,12]`. I am confused. So if `cumsum()` is not the way to do accumulation sum, what I should do then? Thanks.<issue_comment>username_1: ```
b = np.cumsum(a... |
2018/03/01 | 382 | 1,428 | <issue_start>username_0: I'm trying to output a CSV in the current directory, but in a folder that matches the $ComputerName, which already exists. I'm doing this for a list of machines regularly and rather than manually put them in their folder it would be awesome to do it in the script.
Here is the current code, wri... |
2018/03/01 | 649 | 2,798 | <issue_start>username_0: A quick question concerning Kafka's topic and partitioning. Suppose to following scenario:
* Producer1 writes data into Topic1.
* Producer2 writes data into Topic2
* Consumer1 reads data from Topic1 and Topic2.
* Consumer2 reads data only from Topic2.
The question is: how many partitions are ... |
2018/03/01 | 773 | 2,047 | <issue_start>username_0: I try to install OpenResty 1.13.6.1 under CentOS 7. When I try to run openresty I get this error:
>
> [root@flo ~]# openresty -s reload
>
>
> nginx: [error] open() "/usr/local/openresty/nginx/logs/nginx.pid" failed (2: No such file or directory)
>
>
>
When I look at my logs, I only have... |
2018/03/01 | 1,155 | 4,546 | <issue_start>username_0: What I'm trying to do
---------------------
I have a `RecyclerView` with many items that are basically some `CardView`.
Those cards have a supporting text in the middle of their bodies, which has the visibility set to `GONE` by default, and it's made `VISIBLE` when I click the arrow on the ri... |
2018/03/01 | 489 | 1,656 | <issue_start>username_0: When you have a derived class from X called Y and you have A derived from Y does that mean A is derived from x? To sum up A is a grandchild of X is it derived from x?
```
class X {}
class Y extends X {}
class A extends Y {}
```
It would help to understand how I would be able to apply a gran... |
2018/03/01 | 929 | 3,063 | <issue_start>username_0: I need to close a popup window from the website itself by pressing the "X" window on the top right. Here is the shortened, relevant part of my code:
```
chromedriver = r'C:\Users\do\Desktop\chromedriver.exe'
browser = webdriver.Chrome(chromedriver)
url = 'Fake.com'
browser.get(url)
browser.f... |
2018/03/01 | 558 | 1,927 | <issue_start>username_0: Is there a way to limit function so that it would only have access to local variable and passed arguments?
For example, consider this code
```
a = 1
def my_fun(x):
print(x)
print(a)
my_fun(2)
```
Normally the output will be
```
2
1
```
However, I want to limit `my_fun` to local s... |
2018/03/01 | 676 | 2,444 | <issue_start>username_0: I have a PHP form with the following select list;
```
>
```
I also have a text field ;
```
Telephone Number: php echo $_SESSION["TeleNo"]; ?
```
The PHP function called by the onchange command is ;
```
function findTeleNo($MatchCaptain){
$db_handle = mysqli_connect(DB_SERVER, DB... |
2018/03/01 | 535 | 1,735 | <issue_start>username_0: I'm trying to redirect urls from this format:
`http://localhost:8080/setup/xyz/?code=some-code`
to this:
`http://localhost:8080/app/#/setup/xyz/?code=some-code`
I've tried with both proxies and rewrites:
```
historyApiFallback: {
rewrites: [
{ from: /^\/$/, to: '/index.html' },
{... |
2018/03/01 | 561 | 2,144 | <issue_start>username_0: My company has an organization set up in AWS (CompanyA as example). Each team has an account joined to this organization (HR, ProductA, ProductB, ect..). We in ProductA are attempting to grant read-only access to an S3 bucket which serves as a yum repository we own to anyone under this organiza... |
2018/03/01 | 667 | 2,400 | <issue_start>username_0: ```
var json = [{
"city": "California",
"name": "Joe",
"age": 17,
"type",:"custom"
}, {
"city": "California",
"name": "Bob",
"age": 17,
"type",:"predefined"
}, {
"city": "California",
"name": "Bob",
... |
2018/03/01 | 535 | 1,931 | <issue_start>username_0: I want to write one utility that can be used in any of this ways:
```
metadata("Copyright Notice", "<NAME>");
metadata.copyright("<NAME>");
metadata("Manufacturer", "Canon");
metadata.manufacturer("Canon");
```
How can I approach the problem?<issue_comment>username_1: You can try this
```j... |
2018/03/01 | 215 | 717 | <issue_start>username_0: I have layout like this
```
Date of ship:
```
[Demo](https://jsfiddle.net/DTcHh/48912/)
That I want to do is fix label "Date of ship" just a side of input instead above of it. How can I achieve it? Regards<issue_comment>username_1: It's a simple matter of positioning it to the left side o... |
2018/03/01 | 905 | 2,692 | <issue_start>username_0: ```
var name = ['C1', 'C2', 'C3'][Math.floor(Math.random() * 3)]
var bgimg = ['C1bg.jpeg', 'C2bg.jpeg', 'C3bg.jpeg'][Math.floor(Math.random() * 3)]
var profile_image_url = ['C1logo.png', 'C2logo.png', 'C3logo.png'][Math.floor(Math.random() * 3)]
var description =... |
2018/03/01 | 882 | 2,662 | <issue_start>username_0: So I am working on a simple stupid static website, there are not EC2 instances or anything of the sort.
I am looking at S3 cos it can host such a website, and I am also using bitbucket (company I work for is using that ).
Now I am trying to find away that whenever I do a git push into bitbuck... |
2018/03/01 | 1,520 | 5,979 | <issue_start>username_0: I am currently developing an app, which upon clearing data and/or installing must let the user enter data. So far I have achieved none of it, since every time I run it in emulator, it comes with the `EditTexts` hidden and rest showing. I have tried an `if-statement` but I am not sure if it is c... |
2018/03/01 | 972 | 3,111 | <issue_start>username_0: I'm new to Node.js and I want to access a particular set of information from an object that looks like this:
```
userData: [
{
value: false,
id: 1,
title: '<NAME>',
date: '17 February 2018 - 06:27:51 PM',
status: 'Processing'
},
{
value: false,
id: 2,
titl... |
2018/03/01 | 751 | 2,828 | <issue_start>username_0: I have created a table storing stored procedure. I have nearly 50 different values to be entered into stored procedure so I have created a table to execute them catching the value from db itself. Below is the process I am using.
```
DECLARE @spvariable varchar(max);
SELECT @spvariable = e.Exec... |
2018/03/01 | 369 | 1,347 | <issue_start>username_0: When I work with Firebase Storage I use `downloadURL` file metadata to access the file. But the [documentation](https://firebase.google.com/docs/storage/web/file-metadata) says it's `downloadURLs`. Is that a typo?
[](https://i.... |
2018/03/01 | 611 | 2,178 | <issue_start>username_0: I am working on an assignment overloading operators for a user-created class of rational numbers but can not output two "Rational" objects in the same line. For example:
```
std::cout<<5*10<
```
Outputs 50 just fine. However when I try to do,
```
std::cout<
```
I receive an error. If I inst... |
2018/03/01 | 272 | 1,054 | <issue_start>username_0: So, i have this simple script where i try to stop form submision for make some ajax call and after i want to submit form manually, but this doesn't work, I try over 20 solutions. I try event to stop form submit with prevent default and fire latter in callback as i see in some example but for me... |
2018/03/01 | 609 | 2,151 | <issue_start>username_0: I have a [web page](http://reapvalue.com/our-projects/lutterloh-building) with a text box. The background is black and the text is white. It displays correctly in Chrome and Safari, but for some reason the display is way off in Firefox. For arguments sake that could be reversed, that it is corr... |
2018/03/01 | 1,162 | 4,528 | <issue_start>username_0: Inside a small portion of my React/Redux/ReactRouterV4 application, I have the following component hierarchy,
```
- Exhibit (Parent)
-- ExhibitOne
-- ExhibitTwo
-- ExhibitThree
```
Within the children of Exhibit, there are about 6 different possible routes that can be rendered as well. Don't... |
2018/03/01 | 1,858 | 7,877 | <issue_start>username_0: [](https://i.stack.imgur.com/E537g.png)I want to make control execute the top two lines(before the single line comment) and wait till I enter some value in the text view.I am tr... |
2018/03/01 | 391 | 1,078 | <issue_start>username_0: I've this code, and i'm trying to put all results of itertools in one single list
: `l = ['00','01','02','03'..]` , instead of that i'm getting a list on every single line `['0', '0'] ['0', '1'] ['0', '2'] ['0', '3']`
```
import itertools
for r in itertools.product('0123456789', repeat=2):
... |
2018/03/01 | 630 | 2,176 | <issue_start>username_0: According to [documentation](https://keras.io/getting-started/faq/), it says that the default download directory for all Keras files is `$HOME/.keras`. I'm using virtual environment and I want to change the default download directory of pre-trained models to a different directory. Maybe this ha... |
2018/03/01 | 930 | 3,340 | <issue_start>username_0: This is the code I have written so far to change the position of the view when dragged.
The view changes its center point when the `UIPanGestureRecognizer` is either changed or began and that happen when I let go the gesture. I do not want that. I want it to go along with my drag like what th... |
2018/03/01 | 277 | 1,010 | <issue_start>username_0: I want to sum up sales across agents, orders and the date. The following code runs, however, I just receive a duplicate of the total column instead of the sum. Any advice?
CODE:
```
(Select DISTINCT DATE, CUSTOMER, ORDERNR,
AREA, AGENT, Total, SUM(Total) AS TOTALSUM From data01 WHERE REPORT_D... |
2018/03/01 | 3,127 | 11,320 | <issue_start>username_0: I am using Silex and Twig for a website and I want to allow the user to change the langage of the site.
My problem
----------
Right now, it works if I change the locale in the URL :
`/my-account`: my page content is in English (default \_locale)
`/fr/my-account`: my page content is in Frenc... |
2018/03/01 | 2,144 | 7,790 | <issue_start>username_0: [](https://i.stack.imgur.com/Atian.png)Hi I got a problem with aligning 3 icons. I want to align them but everytime I try something like this the first icon starts from the middle of the page but I want there the 2nd icon.
``... |
2018/03/01 | 721 | 2,568 | <issue_start>username_0: I need some tips to replace first name in a text file with just first letter of the name with powershell (or something). Have file in this format:
```
givenName: John
displayName: <NAME>
sAMAccountName: john.forth
mail: <EMAIL>
givenName: Peter
displayName: <NAME>
sAMAccountName: peter.doe
ma... |
2018/03/01 | 820 | 1,877 | <issue_start>username_0: Sorry, I'm pretty sure that somebody else may have asked this question already but I did not find it. I'd like to keep track the number of times I've seen this specific item like
Input :
```
[88,88,27,0,88]
```
Desired Output :
```
[1,2,1,1,3]
```
I'm looking for something especially g... |
2018/03/01 | 861 | 3,338 | <issue_start>username_0: The scenario is as follows - user can click on a character to make the main camera look at that selected character, using this code:
```
private void RotateTowardsCharacter() {
RaycastHit hit;
var cameraCenter = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.heig... |
2018/03/01 | 858 | 3,693 | <issue_start>username_0: I have a login page that currently redirects to a default layout page when a user successfully logs in. However, I have created a different layout page for the different user and what I want to do is to be able to look through my database and check the type of user and when their username and p... |
2018/03/01 | 1,081 | 3,348 | <issue_start>username_0: Beginner here, looking for some help with python!
Right now, I have a function defined that returns a list of lists:
```
def lenumerate(s):
a = (text.split())
b = ([len(x) for x in text.split()])
c = list(zip(a,b))
print
return c
text = "But then of course African swallow... |
2018/03/01 | 766 | 2,447 | <issue_start>username_0: I a trying to remove the last character in my string. I have seen many examples to do that but all the methods are removing my all '&' but i want only my last character '&' to be removed.
My string is :
>
> <https://website.biz/get/#TYPE#>? partner\_id=XXXXXXXX&api\_password=<PASSWORD>&mobil... |
2018/03/01 | 446 | 1,607 | <issue_start>username_0: I'm trying to use the [confusion\_matrix](http://scikit-learn.org/stable/modules/generated/sklearn.metrics.confusion_matrix.html) function, as follows:
```
tn, fp, fn, tp = confusion_matrix(y_true, y_predict).ravel()
```
`y_true` and `y_predict` are both lists. When I return their shape, I g... |
2018/03/01 | 855 | 2,861 | <issue_start>username_0: I created a navbar for one page scroll website. all works fine.
I change the URL from : <http://example.com>**#sectionb**, to <http://example.com/>**sectionb**
when i click on the other item in the navbar the page scroll to the wanted section and the url change to <http://example.com/>**secti... |
2018/03/01 | 436 | 1,746 | <issue_start>username_0: I am trying to make a network call, then update the main thread, but it seems that any variable created in the background thread can not be sent as a parameter to the main thread:
```
let task = session.dataTask(with: request as URLRequest,
completionHandler: {... |
2018/03/01 | 617 | 2,176 | <issue_start>username_0: I'm working my way through some old cross-platform C code. The code uses a number of variables defined like this:
```
complex double *cur; /* Amplitude of basis function */
```
This line compiles fine on OSX and iOS, but in VS I get two errors:
```
invalid combination of type specifiers
``... |
2018/03/01 | 343 | 1,290 | <issue_start>username_0: I am looking into getting an e-commerce solution. Developers have been telling me there is no easy way to synchronize my exististing inventory database, in Firebird, with the new e-commerce database they would create.
I cannot get rid of my current database and only use the new e-commerce one.... |
2018/03/01 | 1,505 | 4,890 | <issue_start>username_0: I want to support language change (manually by user).
I'm using [react-native-i18n](https://github.com/AlexanderZaytsev/react-native-i18n) for that.
I found how to change the displayed language at run time but I didn't find how to update the current view.
### My Code
[![enter image descriptio... |
2018/03/01 | 634 | 2,399 | <issue_start>username_0: So in the Abaqus Scripting Interface there is no direct way to delete data off an odb file or to duplicate an odb with some data removed from the database.
So how can we edit the odb to remove unwanted output?<issue_comment>username_1: One option to construct an edited odb is to use the "odbc... |
2018/03/01 | 713 | 2,728 | <issue_start>username_0: I have integrated `UIFontMetrics` into my app, this works fine, but in many cases my strings are trimmed with `...` where the new size exceeds bounds of the view.
Now the issue here is I can't blow my UI up to be massive based around the font size, so how do I handle accommodating when a user ... |
2018/03/01 | 212 | 826 | <issue_start>username_0: I have nested map:
```
Map>> myMap;
```
MyObject has field "**field1**".
How to calculate total sum of **field1** for all objects in each List USING lambda in Java?<issue_comment>username_1: Create a stream over the map values, then flatten consecutively and extract the field to sum then fi... |
2018/03/01 | 970 | 2,769 | <issue_start>username_0: I have a list of data frames with a time series of (x, y) coordinates. Each data frame also has a specific variable - `trial_option` - which I want to use to split my list of data frames into multiple smaller lists. Each smaller list will contain all the data frames with one `trial_option` fact... |
2018/03/01 | 951 | 3,179 | <issue_start>username_0: I am working with three forked versions of a source code. FYI I changed the names to not disclose identities/repos. Here is how it is laid out:
```
MyMBP:~/Documents/_library$ git remote -v
abc https://github.com/abc/_library (fetch)
abc https://github.com/abc/_library (push)
origin https://... |
2018/03/01 | 554 | 2,126 | <issue_start>username_0: I have a Ruby on Rails project in my local machine and I use the RubyMine IDE to change the related source code.
Recently, I found a (remote) collaborator for my project, and I would like to share my code with him so that we can work on it. However, I am not sure on how to proceed to make it p... |
2018/03/01 | 1,634 | 4,736 | <issue_start>username_0: I wrote the following code to plot the intensity of light exiting an optical components, which is basically a spherical Fourier integral on the incident field, so it has a Bessel function. The argument of which depends on the integrating variable (`x`) and the plotting variable (`r`).
```
from... |
2018/03/01 | 1,175 | 3,335 | <issue_start>username_0: In the laravel docs it has:
```
return response($content);
```
What format is $content?
I want to return it via a var like so:
```
$res = [null, 204];
return response($res);
```
But the above fails, just returns a 200.
How can I set a response using a var?<issue_comment>username_1: In t... |
2018/03/01 | 313 | 1,138 | <issue_start>username_0: I have this table data:
[](https://i.stack.imgur.com/A9IN2.png)
I want to perform an sql query which will give me the total number of distinct loan applications per city.
So for example, I would expect this output
```
Cit... |
2018/03/01 | 1,051 | 3,974 | <issue_start>username_0: I have declared variables that store the name of columns from a SQL Table as well as variables that store their corresponding "values to find".
```vb
Dim sColumn1 As String
Dim sColumn2 As String
Dim sColumn3 As String
Dim sValue1 As String
Dim sValue2 As String
Dim sValue3 As String
sColumn1... |
2018/03/01 | 1,988 | 6,536 | <issue_start>username_0: So I read like 100 post about this before deciding on creating this issue.
This problem is actually very specific and it's 100% reproducable.
I created a git branch lets call it `storeUpdate`, and in this branch I created a file called
```
app/Http/Controllers/Admin/BatchUpdateStoresContr... |
2018/03/01 | 349 | 1,320 | <issue_start>username_0: Following code is okey.
```
```
Following code is need to be repaired.
```
```<issue_comment>username_1: I not sure what you wanna obtain, but i you wanna get height - 5, just use binding with converter.
```
```
More info
<http://www.c-sharpcorner.com/UploadFile/87b416/wpf-value-convert... |
2018/03/01 | 1,413 | 3,511 | <issue_start>username_0: I am trying to capture date from a file `file-2018-02-19-second.json`.
I am using `.*file-(..........).*.json` regex to capture the date in the file .The regex is capturing `2018-02-19` date in the file but I want to ignore `"-"` in the file and only capture `20180219`. How can I do it?<issue_... |
2018/03/01 | 456 | 1,760 | <issue_start>username_0: We run only a small handful of instances on Google Cloud Platform and we don't run them all the time. Generally we just fire one up, do what we need to do then shut it down... which is great, except when "we" forget to shut them down.
I've been able to track down the relevant [REST APIs](http... |
2018/03/01 | 2,977 | 8,211 | <issue_start>username_0: I am looking for a fast (both in terms of complexity (the size of the problem may get close to 2^32) and in terms of the constant) algorithm, that doesn't necessarily have to compute the optimal solution (so a heuristic is acceptable if it produces results "close" to the optimal and has a "cons... |
2018/03/01 | 854 | 3,475 | <issue_start>username_0: I have configured my rabbit properties via application.yaml and spring configurationProperties.
Thus, when I configure exchanges, queues and bindings, I can use the getters of my properties
```
@Bean Binding binding(Queue queue, TopicExchange exchange) {
return BindingBuilder.bind(queue).t... |
2018/03/01 | 580 | 1,880 | <issue_start>username_0: I am trying to delete a bunch of keys matching a prefix using `redis-cli`.
I have been researching how to do this online and the most common suggestion I have seen is to do it straight from the command line, like this:
`$ redis-cli [options] KEYS "prefix:*" | xargs redis-cli [options] DEL`
H... |
2018/03/01 | 2,193 | 9,138 | <issue_start>username_0: I'm implementing `IEquatable`, and I am having difficulty finding consensus on the `GetHashCode` override on a mutable class.
The following resources all provide an implementation where `GetHashCode` would return different values during the object's lifetime if the object changes:
* <https://... |
2018/03/01 | 1,952 | 6,664 | <issue_start>username_0: I have the background of my app set like so:
```
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Container(
decoration: new BoxDecoration(
image: new DecorationImage(
image: new E... |
2018/03/01 | 2,119 | 7,116 | <issue_start>username_0: I have a JS Array declared like this:
```
var phones = [
{name: "Redmi Note 5" , manufacturer: "Redmi" , price: 9999},
...
];
```
I listen to this server with the following code:
```
app.listen(9999, function (err) {
if (err) {
throw err
}
console.log('Server started... |
2018/03/01 | 1,393 | 2,985 | <issue_start>username_0: Let's say I have the following data:
Table 1 (My master dataset):
```
clear
input str1 Name str9 (Day Time)
A 24-Mar-08 "10:30:01"
A 24-Mar-08 "10:30:01"
B 24-Mar-08 "10:30:01"
B 24-Mar-08 "11:03:12"
B 24-Mar-08 "11:03:12"
C ... |
2018/03/01 | 739 | 2,845 | <issue_start>username_0: I have several images that i would like to correct from artifacts. They show different animals but they appear to look like they were folded (look at the image attached). The folds are straight and they go through the wings as well, they are just hard to see but they are there. I would like to ... |
2018/03/01 | 613 | 2,057 | <issue_start>username_0: I want to create a join database. in the 'relation' table will show 'disease' which can add many 'symptoms'. How should I do it?
Here is my database:
disease : id\_disease, name, details
symptoms : id\_symptoms, name, details
relation : id\_relation, id\_disease, id\_symptoms
and here ... |
2018/03/01 | 1,099 | 3,807 | <issue_start>username_0: I have a module that displays info from a Joomla table. The module has form fields to configure it. Here is the problem:
When I create an instance of this module with the appropriate parameters and display that module in one position, everything works.
Now, I unpublish the module.
I create a se... |
2018/03/01 | 655 | 1,913 | <issue_start>username_0: There is a downloadable function called CARTPROD which gives the cartesian product of given vectors
([link to CARTPROD function](https://www.mathworks.com/matlabcentral/fileexchange/5475-cartprod--cartesian-product-of-multiple-sets?focused=5058922&tab=fun))
For example
```
cartprod(1:3,1:3)
... |
2018/03/01 | 2,314 | 7,662 | <issue_start>username_0: I'm developing a web application with Angular 5 and Bootstrap 4 and I'm having problems with the nav menu bar dropdowns. I'm following the documentation <https://getbootstrap.com/docs/4.0/components/navs/> but I don't know why drop-down menu doesn't work!
```
* [Ligas](#)
* [Gráficas](#)
* [... |
2018/03/01 | 587 | 1,542 | <issue_start>username_0: I have a data set where in the months are given as 1,2,3,..12
So I want to convert them to words like 1-January, 2-February ,3-March so please help me with this.<issue_comment>username_1: First some reproducible data (always useful)
```
dat <- data.frame("X1" = sample(1:12, 20, replace = T))
... |
2018/03/01 | 1,313 | 4,214 | <issue_start>username_0: I have a dataset like the following:
[](https://i.stack.imgur.com/AcPlG.jpg)
R code to replicate the dataset:
```
mydata <- data.frame(Name =c('Alex','Brenda','Carl','Alex','Daniel',
'Einstein','Frodo','Alex','Brenda','C... |
2018/03/01 | 1,279 | 5,061 | <issue_start>username_0: I'm trying to build a stack with multiple EC2 instances that have varied security groups.
It would be easy for me if I could create my security groups in advance and reference them in my EC2 stack.
Is there a way to reference an existing security group resource in a CF stack?
Thanks in advan... |
2018/03/01 | 705 | 2,700 | <issue_start>username_0: Hi I am having trouble getting the autocomplete to display like [here](https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete). My code works on submit and displays the map properly, but **does not show results of autocomplete**. I am wondering what could be th... |
2018/03/01 | 592 | 2,301 | <issue_start>username_0: I have got my code files in bitbucket and have configured a jenkins build job to run where there is a change in the bitbucket repository. At the end of which it has to copy the files from the repo to a directory located at a production server from where the application is running.
Is there a a... |
2018/03/01 | 1,366 | 4,999 | <issue_start>username_0: I am having a dictionary, that holds userkey -> username references. (I am using it to store the user name after looking it up in the windows directory based on the current userkey, because I assume it is a very slow process and want to improve the performance)
If I got it right on my searchin... |
2018/03/01 | 903 | 3,040 | <issue_start>username_0: I have a view that shows an associated array of Revenues. I have made a collection in the controller to isolate two variables that I need to add together and display as currency.
```
public function view($id = null)
{
$annualOperatingBudget = $this->AnnualOperatingBudgets->get($id,... |
2018/03/01 | 380 | 1,531 | <issue_start>username_0: Today I faced problems in starting eclipse (reinstall etc. did not work). I had to use a vanilla eclipse and with luck it was working.
With that I experienced the problem of an IDE that is not working. That can be a mess if you need a quick bugfix for a hot system.
Is there a tool that takes ... |
2018/03/01 | 861 | 3,267 | <issue_start>username_0: Consider the below code:
```
var y = 4;
alert( y>1 || (y++ ===4))
alert(y);
```
Here, 'y' alerts 4.
But in the below code:
```
var y = 4;
alert( y>1 && (y++ ===4))
alert(y);
```
Here, 'y' alerts 5.
Why && and || operators are showing two different values of 'y'?<issue_comment>username_... |
2018/03/01 | 582 | 2,523 | <issue_start>username_0: I have written an interceptor for my spring-boot app. But when I hit the endpoint, its executing fine.The interceptor is not able to intercept my request.
Where I am going wrong or missing something?
Below is the Code
```
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapte... |
2018/03/01 | 2,437 | 9,656 | <issue_start>username_0: If I have models like this:
```
from django.db import models
class Publisher(models.Model):
name = models.CharField(max_length=255)
class Book(models.Model):
publisher = models.ForeignKey('Publisher')
title = models.CharField(max_length=255)
class BookImage(models.Model):
bo... |
2018/03/01 | 1,792 | 7,044 | <issue_start>username_0: 
In this code I am trying to change the size of the first cell of the UICollectionView and the others with the same size but in the first row only one cell is coming out when I want two to come out:
```
func collectionView(_ collectionView: UIColl... |
2018/03/01 | 2,009 | 7,894 | <issue_start>username_0: I am creating a file like so:
```
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory,PDFFile];
if (![[NSFileManager defau... |
2018/03/01 | 810 | 3,132 | <issue_start>username_0: I exclude some folders while building for development in .csproj file.
```
```
I want to include those folders back in a "publish profile" but it does not work.
```
```
So, how could i pass parameters from "publish profile" to build(.csproj) and prevent exclusion of those folders or inc... |
2018/03/01 | 1,501 | 4,426 | <issue_start>username_0: I am trying to get the expected results below, but I am struggling. What is the best way to do it?
```js
const data = [{
name: 'Dave',
country: 'England',
color: 'Brown'
},
{
name: 'Dave',
country: 'England',
color: 'white'
},
{
name: 'Cae',
... |
2018/03/01 | 2,485 | 8,803 | <issue_start>username_0: I'm working in VS Code and started getting this error yesterday. All of my json files have this error, not just a few. If I remember right there was an update to the program yesterday or the day before. Did the update break something or reset a setting that I forgot I had set?
When looking thi... |
2018/03/01 | 1,528 | 5,723 | <issue_start>username_0: I am trying to connect to Google's MQTT server but I am getting errors
I created all the certificates and registered my device (Adafruit huzzah32)
and the documentation says you connect to `mqtt.googleapis.com:8883`
So I do
```cpp
WiFiClientSecure wifi;
MQTTClient client;
client.begin("mqtt.... |