date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/08
807
2,968
<issue_start>username_0: I know this has been covered a lot here, but none of the solutions seem to work for me. The scrollbar is still showing up on Windows OS (Firefox, Edge & IE). `Note: I don't want to mess with padding/margins` I can make it disappear but I loose scroll functionality. Here are some of the things...
2018/03/08
718
3,029
<issue_start>username_0: The checksum of a HDFS block is stored in a local file, along with the raw content of the block, both on each of the dedicated datanodes (replica). I am wondering: is the checksum of a block stored **also** within the namenode, as part of the metadata of a file?<issue_comment>username_1: No. T...
2018/03/08
918
3,262
<issue_start>username_0: I have a table `Conservation_Dev` with these columns (amongst 30 other): * `I3_IDENTITY` - a `BIGINT` and a unique key * `STATE` - a 2-letter US state abbreviation * `ZONE` - when I want to store the time zone for this record I also have a table `TimeZoneCodes` that maps US states to time zon...
2018/03/08
516
1,883
<issue_start>username_0: After doing hierarchichal clustering on my dataset and plotting it with dendrogram function it seems that it was correct clustered, but when I call function fcluster to extract the cluster ids I just get one cluster id, ever. Why is this happening? My code: ``` for key, values in use_case...
2018/03/08
1,557
3,028
<issue_start>username_0: I am looking to mimic Excel's SumIfs() function in R by creating a mean-if vector of conditional averages for each observation. I've seen a lot of examples that use `aggregate()` or `setDT()` to summarize a data frame based on fixed quantities. However, I'd like to create a vector of these summ...
2018/03/08
1,820
7,255
<issue_start>username_0: I have a program that prompts the user for a string, an initial base, and a final base. The program works fine for all digits however, when I enter in a string mixed with digits and characters it does not return the correct answer. For example, when I input the string BDRS7OPK48DAC9TDT4, origin...
2018/03/08
990
3,773
<issue_start>username_0: I have a dataset with a column having values: ``` .. >= 7 years 1 <= ... < 4 years 4 <= ... < 7 years 4 <= ... < 7 years 1 <= ... < 4 years 1 <= ... < 4 years ``` I am trying to remove the spaces & also the "..." I have used the following codes: ``` data.columns = data.columns.map(lambda x...
2018/03/08
406
1,163
<issue_start>username_0: I want to make a child component that takes the formGroup and adds validations but I receive an error because the child component does not perceive that it is inside the parent's "form" How could I solve this problem? father component: ``` ``` child component: ``` ### Label ``` <https:/...
2018/03/08
356
1,045
<issue_start>username_0: Created SPA application using Angular 4, .net core 2. Used bootstrap for styling. After successfully upgrade from angular 4 to angular 5 all the bootstrap styling is gone. Looks like the bootstrap.css is not being loaded.<issue_comment>username_1: in the child component you cannot specify the...
2018/03/08
491
1,906
<issue_start>username_0: I want to show a message when I have follower in the document and they are not users of Odoo. So I created two computed fields, one for the message and another one to check if the message should be shown. ```py class SaleOrder(models.Model): _inherit = 'sale.order' @api.multi @api...
2018/03/08
831
3,370
<issue_start>username_0: We're trying to figure out how to conditionally exclude certain screens in our back-stack when navigating backwards. For instance, take the following screens: 1. Main Dashboard (You can go to 2 or 3 from here) 2. Order Management (you can go to 3 or 6 from here) 3. Enter Order 4. Review Order ...
2018/03/08
771
2,940
<issue_start>username_0: I would like to ask how we should approach the issue with context propagation in Golang. My application is an HTTP JSON API server. I would use the context as a container of informative data (e.g. the request id, some things I unpack from requests or from the process). One of the dumbest adv...
2018/03/08
1,111
3,941
<issue_start>username_0: I have a TABLE1 and TABLE2 with same columns(around 15) except TABLE2 has additional date fields. I am trying to loop through TABLE1(around 25,000) rows and insert into TABLE2 if row doesn't exist. This can be done without any issues but I would like to update TABLE2 only if any column value i...
2018/03/08
480
1,240
<issue_start>username_0: I have a dataframe like this: ``` a=c(rep(1,3), rep(2,2)) b=c(2,4,7,9,1) df <- data.frame(a,b) > df a b 1 1 2 2 1 4 3 1 7 4 2 9 5 2 1 ``` I want to create a list with as many elements as different values in column "a" (in this case "2") and store the values of column "b" in the list acco...
2018/03/08
355
1,017
<issue_start>username_0: I've got Notepad++ and XML Tools plugin. I want to know how can I format invalid code like this: ```xml aaa ``` It should be formatted like this: ```xml aaa ``` When I tried to use XML Tools plugin with this example obviously I receive this error: > > "Errors detected in content...". > ...
2018/03/08
1,555
6,146
<issue_start>username_0: I have a class where I am injecting two service dependencies. I am using Unity container. ``` public interface IOrganizer { void Method1(); void Method2(); void Method3(); } public class Organizer : IOrganizer { private IService1 _service1; private IService2 _service2;...
2018/03/08
1,058
3,744
<issue_start>username_0: I am running Windows 10 with Vagrant 2.0.2 installed. Just did the update to it and now plugins do not install. It does not matter what the plugin is. Here is an example of the error: ``` C:\Users\Curtis\Projects\local.app.lodgable.com>vagrant plugin install vagrant-triggers Installing the 'va...
2018/03/08
685
1,936
<issue_start>username_0: So I am trying to convert some Day of the Year dates to Date format. The problem is some day of the year dates are in DDYYYY format for days under 100 and DDDYYYY format for days 100 and over. I have tried the following but still receive a "day of year must be between 1 and 365 (366 for leap ye...
2018/03/08
247
807
<issue_start>username_0: I'm currently working on a Rails `Rails 4.2.6` and `ruby 2.2.2p95`. I get the following error.[![enter image description here](https://i.stack.imgur.com/ey6dQ.png)](https://i.stack.imgur.com/ey6dQ.png) Why are the assets not being precompile in development? I tried adding `gem 'sprockets-rails...
2018/03/08
386
1,274
<issue_start>username_0: I've downloaded saveppt2, jrichter's code and even `WritetoWordfromMatlab` and tried reading through them to figure it out with no luck. I have something of my own built already so I just need to figure out how to get tables to work. Whenever I try something like: ``` myTable.Cell(1,1).TextFr...
2018/03/08
663
2,246
<issue_start>username_0: I want to be able to create components or modules or services in folder external to /src/app/... so i've tried with ng g c ../mco/lib but it fail. I want to be able to create with the CLI a component in folder external to app. how can i achieve this ? EDIT ---- You can change the appRoot ...
2018/03/08
673
2,300
<issue_start>username_0: It seems like a lot of people have this issue, but I haven't found a solution to my specific case yet. I start by sending my tickets to my view ``` [HttpGet] public ActionResult AddPopcorn() { List tickets = new List(); // Fill the list with tickets return View("AddPopcorn",...
2018/03/08
569
1,870
<issue_start>username_0: i try to set up a MongoDB and get a connection to the Database with Node.js. I am currently working with a Raspberry Pi 2. And the MongoDB Version= 2.4. If I try to execute this code: ``` var MongoClient = require('mongodb').MongoClient; var url = "mongodb://localhost:27017/mydb"; MongoClie...
2018/03/08
1,559
5,476
<issue_start>username_0: I have a `recipe` model: ``` class Recipe(models.Model): title = models.CharField(_("Recipe Title"), max_length=250) slug = models.SlugField(_('slug'), unique=True) author = models.ForeignKey(User, verbose_name=_('user')) ... ``` I need create a view for most commented recipes, i...
2018/03/08
737
2,653
<issue_start>username_0: I am trying to find if a number falls in a range, and one or both of the numbers of the range can be floats. I.E. ``` if x in range(0.5, 3.5): pass ``` ***I understand range only accepts integers*** So, how do I find a range between one or both floats in python. I searched around and...
2018/03/08
353
1,319
<issue_start>username_0: I have just begun using Django and after a long time struggling I finally made the login work. The only problem is that I have to go to ip\_address/accounts/login/ to login. I want to have this as the first thing you see, so on the link: ip\_address/ I was wondering if there is such a thing l...
2018/03/08
1,157
4,480
<issue_start>username_0: I am using Specflow to perform BDD tests. I am trying to test my navigation menu on multiple browsers. Particularly making sure that buttons are showing up accross browsers. I do not want to create a bunch of tests for each menu item specifically on each browser and I do not want to create a la...
2018/03/08
534
1,880
<issue_start>username_0: I want the user to be able to enter a new number and it will be added to what is currently saved in UserDefaults and then save that combined number in user defaults. Anyone have any idea how to do this? Thanks! Code: ``` let typeHoursInt = Double(typeHours.text!)! let typePayInt = Dou...
2018/03/08
606
2,436
<issue_start>username_0: I'm doing some basic graphing of data using Chartjs combined with an ajax call to a third-party database. When the user searches for an item and triggers that search by a button click, a default graph is automatically generated on the new page. I'd like the user to be able to customize the gra...
2018/03/08
630
2,448
<issue_start>username_0: In order to install Selenium, step 3 on ([this site](http://selenium-python.readthedocs.io/installation.html#drivers) indicates needing to install the chromedriver file in your PATH. I am on a work computer that does not have access to the system PATH directly. I have tried listing in the local...
2018/03/08
1,280
4,425
<issue_start>username_0: This question is in reference is an observation from a [code-golf challenge.](https://codegolf.stackexchange.com/questions/157522/convergence-of-a-markov-process#157529) The submitted R solution is a working solution, but a few of us (maybe just I) seems to be dumbfounded as to why the initial...
2018/03/08
652
2,361
<issue_start>username_0: I have a method to automatically add checkable actions on a menu and it's working perfectly. I just like to know how to unchecked all these actions automatically. I know that it's possible with `ui->action_item->setChecked(false)` but in this case I should know and write each action name in the...
2018/03/08
257
954
<issue_start>username_0: I got a problem when i go on my website with https. The CDN of jquery is blocked. Here is the message send in console `Mixed Content: The page at 'https://eoxys-esport.com/?here=home' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery-3.3.1.min.js'. This requ...
2018/03/08
1,268
3,221
<issue_start>username_0: Need some help creating and calling a function.. Current code: ``` Table1 = Table1.assign(Field3 = np.where(Table1.Field1.astype(str).str[0:5].isin(['CEQTY','LPCEQ']), Table1.Field2, 0)) ``` Potential function? ``` def func(a,b): Table1 = Table1...
2018/03/08
1,039
2,997
<issue_start>username_0: I'm trying to push my image to my docker repositoy repository using gitlab-ci, but i'm receiving the error: **denied: requested access to the resource is denied ERROR: Job failed: exit code 1** My *.gitlab-ci.yml* ``` # This file is a template, and might need editing before it works on your ...
2018/03/08
669
2,651
<issue_start>username_0: Recently we've experienced issues with both Non-Production and Production clusters where the nodes encountered 'System OOM encountered' issue. The nodes within the Non-Production cluster don't seem to be sharing the pods. It seems like a given node is running all the pods and putting a load on...
2018/03/08
514
1,948
<issue_start>username_0: I would like to use the chart.js library for an embedded project. Today I am using the Chart.min.js file which is about 150 Kb in the latest (2.7.2) version but the file is using all the space of my system. Actually, I am only using the Line-Chart of this library. Is it possible to delete all ...
2018/03/08
727
3,017
<issue_start>username_0: I've read the stateful stream processing [overview](https://cwiki.apache.org/confluence/display/KAFKA/Kafka+Streams+Internal+Data+Management) and if I understand correctly, one of the main reasons why the RocksDB is being used as a default implementation of the key value store is a fact, that u...
2018/03/08
1,155
2,737
<issue_start>username_0: Dataframe (Assume all values as categorical): ``` df = pd.DataFrame( {"a" : [1 ,2, 3, 4, 5], "b" : [2,1,3,4,5], "c" : [1,3,4,2,5]}, index = [1, 2, 3, 4, 5]) ``` I want to find what percentage of overlap is present between different columns ``` check_a_b = df.a == df.b check_b_c = df.b == d...
2018/03/08
1,019
2,459
<issue_start>username_0: I'm using re.findall to parse the year and month from a string, however it is only outputting patterns from half the string. Why is this? ``` date_string = '2011-1-1_2012-1-3,2015-3-1_2015-3-3' find_year_and_month = re.findall('[1-2][0-9][0-9][0-9]-[1-12]', date_string) print(find_year_and_m...
2018/03/08
801
2,274
<issue_start>username_0: I'm trying to write a code that finds the multiples of 3 and 5 in an array of numbers 1 to 100, the code I have generates the numbers I want but it gives me the multiples of 3, then gives me the multiples of 5 (Example: 3 6 9 12 15,5 10 15) I want them all together (Example 3 5 6 9 10 12 15). ...
2018/03/08
651
1,916
<issue_start>username_0: So I know how to sort a mixed column of numbers, i.e. ``` A1, A2, A3 ``` My question is if it had a mixed set of numbers i.e. ``` Name_01022017_number-001 ``` How would I go about sorting by that second number set and not the first set? I'd rather sort by that number than the date. Tha...
2018/03/08
762
2,857
<issue_start>username_0: I'm trying to set up Lambda transformations with a Firehose delivery stream. I have an IAM role defined for the Firehose which includes the following policy document: ``` { "Statement": { "Action": [ "lambda:InvokeFunction", "lambda:GetFunctionConfiguration"...
2018/03/08
620
2,234
<issue_start>username_0: How to prevent automatic updates being applied to the Cloud SQL instance. I see Type as Update and Status as Done for many entries. Its a MySQL 5.7 instance. How should I prevent Updates on my Cloud SQL instance? <https://cloud.google.com/sql/faq#maintenancerestart><issue_comment>username_1: ...
2018/03/08
2,580
9,321
<issue_start>username_0: Problem ======= Converting a `webpack` project that runs locally right now to run inside `docker` containers. This work takes place in two `git` branches: `develop`, and `containers`. Local (No Container) ==================== `develop` is the stable base, which runs locally via `$ yarn insta...
2018/03/08
584
1,774
<issue_start>username_0: I have a query that gets the count of my field, but i want to include nulls. I get a count of 10. ``` select in_currency, count(*) from stackoverflow where bd_business_day = '2018-02-09' and scenario_set_name ('A','null') group by in_currency ``` but this count is getting me just total of A,...
2018/03/08
880
3,178
<issue_start>username_0: I am trying to receive JSON data from a web page and display it to a graph from google charts api. I want the graph to be live, and add data as it goes along. Please can you help point me in the right direction from this stage as my chart won't even show. ``` {% block body %} google.char...
2018/03/08
1,490
5,479
<issue_start>username_0: I want to plot a 3D histogram with Gnuplot using a style commonly used in Matlab. The sequence of steps I follow are: ``` set palette defined ( 0 '#000090',\ 1 '#000fff',\ 2 '#0090ff',\ 3 '#0fffee',\ 4 '#90...
2018/03/08
727
2,308
<issue_start>username_0: I have a vector of size 5 which stores random digits 0-9 so that there can be multiple occurrences of the same digit. Here is an example vector: `nums <- c(5,2,5,9,2)` If I print the results of running the table function on this vector, I get the following output: ``` nums 2 5 9 2 2 1 ``` ...
2018/03/08
988
2,769
<issue_start>username_0: I want to return the rows between a specific time interval, i.e. between 01:00:00 and 01:05:00, and then calculate the sum of another column. The column data type is TIME. I tried 'between...and' command but it didn't work. Moreover, I want to do the same calculation for every five minutes. *...
2018/03/08
837
2,994
<issue_start>username_0: I have a variable called `IndependentVar1random` that has 2 possible values (A or B). If the `IndependentVar1random` is "A", I want `DependentVar1random` to equal either 'a' or 'aa'. (If `IndependentVar1random` is "B", I don't want `DependentVar1random' to equal anything.) I tried the followin...
2018/03/08
224
862
<issue_start>username_0: I made a view for a switch view. Now I already had tabbed menu buttons in it. The problem is the subview for the switch view seems to be overlapping with the tab bar icons at the bottom. Please help. ![iphone x screenshot](https://i.stack.imgur.com/G7Jycl.png)<issue_comment>username_1: You sho...
2018/03/08
408
1,238
<issue_start>username_0: I have some `nav-tabs` and I am trying to insert two `a` tags inside one of the `li` tags that is one of the tabs. The issue I am having is that the `a` tag appear on different lines. I have tried to inline the `a` tags but that does not seem to work. What should I do so both `a` tags are on th...
2018/03/08
4,310
15,754
<issue_start>username_0: Basically I am building this site/portal where a user is able to log in, fill out some information and store it (stores in the database). There is also admins. When admin logs in it opens up an admin page which has a table of all registered users on the site. What I need to to is when an admin ...
2018/03/08
501
1,629
<issue_start>username_0: When I specify a test in a nested class in Kotlin as follows ... ``` import org.junit.jupiter.api.* class ParentTest { @Nested class NestedTest { @Test fun NotFoundTest() {} } @Test fun FoundTest() {} } ``` ... it is not recognized by JUnit when runn...
2018/03/08
475
1,340
<issue_start>username_0: I am trying to write a RegEx for replacing a character in a string, given that a condition is met. In particular, if the string ends in `y`, I would like to replace all instances of `a` to `o` and delete the final `y`. To illustrate what I am trying to do with examples: ``` Katy --> Kot cat...
2018/03/08
1,157
3,161
<issue_start>username_0: I'm trying to create a code where the first two numbers of a tuple are multiplied, and then totaled with other tuples. Here's my very wonky code: ``` numbers = [(68.9, 2, 24.8), (12.4, 28, 21.12), (38.0, 15, 90.86), (23.1, 45, 15.3), (45.12, ...
2018/03/08
433
1,463
<issue_start>username_0: I see this questions is quite common yet none of the answers work as expected. I have a list of objects and I need to remove some of those objects when their Id is in a specified list. I tried List.RemoveAll but that just returns an integer, not the modified list. How do I get back my list, min...
2018/03/08
535
1,639
<issue_start>username_0: The question is simple. I did something wrong but I can't find the solution. Am I missing something? ``` function harveyScrabble($mot){ $worth10Points = array("y","Y"); $worth5Points = array("v","V"); $worth3Points = array("h","H"); $worth2Points = array("r","R"); $worth1P...
2018/03/08
608
2,145
<issue_start>username_0: We have a MVC.Core project where we're having problems deserializing a DateTime value from a string into a DateTime property. Here's an example: ``` public class TestClass { public RecordStatus RecordStatus { get; set; } = RecordStatus.Active; [System.ComponentModel.Browsable(false)]...
2018/03/08
784
2,590
<issue_start>username_0: I'm trying to open a Kafka (tried versions 0.11.0.2 and 1.0.1) stream using `createDirectStream` method and getting this AbstractMethodError error: ``` Exception in thread "main" java.lang.AbstractMethodError at org.apache.spark.internal.Logging$class.initializeLogIfNecessary(Logging.scala...
2018/03/08
560
1,904
<issue_start>username_0: [`str.isspace()`](https://docs.python.org/3.1/library/stdtypes.html#str.isspace) is very convenient to check whether a line is empty (it encompasses the space and return characters). Is it possible to extend with some other characters (say, a comma) which should also be treated as "space chara...
2018/03/08
362
968
<issue_start>username_0: I do a ps -ef command and I have few parameters that I pass on to the commands that are running. I want to print only the process name which comes after the hostname\process1. I cannot use awk command with -f to break up the line; it's not practical as ps command output differs. So perhaps ther...
2018/03/08
598
2,205
<issue_start>username_0: I have a series of 2d images of two types, either a star or a pentagon. My aim is to classify all of these images respectively. I have 30 star images and 30 pentagon images. An example of each image is shown side by side here: [![Sample Images](https://i.stack.imgur.com/kCTbn.png)](https://i.s...
2018/03/08
960
3,573
<issue_start>username_0: **The Problem** We have an excel vba macro we have been using to copy sheets into a new workbook to create a "report" version of a file for many years. The code fails at this line of code: ``` ThisWorkbook.Worksheets(array_sheet).Copy ``` And throws the following errors: > > File not fou...
2018/03/08
2,765
6,848
<issue_start>username_0: I'm trying to find a regex that matches URLs with three or more repeating segments (and may include any number of directories) such as: * `s1 = 'http://www.foo.com/bar/bar/bar/'` * `s2 = 'http://www.foo.com/baz/biz/baz/biz/baz/biz/etc'` * `s3 = '/foo/bar/foo/bar/foo/bar/'` and not match URLs ...
2018/03/08
837
2,859
<issue_start>username_0: As part of a project of mine I'm trying to move certain lines from a file to the top, sorted in a certain fashion. I'm not sure how to do the sort once those lines are up there - I don't want to disturb the other lines in the file. I'm moving them by yanking them and putting them back down, l...
2018/03/08
490
1,725
<issue_start>username_0: I'm new to JMeter BeanShell PreProcessor function. For a test I'm trying to print sample URL address. From the tutorial I have the follownig code: ``` org.apache.jmeter.samplers.SampleResult; String currentURL = SampleResult.getUrlAsString(); print(currentURL) ``` But I get error "Attempt ...
2018/03/08
603
1,637
<issue_start>username_0: I'm trying to add a top margin to every `li` element in a `ul` element that has the css property `column-count: 2` set. For some reason, the margin works for every `li` element except the first element in the second column: ```css ul { column-count: 2; padding: 0; border: 1px solid bl...
2018/03/08
1,065
3,564
<issue_start>username_0: I try to dispatch between two functions using `if constexpr`. The dispatcher function should accept for example `std::size_t` and an arbitrary class type. It works if I just call it with a scalar type, but if I try to pass a class type it triggers a compile error which is not really helpful to...
2018/03/08
677
2,049
<issue_start>username_0: I'm confused by this code: ``` /** * Lift a function of one argument to a function which accepts and returns values wrapped with the type constructor `F` */ export function lift( F: Functor3 ): (f: (a: A) => B) => (fa: Type3) => Type3 export function lift( F: Functor3C ): (f: (a: A) => B) ...
2018/03/08
2,153
8,449
<issue_start>username_0: I have a VARCHAR(MAX) string field in SQL that, in some instances, contains up to 100k char in LEN. Lets call it [Notes\_Comments]. The contents of the field, [Notes\_Comments], are notes and comments and in several instances have those notes and comments copied/pasted in multiple times. There...
2018/03/08
834
3,134
<issue_start>username_0: I'm running into an issue that appears to be due to my lack of understanding with webpack. I have created a file structure that looks like this: ``` |-serverless-cloud-functions ||-my-local-libs |||-twilioClient ||-service1 ||-service2 ``` twilioClient is a library that I made, that needs t...
2018/03/08
1,753
6,608
<issue_start>username_0: I have a question about sorting String[] arrays using the **Insertion Sort Algorithm** in Java. I do realize that my question may very well be easier to complete using a different algorithm, but I am attempting to learn how everything works with this one first. Basically, I am attempting to so...
2018/03/08
557
1,946
<issue_start>username_0: I have two tables in db, and from the apis, i'm creating loops: ``` some content \*ngIf and \*ngFor on same element causing error and after this: ``` ![enter image description here](https://i.stack.imgur.com/nCgnw.png) Is that correct result? Or is there any way to create only that div w...
2018/03/08
789
2,189
<issue_start>username_0: I am trying to match the string when there's 0 or multiple dots. The regex that I can only match multiple dots but not 0 dot. ``` (\w*)((\w*\.)+\w*) ``` These are the test string I am using ``` dial.check.Catch.Url dial.check.Catch.Url.Dial.check.Catch.Url 32443.324342.23423424.23.423.423...
2018/03/08
516
1,879
<issue_start>username_0: I have following command: ``` add_custom_command( TARGET Packaging POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy source_file target_file ) ``` Sometimes the `source_file` is a symlink. However, when it is copied, the referenced file is copied not the symlink. How can ...
2018/03/08
731
2,681
<issue_start>username_0: In the code below, why does the header text change on page load, and not only after the button is clicked? ``` This is a header ================ Change text function change\_text(target\_id, target\_text) { document.getElementById(target\_id).textContent = target\_text; } button1 = docume...
2018/03/08
475
1,560
<issue_start>username_0: I was trying to call another function inside function iseven(n): ``` function iseven(n) { function remainder(n) { if (n%2==0) { return true; } else { return false; } } } console.log(iseven(4)); ``` It returns undefined. a right way to ...
2018/03/08
1,090
3,767
<issue_start>username_0: I'm trying to disable Internet Explorer Enhanced Security Configuration using PowerShell in Packer on AWS when building a Windows Server 2016 instance from their latest AMI. I'm calling the following function in PS from one of the packer provisioners: ``` function Disable-InternetExplorerESC ...
2018/03/08
840
2,780
<issue_start>username_0: The trouble I'm having is that these tuples are inside a list of lists of lists as shown below: ``` giantlist = [[[(0,2), (2,3), (4,5)],[(0,2), (3,4), (6,8)], [(3,4),(0,2)]]] ``` So, my issue is trying to traverse through each list and find out if they have tuples in common which I then like...
2018/03/08
720
2,891
<issue_start>username_0: I have changed spring-boot-starter-parent from 1.4.3 to 1.5.4 ``` org.springframework.boot spring-boot-starter-parent 1.5.4.RELEASE ``` This is my java application file ``` @SpringBootApplication @ComponentScan("com.test") @EnableCaching @EnableAsync @EnableAspectJAutoP...
2018/03/08
1,063
2,968
<issue_start>username_0: This is a [solved problem](http://massivealgorithms.blogspot.com/2016/07/missing-int.html) where the we have to find a missing integer from the input data which is in form of a file containing 4 billion unsorted unsigned integers. The catch is that only 10 MBytes of memory can be used. The aut...
2018/03/08
1,013
3,270
<issue_start>username_0: I have an excel CSV file that I have imported into a database. There is a field called groups that includes all the groups a specific person belongs to. The groups are separated by a | (Pipe) character. I would like to run through this field for each person searching for the group to see if the...
2018/03/08
1,337
5,028
<issue_start>username_0: this sounds like a dumb question but.. I'm starting in JS/MySQL and I'm using a front-end reactJS and back-end nodeJS. I'm trying to make a select form using the values from a table in MySQL database. This should be possible right? here's my code (using a react component, semantic-ui forms) `...
2018/03/08
998
3,736
<issue_start>username_0: After some reference I'm able to remove particular word from a `string` .But I wonder why words with special charecters are not removed . Code: ``` String txt = "It is an @example example"; String regex = "\\s*\\b@example\\b\\s*"; String finalSt = txt.replaceAll(regex, ""); demoTxt.setText(f...
2018/03/08
324
1,326
<issue_start>username_0: I am using Spring 5 Oauth2. I can see current valid tokens. ``` Collection tokens = tokenStore.findTokensByClientId("clientIdPassword"); if (tokens != null) { for (OAuth2AccessToken token : tokens) { tokenValues.add(token.getValue()); } } ``` Above code block shows me valid tokens whos...
2018/03/08
559
2,189
<issue_start>username_0: I have two Observables of different types and what I would like to do is to wait for both to emit at least once then somehow immediately return a promise of a third Observable with yet another return type. Right now I have this: ``` return Observable.forkJoin([$A, $B]) .do(() => { ...
2018/03/08
682
2,288
<issue_start>username_0: I've created a project with **react-native-cli** and installed some pods via **cocoapods** but eveytime I try building the project in Xcode it gives me this strange error: **Non-portable path to file /UUsersCcrysilDDesktopaapp-demoiiosPPodsTTarget Support Filesyyogayyoga-prefix.pch; specified...
2018/03/08
833
2,441
<issue_start>username_0: My application function normality on chrome and iexplorer, but not in firefox. I want him to return to the input if he does not answer the request. Code example: ```js $('#txtTime').blur(function() { var days = parseInt($('#txtTime').val()); if (days < 1 || days > 90) { $('#msg_da...
2018/03/08
1,029
3,805
<issue_start>username_0: I'm studying a simple example of Builder Design Pattern. So my question is, if I try to instantiate my Phone class directly, it wont accept null for the int parameter which is understandable since it is a primitive type. However when I use the builder and I don't set the value of an Int ...
2018/03/08
1,255
3,903
<issue_start>username_0: I'm trying to run the Movidius `NCSDK` on macOS. Using the NCSDK on macOS requires VirtualBox plus docker since this USB stick must run on Ubuntu16.04 and it supports `Tensorflow` and `Caffe`. I have successfully compiled the NCSDK on docker using [this Dockerfile](https://github.com/loretopari...
2018/03/08
424
1,483
<issue_start>username_0: Error msg appears on the site if any error occurs dynamically. In my case, if error occurs, popup appears and I need to click on OK button. The problem is, using all Selenium tricks, I cannot avoid NoSuchElementException, or 'Cannot click on element' exceptions. Expectation: If error popup ap...
2018/03/08
568
1,862
<issue_start>username_0: I would like to create a text file in Python, write something to it, and then e-mail it out (put `test.txt` as an email attachment). However, I cannot save this file locally. Does anyone know how to go about doing this? As soon as I open the text file to write in, it is saved locally on my c...
2018/03/08
600
2,047
<issue_start>username_0: Given the following array: ``` let ignoredViewControllerTypes:[UIViewController.Type] = [ ViewControllerB.self, ViewControllerC.self ] let allViewControllers = [ viewControllerAInstance, viewControllerBInstance, viewControllerCInstance, viewControllerDInstance ] ``` ...
2018/03/08
942
3,153
<issue_start>username_0: I made a script in PHP to download a file outside *public\_html* (for security reasons) and for that I used the following script: ``` php if(condition){ set_time_limit(60 * 5); ini_set('max_execution_time', 60 * 5); $path = "path/to/files"; $fd = fopen($path, "rb"); if ($fd...
2018/03/08
1,180
3,921
<issue_start>username_0: I know there are very similar questions asked previously but before I make any drastic changes I thought I would post the question here first. This is the error I'm getting. My build.gradle is like this ``` android { compileSdkVersion 27 buildToolsVersion '26.0.2' defaultConfig...
2018/03/08
822
3,032
<issue_start>username_0: I'm trying to get my checkbox validation working for my app. Basically, I enter a vehicle id number (VIN) and the system checks if there is a duplicate in the database. We want to allow the duplicate if the user clicks a checkbox to allow it. Here is my current code: View: ``` .field-row ...
2018/03/08
376
1,093
<issue_start>username_0: How can I get the header from a CSV file and write it to another file ? This code works if I don't have many columns in the CSV file, but it doesn't work when my CSV file contains 200+ columns. It just echoes the column header (but not all of them, they are truncated) to the screen. ``` @echo ...
2018/03/08
1,194
3,867
<issue_start>username_0: I am trying to use the onAuthStateChanged trigger but I am getting "is not a function" when using "firebase deploy". when executing : ``` firebase deploy ``` I got the following error: ``` Error: Error occurred while parsing your function triggers. TypeError: firebase.auth(...).onAuthStateC...