date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/14 | 1,036 | 3,996 | <issue_start>username_0: I am trying to create a `.bat` file to install SQL Server 2014 Express silently, and with my own options, but each time it runs, it quits in the middle.
Here is my command:
```
C:> SQLEXPR_x86_EN /ACTION=Install /QS /BROWSERSVCSTARTUPTYPE=Automatic
/ADDCURRENTUSERASSQLADMIN=True ... |
2018/03/14 | 1,172 | 3,825 | <issue_start>username_0: I am trying to make an executable which can read itself from memory using **ReadProcessMemory** api of windows.
Then, I will use this to calculate the checksum of executable.
This is my code :
```
#define PSAPI_VERSION 1
#include
#include
#include
#include
#include
#include
#define B... |
2018/03/14 | 897 | 2,600 | <issue_start>username_0: In ruby you can do something like this
```rb
a = ["a", "b", "c"]
a.cycle {|x| puts x } # print, a, b, c, a, b, c,.. forever.
a.cycle(2) {|x| puts x } # print, a, b, c, a, b, c.
```
and this is just beautiful.
The closest analog in Java 8 would be like this:
```java
Stream iterator = Stre... |
2018/03/14 | 189 | 576 | <issue_start>username_0: Hy guys, i need a layout divided by two buttons. HeightA: 50% - HeightB: 50%.
Like This:
[layout 2 button 50%](https://i.stack.imgur.com/1NoUm.png)
it's possible?? Even with devices of different sizes?
Thanks
**EDIT:**
I think I found the solution. I use ConstraintLayout.
I create two butto... |
2018/03/14 | 555 | 2,073 | <issue_start>username_0: Is there a way to do something like this:
```
ArrayList.removeAll(ArrayList)
```
With the `ArrayList` being the indices that I want deleted. I know that I could iterate through the indices list and use `remove(index)`, but I was wondering if there is a one-command way of doing so.
I know ho... |
2018/03/14 | 1,196 | 4,227 | <issue_start>username_0: Sign-in with Microsoft identity provider fails, works with others
I have an `Azure AD B2C` tenant with a `SingIn and SignUp` policy that I hope to use
for user management with an Angular2 SPA.
The policy is configured for three `identity providers`:
* Google
* Microsoft
* Email Signup
When... |
2018/03/14 | 1,466 | 5,283 | <issue_start>username_0: In Scala, I want to generate some aliases for basic types, and then implement conversions through a type class. This is both useful for me, and an opportunity to understand type classes. The code is the following:
```
type Index = Int
val Index = Int
type Integer = Int
val Integer = Int
type... |
2018/03/14 | 1,033 | 3,844 | <issue_start>username_0: I use Django 2.0.3 and I want try static , I create one in app folder and my code like this.
```
{% load static %}
```
And for pic is :
```

```
in setting the dir of static is :
```
STATIC_URL = '/static/'
```
but the pic comes like this :
[enter ... |
2018/03/14 | 1,873 | 7,146 | <issue_start>username_0: There is screenshot attached below:
So basically i want to take file as a input(i.e suffix\_list.txt) instead of specifying file location inside the function and when i clicked action button i need execute a output inside QtTextEdit
I tried something but i can't get it. Please help me out.... |
2018/03/14 | 1,300 | 2,983 | <issue_start>username_0: I have number of objects im receiving weekly, each one on these object has date, hours, and other fields. I wanna sort these object array total hours of each day.
example of the objects
```
var anArray = [{
'End':"22:00",
'Id':"Q45575",
'Name':"W-299849",
'Start':"20:00",
'date':"20... |
2018/03/14 | 1,435 | 3,972 | <issue_start>username_0: I observed that when a normal property that came from `data()` and a computed property that is derived from it are passed through an event, the former keeps its reactivity while the latter loses it.
I set up the following test case for it ([also as a JSFiddle](https://jsfiddle.net/christophfri... |
2018/03/14 | 1,044 | 3,469 | <issue_start>username_0: I have made up a function which returns some chars , all I want to do is to append all those returned chars into one string .
```
#include
#include
char func(int n);
int main()
{
int i;
char str[] = "";
size\_t p = strlen(str);
for (i =0 ; i < 5; i++){
str[p++] = func(i);
str[p] = '\... |
2018/03/14 | 991 | 3,755 | <issue_start>username_0: Dear StackOverFlow community,
Basing on a built-in user User model I've created my own model class called "ModelOfParticularPerson". The structure of it looks like this:
```
class ModelOfParticularPerson(models.Model):
user = models.OneToOneField(User)
nickname = models.CharField(ma... |
2018/03/14 | 390 | 1,292 | <issue_start>username_0: I have a problem with Symfony's CSRF protection.
When I log on to the domain toto.com, it works, but when I try to connect to the domain test.toto.com (same server, same code, it's just a redirection to toto.com), I have an error 'CSRF Invalid token'.
Do you know how I can solve this proble... |
2018/03/14 | 258 | 1,094 | <issue_start>username_0: I am using nodejs to write a file in a shared drive and it is working fine in my local machine, however after deploying the above code in Openshift the file is not creating and it is because OpenShift is not able to access the folder. Below is my code:
```
writeFile() {
const sharedFol... |
2018/03/14 | 935 | 3,070 | <issue_start>username_0: I am looking for a way to update/access a Python dictionary by addressing all keys that do NOT match the key given.
That is, instead of the usual `dict[key]`, I want to do something like `dict[!key]`. I found a workaround, but figured there must be a better way which I cannot figure out at th... |
2018/03/14 | 833 | 2,806 | <issue_start>username_0: I have a remote cron job that scrapes data using selenium every 30 minutes. Roughly 1 in 10 times the selenium script fails. When the script fails, I get an error output instead (various selenium error messages). Does this cause the cron job to stop? Shouldn't crontab try to run the script agai... |
2018/03/14 | 1,511 | 4,138 | <issue_start>username_0: I would like to scrap publications from google scholar profile with SimpleHtmlDom.
I have script for scraping the projects, but the problem is, that i am able to scrap only projects, that are shown.
When i am using url like this
>
> $html->load\_file("<http://scholar.google.se/citations?... |
2018/03/14 | 1,001 | 3,430 | <issue_start>username_0: Declared structures:
```
typedef struct{
char fname[25];
char mname[3];
char lname[25];
}Name;
typedef struct{
char month[25];
int day,year;
}Date;
typedef struct{
Name gname;
char addr[50];
char cnum[11];
}Guardian;
typedef struct{
Name sname;
Dat... |
2018/03/14 | 492 | 1,326 | <issue_start>username_0: There is a function which is returned the average for all elements from beginning to `i + 1`.
```
std::vector f(const std::vector &v)
{
std::vector ret(v.size());
for (size\_t i = 0; i < v.size(); ++i) {
ret[i] = std::accumulate(v.begin(), v.begin() + i + 1, 0.0) / (i + 1);
}
return re... |
2018/03/14 | 5,705 | 15,946 | <issue_start>username_0: I am trying to set arguments using assembly code that are used in a generic function. The arguments of this generic function - that is resident in a dll - are not known during compile time. During runtime the pointer to this function is determined using the GetProcAddress function. However its ... |
2018/03/14 | 428 | 1,681 | <issue_start>username_0: I'm in the process of moving a website from HostGator to Amazon EC2. Front end and back end are both moved. I added a Hosted Zone in Amazon Route 53 and updated my nameservers in HostGator. Unfortunately, the site won't load.
I ran a check with Zonemaster and received the following warnings:
... |
2018/03/14 | 592 | 1,867 | <issue_start>username_0: I am suppose to program a code to check whether the date is valid However my issue is over here is with the output. I am unable to display out if the user has input a valid/invalid date or month. T
```
String date;
int dd,mm,yyyy;
boolean leapyear,validdate;
if(mm >=1 || mm <=1... |
2018/03/14 | 5,428 | 16,491 | <issue_start>username_0: Im using SpringBoot with a mySql database.
I am trying to filter search through a table of teams. Initially this table was a thymeleaf table (see my related SO questions) but after exhausting all resources available on the internet, to no success I decided to implement the search differently.
... |
2018/03/14 | 620 | 2,188 | <issue_start>username_0: I have two datasets A and B:
Dataset A (called Sales) has the following data:
```
ID Person Sales
1 1 100
2 2 300
3 3 400
4 4 200
5 5 50
```
Dataset B (called Account\_Scenarios) has the following data (Note- there are a lot m... |
2018/03/14 | 527 | 1,646 | <issue_start>username_0: I'm a total beginner at javascript, just looking for some help on getting this basic problem to work. I want to take a Fahrenheit temperature number from a field, convert it to celsius, then output the result. nothing is happening on button click.
HTML:
```js
function myFunction() {
... |
2018/03/14 | 737 | 2,516 | <issue_start>username_0: I'd like to start a release leveraging the VSTS Rest API defined here:
<https://www.visualstudio.com/en-us/docs/integrate/api/rm/releases#create-a-release>
but I need to set some of the variable values when I create the release.
Looking at the ReleaseMetadata (<https://www.visualstudio.com/en... |
2018/03/14 | 606 | 1,999 | <issue_start>username_0: Newbie alert!
I'm trying to understand the variable scope for a promise inside a for loop.
Consider the following code:
```
function sleep(ms) {
return new Promise(resolve =>
setTimeout(resolve, ms)
);
}
for (var i =0; i<4; i++){
sleep(1000).then(() => console.log(i));
}
```
The... |
2018/03/14 | 1,098 | 3,800 | <issue_start>username_0: I have a TargetMarket class that has been seeded with all of the countries in the world like so
```
TargetMarket.create([
{name: 'Andorra'},
{name: 'United Arab Emirates'},
{name: 'Afghanistan'},
{name: 'Antigua and Barbuda'},
....
....
{name: 'South Africa'},
{name: 'Zambia'},
{name... |
2018/03/14 | 649 | 2,494 | <issue_start>username_0: I've created a branch **BranchA** from **develop**. On this branch, I've made some feature AND I've fixed an issue. Then I've created a PR for the original repo, because I'm just a contributor.
The PR is not yet accepted because we are still working on it.
Now, I'm working on a new feature, so... |
2018/03/14 | 903 | 3,403 | <issue_start>username_0: Let's say I am describing my own UIView, let's call it a HeaderView. I want the HeaderView to have the exact same properties, but only differ in label text. Here is how I currently have it:
```
private let headerView: UIView = {
let screenSize = UIScreen.main.bounds
let screenWidth = s... |
2018/03/14 | 6,487 | 16,342 | <issue_start>username_0: I have a local Git repository with three annotated tags: `v0.1.0`, `v0.1.1`, and `v0.1.2`.
When I view my project's history with `gitk` (*Repository → Visualize master's history*), I can see each tag assigned to the proper commit.
[.read()
#or
nltk.book.text6.r... |
2018/03/14 | 950 | 2,587 | <issue_start>username_0: How to check if a string has 3 or more decimal points using regex.
I only am wanting to use a regex pattern to solve this issue.
```
var string1 = "1.23432 12.123.1231"; // true
var string2 = "1.23432 12123.1231"; // false
```
What I thought would work but doesn't:
```
let regx2 = RegExp(/... |
2018/03/14 | 878 | 2,553 | <issue_start>username_0: I have a query here is there any way we can configure exchange details in private git. Well in Github we do have this option of configuring it but i am using private git... Is there any such way we can send emails to specific set of people after each commits...
unfortunately I am not using Jen... |
2018/03/14 | 590 | 2,090 | <issue_start>username_0: For example, I have the following code
```
Click
```
Guys, is it possible to set a default value "true" to the attribute "required"?
Something like this:
```
Click
```<issue_comment>username_1: This is not possible with pure HTML. Some templating languages may have this feature (or som... |
2018/03/14 | 657 | 2,578 | <issue_start>username_0: I have a module that is installed in `node_modules`, and want to import a file from it.
I also have a locally installed version of this module in a parent directory to the one where my project is.
For some reason, when I do `import { something } from 'my-module/myFile'`, it actually resolves ... |
2018/03/14 | 621 | 2,248 | <issue_start>username_0: What is the difference between `test1`:
```
(define test1
(lambda (x) (* x x)))
```
and `test2`
```
(define (test2 x)
(lambda (x) (* x x)))
```
Aren't both suppose to be the same. When I test `test1` I get an correct answer but `test2` returns `#` or `(lambda (a1) ...)`
Why is that?<... |
2018/03/14 | 658 | 1,728 | <issue_start>username_0: I am trying to write this program without using Counter.Write a Python program to combine values in python list of dictionaries. Go to the editor
Sample data:
```
[{'item': 'item1', 'amount': 400}, {'item': 'item2', 'amount': 300}, {'item': 'item1', 'amount': 750}]
**Expected Output: {'item1'... |
2018/03/14 | 174 | 515 | <issue_start>username_0: I'd like to add a new element to an array in a non-mutating way. In JS, I can do this:
```
var new_arr = arr.concat(3)
```
instead of this:
```
arr.push(3)
```
How can I do the same thing in Ruby? The `concat` method in Ruby is mutating.<issue_comment>username_1: As simple as this:
```
n... |
2018/03/14 | 186 | 616 | <issue_start>username_0: I want to hide span tag containing "Prasad" using only java script.
u can see there is div tag also having same id which i don't want to hide at all.
```
div
- Prasad
- Mphasis
function onLoad()
{
var x= document.getElementById("123").getElementsByClassName("alert");
x.style.display="n... |
2018/03/14 | 893 | 3,396 | <issue_start>username_0: I am trying to understand why setting a value does not automatically refresh the UI. If I call binding.setItem, the UI refreshes.
I know binding object contains the updated values, but the UI is not being refreshed after setting item.name and item.checked.
What am I doing wrong? Do I need to ... |
2018/03/14 | 423 | 1,733 | <issue_start>username_0: I have a script which begins with:
```
#Requires -Modules ActiveDirectory, Microsoft.Online.SharePoint.PowerShell
```
which is all fine and dandy except that Sharepoint PS module throws a verb warning:
>
> WARNING: The names of some imported commands from the module 'Microsoft.Online.Share... |
2018/03/14 | 964 | 3,450 | <issue_start>username_0: I am using `Flink v1.4.0`. I am using the `DataSet API` (though this, I don't think matters).
I am running some heavy duty transformations on a 12 core VM. I am utilising 2 cores for one `Flink job` in which I am storing some data into a `Flink Queryable State`and am running another `Flink` jo... |
2018/03/14 | 378 | 886 | <issue_start>username_0: I use curl parameters:
```
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
```
�PNG IHDRx�zB�d,IIDATx���Ϗ��}؋f����� ���>Y�\f�AӀ/��?�+(���w�����&�ml\_4\_,`<���o�... |
2018/03/14 | 788 | 2,674 | <issue_start>username_0: I use the following Code:
```
using (var package = new ExcelPackage()) {
var worksheet = package.Workbook.Worksheets.Add("Test");
var cell = worksheet.Cells[1, 1];
var r1 = cell.RichText.Add("TextLine1" + "\r\n");
r1.Bold = true;
var r2 = cell.RichText.Add("TextLin... |
2018/03/14 | 1,305 | 4,464 | <issue_start>username_0: I'm still quite new to VBA and I'm basically self-taught. I've developed a spreadsheet for work and I need a macro to allow customers to add information then the information copy to sheet 2 in descending order. This is the code I am using currently attempting to use but when I click on the “Sav... |
2018/03/14 | 1,096 | 2,777 | <issue_start>username_0: If a large data set containing data that resembles
```
df<- Energy Power StartTime Timehour
7.50 10 2017-10-18 09:47:10.073 0.75
```
1) I want to transfer the time hour data into a time
```
df<- Energy Power StartTime ... |
2018/03/14 | 1,275 | 3,513 | <issue_start>username_0: I am developing a custom function that will calculate the logarithmic average of a range. The answer for the post [logarithmic averaging question](https://stackoverflow.com/questions/23956551/logarithmic-averaging-preset-function-in-excel-using-ranges-as-input-values) is wrong but it is a start... |
2018/03/14 | 1,338 | 5,068 | <issue_start>username_0: In this I created a simple HTML form in which the email and password entered from HTML form are not saving in the MYSQL database! what changes do I made so that data can be save in MYSQL database.
**This is my HTML code :**
```
```
**This is php code :**
```
php
if( $_POST )
{
$con = my... |
2018/03/14 | 1,626 | 5,398 | <issue_start>username_0: I am trying to check if a folder is empty and do the following:
```
import os
downloadsFolder = '../../Downloads/'
if not os.listdir(downloadsFolder):
print "empty"
else:
print "not empty"
```
Unfortunately, I always get "not empty" no matter if I have any files in that folder or not... |
2018/03/14 | 311 | 1,185 | <issue_start>username_0: When declaring a class in C# without specifying if the class is a static or non-static class which will it default to?
EDIT: Here's an article I wrote based on this discussion.
<https://hackernoon.com/c-static-vs-instance-classes-and-methods-50fe8987b231><issue_comment>username_1: A class is ... |
2018/03/14 | 420 | 1,672 | <issue_start>username_0: I wrote my own function of rotating a group of objects. I want ot make a new one, with smooth rotating, so I need a timer. I have tried to call Timer a few times, but it doesnt work. Here's my code:
```cs
public class rotate_around : MonoBehaviour
{
public Transform sphere;
/... |
2018/03/14 | 416 | 1,435 | <issue_start>username_0: I'm wondering why setting the `font-size` CSS attribute on an HTML `input` automatically increases its width?
I understand why it increases the height, but I'd like an `input` to remain the same base width when changing the `font-size`.
The reason I ask, is because it is breaking a flex layou... |
2018/03/14 | 540 | 1,903 | <issue_start>username_0: Problem: I have a component that needs a boolean value optionally passed to it as part of a call from within the view app and from an external app. When I invoke the router directly I can pass the boolean with no issues but if I route by using the actual URL I get a parse warning. To prevent th... |
2018/03/14 | 2,085 | 10,326 | <issue_start>username_0: I'm trying to make a image editor tool to go with my image uploader system. I got most of it working, but I think the box with the image and the box for cropping moves kind of weird on resizing. Especially when trying to resize from left bottom corner and both top corners.
I don't really know... |
2018/03/14 | 1,605 | 7,746 | <issue_start>username_0: I am trying to make a bowling simulator with Javascript. I have created a function that takes a random number between 0 & 10. And at bowling you can throw 2 times per round. I managed to get 2 values back like 5 and 8 but the problem is that you cannot throw more than 10 pins at bowling. And I ... |
2018/03/14 | 1,336 | 7,104 | <issue_start>username_0: I am trying to push local change to my remote repository, but it is fails with 403 - Permission denied.
```
remote: Permission to rmanivannan/speedometer-jquery-plugin.git denied to mcttvni.
fatal: unable to access 'https://github.com/rmanivannan/
speedometer-jquery-plugin.git/': The requested... |
2018/03/14 | 487 | 1,547 | <issue_start>username_0: In a CDS View select statement, given that I have a column of type `DEC`, how do I convert that to type `INT`?
**Work done so far:** According to the [`CAST_EXPR` documentation](https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abencds_f1_cast_expression.htm), this is not possible wit... |
2018/03/14 | 975 | 3,653 | <issue_start>username_0: I have this situation:
There are a Java class
```
public class A {
public void overrideMe(B param){
//TODO: override me in Kotlin!
}
protected static class B {
}
}
```
and a Kotlin class, which inherits from it and has to override method "overrideMe"
```
class K:... |
2018/03/14 | 1,166 | 4,008 | <issue_start>username_0: I am using `Flink v.1.4.0`.
I am trying to run a job using the `DataSet API` through `IntelliJ`. Note that If I run the same job through the `Flink UI` the job runs fine. In order to run the job, I need to first specify through environment variables the amount of data that will be processed. W... |
2018/03/14 | 508 | 1,728 | <issue_start>username_0: I'm working with this kind of Json in Scala :
```
{
"ClientBase": [
{
"string#name": "robert",
"int#age": 46,
"string#country": "USA"
},
{
"string#name": "tom",
"int#age": 45,
"string#country": "UK"
... |
2018/03/14 | 1,448 | 5,479 | <issue_start>username_0: Data bindings don't get updated if their values are changed after an `await` statement.
```
handle() {
this.message = 'Works'
}
async handle() {
this.message = 'Works'
}
async handle() {
await new Promise((resolve, reject) => {
resolve()
})
this.message = ... |
2018/03/14 | 1,347 | 5,576 | <issue_start>username_0: I am doing the following which perfectly works
```
//else proceed with the checks
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(
Request.Method.GET,
checkauthurl,
null,
new Response.Listener() {
@Override
public void onRes... |
2018/03/14 | 1,162 | 4,617 | <issue_start>username_0: I am trying to write a test for a new function that I want to add. However, when I run the test the project won't build for a completely unrelated reason. A normal build works fine. As you can see below, the errors are stating that the struct WeatherDataOutput is not declared. It is declared. T... |
2018/03/14 | 1,750 | 6,565 | <issue_start>username_0: I am using Docuisign for my client to use it as digital signature. I am using php rest API and i have 5 template roles and everything is working perfect.
So i want to get a request on my server from Docusign when the envelope status is completed. So that i can update the status on my side as w... |
2018/03/14 | 728 | 2,286 | <issue_start>username_0: I'm trying to create a program that allows the user to enter 10 values, and then displays the highest value in the array. Everytime I run the program, it gives me an error saying the stack was corrupted. Help please? this is my code:
```
#include
using namespace std;
int main()
{
const int S... |
2018/03/14 | 366 | 1,220 | <issue_start>username_0: I am currently creating a website that has media queries. I already have a normal navigation however when the webpage size reduces to a mobile size, I would like for the navigation to switch to another navigation bar which I have created, which includes icons which makes it easier for mobile us... |
2018/03/14 | 1,756 | 5,570 | <issue_start>username_0: I have been following a chat bot tutorial and am stuck. I have included the exact step that I am on as a link at the bottom of this post in case you are curious what my code looks like (I was frustrated so I copied his code word for word).
During the execution of my code, it processes just ove... |
2018/03/14 | 767 | 2,591 | <issue_start>username_0: I am not very sure how to explain this question, but lets look at the code below:
```
import numpy as np
def glb_mod(s_np,s):
s_np.shape = (2,-1)
s=2
return s
if __name__=='__main__':
a=1
a_np = np.arange(10)
print ('a, a_np initialized as')
print(a , a_np)
gl... |
2018/03/14 | 631 | 2,373 | <issue_start>username_0: I've trained a Tensorflow model on Google Colab, and saved that model in ".ckpt" format.
I want to download the model so I tried to do this:
```
from google.colab import files
files.download('/content/model.ckpt.index')
files.download('/content/model.ckpt.meta')
files.download('/content/model.... |
2018/03/14 | 804 | 3,111 | <issue_start>username_0: I want to create a **InlineKeyboardButton** for Telegram in python like below function but I want to do it dynamically. This function groups two buttons in one line and add one button to second line. I want to make two button each line.
```
def options(bot, update):
keyboard = [[InlineKeyb... |
2018/03/14 | 717 | 2,099 | <issue_start>username_0: a metaclass that works with number value string value and null value
like this code ; please help me
```
String.metaClass.formatx = { delegate.toString().replaceAll(/null/, '0.0').toFloat() }
m= "4".formatx()
m2=4.formatx()
m3=null.formatx()
```<issue_comment>username_1: If I were you, I'... |
2018/03/14 | 504 | 1,732 | <issue_start>username_0: I am trying to order by a column that I do not want to use in my `Group By` clause.
So the idea here is to be able to order by this `FileId`.
```
SELECT FileGuid, FileName, ROW_NUMBER() OVER(Order by FileId) AS rownum
FROM dbo.FileImport
GROUP BY FileGuid, FileName
ORDER BY rownum
```
Right... |
2018/03/14 | 650 | 2,319 | <issue_start>username_0: I am currently using kops to create AWS EC2 clusters. But it does not seem to have an option to specify 'spot' instances.
Does anybody know how to create instances of type 'spot' with kops or with kubernetes?<issue_comment>username_1: It appears that [gardener/machine-controller-manager](http... |
2018/03/14 | 796 | 2,770 | <issue_start>username_0: I have a list in a table with a `StartDate (not null)` and an `EndDate (null)` (both of type `date` without time).
An active entry is one with `StartDate <= querydate` and `EndDate with null or > querydate`.
So my query would basically be like
```
SELECT *
FROM MyDataTable
WHERE StartDate ... |
2018/03/14 | 1,560 | 4,524 | <issue_start>username_0: I have delphi application, I need to rewrite it for OS X.
This app writes/reads data to/from HID-device.
I have issues when I'm trying to write string from mac.
Here is the line that I'm writing(from debugger on windows): 'Новый комплекс 1'
and this works good. Meanwhile if copy this from deb... |
2018/03/14 | 375 | 1,320 | <issue_start>username_0: I want to use JQuery to get a table row and its contents as HTML.
```
var updateButton = $( this );
var currentRow = updateButton.closest( 'tr' );
window.console.log( currentRow );
```
but the resulting log doesn't seem to contain the table values input by the user.
I've found answers about... |
2018/03/14 | 972 | 4,179 | <issue_start>username_0: I am trying to track url changes using navigationStart event of angular. I am writing a feature module and this url tracking needs to be done in a service and not a component. I don't even have a component. In this url tracking handler, I also want to find out the hash fragment of url. I tried ... |
2018/03/14 | 482 | 2,069 | <issue_start>username_0: I've been searching and searching for what the purpose is for a workspace. I've asked this question in stack chats but no one seems to know.
I know workspaces are local copies of solutions and you can switch between them when testing different things on the same projects but with different bra... |
2018/03/14 | 1,008 | 3,535 | <issue_start>username_0: I need to sort an array. I write code, i use insertion sort, but for big `n` this code work so slow. How optimize my code. May be there is another algorithm.
```
public void insertionSort(ArrayList arrayList) {
int n = arrayList.size();
int in, out;
for(out = 1; out < n; out++)
{
int te... |
2018/03/14 | 673 | 2,307 | <issue_start>username_0: I have a text input which I'm using to pass a value through JS, to get filtered data of names from a JSON file using [OData](http://www.odata.org/documentation/) query parameters.
If someone has an apostrophe in their name, I get a bad request when I pass the URL.
I understand that apostroph... |
2018/03/14 | 357 | 1,009 | <issue_start>username_0: **T(n) = 4T (36n/2) + cn2**
Analyze the recurrence shown above, then use the substitution method to prove the following guess : **T(n) = Ɵ(n2)**
is my answer correct?
```
T(n) <= d(36n/2) + cn²
T(n) <= 4d(36n/2)² + cn²
T(n) = 4d(36n²/4)
T(n) = d36n² + cn²
T(n) = dn... |
2018/03/14 | 1,365 | 5,083 | <issue_start>username_0: I'm trying to get my Angular Table to refresh after updating the data used in the table.
The docs say "you can trigger an update to the table's rendered rows by calling its renderRows() method." but it is not like a normal child component where I can use something "@ViewChild(MatSort) sort: M... |
2018/03/14 | 1,523 | 7,018 | <issue_start>username_0: Need advise on the following:
In my company I am developing .NET class libraries to be used by external stakeholders, and I am sharing them on a private NuGet feed to which the stakeholders have access.
The libraries are dependent on one core library as shown below. Currently I'm maintaining ... |
2018/03/14 | 1,950 | 6,450 | <issue_start>username_0: I have a set of columns in my input data on which I am pivoting based on multiple columns.
I am facing issues with the column headers after the pivoting is done.
**Input data**
[](https://i.stack.imgur.com/NA9cr.jpg)
**Outp... |
2018/03/14 | 474 | 1,739 | <issue_start>username_0: I know this is probably a really beginner's question and it most definitly stems from my inexperience in PHP. So don't hate me SO.
I've been learning Laravel for the last weeks. In their docs for mass assignment they talk about the `create` method. As per their example -
`$flight = App\Flight... |
2018/03/14 | 447 | 1,309 | <issue_start>username_0: I'm creating a packer image using these two links:
<https://www.packer.io/docs/builders/azure.html>
<https://learn.microsoft.com/en-us/azure/virtual-machines/linux/build-image-with-packer>
I want to use a 'private image' rather than a marketplace image to build from:
```
"managed_image_resour... |
2018/03/14 | 448 | 1,438 | <issue_start>username_0: I am wondering how to add a outside of and in a Blogger template.<issue_comment>username_1: >
> Includes are most useful if you have a section of code that you want
> to re-use in several different places, or only include in certain
> circumstances.
>
>
> To do this, write the content i... |
2018/03/14 | 537 | 2,270 | <issue_start>username_0: I am reviewing how the ngrx is implemented in the example app on GH. Can someone please explain why there are two modules in one file at the link below? What reasoning the developer had to have two modules in place of one?
[Github link - auth module in ngrx library example app](https://github.... |
2018/03/14 | 1,083 | 3,849 | <issue_start>username_0: I have the following context:
4 models:
* Project
* Investor
* Subscription
* ExternalSubscription
A `project` shall have many `investors` through either `subscriptions` or `external_subscriptions`.
I currently have a method that does something like this: `Investor.where(id: (subscription_i... |
2018/03/14 | 1,204 | 4,977 | <issue_start>username_0: I am calling getReverseGeocodingData() from callback function of getCurrentPosition. getting the error below
function is not defined?
```
getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position){
console.log(p... |
2018/03/14 | 867 | 2,918 | <issue_start>username_0: I am trying to apply the Jaccard coefficient as customised loss function in a Keras LSTM, using Tensorflow as backend.
I know the I have to call the following:
```python
model.compile(optimizer='rmsprop', loss=[jaccard_similarity])
```
where jaccard\_similarity function should be the keras.... |
2018/03/14 | 786 | 2,326 | <issue_start>username_0: I'm not sure how to do this so any help would be appreciated. I have two objects I want to combine into one object. I've used the spread operator to do this:
```
newObj = {...obj1, ...obj2};
```
this, for example gives me this:
```
{
[
obj1A{
"item": "stuff",
"item": "stuff... |
2018/03/14 | 2,448 | 4,873 | <issue_start>username_0: I want to merge two pandas dataframe.
```
df1 =
A B
2 11
2 13
2 15
2 19
2 25
2 35
2 41
2 47
2 46
2 51
3 9
3 15
3 17
3 23
3 25
3 29
5 4
5 23
5 28
```
with another dataframe.
```
df2 =
A B C
2 11 abc
2 13 cdd
2 35 cdd
2 41 cdd... |
2018/03/14 | 409 | 1,367 | <issue_start>username_0: How can I return nothing back to the twilio process after processing the sms message?
The examples in the api use the MessagingResponse and when that is used, it comes in as a Direction='reply' in the message log on the console. This incurs an additional charge (inbound + reply). Simply put, ... |
2018/03/14 | 1,371 | 4,611 | <issue_start>username_0: I am trying to create a network load balancer with Terraform and it's important it is associated with elastic IPs that are protected from being destroyed.
I have code something like the following:
```
resource "aws_lb" "balancer" {
name = "${var.name}-nlb"
internal = "${var.int... |
2018/03/14 | 1,245 | 3,305 | <issue_start>username_0: Given two numbers n and k, find a string s of lowercase alphabets such that sum of values of all the elements in the string is equal to k.
If there exist many such strings, find the one which is lexicographically the smallest.
The value of ith lowercase alphabet is i, for example, value of a ... |