date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/02 | 588 | 1,804 | <issue_start>username_0: I am writing a set of records in excel but I am not supposed to create a physical file. How do I write the records in excel in memory? If I do write it, how do I see the output of the records?
I have tried:
```
import xlsxwriter
import io
filename= io.BytesIO()
workbook=xlsxwriter.Workbook(fi... |
2018/03/02 | 784 | 2,256 | <issue_start>username_0: I'm trying to execute the result of this query.
```
SELECT 'UPDATE [' + TABLE_SCHEMA + '].[' + TABLE_NAME + '] ' + 'SET [' + COLUMN_NAME + '] = RTRIM(LTRIM(SUBSTRING ([' + COLUMN_NAME + '], 2 , LEN ([' + COLUMN_NAME + ']) - 2) )) WHERE LEFT([' + COLUMN_NAME + '], 1) = ' + '''"''' + ' AND RIGHT... |
2018/03/02 | 604 | 2,132 | <issue_start>username_0: can someone explain how these two pieces of code achieve the exact same thing\* or explain why they may appear to but do not?
```
for (i = 0; i < xx.length; i++) {
xx[i].classList.remove(...y);
}
xx.forEach(x => {
x.classList.remove(...y);
});
```<issue_comment>username_1: Ca... |
2018/03/02 | 1,569 | 5,217 | <issue_start>username_0: Heey!
So I've recently been given the task to take a Laravel 5.2 up to 5.6. It seemed to be fine...until I tried to do a `\Log::info()`. Every time I run that, I get a big error, but at the end, it still prints to the log. I saw the 5.6 documentation on creating the `config/logger.php`. I took... |
2018/03/02 | 470 | 1,607 | <issue_start>username_0: I've written a script using `tkinker` in `python`. When I run the script, it receives an input and print that to the console. It is working great.
What I wish to do is add any functionality to my existing script in such a way so that after filling in the `inputbox` when I press the `get` butt... |
2018/03/02 | 499 | 1,502 | <issue_start>username_0: I am using Jquery 3.3.1 and Bootstrap 3.3.7 pulled via npm.
I have the following markup to toggle a div:
```
[Advanced search](#advanced-search)
```
However I am now getting the following error in console:
```
libs.js:1541 Uncaught Error: Syntax error, unrecognized expression: #
at Func... |
2018/03/02 | 1,900 | 5,569 | <issue_start>username_0: How can I to substract/delete/remove all coincident elements from an array list within another array list using `.filter()` of ES6 `javascript`?
Jquery's solution is also accepted, but any solution **must** be IE11+ and Chrome iOs compatible. Avoid using external libraries (except jquery). Thi... |
2018/03/02 | 890 | 2,525 | <issue_start>username_0: I have data like this:
```
Index SourceID ComparedID Distance
571 106 8 0.004846
572 106 11 0.000000
573 106 23 0.012712
574 107 84 0.002800
575 107 70 0.007555
```
It is in a `pandas` dataframe. I am try... |
2018/03/02 | 1,210 | 4,366 | <issue_start>username_0: Currently, my `ApiController`s are returning XML as a response, but for a single method, I want to return JSON. i.e. I can't make a global change to force responses as JSON.
```
public class CarController : ApiController
{
[System.Web.Mvc.Route("api/Player/videos")]
public HttpRespon... |
2018/03/02 | 1,232 | 3,761 | <issue_start>username_0: in vs code I have the following file
```
1
2
3
a
b
c
```
Now I do the following steps
1. cut the lines a b c.
2. select the lines 1, 2, 3 and then go into multiple cursor mode (shift, alt I).
3. go to the end of the each number press and type a , and then do a paste.
The result is
```
1,... |
2018/03/02 | 646 | 2,135 | <issue_start>username_0: Is there any way to include punctuation in *keras tokenizer*?
I would like to have a transformation...
FROM
```
Tomorrow will be cold.
```
TO
```
Index-tomorrow, Index-will,...,Index-point
```
How can I achieve that?<issue_comment>username_1: This is possible if you do some pre-proce... |
2018/03/02 | 538 | 2,190 | <issue_start>username_0: Hi i am trying to create a pending intent that has a enum contained in its intent extras that launches a broadcast reciever via alarm manager but my code crashes on the broadcast receiver when i tries to get the enum saying it is null?
Here is my code below
```
val calendar = Calendar.getIns... |
2018/03/02 | 810 | 2,607 | <issue_start>username_0: I have been staring at the same piece of code for the last 2 hours and cannot see why my setState in the onReveal() method is not updating the state of the constructor. I have checked and I do seem to be creating a valid object (revealedArray) but this does not seem to be being passed to the st... |
2018/03/02 | 504 | 1,637 | <issue_start>username_0: I am trying to hide the search field by default in my app like seen in multiple Apple apps.
[](https://i.stack.imgur.com/4ZlWr.jpg) [](https://i.stack.imgur.c... |
2018/03/02 | 588 | 2,320 | <issue_start>username_0: Say I have the following enum:
```
public enum Test
{
item1 = 1,
item2 = 2,
item3 = 3
}
```
I add all those enums to a list using JsonConvert.SerializeObject. I then have a JSON string as follows:
```
["item1","item2","item3"]
```
I then want to Deserialize the JSON back into ... |
2018/03/02 | 923 | 3,496 | <issue_start>username_0: I have an application dealing with Donations from Houses for a Church. I would like it so when a donation comes in to the Church, someone will type in a textbox the address but as there will be a lot of homes, I want an autocomplete box to make it easier.
Here are my models:
```
public class... |
2018/03/02 | 483 | 1,584 | <issue_start>username_0: I think this is an escaping issue but I'm not certain because I've tried every combination of escaping I can think of and none of them work.
This Git command returns a commit hash that I need to store in a batch file variable...
```
git show --grep="MySearchString" --pretty=format:"%H" --no-p... |
2018/03/02 | 739 | 1,857 | <issue_start>username_0: I have two or more dataframes in Pandas in a list
```
A Value1
1 ABC
2 HYT
3 IUF
A Value2
1 IJT
2 GFH
3 QER
```
When using
```
df = pd.concat(dfs, axis = 0)
```
And after writing to CSV, the final output is like this
```
A Value1 Value2
1 ABC
1 IJT
2 HYT
2 GFH
3 IUF
3 ... |
2018/03/02 | 524 | 2,173 | <issue_start>username_0: I am trying to add 3D Touch Quick Actions from the home screen and I am using the following code:
```
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let tabVC = storyboard.instantiateViewController(withIdentifier: "TabVC") as! UITabBarController
let mainVC = ... |
2018/03/02 | 267 | 1,044 | <issue_start>username_0: I have a logout bouton in shared page, but i want to call logout method after clicked.
the implementation of my logout function is in app.comoponent.ts
can anyone help?<issue_comment>username_1: You need to make use of Shared service here. Have your method implemented in a shared service and c... |
2018/03/02 | 1,352 | 4,692 | <issue_start>username_0: I'm a newbie trying to make this PyTorch CNN work with the [Cats&Dogs dataset from kaggle](https://www.kaggle.com/c/dogs-vs-cats-redux-kernels-edition/). As there are no targets for the test images, I manually classified some of the test images and put the class in the filename, to be able to t... |
2018/03/02 | 589 | 1,805 | <issue_start>username_0: I discovered SOAP services today so I really am not good at it.
My point is that I am trying to get the validation of a VAT number from the site <http://ec.europa.eu/taxation_customs/vies/vatRequest.html> by the use of a webService described in the WSDL <http://ec.europa.eu/taxation_customs/vie... |
2018/03/02 | 387 | 1,173 | <issue_start>username_0: In an HTTP GET request, all data is found in the URL.
In an HTTP POST request, all data is found within the HTTP body.
Where is the data in a DELETE or PUT request?<issue_comment>username_1: I found the answer. In fact the WSDL was not the correct one... TT
The correct one is <http://ec.europ... |
2018/03/02 | 1,015 | 3,727 | <issue_start>username_0: I am trying to resize an Azure VM using command line. The VM size is listed in the list of sizes that this VM can be resized to. But when I try to resize this VM I am unable to do because of this error
>
> Unable to resize the VM 'XYZ' because the requested size Standard\_F4s
> is not avail... |
2018/03/02 | 885 | 3,263 | <issue_start>username_0: I am facing an issue with Companion Objects picking up its type instead of the case class
I am using spray json serdes. They need an implicit JsonFormat. This format is obtained by calling a function that depends on the number of parameters of the case class: jsonFormat2(Class2) if case class... |
2018/03/02 | 462 | 1,230 | <issue_start>username_0: I ask you about this problem, which I belive it is simple to resolve. I have this object:
```
data<-as.data.frame(data)
colnames(data)<-c("A", "B", "C")
data
A B C
AA 5 6
AB 8 6
DC 5 4
AD 3 9
FE 2 8
AF 4 4
AG 2 0
```
and moreover I have a list of... |
2018/03/02 | 1,106 | 4,182 | <issue_start>username_0: **UPDATE** I updated my code and the error I am receiving.
I'm not exactly sure how to use `INNER JOIN` with Python's pypyODBC.
I am getting an error that says
>
> "Cannot find either column "UT" or the user-defined function or aggregate, "UT.userID", or the name is ambigous."
>
>
>
I'... |
2018/03/02 | 755 | 2,751 | <issue_start>username_0: I have an assignment to generate a random cipher alphabet and then encrypt and decrypt the message inputted by the user. While the encryption and input is working, the decryption is returning the wrong message. Upon further investigation, I discovered this is because my shuffled cipher alphabet... |
2018/03/02 | 2,882 | 10,578 | <issue_start>username_0: I'm working with LUIS and want to manage and deal not only with the top scoring intent but also with all others. In this specific situation occurs when someone inquires about two things in the same phrase.
For example: "I want to buy apples" ("Buy" intent) and "I want to sell bananas" ("Sell"... |
2018/03/02 | 1,050 | 3,781 | <issue_start>username_0: I have a query is used to display information in a queue and part of that information is showing the amount of child entities (packages and labs) that belong to the parent entity (change). However instead of showing the individual counts of each type of child, they multiply with one another.
I... |
2018/03/02 | 668 | 2,333 | <issue_start>username_0: How to change the color of the switch button when toggling for IOS Xamarin Forms? Custom render will set the color just once:
[Xamarin forms toggle button default color on IOS](https://stackoverflow.com/questions/38993959/xamarin-forms-toggle-button-default-color-on-ios)
and it won't be chang... |
2018/03/02 | 831 | 3,369 | <issue_start>username_0: I'm not even sure how to name the problem I have. I'd also like to avoid using secondary routes. I have been trying to create something like 2-step routing in an angular application.
In theory, this is supposed to be nested routing. But I think the assumption is that if you use a componentless... |
2018/03/02 | 523 | 1,751 | <issue_start>username_0: So i'm trying to create a function of the quadratic equation in Java, but my I get the error that i should return a double. What am i doing wrong?
```
double quad(double a, double b, double c){
double x;
double y;
x = (-b + Math.sqrt(b*b - 4*a*c))/(2*a);
y = (-b - Math.sqrt(b*b - ... |
2018/03/02 | 1,615 | 5,358 | <issue_start>username_0: I'm a new user o Delphi 10.2 Tokyo (trial version) when I compile the program source code this error message appears:
***Unable to load dbexpint.dll (ErrorCode 126). It may be missing from the system path.***
This code should access a Firebird database, I have Firebird Client 3.0 installed o... |
2018/03/02 | 736 | 3,081 | <issue_start>username_0: This question is very similar to questions that have been asked in the past but please bear with me as it is still a unique question. Basically, I have a class that gets application permissions, and if the user does not have internet running, then when the auto login screen comes, it is stuck i... |
2018/03/02 | 841 | 2,353 | <issue_start>username_0: I am trying to deploy a falcon app with Docker. Here is my Dockerfile:
```
FROM python:2-onbuild
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
RUN pip install -r ./requirements.txt
RUN pip install uwsgi
EXPOSE 8... |
2018/03/02 | 918 | 3,017 | <issue_start>username_0: How to send a message to the user who logged in through the telegram in website?
[Telegram Login for Websites](https://telegram.org/blog/login)
>
> Telegram bots are a powerful communication tool, but until today they
> couldn't start a conversation. Even if you wanted them to reach out to
... |
2018/03/02 | 825 | 2,683 | <issue_start>username_0: I'm trying to show half an image, the top part to be specific.
I am running into some issues when trying to do this.
When trying to clip the image it dissappears? I'm using Bulma CSSframework but it seems to not let me show half of the image? It works fine outside Bulma.
I've tried answers ... |
2018/03/02 | 846 | 3,387 | <issue_start>username_0: I'm trying to figure out an architecture for processing rather big files (maybe few hundred MB) on a serverless AWS. This is what I've got so far:
```
API Gateway -> S3 -> Lambda function -> SNS -> Lambda function
```
In this scenario, the text file is uploaded to S3 through API Gateway. The... |
2018/03/02 | 444 | 1,336 | <issue_start>username_0: My Firebase database is not updating in android studio, it does not seem to be an error but here is what appears in the log:
any help would be appreciated
>
> D/InputTransport: Input channel constructed: fd=97 03-02 16:58:30.101
> 30441-30441/com.google.firebase.udacity.friendlychat D/Input... |
2018/03/02 | 159 | 542 | <issue_start>username_0: I already know how to get the border around the `TextView`.
But how do I get the border **under** the `TextView` in android?<issue_comment>username_1: Try it
```
textview.setPaintFlags(textview.getPaintFlags()| Paint.UNDERLINE_TEXT_FLAG);
```
Upvotes: 0 <issue_comment>username_2: Step 1: Crea... |
2018/03/02 | 1,631 | 4,442 | <issue_start>username_0: I'm looking for a looping structure to acomplish the below task:
At each loop iteration I need to add a loop+1 number of indices together up to maxArrSize(5 in this case) then --maxArrSize number of indices together from there until maxArrSize==0.
This is cross correlation of two arrays, I hav... |
2018/03/02 | 2,368 | 7,355 | <issue_start>username_0: I'm writing a program that needs to find abundant, deficient and perfect numbers - according to Greek numerology. What represents an issue here is ensuring that only natural numbers are inserted; more specifically making sure that there are no letters inserted.
I tried checking if stream was "b... |
2018/03/02 | 2,467 | 8,429 | <issue_start>username_0: I've kind of been experimenting around with some different ways of dependencies, inheritance and scoping. No way of doing it is set in stone yet, I'm just experimenting so I would like to have an answer to the actual problem I'm facing or to know if I'm wanting the impossible. I don't want advi... |
2018/03/02 | 344 | 1,314 | <issue_start>username_0: Hy everyone, my Visual Studio (2017) shows me an error in my Xamarin Forms project. I have developed an application (that uses some external packeges) and, from quite some time, i have an error that says:
>
> Error NU1201: Project "projectname".App.Android is not compatible with xamarinios10 ... |
2018/03/02 | 638 | 2,469 | <issue_start>username_0: After updating `Airflow` to `1.9` all variables are created as encrypted.
Is it possible to disable encryption ?<issue_comment>username_1: 1-The Croods way....
```
from airflow.models import get_fernet
from airflow.models import Variable
var_to_decryp = Variable.get("var_name",deser... |
2018/03/02 | 1,103 | 3,763 | <issue_start>username_0: I had previously written a testing script which very much similar to the below given script. It was running fine with following version of libraries
```
"chai": "^3.5.0",
"chai-jquery": "^2.0.0",
"jquery": "^2.2.1",
"jsdom": "^8.1.0",
"mocha": "^2.4.5",
"react-addons-test-utils": "^0.14.7"
`... |
2018/03/02 | 365 | 1,293 | <issue_start>username_0: I want to achieve something like:
```
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE 'columnA'
AND COLUMN_NAME LIKE 'columnB';
```
But this specific query will return 0 coincidences.<issue_comment>username_1: You should use OR and not and ..
```
SELECT D... |
2018/03/02 | 450 | 1,674 | <issue_start>username_0: I have a Spark/Scala job in which I do this:
* 1: Compute a big DataFrame `df1` + `cache` it into memory
* 2: Use `df1` to compute `dfA`
* 3: Read raw data into `df2` (again, its big) + `cache` it
When performing (3), I do no longer need `df1`. I want to make sure its space gets freed. I `cac... |
2018/03/02 | 290 | 1,186 | <issue_start>username_0: For example if a `TextView` or `RadioButton` is showing up on screen & after 10 seconds we want to show up some other `TextView` or `RadioButton` automatically. How to do that?<issue_comment>username_1: User of Spark has no way to manually trigger garbage collection.
Assigning `df=null` is not... |
2018/03/02 | 435 | 1,700 | <issue_start>username_0: I have an interface like this:
```
interface ItemClickListener {
fun onClick(item: T)
}
```
And I have a class somewhat like this:
```
abstract class MyClass {
private var itemClickListener: ItemClickListener<*>? = null
fun *setOnClickListener(clickListener: ItemClickListener*) {... |
2018/03/02 | 6,334 | 13,562 | <issue_start>username_0: This is the current dataframe:
```
> ID Date current
> 2001980 10/30/2017 1
> 2001980 10/29/2017 0
> 2001980 10/28/2017 0
> 2001980 10/27/2017 40
> 2001980 10/26/2017 39
> 2001980 10/25/2017 0
> 2001980 10/24/2017 0
> 2001980 10/23/2017 60 ... |
2018/03/02 | 972 | 3,183 | <issue_start>username_0: I'm trying to write a code for a small program that takes a list as an input and returns a Boolean indicating whether there are any consecutively repeated numbers (the list must have at least 2 elements). I keep getting the following error:
```
IndexError: list index out of range.
```
Any a... |
2018/03/02 | 2,147 | 6,420 | <issue_start>username_0: I am converting a spreadsheet into csv format using the script below. What I need to do is add a column at the beginning that is labeled 'Order Type Code' and each entry under it will simply say 'SO'
```
#CBRCust,StoreNum,StoreName,Load,Stop,Item,Quantity,Pack,Size,ItemDescription,UPC
$header... |
2018/03/02 | 934 | 3,451 | <issue_start>username_0: **[I KNOW](https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2)** OAuth 2 defines four grant types, each of which is useful in different cases.
I would like to connect my Ionic app to a website that supports only the "Authorization Code" grant type.
Is this possible?... |
2018/03/02 | 982 | 3,639 | <issue_start>username_0: I would like take two different provisioning actions for hosts in and not in a specific group. For example:
```
- hosts: nis_server
tasks:
- name: Set up NIS server
- hosts: ~nis_server
tasks:
- name: Use NIS server for authentication & login
```
Is there a syntax/operator to invert... |
2018/03/02 | 455 | 1,456 | <issue_start>username_0: I ran this:
```
$ docker run -p 8080 --rm my_container
```
which I guess maps the container port 8080 to some random available port on the host. But how do I find out which port?<issue_comment>username_1: You can use the [`docker port`](https://docs.docker.com/engine/reference/commandline/p... |
2018/03/02 | 853 | 3,709 | <issue_start>username_0: I'm using Google's `SettingsClient` on an app. It works fine, but there are some users that are not able to use GPS, even if they have location turned on and they had already granted access to location permission. For what I understand, if `Settings Client` returns *RESOLUTION\_REQUIRED* on it'... |
2018/03/02 | 524 | 2,009 | <issue_start>username_0: I have the following code:
```
class PairGalleryController extends Controller
{
/**
* @Route("/PairGalleryIndex")
*/
public function IndexAction()?
{
$output = "";
}
}
```
... and yet I see an error in my IDE saying that the method "should either hav... |
2018/03/02 | 335 | 1,059 | <issue_start>username_0: I have a table called `tbl.date`, I have a column `LAST_UPDATE`. I need to fetch the latest update date. This is what I have so far:
```
SELECT *
FROM [tbl.date]
WHERE [LAST_UPDATE] = --I need an SQL system code to go in here to fetch the latest update date
```<issue_comment>username_1: If yo... |
2018/03/02 | 522 | 1,705 | <issue_start>username_0: Im new at nodejs programming and im having a little problem now. When i try to go localhost:3000/ i want to go homeController and index function prints the HTML file.
APP.JS
======
```
const express = require('express')
const mongoose = require('mongoose')
const mongodb = require('mongodb')
... |
2018/03/02 | 557 | 2,133 | <issue_start>username_0: This is the same question as [this](https://stackoverflow.com/questions/32057441/disable-application-insights-in-debug) but for the recent version of application insights 2.2.1
Since updating to the 2.2 version the debug output is filled with AI data even if it is disabled the way it used to b... |
2018/03/02 | 331 | 1,192 | <issue_start>username_0: I have a report that has a date range of total volume count each day. I'm not sure how to write the TSQL on how to compare a low volume count at a given date range. For example, How can I determine that the low volume count is 581 on the given dates?
[, it reverts to `NULL`.
I'm not understanding why it's reverting to `NUL... |
2018/03/02 | 1,579 | 5,362 | <issue_start>username_0: When I try to drop database schema by:
```
$ vendor/bin/doctrine orm:schema-tool:drop --force
```
I keep getting this error:
```
In AnnotationException.php line 54:
[Semantical Error] The annotation
"@Symfony\Component\Validator\Constraints
\NotBlank" in property App\Entity\User::$plainP... |
2018/03/02 | 531 | 2,016 | <issue_start>username_0: I am having trouble with Full Calendar (FC) to read the JSON object I have returned from my database to display events on the calendar. Where could I be overlooking?
My jQuery for FC is here:
```
$('#calendar').fullCalendar({
defaultView: 'month',
titleFormat: "MMMM YYYY",
... |
2018/03/02 | 725 | 2,502 | <issue_start>username_0: I have the following requirement:
* I have an array of data
* For each item in the array I need to perform a call resulting in an Observable
* I need to chain all these observables together
* If one of the observables results in a false response I need to return false
+ further observables sh... |
2018/03/02 | 1,569 | 4,933 | <issue_start>username_0: Login works with LightsailDefaultPrivateKey-eu-west-1.pem but not with my own key-pair.
I tried to generate the keys with 'ssh-keygen -t rsa -b 4096 -C "<EMAIL>" -f ~/.ssh/lsail-mikemittererat-eu-west-1.pem'
I also tried to generate a key on AWS/S2, dowloaded it, generated a public key out of... |
2018/03/02 | 878 | 2,996 | <issue_start>username_0: I am using Python 3.4 version and when I am trying to open the jupyter Notebook the explorer does open but it displays a link in the explorer like this and after that nothing happens.I am not able to view anything in the explorer[ {
$(".add").append("<h1>Hi</h1>")
}
```
It is my jquery tag in javascript function.
jquery tag don't work under javascript function<issue_comment>username_1: I had same issue for hours, and finally solved it. Here is what I did:
Download the `pem` file into a fo... |
2018/03/02 | 1,257 | 4,556 | <issue_start>username_0: I'm trying to setup multiple services on one k8s cluster, with one Ingress controller in front that does tls termination for all services.
This is a good example: <https://github.com/kubernetes/contrib/blob/master/ingress/controllers/nginx/examples/multi-tls/multi-tls.yaml>
I initially follow... |
2018/03/02 | 4,533 | 17,695 | <issue_start>username_0: I'm trying programmatically implement this layout:
```
[label|label|slider|label|textField]
[label|label|slider|label|textField]
[label|label|slider|label|textField]
```
this is vertical layout with horizontal layouts inside
First problem, what will be the slider size? Unknown, so I add wid... |
2018/03/02 | 6,890 | 22,960 | <issue_start>username_0: When I add the body to output list, some wrong names get output. I expected it to output only names for nfl subreddit in both examples. Feature or bug? How can I only output the tuples for subreddit nfl?
The file:
```
{"author":"403and780","author_flair_css_class":"NHL-EDM4-sheet1-col01-row17... |
2018/03/02 | 590 | 2,303 | <issue_start>username_0: I have an issue with ng2-smart-table, which I fill with an empty localdatasource.
I have a Date column, which use a custom editor :
```
dateInscription: {
title: 'Date',
filter:false,
type: 'string',
valuePrepareFunction: (cell,... |
2018/03/02 | 538 | 1,647 | <issue_start>username_0: I am trying to export the mapped the data from Excel to XML .
Name of Mapped file to : Screens\_Map
Below is my Code of Macro
`Sub Macro1()
ActiveWorkbook.XmlMaps("Screens_Map").Export Url:= _
"c:\"
End Sub`
When I run this code, I am seeing this error
```
run time error '-2147467259(80... |
2018/03/02 | 1,038 | 3,359 | <issue_start>username_0: **What is the correct way to receive UDP broadcast packets in netcat or socat?**
I would like to send broadcast from one computer to another in bash. Sending works well with:
```
socat - UDP-DATAGRAM:255.255.255.255:50011,broadcast
```
But (in both cases) receiving freezes when first line (... |
2018/03/02 | 1,021 | 3,635 | <issue_start>username_0: I am using the "plain" postgresql:alpine docker image, but have to schedule a database backup daily. I think this is a pretty common task.
I created a script `backup`and stored in the container in `/etc/periodic/15min`, and made it executable:
```
bash-4.4# ls -l /etc/periodic/15min/
total 4
... |
2018/03/02 | 788 | 2,340 | <issue_start>username_0: I am using postgresql, I would like to know how to send a parameter as a table in a function.
I have already created the type type\_detalle\_ac:
```
CREATE TYPE public.type_detalle_ac AS
(
id_componente integer,
precio numeric(10,2),
cantidad integer,
sub_total numeric(10,2)
);
```
and ... |
2018/03/02 | 389 | 1,200 | <issue_start>username_0: ```
String c="12345";
for(char k:c.toCharArray())
System.out.print(k+4);
```
This program outputs:
5354555657
I don't really understand why this is out putting those numbers. The only pattern I see is that it prints a "5" then takes the "1" from the string and adds 2 to make "3". Then prints... |
2018/03/02 | 416 | 1,377 | <issue_start>username_0: I am trying to select all column names, excluding those that contain the string "id". Such as id, project\_id, client\_id. I used NOT LIKE and NOT IN, but for some reason I am still getting all columns. Does it have something to do with using information\_schema, any ideas?
```
SELECT TABLE_N... |
2018/03/02 | 440 | 1,816 | <issue_start>username_0: In my website, I am using Braintree payment gateway for both card payments and PayPal transactions with auto renewal subscriptions.
i am creating the customer and storing the card in Braintree vault for auto renewal..
also using the same customer id for that customer PayPal transactions (if ha... |
2018/03/02 | 488 | 2,044 | <issue_start>username_0: I am using AWS Lambda to check the health status and then send out an email. If the health is down I want it to send an email only once.
This Lambda function runs every 20minutes or so and I would like to prevent it from sending out multiple emails in interval if things have broken. Is there a... |
2018/03/02 | 997 | 3,078 | <issue_start>username_0: I have this simple html mockup:
```
this is some text that that wraps around when there is too much text
```
It produces this result:
[](https://i.stack.imgur.com/gEmME.png)
CSS:
```
.bg {
background-color: black;
o... |
2018/03/02 | 1,201 | 4,357 | <issue_start>username_0: I'm working on integrating SQL Server databases into our in-house version control/deployment utility, which is built with powershell,and uses Github as a repository.
Using the excellent sqlpackage.exe utility, I have been able to add a process whereby a developer can extract their current chan... |
2018/03/02 | 756 | 2,812 | <issue_start>username_0: I'm taking in an input from the user and storing it in a variable called videoType.
My question is, how do I take the string the user gives to videoType and convert that into a function name that I already have defined along with many others in python?
Ex.
user input: "get\_MPEG()"
which is s... |
2018/03/02 | 1,109 | 3,570 | <issue_start>username_0: I have a problem with **fsurf** command:
When I use
```
fsurf(@(x,y) ackleyfcn([x,y]),[-32 32 -32 32])
```
I got this warning:
**Warning: Function behaves unexpectedly on array inputs. To improve performance, properly vectorize your function to return an output with the same size and shape... |
2018/03/02 | 1,720 | 4,520 | <issue_start>username_0: So I had [this question](https://stackoverflow.com/questions/49041280/getting-a-weighted-average-in-r-when-joining-two-tables) but the scope got a little larger/more complicated.
Basically I want to combine two tables and calculate the weighted average for any duplicate IDs. The problem is I w... |
2018/03/02 | 1,558 | 4,196 | <issue_start>username_0: I am new to MSYS2, so I tried to install numpy using pip (mingw-w64-x86\_64-python3-pip-9.0.1-3), but the the installation is failed. Here is the output:
(...)
C compiler: x86\_64-pc-msys-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtu... |
2018/03/02 | 233 | 737 | <issue_start>username_0: [](https://i.stack.imgur.com/qrDS7.png)
I tried something like this ${TXU}↖{⏜}$ but the arc is coming size of one letter<issue_comment>username_1: Sorry, jqMath doesn't do horizontal stretching yet. For advanced formatting lik... |
2018/03/02 | 836 | 2,346 | <issue_start>username_0: I have a list that looks like this:
```
hello = [(('case', 'iphone'), 91524), (('adapter', 'iphone'), 12233), (('battery', 'smartphone'), 88884)]
```
And I am simply trying to write it to a csv file, looking like this:
```
keyword 1 keyword 2 frequency
case ... |
2018/03/02 | 856 | 2,349 | <issue_start>username_0: Consider the following string: 3ccc-8ab9-6335-b7af
I'm trying to figure out a regular expression that matches if any 6 characters are in their proper location, but not necessarily consecutive. For example, each of the following would be considered a match:
* `3ccc-8`cn4-o8cy-5234
* `3ccc`&`8a... |
2018/03/02 | 375 | 1,327 | <issue_start>username_0: Needs to import all files as events from a catalog to a given object (created in app.js file).
First I create object in app.js:
```
let object = new somting_private_module();
```
and I need add every files from "events\_client" as events.
Can someone help me as simple as possible to import ... |
2018/03/02 | 1,268 | 3,963 | <issue_start>username_0: When I was running the `gradle clean` command, I got the following message
>
> Starting a Gradle Daemon, 1 busy and 6 stopped Daemons could not be
> reused, use --status for details
>
>
>
For the investigation, I run the following command.
```
$ gradle --status
PID STATUS INFO
115... |
2018/03/02 | 715 | 2,380 | <issue_start>username_0: If need to find out the link is coming from external site
For example : if image link is
<https://static.scientificamerican.com/sciam/cache/file/268F292B-5DDD-4DB1-B5ABC6541A70ECDF.jpg>
Then it need to display **External image**
else **image.jpg** then it needs to dispaly **internal image**... |
2018/03/02 | 889 | 3,187 | <issue_start>username_0: I'm trying some string manipulation using regex's, but I'm not getting the expected output
```
var myString = "/api//"
myString.replace(Regex(""), "(\\d+)")
```
this should give me something like `/api/(\d+)/` but instead I get `/api/(d+)/`
However if I create an escaped string directly lik... |
2018/03/02 | 885 | 2,642 | <issue_start>username_0: I'm trying to post a picture to a file on my Gitlab using markdown
```

```
seems to work but is far too large.
Other solutions I've tried and don't seem to work are as follows:
```

;
startActivityForResult(inte... |
2018/03/02 | 557 | 2,117 | <issue_start>username_0: Each laravel migration comes with a built in 'created\_at' timestamp column that is automatically populated with your request. When trying to access this value, i am instead provided a '01/01/1970' value. Can someone help with this? I have installed Carbon and followed advice of similar problem... |
2018/03/02 | 854 | 2,930 | <issue_start>username_0: I have a function like this:
```
const jsonObject = {a: {b: 'c'}};
const x = 'a.b';
const properties = x.split('.');
const item = properties.reduce((obj, prop) => obj && obj[prop], jsonObject);
console.log(item); // prints 'c;
```
This function, dynamically traverses the jsonObject and pri... |