date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/01
595
2,181
<issue_start>username_0: I want to add html parameters to the url with onsubmit. I have 2 forms(1 GET, 1 POST), want to use 1 button to submit them both(Using the POST form button) When the submit button is pressed use onSubmit to call a javascript function, where parameters are "appended" to the url. I was thinking a...
2018/03/01
595
1,913
<issue_start>username_0: I have done the counter of most common words to keep only the 128 most common words in my list in order: ``` words = my_list mcommon_words = [word for word, word_count in Counter(words).most_common(128)] my_list = [x for x in my_list if x in mcommon_words] my_list = OrderedDict.fromkeys(my_lis...
2018/03/01
979
3,510
<issue_start>username_0: I want to do to the following things: 1. do the listing of all the items in the directory 2. move the files according to their names into different location Example: In my document folder I have various files. According to the file names, I will move them to different directory. I use the fol...
2018/03/01
738
2,332
<issue_start>username_0: I'm tinkering with OpenGL using glfw, glad, and glm. In one of the tutorials I'm using, they demonstrate some simple usage of glm as so: ``` glm::vec4 vec(1.0f, 0.0f, 0.0f, 1.0f); glm::mat4 trans; trans = glm::translate(trans, glm::vec3(1.0f, 1.0f, 0.0f)); vec = trans * vec; std::cout << vec.x...
2018/03/01
2,027
6,388
<issue_start>username_0: Coniser a variable `list = ["A", "B",...]` as list of strings. I want to use a Javascript programm that picks three strings from this list once a day and writes it into a HTML field. Currently I use ``` function getRandom(arr, n) { var result = new Array(n), len = arr.length, taken ...
2018/03/01
2,062
6,787
<issue_start>username_0: I have been trying to get the camera to slowly, continuously move forward in the direction the user is viewing in a three.js/WebVR project, in an environment where only a cardboard viewer is required. I have found out through a lot of trial and error that what would typically work in a non VR ...
2018/03/01
491
1,754
<issue_start>username_0: I'm trying to create a recipe for a custom library in Yocto. I'm currently getting this error: ``` ERROR: ... do_package: QA Issue: pot-plugin: Files/directories were installed but not shipped in any package: /usr/lib/qt5/plugins/mediaservice/a.so.1.0 /usr/lib/qt5/plugins/mediaservice/a.so...
2018/03/01
278
955
<issue_start>username_0: Suppose i have 3 Numpy arrays containing floats with the following names: one two three. Is it possible to refer to them in a for-loop in the following manner: ``` list=one two three for arr in list: arr=arr[2,1]+1 ``` The above example obviously does not work but i was wondering if th...
2018/03/01
1,875
7,961
<issue_start>username_0: Using the template built into VS2017 for Core 2 MVC with Authentication. Trying to seed the database with Users and Roles. Roles work well, they seed. Users always return an error saying "Cannot be NULL", i think its because this line at the end of the initialize function cannot actually find t...
2018/03/01
321
1,229
<issue_start>username_0: I am using the wordpress plugin "WooCommerce Product Sort and Display LITE", where I have made few modifications to suit my site, but unfortunately my site crashes every night due to plugin automatic update to new version and I have to restore it from backup. I am trying to figure out how to di...
2018/03/01
387
1,337
<issue_start>username_0: I know we have lot of discussions on this out here but those aren't solving my issue. So placing my question here. I want to untrack some files from being shown as modified while doing git status, and I tried different options as explained [here](https://stackoverflow.com/questions/936249/how-...
2018/03/01
302
1,012
<issue_start>username_0: I was wondering the best way to find if a key exist in python dictionary, not visiting the whole list of keys again and again. I am thinking of try except. Is there any better way?<issue_comment>username_1: Just use the `in` operator: ``` print('some_key' in my_dict) ``` Upvotes: 2 <issue_com...
2018/03/01
1,489
5,543
<issue_start>username_0: I am trying to write a distribution program that runs command lines at various intervals. Think cron, here. Ideally, this would be cross-platform, but cron already exists in \*nix, so this is mainly for Windows. Given the many issues of trying to spawn and keep a daemon-like perl script runnin...
2018/03/01
1,911
5,815
<issue_start>username_0: I'm currently passing a string, with multiple delimiters, to a method that I would like to initially split (at ~) into a string array, then each entry in the array (at |) to a dictionary ("key"="value"). ``` ~timestamp=Mar 1 2018 3:14PM|proc=procedure A|tran=transaction 1|rowCount=987 ~times...
2018/03/01
1,102
4,144
<issue_start>username_0: I've created a `SoundManager` to deal with sounds in my application. In my app, I instantiate a `SoundManager` and then use it to load audio files, and return a promise once they're loaded. I've omitted some of the code as i don't think is important in this context - I know they all load prope...
2018/03/01
504
2,105
<issue_start>username_0: This is how you write a test when you expect the targeted method to throw an exception. ``` @Test(expected = myExpectedException.class) public void Test() { } ``` What if success is when the method doesn't throw an exception? Is there attribute for that?<issue_comment>username_1: If an exce...
2018/03/01
821
3,325
<issue_start>username_0: I've moved my inline scripts to external pages to comply with Content Security Policy. This is the last CSP issue I need to resolve. I need help replacing "onclick" from two buttons with an event listener. I've researched thoroughly, but the examples differ enough from my code that I'm having d...
2018/03/01
5,916
16,693
<issue_start>username_0: I'm building an application using spring boot and need to connect to Oracle DB via service, not sid. These are datasource settings: ``` spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver spring.datasource.url=jdbc:oracle:thin:@//hostname.companyname.corp:1500/servicename.com...
2018/03/01
556
1,747
<issue_start>username_0: I am very new to coding and I wanted to try and create a MadLib using Python. I've already created the inputs, but I can't figure out how to add multiple variables into one print syntax. `print("Suddenly he grabs me. tipping me across his", bodyPart1, adj1 "movement, he angles his", noun1 "so...
2018/03/01
1,200
3,661
<issue_start>username_0: I'm using `gganimate` to create some .gif files that I want to insert into my reports. I'm able to save the files and view them fine, however, I find that the displayed size is small: 480x480. Is there a way to adjust that - perhaps along the lines of `height` and `width` arguments in `ggsave()...
2018/03/01
695
2,175
<issue_start>username_0: In the following table I have a list of dates. I am trying to index the second dataframe and extract the corresponding value in the first dataframe. I want to create column D. I have referenced [Pandas Merge returns NaN](https://stackoverflow.com/questions/46754398/pandas-merge-returns-nan) ...
2018/03/01
612
2,732
<issue_start>username_0: Sometimes we don't have the APIs we would like to, and this is one of these cases. I want to extract certain information from certain website, so I was considering using a CURL request to hundreds of pages within a site in a programmatically way by using a CRON job in my server. Then caching...
2018/03/01
740
2,250
<issue_start>username_0: I'm toggling between two `divs` that display pricing options. It defaults to the first option on page load. Using an anchor link, how can I have the toggle launch option two? [Here's the page for reference.](https://www.hudl.com/products/assist/volleyball?token=K6~s9DTGVrSKh~X<PASSWORD>6YLKSMt...
2018/03/01
638
2,027
<issue_start>username_0: I want to start off saying that I just started learning CSS, (got done learning HTMl couple days ago) and I'm having a little bit of trouble with how to put input text in the middle with pictures next to input text. To be a little bit more specific look at my code. ```html Login ![](https...
2018/03/01
2,778
7,604
<issue_start>username_0: Ever since I added "position absoulte" to my div ".container" in my code below, my CSS animate code zooms in from the bottom then hiccups and positions itself to the center. How can I make my animate zoom just zoom in right to the center without this hiccup where it goes down first then a seco...
2018/03/01
990
4,400
<issue_start>username_0: An MVC controller getting the action name and controller name: ``` public class AuthorizeController : Controller { protected override void OnActionExecuting(ActionExecutingContext filterContext) { string actionName = filterContext.ActionDescriptor.ActionName; string co...
2018/03/01
826
4,044
<issue_start>username_0: ``` let formData2 = new FormData(); formData2.append('_token', vm.response._token); formData2.append('file', vm.response.content[i].path); formData2.append('type', vm.response.content[i].type); $.ajax({ ...
2018/03/01
1,098
4,096
<issue_start>username_0: We use [nomad](https://www.nomadproject.io/) to deploy our applications - which provide [gRPC](https://grpc.io/) endpoints - as tasks. The tasks are then registered to [Consul](https://www.consul.io/), using [nomad's service stanza](https://www.nomadproject.io/docs/job-specification/service.htm...
2018/03/01
712
2,562
<issue_start>username_0: I am currently trying to setup a string to be added to a HTTP POST request where a user would type text and tap '*enter*' and a request would be sent. I know multiple characters (^,+,<,>) can be replaced with a single character ('\_') like so: ``` userText.replacingOccurrences(of: "[^+<>]", w...
2018/03/01
646
2,442
<issue_start>username_0: In the validation.php file the error message is like this: ``` 'after_or_equal' => 'A :attribute must be a date after or equal to :date.', ``` However when this error occurs the message that appears is : ``` validation.after_or_equal ``` Do you know why? Code to show the messages i...
2018/03/01
1,801
7,580
<issue_start>username_0: A requirement of my application is to allow the user to progress through multiple steps, then upon completion write values to the database based off of entries in each step. Each step in the UI may contribute to the operations that will need to be written to the database. The data may be in mul...
2018/03/01
240
914
<issue_start>username_0: Been trying to find similar component, have not yet find one. I want a component that basically able to expand an object to a panel next to it just like MacOS's file system. I wonder if anyone already know such exist and found it? Since I have no idea what this effect's name to start search fro...
2018/03/01
696
2,404
<issue_start>username_0: I have a function which returns multiple rows of data with one column based on certain conditions. ``` ALTER FUNCTION [dbo].[GetFavoriteFruits] ( @FruitId uniqueidentifier ) RETURNS TABLE AS RETURN ( Select Name FROM Fruits WHERE FruitID = @FruitId UNION ALL Select Name FR...
2018/03/01
725
2,527
<issue_start>username_0: I'm making an android app for my final project at school. I only know basic Java and I need to make my app connect to my mysql database. So I followed this tutorial here with the get method: <https://www.tutorialspoint.com/android/android_php_mysql.htm> Aside from the php part and how it co...
2018/03/01
956
3,524
<issue_start>username_0: I have a quick question regarding why I should use `.pack()` in another line. Example: If I call the `Label` function as follows: ``` import tkinter as tk root = tk.Tk() label = tk.Label(root, text="<NAME>").pack() ``` it has the same effect in [tkinter](/questions/tagged/tkinter "show que...
2018/03/01
241
946
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/ISLfd.png)](https://i.stack.imgur.com/ISLfd.png) My 'test project' contains only the Application.php and the ApplicationTest.php but the phpunit collect the coverage information about composer autoloader files also, which is wrong. How...
2018/03/01
495
1,666
<issue_start>username_0: Using Excel VBA, I'm trying to capture the first value in a column "Start" and the last value in a column "End", per group. Data is already sorted. Example: [![enter image description here](https://i.stack.imgur.com/2mLrP.jpg)](https://i.stack.imgur.com/2mLrP.jpg) I want to capture the first ...
2018/03/01
333
1,325
<issue_start>username_0: As far as I understand it `scipy` can't be used with GAE as the former uses C code. Is there a workaround for it? If not, can you recommend a package similar to `scipy` that I could use on GAE? Specifically, I'm trying to use the `brentq` method from `scipy.optimize`. Thank you, Alex<issue_com...
2018/03/01
770
2,604
<issue_start>username_0: I need to set the library path in R for a single use (i.e. I do not want and can't set it in `Rprofile.site` and can't put the additional packages into the default library). I tried to append to and to overwrite the library path with `.libPaths()` but neither worked; the path remained unchange...
2018/03/01
633
1,980
<issue_start>username_0: I want to calculate the time taken to execute a c program inside a python script. I used os.system() function for this. ``` os.system("{ time ./test.out < inp;} > out 2> exe_time") ``` * test.out is my c executable * inp contains input for c * out stores the output of c program * exe\_time s...
2018/03/01
3,311
11,636
<issue_start>username_0: In the past month, our Java Google App Engine Standard Web App started getting strange errors at seemingly random times (see stack trace below). Around this time we made the following changes: 1. Switch from Java7 runtime to Java8/Jetty9 runtime (which allowed us more flexibility in linking to...
2018/03/01
550
1,769
<issue_start>username_0: Pls Help! ``` count_rate := ( SELECT COUNT(trate.rid) AS count_rate FROM tlot LEFT JOIN trate ON trate.ridlot = tlot.lid GROUP BY tlot.lid ); ``` FULL: ``` CREATE FUNCTION editstatuswait() RETURNS void LANGUAGE plpgsql AS $$ DECLARE count_rate INTEGER; BEGIN count_rate := (SELECT CO...
2018/03/01
288
1,096
<issue_start>username_0: Can I use a (soundfont) sample e.g. "C5.mp3" and **extend or shorten its duration** for a given time (without distorting the pitch)? (Would be great if this was as easy as using an oscillator and change the timings of **NoteOn and NoteOff**, but with a more **natural sound** rather than sine w...
2018/03/01
412
1,575
<issue_start>username_0: I have a bat file I want to run to install some files onto another flash drive. The flash drive I want to install on is always called "Main Drive". Sometimes its on G:\ sometimes D:... etc. I know the folder I want to install into it's called, "Temp". My path would look like this... Main Dri...
2018/03/01
1,058
3,837
<issue_start>username_0: I'm using a project with Vue, Vuetify, Vue-Router, and Vuex. The intent was to create a basic layout with a sidebar in a more module approach to dabble in scalability with Vue. So I created a folder called Store, which has a modules folder. So my index file within the store folder is as follows...
2018/03/01
3,220
13,116
<issue_start>username_0: I have a react component that needs to know its dimensions ahead of time, **before it renders itself.** When I'd make a widget in jquery I could just `$('#container').width()` and get the width of the container ahead of time when I build my component. ``` ``` these container's dimensions ar...
2018/03/01
640
1,968
<issue_start>username_0: I am trying to use **UPDATE BINARY** command using APDU command for modify IMSI code, but The response is `98 04`. ``` A0 A4 00 00 02 3F 00 -> SELECT MF A0 A4 00 00 02 7F 20 -> Select DF_GSM A0 A4 00 00 02 6F 07 ->Select EF_IMSI A0 D6 00 00 09 [08 79 03 30 60 00 61 33 23] -> UPDATE IMSI FOR RA...
2018/03/01
1,174
3,746
<issue_start>username_0: The current TensorFlow dataset interleave functionality is basically a interleaved flat-map taking as input a single dataset. Given the current API, what's the best way to interleave multiple datasets together? Say they have already been constructed and I have a list of them. I want to produce ...
2018/03/01
673
2,404
<issue_start>username_0: Currently when someone adds a product to our website it says: "X Product" has been added to your cart | and then has a "Continue Shopping" button in that notice that is on the right. Since we only sell 2 products we want to remove the continue shopping button completely but still say the rest...
2018/03/01
595
2,151
<issue_start>username_0: [(project is available on github with that problem)](https://github.com/sam-moshenko/drf_depth_problem) For some reason serializer's depth option makes fields ignored on create. Serializer: ``` class AnswerSerializer(serializers.ModelSerializer): class Meta: model = Answer ...
2018/03/01
586
1,889
<issue_start>username_0: In C# we have `unchecked` to disable overflow checks on integer operations ``` int int1; unchecked { int1 = 2147483647 + 10; } ``` The integer arithmetic result will wrap to -2,147,483,639 But in T-SQL I can't find a way to disable bounds checks ``` DECLARE @INT1 INT SET @INT1 = 21474...
2018/03/01
470
1,568
<issue_start>username_0: I need to select and group some items according to some values and it's easy using an associative multidimensional array: ``` $Groups = array( "Value1" = array("Item1", "Item3"), "Value2" = array("Item2", "Item4") ); ``` But some items hasn't the value so my array will be somethi...
2018/03/01
852
3,294
<issue_start>username_0: To give some context I will start with what I am trying to acheive. I have a web service that receives data from a VSTS service hook. The service hook posts data when a PR is created or Updated and also when 'Pull request merge attempted'. The point of my web service is to check that the sour...
2018/03/01
533
2,235
<issue_start>username_0: I am working on a simple database and to be specific here is the model generated by database first approach (Visual Studio 2017 Community, Entity Framework 6.2): [Generated Database Model](https://i.stack.imgur.com/ZWSt0.jpg) I'd like the UserMessage table to be able to point to itself with a ...
2018/03/01
475
1,892
<issue_start>username_0: I am trying to install the CRAN [Hmisc](https://cran.r-project.org/web/packages/Hmisc/index.html) package in an R Environment Notebook on IBM Watson Studio. But it repeatedly fails with the following Error: ``` install.packages('Hmisc') also installing the dependencies ‘checkmate’, ‘rstudioap...
2018/03/01
1,301
4,687
<issue_start>username_0: I've been getting errors when I press update. I'm using the same code as adding. I think it may be the picture upload that is causing the problem. Here's the error: > > The form's view data is expected to be an instance of class Symfony\Component\HttpFoundation\File\File, but is a(n) s...
2018/03/01
779
2,831
<issue_start>username_0: I have a long `BooleanArray` in my LibgGDX game, to save it in my `Preferences` i do this: ``` static Preferences prefs; public static void putMyArray (BooleanArray booleanArray, String string){ for(int i=0; i < booleanArray.size;i++){ prefs.putBoolean( string+i, booleanArray.get(...
2018/03/01
667
2,093
<issue_start>username_0: Here is my input file: ``` THIS IS A TITLE 1. THIS IS A SUBTITLE This is body text. This is body text. This is body text. This is body text. THIS IS A TITLE This is body text. THIS IS A TITLE 1. THIS IS A SUBTITLE 2. THIS IS A SUBTITLE This is body text. This is body text. ``` I wan...
2018/03/01
640
2,145
<issue_start>username_0: When I press login button, the app freezes for a while because it checks internet connection on the main thread. how to do it in the background thread or new thread and what is the difference between them (Background thread and another new Thread). my internet check function : ``` public Boo...
2018/03/01
705
2,878
<issue_start>username_0: I'm writing an ASP .NET Core application where I'm using the Google PubSub emulator where I can both publishe and subscribe to a topic. However, when I publish a "large" amount of messages 1000+, I would like to pull as many as possible. I use the `Google.Cloud.PubSub.V1` library which provid...
2018/03/01
386
1,372
<issue_start>username_0: I am successfully getting Postman's Get Access Token feature to work. I need to see the request it's making, though, so I can make the call in code. Any ideas how to do that?<issue_comment>username_1: There is a `Code` button on the right hand side of the browser in orange. [![enter image des...
2018/03/01
501
1,843
<issue_start>username_0: I am using `github.com/grpc-ecosystem/go-grpc-middleware/util/metautils` package for extracting the header, seeing [Link to AuthFromMD implementation](https://github.com/grpc-ecosystem/go-grpc-middleware/blob/master/auth/metadata.go#L24) I am sure that I can override AuthFromMD and have my own ...
2018/03/01
561
2,007
<issue_start>username_0: I need to restart a server group, using the HTTP API. I can't figure out what the correct syntax is. I tried a lot of ``` HashMap requestMap = new HashMap<>(); requestMap.put("operation", "something-something"); requestMap.put("address", "something-something"); final Response response = man...
2018/03/01
588
2,189
<issue_start>username_0: I have a function I have written and I would like it to return a string. I have declared the variable before my for loop, but when I try and return it at the end of the function it claims the variable is unused. I do not seem to have the problem when returning other types. I am trying to figure...
2018/03/01
416
1,489
<issue_start>username_0: Where can I find the documentation for web components managed by PolymerElements? I'm here: <https://www.webcomponents.org/element/PolymerElements/paper-dialog>, and the page says to see the Docs, but doesn't provide a link. I just want to know what kind of api the paper-dialog has. Thanks.<is...
2018/03/01
1,319
4,593
<issue_start>username_0: I know there are similar to posts to this but none of them exactly fit I was trying to do. I am a newer programmer and just started reading up on the super class for Java. I have created a super class named shape. I then created a subclass named circle. I am stumped on two parts here, calling t...
2018/03/01
547
1,907
<issue_start>username_0: I want to annotate the difference between a DateTime and an Integer (seconds) on a legacy MySQL DB (so there is no chance to change the IntegerField to a DurationField) with Django 1.11 ``` Report(Model): # time the report was sent time = DateTimeField() # seconds since the last re...
2018/03/01
633
2,063
<issue_start>username_0: I have a query that returns (x) rows. I want to display those rows in a div. I want to display the data 1 row at a time cycling through them every 5 seconds. Each row contain 2 sections, if the second section is blank I need to display the first section if not I need to display the second s...
2018/03/01
505
1,508
<issue_start>username_0: im trying to replace the maximum value of each row with -Inf. ``` set.seed(1) mat <- matrix(sample(1:15), nrow = 5) #mat # [,1] [,2] [,3] #[1,] 4 9 2 #[2,] 6 10 13 #[3,] 8 14 12 #[4,] 11 5 15 #[5,] 3 1 7 max.co...
2018/03/01
218
872
<issue_start>username_0: The package Digits requires an environment variable to be set with the location of Caffe install directory. The simple way to install Caffe is `apt-get install caffe-cuda`. However, I can't figure out where it is installed. It is not installed in the home directory, and `dpkg -L caffe-cuda` sh...
2018/03/01
1,993
5,118
<issue_start>username_0: Currently, I have two dataframes where I am merging on 'KEY'. My first dataframe contains a KEY and the original price of a product. My second dataframe collects information for each time a person makes a payment. I need to create a final calculated column in df1 which shows the remaining balan...
2018/03/01
757
2,157
<issue_start>username_0: I have two dataframe with single index. I want to combine them into one but with two-level index. ``` import pandas as pd import numpy as np busjouney={'bus':['A','B'],'journey':[60,60]} daytable={'days':['Mon','Tue'],'journey':[60,60]} pd_busjouney=pd.DataFrame(busjouney) pd_daytab...
2018/03/01
2,523
8,501
<issue_start>username_0: So lets say i have a list like this: ``` List(Person(List(Name("Frank"), Age(50))),Person(List(Name("Peter"), Age(40))),Person(List(Name("Frank"), Age(20)))) ``` How do i write a function that returns true if all names are unique, and false if there are duplicate names. E.g., this will retur...
2018/03/01
546
1,359
<issue_start>username_0: I want to plot box chart form file with has data already in two columns. Catch is that second column is in hex and need be additionality multiple by some const (734) i.e test.dat ``` amp 0x223 dupa 0x333 jasiu 0x4a4 halo 0xb1 ``` best will be to do that in bash one liner . I just end with ...
2018/03/01
4,338
14,631
<issue_start>username_0: my error is "Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > > java.io.IOException: Can't write [C:\Users\grand\AndroidStudioProjects\IbzChatApp\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\grand.gradle\caches\transform...
2018/03/01
2,096
8,341
<issue_start>username_0: I have a rails app where I am using devise for authentication. The model is User. I have also used active admin for the admin dashboard and created user resource within. A user has edit, view and delete link on the admin side and an edit form (provided by devise) on the normal user form. I wan...
2018/03/01
507
1,829
<issue_start>username_0: How can I get param from URL after #? Example: ``` http://localhost/addAccount/#code=qwerty ``` I tried use `url = request.path` and `url.spit('/')` but it isn't working becasuse `request.path` don't read string after # in url.<issue_comment>username_1: In a URL, what travels after # is kno...
2018/03/01
635
2,537
<issue_start>username_0: I have few data dependent testing scenarios where I have one Excel file as data source and multiple testcases needs to be executed from that file concurrently. I already have prepared a solution where I can run 1 test at a time. But when I try to run multiple tests, Apache is throwing up error...
2018/03/01
2,115
8,053
<issue_start>username_0: We all know how useful matrix transposition is, and writing a general algorithm for sequential use is no problem. However, I am having some trouble doing the same for multithreaded purposes, and have only gotten this small case for 4 x 4 to work properly. My approach is to assign equal parts ...
2018/03/01
1,964
7,578
<issue_start>username_0: I am having an issue when trying to use a getline command where a user can enter in a movie and then add to the collection of movies (stored in "movies.txt") My code is compiling, but it starts out with the 3rd case automatically. When I press "q" to quit that case, it reverts to the menu, yet...
2018/03/01
635
2,485
<issue_start>username_0: I know the iPhone responds to "hey Siri". Is there similar features that I can use in my app to listen for certain sounds? If so what is the name of the iOS framework to use?<issue_comment>username_1: Yes sure, you can implement a [recorder](https://www.hackingwithswift.com/example-code/media/h...
2018/03/01
693
2,681
<issue_start>username_0: If I understand the answer of "[Why is comparing against "end()" iterator legal?](https://stackoverflow.com/q/2728299/356726)" correctly, I can compare an `end()` iterator against a singular iterator. So we do it like here: ``` template static bool isSingular(Iterator i) { return i == Iterato...
2018/03/01
726
3,015
<issue_start>username_0: In this exercise I have a prompt where I want to require input. So if the user doesn't enter anything, it will ask again until a response is given. When a response is finally given it will go through the list of conditional statements. If a response is given on the first prompt it will simply g...
2018/03/01
802
2,484
<issue_start>username_0: I have a [SAS dataset](http://www.principlesofeconometrics.com/sas/cars.sas7bdat) and when I run it I get the following output on SAS: [![enter image description here](https://i.stack.imgur.com/YMDxI.jpg)](https://i.stack.imgur.com/YMDxI.jpg) I also have the following Python code which gets t...
2018/03/01
1,150
4,130
<issue_start>username_0: For a project I am using [YOLO](https://pjreddie.com/darknet/yolo/) to detect phallusia (microbial organisms) that swim into focus in a video. The issue is that I have to train YOLO on my own data. The data needs to be segmented so I can isolate the phallusia. I am not sure how to properly segm...
2018/03/01
1,310
3,636
<issue_start>username_0: I'm trying to read a geometry\_msgs::PoseArray and convert it to a geometry\_msgs::Pose in c++ for ROS. It should only convert the data when there is data on topic /tag\_detections\_pose. When I run this node( see code), I get a segmentation fault (core dumped) at the marked location when there...
2018/03/01
675
2,436
<issue_start>username_0: Recently I was performing changes with my wordpress website. I am getting `desktop-columns-3 tablet-columns-2 mobile-columns-1` on my every product page. I am clueless since when I search for this error it is only telling me about the sizing not any reason why I am getting this written everywh...
2018/03/01
785
2,885
<issue_start>username_0: Project Reactor has this factory method for creating a push/pull `Producer`. <http://projectreactor.io/docs/core/release/reference/#_hybrid_push_pull_model> Is there any such thing in RxJava-2? If not, what would be the recommended way (without actually implemementing reactive specs interfac...
2018/03/01
1,516
4,265
<issue_start>username_0: I have the following Python dict: ``` { 'parameter_010': False, 'parameter_009': False, 'parameter_008': False, 'parameter_005': 'CMAX', 'parameter_004': 'L', 'parameter_007': False, 'parameter_006': 'R', 'parameter_001': 'Foo', 'id': 7542, 'parameter_003': 'D', ...
2018/03/01
1,089
2,547
<issue_start>username_0: I'm using this package <https://github.com/alex3165/react-mapbox-gl> in my app. I would like to display polygons but when I do that this way: ``` console.log("Display polygon"); let polygonPaint = MapboxGL.FillPaint = { 'fill-color': "#ff0000", 'fill-opacity': 0.3 } ``` Then renderi...
2018/03/01
495
1,680
<issue_start>username_0: When I try to scrape a value from a website and put it into a payload request I get the error: ``` AttributeError: 'ResultSet' object has no attribute 'get' ``` This is my code: ``` resumeURL='url' response=self.session.get(resumeURL,headers=headers) soup=BeautifulSoup(response.content, "h...
2018/03/01
521
1,898
<issue_start>username_0: A very simple problem, but surprisingly, can't find any answers. I am looking to alert something in the browser, very similar to ``` alert('please try again'); ``` I want to use bootstrap for this, I tried this ``` $("#div-alert").html("please try again"); $("#div-alert").modal('show'); ...
2018/03/01
1,630
5,759
<issue_start>username_0: Trying to find the longest line by string in a textbox (multi-line). Longest will return the number of the line, for example: ``` line 1: good day, world line 2: good evening world line 3: good morning, world ``` the longest string found in textbox will return the number of the line which is...
2018/03/01
1,735
6,367
<issue_start>username_0: There seems to be a weird offset when the bullets are shot from the ship in certain angles while the ship is moving. Also if the ship is shooting in the same direction is heading then the bullet speed is lower. I tried to work with some SO answers and that's what I came up with: ``` import sys...
2018/03/01
638
2,473
<issue_start>username_0: I'm working in Oracle SQL Developer right now and am stumped on a query. The prompt reads: Provide an alphabetic listing of instructors who have never taught a course section. List the salutation, first name, last name and zip code. This is my current attempt: ``` SELECT i.Salutation, i.F...
2018/03/01
799
3,058
<issue_start>username_0: I'm creating an HTML page for a restaurant bill calculator but i'm having issues with the javascript/input/form and have been stuck for a while. I'm not sure why my function is not working when I submit. If anyone has any ideas where i'm going wrong, I would greatly appreciate any help! Here i...
2018/03/01
693
2,881
<issue_start>username_0: I'm considering using Hyperapp for my next project, but I've noticed that while it is Elm-like, it does not offer type safety guarantees (which is one of the best features about Elm). Is there a combination of JavaScript libraries (maybe used with Hyperapp) that can give you the type safety tha...
2018/03/01
823
4,494
<issue_start>username_0: What is a good way to update a label on your winforms by fetching result from the database. So all users get the update real time instead for starting the winform over to get the update. ``` public partial class labelControl : UserControl { public labelControl() { Initializ...
2018/03/01
703
3,674
<issue_start>username_0: I am having an issue finding text inside this element. There are no errors when the driver starts. Is my syntax correct? ``` [(hidden)](contact.html) ``` Have Tried ``` driver.find_elements_by_xpath("//*[@id='contact-link']/span[2][contains(text(),' (hidden) ')]") ```<issue_comment>use...
2018/03/01
709
3,673
<issue_start>username_0: Could someone help me split this string: ``` string <- "Rolling in the deep $15.25" ``` I'm trying to get two outputs out of this: ``` 1) Rolling in the Deep # character 2) 15.25 # numeric value ``` I know how to do this in excel but a bit lost with R<issue_comment>user...