date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/11
381
1,465
<issue_start>username_0: I am trying to call the same method within a method in a Javascript ES6 class but it is not working. ``` class Client { constructor(connection) { this.channels = []; this.nickname = null; this.user = null; this.realName = null; connection.on('data',...
2018/03/11
356
1,215
<issue_start>username_0: The following code is showing the error of cannot resolve symbol post even if `import android.os.Handler;` is used. And also invalid method declaration, return type is required for `Runnable` object. ``` TextView tv = (TextView) this.findViewById(R.id.txt); String[] str = new String[] { "72"...
2018/03/11
880
2,708
<issue_start>username_0: I don't know how to pass SparkSession parameters programmatically when submitting Spark job to Apache Livy: This is the Test Spark job: ``` class Test extends Job[Int]{ override def call(jc: JobContext): Int = { val spark = jc.sparkSession() // ... } } ``` This is how this S...
2018/03/11
936
3,301
<issue_start>username_0: Been messing around trying to get this to work, as you can see in the code below when the table row is selected then it outputs an alert of which row they selected and also assigns the row's id to a variable declared outside of the method. I'm using this variable to be able to manipulate the da...
2018/03/11
1,048
3,615
<issue_start>username_0: I am converting some legacy code from VB to C# and I am getting the error: > > Cannot implicitly convert type 'object' to type 'bool'. An explicit conversion exist (are you missing a cast?) > > > on the `p2.Value = 1` in the if statement. Here is the code in VB ```vb Public Function Ch...
2018/03/11
1,961
6,856
<issue_start>username_0: I am working on a *Register and Login* application with CodeIgniter 3 and Twitter Bootstrap. When a user **[registers](http://code-love.tk/ciauth/)**, an email should be send to the address he/she provided, with an account *confirmation link*. The problem is that the confirmation email **does ...
2018/03/11
765
2,686
<issue_start>username_0: I am using Laravel with Vuejs and AXIOS for HTTP requests. I am sending a post request with the array of objects. So in my laravel store function how can I retrieve that data from the $request? my questions array looks like: ``` data:{ questions:[{ ...
2018/03/11
788
2,569
<issue_start>username_0: I need to show automatic words when loading a page on my site. I have managed to show a word, but I can not see more than one. It is important that the words do not repeat themselves. I have this code where I specify each word. ``` php $randomThings = array( 'random thing 1', 'ra...
2018/03/11
1,439
4,834
<issue_start>username_0: I am writing some PHP code that would generate HTML files from templates. I would like, if possible, to make a function that would take any strings I feed the function with, and put that into the file. Like so: ``` function generator($a, $b, $c, $n...){ $filename = $a . ".html"; ob_start ();...
2018/03/11
931
2,890
<issue_start>username_0: I am trying to find the users that install and uninstall the App on the same day using the data from Firebase Analytics in Google BigQuery This is where I got so far. I have a query that gives me users (or app\_instance\_id) who install or uninstall the App: ``` SELECT event.date, user_dim.ap...
2018/03/11
918
3,102
<issue_start>username_0: I was trying to look for mitigation of SQL Injection against my web application based on PHP and MySQL. The first rule is to sanitize the query; Hence I am using `mysql_real_escape_string()` function for that Here is what my snippet looks like ``` if (is_string($string)) { return $mysqli-...
2018/03/11
2,098
4,924
<issue_start>username_0: I am trying to create some sort of loop in bash that will iterate through a specific time range, one second at a time. At each interval, it will perform a duty with that timestamp I.e. "Wed Mar 2 12:00:03 CDT 2018" I am having a hard time wrapping my head around how to make a loop that will...
2018/03/11
740
2,702
<issue_start>username_0: I have this code which inserts into a table. This is the code: ``` cursor.execute("INSERT INTO Exercises Exercise, Weight WHERE ID = ?)VALUES (?,?)",(Exercise, Weight, ID,)) ``` `Exercises` is the table name `Exercise` and `Weight` are fields in the table `ID` is a foreign key to another t...
2018/03/11
1,607
6,501
<issue_start>username_0: I'm getting correctly those values if I compile with API 27 but target API 25. If I set targetSdkVersion to 27, then, those values are not correctly retrieved. Targeting SDK 25 or less, values are correct, but targeting 26 or more, I get those values: SSID gives BBSSID gives `02:00:00:00:00...
2018/03/11
1,521
6,284
<issue_start>username_0: I want to create a custom exception in Python, that when raised without any arguments, it will print a default message. Code Example: ```py class CustomException(Exception): pass # some code raise CustomException() ``` and get the below output: ``` Traceback (most recent call last): ...
2018/03/11
471
1,581
<issue_start>username_0: I am looking for some assistance to create a php script to do the following please? 1. Generate a random number between 1 and 100 so lets say 50 is the number that has been generated (I know how to do this) 2. Search database for the id #50 (I know how to do this) 3. Return the value of a colu...
2018/03/11
866
2,221
<issue_start>username_0: I want to split values in a column to multiple columns after applying a complex function. e.g. For the following trade table t , I want to split the sym into 2 separate columns sym and src. However, the function I would be applying would be slightly complex. ``` q)t:([] time:10:01:01 10:01:0...
2018/03/11
677
2,055
<issue_start>username_0: Is there any way to set gradient on multiple icons like on [this image](https://res.cloudinary.com/db20zgpmk/image/upload/v1520799691/Screenshot_2018-03-11_22.20.03.png)? Here's [my codepen](https://codepen.io/avalan4e/pen/gwpryq?editors=1100) for the case > > HTML > > > ``` ``` > > S...
2018/03/11
2,012
6,973
<issue_start>username_0: How to compare the strings on characters, check that the strings consist of the same symbols using T-SQL? For example: * `'aaabbcd'` vs `'ddbca'` (**TRUE**): both strings consist of the same symbols * `'abcddd'` vs `'cda'` (**FALSE**): both strings do not consist of the same symbols<issue_com...
2018/03/11
2,067
7,219
<issue_start>username_0: User chooses id he wants and if it was already assigned to another user then assign minimal free id that is greater than chosen. User can be deleted and it makes id to be usable again. I thought it's enough to use HashSet since it's access complexity is O(1) and I just check every greater ent...
2018/03/11
1,174
2,977
<issue_start>username_0: I have an excel sheet that has the following format ``` Name 1/1/2018 1/8/2018 1/15/2018 1/23/2018 1/30/2018 project1 dev dev project2 dev dev dev project3 dev dev ``` I am trying to create a query wh...
2018/03/11
1,258
3,017
<issue_start>username_0: `arr` is a n-dimensional numpy array. How to change sign of every element of arr with an odd sum of indices? For example, `arr[0, 1, 2]` needs a sign change because it has a sum of indices `0 + 1 + 2 = 3`, which is odd. When I convert `arr` to a list, I notice that every second element in th...
2018/03/11
521
1,601
<issue_start>username_0: I have this: ``` jQuery('td:contains("Yesss")').closest('tr').css('background-color','#ddf8dd') ``` How do I correctly add z-index:200? Thank you!<issue_comment>username_1: The easiest way is to pass an object to the [`.css()`](http://jquery%20css%20method%20not%20working) method, i.e.: ``...
2018/03/11
1,805
5,866
<issue_start>username_0: I've created a small database based on the Olympics for running a few sql queries from. I am trying to generate a table that displays each Country name and the total of Gold, Silver & Bronze medals won based on Athletes that are from these countries. Here is a screenshot of my Relational Model ...
2018/03/11
1,355
4,308
<issue_start>username_0: I just can't understand the difference between this: `short d = 0; //some code node.accessible = d + 1;` and this `short d = 0 //same code here node.accessible = d; node.accessible += 1;` the second thing is working, but the 1st one is't inteliji showes "incompatiable types" error. p.s. n...
2018/03/11
1,857
6,557
<issue_start>username_0: I really need help with a RESTful API project that I am working on. I have done extensive searches and am at a crossroad. This is very new to me and I am not quite understanding everything, so I do apologize if this is an elementary question. **What I am required to do:** I am required to cr...
2018/03/11
1,393
5,000
<issue_start>username_0: I'm trying to return the result of an XMLHTTPRequest: ``` [Click me for Google CDN jQuery!](https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js) const url = { httpRequest: function(callback) { var xhr = new XMLHttpRequest(); xhr.addEventListener("load", callback); xhr.open(...
2018/03/11
285
990
<issue_start>username_0: I'm following the Hello World tutorial Video on <http://audiokit.io/downloads/> As soon as I add the line `AudioKit.start()` in the `ViewController.swift` I get the error: > > Call can throw, but it is not marked with 'try' and the error is not handled" > > > I downloaded fresh AudioKit ...
2018/03/11
351
1,209
<issue_start>username_0: I have developed a program using C# Windows Forms and SQL Server 2014 `.mdf` database file. It's running well on my development machine. Now I want to install it on another PC without Visual Studio and SQL Server. What are the software requirements for the PC to run that program with `.mdf` dat...
2018/03/11
274
945
<issue_start>username_0: I would like to do something like `deltax=symbols(",,\delta x")` But this seems to give a tuple not a multicharacter symbol. Is it even possible? I should add that I am using Jupyter.<issue_comment>username_1: The function `symbols` is convenient in that it allows us to create several symbols ...
2018/03/11
748
2,445
<issue_start>username_0: I am fairly new to Vue and have started with a project with [vue-cli](https://github.com/vuejs/vue-cli). I am looking into conditional rendering based on a prop sent from parent. **Home.vue** *(parent)* ``` import Header from "./Header"; export default { components: { Header, }, name...
2018/03/11
817
2,883
<issue_start>username_0: I am getting errors like `error: undefined reference to __imp__ZN12QApplicationC1ERiPPci'` and `error: undefined reference to __imp__ZN11QMainWindow11qt_metacastEPKc'` on project build. I have tried cleaning and rebuilding but nothing has worked. I have seen many other posts about this error, ...
2018/03/11
427
1,639
<issue_start>username_0: I have persistent checkboxes which represent the days of the week. I was able to store these values in `localStorage` in an array so that they stay after refresh. What I want to know is how can I output "Weekday" or "Weekend" based on the selection of the days? For example a user selects "Mon...
2018/03/11
2,144
11,199
<issue_start>username_0: I have about Spring Security from various resources and I know how filters and authentication managers work separately but I am not sure of the exact sequence in which a request works with them. If I am not wrong, in short the request first goes through the filters and the filters call their re...
2018/03/11
789
2,621
<issue_start>username_0: I'd rather be using Enums but I need an easy way to display strings. ``` public struct OpportunityStatus { public static string Active { get; } = "stat_WWuMrC5QlVlr7geYuxDStp5BfrEtfl63H8JaQoIdYAG"; public static string Lost { get; } = "stat_LOjFr8l9IG0XQ0Wq23d0uiXe3fDEapCW...
2018/03/11
417
1,558
<issue_start>username_0: I have a function finding the first cell in a column containing a value: ``` recherche = colonneRecherche.createSearchDescriptor with recherche .SearchString = valeur .SearchCaseSensitive = false .SearchByRow = true .Se...
2018/03/11
1,452
4,182
<issue_start>username_0: I'm following this tutorial on how to create an animated navigation side menu . This is the website: <https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_sidenav> ...Its positioned on the left side of the screen and It currently slides in from the left, I positioned the entire menu o...
2018/03/11
1,320
4,499
<issue_start>username_0: Visiting the relevant url, an html page is rendered. I need to programmatically save this html page to a pdf file on the server. **views.py** ``` class PdfView(DetailView): model = TheModel template_name = 'pdf.html' ``` **urls.py** ``` urlpatterns = [ url( r'^(?P[0-9]...
2018/03/11
677
2,189
<issue_start>username_0: I was looking for a method to round float numbers in c++ this morning and I found [this answer](https://stackoverflow.com/questions/5907031/printing-the-correct-number-of-decimal-points-with-cout) solve my problem. However, I notice something unusual to me. When I try to round certain float n...
2018/03/11
549
1,988
<issue_start>username_0: I am pretty sure this was asked before but I could not find any answers, so here I go. This is a simple line of code and I cannot get it to exit the `while loop`. If I change the `||` to `&&` the loop just exit no matter what I press. Thank you for the answers. ``` #include int main() { int...
2018/03/11
1,155
3,743
<issue_start>username_0: I'm developing an app using react native and Expo, and I'm having trouble with the keyboard on Android. When the keyboard pops up, it pushes the view up too much, causing the title to be cut in the middle. On iOS it's fine. I'd like to achieve the same behaviour.. I took a look at the docs, b...
2018/03/11
559
1,993
<issue_start>username_0: I've this simple code that's test if the 1st character of the string is or not a number : ``` if (!isNaN(this.data0.username.substring(1,0)) ) { //Something } ``` This actually works fine, but my editor and my linter don't like it. It's displays: Argument of type STRING is not assignabl...
2018/03/11
541
2,196
<issue_start>username_0: ``` class Run { public delegate void PrintRandomEvent(); public static event PrintRandomEvent print; public void run() { while(true) { print(); } } } class Print { Run.print += new Run.PrintRandomEvent(t...
2018/03/11
779
2,741
<issue_start>username_0: I'm trying to validate a given date, but it's not working how I would like it. The user inputs a date, and it gets parsed and passed to an array, and I'm trying to validate the date is a correct date(taking into account leap years, Feb, etc) without making the code extremely lengthy. ``` ...
2018/03/11
526
1,744
<issue_start>username_0: I have some results that are loaded via `Ajax` in the `#results` container and anothers, the same content in `#last_results` (this one loads without ajax). The same scripts that work on `#last_results` doesnt work in `#results` I think due to they are not binded. **HTML** ``` * [click t...
2018/03/11
1,269
3,831
<issue_start>username_0: Simply I want to Plot a bar chart like the following figure from Orange dataset Any help will be appreciated. [![enter image description here](https://i.stack.imgur.com/4eInM.png)](https://i.stack.imgur.com/4eInM.png)<issue_comment>username_1: You could assign the groups based on `age` by usi...
2018/03/11
1,165
4,246
<issue_start>username_0: My Angular 5 application is based on [NgRx](https://ngrx.github.io/), a state management library similar to Redux but based on RxJS. I often need to get the latest value from the store based on the payload of the current action. In RxJS terminology, it means that I have my main stream that co...
2018/03/11
1,313
5,007
<issue_start>username_0: In the Vue.js documentation, there is an example of a custom input component. I'm trying to figure out how I can write a unit test for a component like that. Usage of the component would look like this ``` ``` The full implementation can be found at <https://v2.vuejs.org/v2/guide/components....
2018/03/11
896
3,410
<issue_start>username_0: Are compilers empowered or even capable of optimizing arithmetic operations where one side is an integer type, while the other is a float? Or will the integer just be promoted to a float before performing the operation in 100% of the cases? The reason I ask is because I like to perform the flo...
2018/03/11
737
1,813
<issue_start>username_0: I am tring to do an extending function, one that will work as list.extend method, but i don't want it to contain list.extend method or the '+' operator, and in addition I need to extend 'x' and not to 'y' (you will see). first of all, this is x and y: ``` x = [4, 5, 6] y = [1, 2, 3] ``` I t...
2018/03/11
435
1,558
<issue_start>username_0: I am struggling to understand why does not `ListFindAll(...)` method accepts `Func` but instead insists on accepting `Predicate`. So when I have a `List` of books and I want to get only books, which are cheaper than 10. This code runs just fine. ``` Predicate CheapBooksPredicate = b => b.Pr...
2018/03/11
462
1,916
<issue_start>username_0: I'm making a quiz app and while my Toast Method worked the first time I ran it, it's not now that I've changed some of the code. It now tells me that it cannot resolve the Toast Method. I'm not sure what I am missing. Any help would be greatly appreciated. ``` submit = (Button) findViewByI...
2018/03/11
945
4,043
<issue_start>username_0: I am calling an activity and also transferring the values from adapter to the next activity the values are transferred but unable to star the activity and also there is no error just the next activity doesn't open **Holder:** ``` public class ContactReadHolder extends RecyclerView.ViewHolder ...
2018/03/11
1,002
3,514
<issue_start>username_0: I have trying to generate a deck of cards that print out a list of 7 values and then I want to put the list into order. I am a basic python coder and working my way through a python for beginners book I bought. ``` import random for x in range(7): rank = random.choice( ('A','2','3','4','5...
2018/03/11
1,037
3,200
<issue_start>username_0: I have a dictionary with missing values (the key is there, but the associated value is empty). For example I want the dictionary below: ``` dct = {'ID':'', 'gender':'male', 'age':'20', 'weight':'', 'height':'5.7'} ``` to be changed to this form: ``` dct = {'ID':NaN, 'gender':'male', 'age':'...
2018/03/11
1,131
4,098
<issue_start>username_0: I'm inserting/updating a mysql table from json URL, but some of the values in $points contain a dash and I want to amend to a zero (or null would be fine) when updating so that I can have the column set to INT. I know how to simply replace all - to 0 in mysql but stuck when it comes to trying ...
2018/03/11
792
2,817
<issue_start>username_0: I am trying to sort a list. But when I try, it always seems to sort by just the first digit. This is my code: ``` data = input("enter your data separated by spaces: ") data = data.split(' ') data.sort() ``` My input is just numbers. eg. 1 25 3 466 4 32 5 but with this input the output is so...
2018/03/11
378
1,358
<issue_start>username_0: I want to get all languages using this code: ``` public List getGeneratePreferedLanguagesList() { String[] languageCodes = Locale.getISOLanguages(); List list = new ArrayList<>(); for (String cc : languageCodes) { list.add(new Locale("", cc).getDisplayLanguage()); } Collections.sort(...
2018/03/11
516
2,219
<issue_start>username_0: I have 8 different AWS Lambda functions that need to share some common data. (like common configuration for database, etc)<issue_comment>username_1: There is no in-built technique for sharing data between Lambda functions. Each function runs independently and there is no shared datastore. You ...
2018/03/11
772
2,594
<issue_start>username_0: I'm reading Computer Systems for my CS class and I've come across a while loop condition that's puzzling me, here's the code: ``` int parseline(char *buf, char **argv) { char *delim; /* Points to first space delimiter */ int argc; /* Number of args */ int bg; /* Background job? */ ...
2018/03/11
526
1,939
<issue_start>username_0: So I'm trying to get a jpeg/png representation of the grayscale depth maps that are typically used in iOS image depth examples. The depth data is stored in each jpeg as aux data. I've followed some tutorials and I have no problem rendering this gray scale data to the screen, but I can find no w...
2018/03/11
457
1,591
<issue_start>username_0: I'm writing a basic number guessing game, and I'm trying to put the program into a window. Everything works fine except when I try to access the variable created in my `entry_box` and then compare it to an `int`. Right now, the variable coming out of the `entry_box` is a `StringVar`. How do I ...
2018/03/11
370
959
<issue_start>username_0: I'm using regex and I want the number from `00001` to `99999`. It should have 5 digits. I know I can use `[0-9]{5}`, but then I have the number `00000`, but it should begin at `00001`.<issue_comment>username_1: ``` (?!00000)[0-9]{5} ``` Explanation: * Negative Lookahead (?!00000) - Assert ...
2018/03/11
670
2,096
<issue_start>username_0: I want the entire container to be horizontally centered, but what i discovered was that before even doing that, its sitting on left and not covering the whole page. What am i doing wrong? Am I not setting the width of page properly? or am i using flexbox wrong? ```css body { height: 100vh; ...
2018/03/11
720
2,517
<issue_start>username_0: I need to make text wrap around image with bootstrap 4 wihout floats, is it possible? Here my code: ``` php the\_post\_thumbnail(); ? php the\_content(); ? ``` Here what I have now: [![enter image description here](https://i.stack.imgur.com/nwtsm.png)](https://i.stack.imgur.com/nwtsm.pn...
2018/03/11
1,379
3,560
<issue_start>username_0: I have the following DataFrame in Spark and Scala: ``` group nodeId date 1 1 2016-10-12T12:10:00.000Z 1 2 2016-10-12T12:00:00.000Z 1 3 2016-10-12T12:05:00.000Z 2 1 2016-10-12T12:30:00.000Z 2 2 2016-10-12T12:35:00.000Z ``` I...
2018/03/11
761
2,263
<issue_start>username_0: So, I want to create a function that lets the user "declare" an array, something like `int_array(a,3);` and that's my code for the function: ``` int int_array(int *p, int n) { *p = (int*)malloc(n*sizeof(int)); return *p; } ``` The thing is, I receive the following error: > > invalid ...
2018/03/11
841
2,722
<issue_start>username_0: I'm working on a game, and I've stumbled across a fews ways to load an image into my program. There are two common ways: --- * The first (No class folder needed): ImageIcon ii = new ImageIcon("image.png"); Image i = ii.getImage(); When using this method, you simply *add a folder* to your Pr...
2018/03/11
686
1,884
<issue_start>username_0: `[x:ys | x<-[1,2], ys<-[]]` above code outputs `[]`. I thought it should output `[1,2]`. So what am I get wrong with Haskell evaluation?<issue_comment>username_1: There are two problems with your expectation: 1. `x:ys` always creates a new list; `x:[] == [x]`, not `x:[] == x`. 2. Even if `x:...
2018/03/11
660
2,773
<issue_start>username_0: I'm trying to get the name of the device that is connected to the Android phone running android Oreo. I was searching for an answer for the past two days, and none of them worked. suggestions mostly returning `ioexception-read-failed-socket-might-closed-bluetooth` error The question is, is t...
2018/03/11
345
948
<issue_start>username_0: Suppose we have a toy example like below. ``` np.random.seed(seed=1) df = pd.DataFrame(np.random.randint(low=0, high=2, size=(5, 2))) df 0 1 0 1 1 1 0 0 2 1 1 3 1 1 4 1 0 ``` We want to retur...
2018/03/11
330
1,238
<issue_start>username_0: i added mdb-angular2 to my angular app,it working really fine except that i can't seem to get a modal to display on button click, i copied the exact example on the mdn website but its still not working inside my app. below is my html template code ``` Launch demo modal ##### Modal title ×...
2018/03/11
517
1,760
<issue_start>username_0: ``` public static void main(String[] args) { // <NAME> Scanner keyboard = new Scanner(System.in); int n; System.out.print("Enter a non-negative integer (-1 to quit) : "); n = keyboard.nextInt(); int factorial = Factorial(n); while (n >= 1) { System.o...
2018/03/11
1,334
6,160
<issue_start>username_0: I'm trying to build-in an Image Uplaoder to my CMS for the gallery. I've done some research and found what I need to build it. The uploader uses three files. The first one is where to select the images for upload and showing some progress. Connected to this is a js file for resizing the selecte...
2018/03/11
455
1,594
<issue_start>username_0: I have two tables, one (table A) with products inside (name, price, etc) and another table with just strings (a table with one column "keywords"). How would I construct a query which fetches me all the products from table A "productName" that contains any string from table B's "keywords" colu...
2018/03/11
343
1,356
<issue_start>username_0: I'm trying to integrate with the Square Connect API, but I am having trouble testing the entire flow without using a real credit card. The Catalog API is not compatible with Connect V2's Sandbox mode. This means I can only create Transactions using ad-hoc products. This is not very good for me...
2018/03/11
280
1,014
<issue_start>username_0: Using a Java client API, how can I get the **queue size** in a remote ActiveMQ **Artemis 2.4.0** broker?<issue_comment>username_1: Did you include jQuery in your project? jQuery is required for mdb-angular2 javascript components like modal, carousel, dropdown etc. You can install jQuery via >...
2018/03/11
1,553
4,671
<issue_start>username_0: Working in .net i'm parsing a log file where some lines do not begin with '"2018'. I need a .Match clause that will find lines where the line begins with anything except the string "2018 (note that includes the double quote). When found (and this is the tricky bit) - remove the line break from ...
2018/03/11
515
1,789
<issue_start>username_0: ``` struct led { const int loc; int state; unsigned int stateDuration []; int stateMode; unsigned long timestamp; } led1 = {D0, 0, {500}, 0, 0}, led2 = {D7, 0, {100, 900, 400}, 0, 0}; ``` This gives me a compilation error "too many initializers" (the array size is 0). Is it po...
2018/03/11
635
2,519
<issue_start>username_0: I am running into a problem where I am trying populate a table that consists of users and tasks. The table currently has some users who have completed tasks and there is a constraint where a user cannot complete the same task twice. Here is an example: ``` *UsersTable* *TasksTab...
2018/03/11
677
2,397
<issue_start>username_0: To make things easier, I can define the main url of my page as a constant in a template: `tx_dti.settings.url = https:/someserver/` Now I like to use this constant in my text element to link an internal page eg: `[Contact Form]({tx_dti.settings.url}?id=13)` Unfortunately my above mentione...
2018/03/11
1,090
4,115
<issue_start>username_0: I am new to Kivy, and I want to create a simple login system for desktop app. Here's my python code: ``` class LoginPage(Screen): pass class UserPage(Screen): pass class ScreenManagement(ScreenManager): pass kv_file = Builder.load_file('login.kv') class LoginApp(App): def bui...
2018/03/11
1,778
6,573
<issue_start>username_0: I am trying to use `RealmSwift` in order to save items to the phone storage in Swift 4. I have two different Views; one for the save functionality and another which will display all saved items into a TableView. I have a buildable form coded but i am throwing an error `Thread 1: signal SIGABRT`...
2018/03/11
375
1,344
<issue_start>username_0: Recently I installed Visual Studio 2017 Enterprise along with WDK 10 for 1709 My workloads contained C++ workload. . My machine is a Windows 8.1 Pro with net framework 4.6.1. After installing the WDK I expected the templates to come in the Legacy section of Visual C++ but no legacy option is pr...
2018/03/11
1,096
4,553
<issue_start>username_0: I have Main class with main method. I create two Threads What i noticed that code from main thread executes before created Threads. What i was expecting is to run it simultaneous. Why code from main method executes berofe code from Threads? Main.class: ``` public class Main extends Thread { p...
2018/03/11
487
1,686
<issue_start>username_0: I love <NAME>'s Officer and Flextable packages and they are really a flexible alternative to write word document reports with complex layouts which are not achievable in R markdown. I have created custom styles for paragraphs and tables using officer, but now I am using flextable to customise ...
2018/03/11
1,411
4,336
<issue_start>username_0: **Podfile** ``` target 'T' do use_frameworks! pod 'Firebase/Core' pod 'Firebase/Messaging' pod ‘Firebase’ pod ‘Firebase/Auth’ pod 'Firebase/Database' pod 'Firebase/Storage' end ``` **imports in AppDelegate.swift** ``` import UIKit import CoreData import Firebase import UserNo...
2018/03/11
835
3,220
<issue_start>username_0: So I have... * 1st topic that has general application logs (log4j). Stores things like HTTP API requests/responses and warnings, exceptions etc... There can be multiple logs associated to one logical business request. (These logs happen within seconds of each other) * 2nd topic contains comman...
2018/03/11
1,415
5,591
<issue_start>username_0: Good morning, I'm trying to write an application that use in his interface a progressbar (in C#, WPF). I have read about the need of perform the UI task in a different thread, using Backgroundworker. I trying to make it work using a lot of information, but nothing happens (the program work fine...
2018/03/11
1,472
6,644
<issue_start>username_0: The title might be incorrect, but I will try to explain my issue. My project is a Spring Boot project. I have services which do calls to external REST endpoints. I have a service method which contains several method calls to other services I have. Every individual method call can be successful...
2018/03/11
776
2,466
<issue_start>username_0: I'm learning Haskell with <NAME>'s "Learn You a Haskell for Great Good!". In page 82 it says > > If a pattern match fails, the list comprehension will just move on to the next element, and the element that failed won’t be included in the resulting list. > > > Example: ``` ghci> let xs =...
2018/03/11
716
2,320
<issue_start>username_0: first of all my english is not really good. I want to write a script in HTML where i can make a login access between 21:00 (9 PM) till 6:00 AM. ``` function myFunc() { var today = new Date(); var h = today.getHours(); var stunde = [21, 22, 23, 1, 2, 3, 4, 5, 6]; ...
2018/03/11
521
1,600
<issue_start>username_0: Having an array like: ``` let MyArray = [{ id: 1, name: 'xx', age: '20', prop: val, propx: valx }, { id: 2, name: 'yy', age: '30', prop: val2, propx: valy }, { id: 3, name: 'zz', age: '40', prop: val3, propx: valz }] ``` How can one filter this array to get the result of a sear...
2018/03/11
461
1,671
<issue_start>username_0: i recently started learning python and my friend from work who is a programmer gave me a simple challenge to write a "guess the number" style game. So i came up with something as follows: ``` import random print("Hello, welcome to GUESS THE NUMBER game") run = True def again(): global ...
2018/03/11
1,032
2,938
<issue_start>username_0: I have a code for squaring each number in a list in Python, but I have issues with it. My code doesn't give me the right answer. If I have `[2,3,4,5,6,7]` the answer should be `[4, 9, 16, 25, 36, 49]`, but I get `[49]`. Here’s my code: ``` numList = [2,3,4,5,6,7] def square (N): sq = N * N...
2018/03/11
590
2,068
<issue_start>username_0: I am trying to highlight rows in Excel if they have a numeric values in this column (others are blank), however this code highlights all of them: ``` For lRow = LastRow To FirstRow Step -1 With .Cells(lRow, "AF") If IsNumeric(.Value) Then .EntireRow.Interior.Color = 529...
2018/03/11
663
1,932
<issue_start>username_0: I'm trying to do something very simple here and failing miserably. I just want to convert a string with a complete date into just the hours and minutes, can anyone see where I am going wrong? The following code prints nil ``` let dateString2 = "2018-03-11 20:43:05 +0000" let dateFormatter = D...
2018/03/11
949
2,675
<issue_start>username_0: I have a list of lists (each sublist of the same length) of tuples (each tuple of the same length, 2). Each sublist represents a sentence, and the tuples are bigrams of that sentence. When using `np.asarray` to turn this into an array, python seems to interpret the tuples as me asking for a 3...
2018/03/11
538
1,636
<issue_start>username_0: If we creating a transaction to smart contract via metamask and user doesn't confirm it, it stays in list of transactions and user can send it much later, or reject it in another tab. Is there any way to check that transaction was rejected or still waits for user confirmation<issue_comment>user...
2018/03/11
963
2,093
<issue_start>username_0: I have a dataset in pandas with column pid (patient id), and code (drug code), sorted in rows as the example shows. I need to convert them to 1 patient/row, and list all the drugs as attributes for each patient. What I have now: ``` pid code 1 Az 1 Bn 2 Az 2 Bn 2 C4 3 Bn 3 ...