date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 1,632 | 5,844 | <issue_start>username_0: So imagine there is the following string in a cell in excel:
```
A1 = "Company 1 Company 2 Company 1 Company 2 Company 3"
```
and the desired result for now is removing the duplicates:
`A1 = "Company 1 Company 2 Company 3"` (I imagine that this one doesn't require a macro)
the ideal one wo... |
2018/03/06 | 562 | 2,257 | <issue_start>username_0: Using Redux-form, I'm running into issues with validation.
I would like to access the store for referencing a piece of state in validation.
I have standard redux form export:
```
function mapStateToProps({address_object}) {
return{
address_object: address_object}
}
export defau... |
2018/03/06 | 1,458 | 4,838 | <issue_start>username_0: I have multiple time series:
```
x
| date | value |
| 2017-01-01 | 1 |
| 2017-01-05 | 4 |
| ... | ... |
y
| date | value |
| 2017-01-03 | 3 |
| 2017-01-04 | 2 |
| ... | ... |
```
Frustratingly in my dataset there isn't always a mat... |
2018/03/06 | 2,746 | 9,644 | <issue_start>username_0: I am in a corporate env so I have to use a proxy to reach servers. This works well in postman and in browsers. What I can't reach is localhost in postman but I can reach localhost in the browser.
I am running Postman for Linux Version 6.0.9. I have tried reaching localhost:9082/rest/myapi....... |
2018/03/06 | 443 | 1,822 | <issue_start>username_0: I am using `WebRTC` for voice calling everything work fine. When Call hangUp i am disposing the `PeerConnection` as follows before finishing Call `Activity` .
```
executor.execute(() -> {
if (peerConnectionFactory != null) {
peerConnectionFactory.dispose();
pee... |
2018/03/06 | 346 | 1,463 | <issue_start>username_0: I need to know that if we delete some rows (I am talking for sql server) from a table which has some indexes (clustered or non-clustered, for both situation) can give any damage to indexes or not? What happens to indexes when we delete rows? Which one is better for performance, deleting rows fr... |
2018/03/06 | 302 | 1,235 | <issue_start>username_0: I am using directive named ***blue*** where I have a variable named ***count***. I want to use this count variable in the HTML. How can I do this ?
I want something just like below......
```
{{count}}
```<issue_comment>username_1: I don't know what you mean by "damage". When you delete rows ... |
2018/03/06 | 560 | 2,019 | <issue_start>username_0: Helper,
I'm having two table as users and addresses. I have saved multiple addresses for a user. Now I wanna update one of the users address. Is there any single query for update. I'm getting every input as array.
```
*users table*
id | name
1 | Mr.X
*addresses table*
id | user_id | ci... |
2018/03/06 | 1,375 | 5,219 | <issue_start>username_0: I'm using Laravel 5.6 and Collective HTML.
I have a table articles and im creating a form to upload a asingle article
ArticleController
```
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$categories = ArticleCatego... |
2018/03/06 | 765 | 3,100 | <issue_start>username_0: I need to add a subnet to a VNET in another resource group. I have an arm template (below) which adds a subnet to an existing resource group and it works okay but I need this subnet to be added to a VNET in another resource group.
example - there are 2 resource groups
Resource Group A - Contai... |
2018/03/06 | 408 | 1,719 | <issue_start>username_0: What storage policy will variables declared in a `local function` inside a class have, static or automatic?<issue_comment>username_1: The "storage policy" is the *lifetime*. It will always be automatic. Section 8.6 of IEEE 1800-2012 states
>
> The lifetime of methods declared as part of a cla... |
2018/03/06 | 405 | 1,438 | <issue_start>username_0: First I was getting this error:
>
> Invalid object name "product\_images\_temporary"
>
>
>
and after I have added the `[]` brackets, everything worked fine. But then when I removed them again, I got this error:
>
> Incorrect syntax near ''
>
>
>
Why does this work:
```
[product_... |
2018/03/06 | 862 | 3,084 | <issue_start>username_0: On this example, I change the "`name`" via the method:
```js
new Vue({
el: '#exercise',
data: {
name: 'Petr',
},
methods: {
random: function() {
return Math.random();
},
changeName: function(event) {
this.name = event.target.value;
}
}
})
... |
2018/03/06 | 637 | 2,534 | <issue_start>username_0: I'm fetching json file from assets folder.
My file name is `testjson.json`.
I have used the following code to fetch json file from folder.
```
constructor(private router:Router,private http:Http) {
this.http.get('http://localhost:4200/assets/testjson.json')
... |
2018/03/06 | 564 | 1,899 | <issue_start>username_0: I am trying to use it in my SQL Query exactly like it's shown in the link below on MSDN. The keyword JSON does not turn blue and gives error
>
> Incorrect syntax near 'JSON'
>
>
>
What's wrong with it?
EDIT: I'm testing it for SQL Server 2014. The query is
```
SELECT * FROM food FOR JSO... |
2018/03/06 | 754 | 2,532 | <issue_start>username_0: I have a situation where I have to reposition the map box compass view to a different location. The compassView is now rotating when I rotate the map taking some other point as its(compassView) axis and gives me a weird outcome. Screenshot is attached, the black mapBox default compass icon is r... |
2018/03/06 | 813 | 2,994 | <issue_start>username_0: I have a program that sends and email out to user when they have been added in.
I want the email to cc in multiple members of the IT team, however, I can only get it to CC to one person.
Below is my code:
```
objMail = CType(objOutlook.CreateItem(Outlook.OlItemType.olMailIte... |
2018/03/06 | 509 | 1,895 | <issue_start>username_0: I am actually working on a form and i am doing the validations for each field. but there is an issue. my block of component.html file looks like this,
```
Pacs name
```
This is the field i am working on but when i am using #name="ngModel" i am getting this error in browser.
there is no di... |
2018/03/06 | 1,124 | 2,788 | <issue_start>username_0: I have a really weird requirement for my SQL Server table and I'm not sure if it is impossible to solve.
I have a client-side grid/table which displays data by a given T-SQL query/stored procedure. The table in the SQL Server database that I am looking at is numeric data with timestamps - som... |
2018/03/06 | 315 | 1,194 | <issue_start>username_0: When I'm trying to use Remote JS Debugging in Google Chrome shows Cached Bundles. See the image below.
Remote Debugger UI Screenshot:

On my emulator its not connecting to remote debugger.
Android Emulator Screenshot
!... |
2018/03/06 | 660 | 2,352 | <issue_start>username_0: I had been update Xcode , and while I'm running my app I'm getting this error message:
>
> Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
> PID: 14616, TID: 312485, Thread name: com.google.Maps.LabelingBehavior, Queue name: com.apple.root.default... |
2018/03/06 | 756 | 2,872 | <issue_start>username_0: I have dynamic array with foldername and creating a zip using **zipFolder**
I am facing issues as the library is async i.e
```
zipFolder(source,dest,callback)
```
Because its a async call it take times and I want to block the next request unless the first one reponse is true,
```
function (... |
2018/03/06 | 584 | 2,068 | <issue_start>username_0: I am new in regex, i want to break the give string into 6 parts using regular expression. I am using the Pentaho data integration tool (ETL tool)
**Given string:** 1x 3.5 mL SST. 1x 4.0 mL gray cap cryovial.
Note: There are many more string with same format
I want output as:
[{
firebase.initializeApp({
apiKey: '',
authDomain: '',
... |
2018/03/06 | 568 | 2,388 | <issue_start>username_0: I have *PCollection* of type String and I want to transform this to get values of specific column from BigQuery table. So I used *BigQueryIO.readTableRows* to get values from BigQuery.
Here is my Code:
```
PCollection getConfigTable = pipeline.apply("read from Table",
BigQueryIO.readT... |
2018/03/06 | 319 | 1,192 | <issue_start>username_0: I made my own class for some data processing.
Here is my concept of class module condition
1. I want to take all user input variables including `**kwargs` from `__init__` only
2. `__init__` doing pre processing which need `**kwargs` for one of the input variables
3. also need additional data ... |
2018/03/06 | 699 | 2,678 | <issue_start>username_0: I am implementing autocomplete with data from database service:
```
@Injectable()
export class SchoolService {
constructor(private db: AngularFirestore) {
}
getSchools(): Observable {
return this.db.collection('schools').valueChanges();
}
}
```
In my component:
```
export class Sch... |
2018/03/06 | 1,092 | 4,277 | <issue_start>username_0: Using the following proto buffer code :
```
syntax = "proto3";
package pb;
message SimpleRequest {
int64 number = 1;
}
message SimpleResponse {
int64 doubled = 1;
}
// All the calls in this serivce preform the action of doubling a number.
// The streams will continuously send the n... |
2018/03/06 | 1,146 | 4,051 | <issue_start>username_0: **I have a relative url string, know host and protocol. How can I build an absolute url string?**
Seems easy? Yes at first look, but until escaped characters coming. I have to build absolute url from 302 code http(s) response Location header.
lets consider an example
```
protocol: http
host:... |
2018/03/06 | 829 | 2,630 | <issue_start>username_0: I have created an accordion, but I want it to close the tabs when another one is clicked. At the moment, it opens the tabs, but when another is clicked, it doesn't close the last one...
This is the code:
```
Accordion
Content
Accordion 2
Content
```
[This is the code working](https://codep... |
2018/03/06 | 621 | 2,140 | <issue_start>username_0: I have two tables that I want to convert them to json like this:
```
$first_query = $this->db->query("SELECT * FROM `parameters` WHERE patient_id=7 ORDER BY created_on DESC LIMIT 10");
$second_query = $this->db->query("SELECT * FROM `pat_details` WHERE email='".$email."' AND phone_num='".$phon... |
2018/03/06 | 313 | 1,195 | <issue_start>username_0: I wanted to ask how one would check who has access to subfolders in a certain directory on a server using either the CMD or Powershell?<issue_comment>username_1: You are looking for `icacls`. From cmd type `icacls directoryname /t` replacing directoryname with the actually directory name to dis... |
2018/03/06 | 778 | 2,995 | <issue_start>username_0: We have a Router Guard which checks if a user is logged in and admin
It should also check if a request we send to a server is has the right result.
The problem is the canActivate function is finished before the server request is finished, so the Router Guard is always false.
I hope you have a... |
2018/03/06 | 384 | 1,372 | <issue_start>username_0: So I'm trying to make a infinite loop that uses a for loop instead of a while loop. This is my current code. If this code works it should produce x infinitely.
Current code:
```
z=1
for x in range(0,z):
print(x)
z=z+1
```<issue_comment>username_1: That doesn't work because the first t... |
2018/03/06 | 528 | 1,802 | <issue_start>username_0: The below java code works fine in my machine to disable automation extension.
How I can write a replica of this code in ruby
Java
```
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("useAutomationExtension", false);
```
In Watir Ruby
this code doesn't work ... |
2018/03/06 | 535 | 1,779 | <issue_start>username_0: So, let's say that i have an object:
```
const object = {
name: 'Lukas'
}
```
Now i wish to validate this object, so i'm doing this:
```
const validator = {
name: value => {
if (!value) return 'No value provided'
}
}
```
How to pass object to validator to correctly check value?... |
2018/03/06 | 1,084 | 4,288 | <issue_start>username_0: Through searching I found that in UML, aggregation(assuming that it's used properly) can be used to represent attributes in a class.
For example,
[](https://i.stack.imgur.com/pAUmC.png)
(Assume column can stand alone)
Then, ... |
2018/03/06 | 1,058 | 4,214 | <issue_start>username_0: I am working on creating an html editor in java using JTextPane. The attribute style = "display: none" doesn't seem to be working here as expected. Help me out here.
My code is:
```
JTextPane basePane = new JTextPane();
basePane.setEditorKit(JEditorPane.createEditorKitForContentType("text/htm... |
2018/03/06 | 895 | 3,357 | <issue_start>username_0: I want to place my activityIndicator where I want it programmatically, but I don´t know how.
I know how to put it in the center of the screen:
```
activityIndicator.center = self.view.center
```
But I want something like this:
```
activityIndicator.activityIndicator(frame: CGRect(x: 100, y... |
2018/03/06 | 2,304 | 7,781 | <issue_start>username_0: I want to make a multi selection on filtered items by the auto complete.
Inspired from the following [tutorial](https://stackblitz.com/angular/qybdokkpdmb?file=app%2Fautocomplete-filter-example.html)
I tried this code:
The component :
```
{{ option }}
```
I added tag to enable selection ... |
2018/03/06 | 327 | 864 | <issue_start>username_0: I have the following regex
```
(?:AND\sNOT|AND|OR)\s(.*?):
```
for example
```
a:b:c AND d:e OR f:g:h:i AND NOT j:k
```
I want the regex to match [a,d,f,j]
But now it only matches [d,f,j]
in the following example it's matching only keys coming after AND NOT | OR | AND, but I want it to m... |
2018/03/06 | 777 | 3,295 | <issue_start>username_0: I'm new to realm. I have two objects, Restaurant and Address.
```
class Address: Object {
@objc dynamic var identifier: Int = 0
@objc dynamic var name: String!
@objc dynamic var restaurant: Restaurant!
}
```
notice that Address has relationship with restaurant.
```
class Restau... |
2018/03/06 | 705 | 2,082 | <issue_start>username_0: I built this code to practice pointers and the program keeps crashing.it seems it crashes when I enter a big number to `counter`. 1-5 doesn't affect it apparently, but when you enter 30 it keeps crashing, sometimes on the allocation itself `malloc(...` and sometime in the `free(names[i]);` func... |
2018/03/06 | 491 | 1,647 | <issue_start>username_0: I have a table in hive
```
db.table_name
```
When I run the following in hive I get results back
```
SELECT * FROM db.table_name;
```
When I run the following in a spark-shell
```
spark.read.table("db.table_name").show
```
It shows nothing. Similarly
```
sql("SELECT * FROM db.table_... |
2018/03/06 | 1,304 | 3,982 | <issue_start>username_0: I defined custom font for my application because by default characters like 'č' did render with Arial font while rest of application rendered with "Open Sans Light". In `styles.scss`:
```
@include v-font('LocalFont', '../../../../mytheme/fonts/open-sans-v15-latin-ext_latin-300');
...
...
```
... |
2018/03/06 | 256 | 981 | <issue_start>username_0: When I try to open my Laravel app I get the following error:
```
UnexpectedValueException
The stream or file "/laravel/storage/logs/laravel.log" could not be opened:
failed to open stream: Permission denied
```
Why is this and how can I fix it?<issue_comment>username_1: Write the following... |
2018/03/06 | 630 | 2,102 | <issue_start>username_0: Whenever i access `sudo nano /etc/network/interfaces` the file is essentially empty which is hindering me because i need to disable the power saving feature that automatically disables the wifi after a minute or so
This is what shows in my file
```
# interfaces(5) file used by ifup(8) and if... |
2018/03/06 | 421 | 1,512 | <issue_start>username_0: Here is a [screenshot](https://i.stack.imgur.com/VaVsw.jpg) of my lookup wizard (sorry, I couldn't change the language from german).
But I don't want to display an ID in "Ort". I want to dispay two values the table has instead.
To generalize this question: "How can I show the values of a forei... |
2018/03/06 | 1,593 | 4,688 | <issue_start>username_0: Hello i am trying to make my own `strstr()` function and i can't figure out why it is returning a segmentation fault.I am trying to search a string within another string and then return a pointer to the first 'same' letter. Any help would be appreciated.
This is my code:
```
char* ms_search(ch... |
2018/03/06 | 1,875 | 6,103 | <issue_start>username_0: I just try to understand streams in Java and I stuck at sorting phase.
My purpose is to get most expensive vege pizza with one stream. At this point I get pizza price but I can't sort it. Can anyone tell me how I should do it ?
I try with this :
```
pizzas.stream()
.flatMap(pizza -> Stre... |
2018/03/06 | 1,882 | 6,217 | <issue_start>username_0: I am facing issues when trying to ignore files with.db extension placed in folder location(say (\test\folder) using below java code.The code on execution is not working as expected and the files containing .db extension isn't ignored [which is what we are looking at in our requirement].
Please... |
2018/03/06 | 457 | 1,919 | <issue_start>username_0: I have tried this with bootstrap 3 and it worked fine. I'm trying the same thing with bootstrap 4 and the modal does not appear when i click the both buttons created through the anchor tag.
I have seen similar posts with the same problem, however theirs mostly relates to mistakenly using the ... |
2018/03/06 | 267 | 1,066 | <issue_start>username_0: I'm quite new to the world of NodeJS and JS.
Do I need to learn ExpressJS first before learning FeathersJS?
I read some post that FeathersJS is a drop-in-replacement for Express, so does this mean that I can start with FeathersJS first?<issue_comment>username_1: No, you do not need to learn ... |
2018/03/06 | 829 | 2,752 | <issue_start>username_0: I have a function that returns a Promise on success or a string on error.
```
async create(createDebtorDto: CreateDebtorDto): Promise {
console.log("createDebtorDto", createDebtorDto)
try{
const createdDebtor = new this.debtorModel(createDebtorDto);
return await createdDebtor.save();
}cat... |
2018/03/06 | 269 | 1,033 | <issue_start>username_0: When we make a search for users or incidents the default search clause is "greater than or is" but i want to change it to "is" clause.
Can anyone tell me how to do that?<issue_comment>username_1: There does not seem to be an option to do this. However, you can change the default search behavior... |
2018/03/06 | 328 | 930 | <issue_start>username_0: I have two list :
```
a=['book','car','car','have']
b=['car','have']
```
I want this output:
```
a_basedon_b_indexes=[1,2,3]# 'car' and 'have' indexes in list a
```
i want a one line expression for this output.(i know how to do it with for loop).is this possible in python?<issue_comment>u... |
2018/03/06 | 1,070 | 3,909 | <issue_start>username_0: According to webrtc discuss group topic at google cricket::VideoCapture will be deprecated soon. To customize a video source, we should implement VideoTrackSourceInterface. I tried implementing the Interface and didn't work. I implemented the interface an when I have a frame then called the eve... |
2018/03/06 | 947 | 3,819 | <issue_start>username_0: I am trying to use the following within my terraform execution:
```
resource "azurerm_virtual_machine_extension" "vmex" {
name = "myVM"
location = "eastus"
resource_group_name = "${azurerm_resource_group.rg.name}"
virtual_machine_name = "${azurerm_virtual_machine.vm.name}"
... |
2018/03/06 | 379 | 1,281 | <issue_start>username_0: I want to provide default values for parameters in a proc, and for such I want to know how to test whether the EXEC call defined the expected parameters or not.<issue_comment>username_1: Found out the right way to do this:
```
//MYPROC PROC MYPAR=999
//* [your proc code]
// PEND... |
2018/03/06 | 614 | 1,985 | <issue_start>username_0: I have this code:
My mysql table 'countries' contains the columns:
id and name
```html
$(document).ready(function(){
$('#country').typeahead({
source: function(query, result)
{
$.ajax({
url:"fetch.php",
method:"POST",
data:{query:query},
dataType:"json",
success:function(data)
{
... |
2018/03/06 | 225 | 858 | <issue_start>username_0: I was wondering how to play some default sound in c++. I do not want to download any additional files (programs nor music). Just to play 2 or 3 notes like bip bip. How should I write this code?<issue_comment>username_1: >
> How to play sound in c++
>
>
>
There is no standard API for playin... |
2018/03/06 | 348 | 1,266 | <issue_start>username_0: If I post/put this json to my api:
```
{
user: {
id: 1,
name: 'John',
title: 'CEO'
}
}
```
and deserialising and saving it to database in my controller with this:
```
$user = $serializer->deserialize($data, User::class, 'json');
$entity = $em->merge($us... |
2018/03/06 | 1,029 | 3,104 | <issue_start>username_0: For some reason, I get this error
>
> Can't bind to 'dataSource' since it isn't a known property of 'mat-tree'.
>
>
>
and I don't know how to fix that
I try to use angular material 2 6.0.0-beta.3 where this version have treeview component for first time, any help to fix this error is gon... |
2018/03/06 | 1,118 | 3,750 | <issue_start>username_0: **Thank you all so much for your help! I've begun to figure out where I went wrong. Stupid me was sending the data as an array instead of as a single string of the element ID.**
I've spent the past few days on Stack Overflow & other sources trying to find an answer to this problem. SO has a T... |
2018/03/06 | 578 | 1,830 | <issue_start>username_0: I have strange problem with padding in navbar which depends of navbar-expand.
For example if I set it to MD I will see this:
[](https://i.stack.imgur.com/czytc.png)
Like you can see Logo and menu button doesn't fit to rest o... |
2018/03/06 | 529 | 1,563 | <issue_start>username_0: Suppose I have two tables which contain, respectively:
```
| User | birthday |
| ----------- |:-------------:|
| 'you' | '1980-11-01' |
| 'me' | '1986-12-27' |
```
and
```
| Event | date_start | date_end |
| ------------ |:-------------:| ------... |
2018/03/06 | 1,921 | 6,711 | <issue_start>username_0: I am running a query on a very large collection (500m documents) which is timing out sometimes (6 minutes) or takes very long (3-6 minutes).
I indexed all the relevant fields (no compound index): Tag, trophies, battleLogMonitorFrequency, profileRefreshedAt are indexed and the totalIndexSize is... |
2018/03/06 | 1,030 | 3,477 | <issue_start>username_0: I'm using the `stringr` package in R and would like to replace all values that follow the word ***except*** with the word ***MATCH***. I'm getting an error that states *' . . . must have a bounded maximum length (U\_REGEX\_LOOK\_BEHIND\_LIMIT)'*. Here is my code that throws the error:
```
stri... |
2018/03/06 | 944 | 3,246 | <issue_start>username_0: I use OpenLDAP on windows with Apache Directory Studio, and I try to set up a LDAP database that should represent hierarchically data as follow:
* root
+ users (email)
- applications (application code)
* companies (company code)
In order to retrieve:
1. the list of applications for a s... |
2018/03/06 | 960 | 3,200 | <issue_start>username_0: I want to iterate over all of the columns in my dataset and discover if a column contains a one or a zero.
My dataset is a matrix of 68x300000.
I am reading the file using pandas:
```
df= pd.read_csv("filepath", header=None)
```
From this output I want to create a new matrix of 1x300000 d... |
2018/03/06 | 1,067 | 3,835 | <issue_start>username_0: I am getting Untrusted Certificate error (Response Code: 401) with Solace Client Certificate Authentication Scheme.
Here are the details over configurations made:
- Created a self-signed server and client certificates in pem format (With Private Keys)
- Uploaded both to Certs folder on s... |
2018/03/06 | 650 | 2,160 | <issue_start>username_0: I have `click` event with jquery and i want to know how is selector clicked...
```
$('#parent').on('click','#child',function(){
//....
});
```
**$(this)** is `#parent` or `#child` ?<issue_comment>username_1: It's the child, why did you not just try
```
$('#parent').on('click','#child',fu... |
2018/03/06 | 412 | 1,582 | <issue_start>username_0: Java program is executing in Hadoop cluster. It got OutOfMemoryError during the execution and process stopped. I want to analyze the killed java process for memory & other details.
Where i can find the killed process log files?
I used sar utility to analysis the memory but it shows only system ... |
2018/03/06 | 816 | 3,080 | <issue_start>username_0: I'm dynamically creating a list of CheckBoxes in code behind. This was working fine but I then wanted to add in an initial [Select All] checkbox.
This is how I am creating the checkboxes;
```
var splCheckBoxes = new StackPanel();
var ckb = new CheckBox
{
Content = "[Select All]",
Mar... |
2018/03/06 | 537 | 1,879 | <issue_start>username_0: In languages with optional types, you have a fn called `orElse` or `getOrElse` which lets you do this:
```
None.getOrElse(1) == 1
Some(2).getOrElse(1) == 2
```
I.e. you can specify a default value. In Python, I find I am writing:
```
if output_directory:
path = output_directory
else:
... |
2018/03/06 | 486 | 1,655 | <issue_start>username_0: I am trying to design this using React Bootstrap Grid, How do I make my grid so that the COLORBAR takes only a very small width? [](https://i.stack.imgur.com/8jrvQ.png)
I am trying this
```
```
But the `ColorBar` takes a bi... |
2018/03/06 | 451 | 1,481 | <issue_start>username_0: `Chrome` starts on normal speed, but unable to open any websites. I get
>
> Downloading proxy script...
>
>
>
message on status bar for 15-20 seconds. After that page is loaded. I use `Chrome 64.0.3282.186` and there are `uBlock Origin`, `Adobe Acrobat` and `Adblock Plus` installed on it... |
2018/03/06 | 945 | 3,098 | <issue_start>username_0: I have a dictionary which has whitespaces in the beginning and end of the items that I want to remove.
```
Alpha = {'Active': [{'Last': u' 0.023', 'Name': u' Bard1 Life Sciences Limited
', 'Vol': u' 439,937,304', 'pc': u' 130.0', 'Change'... |
2018/03/06 | 945 | 2,955 | <issue_start>username_0: Is there a way to train a model using the train subset in 8 of the 10 Kfolds that `kf = KFold(n_splits=10)` that sklearn has implemented?.
I want to split my data into three subsets: training, validation, and testing (this can be done by using `train_test_split` twice I think...).
The train... |
2018/03/06 | 714 | 2,422 | <issue_start>username_0: I have got a desktop application which logs into a file, opening a file called `application.log` each time it wants to log something, appending text and then closing it again.
I would like to create a html page showing the content of the file and automatically showing the changes.
How can I a... |
2018/03/06 | 1,000 | 2,933 | <issue_start>username_0: I have written this code but I have a little problem with it.
This code should get a string and check whether this string contains all the alphabet letters...
If it doesnt the output is "Not a pangramma!".
If it does "PanGramma!".
The probem is that I want it to count also the nuumber of the sp... |
2018/03/06 | 1,390 | 2,761 | <issue_start>username_0: Is there a particular reason why calls to the super() in the constructor returns `void` instead of the type of the same class?
Source: [TypeScript specs 4.9.1](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#4.9.1)
Example: [See example here](https://www.typescriptlang.org/pla... |
2018/03/06 | 874 | 2,913 | <issue_start>username_0: I'm trying to programm my PIC 16F628A with PICKIT3 in MPlabX, but I get the following error:
>
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Connection Failed.
>
>
>
When I enable the "Power Target Circuit From Tool", I get a... |
2018/03/06 | 628 | 2,211 | <issue_start>username_0: Given this example:
Table:
```
CREATE TABLE public.animals
(
name character varying(64),
whitelist animal_whitelist[]
)
```
Custom enum type animal\_whitelist:
```
CREATE TYPE public.animal_whitelist AS ENUM
('dog',
'cat',
'bird');
```
How can I select specifically to the white... |
2018/03/06 | 795 | 2,872 | <issue_start>username_0: I've got question about resolving environment variables in shared files of config server.
My current setup is pretty minimal :
1. **src/main/resources/shared/application.yml** :
application:
version: 0.0.1-early
test: ${JAVA\_HOME}
2. **src/main/resources/application.properties** :
spring... |
2018/03/06 | 569 | 2,323 | <issue_start>username_0: We use VSTS to deploy an ARM template. (Azure Deployment task version: 2).
In this task, we can configure the output variable. The will output the json output of the ARM template in this variable. In my case, it is called armOutputJson.
In the next task, I have an inline powershell script that... |
2018/03/06 | 1,030 | 4,769 | <issue_start>username_0: I am using Identity Server 4 and adding more API end points to be used but I can't seem to make it working correctly. When I send a call to identity server api with access token it says
```
Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation fail... |
2018/03/06 | 833 | 2,799 | <issue_start>username_0: I have searched for the answer to my error, but no luck. I found this Google App Script to be able to search within a date range on a private Google Calendar.
I tried changing the dates on the line of code that has the error.
It raises the following error:
>
> TypeError: Cannot call method "g... |
2018/03/06 | 4,071 | 13,797 | <issue_start>username_0: I have a lot of data that I'd like to structure in a Pandas dataframe. However, I need a multi-index format for this. The Pandas MultiIndex feature has always confused me and also this time I can't get my head around it.
I built the structure as I want it as a dict, but because my actual data ... |
2018/03/06 | 1,023 | 3,508 | <issue_start>username_0: I'm trying to make an http post with libcurl library to create an InfluxDB database, as indicated in their website:
`curl -i -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mydb"`
It looks like my code is not working. It doesnt give me any errors but db is not created. ... |
2018/03/06 | 1,203 | 3,786 | <issue_start>username_0: I have some cosmetic content which I would like to align between flex items which are justified with space-between.
The items have dynamic width.
The result in the following demo is what i'm looking for, **except** that since the content is purely cosmetic - I want to use **generated content*... |