date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/27 | 10,927 | 42,646 | <issue_start>username_0: This question is motivated by my another question: [How to await in cdef?](https://stackoverflow.com/questions/48989065/how-to-await-in-cdef)
There are tons of articles and blog posts on the web about `asyncio`, but they are all very superficial. I couldn't find any information about how `asyn... |
2018/02/27 | 932 | 3,140 | <issue_start>username_0: How to add conditions to the relation?
For example, we have object Pet
```
@Entity
public class Pet {
@ PrimaryKey
int id;
int userId;
String name;
String type;
// other fields
}
```
and object User
```
public class User {... |
2018/02/27 | 1,011 | 3,629 | <issue_start>username_0: Has anyone tried deploying a React front end to a Google Apps Script web app? I'm trying to build a single page front end that calls some of the Google Apps Script apis, like get a list of drive files and save some results to a spreadsheet. However, all the React docs seem to assume I'm using a... |
2018/02/27 | 1,216 | 4,093 | <issue_start>username_0: This is my code for pairswapping:
```
#include
#include
struct Node{
int data;
struct Node \*next;
};
int main(){
struct Node \*list, \*head;
head = (struct Node \*)malloc(sizeof(struct Node));
list = head;
int i;
for(i=0;i<6;i++){
list->data=i;
list->next = (struct Node \*)malloc(sizeof... |
2018/02/27 | 668 | 2,422 | <issue_start>username_0: I want to create this type of JSON using swagger in laravel, how is it possible?
```
"parameters": [
{
"in": "body",
"name": "body",
"required": false,
"schema": {
"$ref": "#/definitions/CustomerAuthenticateResponse"
... |
2018/02/27 | 277 | 980 | <issue_start>username_0: this is my `XML` file. I am having trouble while running my app. I have already created same GUI for registration activity but getting problem while designing login activity. I have declared `tools:background = "@color/colorPrimary"` but unable get colorPrimary . what should I do to solve this ... |
2018/02/27 | 421 | 1,479 | <issue_start>username_0: Have an object **Journal**.
Journal has a **Company** field.
```
[Required]
[Display(Name = "Company")]
public int CompanyID { get; set; }
[ForeignKey("CompanyID")]
public Company Company { get; set; }
```
Company has a list of Journals
```
public IList Journals { get; set; }
```
Now c... |
2018/02/27 | 339 | 975 | <issue_start>username_0: Here I am trying to display variable `y` value in `td` in view(i.e .cshtml).
But have no idea how to do that.
Below is my view:
```
@Html.DisplayFor(modelItem => item.District)
|
@{
var y = v.GetContestantAverageRatingByContestantId(item.ContestantId);
}
|
```<issue_comment>username_... |
2018/02/27 | 430 | 1,307 | <issue_start>username_0: I am currently trying to figure out, how to find all columns of a table within an SQL statement using Regex in notepad++.
Lets take this query:
```
select
a.id,
a.id || a.name,
a.age,
b.id
From a,b
```
Now, I wat to retrieve all columns for a using regex - the problem the query itse... |
2018/02/27 | 492 | 1,468 | <issue_start>username_0: I develop an application with command line parameters and use it in cmd shell and powershell. There it is obvious that the arguments are received differently in main() of my application.
```
static void Main(string[] args)
{
// In cmd shell: args[0] == "-ipaddress=127.0.0.1"
// In powersh... |
2018/02/27 | 648 | 2,375 | <issue_start>username_0: I've set up NUnit tests that runs on BrowserStack (set up from this example <https://github.com/browserstack/nunit-browserstack> )
Base class:
```
namespace Bloc.TestProject
{
public class BrowserStackNUnitTest
{
protected IWebDriver driver;
protected string profile;
... |
2018/02/27 | 500 | 1,809 | <issue_start>username_0: I want to check if Intel virtualization is enabled in my laptop or not (Lenovo Thinkpad, Win 10 64 bit). Is there any way available to check it without going to BIOS?<issue_comment>username_1: Right-click Start > Run > *msinfo32*
The first page shows whether virtualization is enabled in BIOS (... |
2018/02/27 | 712 | 2,483 | <issue_start>username_0: I got the following code:
`$popularProducts = PopularProduct::with('product')->get();`
This is how I get all of products from `popular_products` (contains only `product_id`) table with relations for `products` table. But I have this result:
```
Collection {#409 βΌ
#items: array:1 [βΌ
0 ... |
2018/02/27 | 528 | 1,839 | <issue_start>username_0: Using Bash, I tried to read input from the user like this:
```
#!/bin/bash
function read_from_user {
cat | echo
}
echo 'Do you want to create the folder "new.folder" ?'
var=`read_from_user`
if [[ ${var} == yes ]]; then
mkdir new.folder
fi
echo 'var is: ${var}'
```
But it's not working, `... |
2018/02/27 | 346 | 1,403 | <issue_start>username_0: I am making an Simple Android App to test the sorting capability and then use it on my main project that I will be making.
I want to know that suppose I display a list of items to the user with the help of custom objects and custom ArrayAdapter in the listview and there I want to place a sorti... |
2018/02/27 | 783 | 2,883 | <issue_start>username_0: I am using flaks python and sqlalchemy to connect to a huge db, where a lot of stats are saved. I need to create some useful insights with the use of these stats, so I only need to read/get the data and never modify.
The issue I have now is the following:
Before I can access a table I need to... |
2018/02/27 | 1,643 | 6,286 | <issue_start>username_0: I have created a new sample app with aurelia-cli.
A weird behaviour that got me stuck is with routing.
This is my main route.
```
{
route: "projects",
title: 'Project Section',
name:'project-section',
moduleId: './modules/projects/project-section',
nav: true
}
```
and this is ... |
2018/02/27 | 458 | 1,595 | <issue_start>username_0: I was just creating the 'reset password' section for my app using Firebase (built for iOS with Swift) and wondered if I was able to change the email address that the reset password link is sent from?
For example, instead of it being '<EMAIL>', could I change it to '<EMAIL>'?
I can't seem to f... |
2018/02/27 | 571 | 1,799 | <issue_start>username_0: Is it possible to save a query bulider and use it multiple times?
for example, I have a model 'Tour'.
I create a long query buider and paginate it:
```
$tour = Tour::where(...)->orWhere(...)->orderBy(...)->paginate(10);
```
*For example, 97 models qualify for the above query.
"Paginate" me... |
2018/02/27 | 446 | 1,700 | <issue_start>username_0: I'm having a problem where I need to enable "Retry on failure" on a Pub/Sub cloud function, but whenever I deploy an update to the function I have to manually edit and enable "Retry on failure" for that function.
Is there a configuration or option where it keeps "Retry on failure" enabled unti... |
2018/02/27 | 618 | 1,647 | <issue_start>username_0: How do I find the length of grouped columns, excluding NAs?
For example, with the following data frame,
```
Year State var1 var2
TX 2 NA
WA 0 3
CA NA 1
CA 2 NA
CA 2 3
TX NA 4
WA NA NA
WA 3 3
CA NA 0
```
I want it to return
```
St... |
2018/02/27 | 570 | 1,517 | <issue_start>username_0: I have `n` elements in a list `A`. Each element in the list is a matrix and every element has different size (for eg. for `1st` element the size is `a1 x b1`, for second its `a2 x b2` and for `nth` element it is `an x bn`). How to extract the complete matrix of that element having the maximum m... |
2018/02/27 | 664 | 2,058 | <issue_start>username_0: I am developing an App using react native. I want to pass a parameter to a function in my flatlist for a specific record. But, the flat list ignore this line of code:
`onPress={ () => {console.log("TEST1"); this.onPressTopUp()} } />`
Here is my code:
```
}
horizontal={false}
data={this.stat... |
2018/02/27 | 468 | 1,662 | <issue_start>username_0: I have been implementing a communication protocol in C++ and I have decided to model one packet in below given manner.
```
union control_pkt_u{
struct pkt_parts_t{
uint8_t header[3]; // Control packet header
uint8_t payload[NO_PYLD_BYTES_IN_CO... |
2018/02/27 | 1,130 | 4,042 | <issue_start>username_0: I am trying to create a wrapper for my API return wrapper class for my project.
these are my classes
```
class Wrapper {
let message = "Hello World"
let wrapped = T.self
public func getData() -> T.Type {
return wrapped
}
}
class Object {
let number = 100
public func getNumber() ->... |
2018/02/27 | 999 | 3,581 | <issue_start>username_0: We are trying to allow our users to download / display PDF files in a web application (WebView)
The HTML is a simple
```
```
**In a standard android browser everything works** - when clicking the link, the browser is allowing either display the PDF, or download... (content-type is applicati... |
2018/02/27 | 244 | 841 | <issue_start>username_0: What is the equivalent of Java `Scanner` in Kotlin?
I have used `readLine()` but I'd like to know whether it's type safe or not?<issue_comment>username_1: **Kotlin** reuses many existing Java libraries and it's perfectly fine to do so with `Scanner`. Otherwise, [`readLine`](https://kotlinlang... |
2018/02/27 | 803 | 2,782 | <issue_start>username_0: I'm trying to create a link which a user can click, that then redirects them to their email system allowing them to directly email a certain address. I'm not entirely sure how I would go about doing so.
If anyone could give me some tips that would be great, thanks.<issue_comment>username_1: h... |
2018/02/27 | 693 | 1,982 | <issue_start>username_0: I want to store the number of rows returned from the SELECT statement in a variable, as i require the count for further calculations.
I tried using the COUNT function, but I don't know how to store it in a variable. Please help me out. Any alternate method would do too.
Thanks in advance.
```
... |
2018/02/27 | 489 | 1,783 | <issue_start>username_0: I have one domian with this name "example.com"
but i want any time user come to my domain redirect to different server by user country ip
user ip = 192.168.1.1 : USA Go To "example.com" with ip => 127.0.0.1 in USA
user ip = 192.168.1.2 : Canada Go To "example.com" with ip => 127.0.0.2 Canada<... |
2018/02/27 | 578 | 2,168 | <issue_start>username_0: I want to get a autocomplete function like this: <http://www.nationalrail.co.uk/default.aspx>.
I want to provide full names as suggestions for the input-text like this
>
> Hannover (HAN)
>
>
>
But after selecting a suggested entry I want to set only the three letters instead of the full ... |
2018/02/27 | 719 | 2,563 | <issue_start>username_0: I need a function that maps object from one type to another:
I have an object like this:
```
interface IEntityPerson {
person_id: number
name: string
age: number
address: IAddress
}
const orig: IEntityPerson = {
person_id: 1,
name: 'Ole',
age: 40,
address: myAddress
}
```
I... |
2018/02/27 | 902 | 3,257 | <issue_start>username_0: I have an XML file as shown below. I've created a simple program to the reader this file and print in on the console.The problem that I'm facing is that it is giving me
```
java.lang.NullPointerException
at xmlreader.main(xmlreader.java:46)
```
and also it is not reading some values.
`... |
2018/02/27 | 441 | 1,261 | <issue_start>username_0: ```
Array [ Object, Object, Object, Object ]
Object {
id : 1,
name : xyz,
section : b
},{
id : 2,
name : abc,
section : a
},
$scope.array = Array [ Object, Object, Object, Object ];
angular.forEach$scope.array, function(value, key){
$scope.array.push({
... |
2018/02/27 | 369 | 1,262 | <issue_start>username_0: I am trying to find a way to have a div affix to the top of a users browser as they scroll *past* the div but this should not pass the parent div. I have created a basic gif for the concept.
Current markup:
```css
body {
padding:0;
margin:0;
}
.container {
width:100%;
... |
2018/02/27 | 383 | 1,417 | <issue_start>username_0: I would like to match a sentence if few words are present and discard the match if certain other words are present.
For example:
I would like to regex match to happen if the string has "consumer" and "services" and the match not to happen if the string has word "delayed".
Match to happen:
`... |
2018/02/27 | 767 | 2,373 | <issue_start>username_0: I'm stuck with an error using mongoose and mongodb that won't let me locate things in my database beause of cast errors.
I have a user schema
```
const schema = new mongoose.Schema({
_id: mongoose.Schema.Types.ObjectId,
name: { type: String, min: 1, required: true }
});
export defaul... |
2018/02/27 | 363 | 1,410 | <issue_start>username_0: Is there any way to make json.Unmarshal *not* accept a case-insensitive match? I receive a JSON with tags such as "e" and "E" and would like to unmarshal the object with tag "e" but ignore the one with "E". Right now the only solution I found was to define a struct containing both tags and then... |
2018/02/27 | 727 | 2,041 | <issue_start>username_0: I would like to iterate over columns in dataframe and for every column if the number of NAs is bigger than 50% of all entries I would like to remove that column from the dataframe. So far I have something like this but it doesn't work:
```
for (i in names(df_r)) {
if (sum(is.na(df_r[,i]))/... |
2018/02/27 | 2,744 | 10,810 | <issue_start>username_0: I'm using [Swashbuckle](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) with ASP.net core. It is producing a nice website with a list of models at the bottom.
[](https://i.stack.imgur.com/CdOq1.png)
How can I add a... |
2018/02/27 | 135 | 488 | <issue_start>username_0: How can I make the keyboard appearing when a view is displayed?<issue_comment>username_1: Put below code in `ViewDidLoad`
```
textfieldname.becomeFirstResponder()
```
Upvotes: -1 <issue_comment>username_2: Try this code in viewDidAppear or viewWillAppear
```
textfieldname.becomeFirstResponde... |
2018/02/27 | 1,104 | 4,858 | <issue_start>username_0: I am new to recyclerView. I am creating an app which in which when i send my data to `firebase` database, a image view with check mark with my data in `recyclerView` comes in stating that my data has reached database.
I did this by creating a child key which sets value from processing to reac... |
2018/02/27 | 692 | 2,534 | <issue_start>username_0: I would like to make a content element in Neos for a teaser. The whole teaser box should be linked to an existing page inside of Neos or extern. How can I define the href link in the right panel in the backend of the Neos UI?
Also if I click on an element inside the teaser box for inline edit... |
2018/02/27 | 669 | 2,463 | <issue_start>username_0: I'm trying to accomplish this obviously simple thing, but somehow VBA keeps serving me weird errors.
I would like to have a global array named styles containing the following strings: Settings, Titles, Comment and Direct Copy.
in Code:
```
Public styles(4) As String
```
Directly assigning th... |
2018/02/27 | 594 | 2,613 | <issue_start>username_0: I'm new to using IntelliJ Idea and I have the following code:
```
private boolean verifyToken(TokenTypeEnum expectedTokenType, Token token) {
return token != null &&
token.getTokenType() == expectedTokenType &&
token.getExpiryDate().isAfter(Instant.now());... |
2018/02/27 | 294 | 1,220 | <issue_start>username_0: I'm trying out the sample notebooks in AWS Sagemaker, currently in the mxnet mnist example which demonstrates bringing your own code. The entry point parameter passed in when instantiating an estimator instance, only mentions the source file (mnist.py) and not a method name or any other point i... |
2018/02/27 | 782 | 2,660 | <issue_start>username_0: I can't make something as simple like that working.
It seems that the parser as a hard work to understand whats inside
```
{[1, 2, 3].map((file, idx) =>
this.r_test()
)}
```
Where r\_test is defined like:
```
r_test = (idx) => {
Titre
}
```
And if I... |
2018/02/27 | 2,749 | 8,779 | <issue_start>username_0: How to store multiple function node globally stored in one single node,
and invoke it from wherever required as an reusable function?
Is it like this? But how to store multiple function?<issue_comment>username_1: You can use a sub-flow to achieve this. Simply put a function node inside a sub-fl... |
2018/02/27 | 790 | 2,134 | <issue_start>username_0: I have a dataframe like the one below:
```
A B
chair bed
bed chair
spoon knife
plate cup
```
So, row 1 and 2 are duplicates for me and I want them removed. How can I do this in a simple way?
So after removing duplicates I will have:
```
A B
spoon knife ... |
2018/02/27 | 789 | 3,119 | <issue_start>username_0: I have the next piece of code:
```
private boolean isResponseHasData(Response> response){
return (response != null
&& response.body() != null
&& response.body().size() > 0
&& !response.body().isEmpty());
}
private boolean isResponseHasErrorBody(Response> response){
return response != n... |
2018/02/27 | 501 | 1,628 | <issue_start>username_0: The filter in the following query are identical.
```
select * from t_profile where
profile_id in (select profile_id from t_profile ...) or
active_profile_id in (select profile_id from t_profile ...);
```
Can we avoid repeating the filter?<issue_comment>username_1: You can use a [com... |
2018/02/27 | 267 | 776 | <issue_start>username_0: I need to take the cell value, which cell row position is variable by another cell value.
Ex:
B2 = 10
I need to take the value of M10
If it was B2=6 I would have needed the value of M6.
Thanks!<issue_comment>username_1: ```
Dim NewValue as string
NewValue = range("B2").value
Range("M & New... |
2018/02/27 | 545 | 1,909 | <issue_start>username_0: In Laravel 5.6, I have a settings table with a `user_id`.
I am trying to be able to link the `\App\User` class with the settings table.
I've got a `Settings` model with the following:
```
namespace App;
use Illuminate\Database\Eloquent\Model;
class settings extends Model
{
protected $tab... |
2018/02/27 | 328 | 1,486 | <issue_start>username_0: I have created a custom field called `contact_campaignID` in the OOTB contact entity my CRM solution. I have also created another custom entity called `email_history`. I am able to easily export the `email_history` entity into the solution. However how do I export the customization for my conta... |
2018/02/27 | 485 | 1,763 | <issue_start>username_0: I am using `SQL Server 2012`. I have a `VIEW` called `MyView` and I have 2 `T_SQL` queries which pulls data from that `VIEW`.
Query 1 is very simple and looks as below:
```
SELECT *
FROM MyView
WHERE StayDate >= '2018-03-01'
```
Above query executes in around 28 seconds and returns 151,000... |
2018/02/27 | 497 | 2,088 | <issue_start>username_0: What the files I need add to `.gitignore` in Flask application?
<https://www.gitignore.io/> - I'm usually here to look at examples.
But now I found no examples.
Why? Is it a feature of Flask?
Django has a clear structure in the application, but Flask not have, am I right?<issue_comm... |
2018/02/27 | 457 | 1,957 | <issue_start>username_0: Experts,
Just curious to know. is there any way of executing the python scripts within any sql server?
if so please provide me with some reference link<issue_comment>username_1: Initially, I'd say you will want to include the `/__pycache__/` folders in your `.gitignore` file.
But anything el... |
2018/02/27 | 1,005 | 3,083 | <issue_start>username_0: I am trying to parse the current timestamp with specific format but every try I keep getting a `java.time.format.DateTimeParseException`. My code:
```
ZonedDateTime.parse(
ZonedDateTime.now().toString(),
DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm:ss.SSS")
.withZone(ZoneI... |
2018/02/27 | 472 | 1,744 | <issue_start>username_0: **System Info:** Ubuntu 16.04, Qt Creator 4.2.0, valgrind 3.12.0
When using valgrind from the console to output detailed leak analysis I do it like that:
`valgrind --leak-check=yes ./my_application --an_argument`
Since I want to use Qt Creator's nice output formatting and filtering of the re... |
2018/02/27 | 759 | 2,446 | <issue_start>username_0: I have this code:
```
delIndex = []
for a in range(0, 10):
if a not in found_index and len(found_index) > 0:
delIndex.append(a)
for index in sorted(delIndex, reverse=True):
del faces[index]
```
This code delete items who are not in the array `found_index`
Is there a way simp... |
2018/02/27 | 851 | 2,928 | <issue_start>username_0: I am using Bootstrap accordion which is dynamically created based on select options from a select list option so for each option selected, I append an accordion panel to the existing accordion.
As well as being able to add panel, I want to be able to remove a panel. I did think about having a ... |
2018/02/27 | 3,404 | 13,410 | <issue_start>username_0: I am trying to add validations in Xamarin. For that I have used this post as a reference point: [Validation using Data Annotation](https://blogs.msdn.microsoft.com/premier_developer/2017/04/03/validate-input-in-xamarin-forms-using-inotifydataerrorinfo-custom-behaviors-effects-and-prism/). Follo... |
2018/02/27 | 2,319 | 8,701 | <issue_start>username_0: I'm having a string like below
**MyString**
```
[{"id":123,"name":"Abc"},{"id":124,"name":"EDF"}]
```
I need to convert/map this into my class(Test) using Set
**Test**
```
public class Test {
int id;
String name;
}
```
I've tried with the following method but didn't get succeed.
``... |
2018/02/27 | 842 | 3,324 | <issue_start>username_0: I'm new to Angular and I'm stuck there.
I know how to share data between parent and child components simply by injecting [parentData]="var" into the child selector <>.
But when using routing; I only have a router-outlet and can't bind [parentData] to it as it throws an error.
What is the best... |
2018/02/27 | 1,511 | 5,417 | <issue_start>username_0: I want to replace *last comma* with `"and"` in my C# sample and full stop at the end.
I am trying the below code:
```
result = (result.LastIndexOf(",") == result.Length - 2)
? result.Remove(result.LastIndexOf(","), 2)
: result;
result += ".";
```
Where my current output c... |
2018/02/27 | 1,907 | 5,948 | <issue_start>username_0: I have a list a list of thousands of gene probes that are significantly expressed when an organism is treated with Nickel, with the fold change. I also have a list of all the probes' expression of a mixture of Nickel and copper as such:
```
Significant Nickel All Nickel x Copper
Prob... |
2018/02/27 | 696 | 2,610 | <issue_start>username_0: I deployed my django project in GAE and I get the 502 Bad Gateway error on all pages except the main one. The previous version was working, but is not working since I added API calls for storage (storages.backends.gcloud.GoogleCloudStorage). I added environment variable GOOGLE\_APPLICATION\_CRE... |
2018/02/27 | 2,031 | 6,614 | <issue_start>username_0: I would like to transform belo `input.json` file. I would like to merge all the category key into one and create array of names, if it matches.
I am looking for a solution using only lodash or only JS/ES\*
There are similar questions already asked, but most of them involve two different json'... |
2018/02/27 | 1,702 | 5,729 | <issue_start>username_0: How do I build a SELECT that merges a normal table with data from a column and value table?
EXAMPLE:
I have a customer table like this.
```
ββββββββββββββ¦ββββββββ¦ββββββββββ
β Customerid β name β ZipCode β
β βββββββββββββ¬ββββββββ¬ββββββββββ£
β 1 β peter β 3030 β
β 2 β Hans... |
2018/02/27 | 685 | 2,428 | <issue_start>username_0: WARNING in configuration
The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment.
ERROR in multi ./src/index.js ./dist/bundle.js<issue_comment>username_1: I am not sure WHAT is the exact question here, but I also had this w... |
2018/02/27 | 863 | 2,934 | <issue_start>username_0: I have a data set X and labels y for training and scoring a sklearn.SVC model. The data is split into `X_train` and `X_test`. I run a `for-loop` to find the best possible value combination (i.e. best score) for two SVC parameters: `C` and `gamma`. I can print out the highest score, but how do I... |
2018/02/27 | 2,477 | 6,974 | <issue_start>username_0: I'm having issues getting the texture applied to a custom geometry, this is the result right now
[](https://i.stack.imgur.com/APqB4.png)
But I expect that each face has a different texture, and my texture is
[ we can filter products by a single attribute. But Is it impossible to search by multiple attributes through API ?
Example : "I want **red** shirts". Here attribute is `color` and attr... |
2018/02/27 | 813 | 2,566 | <issue_start>username_0: My query is that I have two tables, one called `sec_users` with the following fields:
```
pk_user, name, dias_disponibles
```
And another call `solicitud` with the following fields:
```
pk_solicitud, fk_empleado, n_diassolicitados
```
Where `fk_empleado` of the table `solicitud` is the fo... |
2018/02/27 | 483 | 1,414 | <issue_start>username_0: Is there any way to enable the option of settings "Speak Screen" on iPhone programmatically with Swift?
[](https://i.stack.imgur.com/BZ5Z7.png)<issue_comment>username_1: Use SUM aggregating function:
```
SELECT u.pk_user, sum... |
2018/02/27 | 863 | 3,414 | <issue_start>username_0: I am willing to make a test on a Spring Application where context startup times have become way too slow. One approach is to make the package scan more strict, but then I will have to move all the bean implementations inside this stricter package structure (for example, from com.foo.\* to com.f... |
2018/02/27 | 1,748 | 4,100 | <issue_start>username_0: I have a table called sample. It contains companies profits. I would like to display the highest profit of each company in Google bigquery.
```
company 2014 2015 2016 2017
companyA 3453564 5343333 2876345 3465234
companyB 5743231 3276438 1645738 2453657
companyC... |
2018/02/27 | 1,947 | 6,187 | <issue_start>username_0: I use kafkaEmbedded in integration test and I get FileNotFoundException :
```
java.io.FileNotFoundException: /tmp/kafka-7785736914220873149/replication-offset-checkpoint.tmp
at java.io.FileOutputStream.open0(Native Method) ~[na:1.8.0_141]
at java.io.FileOutputStream.open(FileOutputStream.java... |
2018/02/27 | 2,472 | 7,177 | <issue_start>username_0: I'm trying to draw a circle on canvas on mouse move, but without success. My code is as follows:
```js
var damages_canvas = document.getElementById('damages-area');
var ctx_damages = damages_canvas.getContext('2d');
var circle_rect = damages_canvas.getBoundingClientRect();
var circle_drag =... |
2018/02/27 | 1,521 | 4,842 | <issue_start>username_0: I'm currently being a tutor for a student in C. For his classes, the university has installed a server running [Mooshak](https://mooshak.dcc.fc.up.pt/) (software capable of receiving code and test it).
We have developed code, compiled it and tested it locally before sending to the server and e... |
2018/02/27 | 445 | 1,588 | <issue_start>username_0: i have an query that returns values that are between 2 dates. The problem is that it returns the result even if the value is equal. Here is my query
```
$stmt=$dbh->prepare("Select * FROM tbl_rezervari tr
where (:start BETWEEN tr.start AND tr.end or :end BETWEEN tr.start AND ... |
2018/02/27 | 2,578 | 8,478 | <issue_start>username_0: I have a requirement to display a custom Activity which contains a listview showing all the timeZones as per below format:
```
ZoneID (UTC <+/-> hh:mm)
```
These timezones should be sorted (similar to TimeZone settings shown in Windows) such that:
1. All UTC negative timezones appear firs... |
2018/02/27 | 642 | 2,212 | <issue_start>username_0: I'm new to node.js help me to solve this question..
In node.js it is showing like json2csv is not a function ..
But i installed all packages of json2csv ...
in node cmd "npm install json2csv" i did ..
```
```js
var json2csv = require('json2csv');
var fs = require('fs');
... |
2018/02/27 | 578 | 2,120 | <issue_start>username_0: I am a beginner in node and mongodb. I am trying to log a value from an object returned from a query using mongoose. I can get the value if I run it within a loop but I am trying to get the value without using loop.
Here is my code
```
That.find({$and: [{"userId" : {"$ne" : ""}},{"userId" : {... |
2018/02/27 | 667 | 2,627 | <issue_start>username_0: I'm facing issues to get sessionflows on my chatbase account.
I'm sending these data as stated by the doc :
```
{
api_key: "xxx",
type: "user",
platform: "xxx",
message: "xxx",
intent: "myIntent",
version: "1.0",... |
2018/02/27 | 553 | 2,015 | <issue_start>username_0: After selecting all the values from the table into a result array
```
$result = $stmt->fetchAll(PDO::FETCH_OBJ);
```
I want to created an array that contains groups for same session dates
**mysql table**
[](https://i.stack... |
2018/02/27 | 594 | 2,154 | <issue_start>username_0: I have variable which is a path where output file of operations will be saved. Foe example
```
set ResultPath "G:\\KSimonov\\PerGeos\\2. TCL Scripts\\Results\\"
```
After operation I need to export data from my modified file and put in folder which is given by variable ResultPath. I want to ... |
2018/02/27 | 582 | 2,223 | <issue_start>username_0: I am searching for a text in a table in web view, if text does not exist it should go to else and perform my operations accordingly, Instead of this, it throws an exception of NoSuchElementException. How to handle this. what Web drivers return a values when data is not found for comparison.
N... |
2018/02/27 | 479 | 1,823 | <issue_start>username_0: I have a stored procedure with input and output parameter.
```
CREATE PROC [dbo].[pr_MySP]
@date DATETIME,
@usd MONEY OUTPUT
WITH ENCRYPTION
AS
BEGIN
...
END
GO
```
This stored procedure call another stored procedures, so I can't create UDF to do it. And now I need to use this pr... |
2018/02/27 | 1,325 | 3,801 | <issue_start>username_0: I am trying to unmarshal data which is of type interface. So I need to convert the interface type to `[]byte` and pass it to unmarshal.
I tried
1. `err := json.Unmarshal([]byte(kpi), &a)` => failed
2. to convert the interface to `[]byte` using
`kpidata, res := kpi.([]byte)` => failed, `kpid... |
2018/02/27 | 873 | 3,247 | <issue_start>username_0: There's one thing I don't really understand with the module.exports and the require() with NodeJS. As I can't explain it correctly, I can't find the information I am looking for so I'm here to ask for a little help finding answers.
I can export functions like:
`example1.js`
```
module.export... |
2018/02/27 | 1,300 | 3,468 | <issue_start>username_0: I read from [range(len(list)) or enumerate(list)?](https://stackoverflow.com/questions/11990105/rangelenlist-or-enumeratelist) that using `range(len(s))` is not very good way to write Python. How one can write for loops in alternative way if we do not need to loop `len(s)` times but for example... |
2018/02/27 | 449 | 1,252 | <issue_start>username_0: I have table `InventTrans`
Columns:
```
itemid, datephysical, recordid
```
I need to find only itemid which have date datephysical older than 01-01-2016 and not exist any newer.
I'm trying this way- but its not work correctly.
```
select ITEMID
from INVENTTRANS itra
where itra.DATEPHYS... |
2018/02/27 | 688 | 1,827 | <issue_start>username_0: I have a table named PayGrade in which I have few records. I want to show distinct data but on the basis of specific columns
```
IF EXISTS(SELECT 1 FROM sys.tables WHERE object_id = OBJECT_ID('PayGrade'))
BEGIN;
DROP TABLE [PayGrade];
END;
GO
CREATE TABLE [PayGrade] (
[PayGradeID] IN... |
2018/02/27 | 286 | 1,027 | <issue_start>username_0: I have a materialized view like this:
```
CREATE MATERIALIZED VIEW AS SELECT , count()
FROM
WHERE last\_updated > NOW() - INTERVAL '1 day'
GROUP BY ORDER BY
```
It seems that the interval gets evaluated only on materialized view creation, but I'd like to have it re-evaluated on every `R... |
2018/02/27 | 398 | 1,497 | <issue_start>username_0: I am running the apple sample project of [ARKit 1.5 Image detection](https://developer.apple.com/documentation/arkit/recognizing_images_in_an_ar_experience)
but when I place my reference image inside AR Resource folder and run the app I get following error:
>
> **Make sure all reference image... |
2018/02/27 | 487 | 1,612 | <issue_start>username_0: Output image:

I tried comparing the original code with this but I'm unable to find any mistakes. I'm very confused why this is not working. When page is reloaded or reset button is clicked all fields has to be filled with details but its no... |
2018/02/27 | 339 | 1,080 | <issue_start>username_0: I'm using Bootstrap's multi-select and I'm trying to add button.
i want to add button as shown below
[image](https://i.stack.imgur.com/CoMo1.png)
```
1
2
3
ADD new
```<issue_comment>username_1: ng-app is missing in your HTML code and you are not injecting controller in app.
HTML Code
`... |
2018/02/27 | 1,664 | 6,760 | <issue_start>username_0: I have retrofit built up like this :
```
public static Retrofit getClient(MCrypt mCrypt) throws Exception {
if (retrofit == null) {
OkHttpClient okHttpClient;
if (BuildConfig.DEBUG) {
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
... |
2018/02/27 | 368 | 1,112 | <issue_start>username_0: I realize an instant messenger. I have a div that reads the user's message. When the message is long but spaced out of space it works well, nothing exceeds the div.
But if I write "ccccccccccccccccccccccccccccccccccccc" it goes beyond div.
Is there a property to cut a word too long? I try with... |