date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
262
1,008
<issue_start>username_0: I have the following problem: I want to give content to a tooltip dynamically by executing a function with a param. The key here is that the param has the information I need to change the tooltip content since this tooltip is in a ng-repeat directive. My html is kinda this: ``` ... #####...
2018/02/28
786
2,665
<issue_start>username_0: I'm trying to do grouping by (to map) and then transform list of values to different list. I have List of DistrictDocuments: ``` List docs = new ArrayList<>(); ``` Then I'm streaming over it and grouping it by city: ``` Map> collect = docs.stream() .collect(Collectors.groupingBy(DistrictD...
2018/02/28
1,046
4,277
<issue_start>username_0: I am using FirebaseUI for Auth to handle authentication, What I want to do is to specify a certain activity to open if the user is signed-up (logged-in for the first time), Is there's a possible way to achieve this? **EDIT:** Here's the FirebaseUi authentication used: ``` List providers = Arr...
2018/02/28
446
1,504
<issue_start>username_0: Please if I run the command ``` # CREATE TRASH FOLDER if ! [ -d "$HOME/deleted" ] ; then mkdir $HOME/deleted fi TRASH=$HOME/deleted mv $@ $TRASH ``` To move file or directory to the trash created. what is the possible command i can run to recover same file to the original directory<...
2018/02/28
1,252
4,025
<issue_start>username_0: I'm trying to get two words in a string and I don't know how I can do it. I tried but if in a text file I have 'name <NAME>' it gives me :name Penny. How can I get <NAME> in s1? Thank you ``` #include #include int main() { printf("Hello world!\n"); char s[50]; char s1[20]; FILE\* fp = ...
2018/02/28
1,297
4,472
<issue_start>username_0: Known that C# support interface inheretence, i want to create an interface "B" that inherits from a base interface "A" but also hides some interface "A" members, just like a Class uses explicit interface implementation to hide an interface member, unless the class instance is casted to the impl...
2018/02/28
269
1,073
<issue_start>username_0: I am trying to fetch value from the first row and first column. After fetching I need to convert that value to a string. Please help me with the conversion. Here is my current code: ``` conn.ConnectionString = "Server=localhost;Database=MIN-MAK MRO;Trusted_Connection=true"; conn.Open(); SqlC...
2018/02/28
690
2,188
<issue_start>username_0: I have installed apache2 and wsgi on my Ubuntu16.4 I got this error; ``` ImportError: No module named 'settings' ``` In my Django project folder, there is the directory named 'settings' and inside 'settings' folder, several settings files like `default.py, development.py,...` exist. Inside ...
2018/02/28
1,491
6,128
<issue_start>username_0: Objective-C declares a class function, initialize(), that is run once for each class, before it is used. It is often used as an entry point for exchanging method implementations (swizzling), among other things. Its use was deprecated in Swift 3.1. This is what I used to do: ``` extension NSVi...
2018/02/28
1,343
5,544
<issue_start>username_0: I have an ExtentReports API implemented into my Java code in my Selenium - Web Automation project. What ExtentReports does is, After running the code it produces a report. Currently it saves the created file on my project folder. I would like to save the reports on a specific directory, and ...
2018/02/28
441
1,346
<issue_start>username_0: I have following JSON: ``` { "groupId1" : { "list" : [ { "field1": "somevalue", "count": 2, "field3": "somevalue" }, { "field1": "somevalue", "count": 3, "field3": "somevalue" } ] }, "groupId2" : { "l...
2018/02/28
878
3,477
<issue_start>username_0: I have a controller which have an action with a route, as shown below: ``` Route("{resourceType}/{id}") ``` my dll have some helper classes which is used by for example by another asp .net core application, now since that application also have similar routes so indirectly my controller start...
2018/02/28
664
1,940
<issue_start>username_0: Assuming I have the following list of tuples: ``` List> {"Name", "xx"},{"Age", "25"},{"PostalCode", "12345"},{"Name", "yy"},{"Age", "30"},{"PostalCode", "67890"} ``` I want to split this list into multiple lists. Splitting criteria is `Item1 == "Name"` Result should be following: List 1: ...
2018/02/28
1,009
2,866
<issue_start>username_0: I have a dictionary like this: ``` {'some_company_100': {'key1': 'value1', 'key2': 'value2', 'key3': 'value3', 'key4': 'value4', 'key5': 'value5', 'key6': {'key6_1': 'value6_1', 'key6_2': 'value6_2'}, 'key7': 'value7'}, 'some_company_101': {'key1': 'valuea', 'key2': 'valueb', ...
2018/02/28
404
1,674
<issue_start>username_0: Is it possible, somehow, to trace if a C# method has been run by adding some code in it? **I do not want to be in debug mode**, so something like `Trace.WriteLine` is not acceptable. I just want to run my project normally and tell if some methods have been called or not. I am new to C# and I ha...
2018/02/28
561
1,696
<issue_start>username_0: I have this CSV: ``` The;Quick;Brown;Fox ``` I know how to get the String: ``` findstr /v "*" brownfox.csv ``` But how can i safe this string in a variable without using a For loop. I want to process the string here to get the token count %i% ``` set var1=(the string from brownfox.csv) ...
2018/02/28
1,349
3,464
<issue_start>username_0: I have data ``` dat1 <- data.table(id=1:9, group=c(1,1,2,2,2,3,3,3,3), t=c(14,17,20,21,26,89,90,95,99), index=c(1,2,1,2,3,1,2,3,4) ) ``` and I would like to compute the difference on `t` to the previous value, accordi...
2018/02/28
853
2,911
<issue_start>username_0: In my program I am getting intermittently a `ParseException` while doing `SimpleDateFormat.parse`. I have written one apache storm bolt, in that I am parsing the input date `"2018-02-26 18:13:32 UTC"`. This exception is not thrown for every input date. Also, I have printed the input date in ...
2018/02/28
762
2,645
<issue_start>username_0: I need to fill a Custom Object with data obtained from differents fragments. One option is to do a parcelable object and pass it throught each fragment, but I think that is a better option to declare the object in the activity and access to it from each fragment without move data. What it is t...
2018/02/28
515
1,725
<issue_start>username_0: My PHP site not working on an apache server.It is working fine on localhost but after uploading on the server it showing me the blank pages.Here is my error log file ``` [28-Feb-2018 04:43:16 America/New_York] PHP Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'Table 'com...
2018/02/28
361
1,289
<issue_start>username_0: I have developed the code which allows me to send an email with predefined text, which I set to change only where the date is `Date -1` I need to add another functionality: If the current day is `vbMonday` insert "weekend" instead of `Date - 1` I was thinking about something along the lines ...
2018/02/28
595
2,491
<issue_start>username_0: I have some question on server response `max execution timeout`. If, I called server API to running something huge and not able to finish within time limit set in server `php.ini` `max_execution_time` config, will the process in server still continue to process? - if so, will it process endle...
2018/02/28
344
1,107
<issue_start>username_0: I am trying to fire off a click event in a reactjs component but it is not working. I have tried this unsuccessfully in a `div`, `ul`, `li` and even a button. I have a demo [here](https://codesandbox.io/s/k9m3wr85o3) *I have had a look at [this question](https://stackoverflow.com/questions/427...
2018/02/28
948
2,964
<issue_start>username_0: I have a program to verify if an IPv4 address entered as string is in valid dotted-quad notation. The problem I am facing is that I'm not able to return (exit) function once I detect error. As per cppreference documentation for\_each returns UnaryFunction. I tried using any\_of and all\_of but...
2018/02/28
489
1,554
<issue_start>username_0: In the Database table , if the column "**two**"'s value is "**world**", than i am trying to hide that row. ``` | one | two | | --- | --- | php $hide=''; if(!empty($orderrecords)) { foreach($orderrecords as $k=$v) { ?> |php echo $orderrecords[$k]["tracking\_id"]; ? php if ($row['t...
2018/02/28
598
1,581
<issue_start>username_0: I couldn't find a way to find my local IP address using ONLY `scapy` (and not the Python's stdlib). The only workaround I found is sending a dummy package and using it to retrieve the address from the source field, but I don't feel like it is a good solution.<issue_comment>username_1: Quick re...
2018/02/28
369
1,257
<issue_start>username_0: I am developing layout to show last 4 digits of credit card and card type image. If none of the cards are selected it will show some other text which is longer than 4 digit card number. Once the card is selected it shows properly in `TextView`, but when longer text is set, it's not showing prop...
2018/02/28
361
1,322
<issue_start>username_0: I want to create a window where is `Qt3DWindow` in the back and some `QPushButton`s above it. However only `Qt3DWindow` animation is shown and `QPushButton`s are not seen. I would also like to have `Qt3DWindow` functional and `QPushButton`s as well (So I can click on the buttons or 3D animation...
2018/02/28
719
2,411
<issue_start>username_0: I have table with columns like Databasename ,tablename,columnname,query. But in query column `SELECT COUNT(MachineName) AS Cnt FROM Keys WHERE MachineName<>NULL`. How to execute with this query column with in the table ( I need remaining 3 columns with executing of query column) can any one ...
2018/02/28
997
3,568
<issue_start>username_0: So I've been struggling to wrap my head around this recursive function and get the right results. ``` const _ = require('lodash'); let config = { "Main": { children: { "Dashboard": "main.dashboard", "Account": { children: { ...
2018/02/28
2,466
8,872
<issue_start>username_0: How can I expand and collapse a widget when the user taps on different widget (sibling or parent) with an animation? ``` new Column( children: [ new header.IngridientHeader( new Icon( Icons.fiber\_manual\_record, color: AppColors.primaryColor ), 'Voice Track 1' ), new Grid() ], ) ...
2018/02/28
760
3,041
<issue_start>username_0: I have Image cache mechanism in my app. I also need to show local notifications with images. I have a problem. When I try to set `UNNotificationAttachment` with an image, I get an image from my cache or, if an image doesn't exist, I download it and cache. Then I build a URL to Caches directory,...
2018/02/28
228
827
<issue_start>username_0: Amazon SES has 10 MB file limit MY Question is Is there Any Alternate way that i can send files more than 10 MB?<issue_comment>username_1: It's a hard limit. What you'll need to do is to include URLs to the assets you're currently including in the email instead of embedding them. 10MB s...
2018/02/28
895
3,657
<issue_start>username_0: I want to add automatic Intellisense (Auto Complete--Filtering Search Result) to a textbox, corresponding to the words that I'm typing in that textbox and the Intellisense is fetched from a database table. How can I achieve this? Can anyone help? Here is my jQuery code: ``` $(document).ready(...
2018/02/28
1,972
7,631
<issue_start>username_0: So I have two classes: SoccerPlayer and IceHockeyPlayer They both have their own interface with some methods: ISoccerPlayer and IIceHockeyPlayer SoccerPlayer: ``` public class SoccerPlayer implements ISoccerPlayer { public String[] teammembers; @Override public void kickFoot...
2018/02/28
781
2,715
<issue_start>username_0: I have quite a big project in Symfony 3.4 and I wish to update to Symfony 4. And I get a lot of deprecation warnings. Which is ok I need to fix those, but I cant check each route for my site... there is too many. Is there a way to get all the depreciation for Symfony 3.4 in my project?<iss...
2018/02/28
703
2,427
<issue_start>username_0: I'm trying to write a stupidly simple Hello World program in Express that outputs some basic data about the current HTTP request. For POST requests, I'd like to see the raw POST body. ``` const express = require('express'); const app = express(); function handleRequest(req, res) { consol...
2018/02/28
508
1,788
<issue_start>username_0: So, I've got a C++14 library that I'm porting to CUDA 9. I actually have (I think) a pretty good knowledge of CUDA, but I haven't done any direct work in it since CUDA 6. Typically, I use a lot of templates and small classes in my code. It's surprised me that one still cannot have a `static __...
2018/02/28
491
1,679
<issue_start>username_0: When a parameter is not supplied to my script, I want to include the parameter/variable name as a string in the `Write-Error` message: ``` $RequiredArgs = @($Arg1, $Arg2, $Arg3, $Arg4) foreach ($Arg in $RequiredArgs) { if (!($Arg)) { Write-Error "Argument: $Arg is required." ...
2018/02/28
1,040
4,178
<issue_start>username_0: **Scenario:** Load the datatables grid using server side processing. Set the tooltip on the title column. When the mouse hovers the tooltip is shown. **Issue:** I got the tooltip working. but found one issue that I couldn't solve. 1. Hover on one of the title, which shows the tooltip [![ent...
2018/02/28
402
1,522
<issue_start>username_0: I want to add total for rows and columns on keyup events. keyup events and every looping is working perfectly fine for addition of rows and columns. But keyup is not working after dynamically generated tr elements. **Please check this js fiddle** :- <http://jsfiddle.net/f6LSU/9/> My Test ca...
2018/02/28
460
1,760
<issue_start>username_0: I have 2 separate databases, and therefore 2 separate DbContext in ASP.Net Core/EFCore. I have an object that is in one database, which has a "foreign key" which points on another database. Let's say I have a database filled with events, and another geographic database with cities. I have a c...
2018/02/28
776
2,072
<issue_start>username_0: I am currently working on the linkedin API and i have this following trouble when i'm doing requests to [manage company page](https://developer.linkedin.com/docs/company-pages) : ``` { "errorCode": 0, "message": "Member does not have permission to get company.", "requestId": "J7G7HP7VON"...
2018/02/28
649
2,373
<issue_start>username_0: I am new in laravel. I have use below line for login page, ``` Route::get('login','IndexController@Login')->name('login'); ``` here `->name('login')` is necessary to use every route ? and what is a used of that ? any idea please share..<issue_comment>username_1: This isn't necessary for eve...
2018/02/28
2,773
10,021
<issue_start>username_0: I am new to Flutter. I have a `BottomNavigationBar` with 4 items. I want to change icon of the item when pressed. Please help. This is what I have done so far. ``` bottomNavigationBar : new BottomNavigationBar( currentIndex: index, onTap: (int index) { setState(() { ...
2018/02/28
980
3,213
<issue_start>username_0: So, I am building a program that should modify a specific number of bytes in a binary. You first input the binary, then the offset from which point you want the hex instructions to be replaced and then the bytes themselves. Example: I load example.exe I specify offset `0` (beginning of the fil...
2018/02/28
606
2,462
<issue_start>username_0: How to sync scroll two SingleChildScrollView widgets ? ``` new Positioned( child: new SingleChildScrollView( scrollDirection: Axis.horizontal, child: new Scale() ), ), new Positioned( child: new SingleChildScrollView( ...
2018/02/28
536
2,116
<issue_start>username_0: Does restarting my Nginx service in Ubuntu affect the mysql service? an example would be, if I stop the nginx service, would the traffic to website stop and the mysql database/service still work? I would appreciate any help<issue_comment>username_1: For input, you control them via a [ScrollCon...
2018/02/28
868
3,440
<issue_start>username_0: I used the exact same code below for both a RecyclerView in a Fragment and another RecyclerView in a `Dialog`. ``` myAdapter = MyAdapter(); var lm = LinearLayoutManager(this.context) myRecyclerView.layoutManager = lm; myRecyclerView.adapter = myAdapter; var line = DividerIt...
2018/02/28
626
2,490
<issue_start>username_0: I have written a web application which is using `AngularJS v1.6.4` and `angular-google-maps 2.4.1 2017-01-05`. I have tested with *Microsoft Edge*, *Google Chrome*, *Mozilla Firefox* and everything was fine. --- But, when trying to view my app in the *Tor browser*, it does not load correctly...
2018/02/28
1,152
4,347
<issue_start>username_0: A question about AsyncStorage. I'm working on a RN app and I need Async storage to keep track of the login state and token for the user. The behavior I see with AsyncStorage is really inconsistent. With the below code, I should see a console log of the state of the 'loggedIn' variable. Some r...
2018/02/28
1,027
3,333
<issue_start>username_0: In [this](https://kubernetes.io/docs/admin/authorization/rbac/) documentation of Kubernetes is says: ``` To enable RBAC, start the apiserver with --authorization-mode=RBAC ``` How do you upgrade an existing cluster and/or how to see if RBAC is enabled? I have created my cluster on Google k8...
2018/02/28
303
1,176
<issue_start>username_0: I want to "decorate" my Website with Bootstrap, but when I paste the two tags for Bootstrap on my HTML file, it says that the attribute integrity is not allowed here. What do I do wrong? These are the Tags I did copy : ``` ``` And this is how it looks in conclusion: ``` index Name Su...
2018/02/28
310
1,198
<issue_start>username_0: I am getting some data returned from a command line tool and would like to fill an associative array with the data. I can alter the format of the data returned, but how must it be to the associative array? ``` content="[key1]=val1 [key2]=val2" # How should this be formatted? declare -A hashTa...
2018/02/28
532
1,969
<issue_start>username_0: I use RestClient to get pages over internet. Also this script I made is proxy enabled by using `RestClient.proxy = "http://proxy.example.com/"`. But I dont always use proxy. So instead of manually setting proxy on and off inside the script I wanted the script to read system settings automatica...
2018/02/28
935
3,734
<issue_start>username_0: I want to somehow make a windows forms control unresponsible - like setting Control.Enabled to False, but without the visual effects of it (I will have some custom "control is busy" indicator, so it will not be unclear to the end-user why the control is unresponsive). The reason is: I'm writin...
2018/02/28
848
2,101
<issue_start>username_0: I have a pandas data frame and I want to set some percentage of a column to 0. Let's say the df has two columns. ``` A B 1 6 2 7 3 8 4 4 5 9 ``` I now want to set B for the first and last 20 % of the df to 0. ``` A B 1 0 2 7 3 8 4 4 5 0 `...
2018/02/28
452
1,425
<issue_start>username_0: Hi I would like to know how to write the following ternary operation as a regular conditional statement. If someone could let me know that would be greatly appreciated, here is the code: ``` h1.textContent = "Time : " + (minutes ? (minutes > 9 ? minutes : "0" + minutes) : "00") + ":" + (second...
2018/02/28
335
1,032
<issue_start>username_0: l would like to oversample an array of `n` element into an array of m elements such that `m > n`. For instance let's take n=3 ``` colors=['red','blue','green'] ``` set m =7 What l'm looking for ? ``` oversampled_colors=['green','blue','red','red','blue','green','blue'] ```<issue_comment...
2018/02/28
515
1,579
<issue_start>username_0: I have a mongoDB collection that is like this (below). As you can see it has a number of duplicate records, with maybe a few attributes that differ. Now in my collection there are plus 18000 results, I need to remove all of the duplicates that are in there. I doesn't matter which one I keep, I ...
2018/02/28
566
2,010
<issue_start>username_0: I have below scenario, want to use specific method as static so can i use $this for other methods or not. ``` class foobar { public $foo; public function __construct() { global $foo; $this->foo = $foo; } public static function foobarfunc() { return se...
2018/02/28
573
1,460
<issue_start>username_0: I'm looking for something like this. I need to compare item 0 from my list of list and if item of list b contains it, change item of b to item of a. ``` a = [['12','0.4'],['13','0.4'],['14','0.4']] b = ['122','133', '144'] for item in a: for item[0] in item: if item in b: ...
2018/02/28
771
2,621
<issue_start>username_0: I am getting this warning: > > Warning: Can only update a mounted or mounting component. This usually > means you called setState, replaceState, or forceUpdate on an > unmounted component. This is a no-op. > > > Please check the code for the QuantityCounter component. > > > This happe...
2018/02/28
874
3,410
<issue_start>username_0: I'm trying to add a table "user" to my Firebase real-time database, code wise everything looks fine but there are no registers showing! Here's my code sample: ``` private void CreateUser(){ final TextView firstName = findViewById(R.id.signUpOnSuccess_FirstName), lastName = findViewById(R....
2018/02/28
684
2,310
<issue_start>username_0: Based on this [link](http://github.com/biohzrdmx) This where I will go if i wanna change my date format ``` defaults: { formatDate: function(date) { var formatted = $.datePicker.utils.pad(date.getDate(), 2) + '/' + $.datePicker.utils.pad(date.getMonth() + 1, 2) + '/' + date.getFul...
2018/02/28
1,396
5,256
<issue_start>username_0: I'm trying to use Angular Material stepper, gone through the documentation but when i paste the HTML Material stepper tag inside my Angular app it tells me that it's not a known element. HTML: ``` Fill out your name Next Fill out your address Back Next Done You are now done. Back Reset ...
2018/02/28
359
1,371
<issue_start>username_0: I'm trying to programmatically generate combo box items. I'm very new to WPF and don't understand where I'm making a mistake. This is my `List`: ``` public class StatusList : List { public StatusList() { this.Add("aaa"); this.Add("bbb"); this.Add("ccc"); this.Add("ddd"); } } ``` And ...
2018/02/28
319
1,100
<issue_start>username_0: I get an error using the below code and I need to be able to compare a variable to four or more values. ``` ``` I need to be able to check on multiple values<issue_comment>username_1: That syntax is allowed in XSLT/XPath 2.0 and later so you would need to make sure you use an XSLT 2 or 3 pro...
2018/02/28
832
3,101
<issue_start>username_0: Now I'm testing dijkstra (org.neo4j.graphalgo.impl.shortestpath.\*). The code you can see below: ``` Dijkstra dijkstra = new Dijkstra<>(0.0, startNode, endNode, CommonEvaluators.doubleCostEvaluator("weight"), new DoubleAdder(), new DoubleComparator(), Direction.BOTH, RelationshipType...
2018/02/28
472
1,651
<issue_start>username_0: how do I VACUUM my `RoomDatabase` for my Application? I build my entire Application around Room and at a certain point one big table gets deleted reguarly and later filled again. I tried to create an additional DAO-Interface with the Query: ``` @Dao public interface GenericDao { @Query("...
2018/02/28
679
2,026
<issue_start>username_0: Git module <https://github.com/eugenioclrc/agar.io-clone> ``` > gulp run [14:50:54] Using gulpfile C:\....\gulpfile.js [14:50:54] Starting 'lint'... [14:50:54] Starting 'move-client'... [14:50:57] Finished 'move-client' after 2.84 s [14:50:57] Finished 'lint' after 2.88 s [14:50:57] Starting ...
2018/02/28
472
1,584
<issue_start>username_0: I have a title that the user can modify thanks to contenteditable. I want that when the user presses enter this validates the title instead of passing a line. ``` {{thread.title.substring(1)}} .panel-participants-title:hover > *[contenteditable="true"] { background: #989898; } .panel-part...
2018/02/28
486
1,877
<issue_start>username_0: I have a package designed by another developer who used to work for the company. The package takes data from the source and inserts it into the destination. The slowly changing dimension task has 4 columns, set as historic attributes. Meaning it will insert a new row when any of the value chang...
2018/02/28
983
3,338
<issue_start>username_0: I want to create promises chain and then dynamically add as many promises to it as it's needed. These additions could be in some cycle with dynamic number of steps so that I can't use chain like .then().then().then... Code bellow works improperly but you'll get the idea. Result should be a cons...
2018/02/28
893
3,700
<issue_start>username_0: I am using google app engine and google datastore. I am using the google library ``` com.google.cloud.datastore.Datastore ``` My sample code is: ``` Datastore datastore = DatastoreOptions.getDefaultInstance().getService(); Key taskKey = datastore.newKeyFactory().setKind(entityName).newKey(i...
2018/02/28
407
1,348
<issue_start>username_0: I've got 2 tables: **TravelRequest** ``` TravelReqID(PK) PlanningTypeCode(FK) Days Hours Mail ``` **PlanningType** ``` PlanningTypeCode(PK) PlanningType ``` I want to insert some records into `TravelRequest` but I need to show also `PlanningType.PlanningType`. I tried this query ``` IN...
2018/02/28
295
1,128
<issue_start>username_0: I have a user form which has a combobox drop down where user can select data and then click on the button, to search for an equivalent based on the entered/selected data. Is is possible that they can also hit the "Enter" key from the keyboard and that it will behave the same as when they clic...
2018/02/28
917
3,796
<issue_start>username_0: I have an option class which like the following ``` public class EmailOptions { public EmailOptions(IEmailConfiguration account) { this.Configuration = account; } public string DefaultFromAddress { get; set; } public string DefaultFromDisplayName { get; set; } publi...
2018/02/28
595
2,359
<issue_start>username_0: I have application in laravel.When I try to access a custom method using URL `localhost/blog/public/contact/myownview` it doesn't give any output. I want to redirect it to view called `video`. ``` namespace App\Http\Controllers; use Illuminate\Http\Request; class ContactController extends Co...
2018/02/28
559
2,272
<issue_start>username_0: I am creating a DLL with lots of classes (also subclass). One of them (kind of main class) has public static property like: ``` public static Guid Token { get; set; } ``` Then I send the compiled file to another person. The person connects the DLL as a reference to his / her project and th...
2018/02/28
794
3,153
<issue_start>username_0: Question: how can I directly throw a custom exception from `.exceptionally()`? ``` List> futures = tasks.stream() .map(task -> CompletableFuture.supplyAsync(() -> businessLogic(task)) .exceptionally(ex -> { if (ex instanceof BusinessException) return null; //TODO how to throw a custom ex...
2018/02/28
466
1,980
<issue_start>username_0: I'm writing a library that uses spring, for others to use. In my library, I have class `A` that has an interface `B` as a field (with `@Autowired`). I have a default implementation of that field, but the user can implement a custom implementation by himself. What I want to happen is the followi...
2018/02/28
325
1,317
<issue_start>username_0: ``` sqlplus sys/Oracle_1@pdborcl as sysdba; ``` i'm using this command to connect to Oracle 12c from Command Prompt. How can i connect to the db using cx\_Oracle. I'm new to Oracle DB.<issue_comment>username_1: I don't believe so. Spring's *@Autowired* is rather specific. Making it perform di...
2018/02/28
516
2,045
<issue_start>username_0: I have added `Firebase Dynamic Link` in my app, when I open in `iPhone` link through `Google Chrome`, it redirects me to the app, but when I'm trying to open app through `Safari` (I'm opening links through the Notes, not directly from the Safari), it doesn't open the app. I'm testing on real d...
2018/02/28
843
3,292
<issue_start>username_0: I am writing an application where I bring change history of items from the database and place them on the table using For Each loop. I would, however, like to show in table what information has changed in each edit. Is it possible to compare variables of each item to the variables of next loop ...
2018/02/28
804
2,513
<issue_start>username_0: I have an ionic application shows error when i run `ionic cordova build android` > > BUILD FAILED in 4s (node:5692) UnhandledPromiseRejectionWarning: > Unhandled promise rejection (rejection id: 1): Error: > /home/bharathi/ionic/hourli/platforms/android/gradlew: Command failed > with exit ...
2018/02/28
247
817
<issue_start>username_0: How would I go about doing this? ``` $(document).on('click', "'.span_" + editableObj.textContent + "'", function(e){ } ``` I am getting an error ``` Uncaught Error: Syntax error, unrecognized expression: '.span_mytext' ``` Tried many variations and can't get it to work..<issue_comment>us...
2018/02/28
1,484
4,049
<issue_start>username_0: All, Suppose I have two vectors U and V with 2 units and 1 unit length, respectively as shown in the sketch. The vector U is rotated by angle theta. There are, at least two possible cases whereby vector U can go "up" or "down" as shown in the sketch. My question is, having the above dataset ...
2018/02/28
334
1,345
<issue_start>username_0: For some reason my code doesn't give the highest `div` its own area and all of the other parts of the website are overlapping into the first div, what did I do wrong? [Website](https://codepen.io/aviv240/full/QQzpdv/) ```html Computer science student ,trying to learn Front-End develpoing an...
2018/02/28
294
927
<issue_start>username_0: Im trying to find a word in my excel sheet and write the address of that word in a cell (A2). My code looks like this ``` Sub SampleCelle() Worksheets("Data").Select Range("A2").Select Selection.Formular = "=CELL(""Address"";INDEX($B$2:$AD$2;MATCH($A$1;$B$2:$AD$2;0)))" End Sub ``` So Im...
2018/02/28
1,292
4,528
<issue_start>username_0: I have the following data in my table > > > ``` > ID code date amount health_plan > 111 A123 20170101 10 BH > 111 A123 20100101 -10 BH > 311 A124 20170712 20 CVA > 311 A124 20170712 -20 CVA > 311 A124 2017...
2018/02/28
438
1,678
<issue_start>username_0: I was reading a node.js cli module documentation and it has one line like this. I know that we can include external modules like this but dont know what is the use of '.' while requiring a module; `const foo = require('.');` Can anyone tell me what is use of it or why its used that way.<issue...
2018/02/28
623
2,360
<issue_start>username_0: I coming back to C# programming after some years of HTML/ASP. I came across these lines and cannot find what it does. It is a method in a class: ``` private string PeekNext() { if (pos < 0) // pos < 0 indicates that there are no more tokens return null; if (pos < tokens...
2018/02/28
207
833
<issue_start>username_0: I am building an app and retrieving a users step count from HealthKit There is no error, and I was curious to see if when you run code on xcode using the simulator the step count will always be 0 by default as locations are defaulted?<issue_comment>username_1: I think no.. Apple Healthkit use...
2018/02/28
471
1,557
<issue_start>username_0: Please find my gradle file below. [![Gradle file](https://i.stack.imgur.com/Ai593.png)](https://i.stack.imgur.com/Ai593.png) As you can see its showing inn red.and if i place cursor there I get the hint as 'All com.android.support libraries must use the exact same version specification.Found '...
2018/02/28
259
988
<issue_start>username_0: I am using azure logic app which consumes a web API via a connector and based on some condition, I want to send some data to a controller of my web application. any ideas how this can be done ?<issue_comment>username_1: You can use an HTTP action in your Logic App to send data to a specific en...
2018/02/28
556
1,727
<issue_start>username_0: Here is a simple example: ``` Scenario: Table example * table dogs | name | age | | 'Charlie' | 2 | | 'Jack' | 4 | | 'Rock' | 9 | * match dogs == [{name: 'Charlie', age: 2}, {name: 'Jack', age: 4}, {name: 'Rock', age: 9}] ``` Is it possible ...
2018/02/28
560
1,829
<issue_start>username_0: I'm using `React` and `Ant Design`. I have a popover with a button. When the user clicks the button, it shows the modal with an input field. **Problem** When I click the Show Modal Button auto focus is not working and also popover is not hiding I tried with HTML5 `autoFocus` ``` ``` But ...
2018/02/28
824
2,494
<issue_start>username_0: I have been trying for hours to figure out what is going on with Babel. It is not outputting anything close to what it should. Shown here: <https://babeljs.io/repl/#?babili=false&browsers=&build=&builtIns=false&code_lz=G4QwTgBAdiC2CmAhArgSwDYBN6QLwQDNkoBjAF1QHsoAKA1MAZzIDk55cAiAKUoAsonADQR0IZ...
2018/02/28
889
2,623
<issue_start>username_0: Can I write a Rust `for` loop equivalent to this C code: ```c for(int i = 2; i <= 128; i=i*i){ //do something } ``` I'm only seeing things like ``` for i in 0..128 { /* do something */ } ``` or ``` let v = vec![0, 1, 2, /* ... */ ]; for i in v.iter() { /* do something */ } ``` Shou...