date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
437
1,663
<issue_start>username_0: I've searched the net for this, but I couldn't really find an answer. I've found this though: <https://msdn.microsoft.com/en-us/library/hh875057.aspx> It says that C++ is a part of the .NET framework, and the headline writes "C/C++", but there wasn't much about C, so I wasn't able to understa...
2018/02/28
945
3,445
<issue_start>username_0: I'm pretty new to python, even less experienced with flask, and I cannot figure out this issue. I have the following simple web page with jQuery functionality that works great when I double click the file and open it in a browser: ``` $(document).ready(function() { $("#updateBtn").on("click...
2018/02/28
397
1,207
<issue_start>username_0: I am trying to generate map markers for a Google map based off data attributes of a set of divs. I need the array to end up looking like this: ``` var markers = [ [51.503454,-0.119562], [51.499633,-0.124755] ]; ``` Here's what I have tried so far: ```js var markers = []; $(functio...
2018/02/28
823
2,961
<issue_start>username_0: I have a multi-dimensional Array with unknown dimensions **at compile time** but at runtime (when i receive such Array) its dimension are described `int[] dimensions`. The length of `dimensions` is equal to the Rank of the Array and each element of `dimensions` contains the length of the releva...
2018/02/28
631
1,746
<issue_start>username_0: Changes to my table info on my CSS sheet doesn't seem to be changing when I run run the application. The CSS is mostly pre-generated from when I created the MVC. I just want tables to have borders so I added the "border: solid 2px black" portion. However it doesn't seem to be adding the border....
2018/02/28
1,110
4,570
<issue_start>username_0: I have some code which does a binary search over a file with sorted hex values (SHA1 hashes) on each line. This is used to search the [HaveIBeenPwned](https://haveibeenpwned.com/Passwords) database. The latest version contains a count of the number of times each password hash was found, so some...
2018/02/28
1,698
6,315
<issue_start>username_0: I have the following swagger code addCustomer for sending a request that includes an image along with other json data. When I run code from swagger hub; it just sends json. Am I defining this right? Shouldn't it send multipart request? ``` post: tags: - customers summary: Add a new cus...
2018/02/28
1,478
4,588
<issue_start>username_0: I would like to know, whether I used [toPILImage](http://pytorch.org/docs/master/torchvision/transforms.html#torchvision.transforms.ToPILImage) from torchvision correctly. I want to use it, to see how the images look after initial image transformations are applied to the dataset. When I use it...
2018/02/28
947
3,909
<issue_start>username_0: I have a fresh Visual Studio 2017 Professional install. I'm building a quick POC Console application using .NET 4.7.1, and I'm unable to find the reference for System.Data.SqlClient. I have scoured my system, and located 4 versions of System.Data.SqlClient.dll, but none are correct and won't c...
2018/02/28
759
2,888
<issue_start>username_0: I want to extract the total page number (11 in this case) from a steam page. I believe that the following code should work (return 11), but it is returning an empty list. Like if it is not finding `paged_items_paging_pagelink` class. ``` import requests import re from bs4 import BeautifulSoup ...
2018/02/28
2,206
7,940
<issue_start>username_0: I am training a Keras (Tensorflow backend, Python, on MacBook) and am getting an error in the early stopping callback in fit\_generator function. The error is as follows: ``` RuntimeWarning: Early stopping conditioned on metric `val_loss` which is not available. Available metrics are: (self....
2018/02/28
472
1,490
<issue_start>username_0: I have csv file, i am reading data from it, i have join all which are randomly matching their rows like brands, customer and soon.., Here i want to remove all duplicate from multi dimensional array which already in array Here you can see how all duplicate values are appending to array: ![imag...
2018/02/28
568
2,212
<issue_start>username_0: Hi I was trying to write a front-end testing using mocha chimp and webdriverio. as I had to work with different id in font end, in every block I had to define them for various purposes. I tried to define the ID outside the describe block then it shows browser is not defined. here is the sample ...
2018/02/28
507
1,708
<issue_start>username_0: I was testing my dataset and was trying to compare strings using pandas StringMethods and discovered that I cannot compare boolean array generated by the StringMethods with another boolean array unless saving it to the variable ``` import pandas as pd df = pd.DataFrame([{"pet":"cat", "gender...
2018/02/28
320
1,082
<issue_start>username_0: I'm searching for the Terraform equivalent of "aws ec2 import-image --description "Windows 2008 OVA" --license-type --disk-containers file://containers.json" but cannot find a matching resource command in the documentation. The purpose is to lift an OVA image out of S3 and covert to AMI so it ...
2018/02/28
575
2,088
<issue_start>username_0: I am working on ReactJS application and configured `"webpack": "^2.7.0"`, `"webpack-cli": "^2.0.9`" but while running the webpack from cmd it has the following error. ``` const statsPresetToOptions = require("webpack").Stats.presetToOptions; ...
2018/02/28
520
1,892
<issue_start>username_0: I'm trying to test if an array has the second dimension added. It it does I push the new record onto it, if it doesn't I add the second dimension then do the push. I've read in multiple places the way to test for the 2nd dimension being undefined, but it is not working for me. Here's the code: ...
2018/02/28
405
1,161
<issue_start>username_0: Table : ``` a | b 1 | 15 2 | 10 3 | 20 4 | 30 ``` Query: ``` SELECT AVG(table.b) FROM table ORDER BY table.a ASC LIMIT 3 ``` Will return 18.75 instead of expected 15. How can I change the query to get my expected result (`AVG` value for a limited amount of rows)?<issue_comment>username_1...
2018/02/28
2,159
3,375
<issue_start>username_0: Hi everyone I found something similar to what I need to do but it doesn't work with my full data > > [How to remove rows after a particular observation is seen for the first time](https://stackoverflow.com/questions/48219968/how-to-remove-rows-after-a-particular-observation-is-seen-for-the-fi...
2018/02/28
439
1,518
<issue_start>username_0: I have extended the base User from Django with the OneToOne method. ``` class Employee(models.Model): user = models.OneToOneField(User, on_delete = models.CASCADE) floor = models.CharField(max_length = 100) avatar = models.ImageField(upload_to='userimages') ``` The image is uplo...
2018/02/28
518
1,808
<issue_start>username_0: Given the following code, how come `Dog.speak` does not return `"here is the @var variable"`: ``` class Dog class << self @var = "here is the @var variable" def speak @var end end end p Dog.speak ``` Instead it returns `nil` My understanding: `class << self` opens up...
2018/02/28
400
1,404
<issue_start>username_0: I get all shapes assigned to baseMaterial, select the shapes and then assign the occlusionShader. ``` for materialClass in materialClassList: select(materialClass.baseMaterial) hyperShade(objects="") hyperShade(a=materialClass.occlusionShader) ``` works just fine, but if I use it...
2018/02/28
358
1,236
<issue_start>username_0: I tried to add `keySplines, values, keyTimes` attributes to `animate` element to simulate [easing animation](https://oak.is/thinking/animated-svgs/). Easing effect doesn't work. [jsfiddle](https://jsfiddle.net/3qanhxsv/13/) **HTML** ``` Click me ``` **JS** ``` document.getElementById("bt...
2018/02/28
1,355
4,232
<issue_start>username_0: I am trying to increase the height of an element when a user scrolls on page. I have tried several methods, but for some reason I can't get it working. The idea is following. I would like to have a div which contains duplicated content of a div below him. But, I would like it to have a var...
2018/02/28
538
2,089
<issue_start>username_0: I'm using AWS DMS to migrate data from one Postgres database to another Postgres database. Everything works fine, except one thing: the views are no replicated on my target database. I've read that this cannot be done between heterogenous database (i.e. from Oracle to Postgres) using DMS, but ...
2018/02/28
888
2,518
<issue_start>username_0: I have a weird issue with moment that i cannot explain: I have my date : `Wed Feb 28 2018 16:24:37 GMT+0100 (CET)` When I add `import 'moment/locale/fr';` the same date becomes `Sun Jan 28 2018 16:24:37 GMT+0100 (CET)` Can anyone explain what am I doing wrong ? here is the complete example...
2018/02/28
569
1,792
<issue_start>username_0: I cannot find anything on google and I know that the syntax is `after(delay_ms, callback=None, *args)`, so in a way already kinda know the answer... but anyway, I was wondering if it was possible to pass also \*kwargs into it, and how. I mean something like this: ``` frame.after(1000, button1....
2018/02/28
1,382
4,834
<issue_start>username_0: I'm trying to run several functions at the same time (approximately or course) with different parameters and repeat that at the start of every minute. I managed to get an `asyncio` example to run where I get a function `callback` to run at specific times with a different parameter, but what I ...
2018/02/28
559
2,237
<issue_start>username_0: I'm new to android and currently learning the basics. the code below is meant to display a list of numbers (1-10). I want to understand why the code runs with no errors in android studio and it actually displays the list. **From what I see, we are declaring the variable *wordView* multiple time...
2018/02/28
1,272
5,249
<issue_start>username_0: I'm very interested in WebAssembly, yet am dismayed that even a "Hello World" example, coded in C++ & compiled using Emscripten, produces a total of 396KB to load in the browser. What gives? How can this be made more size-efficient?<issue_comment>username_1: > > The higher optimization levels ...
2018/02/28
1,531
6,052
<issue_start>username_0: I have created a Vidyo iOS app using Swift with following [this tutorial](https://vidyo.io/blog/how-to/vidyo-io-using-swift-build-ios-video-chat-app/#). But I am getting app Crash on the following: ``` connector = VCConnector(UnsafeMutableRawPointer(&vidyoView), ...
2018/02/28
656
2,213
<issue_start>username_0: I am looking for some help understanding how the request\_pieces function works. What defines what a piece is or does it take a select amount characters to build a piece e.g. The first 2000 characters will be a peice. I additionally have an error from the following PL/SQL block - PL/SQL: numer...
2018/02/28
773
2,567
<issue_start>username_0: I'm using the v1 beta of MUI. The media query breakpoints are not the same as Bootstrap v4 breakpoints I'm using and I wanted to override the values of the MUI breakpoints to match that of Bootstraps. I need to do something like below but I'm not finding enough documentation to get it to work....
2018/02/28
750
2,430
<issue_start>username_0: I am trying to fetch data on change event of `dropdown` .Firstly I loaded `list of banks` on load or when component in loaded. Now I want to fetch `state` list when user select any `bank` .I am getting this error ``` Uncaught (in promise) TypeError: _this3.setState is not a function at ev...
2018/02/28
1,991
4,339
<issue_start>username_0: I have the below Array of object set, I need to take the some of them based on the condition from the whole array set using lodash. I have used \_.filter(data, condition) in lodash, but expected result is not coming. Anyone help me to resolve this ? **Condition** : EarnCode < 90 && Hours =...
2018/02/28
1,552
7,035
<issue_start>username_0: Using the below code as a sample (there would be way more results), I am constructing an if true/false statement that will have the input as either upper or lower case. I am unsure how to utilise the tolower() function that will force the input to always be lower case for the statement. ``` [...
2018/02/28
522
1,899
<issue_start>username_0: I want a global symbol TEST2 to equal 111 in all my .cs files. How is this done in C#? ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ALPHA_CONTROLLER_CLI { class Program { static void Main(str...
2018/02/28
649
2,236
<issue_start>username_0: I have this code, but I want to set it up so that, if cell A1 = apples, then it will go to the other workbook and find the word apple and copies that value to my original worksheet. EG. Workbook (1) A1 = APPLES A2 = PEARS Workbook (2) A1 = APPLES \_\_B1 = PIE A2 = PEARS \_\_\_B2= JUIC...
2018/02/28
609
2,316
<issue_start>username_0: today the login page was changed <https://fastinvest.com/de/investor/login> and I am not able to fill in the password with selenium and chrome webdriver. I usually use XPath, but the form fields will not be filled out. I also tried to execute a javascript but I couldn't make it. It would be v...
2018/02/28
753
2,683
<issue_start>username_0: I am trying to write a PowerShell script that will enable the TCP/IP and Named Pipes Server Protocols, but my server is unable to find them. Here is the code I am using to connect to the protocols. ``` [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") [reflection.assembly]:...
2018/02/28
1,458
5,044
<issue_start>username_0: I'm using the [code from another answer](https://stackoverflow.com/a/7943765/6754782) to obtain the types of a lambda function (return and arguments). Here is the relevant code in the answer: ``` template struct function\_traits : public function\_traits {}; // For generic types, directly us...
2018/02/28
1,278
4,796
<issue_start>username_0: I have a below object where I am trying to group data using department and sub department value. I have tried using reduce function on the department name but could not achieve the desired result. For example, I have an array of department objects: ```js var arr = //Actual Object [{ ...
2018/02/28
1,162
4,488
<issue_start>username_0: I have start to build a bot and i have try to get the mouse position store on a variable x and y and then wen i click start move the mouse to the location but wen i start the bot the location its not right. How can i get the true position of it. I have try like this but i cant get the correct p...
2018/02/28
817
3,194
<issue_start>username_0: I have been following [this Flask pyjwt](https://realpython.com/blog/python/token-based-authentication-with-flask/#jwt-setup) guide, however my web app is somewhat similar to [Miguel's microblog example](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world) that uses ...
2018/02/28
733
2,620
<issue_start>username_0: I tried running below code in sql command, but the code line `start_date date DEFAULT CURRENT_DATE` had issues, got no idea why. I needed only date. But if I replace that with `start_date datetime DEFAULT CURRENT_TIMESTAMP` the SQL will run but the idea is I only need to store date and not dat...
2018/02/28
533
1,761
<issue_start>username_0: I make a join between two tables using codeigniter framework and this is my query: ``` public function SearchDataUnderCondition($firsttable,$secondtable,$data) { $this->db->select("atm.* , tender.status as tenderstatus"); $this->db->from($firsttable); $this->db->join($secondtable,...
2018/02/28
1,292
5,503
<issue_start>username_0: I have made a simple chat app and I am trying to add the phone number verification using Firebases Phone Authentication. I have successfully added all dependencies and the database works fine. But I am not getting any code via message when I hit the send OTP button. Here is the full class. ``...
2018/02/28
976
2,487
<issue_start>username_0: I'm trying to find rows that have the same `fnumber` and `fname` I can return the ones that are duplicated using this query but it only gives me the duplicates. I want to return both the duplicate row and the original. ``` WITH CTE AS( SELECT fnumber, findex,fname, RN = ROW_NUMBER()...
2018/02/28
382
1,348
<issue_start>username_0: I have a web page that refreshes constantly, where a span have a number that is changing (decreasing). Is there a way using JS for example to automatically focus the browser tab containing the web page when that number reaches less than 10 so that the supervisor takes action before hitting 0 w...
2018/02/28
541
2,036
<issue_start>username_0: I have looked up answers to this question a bunch and couldn't find a specific answer - sorry in advance if I missed something! Also, I'm a SQL optimization noob. I have an analytics dashboard which pulls data based on users' requests from a large database. Each page the user loads runs a num...
2018/02/28
986
3,074
<issue_start>username_0: I would like to create plot images from a NetCDF at each time step. My NetCDF files look like this: ``` netcdf file:/C:/home/data/cmorph/test/reduced_cmorph_adjusted_spi_pearson_01.nc { dimensions: time = UNLIMITED; // (240 currently) lat = 120; lon = 360; variables: flo...
2018/02/28
624
2,292
<issue_start>username_0: I'm aware of `mounted` and `created` being life cycle hooks and have tried them. I've also tried using `$nextTick` within mounted and that does not work to get an accurate render either. I am currently trying to access some data out of a dom node *after* the initial render. Here's the pertinent...
2018/02/28
317
1,145
<issue_start>username_0: How does one get the code from the **master** to the **local branch** called "mybranch" so the **local branch** has the latest code? Assume local branch did not have code changed since it was created from master and now it is few versions behind the master.<issue_comment>username_1: checkout to...
2018/02/28
454
1,769
<issue_start>username_0: I want to generate `&` using `System.Xml.Linq.XElement`. I tried this: `new XElement("element", "&")` but it escapes the ampersand and it generates: `&amp;` The only workaround I can think of is to create a custom class that inherits from `XText`, override the `WriteTo` method and use the `Xm...
2018/02/28
482
1,379
<issue_start>username_0: I just asked [this question](https://stackoverflow.com/q/49035097/3250782) in regards to how to achieve this in Javascript, but now I am wondering how I would go about it in PHP as well. How can I push pairs of coordinates into an array? I want the array to look like this: ``` [ [51.503454...
2018/02/28
401
1,396
<issue_start>username_0: Here is my code: ``` public function GetLatestUsers(){ $statement = $this->Db->prepare("SELECT * FROM users ORDER by id DESC LIMIT 10"); $statement->execute(); return $statement->fetch(PDO::FETCH_ASSOC); } ``` And here is the while loop: ``` php while($row = $crud-GetLat...
2018/02/28
213
716
<issue_start>username_0: Assume I have an object of type ``` std::map> data; ``` Is it possible to access the element types in a nested way (i.e. when used in ranged for loop) like this ``` for (auto [str, [my_int, my_float]] : data) /* do something */ ```<issue_comment>username_1: No, it is not possible. I disti...
2018/02/28
855
2,998
<issue_start>username_0: I have made a custom cell in a table view. There are some buttons and labels in a cell. I'm making a delegate method and call it on the action of the button. The button is also in a cell. Now i'm trying that whenever user press button the label text should increment by one. I'm trying to access...
2018/02/28
714
2,632
<issue_start>username_0: I‘m using intellij for a while now. There I work on a **javaFx project**, which is mainly written in java but I discovered Kotlin to be a nice alternative. Recently I read about coroutines in Kotlin and I just can‘t figure out how to **add the Kotlinx library to my project**. I can only find ...
2018/02/28
1,756
6,148
<issue_start>username_0: I would like to ask if anyone knows how to get out a variable from an Entry in Tkinter to be used in future calculation. Let us assume that I want to create a prompt where the user needs to place two numbers in the two different Entry widgets. These numbers are to be used in another script ...
2018/02/28
1,341
4,711
<issue_start>username_0: i have a problem and can't get my head around it. How to create a child window on pressing a button using tkinter in python were I can entry values like for example: ``` import tkinter root = Tk() Button(root, text='Bring up Message', command=Window).pack() root.mainloop() def messageWindow()...
2018/02/28
1,482
4,975
<issue_start>username_0: There is a huge matrix whose elements are numbers in the range of 1 to 15. I want to transform the matrix to the one whose elements be letters such that 1 becomes "a", 2 becomes "b", and so on. As a simple example: ``` import pandas as pd import numpy as np, numpy.random numpy.random.seed(1) A...
2018/02/28
783
2,180
<issue_start>username_0: I'm trying to extract a parameter from URLS in R. The exact position of the parameter will change so i need to identify it some other way. Here's an example of a URL: ``` https://www.example.se/-Hotell.d178317.Reseguide-Hotell-SMP?destinationId=178317&kword=ZzZz.4650002325454 ``` I want to ...
2018/02/28
1,660
5,423
<issue_start>username_0: "Write a JavaScript function to get the number of occurrences of each letter in specified string." I've tried this way, but all my outputs are 0 and I really don't get why. My idea was: Alphabetic order - so if one letter is the same with the next one, the counter increases. When it isn't the...
2018/02/28
302
1,059
<issue_start>username_0: ``` string = input('Please enter a string: ') replaced_string = string.replace(string[0],'e') replaced_string[0] = string[0] print(replaced_string) ``` I tried to replace all the letters of the first char in the string but keep the first char as it was, but apparently my code doesn't work on ...
2018/02/28
645
1,372
<issue_start>username_0: I have data structured as: ``` A B C D 3 2 1 1 ``` I want it restructured as ``` A B C D 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 1 ``` Any thoughts on how to do this in R? Many thanks.<issue_comment>username_1: If the input is a data.frame, you could do the followi...
2018/02/28
2,135
7,191
<issue_start>username_0: We started seeing some strange errors in our logs that normally appear when ruby isn't compiled properly with OpenSSL. But it's *inconcistent*... We're getting errors like: * `RuntimeError: Unsupported digest algorithm (SHA256).` (also with other digests, like `sha1`). [example error trace](h...
2018/02/28
798
3,053
<issue_start>username_0: Using W3 tutorials I have some basic javascript code that will return the values of three inputs from a form. All I'm trying to do is change the value attribute of a checkbox when it is selected. If it is checked, I'd like to return and display true. If not, I'd like it to return and display fa...
2018/02/28
1,949
6,658
<issue_start>username_0: I'd like to add pagination to my JsonResponse. I'm currently using the `django.http.JsonResponse` to generate json from an elastic search API. I'd like to add a pagination feature to be included. My code is as follows: ``` class ResultQueryView(View): def get(self, request): reso...
2018/02/28
497
1,940
<issue_start>username_0: According to [cppreference.com](http://en.cppreference.com/w/cpp/error/runtime_error), one of the c'tors of `std::runtime_error` has the following signature: ``` explicit runtime_error( const std::string& what_arg ); ``` However (I assume) the freshly constructed exception object is required...
2018/02/28
662
1,828
<issue_start>username_0: I would like to add an empirical line of best fit to a scatter plot that is based on the median y for a range of x, eg at x=0.105 would be the y line of the median y's for x in the range 0.100 to 0.110, at x=0.115 would be the y line of the median y's for x in the range 0.110 to 0.120, etc. The...
2018/02/28
1,313
4,246
<issue_start>username_0: I have a bar plot using geom\_bar() that I'd like to overlay points using geom\_point(). The issues is the ordering of the axis labels. I have 2 groups, group A which I want to show with geom\_bar() ordered from high to low and group B which I want to show with points using geom\_bar. Group A a...
2018/02/28
709
3,053
<issue_start>username_0: I came across this question whether one should create the jpa entities using new keyword or Make your entities as spring component with prototype scope and get the bean from Application Context. I personally feel we shouldn't make your entities as spring components and create them ourselves ra...
2018/02/28
474
1,883
<issue_start>username_0: I am receiving this type of warning: `##[warning]C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "PatientEquipment".`(Should not be looking for the assembly on the C:\Drive...
2018/02/28
679
2,361
<issue_start>username_0: How do I pass json as a query parameter on Rest Post web service in java For example: <https://testvpa.net/WebService/ViALoggingRestWS/ViALoggingService.svc/StartCall>?`parameter={"machineName":"KK-IVR01","appName":"KKApp","startTime":"2018-02-06T21:38:32","portID":"01","ani":"9189280000","dn...
2018/02/28
885
2,543
<issue_start>username_0: I have a list with the following data. I have to compare the elements of the list and create a map with specified condition. The SFTP.csv should map to /dev/sftp/SFTP\_schema.json same with other elements. ``` List[String] = List( "/dev/sftp/SFTP.csv" , "/dev/sftp/test_schema.json" , "...
2018/02/28
3,994
10,144
<issue_start>username_0: I have a django app that runs perfectly locally, but when I try to deploy it on heroku I continue to run into this error, ``` django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_S...
2018/02/28
1,863
6,957
<issue_start>username_0: I am learning Flink and I started with a simple word count using DataStream. To enhance the processing I filtered the output to show only the results with 3 or more words found. ``` DataStream> dataStream = env .socketTextStream("localhost", 9000) .flatMap(new Splitter()) .keyBy(0) .ti...
2018/02/28
1,001
4,468
<issue_start>username_0: I am currently using **ElasticSearch v2.3.2** and am having an issue debugging an error in the query. The query seems to be working fine, but it is still throwing an error: > > [query\_parsing\_exception] [term] query does not support different > field names, use [bool] query instead > > >...
2018/02/28
1,383
3,680
<issue_start>username_0: I'm trying to get RGB components from a geoTIFF file in R. The colours on the image correspond to different land classification types and I have a legend for each classification type in RGB components. I'm using the raster library. My code so far is ``` library(raster) my.map = raster("mygeoT...
2018/02/28
517
1,764
<issue_start>username_0: I am using razor to display a list of authors, as you can see uno "MyClass" can have many authors. ``` public class MyClass { [Key] public int MyClassId{ get; set; } //more properties /*****One measure has many authors*****/ public virtual ICollection Authors { get; s...
2018/02/28
728
2,698
<issue_start>username_0: I had a user who has create permissions within Redshift delete a table and create it again. That user no longer has access to even do a Select on the table. Any idea why? I have already done the following command and it hasn't seemed to work: `ALTER DEFAULT PRIVILEGES IN SCHEMA grant all on s...
2018/02/28
526
2,102
<issue_start>username_0: lets say I have a table with three images whose `accessiblityIdentifier` set to "fooImage". `XCTAssertTrue(table["tableName"].images.count == 3)` will work, but this is sucky -- what if someone adds another image type? I want the count of all the images whose identifier == "fooImage". `XCUIAp...
2018/02/28
387
1,427
<issue_start>username_0: Does anyone aware of using `RMixpanel` library, if yes. How can we export mixpanel data using this library and export it into csv or xlsx format. It would be great if any author or maintainer of this library can guide us through all functions of this useful library using small-small examples.<...
2018/02/28
764
2,016
<issue_start>username_0: I have a data frame with 30 row and 1000 column. Some column of this data have "nan" and "inf" value. I would like to replace them with zero. I try some code but could not get sufficient result. For instant i create a sample data frame like this ``` test<-data.frame(a=c("inf",1,"inf"),b=c("...
2018/02/28
544
1,538
<issue_start>username_0: How to find the number of URLs repeating in a website? As scrappy framework doesn't scrape duplicate urls by default. I just need to find which URLs are repeating and how many times. I tried to do it, by calculating the number of URLs repeating at function close spider but after some digging, ...
2018/02/28
1,069
4,282
<issue_start>username_0: I have a use case whenever a new request is triggered, any http requests that are already in flight should be cancelled / ignored. ***For eg***: > > * A request (say #2) comes in while the request #1 takes too long to respond / slow network connectivity. > * In this case #2 gets a very qui...
2018/02/28
908
3,388
<issue_start>username_0: I have a form that currently displays check boxes from a range in an attribute on concrete 5.6. What I need to do is to take that list, but now filter out one item. I want to filter out `mpdID` of `81`. The code used to display is: ``` **php echo t('Choose Day')?** php if($price\_dat...
2018/02/28
1,052
4,032
<issue_start>username_0: My code works perfectly fine on localhost. However, when I copied and pasted the exact same code on my live server I got this error message: Failed to load resource: the server responded with a status of 404 (). I checked my folder path and it looks correct to me. I don't know what is wrong her...
2018/02/28
2,206
7,199
<issue_start>username_0: I want to create simple product slider with thumbnails. Although there may be more than 3 thumbnails, I want to show only 3 of them. By clicking 'more' button i am aiming to hide first image which is already visible and show one from hidden images by changing their class. Code works fine until...
2018/02/28
924
3,209
<issue_start>username_0: I need your help, How do I go about checking wether or not select box option value contains a match of '08C' and alert(true) if it does. An example or answer to work from would be appreciated. Sorry in advance for the lack of coding skills as this is beyond my train of thought. An answer usi...
2018/02/28
1,185
4,336
<issue_start>username_0: In User setting in VSCode I can add the following to User settings to change the color of lines that are inserted / deleted: ``` "workbench.colorCustomizations": { "diffEditor.removedTextBackground": "#000000", "diffEditor.insertedTextBackground": "#ffffff" } ``` However I want to ch...
2018/02/28
840
3,341
<issue_start>username_0: I have defined ``` @interface FooObject : NSObject @property (nonatomic, readonly) Foo *foo; @end ``` Then in the implementation: ``` @implementation FooObject { Foo *_foo; ... } ``` But, my understanding is that creating the property ``` @property (nonatomic, readonly) Foo *foo; ``` ...
2018/02/28
2,286
7,561
<issue_start>username_0: I have a snapshot that was shared to my aws account from partner. when I tried to restore it, it doesn't show restore option. the only option I can see right now is copy snapshot/migrate snapshot. how can I restore this snapshot? [click here to see the picture of the snapshot I received and o...
2018/02/28
1,279
4,278
<issue_start>username_0: I've noticed that when I use `d3.drag().on('drag',...)`, it fires even when the mouse is not moved. Using the code snippet below (which I pulled from [this question](https://stackoverflow.com/questions/46269674/how-frequently-is-d3-drag-event-triggered)), if I simply click and release I still s...
2018/02/28
866
2,977
<issue_start>username_0: I'm trying to develop an app with a few iframes on certain pages. This is the code I'm using: ```html in.gr function resizeIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; } ``` and I've added inside the config.xml this: ``` ``` My issue i...
2018/02/28
1,520
5,490
<issue_start>username_0: I would like to plot the average of a number of measurements which I have in a long file format with all the measurements in the first columns and the trial number in the second like so: A= ``` Trial Number Measurement 1 0.1 1 0.5 1 0.7 1 ...
2018/02/28
619
2,309
<issue_start>username_0: I just noticed some behavior I didn't expect when using Swift's ternary operator. I have two arrays, and depending on a conditional, I want to append to one or the other. But instead of appending to my class-level array, it just appends to the local copy. I assumed since I am using arrays of c...
2018/02/28
446
1,579
<issue_start>username_0: Using **Bootstrap 4**, is there a way to decrease the length of the top border of the `card-footer`? The normal `card-footer` border spans the entire width of the card. I tried using the margin utils (mx-3) on the `card-footer` to shorten the visible border... ``` .. Footer ``` However...
2018/02/28
1,840
6,296
<issue_start>username_0: I am running the Scala REPL, version 2.12.4, on windows 10. When I press CTRL-C, I am prompted: "Terminate batch job (Y/N)?". However, no matter what I type, the REPL always stops and I have to restart it. How can I avoid exiting the REPL?<issue_comment>username_1: If you know upfront, that yo...