date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/20 | 600 | 2,333 | <issue_start>username_0: I'm using Angular 5 and have a couple of routes defined. When I navigate routes and put a breakpoint on the canActivate function guard, I see it is executed twice.
I'm asking this because I have to call an external service on each canActivate call, and executing the same service uselessly mult... |
2018/03/20 | 368 | 1,465 | <issue_start>username_0: Is there any tool that can be used to search for the location in which a symbol (e.g. function) is defined within a Haskell project built with stack, which contains multiple packages?
I'm not looking for any IDE integration, anything better than:
```bsh
egrep --color -R --include="*.hs" "som... |
2018/03/20 | 484 | 1,827 | <issue_start>username_0: I am facing a problem to install packages of Serilog.Sinks in an old project, e.g. when I try installing Serilog.Sinks.MSSqlServer I get the following error:
[An error occurred while retrieving package metadata for Serilog.2.6.0](https://i.stack.imgur.com/Jh0fn.png)
I have already installed p... |
2018/03/20 | 298 | 1,048 | <issue_start>username_0: tsling raise an error:
>
> Line 1: 'use strict' is unnecessary inside of modules (strict)
>
>
>
this is my code
```
"use strict";
function Foo() {}
Foo.prototype.sayHello= function () {
console.log("hello!");
}
if (typeof module !== 'undefined' && typeof module.exports !== 'undefi... |
2018/03/20 | 353 | 1,338 | <issue_start>username_0: ```
class Seller(object):
type = ...
name = ...
cars = models.ManyToManyField(Car)
class PotentialBuyer(object):
name = ...
cars = models.ManyToManyField(Car)
class Car(object):
extra_field = ...
extra_field2 = ...
```
Suppose I have a relationship like this. I w... |
2018/03/20 | 382 | 1,198 | <issue_start>username_0: In Python I have got this string
```
string = "<NAME>"
```
I need to get only first character of it. But when I tried `string[0]` it returned `�`. When I tried `string[:2]` it worked well. My question is why?
I need to run this for several strings and when string does not start with diacriti... |
2018/03/20 | 442 | 1,464 | <issue_start>username_0: I'm trying to retrieve data from DBA using Yii2 methods. My problem is when I'm building the query using yii2 query builder like innerJoin, only the column related to the model that I'm starting from are returned.
```
$Categories = CategoryOfItemsTrans::find()
->innerJoin('category_of... |
2018/03/20 | 764 | 2,964 | <issue_start>username_0: I'm downloading all the ".htm" files of some directories by doing more or less:
`wget http://some/url/ -r --accept="*.htm" -nv --show-progress`
In which i turned off wget's printing but kept the progress bar which is useful in my case (`-nv --show-progress`)
This works great but outputs a pr... |
2018/03/20 | 544 | 2,261 | <issue_start>username_0: I came across a problem with mule database connector. I have a flow that receives JSON with some data, i take some of that data and use it to insert a record to a database. The database generates it's own ID when inserting record. Now in the same flow I want to select that ID, but sometimes it ... |
2018/03/20 | 1,313 | 4,828 | <issue_start>username_0: I have a Powershell script that returned an output that's close to what I want, however there are a few lines and HTML-style tags I need to remove. I already have the following code to filter out:
```
get-content "atxtfile.txt" | select-string -Pattern '' -Context 1
```
However, if I attempt... |
2018/03/20 | 701 | 2,241 | <issue_start>username_0: I am self-learning ruby by watching few videos and reading through blogs. I am currently in a situation where I have to parse the below parameters that I receive from an external CRM system into RUBY and find the relevant records from the database and delete them. It works well when I get a sin... |
2018/03/20 | 3,792 | 13,584 | <issue_start>username_0: I have two events that work fine on their own, but one blocks the other.
Full Code and GUI at bottom
Goal:
I am trying to DragDrop a TreeNode into a DataGridView and have the Cell I am hovering over be selected/highlighted.
[
.subscribe((res) => {
this.coursesFiltered = res.filter((filtered: any) => {
return filtered.courseStatus === 2 || filtered.courseStatus === 3
... |
2018/03/20 | 398 | 1,577 | <issue_start>username_0: I have weird caching issue on Drupal site.
First D8 page caching is turned off.
Then I have some content on page that changes for every page loading - to make it simple I'm printing current time from twig template:
```
{{ "now"|date("H:i:s") }}
```
It works like this:
* After clearing Dru... |
2018/03/20 | 767 | 2,777 | <issue_start>username_0: I'm wondering why my git alias got stuck and how it caused a rebase.
**Steps to reproduce:**
`git config --global alias.am "commit --amend"`
I can see that the alias is added with:
`git config --global -e`
```
[alias]
am = commit --amend --no-edit
```
Create new test repo:
`> git in... |
2018/03/20 | 589 | 2,298 | <issue_start>username_0: A file has a filename and an extension and these are usually written with a dot (a full stop) between them as a delimiter. This description tells us that the dot is not a part of the extension but when stating extension we usually include the dot.
For example a PNG file with filename "image" i... |
2018/03/20 | 1,010 | 2,693 | <issue_start>username_0: I have a list of genes with 1-3 probes for each gene, and an intensity value for each probe. An example is as follows:
```
GENE_ID Probes Intensity
GENE:JGI_V11_100009 GENE:JGI_V11_1000090102 253.479375
GENE:JGI_V11_100009 GENE:JGI_V11_1000090202 712.235625
GENE:J... |
2018/03/20 | 531 | 1,736 | <issue_start>username_0: I am trying to export some records from a teradata table into a csv file using BTEQ Export.
While doing this I face 3 issues:
1. The leading zeroes of few columns get dropped. Please help as to how I can retain them.
2. I am not sure how to make the Headers bold, to make it look better.
3. Is... |
2018/03/20 | 719 | 1,993 | <issue_start>username_0: I have an URL where having query parameter need to pick one particular value out of it.
Ex: /abc/xyz?gcode=123456&pcode=21314u925
Need to pick this value (gcode=123456)
I used condition like below
```
```
The issue is in URI the order of the query parameter is not always gcode and followe... |
2018/03/20 | 933 | 2,559 | <issue_start>username_0: I want to create a matrix C where each element is equal to the minimum of its corresponding row and column index. For example: the element corresponding to the first row and second column should have a value of 1, the element corresponding to the eighth row and the third columns should have a v... |
2018/03/20 | 515 | 2,032 | <issue_start>username_0: I have enum named PinpadModelCallback, declared like this:
```
enum PinpadModelCallback {
case Connecting
case SelectDevice
case DevicesUpdated
case Configuring
case Stopping
case Stopped
case CardWaiting
case TerminalProcessing
case TransactionStarted
c... |
2018/03/20 | 634 | 2,132 | <issue_start>username_0: When attempting to upload and install a file created via `./mvnw clean install` I'm running into the error below:
```
Install Package: /etc/packages/apple-cms/cms-content-v1.zip
Mon Mar 19 2018 15:53:13 GMT-0400 (EDT)
Installing content
Collecting import information...
Installing nod... |
2018/03/20 | 555 | 1,915 | <issue_start>username_0: I need to make a Web page as simple as HTML + simple JS/CSS but it needs to read list of objects (files) from a specific S3 bucket.
Front end part I finished but in order to get a list of s3 objects - I need to issue a command `aws s3 ls` -> in order to get a list of files from S3 but that req... |
2018/03/20 | 719 | 2,661 | <issue_start>username_0: I have reverted a pull request from GitHub by following this article <https://help.github.com/articles/reverting-a-pull-request/>. Now even after reverting when I am comparing the two branch it shows same. How can I raise a pull request again?
Here is what I did
1. I raised a pull request fr... |
2018/03/20 | 326 | 1,115 | <issue_start>username_0: The html code is as follows for the image :
```

```
The image is located in the "drawable folder" and this html document is in the "assets" folder. The directory structure is such :
App->src->main->assets;
and App->src->main->res->drawable
[Android - loca... |
2018/03/20 | 566 | 2,065 | <issue_start>username_0: My code seems to crash due to an infinite loop, but I can't find the error.
Could someone help me out and look over the code?
**Here is my controller:**
```
override func touchesMoved(_ touches: Set, with event: UIEvent?) {
for touch in touches{
let location = touch.location(in: self.view)
... |
2018/03/20 | 533 | 1,883 | <issue_start>username_0: I just updated to play 2.6, and now none of my reusable templates work.
For example
In `index.scala.html` I had
```
@(word: String)
@main("My index Page"){
@word
}
```
And in my `main.scala.html` I had
```
@(title: String, stuff: HTML)
//and then things here that did stuff that aren'... |
2018/03/20 | 1,066 | 4,027 | <issue_start>username_0: I could not find an answer on my question so I hope someone can help me
I want to validate if I add a new appointment that the chosen employee has not been chosen on the day of the appointment. So I can't double-book someone on a day.
I'm using laravel 5.6 and MySQL with table appointments usi... |
2018/03/20 | 840 | 2,465 | <issue_start>username_0: In my application I have a need to create a single-row DataFrame from a Map.
So that a Map like
```
("col1" -> 5, "col2" -> 10, "col3" -> 6)
```
would be transformed into a DataFrame with a single row and the map keys would become names of columns.
```
col1 | col2 | col3
5 | 10 | 6
`... |
2018/03/20 | 552 | 1,633 | <issue_start>username_0: I need to concatenate few cells values into one cell that will always be next to the concatenated ones. Here is the example:

There will always be 4 main columns with data and the 5th one "Wynik" will be used to concatenate the values from... |
2018/03/20 | 702 | 2,736 | <issue_start>username_0: I have this code. At the very end we have `List` of anonymous objects with fields `FILE_NAME`, `DATE`, `REPORT_LINK`.
```
public ServiceResult Get(string userIdString)
{
var userId = Int32.Parse(userIdString);
var downloadLink = _serviceConfigManager.Parameters[ServiceResources.Downloa... |
2018/03/20 | 817 | 2,212 | <issue_start>username_0: I have multiple tables created with `astropy.table.Table`, for example:
```
from astropy.table import Table
import numpy as np
#table 1
ta=Table()
ta["test1"]=np.arange(0,100.)
#table 2
tb=Table()
tb["test2"]=np.arange(0,100.)
```
I can save them individually to `.fits` files using
... |
2018/03/20 | 725 | 2,945 | <issue_start>username_0: Long time I write code in JavaScript, using jQuery, ReactJS and NodeJS server side (ExpressJS). I learned partially MDN and other sources, however there is one question I can not found an answer for.
Why follow code requires `prototype` object's property? Why I can not use `forEach` directly... |
2018/03/20 | 782 | 3,216 | <issue_start>username_0: I want to download a photo that was previously uploaded from Firebase. I am using the following code:
```
fbUser = Auth.auth().currentUser
let storage = Storage.storage()
let storageRef = storage.reference(forURL: "somepath.some")
let profilePicRef = storageRef.child(fbUser.uid... |
2018/03/20 | 185 | 726 | <issue_start>username_0: I know that in Fortran 90 the symbol for greater than (for example) has been changed from `.gt.` to `>`. Is this the case also for other logical expressions like `.and.` and `.or.`? Are there equivalent symbolic expressions for these as well?<issue_comment>username_1: No there are no such symbo... |
2018/03/20 | 372 | 1,482 | <issue_start>username_0: I'm having trouble navigating the Laravel documentation. I use the static method `\Illuminate\Support\Facades\Validator::make`, and I would like to find out more information about it. However, I cannot find it in the documentation page for `\Illuminate\Support\Facades\Validator` (<https://larav... |
2018/03/20 | 304 | 1,060 | <issue_start>username_0: For example,
```
for (i in Cow.array){...}
```
If either `Cow` or `Cow.array` is removed, what will happen?
Also, if error occurs, how can I fix it?<issue_comment>username_1: If you see the actual class itself (`\Illuminate\Support\Facades\Validator`) in your IDE you will see this:
```
/**... |
2018/03/20 | 410 | 1,434 | <issue_start>username_0: Suppose I have
```
const bold = content => **{content}**;
const aside = content => {content};
```
Now, I write:
```
aside("hello world");
```
And everything performs correctly.
---
Next, suppose I want to render a list of components in aside:
```
const bold = content => **{content... |
2018/03/20 | 303 | 1,105 | <issue_start>username_0: The original code is:
```
modelBuilder.Entity<OriginalClass>().Map<OtherClass>(x => x.Requires("Field1").HasValue("Value1"));
```
It doesn't compile and I can't seem to find the equivalent code.<issue_comment>username_1: If you see the actual class itself (`\Illuminate\Support\Facades\Valida... |
2018/03/20 | 438 | 1,464 | <issue_start>username_0: Given three or more variables in my `DTL` template what is the most convenient way to assure that an interpunct is always between two variables?
```
{{ person.name }} · {{ person.phone }} · {{ person.city }}
```
Expected:
```
John · 1234567 · New York
John · 1234567
```
Is there an easy ... |
2018/03/20 | 988 | 3,496 | <issue_start>username_0: I am trying to implement the cluster estimation method using EM found in [Weka](http://weka.sourceforge.net/doc.dev/weka/clusterers/EM.html), more precisely the following description:
>
> The cross validation performed to determine the number of clusters is
> done in the following steps:
>
... |
2018/03/20 | 268 | 1,104 | <issue_start>username_0: I have a python code which is quite heavy, my computer cant run it efficiently, therefore i want to run the python code on cloud.
Please tell me how to do it ? any step by step tutorial available
thanks<issue_comment>username_1: You can try Heroku. It's free and they got their own tutorials. ... |
2018/03/20 | 473 | 1,831 | <issue_start>username_0: I'm trying to test my service with JEST and mocking endpoint with nock. Service looks like this
```
export async function get(id) {
const params = {
mode: 'cors',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
};
let... |
2018/03/20 | 1,497 | 6,063 | <issue_start>username_0: I wrap some content into a ScrollPane because I want a horizontal scroll bar if the content does not fit on screen.
As long as the scroll bar is not needed, everything is fine:
[](https://i.stack.imgur.com/WM... |
2018/03/20 | 836 | 2,980 | <issue_start>username_0: I've a class `Testendride`:
```
public Testendride guranteBoneses;
```
set the values on `response`
```
JSONObject jsonObject = new JSONObject(s);
Gson gc = new Gson();
guranteBoneses = gc.fromJson(s, Testendride.class);
```
I'd like to send this `Testendride` object to the next `Activit... |
2018/03/20 | 971 | 3,657 | <issue_start>username_0: I am using this dependency in a spring boot application:
```
org.springframework.boot
spring-boot-devtools
true
```
The [documentation](https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/htmlsingle/#using-boot-devtools-restart-exclude) says:
>
> By default, changing resour... |
2018/03/20 | 800 | 2,501 | <issue_start>username_0: I want to find the indices of the maximum values along axis 0 in a multi dimensional array. This can be done in `python` using `numpy`: <https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmax.html>
In `python`:
```
a = array([[1,2,3],[4,3,1]])
a.argmax(axis=0)
```
Will return:
`... |
2018/03/20 | 648 | 2,130 | <issue_start>username_0: hi am new to curl but need it for a particular project could you help me format this code to work i would like to get the results and print out the raw JSON on the page here is the code i am using
```
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "curl -u api key: https://api.companies... |
2018/03/20 | 728 | 2,914 | <issue_start>username_0: I have a question that might be a matter of pure taste, however I just like to get some opinions from different angles to become more clear about this.
A class reads and writes status values from and into a database. There are currently 5 status values, they might become a few more. For brevit... |
2018/03/20 | 508 | 2,116 | <issue_start>username_0: In Git pull I was getting merge conflict. So I deleted all the folders and files inside it which was giving conflict in my local workspace. After which I did :
```
git pull
```
Now no conflict came and my local branch became sync to remote branch.
Now when I am doing
```
git status
```... |
2018/03/20 | 454 | 1,740 | <issue_start>username_0: How to convert the below string to XML,
```
SET @string = '
'+@Cname+'
System.String
'
```
I tried `SET @xmlstring = CONVERT(XML,@string)` but it displays below error
Msg 9459, Level 16, State 1, Line 17
XML parsing: line 4, character 13, undeclared prefix<issue_comment>username_1: If clien... |
2018/03/20 | 900 | 3,328 | <issue_start>username_0: I am working on a project using Spring Boot 1.5.2.RELEASE and have been tasked with adding database backed HTTP sessions.
So, I got this working in the 2.0.0.RELEASE easily enough and the application started and created the tables *spring\_session* and *spring\_session\_attributes*
Here's the... |
2018/03/20 | 689 | 2,723 | <issue_start>username_0: Is there a way to run a python that can **process inputs interactively**? Without user input. That way methods can be called **without needed to import** and initialize the script.
What I have:
```
import very_heavy_package
very_heavy_package.initialize()
if very_heavy_package.check(input_f... |
2018/03/20 | 635 | 2,165 | <issue_start>username_0: Is there a way to create a table footer in pdfMake? I have a big table that only fits on multiple pages. I want to repeat the table footer on each page.<issue_comment>username_1: Seems like it is still not implemented: <https://github.com/bpampuch/pdfmake/issues/620>
Upvotes: 3 [selected_answer... |
2018/03/20 | 220 | 704 | <issue_start>username_0: i set break point in razor code but i am not being able to debug the code.
here is the picture which clearly saying **break point will not currently hit**
so please tell me what option i need to turn on in VS2013 IDE.
[](ht... |
2018/03/20 | 1,294 | 3,680 | <issue_start>username_0: [](https://i.stack.imgur.com/UI1n3.png)
How can i add text at each line end like 97th, 95th etc using **charts.js**. Any help would be great. I tried documentation and did googling.<issue_comment>username_1: You can [extend](h... |
2018/03/20 | 2,018 | 6,985 | <issue_start>username_0: Why I got -4 by the community?
Nobody knows the answer so they give me -4 for asking question you cannot figure out? Please explain... The question is highly technical and hard and deserve much better reaction in the community. Unless i will start asking easy questions...
Wrong answers i got:... |
2018/03/20 | 461 | 1,549 | <issue_start>username_0: my Object has this structure:
```
{
"head" : {
"nestedObject" : {...},
"someMoreObjects": {...}
}
}
```
how can I change the key "head" into i.e. "newHead" without loosing the child values?<issue_comment>username_1: I think you can do like that ?... |
2018/03/20 | 833 | 2,700 | <issue_start>username_0: I am trying to view list of items from database ( I am using Entity Framework).
My Repository method:
```
public List getListOfItems(int i)
{
return (from x in db.Items where x.ID == i select x.Text).ToList();
}
```
My Controller:
```
public ActionResult Index()
{
var itemOutput = re... |
2018/03/20 | 801 | 2,682 | <issue_start>username_0: I am trying to install latest Meteor 1.6 using Chocolatey on windows.
My Windows configurations is
>
> Processor - core i7, 2nd gen, 2.2 Ghz
>
>
> RAM - 8 GB,
>
>
> System Type - 64 bit
>
>
>
I also used below command in COMMAND PROMPT to start with installation,
```
choco install m... |
2018/03/20 | 1,237 | 4,902 | <issue_start>username_0: It's been a decade since I've written VBA and trying to reach out to see what I broke. I wrote a macro which copies data from one sheet to another, 1 column at a time for 4 different columns, and pastes it in the next free cell. This formula worked but I would like to adjust it to only copy cer... |
2018/03/20 | 945 | 3,622 | <issue_start>username_0: Is a tabulator a valid character for whitespace between elements in XML/SOAP?
```
\*TAB\*
\*TAB\***test**\*TAB\*
*TAB* stands for \t = 0x09
```<issue_comment>username_1: Obviously, with the proper indentation done by CallumDA, it should be written as below. Also there is a typo in the `Range... |
2018/03/20 | 1,060 | 3,839 | <issue_start>username_0: **input**:
```
random adsf 845 asdsf.$Ecdda-string0.rand me39 84abd
dee rand a[s% 845 a1sEdsf.$cdNda-string1.rand me39 84abd
```
**output** - keep everything between `da-` and `.`
```
string0
string1
```
**what I have tried so far**:
```
sed -e 's/.*da-\(.*\)./\1/' file
grep ... |
2018/03/20 | 1,548 | 4,992 | <issue_start>username_0: There are a lot of matching "X" and "Y" questions in R on this site but I think I have a new one. I have two datasets, one is shorter (500 rows) and has one entry per individual. The second is bigger (~20,000 rows) and an individual can have multiple entries. Both have columns for date of birth... |
2018/03/20 | 388 | 1,267 | <issue_start>username_0: I have to deliver an application running in several containers to a customer.
I can export all single images to files with:
```
docker save --output app1.tar app2
docker save --output app2.tar app2
...
```
My goal is do deliver a ZIP-folder with only the docker-compose.yml and the images ... |
2018/03/20 | 879 | 3,185 | <issue_start>username_0: i Want to enable or configure https on my tomcat 8 server, This requires me to configure certificate paths. i have received .pem file, how do i use this .pem file to configure https on tomcat ?<issue_comment>username_1: To enable `https` on your project, follow the steps below:
**1-** Go to yo... |
2018/03/20 | 295 | 954 | <issue_start>username_0: It possible to count the ion-option inside the ion-select?
```
```
`console.log(something)` and I will got 3 ?
Thanks.<issue_comment>username_1: Something like
```
@ViewChildren('ion-option')
ionOptions: QueryList;
```
and then
```
ionOptions.length;
```
Upvotes: 0 <issue_comment>u... |
2018/03/20 | 490 | 1,684 | <issue_start>username_0: I have a web application with heavy JS scripts (by heavy I mean lots of client processing which can't be done on the server side).
After 1 hour or so (not constant) of processing I get Chrome's *"Aw, Snap!"* error, I have debugged as suggest in <https://superuser.com/questions/607563/how-to-det... |
2018/03/20 | 1,405 | 5,232 | <issue_start>username_0: I understand why fetching a value from an array using an ordered index is O(1). But suppose you are fetching by value? If the value is the last in array.count == 100, you have to iterate through the whole collection. Wouldn't that be O(n)?<issue_comment>username_1: **Simple Answer**
-----------... |
2018/03/20 | 1,429 | 5,273 | <issue_start>username_0: I am searching for an regex which would match exactly 7 occurences of the .\*: (7 fields colon separated)
unfortunatelly, what I combined:
```
grep -E '(.*:){7}' ...
```
does also print the same lines when I decrase number in {}.
how to test it for fixed exactly 7 occurences?<issue_comment>... |
2018/03/20 | 606 | 2,039 | <issue_start>username_0: I have a CakePHP 3.5 website. It was necessary to set slugs without any url prefixes like /pages/slug, so I wrote the following rule:
```
$routes->connect(
'/:slug',
['controller' => 'Pages', 'action' => 'redirectPage']
)
->setMethods(['GET', 'POST'])
->setPass(['slug'])
->setPatterns(... |
2018/03/20 | 343 | 1,388 | <issue_start>username_0: I'm new to programming so please dont bite my head off! I'm using Xcode with GitHub, but it's suddenly stopped working. Xcode is not showing the current branch on source control, it doesnt load remote repositories, and the git status is 'head detached'.
I've gone to the command line and done '... |
2018/03/20 | 722 | 3,101 | <issue_start>username_0: I need to call functionB from within a promise in functionA
```
constructor(props) {
super(props);
this.functionA = this.functionA.bind(this);
this.functionB = this.functionB.bind(this);
}
functionA(canvas) {
let data = new FormData();
canvas.toBlob(function(blob) ... |
2018/03/20 | 911 | 2,216 | <issue_start>username_0: I am trying to plot a bar chart and attach labels to each bar. I can plot the chart with this code:
```
y = np.array([ 0.06590843, 0.10032079, 0.03295421, 0.12277632, 0.04257801,
0.00641586, 0.05774278, 0.15106445, 0.13852435, 0.03732867,
0.05570137, 0.11548556, 0.228... |
2018/03/20 | 567 | 1,988 | <issue_start>username_0: If I have a variable of type `std::unordered_map`, how can I access the `std::unordered_map::iterator` typedef without having to always write the type itself but, for example, making the compiler infer it from an existing variable like `decltype(my_map)::iterator)`?
**EDIT:**
Example code:
`... |
2018/03/20 | 982 | 3,449 | <issue_start>username_0: I am wondering how matrix multiplication can be supported in numpy with arrays of `dtype=object`. I have homomorphically encrypted numbers that are encapsulated in a class `Ciphertext` for which I have overriden the basic math operators like `__add__`, `__mul__` etc.
I have created numpy array... |
2018/03/20 | 1,331 | 4,655 | <issue_start>username_0: Let's say I have three MySQL tables:
```
╔═════════════════╗ ╔════════════╗ ╔══════════════════════╗
║ animals ║ ║ colors ║ ║ animal_color ║
╠════╦════════════╣ ╠════╦═══════╣ ╠═══════════╦══════════╣
║ id ║ name ║ ║ id ║ name ║ ║ anim... |
2018/03/20 | 832 | 2,999 | <issue_start>username_0: I have made a simple WP plugin, that will get some documents from `calameo.com` and present them in a nice manner. I have made a custom **shortcode** for it. Let's call it "Shortcode"…
I will have `[Shortcode vendor=vendor1]` to show only the documents related to
a vendor and I know how to do... |
2018/03/20 | 673 | 2,230 | <issue_start>username_0: I not completely understand how whole avro serialization ecosystem is built.
Originally I imagined something like that:
[](https://i.stack.imgur.com/eGupE.png)
However, I tried to post a binary avro message message to a topic ... |
2018/03/20 | 1,527 | 4,979 | <issue_start>username_0: ```
PROGRAM VOTING_SLIP (INPUT,OUTPUT);
CONST
Array_size = 20;
VAR
Counter, Increment, i, j : Integer;
Found, full_name, District_ID : string;
DistrictArea : Array[1..20] of string;
DistrictID : Array[1..20] of string;
BEGIN
WRITELN('Please Populate District Area Array');
FOR i := 1 to 20 ... |
2018/03/20 | 1,064 | 4,675 | <issue_start>username_0: I have a `function` called by a `UITableView` which updates a wallet value based on what it contains (hence the call by the tableView). This is part of the `WalletViewController` where the user can update what his wallet contains.
I would like to be able to call this function from the `MainVie... |
2018/03/20 | 6,406 | 10,879 | <issue_start>username_0: When I try to open the `http://myip:8889/topologies` after running `heron-tracker` and `heron-ui` commands, the response speed of this page is very slow even I can't open the page at all.
And the 304 response code showed as following:
```
[2018-03-20 07:08:48 +0000] [INFO]: 302 GET / (172.1... |
2018/03/20 | 2,887 | 8,618 | <issue_start>username_0: I have trying to download the `kaggle dataset` by using python. However i was facing issues by using the `request` method and the downloaded output .csv files is a corrupted html files.
```
import requests
# The direct link to the Kaggle data set
data_url = 'https://www.kaggle.com/crawford/ge... |
2018/03/20 | 1,545 | 6,834 | <issue_start>username_0: I'm currently a university student, waiting to choose a great Bachelor thesis. I've been willing to create a language for a long time and since I think I am able to, I would like to hear the opinions on the following matter:
I know lots of languages, including C, C++, Python, Erlang, PHP, Java... |
2018/03/20 | 326 | 1,089 | <issue_start>username_0: I have been working to remove the dotted lines used to highlight the focused element. But seems I'm not finding any solution.
It's even visible in [SAP UI5 Demo](https://sapui5.hana.ondemand.com/#/api/sap.ui.layout.Splitter/methods/Summary) kit.
[Image Highlighting the issue.](https://i.stac... |
2018/03/20 | 502 | 1,729 | <issue_start>username_0: I am trying to automate a Python script on a Google Cloud VM using Crontab.
When I run `python Daily_visits.py` my code runs as expected and generates a table in BigQuery.
My Crontab job is as follows: `*/2 * * * * /usr/bin/python Daily_visits.py` but generates no output.
I've run `which pyt... |
2018/03/20 | 2,365 | 8,298 | <issue_start>username_0: I'm new to Java and I'm making a Tetris game on Android Studio. I'm trying to do a "Pause/Start" button and it doesn't work. When I press the button PAUSE, the music and the game stops (it works as it should). But when I press Start again, the music continues but the game doesn't resume.
I've ... |
2018/03/20 | 439 | 1,593 | <issue_start>username_0: I am trying to hide/show a `div` on anchor click, but that doesn't work.
I have repeater, and in it there are so many posts. There are bound images, descriptions and comments (anchor tag).
When I click on a comment, the associated `div` will be displayed.
```
[Show Search](#)
Content goes h... |
2018/03/20 | 2,852 | 6,275 | <issue_start>username_0: Here is the query,
```
db.getCollection('_ad.insight').aggregate([
{
$match:{
date: {
$lte: ISODate('2018-12-31'),
$gte: ISODate('2017-01-01')
}
}
},
{
$project:{
_id: 0,
year: {... |
2018/03/20 | 802 | 2,790 | <issue_start>username_0: How to set a trap in my program that when I push the purchase button and the quantity to be purchased exceeds the amount remaining on my database it will give an error that there's no enough amount left. Currently it only goes to a negative value. Sql server does not support unsigned values and... |
2018/03/20 | 582 | 1,953 | <issue_start>username_0: How can I append the player-id to input field on page load?
```
Get OneSignal player id
function getOneSignalToken() {
//alert("RegisterId:" + android.getOneSignalRegisteredId());
$('#player-id').val($('#player-id').val() + android.getOneSignalRegisteredId());
};
```<issue_comment>u... |
2018/03/20 | 628 | 2,011 | <issue_start>username_0: Suppose to have two file, `home1.php` and `home2.php` in different folders.
This is folder disposition:
```
root
folder1
home1.php
folder2
home2.php
```
I need to include `home1.php` in `home2.php` so in home2.php I do:
```
php include('../folder1/home1.php'); ?
```
But it gi... |
2018/03/20 | 679 | 2,317 | <issue_start>username_0: I have a file with global variables:
```
@Injectable()
export class Globals {
public baseURL:string;
public loginURL:string;
public proxyURL:string;
public servicesURL:string;
constructor(platformLocation: PlatformLocation) {
this.baseURL = (platformLocation as any).location.hre... |
2018/03/20 | 589 | 2,147 | <issue_start>username_0: Let the following C function
```
void underTest(){
static int i = 0;
i++;
if (i > 50*1000*1000) {
/* I want to test this */
}
}
```
I need to unit-test this function, including the if block. Among solutions I can foresee, there is:
* Do whatever it takes to reach all cases using... |
2018/03/20 | 828 | 3,172 | <issue_start>username_0: I'm developing a java client/server architecture where a client sends a message to the server using jackson. Exchanged data is defined by the *Message* class:
```
public class Message {
private Header header; //Object that contains only String
private Object pdu;
public Message() ... |
2018/03/20 | 578 | 2,014 | <issue_start>username_0: Something is wrong with my code, because I get a fatal error when I try to call to method `getCollectionNames()`.
`listCollections()` works perfectly.
This is my code.
```
require '../vendor/autoload.php';
$client = new MongoDB\client;
$database = $client->test;
$colections = $database->getC... |
2018/03/20 | 571 | 1,790 | <issue_start>username_0: Consider the code:
```
#include
#include
struct stru {
int a{};
int b{};
};
int main() {
std::atomic as;
auto s = as.load();
std::cout << s.a << ' ' << s.b << std::endl;
}
```
Note that although `stru` has default member initializer, it still qualifies as an aggregate type since C++... |
2018/03/20 | 1,484 | 4,491 | <issue_start>username_0: Please help me to redesign the below query for improving the performance -
```
select
LT.id,
LT.SalesAmount,
RT.DiscountAmount,
(LT.SalesAmount - isnull(RT.DiscountAmount,0.00)) as FinalAmount
from @LeftTable as LT
left join @RightTable as RT on RT.id = LT.id
where (LT.SalesAmo... |
2018/03/20 | 1,270 | 4,937 | <issue_start>username_0: This is my first question in stack overflow so forgive me if I am going against the rules.
I want to take user input as string and reverse every nth word of the string. The n value is also entered by the user. If the user inputs invalid value the program should respond the user accordingly. Un... |
2018/03/20 | 2,001 | 7,630 | <issue_start>username_0: ```
Animal myAnimal = new Animal();
```
I have this code above. As far as I know, it will do these things :
1. An animal object will be created on heap memory
2. The reference to that object will be passed to the reference variable "myAnimal"
In other words, "myAnimal" variable holds the mem... |