date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
618
2,561
<issue_start>username_0: The text file has 10000 lines. I've been tried using `File.ReadLine` and `StreamReader` but it seems pretty slow. Here's my code ``` foreach (var line in File.ReadLines(ofd.FileName)) { if (analysisDatas.All(analysisData =>!string.Equals(analysisData.Text, line, Str...
2018/03/19
1,205
3,737
<issue_start>username_0: I have trouble reading the csv file by python. My csv file has Korean and numbers. Below is my python code. ``` import csv import codecs csvreader = csv.reader(codecs.open('1.csv', 'rU', 'utf-16')) for row in csvreader: print(row) ``` First, there was a UnicodeDecodeError when I enter ...
2018/03/19
295
1,028
<issue_start>username_0: I have single reads fastq from Illumina Hiseq, and I would like to generate the reverse using biopython ( or others). I can only find information on how to get the reverse complement using reverse\_complement(dna), but I dont know how to get only the reverse. Thanks!<issue_comment>username_1...
2018/03/19
589
1,465
<issue_start>username_0: I have a text file which has 4 attributes like this: ``` taxi id date time longitude latitude 0 1 2008-02-02 15:36:08 116.51172 39.92123 1 1 2008-02-02 15:46:08 116.51135 39.93883 2 1 2008-02-02 15:46:08 116.51135 39.93883 3 1 2008-02-02 15:56:08 ...
2018/03/19
1,335
5,390
<issue_start>username_0: I created a git repository to test some git features out. I learned from a blogpost that branches are stored in `.git/refs/heads/` That the file names were names of branches in your application and each of the files contained the commit sha that the branch pointed to. Turns out you can replace...
2018/03/19
1,828
4,997
<issue_start>username_0: I am trying to get the lines from html page, proccessed by BS, containing word 'billion'. But I am getting empty list..... Btw, these lines are between `-` tags, I have tried to use `soup.findAll("- ", {"class": "tabcontent"})` but it gives me an empty list also. ``` import requests fr...
2018/03/19
1,236
4,777
<issue_start>username_0: I have a reactive form where on load no fields are required. If an option is selected that will add additional form elements into the formGroup then the new shown fields will be all required. If the nickname field is hidden then you should be able to submit the form just fine. If the nickname ...
2018/03/19
1,024
3,408
<issue_start>username_0: i made an interface using react but when i add more items to the screen and the screen gets full the scroll down bar doesn't appear and i can't see the elements that are at the end of the page. thank you for your time i really appreciate it. this css is written in a single folder it is ment to...
2018/03/19
541
1,400
<issue_start>username_0: How to convert Float value to Varchar in SQL Server with our Rounding or Padding in SQL Server . ``` DECLARE @A AS FLOAT, @B AS FLOAT SELECT @A=1.353954 , @B=1.353 SELECT CAST(@A AS VARCHAR(40)) AS B_FLOAT_TO_VARCHAR, -- Rounding STR(@B, 25, 5) -- Padding 0's ``` Actual Result : 1.35395, 1...
2018/03/19
954
3,338
<issue_start>username_0: I recently had a coding quiz that asks me to find a node in a tree that appears most frequently in all levels. For example, ``` a / \ c a / \ / \ c a b c ``` In this tree, `a` should be the answer since it appears in level 0, 1, and 2. I tried to approach this usin...
2018/03/19
278
1,146
<issue_start>username_0: In the documentation of BigQuery, it has only three types of sources: organization, project and dataset. Roles and permissions are on these resources.My question is is there any way to define an access control to a particular table in a dataset?<issue_comment>username_1: With BigQuery you can d...
2018/03/19
366
1,408
<issue_start>username_0: New to VBA code. Need help in matching strings with a Macro. Have a system name "<NAME>" in Col A and Input Name in "<NAME>" in Column B. I want to compare the first and last string in columns A & B and if 1st and last string match, the result in Column C should be "OK" else the column C should...
2018/03/19
1,038
3,487
<issue_start>username_0: How can I create a new repository in an organization with PyGithub on Github? In particular I like to know how to use the `create_repo` method? My question is identical to [this question](https://stackoverflow.com/questions/28675121/how-to-create-a-new-repository-with-pygithub), but I would li...
2018/03/19
1,219
5,121
<issue_start>username_0: I'm wondering if its possible to express the time complexity of an algorithm that relies on convergence using Big O notation. In most algorithmic analysis I've seen, we evaluate our function's rate of growth based on input size. In the case of an algorithm that has some convergence criteria (...
2018/03/19
577
2,521
<issue_start>username_0: I am brand new to Liquibase... Today I wrote a Liquibase changeset using --liquibase formatted sql. I created two tables where the second had a foreign key dependency on the first. My rollback strategy was (mistakenly) drop table1; drop table2. When I ran the update and tested the rollback...
2018/03/19
1,222
3,542
<issue_start>username_0: I have data of the form: ``` ID name date count --------------------------------- 1 A 1/1/2015 3 2 B 1/4/2015 2 3 C 1/6/2015 4 4 D 1/10/2015 2 ``` Which I would like to turn into something like... ``` 1 A 1/1/...
2018/03/19
1,229
3,327
<issue_start>username_0: I have a number of dates for which I would like to make an indicator variable for. The problem is that I am having difficulty making this happen in `R` using `timeDate`. Here is a toy example ``` library(timeDate) library(lubridate) library(tidyverse) >df <- tribble( ~date, "2010-12-31", ...
2018/03/19
669
2,480
<issue_start>username_0: I'm running a spring boot scheduled process that takes 5-10 seconds to complete. After it completes, 60 seconds elapse before the process begins again (Note that I'm not using fixedRate): ``` @Scheduled(fixedDelay=60_000) ``` Now, I want to limit it to run every minute Mon-Fri 9am to 5pm. I ...
2018/03/19
757
2,654
<issue_start>username_0: I would like to convert a dictionary of key-value pairs to an excel file with column names that match the values to the corresponding columns. For example : I have an excel file with column names as: ``` a,b,c,d,e,f,g and h. ``` I have a dictionary like: {`1:['c','d'],2:['a','h'],3:['a'...
2018/03/19
987
3,740
<issue_start>username_0: I'm trying to use a scanner to parse out some text but i keep getting an InputMismatchException. I'm using the scanner.next(Pattern pattern) method and i want to return the next n amount of characters (including whitespace). For example when trying to parse out ``` "21 SPAN 1101" ```...
2018/03/19
643
2,780
<issue_start>username_0: When trying to inject field variables using dagger I'm getting null. Here are the files. Some are in Java and some in Kotlin App.java ``` public class App extends DaggerApplication{ @Override protected AndroidInjector extends DaggerApplication applicationInjector() { retur...
2018/03/19
1,379
5,453
<issue_start>username_0: I have a csv file of 500GB and a mysql database of 1.5 TB of data and I want to run aws sagemaker classification and regression algorithm and random forest on it. Can aws sagemaker support it? can model be read and trained in batches or chunks? any example for it<issue_comment>username_1: Amaz...
2018/03/19
748
2,941
<issue_start>username_0: I want to create a user registration with custom usernames. I store the user's username on a user document in Firestore. How can I validate a username already exists in my Users Collection? [![](https://i.stack.imgur.com/WARAs.png)](https://i.stack.imgur.com/WARAs.png) Maybe someone already h...
2018/03/19
544
1,828
<issue_start>username_0: I am not allowed to use == or /=, but I have no idea how I can rewrite it without them. ``` iffC x y = if x == True && y == True then True else if x == False && y == False then True else False iffG x y | y == True && x == True = True | y == False && x == False = True | otherwise ...
2018/03/19
2,045
5,635
<issue_start>username_0: Using Spark 1.6 on scala, how do I group each characters in the code column by position by key? First strings together, second characters together etc... ``` val someDF = Seq( (123, "0000"), (123, "X000"), (123, "C111"), (124, "0000"), (124, "0000"), (124, "C200")).toD...
2018/03/19
624
2,373
<issue_start>username_0: I get data-results from a stored procedureas Laravel collection. Data is like SQL table. Same keys (column names) inside the object of collection. Is there a way to query (raw SQL query) this collection and get the final result data I want? I looked into the [Laravel collection documentati...
2018/03/19
385
1,389
<issue_start>username_0: I'm reinstalling my Homestead/Laravel using Vagrant on my new machine.. but I can't get past this error: > > Unable to mount one of your folders. Please check your folders in Homestead.yaml > > > This is my configuration: * Vagrant Version: 2.0.3 * Homestead pulled from [here](https://g...
2018/03/19
599
2,161
<issue_start>username_0: **Function** ``` function autoHeadline(time) { var elem = $('div#main-headline ul.main-headline-item li.x'); var id = elem.index(); if(id==-1) { id = 0; elem = $('ul.main-headline-item li.x').eq(id); } $('div#main-headline ul.main-headline-item li').remo...
2018/03/19
1,299
4,310
<issue_start>username_0: Is pip capable of recursively searching through a file system path and installing a package and its dependencies? For example, given the following file structure (files not shown) `pip install packageA -f C:\packages\` does not work. ``` C:\packages\ C:\packages\packageA\ C:\packages\packageA\...
2018/03/19
704
2,378
<issue_start>username_0: I have some html that includes a *table* with some *tr* rows and each row has a *td* element containing an *img* element. Elsewhere on the page I have an ajax method that sends a url to the server, server then saves this locally and returns the location back. I then try to update the src attri...
2018/03/19
678
2,759
<issue_start>username_0: I have been noticing that some of the programs that I write in C have not been working on my machine, but they works other others. So to test this, I wrote a simple program to test how the stack is pushing and popping local variables: ``` #include #include int main() { char char\_test[10];...
2018/03/19
652
1,793
<issue_start>username_0: I have a data frame like this: ``` df = pd.DataFrame({'a1': [2,3,4,8,8], 'a2': [2,5,7,5,10], 'a3':[1,9,4,10,2]}) a1 a2 a3 0 2 2 1 1 3 5 9 2 4 7 4 3 8 5 10 4 8 10 2 ``` The output should be: ``` 0 2 1 3 2 4 3 8 4 8 ``` What to do: I want to calcul...
2018/03/19
741
2,641
<issue_start>username_0: I have a CNN network with three layers and after fitting the model, weights are saved on disk. The second time I load the weights, but this time model is increased with a layer. So it is now 4 layer network. Is it possible to transfer model weights with the different architecture? If yes then h...
2018/03/19
1,260
4,471
<issue_start>username_0: ``` def Factorial(n): n=int(input("Input a number?")) if n==0: return 1 else: return n * Factorial(n-1) def Fibonacci(num): i=0 present=1 previous=0 while i<=num: nextterm=present+previous present=previous prev...
2018/03/19
2,539
8,946
<issue_start>username_0: I have a container `vector` that has `std::unique_ptr` of some type. I want to return that container, but also want to enforce that I don't want the container, pointer or the object pointed at to be modifiable. I also don't want to make some paralel copy of this object. My alias type would be s...
2018/03/19
454
1,151
<issue_start>username_0: I want to print the binary numbers 0x00 to 0xFF with their full 8-bit format. The `bin()` Python function won't return the full 8 bits, so I need to use the `format` function to format the binary string. This code below is giving me a `ValueError`, but I'm passing a binary string to the forma...
2018/03/19
647
2,088
<issue_start>username_0: **PLEASE HELP.** I got this lines of code on my app, the value of the input here comes from the firebase database. That works as the value is shown when I ran the app. My problem is when i console.log(attendance.studentName). It doesnt get the value. It is null or {}. > > HTML > > > ```...
2018/03/19
1,404
4,256
<issue_start>username_0: We are to display the number of times the numbers from 1 through 9 appear in a two-dimensional array. We can't use map, vector, or anything advanced. **Here is what I have so far:** ``` #include using namespace std; int main() { //declare numbers array int numbers[5][3] = {{1, 2, 7...
2018/03/19
838
2,917
<issue_start>username_0: How to trigger multiple download's on a page using js/jquery? The individual downloads are done using the js download attribute. the page has multiple such download links and wants to trigger all of them using a global download all ``` [Download 1](#) [Download 2](#) [Download 3](#)...
2018/03/19
973
3,868
<issue_start>username_0: I have an Elastic BeanStalk environment where I run my application on 1 EC2 instance. I've added load balancer, when I configured the environment initially, but since then I set it only use 1 instance. Application run within container apparently produces quite a lot of logs - after several day...
2018/03/19
497
1,433
<issue_start>username_0: I have a tblAbsence ``` Name Start End Joe 18-Mar-2018 0800 26-Mar-2018 1830 Mary 19-Mar-2018 0010 19-Mar-2018 2349 Adam 21-Mar-2018 0700 21-Mar-2018 1300 ``` Is there a SQL query that would create a new table of dates with the count of people absent that day? ``` Date ...
2018/03/19
588
2,029
<issue_start>username_0: I have a data frame with a single column. There are 620 rows. The first 31 rows we label class "A", the next 31 rows we label "class B", and so on. There are therefore 20 classes. What I want to do is quite simple to explain but I need help coding it. In the first iteration, I want to dele...
2018/03/19
528
1,822
<issue_start>username_0: I have two dockers sitting on two different machines, both running the vespa. When I submit an application which have two nodes - vespa1 and vespa2 (resolved in /etc/hosts). I get the following error. ``` Uploading application '/vespa-eval/src/main/application/' using http://localhost:19071/ap...
2018/03/19
1,055
3,442
<issue_start>username_0: ``` var each = function(collection, callback){ if(Array.isArray(collection)){ for(var i=0;i ``` How to write a callback function that would output each boolean value of the callback? // example, even of an array, [1,2,3,4,5] -> false, true, false, true, false<issue_comment>usernam...
2018/03/19
1,140
3,747
<issue_start>username_0: I want to read the data from the table in this PDF. [PDF](https://www.fnbaloncesto.com/img/noticias/103/pdfs/ENaB%2020180317.pdf) I had thought about reading the PDF, exporting it to an Excel and then use the data. The problem of reading the pdf and exporting it to Excel is that there are ele...
2018/03/19
1,636
5,217
<issue_start>username_0: I am using David Walsh css flip effect: <http://davidwalsh.name/css-flip> I have this working onClick with a JavaScript function called showCard(). See the codePen here: <https://codepen.io/Chris_Nielsen/pen/YaWmMe> When you first click the button, it animates correctly (**opens** from left t...
2018/03/19
1,273
4,282
<issue_start>username_0: I'm adding a reload button for iOS in-app web browser using `WKWebView.reload` I tried two options, and the two options works for me the same but I want to know what is the technical correct option to use with #selector. Is it `#selector(class.method)` or `#selector (object.method)` ? Here ...
2018/03/19
1,285
4,248
<issue_start>username_0: I am a python starter and I am trying to solve the Longest Palindromic Substring problem on Lintcode. The description is:"Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring...
2018/03/19
1,803
6,316
<issue_start>username_0: i'm using Flask-SQLAlchemy and i have the following models with one to many relationship, ``` class User(db.Model): # Table name __tablename__ = "users" # Primary key user_id = db.Column(db.Integer, primary_key=True) # Fields (A-Z) email = db.Column(db.String(50), nu...
2018/03/19
1,311
4,619
<issue_start>username_0: I'm trying to load some data from stage to relational environment and something is happening I can't figure out. I'm trying to run the following query: ``` SELECT CAST(SPLIT_PART(some_field,'_',2) AS BIGINT) cmt_par FROM public.some_table; ``` The some\_field is a column that has data w...
2018/03/19
1,461
5,253
<issue_start>username_0: This has probably been asked before because of how high level the question is, however I couldn't find a solution and am struggling to get this set up. I am working on my first full stack web app using MERN stack. I am on a Mac. Everything I'm doing here is on my local machine. **For MongoDB**...
2018/03/19
1,285
4,304
<issue_start>username_0: Here are my `user` and `product` schemas: ``` const productSchema = new Schema({ //... addedBy: { type: mongoose.Schema.Types.ObjectId, ref: "users" } }); const userSchema = new Schema({ //... addedItems: [{ type: mongoose.Schema.ObjectId, ref: "products" }] })...
2018/03/19
867
3,245
<issue_start>username_0: I have data in variables that I want to add into a dataframe. The issue I am running into is that I need to organize the variables where they are not populating every row. I need the data to look like this: ``` name notification1 notification2 notification3 a 1 ...
2018/03/19
809
3,066
<issue_start>username_0: I'm having trouble returning data frames from a loop in R. I have a set of functions that reads in files and turns them into data frames for the larger project to use/visualize. I have a list of file names to pass: ``` # list of files to read frameList <-c("apples", "bananas", "pears") ``` ...
2018/03/19
788
2,197
<issue_start>username_0: Hei i have this code in CSS: ```css .gradient-four { height: 100px; width: 100px; margin: 5px auto; border-radius: 50%; float: left; background-image: radial-gradient( circle closest-side, red, purple); } ``` And it´s applied to a div. How can i repeat that div, without rep...
2018/03/19
2,805
10,155
<issue_start>username_0: I've looked at a ton of articles about how to rebase with Git and it makes sense...or at least I think it does. However, I'm struggling with the following... For this scenario we have the following branches: * master (local) * origin/master * jheigs (local) * origin/jheigs Ok, so now let's s...
2018/03/19
918
3,400
<issue_start>username_0: I have a React Navigation Tab Component like this: ``` const RootNavigator=TabNavigator({ Home:{ screen: Home, navigationOptions:{ tabBarIcon: ({focused}) => ( ) } }, Notifications:{ screen: Notifications, navigationOptions:{ tabBarIcon: ({focused})...
2018/03/19
889
3,329
<issue_start>username_0: I'm trying to do some laravel validation. I need to ensure that the field max rent is always great than min rent and to proivded a message letting the user know. Here is my validation code in my controller ``` $this->validate($request, [ "county" => "required", "town" => "req...
2018/03/19
941
3,355
<issue_start>username_0: I'm trying to write code to organize a data dump. Basically I need to extract asdf from: *123456**asdf**123456789* I can do this in normal worksheet mode in Excel, but I am having trouble with this in VBA. Theoretically the code below should return the string 9 spaces left and 9 spaces rig...
2018/03/19
909
2,753
<issue_start>username_0: I am not sure what I am missing in a query where i am trying to convert a not in subquery to join. Here is my original query that works perfectly for me: ``` select battery_id from battery_price where clinic_id = 2 and battery_id not in ( select battery_id from battery_price ...
2018/03/19
441
1,584
<issue_start>username_0: Can someone help me figure out what i am doing wrong? When i run it, it will not display. ```html function reverseMyString() { string = parseInt(prompt("Enter a String")); var str = string; var reverseStr = ""; for (var i = str.length - 1; i >= 0; i--) reverseStr += str[i]; docum...
2018/03/19
463
1,805
<issue_start>username_0: New to perforce (and stackoverflow). I'm trying determine what has changed in my local view: I want to list all the recent changes under a directory in my workspace. Perforce documentation seems to suggest everything is file based. Is there not a simple solution that does not require either p...
2018/03/19
772
2,101
<issue_start>username_0: I have a bunch of docker containers running on the default bridge network, that need to communicate with each other. I want to move some of the containers to a separate user defined network so I can specify their IP addresses. Is there any way to do this without having to take down/replicate...
2018/03/19
2,136
8,176
<issue_start>username_0: I set numpy random seed at the beginning of my program. During the program execution I run a function multiple times using `multiprocessing.Process`. The function uses numpy random functions to draw random numbers. The problem is that `Process` gets a copy of the current environment. Therefore,...
2018/03/19
386
1,763
<issue_start>username_0: While creating some basic workflow using KNIME and PSQL I have encountered problems with selecting proper node for fetching data from db. In node repo we can find at least: 1. **PostgreSQL Connector** 2. **Database Reader** 3. **Database Connector** Actually, we can do the same using 2) alon...
2018/03/19
2,608
8,492
<issue_start>username_0: Guid is a 128bits structure, long is a Int64 so 64 bits structure, therefore Guid can be used to represent two long and two long can be stored in a Guid. I have been searching several times for a reliable way to perform the transformation of a Guid to 2 longs and the way around, mainly to get ...
2018/03/19
2,731
12,027
<issue_start>username_0: I'm trying to implement a simple read/write lock for a resource accessed concurrently by multiple threads. The workers randomly try reading or writing to a shared object. When a read lock is set, workers should not be able to write until the lock is released. When a write lock is set, read and ...
2018/03/19
1,347
4,380
<issue_start>username_0: I tried to run this ``` int array( void ) { char text[12] = { 112, 114, 111, 103, 112, 0 }; int i; for(i = 0; text[i]; i = i +1) printf("%c", text[i]); printf("\n"); return 0; } int main( void ) { int array(void); return 0; } ``` and the program runs but...
2018/03/19
1,386
5,869
<issue_start>username_0: I have a question regarding the repository and service pattern in combination with ASP.NET Core and EF Core. I'm in the stage of learning all of this, so I might miss the clear picture fully in front of me right now. My current project structure looks as follows: * Project.Repository.Contract...
2018/03/19
917
3,445
<issue_start>username_0: I am trying to move entries from my old tables to the new one with the updated schema. The problem is, I have to move content from 10 tables with old config to 10 tables with the new config. I am doing this with the help of console command. When I add the new table and execute the command, I g...
2018/03/19
977
3,369
<issue_start>username_0: ### Steps to reproduce I have application bootstrapped from `vue-cli` with a `webpack` template. I'm running it on Chrome `65.0.3325.146` but it also exists on `64.X.XXX` version. I'm adding here: `package.json`: <https://gist.github.com/marcinlesek/a7e6076ce4befe2e810743fdbaf81480> `webpack...
2018/03/19
749
2,762
<issue_start>username_0: ``` new.df <- as.data.frame(match(unique_numbers$ID, MASTERFILE$ID)) ``` I have a few million rows in a data frame called MASTERFILE. It contains a column "ID" with a bunch of integers. I have another data frame called "unique\_numbers" which has a similar integer column "ID" with numbers in ...
2018/03/19
354
1,405
<issue_start>username_0: I'm using the proxy integration with my Java lambda function. The input for the lambda handler is a JSON object that represents an incoming request. It has a body, headers, query params and so on. But it doesn't include the source URL that is parsed by the API Gateway for the body, query params...
2018/03/19
1,064
3,331
<issue_start>username_0: I couldn't figure out what Vtiger was on about when it asked me to set the php.ini file to `error_reporting`. Even after the error\_reporting had been edited to show; `error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT` The CRM still persists in telling me it requires resett...
2018/03/19
351
1,133
<issue_start>username_0: Is it possible to list all S3 buckets using a boto3 resource, ie `boto3.resource('s3')`? I know that it's possible to do so using a low-level service client: ``` import boto3 boto3.client('s3').list_buckets() ``` However in an ideal world we can operate at the higher level of resources. Is ...
2018/03/19
1,591
5,876
<issue_start>username_0: I have one file called `ClientList.txt` that has a output of: ``` client1.hello.com client2.hello.com client3.hello.com ``` And I use this script to append the values of the `ClientList.txt` in a `output.txt` file. Code: ``` with open("ClientList.txt", "r") as infile: with open("output.tx...
2018/03/19
1,588
5,375
<issue_start>username_0: So I have a .txt file I'm supposed to be reading information in from and displaying in a neat little table. Here's a snippet of the .txt files contents in the format Farm name, item count, item, price, total price ```none Collins Farm, 43900 tomatoes 0.67 29413 Bart Smith Farms, 34910 cassav...
2018/03/19
824
3,448
<issue_start>username_0: I'm making a list of tasks to learn how to use PouchDB / CouchDB, the application is quite simple, would have authentication and the user would create their tasks. My question is regarding how to store each user's information in the database. Should I create a database for each user with their...
2018/03/19
468
1,985
<issue_start>username_0: Let say I have the following VCs: RootVC --> VC A --> VC B I'm using present method to present view controller from RootVC to VC A then to VC B. Now I'm on VC B and I want to dismiss from VC B back to RootVC using ``` self.view.window!.rootViewController?.dismiss(animated: true, completion:...
2018/03/19
433
1,764
<issue_start>username_0: I tried running the program below: ``` from functools import lru_cache @lru_cache(Maxsize = None) def count(n): factorial_num = 1 num_digits = 0 if n == 1: factorial_num = 1 else: factorial_num = n * count(n-1) return len(str(factorial_num)) ``` However, i...
2018/03/19
1,069
3,447
<issue_start>username_0: ``` template struct foo { int x; decltype(x) f1(); }; ``` It seems to be impossible to define `f1` out-of-line. I have tried the following definitions, and none of them work: ``` template decltype(x) foo::f1() {} template auto foo::f1() -> decltype(x) {} template auto foo::f1() { retur...
2018/03/19
1,105
3,813
<issue_start>username_0: I have an object setup like this: ``` window.onload = function(){ window.someSettings = { result: false, init: function() { $html = $('html'), $window = $(window), $someElement = $('container'); this.doWork($html, $window...
2018/03/19
5,189
22,523
<issue_start>username_0: I had a form that had two fields. An InputFilter with validators was applied to it. It was working fine. Then I moved the fields to a fieldset and added the fieldset to the form. Now the assignment validators to the fields is not present. The validator objects `isValid` method is not triggered ...
2018/03/19
1,743
6,668
<issue_start>username_0: I've been playing with VirtualBox implementations of Xubuntu. I'm learning provisioning test boxes with content using both VBoxManage and Vagrant. Unfortunately my boxes work very erratically. I'd like to enable the debug mode in VirtualBox to better understand why the boxes sometimes freeze up...
2018/03/19
502
1,921
<issue_start>username_0: I have created a simple app component which renders a side bar and a dashboard. On a link click within the sidebar, I want to do an AJAX request and change the state of the dashboard. I have moved the click handler function to the index.js app component so it can pass the props down to the dash...
2018/03/19
526
2,103
<issue_start>username_0: I was curious about the differences between `.jar` with `.class` files and `.jar` with `.java` files. I partially got the answer [here](https://stackoverflow.com/a/32877987/8614565), But then what is the usefulness of `.java` files in the jar? My guess is that the java files in the jar are lik...
2018/03/19
311
1,125
<issue_start>username_0: I want to write a dataframe to a file ``` dataToGO = {'Midpoint': xdata1, '': "", 'Avg Diam': ydata1, '' : ""} colums = ['Midpoint', '', 'Avg Diam', ''] ToFile = pad.DataFrame(data=dataToGO, columns=colums) ToFile.to_csv("processed"+filname+".c...
2018/03/19
1,279
4,683
<issue_start>username_0: I'm sending emails using: <https://github.com/sendgrid/sendgrid-nodejs/tree/master/packages/mail> I have not been able to find out HOW I can add the `[Unsubscribe]([Unsubscribe])` equivalent. This is documented in here: <https://sendgrid.com/docs/Classroom/Basics/Marketing_Campaigns/unsubscrib...
2018/03/19
354
978
<issue_start>username_0: I have an hour and a minute column in my dataset. I want to concatenate them so that there is a "." in between. In cases where the minute column is less than 10, I want to add a leading zero. Example of what I want it to look like: Hour(A): 1 Minute (B): 2 Desired Outcome (C): 1.02 I h...
2018/03/19
287
1,173
<issue_start>username_0: I have been playing around with Kafka for a few months now and I have noticed that I have a rather large number of message/sec under the internal Kafka topic called \_\_consumer\_offsets. Now we have a hand full of other topics that are rather small in terms of the number of message across the ...
2018/03/19
1,511
6,143
<issue_start>username_0: I'm having troubles with hiding the keyboard on Android 8. I used this before and it worked for the older androids: ``` val view = activity.currentFocus if (view != null) { val imm = activity.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager imm.hide...
2018/03/19
373
1,414
<issue_start>username_0: It is possible to get the current input value without jQuery? I mean, i don't wanna use document.getElementById / class. i wanna get element by input tag. I have this implemented with jQuery: ``` $(document).on('keyup', 'input', function(e) { console.log($(this).val()); }) ``...
2018/03/19
325
1,249
<issue_start>username_0: I am attempting to stretch a 300x300 image to fill the parent as a background for a sample layout. However, it seems that at most it can reach it's max dimensions as a perfect square. Here is my code. ``` ``` There is still white space at both the top and bottom of the app and I want to elim...
2018/03/19
806
3,046
<issue_start>username_0: I want to define a generic strong alias type, i.e. a type ``` template class StrongAlias { T value; }; ``` such that for a type `T` a `StrongAlias` can be used in exactly the same way as `T`, but `StrongAlias` and `StrongAlias` are different types that can not be implecitly converted to eac...
2018/03/19
440
1,508
<issue_start>username_0: I remember reading somewhere that local variables with inferred types can be reassigned with values of the same type, which would make sense. ``` var x = 5; x = 1; // Should compile, no? ``` However, I'm curious what would happen if you were to reassign `x` to an object of a different type. ...
2018/03/19
1,352
5,178
<issue_start>username_0: I am trying to implement a custom or-filter in API Platform. But for some reason it is not loading. Find below my configuration. This is my filter: ```php php namespace AppBundle\Filter; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractFilter; use ApiPlatform\Core\Bridge\Doctrine\Or...
2018/03/19
397
1,344
<issue_start>username_0: ``` int *i; ters_cevir(){ char *term=i; char *som=i; char som1; while (*term != '\0') { term++; } while (*som != '\0') { som1=som*; *term=som; term--; som++; } } int main() { char *isim=malloc(sizeof(char)); i=&isim pri...
2018/03/19
434
1,750
<issue_start>username_0: I have an Azure function and I wrapped the logic in a try catch block. I can log the exception to Azure, but I want save and then send the details of the exception to an email address. I see I can use [Elmah.io](https://docs.elmah.io/logging-to-elmah-io-from-azure-functions/) but I have to pay ...
2018/03/19
646
1,369
<issue_start>username_0: I'm new with Pyhton and would like to filter a dictionary with keys composed by two values. Here my dict: ``` {(0, 'DRYER'): [103.0, 131.0, 9.0, 1.24], (2, 'DRYER'): [106.0, 120.0, 5.0, 1.24], (2, 'WASHING'): [70.0, 90.0, 11.0, 0.19]} ``` The keys are composed by two values `(n,a)` and I w...
2018/03/19
590
1,871
<issue_start>username_0: I'm writing an application on node.js I need to insert a Static Google Map. The code looks like this ``` .panel.panel-primary .panel-heading h2.panel-title On the map .panel-body img.img-responsive.img-rounded(src="http://maps.googleapis.com/maps/api/staticmap?center=#{lo...