date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/27
2,295
7,033
<issue_start>username_0: I have a Double variable that is `0.0449999` and I would like to round it to 1 decimal place `0.1` . I am using Kotlin but the Java solution is also helpful. `val number:Double = 0.0449999` I tried getting 1 decimal place with these two solutions: 1. `val solution = Math.round(number * 10.0...
2018/02/27
575
1,861
<issue_start>username_0: ``` from tkinter import * def hi(event): print(txt.get('1.0',END)) txt.delete('1.0',END) root = Tk() lbl = Label(root, text="client") lbl.pack() txt = Text(root, height=10, width=50) txt.pack() txt.bind('', hi) btn = Button(root, text="OK") btn.pack() root.mainloop() ``` When I ...
2018/02/27
577
2,157
<issue_start>username_0: I have data in below format ``` select abc string adef double opr timestamp from Test; select dfg string asd ...
2018/02/27
2,435
6,958
<issue_start>username_0: I have two images moving around a DOM element. But their rotation is wrong and the movement is not smooth. My fiddle ```css #mainPage { width: 400px; height: 165px; margin: 10% auto; } #mainPage>p { text-align: center; } .bicycle { width: 48px; height: 30px; backgro...
2018/02/27
2,120
6,832
<issue_start>username_0: The FTP protocol is designed to support a control channel, and use that control channel to tell the server to open TCP connections and transfer files. The server sending or receiving files does NOT have to be the same as the server that the FTP control channel is connected to. It can be a "tri...
2018/02/27
1,798
5,669
<issue_start>username_0: The selected picture from the user is **selectedImage**. My program uploads a user's picture under his unique nickname folder. E.g if david uploads a pic, it goes under "david" folder, but I want to be able to have the same filename for every picture uploaded. The goal: If david uploads 1 pic a...
2018/02/27
262
970
<issue_start>username_0: Question: Find the names of all employees in the database who earn more than every employee of 'Small Bank Corporation'. Assume that all people work for at most one company. [![enter image description here](https://i.stack.imgur.com/NQd6P.png)](https://i.stack.imgur.com/NQd6P.png) I tried thi...
2018/02/27
700
2,396
<issue_start>username_0: We have an address field in our database that I need to split up into two columns (Address1 and Address2). I'm looking for a way to split up this string after the CR/LF section. How can I do this? I'm using SSMS 2016<issue_comment>username_1: Something like this could be used - Carriage retu...
2018/02/27
656
2,011
<issue_start>username_0: I have 2 classes that are causing an issue - Class "A" and Class "B". Class A has to be able to store objects of Class B but a function in Class B must take in arguments of Class A. The code I have is below. Class A: ``` #ifndef INC_A #define INC_A #include "ClassB.h" class ClassA { private:...
2018/02/27
2,760
11,181
<issue_start>username_0: Using AWS's Cognito without the hosted UI, given a username, and password I would like to receive an Authorization code grant without using the hosted ui. Is this possible? I am writing my own sign up, log in forms but cannot seem to find documentation on this subject. Currently I can use AWS...
2018/02/27
1,105
3,680
<issue_start>username_0: I am running a PHP site on Windows using Wampserver. All throughout the site there is a hardcoded line such as: ``` $settings = parse_ini_file("/usr/local/apache2/myconfigs/settings.ini", true); ``` I know this is bad practice to begin with but it is out of my control. When the site runs is...
2018/02/27
1,068
3,573
<issue_start>username_0: While developping an Android App, I saw that all my images displayed from the assets are pixelated. I'm using this 2 lines to display them: ``` Drawable imageDrawable = Drawable.createFromStream("my_logo.png", null); imageView.setBackground(imageDrawable); ``` The images have as dimension:...
2018/02/27
1,345
3,674
<issue_start>username_0: In the following code I have written 2 methods that theoretically(in my mind) should do the same thing. Unfortunately they don't, I am unable to find out why they don't do the same thing per the numpy documentation. ``` import numpy as np dW = np.zeros((20, 10)) y = [1 for _ in range(100)] X ...
2018/02/27
483
1,586
<issue_start>username_0: I have a set of `li`s and what I want is once I click on a especific `li` to change his background color and attach a button in it. ``` * hi * hello * how are you * come on * go out * lets go ``` This is the code I have so far, the problem is that it attaches several buttons in the same `l...
2018/02/27
1,083
3,685
<issue_start>username_0: I have saved some documents in mongodb compass successfully. I am trying to retrieve the values by querying some of the parameters. I understand that mongodb findOne has arguments such as `query, fields(by default value: all), options and callback` but the result of the operation returns nu...
2018/02/27
672
2,720
<issue_start>username_0: I have a list of radio buttons that gets loaded from a database. $missing below is a mysql query result in which I retrieve labels for my radio buttons. That part works a-okay: ``` '; foreach ($missing as &$path) { $prov = $path['template\_name']; $return .= ''.$prov.""; $return .= ' '...
2018/02/27
563
1,869
<issue_start>username_0: I have given an array of document **id's** which I want to add to Firestore. ``` let documentIds = [ 'San Francisco', 'New York', 'Las Vegas' ] ``` Each document should have a predefined set of properties. ``` let data = { country: 'US', language: 'English' } ``` Is there some f...
2018/02/27
747
2,509
<issue_start>username_0: HTML: ``` ইসলাম ও জীবন কবিতা গল্প ট্রিপস & ট্রিকস প্রযুক্তি সাম্প্রতিক বিষয় ``` jquer: ``` jQuery(document).ready(function($){ $('.require').bind("propertychange change click keyup input paste", function(event){ THIS = $(this); validate(); if(no_err...
2018/02/27
477
1,805
<issue_start>username_0: We're using QtCreator 3.2.1 to analyse core dumps on Linux (Debian Jessie). Currently we load it up manually via the menu and "Load Core File" dialog, which allows us to specify a GDB startup script which we use to set up the source code search paths. The paths, and hence the startup script, de...
2018/02/27
2,054
7,684
<issue_start>username_0: I am trying to consume `REST` API which takes `JSON` payload and returns plain/text in the response. But I am getting following error during runtime. **SpotifyIntegrationApplication.java** ``` @SpringBootApplication public class SpotifyIntegrationApplication { private static final Logge...
2018/02/27
1,145
4,968
<issue_start>username_0: In my web application, there are several components that will need access to the same data (in JSON). To avoid making unnecessary REST calls, I made a module that is supposed make a fetch request and store the result in a variable. On subsequent requests... if the data is available in the modul...
2018/02/27
862
2,880
<issue_start>username_0: Im fairly new to Angular/Typescript. Im kinda learning and developing at the same time. Im trying to build a grid with data loaded from a Json file and Im having some issues with showing my Data. I'd love if you guys could point to my error, cuz my code compiles with no errors and Im kinda help...
2018/02/27
587
2,252
<issue_start>username_0: When I `pip install` (or `pip install --upgrade`) packages that require `numpy`, they have a tendency to uninstall my existing `numpy+mkl` (which has a high enough version to satisfy the `numpy` version requirement). Afterwards, they install `numpy` without `+mkl`, which causes problems for oth...
2018/02/27
247
1,052
<issue_start>username_0: I have looked into using NSAttributedString but that will colour background based on line length but I would like to create coloured rectangular backgrounds that span width of view/label. This is how I'd like my text to show with rectangular block coloured backgrounds for each paragraph with ...
2018/02/27
822
2,570
<issue_start>username_0: I have this situation: ``` ``` Now, when I click on link it's ok, but if I click on (which is inside of ) nothing happens (because of `@click.self.stop`). What I would like to achieve is to trigger same method, in this case `removeRow()`, no matter if I click or is clicked. I need to get...
2018/02/27
453
1,507
<issue_start>username_0: I'm trying to achieve as above - I got as far as I could, but the code does not execute at all. ``` $('.container').on('click', 'form', function() { var clone = $('form').clone(); clone.find('input').attr('name', 'pick0' + length); $('form').appendChild(clone); }); ``` html + js exampl...
2018/02/27
1,419
5,132
<issue_start>username_0: So, here is the scenario: I am trying to make all of my forms (which are Winforms) look good in 4K and 1080p also known as high-DPI or "dpi-aware". I (for the purpose of this question) have three forms: *frmCompanyMasterEdit* which inherits from *frmBaseEdit* which inherits from *frmBase*, whic...
2018/02/27
1,311
3,925
<issue_start>username_0: Previously [a question](https://stackoverflow.com/questions/27491196/rust-array-of-functions) was asked about creating an array of functions where the functions returned integers from a range. The final solution was to do a map/collect into a `Vec<_>`. I have a similar yet different situation...
2018/02/27
1,073
3,234
<issue_start>username_0: I am learning Javascript at Freecodecamp. This challenge is to chop of n elements from the head of an array. My code works, except when slicing at 1. I have been at this for a while, unfortunately I do not have my head around for loops sufficiently to find my own solution. I feel its best I kn...
2018/02/27
949
2,872
<issue_start>username_0: ``` #include "stdafx.h" int main() { int num = 11, i = 10; char s[10]; while (num != 0) { if (num % 2 == 0) { num = num / 2; s[i - 1] = 0; i = i - 1; } if (num % 2 == 1) { num = (num - 1) / 2; s[i - 1] = 1; ...
2018/02/27
1,701
4,841
<issue_start>username_0: I am trying to get some complex feature which I will describe simplified here: I have several kinds of structures with different variables inside: ``` struct param1 { int varA; int varB; }p1; struct param2 { int varX; int varY; int varZ; }p2; ``` And on the other hand, I have a functio...
2018/02/27
1,699
5,058
<issue_start>username_0: Here is the deal. I have a datagrid (actually a telerik rad grid, but I don't think it makes much difference), in which we have many currency columns (close to 10) that we want to format in a very specif manner (i.e. not the typical $0.00 format we usually). In order to do that, we use a conve...
2018/02/27
1,311
4,333
<issue_start>username_0: This one is ruining me. Something that I'm pretty sure should be simple just isn't working and it's probably just a single quotation/character out of place. There's a lync/Skype tool called sefautil.exe that does all kinds of marvelous things the webGUI doesn't. A typical command would be: ``...
2018/02/27
610
2,009
<issue_start>username_0: I used: ``` services.AddAuthenticationCore().ConfigureApplicationCookie(o => { o.ExpireTimeSpan = TimeSpan.FromHours(1); o.SlidingExpiration = true; }); ``` to set my authentication cookie `ExpireTimeSpan` in **Startup.cs** in ASP.NET Core MVC project. I can see that the cookie expi...
2018/02/27
1,132
4,185
<issue_start>username_0: im having this issue which is breaking my head right now and I cant figured out what is the problem. I have a form called device-form, which is called from the dashboard using routing. The device form has inside 4 tabs (angular material), and the second one must show a Highchart component, when...
2018/02/27
1,167
3,162
<issue_start>username_0: I read quite a few threads on creating Venn Diagram in R. [Is it possible to create a proportional triple Venn Diagram](https://stackoverflow.com/questions/46849802/is-it-possible-to-create-a-proportional-triple-venn-diagram) talks about using `eulerr` package. [Venn diagram proportional and co...
2018/02/27
1,522
4,118
<issue_start>username_0: I have a question in reference to a query to the database. I have this table: [![enter image description here](https://i.stack.imgur.com/pTszQ.png)](https://i.stack.imgur.com/pTszQ.png) In another window, i have a form with start and end date inputs and I want to do a sql to confirm if the r...
2018/02/27
569
2,006
<issue_start>username_0: When executed in firebase cloud functions, the following command returns the American format instead of the localised one. However, it works well in browsers. ``` price.toLocaleString("pt-BR", { maximumFractionDigits: 2 }); ``` Is there any way toLocaleString() works properly in firebase c...
2018/02/27
618
2,544
<issue_start>username_0: I have multiple columns listed below: ``` state sport size color name florida football 1 red Max nevada football 1 red Max ohio football 1 red ...
2018/02/27
1,507
5,086
<issue_start>username_0: I struggled so hard for a suitable title, but hopefully I described it decent enough. I am storing different `id`s inside a table, to later display the data for the rows with the `id` and exclude the others that are not selected. My `products` table looks like this (e.g): ``` ╔═══════╦═════╗...
2018/02/27
394
1,419
<issue_start>username_0: I understand that cookbook has a syntax error: > > FATAL: Cookbook file has a ruby syntax error. > > > How to find detailed information on the error using knife tool upload command `knife upload cookbooks/wso2-* --force -V INFO: Using configuration from knife.rb INFO: Validating ruby fi...
2018/02/27
283
1,020
<issue_start>username_0: When the user enters text in my textarea, my window changes color. I want that when it clicks outside the textarea, it replaces color as before. ``` detectTextarea(event: any): any { this.changeColor = true; var textarea = document.getElementById("textarea"); } ``` /////////UPDATE////...
2018/02/27
576
1,855
<issue_start>username_0: Any one with an idea on how i can access the "13-02-2018"? Help will be highly appreciated. [the object](https://i.stack.imgur.com/tJXVi.png) I have named the array "Data" ``` for (var i = 0; i < Data.length;i++){ var temp =Data[i].[0]; } ```<issue_comment>...
2018/02/27
744
2,261
<issue_start>username_0: I am new to R and just started working with list. I have a list of different lengths that I would like to convert into a data frame. My list looks something like this: ``` List of A: $ reference: chr [1:20000] "13000" "5000" "23234" ... $ name_1 : chr [1:9000] "5000" "14523" ... $ name_2...
2018/02/27
1,754
3,498
<issue_start>username_0: I have a string in hex: ``` Hex = 'E388854083969497A4A38599408881A2409985829696A38584408699969440814082A48783888583924B' ``` As a byte object it looks like this: ``` b'\xe3\x88\x85@'b'\xe3\x88\x85@\x83\x96\x94\x97\xa4'b'\xe3\x88\x85@'b'\xe3\x88\x85@\x83\x96\x94\x97\xa4'b'\xe3\x88\x85@\x83'b...
2018/02/27
1,725
5,778
<issue_start>username_0: I am very new to programming and specifically to js and I am working in a problem where I have to return the number of times a given number (argument) need to multiply its digits until it becomes a one digit number (less than 10). I know my general logic works except for the counter. I can't fi...
2018/02/27
786
3,402
<issue_start>username_0: I'm trying to rollback a group of transactions if there are exceptions thrown in the loop. But I don't want to break out of the loop or throw an exception without catching it. I don't want the business logic to be saved if any of the children in the loop throw an exception. So that means I can...
2018/02/27
504
2,137
<issue_start>username_0: My problem is the following, how can I implement a `UICollectionView` into a `UITableViewCell` (of my `UITableViewController`), and populate the Data that will load into the `UICollectionView` from my `UITableViewController`. I'm aware of how to set the different Components up but I don't know...
2018/02/27
750
2,922
<issue_start>username_0: I am Trying to build my First application by Entity Framework 6 Code First using MVC 5 but I have a problem, my application is online restaurant which contains Items class and it contains itemprice and itemamount and I would like to calculate its value itemprice\*itemamount to be saved in total...
2018/02/27
890
3,334
<issue_start>username_0: I am developing a simple Spring MVC(v4.1.2) and Angular4 app. Basically this app does CRUD operations by making http requests from angular client. Following combination works perfectly fine: Angular app ran using "ng serv" Spring MVC war deployed in a application server. Now, I am trying to ...
2018/02/27
386
1,391
<issue_start>username_0: I want to trigger a JavaScript function with a button that needs to do some things before it triggers the script (login). At the moment the login happens before the href is triggered so thats great. I was wondering if i could trigger a javascript function with the href. So the href would have ...
2018/02/27
416
1,491
<issue_start>username_0: I am new to developing with AWS Lambda. I have my function running correctly, but I wanted to modify it to run only when both triggers are triggered, perhaps within a certain timeframe (e.g. trigger 1 is hit, if trigger 2 is hit within a few seconds only then execute the Lambda function). I am...
2018/02/27
521
1,902
<issue_start>username_0: I am trying to make a form that have some horizontal and inline fields, found the best way instead fighting with the form classes just try to do it like another regular template, I am able to place the label and fields next to each other but they are not taking all the possible space, and touch...
2018/02/27
1,381
6,273
<issue_start>username_0: Because of using the same instances during the whole project I decided to put them in separate class and call them with static methods. The problem is that some of them works well some of them not. Don't understand what is the logic. I got a class with instances (i know about dagger2 don't wor...
2018/02/27
1,114
4,512
<issue_start>username_0: I'm trying to create a Collections feature (same as Pinterest Boards) where designer (aka devise user) can create collections and assign posts to own collections. 1 post can belong to many collections, and 1 collection can have many posts. So I created the **has\_many :through** relation via **...
2018/02/27
316
1,338
<issue_start>username_0: I have an Angular 4 component with a list of items. I followed the Angular documentation (<https://angular.io/api/animations/animation>) on setting up Enter and Leave animation when item is added or removed. But the same animation is played on all existing items in the list when the view is loa...
2018/02/27
653
2,315
<issue_start>username_0: The [Qt resource file .qrc](http://doc.qt.io/qt-5/resources.html#resource-collection-files-op-op-qrc) allows to split the embedded files into different prefixes ``` qml/CustomWidget.qml icons/home.png ``` I often see developers redoing the filesystem hierarchy with prefixes like the exam...
2018/02/27
676
2,489
<issue_start>username_0: Is it possible to identify if the login is being made from a strange machine? Creating a list of machines recognized by login? I have tried methods to capture data from the browser through .js, thus generating a fingerPrint but without success, because it is not possible to identify the machin...
2018/02/27
772
2,550
<issue_start>username_0: I'd like to reduce this code using the spread syntax to remove the for loop, any ideas? ``` function shiftChar() { let aCharArray = prompt("Enter a word").split(""); for (let i = 0; i < aCharArray.length; i++) { aCharArray[i] = String.fromCharCode(aCharArray[i].charCodeAt(0) + 1); } ...
2018/02/27
883
3,747
<issue_start>username_0: Meaning every page in my website queries something from the database. The query in itself is very small and the time it takes to load is unnoticeable, but I'm wondering if it's okay to do this for every page since I don't really know much about how querying from the database works and whether ...
2018/02/27
698
2,404
<issue_start>username_0: I have a code that works, but I would like to simplify it, if possible. This codes works when the value of a cell inside a range changes. It checks if the data inserted is a number, and then divides it automatically by one hundred, so I do not have to use the character that separate integers an...
2018/02/27
826
2,722
<issue_start>username_0: ``` public class test { public static void main(String[]args) { String test1 = "Nørrebro, Denmark"; String test2 = "ø"; String regex = new String("^&\\S*;$"); String value = test1.replaceAll(regex,""); System.out.println(test2....
2018/02/27
344
1,204
<issue_start>username_0: As I see `React.isFragment` is only a proposal for the moment: <https://github.com/facebook/react/issues/12038> Is there a workaround to do something like ``` if (child instanceof React.Fragment) { ... } ``` until that API is available. Temporary solution that works for me: ``` const is...
2018/02/27
620
2,679
<issue_start>username_0: I'm trying to write a custom authentication manager that will handle user login and logout and many other stuff in my ASP .Net Core 2.x app, but i'm stuck in the first place. i have tried the way suggested in [this Microsoft Article](https://learn.microsoft.com/en-us/aspnet/core/migration/1x-t...
2018/02/27
1,498
5,154
<issue_start>username_0: A textbook suggests I should be able to do this: ``` d = {} exec("C://Users//Dave//Desktop//Bot//bot_config_data.py", globals(), d) File "", line 1 C://Users//Dave//Desktop//Bot//bot\_config\_data.py ^ SyntaxError: invalid syntax ``` I can do this: ``` d = {} exec('from bot_config_data im...
2018/02/27
523
1,826
<issue_start>username_0: I installed the Networkit module with `conda install -c vgauthier networkit`. If I import it in a notebook (`import networkit as nk`) I get this error: ``` --------------------------------------------------------------------------- ImportError Traceback (most rece...
2018/02/27
2,694
7,314
<issue_start>username_0: Could someone give me an explanation why I get two different numbers, resp. 14 and 15, as an output from the following code? ``` #include int main() { double Vmax = 2.9; double Vmin = 1.4; double step = 0.1; double a =(Vmax-Vmin)/step; int b = (Vmax-Vmin)/step; int c = a; print...
2018/02/27
1,544
5,656
<issue_start>username_0: As I stated on a different post, I am moving from SQL Server to Neo4j, so I'm fighting the learning curve. I've been doing fairly well at searching StackOverflow and google to answer my questions, but I have stumbled across a weird result of a query that doesn't make sense. C# Code: ``` publi...
2018/02/27
636
2,013
<issue_start>username_0: I am trying to set a value of a productID field by searching the product name. The search returns the correct results and displays them but when clicking the value is being set as if it is a number. For exmaple this is what is returned when searching... ``` pID: "[Product Code=0001-001-004, ...
2018/02/27
542
1,933
<issue_start>username_0: For example I want to get such JSON in response in my Spring boot application: ``` { "firstName": "John", "lastName": "Doe", "phoneNumbers": [ "453 123-1234", "753 123-4567" ] } ``` I have @Entity annotated class: ``` @Entity public class MyEntity { String first...
2018/02/27
2,266
5,447
<issue_start>username_0: I have the following query: ``` SELECT DISTINCT cst_recno as 'MemID', evt_code as 'MeetingID', etp_code as 'Event Type', evt_start_date as 'Event Start Date', case when net_ivd_amount_cp=0 then 'Comp' else 'Paid' end as 'P/C' FROM ev_registrant join ev_event on e...
2018/02/27
1,186
3,914
<issue_start>username_0: I'm processing a large number of image files (tens of millions) and I need to return the number of pixels for each file. I have a function that uses an `std::map` to keep track of files already processed. If a path is found in the map, then the value is returned, otherwise the file is processe...
2018/02/27
753
2,517
<issue_start>username_0: Vue 2, no webpack. I want to render two trs at a time, for main and detail expandable row. This is what I'm trying to achieve: ``` | | ``` The problem is that is an invalid child of tbody. How to render two `| | |`s at each for loop iteration?<issue_comment>username_1: This is the way ...
2018/02/27
798
2,649
<issue_start>username_0: I have a date field in access where I have to calculate the first of the month following 60 days from that date. For example my date is 12/12/2017. I need to output 3/1/2018, First of the month following 60 days from 12/12/2017. I know how to use the DateAdd function to get my 60 days, but am c...
2018/02/27
1,938
4,138
<issue_start>username_0: ``` ID FROM TO 1881 11/02/2013 11/02/2013 3090 09/09/2013 09/09/2013 1113 24/11/2014 06/12/2014 1110 24/07/2013 25/07/2013 111 25/06/2015 05/09/2015 ``` If I have data.table of vacation dates, FROM and TO, I want to know how many people were on vacation for an...
2018/02/27
285
933
<issue_start>username_0: I would like to know how to configure stopwordsremover with french language in spark 1.6.3. I'm currently using pyspark. Thanks for your help. Best regards,<issue_comment>username_1: Based on Python Spark 1.6.3 [docs](https://spark.apache.org/docs/1.6.3/api/python/pyspark.ml.html#pyspark.ml....
2018/02/27
301
960
<issue_start>username_0: Is there a way to get Ethereum price data using the Coinbase API? I've looked at the [documentation](https://developers.coinbase.com/docs/wallet/guides/price-data) and I only see a way to get Bitcoin price data.<issue_comment>username_1: Found the answer thanks to [<NAME>ke](https://stackoverfl...
2018/02/27
1,047
3,829
<issue_start>username_0: I am creating a todolist with `react` and `redux` and when I update redux state array it doesn't re-render, My state is actually an array which contains objects, something like this: ``` [{index:1,value:'item1',done:false}, {index:2,value:'item2',done:false}] ``` What i want to do is on clic...
2018/02/27
620
2,200
<issue_start>username_0: I have an image heavy gallery page where I'm wanting to use a thumbnail image that is pre-sized to be a maximum width of 200px. The actual size of each image is very large, often exceeding 2000 pixels on the longest side. I've been using the Bootstrap class `img-responsive img-thumbnail` in or...
2018/02/27
1,189
4,518
<issue_start>username_0: I have a class with the following function : ``` public function get(string $uri) : stdClass { $this->client = new Client; $response = $this->client->request( 'GET', $uri, $this->headers ); return json_decode($response->getBody()); } ``` How can I moc...
2018/02/27
1,067
4,060
<issue_start>username_0: When calculating a large number in Python such as 2^(2^1000000), the program would run out of memory. Is there a way to break this calculation into smaller chunks so not as much memory gets used? EDIT: I only want to display a module of this number so I really only want to calculate the last 1...
2018/02/27
444
1,626
<issue_start>username_0: After updating `numpy` to version 1.14.1 I get the following warning message after executing any command (e.g. typing `1+1`): ``` /home/username/anaconda3/lib/python3.6/site-packages/numpy /core/_methods.py:26: RuntimeWarning: invalid value encountered in reduce return umr_maximum(a, axis, Non...
2018/02/27
350
1,089
<issue_start>username_0: I want to set object like this: ``` var x = 20; var y = 30; var z = { values: { x: '24', y: '60' }, value: x }; ``` I would like the variable z to look: ``` var z = { values: { 20: '24', ...
2018/02/27
1,384
5,447
<issue_start>username_0: I would like to hide the TabBar Label when the tab is not active. With `showLabel` from tabBarOptions I can only disable them completely. Thanks in advance. [![Material Design TabBar](https://i.stack.imgur.com/Pyke1.png)](https://i.stack.imgur.com/Pyke1.png)<issue_comment>username_1: I had tro...
2018/02/27
366
1,130
<issue_start>username_0: I need some help in getting JSON array parsed into a table in splunk. Have below JSON data in splunk ``` data="[ { 'environment':test, 'name':Java, 'date':28-01-2018 }, { 'environment':prod, 'name':Javascript, 'date':28-01-2019 } ]" ``` I am expecting an output as ``` ************...
2018/02/27
267
950
<issue_start>username_0: I'm want to create a PDF-file inside a NodeJS server-application (or at least fill inputs in a PDF-file). I found several solutions on google but am not sure if the Swisscom Application Cloud will allow me to run those modules, generate PDF's and save them. Is it possible to run any NodeJS mod...
2018/02/27
426
1,661
<issue_start>username_0: I have an `UITextField` that uses a `UIPickerView` with two columns as `inputView`. [![When the user taps on the Target Range cell, the picker at the bottom appears](https://i.stack.imgur.com/fFtW9.jpg)](https://i.stack.imgur.com/fFtW9.jpg) *Image: When the user taps on the Target Range cell...
2018/02/27
565
1,801
<issue_start>username_0: I'd like a DB2 compatible query for all the values in my own hardcoded list of values that are NOT in a table. This query works well in Microsoft SQL Server ``` SELECT * FROM (values (1),(2),(3),(4),(7), (7000000)) as T(ID) EXCEPT SELECT ID FROM ACCOUNT; ``` I'm aware of this answer [S...
2018/02/27
1,495
3,275
<issue_start>username_0: I'm not very experienced in javascript, but I've been trying to find a solution to my problem without success. I have 3 arrays with 15000 rows and 39 columns and I need to compare them to extract only values ​​that match the conditions I need in a single array. So far I've got this code and i...
2018/02/27
718
2,508
<issue_start>username_0: I have two arrays. The elements are identical, but the values can be different. The two elements i need to see if they match are .fromSourceId and .toSourceId The two arrays that i am comparing are userCompareData and userData. The number of elements will change. Ultimately, i am seeing if us...
2018/02/27
327
1,072
<issue_start>username_0: In R I have descriptions in a column and I am searching for specific words in the description. For example: ``` id description 1 "this is a house" 2 "the house is white" 3 "the apartment is far" 4 "the house is close" ``` I want to know which descriptions contain the word "house", and I want...
2018/02/27
379
1,286
<issue_start>username_0: What is the best way to configure a Spring Boot application to connect to GrapheneDB on Heroku? My spring boot application was configured to connect with my locally installed neo4j, after deploying the application and the dataset on graphenedb, nothing is working. I believe I have to make some ...
2018/02/27
383
1,203
<issue_start>username_0: Ok so I have two forms Form1 & form2 * in "form1" I have a "TextBox" and a "Button" that is set to open "form2". * in "form2" I have a "Button" which is set "visible" to "false". then I want in "form1" when the "TextBox" enters the text "Sample" it will make the button in "form2" "visible" se...
2018/02/27
456
1,651
<issue_start>username_0: I am trying to call a subprocess, this is the subprocess: ``` def data_PID(pid): print(pid) pid = str(pid) data = subprocess.getoutput("ps -l | grep pid ") print(data) ``` The PID is asked by console, and I want to search the use the value of that PID in the subprocess.getout...
2018/02/27
672
2,515
<issue_start>username_0: When you try to cast a value from a type to another incompatible type, you get the following error in C#: > > CS0039 Cannot convert type A to B via reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion > > > I understand how to potentia...
2018/02/27
830
3,188
<issue_start>username_0: I have the following exec commands in my gradle.build file. ``` exec { workingDir System.getProperty("user.dir") commandLine 'python3.6', 'buildscript.py' } exec { workingDir System.getProperty("user.dir") commandLine 'python3.6', '-m', 'virtualenv', 'env' } exec {...
2018/02/27
1,903
7,035
<issue_start>username_0: The question is about conception. I have simple class like this: ``` public class Data { string Server = ""; public Data(string Server) { this.Server = Server; } public class Items { public class Item { public int Id { get; set; } ...
2018/02/27
1,347
5,085
<issue_start>username_0: I'm trying to implement Angular5 http.get with retry. I wrote ``` http.get('/api/study').retryWhen( (errors: Observable):Observable => { return errors.flatMap((error: any) => { if (error.status == 500) { return Observable.of(error.status).delay(1000); } return Observable.throw(error); }...
2018/02/27
681
2,396
<issue_start>username_0: I am just exploring the logic of python and the way it works.. I want to know how this code works and what it actually means that made it give these results.. code: ``` print(str and int) print(int and str) print(str or int) print(int or str) ``` result: ``` ```<issue_comment>username_1: ...
2018/02/27
989
2,556
<issue_start>username_0: I have a pandas datafame where the rows in a particular column are sets of id's. I would like to aggregate across a 15min period and find all such unique id's. ``` timestamp | ids | some_int 00:03:00 {id1, id2, id3} 5 00:10:00 {id2, id4, id7, id10} 9 0...