date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/21 | 1,141 | 5,110 | <issue_start>username_0: The [Namespaces](https://www.typescriptlang.org/docs/handbook/namespaces.html) chapter give an example related to *D3.d.ts* which I don't understand.
This is the full example:
```
declare namespace D3 {
export interface Selectors {
select: {
(selector: string): Sele... |
2018/03/21 | 630 | 1,946 | <issue_start>username_0: Using PowerShell, I have created a script that adds headers to a CSV, select unique value within specified columns, and exports it as a new CSV.
That script is:
```
import-csv -Header (1..39) -Path 'J:\consult evv\splitfile_385.csv' | select '30', '31', '39' -Unique | Export-Csv -Path "C:\Use... |
2018/03/21 | 2,381 | 9,958 | <issue_start>username_0: I am working on android video application where I am recording a Video using Camera Intent and taking a video from gallery. When recording video or after selecting video from gallery I want to know the size of my video which I took. I want to make a logic to show a user a toast message if selec... |
2018/03/21 | 517 | 1,518 | <issue_start>username_0: I have this plot
```
dat = data.frame(group = rep("A",3),subgroup= c("B","C","D"), value= c(4,5,6),avg = c(4.5,4.5,4.5))
ggplot(dat, aes(x= group, y =value, color = fct_rev(subgroup) ))+
geom_point()+
geom_point(data = dat ,aes(x = group, y = avg), color = "blue",pch = 17, inherit.aes = ... |
2018/03/21 | 432 | 1,380 | <issue_start>username_0: I have a huge VARCHAR field, that is a body of an email. There could be any sort of text on either side of the email. I want to see if anyone listed their Social security number anywhere in the text.
In the WHERE clause, I tried
```
WHERE X.Description LIKE '%___-__-____%'
```
Is there ... |
2018/03/21 | 880 | 3,041 | <issue_start>username_0: I have the following simplified middleware function:
```
router.put('/', function (req, res, next) {
const data = req.body;
const q = req.parsedFilterParam;
const opts = req.parsedQueryOpts;
ResponseCtrl.update(q, data, opts)
.then(stdPromiseResp(res))
.catch(next);
});
```
I w... |
2018/03/21 | 1,195 | 4,095 | <issue_start>username_0: I have the following piece of C++ code, for the time being ignore the bad practice in actually doing this in a program.
```
#include
//#include
using namespace std;
class P{
public:
void rebase(P\* self);
virtual void print();
virtual ~P(){}
};
class C: public P{
virtual void print();... |
2018/03/21 | 1,523 | 4,268 | <issue_start>username_0: i have a navbar with a horizontal submenu and issued with the submenu appearing on hover. I used display none to hide it but the hover code didn't work. Here is the whole code.
```css
body {
margin: 0;
padding: 0;
background: #eee;
}
.nav ul {
list-style: none;
margin: 200px ... |
2018/03/21 | 1,097 | 3,660 | <issue_start>username_0: This problem is very simple in R, but I can't seem to get it to work in Stata.
I want to use the square brackets index, but with an expression in it that involves another variable, i.e. for a variable with unique values `cumul` I want:
```
replace country = country[cumul==20] in 12
```
`cu... |
2018/03/21 | 1,105 | 3,764 | <issue_start>username_0: Is there a way to define alongside a (typed) structure a contract for the entire structure in Typed Racket? In my particular case, I have a structure that takes two lists as fields, and I want to require the lists to be the same length.
I've looked at:
* [`make-struct-type`](https://docs.rack... |
2018/03/21 | 470 | 1,489 | <issue_start>username_0: I am trying to get a query to search for a string, and I'm pretty sure the only reason I am not getting it to work is because the name of the column is NAME which is also a reserved word.The query runs but it does not pull up anything even though the string is in the column. Is there anything t... |
2018/03/21 | 275 | 1,180 | <issue_start>username_0: I am aware of constructor pattern to get to a configured IOptions e.g.
```
public SomeClass(IOptions someOptions)
{
}
```
However, I have run into a scenario where I have an existing method where I want to access SomeOptions. I do not want to change the signature for the constructor of that ... |
2018/03/21 | 1,263 | 3,519 | <issue_start>username_0: I would like to utilize user input to match and rearrange strings.
In Perl a simple example would look like the following:
```
use strict;
my $str = 'abc123def456ghi';
my $user_input1 = '(\d+).+?(\d+)';
my $user_input2 = '$2.$1';
if ($str =~ /$user_input1/) {
my $newstr = eval($user_input2)... |
2018/03/21 | 603 | 2,597 | <issue_start>username_0: I'm new to flutter and i really want to know, is there a way to connect to a database server (for instance mysql) in flutter rather using firebase. I'm working on a smart parking system project where i need to insert the latitude and longitude of the parking area which is free into the database... |
2018/03/21 | 7,616 | 25,973 | <issue_start>username_0: I have a pretty simple situation and I've tried a few things now and I can't find the cause of this issue. It claims it can not Autowire the Feign client class though this is how I have done this in Spring Boot 1.5.9. At least I'm pretty sure. Things work fine in all my unit tests though I'm mo... |
2018/03/21 | 1,405 | 4,995 | <issue_start>username_0: I use Infinity scrolling model in a-grid, now I want to send http get request with several parameters, like below
<https://tryoper/_dc=1521659863545&page=1&start=0&end=50&sort=%5B%7B%22property%22%3A%22Number%22%2C%22direction%22%3A%22DESC%22%7D%5D>
"page" & "start" &"end"&"sort"&"Number"&"DES... |
2018/03/21 | 620 | 1,776 | <issue_start>username_0: I'm using ubuntu 14.04 and Docker version:
```
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:56 2018
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version ... |
2018/03/21 | 1,606 | 5,767 | <issue_start>username_0: In my increaseCount method I have 3 different ways of increasing the count. I thought the first method could be used twice but it doesn't work as it seems to merge the setState in the callback. What's the proper way to use a callback function and why does the arrow notation work? How is prevSta... |
2018/03/21 | 1,543 | 5,486 | <issue_start>username_0: I'll preface this by saying this is for an assignment, but I am not sure how to approach this after going through other stackoverflow questions for an hour or two.
I'm attempting to create a reverse function that accepts 2 lists as input and returns the first list reverse appended with the sec... |
2018/03/21 | 1,446 | 5,234 | <issue_start>username_0: I have an old application that utilizes several stored procedures that attempt to save the current\_user value in a "Last\_Updated\_By" 6-character field on several different tables and the application can only support 6-character user names.
Due to Active Directory changes the users are now C... |
2018/03/21 | 466 | 1,732 | <issue_start>username_0: I have a form with an input field:
```
```
I was using my own custom autocomplete here which google autofill COVERS and ruins the validation and user experience in my form.
I have tried changing the id to something random id="ASDf" and still google infers the field type by the validation or... |
2018/03/21 | 491 | 1,848 | <issue_start>username_0: I'm using the LengthAwarePaginator to paginate the results of my collection,
```
$all_products = $all_products->where('scat_id', $sub_category);
$products = $this->manuallyPaginate($all_products);
```
all\_products its the collection of my products, then I used the laravel where method to fi... |
2018/03/21 | 328 | 1,301 | <issue_start>username_0: MQL4 codes are written in C language and basically, there is no method to use error detecting mechanism in C language before executing the code. Is there a special functionality in the Mql4 platform which helps to catch runtime errors before it executes?<issue_comment>username_1: Ok this worked... |
2018/03/21 | 649 | 2,619 | <issue_start>username_0: I tried to capture Network XHR logs (chrome browser) that generally shows Request(MethodType, Headers, parameters) and Response with Selenium webdriver but i was only able to get api's request that client sent to server(without parameter), while searching i found below code and it only provides... |
2018/03/21 | 708 | 2,806 | <issue_start>username_0: I am using XML DOM techniques to build a pulldown menu in JavaScript.
After I create an node, I append the text that is supposed to appear for that option. The problem I am facing is that when the text contains character entity references (CERs) such as `₂` the & character of the CER is being... |
2018/03/21 | 1,356 | 4,901 | <issue_start>username_0: hello i'm a beginner in J2EE and web app and i've try to follow a simple get Started from spring (with vaadin for making my UI) <https://spring.io/guides/gs/crud-with-vaadin/>
When i lauch the command spring-boot:run i got the error below :
```
[INFO] --- spring-boot-maven-plugin:2.0.0.RE... |
2018/03/21 | 704 | 2,244 | <issue_start>username_0: ```
WHERE (internalagentname is not null or internalagentcode is not null)
and (source LIKE '%GETAWAY%' or source like '%VACATION%')
and initialbookingdate <= to_Date(to_char(sysdate-1,'MM/DD/YYYY'),
'MM/DD/YYYY')
and (ABS(total_revenue) + ABS(total_cost) + ABS... |
2018/03/21 | 980 | 3,418 | <issue_start>username_0: I am currently having a list of obeject defined as:
```
fun updateList(tools: List, updateTools: List){
... code below
}
```
the `Tool` data class is defined as:
```
data class Tool(
var id: String = ""
var description: String = ""
var assignedTo: String = ""
)
```
the `Update... |
2018/03/21 | 737 | 2,688 | <issue_start>username_0: I'm trying to upload my ssl certificate bought from GoDaddy to azure, but custom SSL is not supported in the Free or Shared tier. Do I really need to scale up my plan to Basic in order to install ssl in azure? Has anyone faced this before?<issue_comment>username_1: First of all:
* you're not a... |
2018/03/21 | 879 | 3,113 | <issue_start>username_0: I have a df structured with the following columns:
`RowID, UserID, Event`
There are multiple rows per userID and many different user IDs. Event will be a whole number >=0.
I need R to look for the MAXIMUM row ID where the event for a specific user ID is greater than 0 and then label any en... |
2018/03/21 | 1,036 | 3,035 | <issue_start>username_0: An array shows 3 numbers randomly, and I had to write a code that sums the 3 numbers, but the array has a trick to sometimes show a string:
```
[96, ".!asd", 182]
["@#$%", 5, 43]
[64, "bd", 48]
```
I would like to use an "if" that would return "not valid" if there's a string in the array.
`... |
2018/03/21 | 1,184 | 3,502 | <issue_start>username_0: This is my object:
```
const ELEMENT_DATA: Element[] = [
{id: 1, name: 'Hydrogen', symbol: 'H'},
{id: 2, name: 'Hydrogen', symbol: 'H1'},
{id: 3, name: 'Helium', symbol: 'He'}
];
```
which is displayed in datatable with *Edit* buttons, like so:
When I click *Edit* (for example... |
2018/03/21 | 1,158 | 4,293 | <issue_start>username_0: I have the following method :
```
public void scrollToVisibleInstructionBlock(JTable table, int rowIndex, int sizeOfBlock) {
if (!(table.getParent() instanceof JViewport))
return;
JViewport viewport = (JViewport) table.getParent();
Rectangle rect = table.getCellRect(rowInde... |
2018/03/21 | 423 | 1,593 | <issue_start>username_0: I seem to be having a problem opening an excel file with a relative path in visual studio. The file is being saved to:
```
C:\Users\UserName\Documents\Filename.xls
```
on any machine. I have tried using:
```
Process.Start(@"~\Documents\Filename.xls");
```
to open the excel file, but it t... |
2018/03/21 | 812 | 3,258 | <issue_start>username_0: How to restrict Matcher in java to match only desired String ? Following is the code I have tried, however the expected match should be like "Invoice Received" but it is printing only "Invoice" on console.
```
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
i... |
2018/03/21 | 1,052 | 3,132 | <issue_start>username_0: Below is my query, I am fairly new to sql so my understanding is not the best. I want my query results to only give me the names I specify within my 'where' statement. Below in my query there are 4 activity names, 1 team name, and 1 date range ( 3 different colums, the 4 activities are found in... |
2018/03/21 | 1,118 | 3,467 | <issue_start>username_0: So lets say I have text file that looks like this
```none
new york
new jersey
florida
South Carolina
```
I'm going to append `california` to it, but when I do it ends up looking like this:
```none
new york
new jersey
florida
South Carolinacalifornia
```
How can I make it so it appends to ... |
2018/03/21 | 685 | 2,587 | <issue_start>username_0: I was having trouble trying assign variables declared in a class value outside of the class in functions. Example below:
```
class player {
public:
string playerWeapon;
void setWeapon();
}
```
Then maybe outside the header file where this is declared in the cpp file:
```
void player::setWea... |
2018/03/21 | 465 | 1,371 | <issue_start>username_0: I am using Angular4 and currently started exploring Services of Angular4. I have done everything right in my dataServices class but still i am getting this error in argument of`observer.next(1);`\
Please tell me where i am wrong.
**Error:**
```
Argument of type '1' is not assignable to param... |
2018/03/21 | 439 | 1,679 | <issue_start>username_0: I am creating a note system and want my notes to be editable, but also want them to never be deleted so I'm compromising with keeping a history of the different changes made to them. So I have come up with one idea where each note table looks like this:
```
Note
--------
+id
+content
+author
+... |
2018/03/21 | 255 | 1,275 | <issue_start>username_0: is there an easy way to change the colour of every second row
I tried this but unfortunately it is not working.
```
new SimpleAdapter(Activity.this,
listElements,
R.layout.list,
new ... |
2018/03/21 | 428 | 1,665 | <issue_start>username_0: I want to sort data in a worksheet, which gets new rows daily, in a second worksheet.
The problem is, if I use the SMALL()-function and fill the cells automatically till the last row (A102482 or something like that), my file gets very huge and laggy (>20mb).
Of course the person adding a new... |
2018/03/21 | 676 | 2,229 | <issue_start>username_0: I'm trying to create an array of 18 elements of BYTE whit calloc but don't know why calloc only give me back only 8 elements, I did it manually in the stack and the program works.
```
int arrsize;
BYTE copyrow[18];
arrsize = sizeof(copyrow);
```
When i compile here arrsize = to 18, so, evret... |
2018/03/21 | 207 | 766 | <issue_start>username_0: I have a label thats a button. I need to be able to disable it. ng-dialog doesnt work. If i use ng-diable it shows disabled, but the button is still functional. Which is bad. The label button is still clickable. Yes, i could use a regular button, but for this situation I need to use the label b... |
2018/03/21 | 617 | 1,978 | <issue_start>username_0: PySerial 3.4 will not importing with python 3.6.4. Also 3.5 or later. It works fine in python 2.7. Im out of ideas to try. Any help would be appreciated. In python 3.6.4, Error states: "module not found"
Pyserial is installed and should work with python 3.4 or later, based on website: <https:... |
2018/03/21 | 1,209 | 4,014 | <issue_start>username_0: Golang `encoding/json` package lets you use `,string` struct tag in order to marshal/unmarshal string values (like `"309230"`) into `int64` field. Example:
```
Int64String int64 `json:",string"`
```
However, this doesn't work for slices, ie. `[]int64`:
```
Int64Slice []int64 `json:",string"... |
2018/03/21 | 1,520 | 5,040 | <issue_start>username_0: I have a stack with nginx and PHP to run on Docker Swarm Cluster.
In a moment in my PHP application, I need to get the remote\_addr ($\_SERVER['REMOTE\_ADDR']) which contains the real IP from the client host accessing my webapp.
But the problem is that the IP informed for nginx by docker swar... |
2018/03/21 | 266 | 1,113 | <issue_start>username_0: I'd like to read a .xlsx using python pandas. The problem is the at the beginning of the excel file, it has some additional data like title or description of the table and tables contents starts. That introduce the unnamed columns because pandas DataReader takes it as the columns.
But tables co... |
2018/03/21 | 193 | 565 | <issue_start>username_0: I have tow tables


How to make pl/SQL procedure and then job when I delete from table1 where table1.S = Table2.Z and table1.O =90 and table2.P=90 same time to delete in table2<issue_comment>userna... |
2018/03/21 | 732 | 2,569 | <issue_start>username_0: I'm new to using Razor pages, so I have in the model directory a class with the following values:
```
public int Id { set; get; }
public string CustomerCode { set; get; }
public double Amount { set; get; }
```
Inside my controller (.cs file), I have the following:
```
public ActionResult I... |
2018/03/21 | 262 | 653 | <issue_start>username_0: Beginning with a string like:
```
S='a=65 b=66 c=67'
```
How would you create an output a dict like `{'a':'65','b':'66','c':'67'}`
Attempt:
```
S='a=65 b=66 c=67'
L=s.split(' ')
D=dict()
A=''
i=0
While i
```
>
> Error on line 8 indexerror list index out of range
>
>
><issue_comment>use... |
2018/03/21 | 950 | 3,477 | <issue_start>username_0: ```
var constraintResolver = new DefaultInlineConstraintResolver()
{
ConstraintMap =
{
["apiVersion"] = typeof( ApiVersionRouteConstraint )
}
};
config.MapHttpAttributeRoutes(constraintResolver);
config.AddApiVersioning(o => o.AssumeDefaultVersionWhenUnspecified = true);
[... |
2018/03/21 | 607 | 1,702 | <issue_start>username_0: I'm trying to print two variables at the top of a text file.
I have variables:
```
file=someFile.txt
var1=DONKEY
var2=KONG
sed -i "1s/^/$var1$var2/" $file
```
The output of the last line is: `DONKEYKONG`
While i need it to be:
`DONKEY
KONG`
I tried:
`sed -i "1s/^/$var1\n$var2/" $file`
... |
2018/03/21 | 1,732 | 6,563 | <issue_start>username_0: I'm creating an Angular component that wraps a native element with some additional features. Buttons do not fire a click event if they're disabled and I want to replicate the same functionality. i.e., given:
```
Save
```
Is there a way for `my-button` to prevent `onClick()` from getting cal... |
2018/03/21 | 1,502 | 5,633 | <issue_start>username_0: I'm evaluating Flyway and want to know if it can check for the presence of any externally made changes? I.e. if someone makes a change directly to the database, outside of Flyway, can I catch that?
I tried validate and info but it doesn't seem to notice.<issue_comment>username_1: I do not beli... |
2018/03/21 | 850 | 2,045 | <issue_start>username_0: I'm looking for a simple and invertible way to represent a Julia string by an integer (e.g. for cryptography). To be clear, I'm not considering string representations of integers like "123", but arbitrary strings like "Hello". The representation doesn't need to be human-readable, but it needs t... |
2018/03/21 | 1,029 | 2,157 | <issue_start>username_0: My Table Structure is like below:
```
Carrier Terminal timestamp1
1 1 21-Mar-17
2 101 21-Mar-17
3 2 21-Mar-17
4 202 21-Mar-17
5 3 21-Mar-17
6 303 21-Mar-17
```
where carrier
```
flight 1,2 = Delta
f... |
2018/03/21 | 737 | 2,905 | <issue_start>username_0: I'm using Next.js, and I have a custom server using Express. I have a page that requires some data from the database.
`getInitialProps()`, when running on the server, could just grab the data from the database and return it, without any problems.
However, `getInitialProps()` can also run on th... |
2018/03/21 | 1,388 | 4,529 | <issue_start>username_0: I am trying to convert an array of objects containing string values to their id value based off other array of objects. Here are the arrays.
```
const employees = [
{
name: 'bob',
department: 'sales',
location: 'west'
},
{
name:'fred',
department: 'sales',
locatio... |
2018/03/21 | 1,271 | 3,210 | <issue_start>username_0: Is there a way to reference the AS so I can use them in the
HAVING clause?
Quick explanation. My organization is grouped up into varying business lines. I'm trying to find the total number of application installs within the organization, the entire bank, and I want to limit the results to on... |
2018/03/21 | 255 | 849 | <issue_start>username_0: My service code prints the observable in console but how to return back the observable to component
service code:
```
const visit$ = this.db.object('visitordetails/'+$key);
this.item = visit$.subscribe((result) => console.log(result)) as Object;
```<issue_comment>username_1: Just don't subs... |
2018/03/21 | 384 | 1,150 | <issue_start>username_0: I'm attempting to integrate FontAwesome like so:
```
.accordion:after {
content: "\f0d7";
color: #9E3E39;
font-weight: bold;
float: right;
font-size: 15px;
margin-left: 5px;
margin-top: -80px;
font-family: FontAwesome;
}
```
and the end result is this:
![enter image description her... |
2018/03/21 | 1,122 | 4,303 | <issue_start>username_0: I have a bunch of content in a Wagtail 2.0 rich text field that looks like
```
Page heading
(intro blurb)
heading 1
(heading-1-relevant text)
heading 2
(heading-2-relevant text)
...
```
and I would like to give each heading an `id` so that any text can be made a link to jump to the releva... |
2018/03/21 | 1,653 | 5,044 | <issue_start>username_0: I'm working on creating a doubly linked list. I seem to be having issues with the `pushBack` function (supposed to add a node to the end of the list). Somehow it just replaces the first node and points to itself as both the previous and next node. When I go to print the list, it just goes on fo... |
2018/03/21 | 1,581 | 3,560 | <issue_start>username_0: ```
set.seed(123)
dat <- data.frame(day = 1:365, rain = runif(min = 0, max = 5,365),tmean = runif(min = 15, max = 33, 365) )
dat <- dat %>% mutate(mean.daily.rain = mean(rain),mean.daily.tmean = mean(tmean)) %>%
mutate(rain.acc = rain - mean.daily.rain,tmean.acc = tmean - mean.daily.tmean)
``... |
2018/03/21 | 544 | 1,555 | <issue_start>username_0: I have a requirement where I need to access an array element using its function.
For example, I have Array A[], now I want to create array B, such that
```
A[i] === B[i].value()
```
I tried below code but I am getting error as `B[i].value is not a function`
```
function test(A) {
var B =... |
2018/03/21 | 548 | 1,659 | <issue_start>username_0: The list `['a','a #2','a(Old)']` should become `{'a'}` because `'#'` and `'(Old)'` are to be excised and a list of duplicates isn't needed. I struggled to develop a list comprehension with a generator and settled on this since I knew it'd work and valued time more than looking good:
```
l = []... |
2018/03/21 | 1,092 | 4,790 | <issue_start>username_0: Currently I am doing an assignment in which I need to visit database of n number of servers to fetch some results.I have achieved this by iterating through the list of servers and raising tasks each one for each server in the collection. The task calls a function which basically makes an connec... |
2018/03/21 | 578 | 2,194 | <issue_start>username_0: Firstly, I want to be able to specify a value, n, which results in a particular nxn matrix being produced:
To do this I used the code:
```
n = __
np.eye (n)
```
Which will produce the identity matrix of the specified dimension, n.
However, I do not want to create the identity matrix precise... |
2018/03/21 | 664 | 2,829 | <issue_start>username_0: We process credit card transactions in our app. Whenever there is any transaction declined or any error we will go back to previous screen and we ask the customer to use another credit card.
PaymentController.m
```
[sharedVtp processSaleRequest:saleRequest
completionHandle... |
2018/03/21 | 844 | 3,299 | <issue_start>username_0: I have a mobile app built on Ionic 3, using Firebase and FCM plugin to send notifications.
I have 2 problems :
1. The badge never appears (tested on iOs and Android) (but the notifications are working normally)
2. When I click on the notification, I am re-directed to my application's home p... |
2018/03/21 | 397 | 1,519 | <issue_start>username_0: I have been receiving messages that GitHub found known dependency vulnerability in my Gemfile.lock, this is loofah (2.0.3) and Nokogiri (1.7.0.1) but these gems are dependencies I did not specifically asked for (other gems do depend on them) in my Gemfile, so, what can I do?<issue_comment>usern... |
2018/03/21 | 464 | 1,789 | <issue_start>username_0: I need to know if at least one of two processes are running, let's call them "process1" and "process2". Don't need to know which one is running.
I'd like to know what's the faster code and with less resource impact.
Actually I'm using:
```
Dim RunningProcesses() As Process
Dim IsRunning As Bo... |
2018/03/21 | 509 | 1,973 | <issue_start>username_0: I have got a function that sets features and want to have two versions of it. One takes all features and splits them into words and phrases and the second one receives already split words and phrases as arguments
```
def set_features_2(self, words, phrases):
self.vocabulary = set(words)
... |
2018/03/21 | 664 | 2,526 | <issue_start>username_0: I have a application which takes some really big delimited files (~10 to 15 M records) and ingest it into Kafka after doing some preprocessing. As a part of this preprocessing we convert the delimited records into json and add metadata to that json message (FileName, Row number). We are doing i... |
2018/03/21 | 462 | 1,703 | <issue_start>username_0: I tried inserting two record with all same values for columns in Primary Key in a Cassandra table and insert was successful. I am new to Cassandra and thought Primary Keys in Cassandra would not allow duplicate insertion. Is that incorrect? Following are the columns in my Primary key
PRIMARY K... |
2018/03/21 | 3,029 | 10,770 | <issue_start>username_0: I am making a financial application and I would like to display a running total for the balance in my view, similar to how most online banking platforms work. I am not sure how to do this. I store credits as positive numbers and debits as negative numbers in my database. So I would basically ne... |
2018/03/21 | 641 | 1,842 | <issue_start>username_0: How to remove noises from word (or sequence of words) edges. By noises I mean: `'s`, `'re`, `.`, `?`, `,`, `;`, etc. In other words, **punctuation** and **abbreviations**. But it needs to be only from left and right edges, noises within word should remain.
examples:
```
Apple. Appl... |
2018/03/21 | 5,387 | 16,302 | <issue_start>username_0: I'm trying to run `npm install` in the angular project folder I got from [ASP.NET Boilerplate](https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template-Angular) and I'm getting an error that is "related to npm not being able to find a file."
```
D:\Dev\AspNetBoilerplate\MyProject\3.... |
2018/03/21 | 2,108 | 6,222 | <issue_start>username_0: I have a dataframe (fbwb) with multiple assessments of bullying (1-6) using multiple measures (1-3) in a group of participants. The df looks like this:
```
fbwb <- read.table(text="id year bully1 bully2 bully3 cbully bully_ever
100 1 NA 1 NA 1 1
100 2 1 1 NA 1 1
100 3 NA 0 NA 0 1
101 1 NA NA... |
2018/03/21 | 1,204 | 3,690 | <issue_start>username_0: I have a dataset from a colleague.
In the dataset we record the location where a given skin problem is.
We record up to 20 locations for the skin problem.
i.e
>
> scaloc1 == 2
> scaloc2 == 24
> scaloc3 == NA
> scalocn......
>
>
>
Would mean the skin problem was in place 1 and 24 and... |
2018/03/21 | 1,285 | 2,695 | <issue_start>username_0: I have two data frames with mostly the same values
df1:
```
v1 v2 v3 v4 v5 v6 v7 ......
500 40 5.2 z1 .....
500 40 7.2 z2 .....
500 40 9.0 z3 .....
500 40 3.5 z4 .....
500 40 4.2 z5 .....
```
df2:
```
v1 v2 v3 v4 v5 v6 v7 .....
500 40 5.1 m1 .....
500 40 7.9 m2 .....
500 20 8.6 m3 ... |
2018/03/21 | 560 | 2,006 | <issue_start>username_0: I have set a color in an NSUserDefault in another class and and now want to convert it to a CGColor for display. I can convert an actual UIColor to a CGColor. But I'm having trouble converting a UIColor stored in a variable to a CGColor
```
UIColor* myColor = [[NSUserDefaults standardUserDefau... |
2018/03/21 | 1,356 | 5,118 | <issue_start>username_0: I am trying to send parameters from one Activity to another using Intent and extras.putString(); from one activity and trying to fetch the values in another and set that value in the Textview field.
My code looks like this:
PAActivity.java
```
Fname = (EditText) findViewById(R.id.editFirst);... |
2018/03/21 | 1,027 | 3,891 | <issue_start>username_0: i have webpage example.org, where i have multiple subcategories like:
* index.php?page=login
* index.php?page=category
* page=login?page=names
and i have included in index.php the head.php file which contain:
```
if(!empty($settings->meta_description) && (!isset($_GET['page']) || (isset($_GE... |
2018/03/21 | 1,289 | 4,835 | <issue_start>username_0: I use multiple accounts in Outlook. I want to give a warning box if sending from an address I should not be sending from.
I have two addresses that I should never send from (they are receive only accounts).
This example is almost what I am looking for.
[Example - Checking the "To" address.](h... |
2018/03/21 | 601 | 2,092 | <issue_start>username_0: I'm setting some text on a TextView every 0.5 seconds based on a timer. Everytime, when the timer runs and the text is set, I'm getting this warning message being spammed in my console.
>
> W/StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
>
>
>
XML Code:
```
```
J... |
2018/03/21 | 2,239 | 6,983 | <issue_start>username_0: I want to have equal space between text and button, but I am getting unequal space. See the image that I have attached; the red "delete" buttons and the text before that have unequal spaces.
Is there any CSS property that I can use so that the text doesn't push the button to the right?
[](https://i.stack.imgur.com/ECHGul.png)
Here the i get stuck as the picture i gave is not aligned to top
there is a space in between the top bar n the picture.
Even i did not gave any margin or any padding values.
```
```... |
2018/03/21 | 849 | 1,979 | <issue_start>username_0: ```
X = ['M','W','W','M','M','W']
NUM = [1,2,3,4,5,6]
```
trying to write a subroutine that will take NUM list and depending on whether the value in the corresponding list is M or W will multiply the value from Num list by either 5 when M is present and 10 with W.
have tried using two target... |
2018/03/21 | 858 | 2,008 | <issue_start>username_0: I'm having some trouble setting a variable CalendarID in the Google Apps Script for my spreadsheet (using sheet to sync to gcal).
So far I've come to:
```
enter code here
var sheet = SpreadsheetApp.getActiveSheet();
var range = sheet.getRange(2,6);
var calendarId = sheet.range.getValue... |
2018/03/21 | 2,223 | 6,497 | <issue_start>username_0: I want a `QTableWidget` with certain cells as customized `QProgressBar`s, and I want it to be possible to sort the columns containing these.
My customized `QProgressBar` is inheriting from both `QProgressBar` and `QTableWidgetItem`, and I am overiding the `'<'` operator to allow for sorting.
... |
2018/03/21 | 748 | 2,790 | <issue_start>username_0: I have the following arrangement:
checkbox\_1
checkbox\_2
button\_1
button\_2
Right now I wrote a jquery that when checkbox\_1 is checked button\_1 becomes active:
```
$('#checkbox_1').change(function() {
if (this.checked) {
$('#btn_1').removeClass('disabled');
} else {
... |
2018/03/21 | 571 | 2,075 | <issue_start>username_0: The topic says it all, how can I place Label directly over Button? Tried multiple ways, nothing worked.. I can't use button.setTest("xxx"); in this case.
EDIT: I thought that mentioning SWT library in tags would be enough. I'm kind of ashamed for the code, therefore I didn't want to post it.
... |
2018/03/21 | 559 | 2,019 | <issue_start>username_0: I have written the following python code to remove the duplicates:
```
lines_seen = set()
outfile = open("out.txt", "w")
for line in open("file.txt", "r"):
if line not in lines_seen:
outfile.write(line)
lines_seen.add(line)
outfile.close()
```
The code above functions co... |
2018/03/21 | 268 | 999 | <issue_start>username_0: I would like when i click on my item, this item can execute my command
View :
```
```
ViewModel :
```
public RelayCommand ChangeView{ get; private set; }
public VM_liste(INavigationService navigationService)
{
_navigationService = navigationService;
ChangeView= new RelayCommand(... |
2018/03/21 | 701 | 2,290 | <issue_start>username_0: I have tried to change the user agent in react native fetch API:
```
const URLENCODED_HEADER = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'User-Agent': Platform.OS + "/" + DeviceInfo.getUniqueID().toString()
}
export async function doRegister(secureInfo) {
for... |