date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/12 | 548 | 2,148 | <issue_start>username_0: I'm trying to update an existing Azure app but unable to save and the website throws an error 'Failed to update manifest: ObjectConflict'
[](https://i.stack.imgur.com/rMROx.png)
I'm updating the field called 'identifierUris'. ... |
2018/03/12 | 674 | 2,668 | <issue_start>username_0: I have a very strange behavior when I execute e query from Java code with Hibernate and when I call the same query directly from SQL Developer.
In the first case the entry could not be found but in the second case it is found.
1st case (Java code query):
```
getEntityManager().createNativeQu... |
2018/03/12 | 673 | 2,713 | <issue_start>username_0: I am using a client management software called UCRM. The API I am using is meant to patch/update but it seems to make new entries when it comes to the contacts array.
```
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://url.com" . $clientID);
curl_s... |
2018/03/12 | 818 | 2,790 | <issue_start>username_0: I'm trying to find a cell with a given key. The data in the sheet is similar to...
```
SECTION1 KEY1
KEY2
KEY3
SECTION2 KEY4
```
Although the keys are currently unique, I suspect that may not be the case in the future. So I do two lookups, one on the section in ... |
2018/03/12 | 712 | 1,721 | <issue_start>username_0: I want to compute a pearson correlation between two vectors (each four elements) with a slinding window (window=1) and keep the best result:
```
list1 <- read.table(text= "20
34
89
35")
list2 <- read.table(text=... |
2018/03/12 | 2,495 | 6,217 | <issue_start>username_0: The content of my site overflows on mobile displays. I have used Chrome Dev tools to see that. It uses the meta tag viewport set to `initial-scale=1.0` and `width=device-width`, but no matter what I do it will overflow. What is the cause of that and how can I fix it?
```css
body {
height: 1... |
2018/03/12 | 1,083 | 4,003 | <issue_start>username_0: I was looking over a bit of code rooted in `urwid`:
```
import urwid
from functools import partial
from random import randint
class State(object):
def __init__(self, main_widget):
self.main_widget = main_widget
def handle_keystroke(app_state, key):
if key in ('q', 'Q'):
... |
2018/03/12 | 451 | 1,313 | <issue_start>username_0: When the following code is executed in chrome console
```
let a, b, c;
b = 2;
a = b+1 = c = 2+3;
```
It says an error 'Invalid left-hand side assignment' for the last statement.
But when we execute the below-given code it accepts it and does not show any error.
```
let a, b, c;
a = b = c =... |
2018/03/12 | 390 | 1,081 | <issue_start>username_0: I'm trying to send the value true or false to my variable test in the PLC, using the node S7, but it doesn't work when I put the adress : DB3,X42.0 or even DB3,BOOL42.0.
<issue_comment>username_1: for the first code you would need to do
```
le... |
2018/03/12 | 2,195 | 5,081 | <issue_start>username_0: `?5 5⍴CHARS` where `CHARS` is a variable containing 0-z.
The roll operator won't accept `CHARS` since it contains elements that are not non-negative integers, namely the letters a-z.<issue_comment>username_1: If I understood your question correctly, you want a 5×5 matrix of 0-z characters, so ... |
2018/03/12 | 1,641 | 5,262 | <issue_start>username_0: I am having trouble calling a method inside of a constructor function I have made. Here is the function and my attempt to call it...
```js
var Cohort = function(program, campus, number, students){
this.program = program,
this.campus = campus,
this.number = number,
this.stud... |
2018/03/12 | 761 | 3,130 | <issue_start>username_0: I have the below code which throws the error given below. when the 'String[] args' is replaced with 'java.lang.String[] args' it doesn't throw error and runs method s1.method1().
Problem: why is the local String given preference over java.lang.String ?
according delegation model the Bootstrap ... |
2018/03/12 | 940 | 3,472 | <issue_start>username_0: Spring-Boot **2.0.0** seems to have modified the way **Hibernate** is auto configured.
Let's suppose two simple and independent JPA entities:
```
@Entity
class Car {
@Id
@GeneratedValue
private long id;
//....
}
@Entity
class Airplane {
@Id
@GeneratedValue
private long... |
2018/03/12 | 482 | 1,530 | <issue_start>username_0: I dont understand exactly how the escaping with regex word.
I try to detect a "+". I know it is also a special sign of regex to indicate that there follows one ore more signs.
From my understanding these special signs need to be escaped with "\". For + this seems to work with "." If i however... |
2018/03/12 | 3,006 | 12,027 | <issue_start>username_0: Sometimes code would like to know if a particular function (or children) are running or not. For instance, node.js has [domains](https://nodejs.org/api/domain.html) which works for async stuff as well (not sure if this includes async functions).
Some simple code to explain what I need would by... |
2018/03/12 | 301 | 1,226 | <issue_start>username_0: In Microstrategy 10.9 I need to insert pictures as header and footer of a document. I can reach pictures with browser (stored in TomCat and IntelligenceServer folders), but cann't from Developer. I get red x. Even on preview I get - Image not Found
[
but I'm working in Pyspark rather than Scala and I want to pass in my list of columns as a list. I want to do some... |
2018/03/12 | 1,462 | 5,281 | <issue_start>username_0: So it's been quite a bit of time since I played with relationships and I want to make sure I've done it right.
In my model for Client I have:
```
class Client < ApplicationRecord
has_many :projects, dependent: :destroy
end
```
In my model for Projects I have:
```
class Project < Applic... |
2018/03/12 | 1,184 | 2,965 | <issue_start>username_0: I want to group this data by ISO week and sum up the `registrations`. How can I do this with LoDash? My latest solution and sample data looks like this:
```
const registrationJson = [
{ date: 2018-02-19T00:00:00.000Z, registrations: '7' },
{ date: 2018-02-20T00:00:00.000Z, registrations: ... |
2018/03/12 | 457 | 1,636 | <issue_start>username_0: When clicking on an anchor tag with a routerLink the router successfully navigates to the route but then refreshes the page. This happens on both Chrome and Edge.
The anchor:
```
some text
```
routes.module.ts:
```
const appRoutes: Routes = [
{ path: "home", component: HomeComponent },
... |
2018/03/12 | 557 | 1,792 | <issue_start>username_0: Dynamic variable naming from dataframe columns
I have a two question test from a pool of several hundred questions. There are two question columns, and two response columns. I need to create new columns named by the question values and assign responses from the corresponding response values
A... |
2018/03/12 | 716 | 2,706 | <issue_start>username_0: I have the following struct:
```
type Record struct {
Id string `json:"id"`
ApiKey string `json:"apiKey"`
Body []string `json:"body"`
Type string `json:"type"`
}
```
Which is a Blueprint of a dynamoDB table. And I need somehow, delete the ApiKey, after using to check if... |
2018/03/12 | 904 | 3,372 | <issue_start>username_0: So I'm trying to find the latest date from a list of dates, but I keep getting a NumberFormatException. Is there any way of resolving this?
```
import java.util.*;
public class Date
{
private String date;
private int day;
private int month;
private int year;
public Date(S... |
2018/03/12 | 1,375 | 3,657 | <issue_start>username_0: I currently have a dict like this (assume many countries, states, and cities):
```
'USA': {
'Texas': {
'Austin': {
'2017-01-01': 169,
'2017-02-01': 231
},
'Houston': {
'2017-01-01': 265,
'2017-02-01': 310
}
... |
2018/03/12 | 1,543 | 5,104 | <issue_start>username_0: I am creating and manipulating a list in Python, I am having trouble categorizing my lists via filter function...
I have 3 lists, that I append into one list, I frequently print (the\_list) along the way, here is my code:
```
list1 = ['Georgia', 10.5, 'Peach'];
list2 = ['Florida', 21.3, 'Suns... |
2018/03/12 | 1,191 | 4,285 | <issue_start>username_0: I am the last of a large development team, tasked with handing over the large existing system to a new team. As part of the migration, ID columns are being added to every table in the database (even if the table already has one). The issue is that within the many hundreds of stored procedures, ... |
2018/03/12 | 879 | 2,836 | <issue_start>username_0: I am trying to build an android project from android studio version 3.0.1. When I try to compile my project I stuck into this error
>
> Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declare... |
2018/03/12 | 991 | 3,417 | <issue_start>username_0: ```
FORM TO FILL IN |
Title |
select...
Mr
Mrs
Miss
Ms
Master
|
| First Name | |
| Last Name | |
| Health Authority Number | |
| Email | |
| Telephone Number | |
| |
```
this is my code to create the code for my contact form to be filled
there are a selection o... |
2018/03/12 | 591 | 1,690 | <issue_start>username_0: I have a dataframe which contains
"HYD\_SOA\_UNBLOCK~SOA\_BLOCK-UK|SOA\_BLOCK-DE||SOA\_BLOCK-FR||SOA\_BLOCK-IT||SOA\_BLOCK-ES|"
I want the result to be -
"HYD\_SOA\_UNBLOCK~SOA\_BLOCK-UK|SOA\_BLOCK-DE|SOA\_BLOCK-FR|SOA\_BLOCK-IT|SOA\_BLOCK-ES|"
I tried:
```
leadtemp$collate = gsub("||","... |
2018/03/12 | 1,940 | 8,021 | <issue_start>username_0: With *[Spring Boot](https://projects.spring.io/spring-boot/) 1.5.6.RELEASE* I was able to send HTTP Status code `401` instead of `403` as described in [How let spring security response unauthorized(http 401 code) if requesting uri without authentication](https://stackoverflow.com/questions/3380... |
2018/03/12 | 523 | 2,012 | <issue_start>username_0: I have registered a phone number within twilio to use as "my" phone number.
I set up a simple twiml bin do handle call forwarding to whatever phone SIM/handset I am using right now. So people call my (twilio) number and it forwards to my phone.
However, if I make an outbound call from my phon... |
2018/03/12 | 394 | 1,424 | <issue_start>username_0: Is it possible to use `gcloud container cluster create` to create a node pool for GKE using **custom** machine types (<https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type>)?
Instead of n1-standard-1/etc, I would like to create an instance with 4 vCPU and ... |
2018/03/12 | 651 | 2,693 | <issue_start>username_0: I've trained a GRU with Keras. Getting the error when I ran
`nxt = model.predict([features,embedding_matrix[enc_map[cur]]])`
`ValueError: Error when checking : expected input_2 to have shape (512,) but got array with shape (1,)`
But
features.shape
(512,)`
And
`embedding_matrix[enc_map[cur... |
2018/03/12 | 381 | 1,365 | <issue_start>username_0: Good day! I am new to Foundation 6 and I have a button that toggles into view my off-canvas.
```
```
And what I want to happen is that when someone clicks on it, and the off-canvas goes into view, the data-open turns into data-close, so it can hide the off-canvas when it is clicked again.
S... |
2018/03/12 | 473 | 1,805 | <issue_start>username_0: I can't seem to figure out how to calculate this value
While scrolling down a page, I would like to make a function that return the percertage of 'scrolled through'.
So my 0 would be when the element is on the cusp of being shown (it's at the bottom of the window, 0 pixels shown) and 100 bein... |
2018/03/12 | 1,740 | 5,887 | <issue_start>username_0: I am creating a website in which the minimum height of the page is `200vh`. I have a full page image, followed by text content below that. I want to prevent the text from overflowing out of the container. Here is an example:
```css
* {
margin: 0;
padding: 0;
}
.container {
position... |
2018/03/12 | 345 | 1,175 | <issue_start>username_0: I am starting up with a angular project. While running ng-serve `port 4200 already in use` error comes up. I have tried all the trivial solutions. `netstat` does not show up any process running on `127.0.0.1:4200`. Also tried with `--port` command to change the default port, unfortunately dint ... |
2018/03/12 | 816 | 2,498 | <issue_start>username_0: Im trying to adjust this table so that it will take up the entire window, but no combination of the top, bottom left and right sliders will allow me to do it, all they do is shrink the grid while translating it.
Is there a way to stretch this vertically?
Here is my code:
```
import numpy as ... |
2018/03/12 | 3,558 | 9,973 | <issue_start>username_0: I started playing with [gocv](https://github.com/hybridgroup/gocv). I'm trying to figure out a simple thing: how to cut out an object from an image which has a background of certain colour. In this case the object is pizza and background colour is blue.
[.clone();` and then modifiying the inner html `$panelTemplate.find('.panel-body').html('hey there');` and then setting it to prepend on to ... |
2018/03/12 | 619 | 2,253 | <issue_start>username_0: I just started learning React-Native. I am facing issue while trying to render image on to the screen, it is not appearing. I have tried so many solutions from Google and stack overflow but could not able to solve the issue.
Can someone please help me. Below are the details.
I am using RN 0.... |
2018/03/12 | 2,613 | 9,062 | <issue_start>username_0: How can user adjust html table column widths during their html session ?
The table *td* elements contain mostly text input fields that are sensibly sized via css classes and the table will default to accomodate them. This will probably result in some horizontal scrolling, but that is okay.
Bu... |
2018/03/12 | 1,400 | 4,843 | <issue_start>username_0: I'm making a simulation game where there are doodlebugs and ants and as the simulation goes on the doodlebugs try to eat the ants. The issue I am running into is initializing the 2d array I've created. I need 100 ants and 5 doodlebugs to randomly be placed on the grid. I've randomized the grid ... |
2018/03/12 | 1,170 | 4,257 | <issue_start>username_0: I would like to create a basic app for iOS that helps users to cleanup the apps they have installed on their device. To do this, I would need to access basic information, such as which apps are installed and the last time they were used, use time in hours, etc. I know Apple is pretty strict on ... |
2018/03/12 | 1,019 | 3,216 | <issue_start>username_0: I have 4 boolean values.
```
next_is_left
next_is_right
next_is_above
next_is_below
```
First I want to check if they are **all** `true`. Then I want to check if **one** of them is `false`. Then if **two** of them are `false`, then **three** or if **all** are `false`.
I wonder how I can fit... |
2018/03/12 | 1,289 | 4,231 | <issue_start>username_0: I am trying to work on a project for school from my personal mac laptop, the school computers I usually connect through using putty while I'm on their network. However, I am not on their network right now and need to work on this project. They provide the makefile and .h files so those are corr... |
2018/03/12 | 1,037 | 3,281 | <issue_start>username_0: I have deployed the application in the virtual directory.
Now when I access the site as below:
www.abc.com/blog/admin/
It redirects to
`www.abc.com/blog/admin/#/`
The site is working fine since I have below line in the app.js
`.when("/", { templateUrl: "app/dashboard/dashboardView.html" })... |
2018/03/12 | 554 | 1,983 | <issue_start>username_0: From git documentation, `git show --name-only` Show only names of changed files. But with command `git show --name-only`, it outputs other info like commit id and and author and commit messages, etc.
And I also know `--pretty=format:` could format the output, but why given empty , the output ... |
2018/03/12 | 535 | 1,640 | <issue_start>username_0: I've got the following query which returns 13 rows in the result set. If I uncomment `l.line_no` then the query returns 19 rows in the result set. I've ran this multiple times over the past hour and have confirmed that the dataset is not changing.
Is there some key piece of SQL logic that I'm ... |
2018/03/12 | 1,053 | 3,490 | <issue_start>username_0: My workflow : KAFKA -> Dataflow streaming -> BigQuery
Given that having low-latency isn't important in my case, I use *FILE\_LOADS* to reduce the costs. I'm using *BigQueryIO.Write* with a *DynamicDestination* (one new table every hour, with the current hour as a suffix).
This BigQueryIO.Writ... |
2018/03/12 | 721 | 2,768 | <issue_start>username_0: I have a pdf that I downloaded from this link:
<https://invoicetemplates.com/wp-content/uploads/freelance-writer-invoice-template.pdf>
and I use pdf tk for uncompress the pdf
pdftk file.pdf output uncompressed.pdf uncompress
When I try to replace using `sed` it works.
However when I use `J... |
2018/03/12 | 1,482 | 5,929 | <issue_start>username_0: I am trying to implement Click functionality on an item inside a `RecyclerView` using airbnb.epoxy.
The problem is that i need context in order to navigate to another activity upon click.
**What i have done:**
Following Epoxy's sample app I implemented an interface inside the EpoxyController t... |
2018/03/12 | 816 | 3,069 | <issue_start>username_0: I would like to find out the amount of bytes used by a process from within a C++ program by inspecting the operating system's memory information. The reason I would like to do this is to find a possible overhead in memory allocation when allocating memory (due to memory control blocks/nodes in ... |
2018/03/12 | 403 | 1,272 | <issue_start>username_0: I am working through a Flask tutorial but I can't make the Bootstrap navbar work. I think I have all my code as the tutorial specified and my folder tree is as it should be.
My app.py:
```
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return... |
2018/03/12 | 937 | 3,545 | <issue_start>username_0: Does anyone know of a way to underline a portion of text in a Google Sheets cell? I am really looking for a function like my Title to this query.
I have played with .getDisplayValue, .getValue for the Range class and have tried to see if the Doc Text Class might be reachable from Google sheets... |
2018/03/12 | 841 | 2,610 | <issue_start>username_0: I want that a table column uses the minimum of place but after a certain width, it should wrap.
Here is what I have:
```
| | |
| --- | --- |
| Content with a fix with | This content should only use the necessary place but wrap after 200px |
#table{
width: 100%;
}
.min {
width: 1%;
w... |
2018/03/12 | 529 | 1,747 | <issue_start>username_0: I have a Bootstrap Tab and a Table within the Tab and within the Table, a row with input fields. The problem I am experiencing is when I have multiple rows within the table only the first row values get pulled. I am using 'closet' and 'find' but I'm not getting the desired values. What am I doi... |
2018/03/12 | 622 | 1,988 | <issue_start>username_0: I have been facing with an issue for few days;
The problem is; I can't match with values inside the template from another template recursively.
Lets assume that we have an example:
...
```
Alice in Wonderland
LEWIS CARROLL
1234
...
```
This code block has many other siblings and pare... |
2018/03/12 | 509 | 1,533 | <issue_start>username_0: I want to achieve this layout as in screenshot: ImageView + 2 lines of Textview -> left aligned, and in the same row I want to add another textView, but at the right end of the line.
[](https://i.stack.imgur.com/g9X3z.jpg)
Wha... |
2018/03/12 | 362 | 1,132 | <issue_start>username_0: I got the char array "anana" and I am trying to get a "B" into the beginning in the char array so it spells "Banana" but I cannot wrap my head around how to construct a simple while loop to insert the B and then move every letter one step to the right<issue_comment>username_1: Please follow the... |
2018/03/12 | 1,316 | 5,185 | <issue_start>username_0: I'm experiencing very strange error with electron open dialog window. Whenever I open it, it hangs and application becomes frozen.
The logic is straightforward, I have a helper for creating async actions with `typescript-fsa` library. The purpose of it is to call a promise and when it's finish... |
2018/03/12 | 672 | 1,977 | <issue_start>username_0: I'm porting a C project from Solaris to Linux and recompiling it. In a logger.c, gethrtime() function of sys/time.h doesn't compile for Linux. How can I port it to Linux? Is there a substitute of this in Linux?<issue_comment>username_1: Read [time(7)](http://man7.org/linux/man-pages/man7/time.7... |
2018/03/12 | 1,071 | 3,744 | <issue_start>username_0: I have a model hotel.php to insert hotel data.insert data using create() but it dosen't return id, the returning collection hasn't id field!
>
> **Controller.php**
>
>
>
```
/** "/user/2/create" */
public function store(User $user, HotelRequest $request)
{
$... |
2018/03/12 | 796 | 2,363 | <issue_start>username_0: I was wondering if it's possible to do something like this in Graphviz:[](https://i.stack.imgur.com/iJLod.png)
As you can see, node "two" is inside two clusters while the clusters aren't recursive.
Note: Image made with Dia.<issue_comment>use... |
2018/03/12 | 670 | 2,388 | <issue_start>username_0: I have a js file that is used in my html code as follows:
```
```
I do not have a QA environment, nor the ability to change the html code in production
I would like to test my updated js code as follows:
1) inspect html
2) update source file url:
```
```
3) 'soft' refresh page to tes... |
2018/03/12 | 719 | 2,158 | <issue_start>username_0: I am trying to hide tags when they have no text description, for a set of dynamically generated links. Usually this won't be necessary as links that don't have text to click on will not be visible anyway. But the page uses a stylesheet which assigns borders to each of these links. So my aim is ... |
2018/03/12 | 1,852 | 7,343 | <issue_start>username_0: I have (potentially large) json files being uploaded that need to be written out somewhere else. I would like to do at least some basic validation (for example, make sure they are valid JSON - maybe even apply a schema) but I'd like to avoid having to load the entire (again, potentially large) ... |
2018/03/12 | 1,075 | 3,306 | <issue_start>username_0: I have a bunch of files in the format `photo.jpg.png` in a folder, and for every photo in this folder, I want to replace the `.jpg.png` with `.png`. How can I do this from Terminal?
I have a basic Python and bash background, so I know I'd want to do something like this:
```
$ for i in *.png;... |
2018/03/12 | 604 | 2,189 | <issue_start>username_0: How can I reset **Chrome's zoom level** to Default(100%) using Selenium WebDriver? It's really easy to do using keyboard keys "Ctrl + 0".
However, when I try to emulate this using WebDriver, I can't get anything to work. Here is what I tried without success:
```
[TestMethod]
public vo... |
2018/03/12 | 1,288 | 4,668 | <issue_start>username_0: In Java, let's say I have a long list of Year and Month pairs. Like 2018:03 with a lot of duplicates.
```
Month will always be starting with 1.
Year will always be > Month, starting with 2010
if Month or Year == 0 [not_set], hashcode can return 0 (fine), I ignore them
```
I want to loop over... |
2018/03/12 | 538 | 2,049 | <issue_start>username_0: I have a texture that I use as a screenshot of the screen.
When I save the texture as a png file it seems perfect, but I also want to show the captured image on the screen. So I converted the Texture to Sprite but for some reason, the final result sprite is just a random image of another UI ima... |
2018/03/12 | 1,153 | 2,705 | <issue_start>username_0: I have calculated a linear regression using all the elements of my dataset (24), and the resulting model is IP2. Now I want to know how well that single model fits (r-squared, I am not interested in the slope and intercept) for each country in my dataset. The awful way to do is (I would need to... |
2018/03/12 | 1,554 | 4,333 | <issue_start>username_0: I'm trying to make my app use [`PreferenceFragmentCompat`](https://developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat.html)
My dependencies:
```
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.... |
2018/03/12 | 1,258 | 3,457 | <issue_start>username_0: So I have been having trouble with this query.
```
SELECT
CR.rental_id AS 'RID',
p1.rental_fee AS 'Guest Rental - RA',
p1.clean_fee AS 'Guest Cleaning - RA',
p1.tax AS ' Guest Taxes - RA',
p1.damage_waiver AS 'Guest Damage Waiver - RA',
p2.rental_fee AS 'PM Rental Fee'... |
2018/03/12 | 800 | 3,012 | <issue_start>username_0: I am learning Java and can write a lot of programs but something that I haven't really understood is which type of commands need to end with a semicolon `;`.
I enter them mechanically but I want to learn where exactly they are needed.
For example, `import java.util.Scanner;` needs a semic... |
2018/03/12 | 948 | 3,395 | <issue_start>username_0: My question is simple, I just want to return true if my number is in all the columns of a matrix, for example 3x3.
```
public class matrixcolumns {
public static void main(String[] args) {
int [][] matrix = {{3,2,4},{5,2,6},{7,8,2}};
int num = 2;
/*Scanner sc = new Scanner(System.... |
2018/03/12 | 673 | 2,314 | <issue_start>username_0: When I configure DNS Query Logging with Route53, I can create a resource policy for Route53 to log to my log group. I can confirm this policy with the cli `aws logs describe-resource-policies` and see something like:
```
{
"resourcePolicies": [
{
"policyName": "test-logging-polic... |
2018/03/12 | 317 | 1,063 | <issue_start>username_0: I would like R to count the number of digits that are the same between two numbers and return the number of digits that are the same after the decimal point. For example:
```
a <- 0.1234567890
b <- 0.1234567891
```
Output:
```
9
```
9 digits are the same.
Thanks!<issue_comment>username_1... |
2018/03/12 | 391 | 1,299 | <issue_start>username_0: im trying to learn to calculate the number of compraisons in searches
```
for ex Liner search(A,v) (assume length[A]>0)
i<-1
while i<=length[A] and A[i]!=v
{
do i <- i+1
}
if i>length[A]
{
then return NIL
}{
else return i
}
```
how do i calculate it?
`i<... |
2018/03/12 | 893 | 3,054 | <issue_start>username_0: ```js
function titleCase(str) {
var words = str.split(" ");
var capsOn = "";
var titleArray = [];
for (var i = 0; i < words.length; i++) {
capsOn = words[i].substring(0,1).toUpperCase() + words[i].substring(1).toLowerCase();
}
return titleArray.join(" ");
}
titleC... |
2018/03/12 | 546 | 2,221 | <issue_start>username_0: I was working on NotificationManager but i can't understand the purpose of builder.
`Notification n = new Notification.Builder(this)`<issue_comment>username_1: Builder isn't something specific to the Android environment, as it is a [design pattern](https://en.wikipedia.org/wiki/Software_design_... |
2018/03/12 | 1,625 | 5,756 | <issue_start>username_0: Can anyone help me with this issue ? I am stuck on this for 2 days,....I really do not how to fix it....I built a web page(contains a table) using angular cli/angular5 and expressjs. I use mongoose mongodb as the database. Everything working fine on local. But When I uploaded the dist folder an... |
2018/03/12 | 806 | 3,279 | <issue_start>username_0: I am developing a c++ program that writes a large amount of data to disk. The following function gzips the data and writes it out to a file. The compressed data is on the order of 100GB. The function to compress and write out the data is as follows:
```
void constructSNVFastqData(string const... |
2018/03/12 | 1,231 | 3,858 | <issue_start>username_0: I am trying to compile a C# Hello World application in Rider on Linux.
When I try to run the app, I am promted the following exception:
```
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationExcep... |
2018/03/12 | 1,026 | 4,746 | <issue_start>username_0: I’m creating a datagrid in the frontend but it appears in the layout.
I can see the error
bundle/Resources/views/layouts/default/mayorista\_resume\_accout\_frontend\_index/layout.yml
```
layout:
imports:
-
id: datagrid
root: __root
actions:
- '@... |
2018/03/12 | 481 | 1,596 | <issue_start>username_0: I want to make an array with 300 numbers, I want to add negative numbers in the array but I don't know how. I tried this:
```
using System;
public class Program
{
public static void Main()
{
const int t= 250;
int[]num = new int[t];
int i;
int j=0;
... |
2018/03/12 | 701 | 2,828 | <issue_start>username_0: I have a tableview which contains a UITableViewCell and everything works fine. However I need to take this same UITableViewCell and display it in another ViewController. Is this possible in iOS?
Coming from an Android background, this can easily be done with an include tag. How can it be done ... |
2018/03/12 | 376 | 1,096 | <issue_start>username_0: I was wondering if there is a simpler way in MySQL to take a 10 digit phone number `9876543210` and display it in the format `(987) 654-3210`. I have code that works fine but I was wondering if there was another way perhaps similar to `DATE_FORMAT()`.
The code I'm using:
```
IF(phone_cell != ... |
2018/03/12 | 509 | 1,309 | <issue_start>username_0: I am unable to add a new iOS app to fabric by following the instructions of the Fabric macOS plug in.
I have followed all of the instructions found at [Crashlytics documentation](https://www.fabric.io/kits/ios/crashlytics/install)
When running the app, I receive this error:
```
2018-03-12 14... |
2018/03/12 | 632 | 2,788 | <issue_start>username_0: I can get all the entities marked as IsDeleted = true, applying query filters,
where IsDeleted is a field of my entities.
Now, my question is very simple, how to make a soft delete in cascade with Entity Framework Core when I am soft deleting an entity that has navigation properties that I wan... |
2018/03/12 | 2,051 | 8,671 | <issue_start>username_0: **Update**
I changed the startup to :
```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Actio.Api.Handlers;
using Actio.Api.Repositories;
using Actio.Common.Auth;
using Actio.Common.Events;
using Actio.Common.Mongo;
using Actio.Common.R... |
2018/03/12 | 739 | 3,135 | <issue_start>username_0: I have a web app for booking entertainers. I would like to see at a glance how long it's been since I booked them. Currently, I'm using colored labels.
* performers booked in the future : green
* performers booked recently :light blue
* performers booked long ago : dark blue
* performers booke... |
2018/03/12 | 676 | 2,900 | <issue_start>username_0: I know cloudfront updates it's servers ~24 hours [[source]](https://forums.aws.amazon.com/thread.jspa?threadID=37268).
My question is why does sometimes it take less than 24 hours? Like sometimes I update s3 and bam the new content is available from XXdomain.com immediately. Other times it se... |
2018/03/12 | 864 | 3,376 | <issue_start>username_0: I am trying to add the field FROM in my matlab function to send an email with outlook.
This function works (without the from):
```
function sendolmail(to,subject,body,attachments, from)
%Sends email using MS Outlook. The format of the function is
%Similar to the SENDMAIL command.
% Create ob... |
2018/03/12 | 1,208 | 4,747 | <issue_start>username_0: I have a react component that uses Axios to fetch data:
```
import React from "react";
import axios from "axios";
export default class Example extends React.Component {
constructor() {
super();
axios("http://localhost/data.json").then(response => {
this.setStat... |
2018/03/12 | 651 | 2,729 | <issue_start>username_0: I know the equivalent to `AWS::Lambda::Function` is `aws_lambda_function`
But I'm not sure what the equiv for `Custom::LoadLambda`
I'm trying to translate the below into Terraform:
```
CreateRsaKey:
Type: Custom::LoadLambda
Properties:
ServiceToken: # This seems to call another... |
2018/03/12 | 740 | 3,203 | <issue_start>username_0: I need a Java flight recording to diagnose a performance problem on production Weblogic servers. I'd like to also get the Weblogic events. Is there any difference between starting the flight recording from either Java Mission Control (or in my case JCMD) versus initiating a WLDF diagnostic imag... |
2018/03/12 | 327 | 1,218 | <issue_start>username_0: `Vue Devtools` works on all demos/examples online but not on my local pages. Even with the following, the `Vue Devtools` icon remains gray ("Vue.js not detected"). Why?
```
Vue.config.devtools = true;
```<issue_comment>username_1: You must add at-least 1 instance of vue, for the devtools to... |