date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/21
654
2,407
<issue_start>username_0: I'm trying to write my own setup.py to be able to import the module but I get errors ``` import mylib >>> ModuleNotFoundError: No module named 'mylib' ``` My problem is that I do not understand why this is happening. Currently I'm using windows and conda and have created an evnironment name...
2018/03/21
290
1,084
<issue_start>username_0: I have already found the "Request Preview" [page](https://pages.awscloud.com/NeptunePreview.html), apart from that is there any way to deploy and test Neptune locally?<issue_comment>username_1: AWS Neptune can be tested only from within the VPC. What you can probably do is 1. Create an ec2 i...
2018/03/21
1,295
4,464
<issue_start>username_0: My application developed in NativeScript. For FCM I use `nativescript-plugin-firebase`. I have received a push notification whenever I tried from the FCM console. But, I never received a push notification when I try from post man as below. ``` URL : POST : https://fcm.googleapis.com/fcm/send ...
2018/03/21
414
1,455
<issue_start>username_0: i have menu and highlighting works there fine, but when I in some subpage main menu item is not highlighted. My code: ``` * [bla bla](/) * [bla bla](Shipments) ``` My script: ``` $(function() { var url = window.location.href; $(".sidebar-nav-icons a").each(function() { if (url == (t...
2018/03/21
402
1,386
<issue_start>username_0: I created a function that will add an item to an empty array up to a const max value. However, I can't figure out how to return true each time an item is successfully added to the array (and false each time an item couldn't be added). Here is what I've got: ``` let adoptedDogs = []; const maxD...
2018/03/21
643
2,531
<issue_start>username_0: **I am fetching data from table in foreach loop. Now i am trying to use variable outside for each loop but its not working.** ``` public function get_all_folders() { $con = $this->__construct(); $sql="select * from documents"; ...
2018/03/21
523
1,907
<issue_start>username_0: If I run this query: ``` data = table.query(KeyConditionExpression = Key('id').eq('fasfas'), FilterExpression=Attr(u'Absolute humidity[g/kg].3').eq(1)) ``` I get the error: ``` ClientError: An error occurred (ValidationException) when calling the Query operation: Invalid ...
2018/03/21
801
3,465
<issue_start>username_0: I've been trying to share information between fragments using viewmodel's and livedata's. But when I change from first fragment to another it seems that my viewmodel is reinitialized, making me lose all my previously stored data. I get both times my viewmodel the same way in my fragments : ...
2018/03/21
1,176
3,425
<issue_start>username_0: I am using react-twitter-widgets to embed a twitter timeline on my application. Currently, everything renders correctly, however, the timelines height stretches down the entire page. How do I get the widget height so that it only takes up the available view height? [![enter image description he...
2018/03/21
238
901
<issue_start>username_0: For upload my application on google playstore. I have generated signedapk so my question is after made few changes in code of the app Shall i generate signed apk again ?<issue_comment>username_1: Please specify the JavaScript for rendering the widget. If it is same as below, you can adjust the ...
2018/03/21
743
2,108
<issue_start>username_0: I have tried to change the column order in desktop view and mobile view. In mobile view, `Last Name` should be in 2nd place where in desktop, it should be in last. ```html First Name Last Name Address Company ```<issue_comment>username_1: > > Using **Flex** and adding **Media-Que...
2018/03/21
503
1,838
<issue_start>username_0: This question is somewhat hard to summarize. Following code block shows what I want to do. I have a base class like this: ``` `class Base { def methA:String="ook" def methB:Int=1 } ``` Also I have a derived class, where I want each subclass method to call the super class method twice,...
2018/03/21
1,119
3,906
<issue_start>username_0: My function first calculates all possible anagrams of the given word. Then, for each of these anagrams, it checks if they are valid words, but checking if they equal to any of the words in the wordlist.txt file. The file is a giant file with a bunch of words line by line. So I decided to just r...
2018/03/21
530
1,731
<issue_start>username_0: My requirement is something like this. I have two radio buttons namely **Live Paper** and **Normal Paper** If user select Live Paper another two html `input elements`(`datatime-local`,`time`) must be shown. If the user selected the Normal Paper these two additional input elements should be ...
2018/03/21
777
3,244
<issue_start>username_0: i using a specific date library(<https://github.com/mohamad-amin/PersianMaterialDateTimePicker>) now i want using it in a button in Recycler View. now my problem is I have to define two options in library codes : 1 - I should refer to the activity. 2 - i need to use getSupport FragmentMana...
2018/03/21
455
1,435
<issue_start>username_0: Here is the code of Flutter Map ``` void showFlutterMap(){ return new FlutterMap( options: new MapOptions( center: new LatLng(51.5, -0.09), zoom: 13.0, ), layers: [ new TileLayerOptions( urlTemplate: "https://api.tiles.mapbox.com/v4/" "{id}/{...
2018/03/21
590
1,834
<issue_start>username_0: I got this Ajax code on Js/Jq block (/buscador/menuLateral/menu-libros.php): ``` $.ajax({ url: '= get_stylesheet_directory_uri(); ?' + '/buscador/buscador-functions.php', type: 'POST', data: { sendCheckedVal: 'yes', tipo: 'editorial', valor: valor_recogido, archivo: t...
2018/03/21
343
1,205
<issue_start>username_0: As you know Apple uses Radeon on iMac's. I have been trying to find out a solution to speed up the training process and no luck so far! So can you pros direct me to the right route on this? I mean can i already use GPU on my iMac without adding any equipments or shall i go and buy some externa...
2018/03/21
313
1,063
<issue_start>username_0: I would like to know if there is a difference in performance between : ``` while(true) { ..... } ``` And : ``` bool x; x = true; while(x) { ..... } ``` I need the best performance and a small difference between the two is important to my application. Info from comment by OP: The `wh...
2018/03/21
289
919
<issue_start>username_0: I have below code in bash: ``` #/!bin/bash USERS=tom1,tom2,tom3 ``` and I want to drop all users from my variable "USERS" via sqlplus ``` #/!bin/bash USERS=tom1,tom2,tom3 sqlplus -s system/*** < ``` pls help<issue_comment>username_1: First of all... If you want to make an infinite loop...
2018/03/21
421
1,287
<issue_start>username_0: Based on the answer by Matt for the question asked [here](https://stackoverflow.com/questions/4837673/how-to-execute-mongo-commands-through-shell-scripts): I tried the below script ``` use sample db.testCollection.insert({"result":1}) ``` However when I run as suggested, get an error as be...
2018/03/21
1,246
4,815
<issue_start>username_0: Goal: Use Google Sheet API by using the syntax code "spreadsheets.values.update" in order to update the current cell. Problem: I have used the code that is provded by Google Sheet's tutorial (<https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update>) and it...
2018/03/21
775
3,003
<issue_start>username_0: i try to call modal instance from main page controller but i get this error TypeError: Cannot read property 'open' of undefined are anyone help me to solve the problem my main page controller is ``` app.controller('unitMasterCntlr', ['$scope', 'toaster', '$state', '$http', 'emodal', '$timeout...
2018/03/21
1,143
3,858
<issue_start>username_0: I need events calendar component to my angular 5 application, Look like 'Google Calendar' with an option to Hebrew dates and Jewish events. Does anyone know about such a Calendar?<issue_comment>username_1: I am in a similar search... The only suitable component that I have found so far is [D...
2018/03/21
931
3,630
<issue_start>username_0: I am trying to write EXIF data to the image but **CGImageDestinationFinalize** crashes: ``` var image = info[UIImagePickerControllerOriginalImage] as! UIImage let jpeg = UIImageJPEGRepresentation(image, 1.0) var source: CGImageSource? = nil source = CGImageSourceCreateWithData((jpe...
2018/03/21
1,464
6,276
<issue_start>username_0: I successfully added my image to my server with the help of this <https://androidjson.com/android-upload-image-server-using-php-mysql/>. But it only helps in uploading the image to the server. I have to display the image I have uploaded to the image view. I tried Picasso but it's not working. ...
2018/03/21
761
2,640
<issue_start>username_0: I have a Selenium + Python + Chromedriver script which should log in to a website and click on a download button which will download a CSV file. Inspect details of download button is: ``` CSV ``` and XPath is: ``` //*[@id="csv-button"] ``` but it says XPath element not found when I ru...
2018/03/21
933
3,334
<issue_start>username_0: I'm trying to send multiple input values via AJAX to my PHP script. It's working fine when I use `getElementById`. However I have the option to add a child. It iterates the input fields, then I get values only from the first child. I tried to use `getElementsByClassName` but it gives values as ...
2018/03/21
658
2,227
<issue_start>username_0: While bootstrap a node on hosted chef server i am getting following error ``` $ knife bootstrap xxx.xxx.xxx.xxx --ssh-user shivam --ssh-password '******' --sudo --use-sudo-password --node-name chefNode1 --run-list 'recipe[learn_chef_httpd1]' Creating new client for chefNode2 Creating new node...
2018/03/21
660
2,417
<issue_start>username_0: I have a set of storyboards under the `UINavigation Controller`. One of these screens contains a table view and I need to send the data of the clicked row to the next screen. I am aware that doing so would require me to use segue. But then how do I get the `Navigation Bar` and the `Navigation B...
2018/03/21
498
1,792
<issue_start>username_0: I've noticed that Visual studio looks for a referenced dll anywhere (other projects, GAC, ...) if that dll isn´t in referenced path. It happens mostly with nugget packages. Is there anyway to prevent this behavior? I think this behavior is dangerous, because it gives you false security that yo...
2018/03/21
1,132
3,829
<issue_start>username_0: In flutter, is it possible to place a part of a card on another container? In CSS, we would set margin-top to a negative value or use translate property. In flutter as we cannot set negative values to margin-top, is there an alternative to that? [![enter image description here](https://i.stack...
2018/03/21
1,465
5,820
<issue_start>username_0: In my **`WalletTableViewController`** I have two functions, used to calculate the `Wallet Value`: **A.** `updateCellValue()` Is called by `reloadData()` with the `tableView` and uses `indexPath.row` to fetch a `value` (price) and an `amount` (number of coins) corresponding to the cell and make...
2018/03/21
560
1,771
<issue_start>username_0: I am using the Konvajs library. Am trying to put a border box around the main `Stage` element, but can't seem to make it work. The CSS only apply to the and the `Konva.Stage` element does not seem to have specific properties for this. Is the only way to add line shapes on the 4 borders of the...
2018/03/21
717
2,189
<issue_start>username_0: <https://jsfiddle.net/z24kaL2d/4/> ``` Login Form html, body { height: 100%; } html { display: table; margin: auto; } body { display: table-cell; vertical-align: middle; } .margin { margin: 0 !important; } .row { margin-left: auto; margin-right: auto; margin-bottom: 20px; min-widt...
2018/03/21
621
1,987
<issue_start>username_0: I got a problem with my bootstrap nav bar. It wont color the way I want it too and I tried adding code even with the `!import` but I can't get it to work ``` [<NAME>](#) * [Product (current)](#main) * [Werk](#features) * [Prijs](#pricing) * [Team](#team) * [Blog](#blog) * [Contact](#contac...
2018/03/21
331
990
<issue_start>username_0: I can do ``` import random a = [1, 2, 3] random.shuffle(a) ``` or ``` from random import shuffle a = [1, 2, 3] shuffle(a) ``` But I can't ``` import random.shuffle a = [1, 2, 3] random.shuffle(a) ``` which will make the interpreter complain > > 'random' is not a package. > > > Wh...
2018/03/21
1,029
3,575
<issue_start>username_0: I'm new in Angular. I've a class called User: ```js export class User { private id: number; private name: string; private surname: string; get Id(): number { return this.id; } set Id(newId: number) { this.id = newId; } get Name(): string { return this.name; } ...
2018/03/21
794
2,452
<issue_start>username_0: I'm using `MySQL 5.5`. with two tables in it: ``` DROP TABLE IF EXISTS `events_dictionary`; CREATE TABLE `events_dictionary` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `events_dictionary` VAL...
2018/03/21
517
1,726
<issue_start>username_0: I am working on `in place edit` functionality in which, in which a user can enter values as comma separated but I have to put style on those each comma separated values which is not possible as all values are in one textbox, is it possible to put each entered values in a span tag with a class n...
2018/03/21
335
1,097
<issue_start>username_0: Is EventBus suitable for the tasks I am trying to complete? I need a callback whenever any application prints a document.<issue_comment>username_1: You need to join to the events\_dictionary multiple times ``` SELECT a.name, b.name, c.name FROM events_log JOIN events_dictionary a ON events_l...
2018/03/21
498
1,621
<issue_start>username_0: This is my code i and it's working perfectly fine. I just wanted to print the table by using Html tables and also want to apply bootstrap on it to add borders,the multiplication table in form of an HTML TABLE with every line as a table row ‘tr’. Table should be styled by bootstrap table-bordere...
2018/03/21
506
1,673
<issue_start>username_0: See this huge identations is painful (for me). Is there a way to set tab size to 4 spaces. This picture is taken from local Gitlab CE server with minimal customization. I think tabsize 8 spaces is default. [![enter image description here](https://i.stack.imgur.com/gnv3d.png)](https://i.stack...
2018/03/21
957
3,737
<issue_start>username_0: I need to restrict the backspace navigation within my whole app.Are there any solutions i.e something that I can perform under a single tile for my whole app ?<issue_comment>username_1: The solution LokiSinclair proposed for AngularJS should be adjustable to work with Angular 5 as well. The bas...
2018/03/21
203
722
<issue_start>username_0: I have a some data stored in $data[], there are some items in it. How do I remove duplicate values in a foreach? ``` Array ( [0] => ABC ) Array ( [0] => XZY ) Array ( [0] => ABC ) ``` i have use some function array unique and convert it to json ... and not work<issue_comment>user...
2018/03/21
476
1,677
<issue_start>username_0: When using 7zip, clicking "edit" on a file inside of an archive, per default opens up notepad. How to use notepad++ instead? 7zip has the option to configure an external exitor. Simply using the notepad++ exe does not work. Edit fails in notepad++ with an error message similar to "file cannot ...
2018/03/21
709
2,162
<issue_start>username_0: I am new at SQL I a need help in creating one. I have 2 tables: **table 1:** [![table 1](https://i.stack.imgur.com/vMQFn.jpg)](https://i.stack.imgur.com/vMQFn.jpg) **table2:** [![table2](https://i.stack.imgur.com/HpdqB.jpg)](https://i.stack.imgur.com/HpdqB.jpg) And now I want first name...
2018/03/21
565
1,735
<issue_start>username_0: VC = ViewController VM = ViewModel P = Protocol I have ViewModel protocols & classes in the format ``` protocol BaseVMP { } protocol VM1P: BaseVMP { } protocol VM2P: BaseVMP { } class BaseVM: BaseVMP { } class VM1: BaseVM, VM1P { } class VM2: BaseVM, VM2P { } ViewController classes class ...
2018/03/21
171
579
<issue_start>username_0: How to increase permgen space in apache 1.9.2 I looked for a solution and couldn't find. I'm calling "ANT" command from the build directory. I tried changing the antenv.cmd as well.<issue_comment>username_1: Use the environmentvariable `ANT_OPTS` , as described in [ant manual](https://ant.apach...
2018/03/21
1,729
7,226
<issue_start>username_0: I am trying to make a simple service which starts with device boot. Thing is that device return message "Unfortunately, [app\_name] has stopped." I am struggling with this problem from few hours, with looking for mistake, but it is too simple.. Hope, you guys can help me with this problem. Th...
2018/03/21
998
3,130
<issue_start>username_0: When implementing a function which accepts a parameter pack of pointers to `Ts...`, why can't I `const`-qualify the pointers, as is possible with regular parameters? I get a mismatching signature error on latest GCC and Clang, and I don't see why, since the pointers being `const` is just an im...
2018/03/21
1,495
5,309
<issue_start>username_0: I have the below CPP source code for creating a Singleton Object of a class using unique\_ptr: ``` #include #include class A { public: std::unique\_ptrgetInstance(int log); ~A(); private: static bool instanceFlag; static std::unique\_ptrsingle; A(int log); int mLog; }; bool A::inst...
2018/03/21
1,440
5,605
<issue_start>username_0: In my application I don't want that the application always crash if there was thrown a unhandled exception. I did some research and found a few EventHandlers. On this [Page](https://dzone.com/articles/order-chaos-handling-unhandled) is writtin: > > In a typical WPF application you should us...
2018/03/21
628
1,762
<issue_start>username_0: I want to create a multidimensionnale array using a for loop. The result i need is : ``` [ [1, 2, 3], [4,5,6], [7,8,9] ] ``` So how can i loop from 1 to 10 and each 3 numbers i create a new array ? I don't find a solution.. Thanks a lot for your help<issue_comment>username_1: ``` var c =...
2018/03/21
518
1,740
<issue_start>username_0: I have problem in my controller with optional params in requestmapping, look on my controller below: ``` @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity> getBooks() { return ResponseEntity.ok().body(booksService.getBooks()); } @GetMapping( produces = MediaTyp...
2018/03/21
2,047
6,345
<issue_start>username_0: I have to do a procedure that add plus 1 to the previous value every time its is called in PL/SQL language. But I don't know how to do that. I mean, if the procedure is call "plus1": First execution: ``` exec plus1 ``` will return value 1. Second execution: ``` exec plus1 ``` will retu...
2018/03/21
343
1,483
<issue_start>username_0: When in (unit) test stage I'm running the following commands: ``` echo "Installing Node Modules" npm install echo "Run Unit Tests" npm run test-mocha ``` My problem is that I cannot access the VCAP\_SERVICES in the test stage (job is set to unit test). Is there a way to access / pass them?...
2018/03/21
1,153
3,873
<issue_start>username_0: I am really confused about the keyword "this" and without "this" on classes, because i think it is the same : ``` public class thisthing { public int a; public arrays(){ a=1; } public void A(){ this.a=10; } public void printa(){ System.out.print...
2018/03/21
782
3,327
<issue_start>username_0: As it was mentioned here <https://restfulapi.net/http-methods/> (and in other places as well): > > GET APIs should be idempotent, which means that making multiple > identical requests must produce same result everytime until another > API (POST or PUT) has changed the state of resource on s...
2018/03/21
667
2,128
<issue_start>username_0: I get three dates: *From date*, *To date* and *current date*. I want to find whether current date is in between From and To dates. If current date is in between these two dates then I want to create two new From and To dates. **Example:** * From Date = 15 march * To Date = 25 march * current...
2018/03/21
483
1,908
<issue_start>username_0: I'm working on a web app with React. I am using React Router with it. I would like to add the ability to access to some protected pages with authentication. I have a back-end server running with Express. I have looked for information to implement that but it is still confusing to me. I have lo...
2018/03/21
451
1,815
<issue_start>username_0: I'm trying to save object in background by using Parse.com but I can't override ``` override fun done(e: ParseException?) { //code } ``` I'm getting error: `Modifier 'override' is not applicable to 'local function` In java I would use: ``` myObject.saveInBackground...
2018/03/21
665
2,456
<issue_start>username_0: I am trying to form a string ( of length 10,000 ) with 1's and 0's based on a certain condition 'valid'. Although I am able to do this, I am concerned about the performance and would need some help to decide on which of the below two methods would be better performant. Method 1 (Using Stringb...
2018/03/21
1,512
6,188
<issue_start>username_0: I am trying to redirect request if authorization is failed for it. I have following code: ``` class ValidateRequest extends Request{ public function authorize(){ // some logic here... return false; } public function rules(){ /* ... */} public function failedAu...
2018/03/21
1,655
6,485
<issue_start>username_0: I would like to do a group\_by or aggregate. I have something like: ``` > head(affiliation_clean) Affiliation_ID Affiliation_Name City Country 1 000001 New Mexico State University Las Cruces Las Cruces United States 2 000001 New Mexico ...
2018/03/21
1,923
8,093
<issue_start>username_0: I have one activity in which there is a webview. when the webview goes to a few pages and I click the back button on the device runs fine, but if I click the back button in the actionbar then return it wrong. can I make function back button in action bar like back button in the device? this is...
2018/03/21
832
2,219
<issue_start>username_0: I have a script that calculates the percentage of an input. ``` $total_debt = "16,000"; $debt_written_off_percentage = 70; $debt_written_off = ($debt_written_off_percentage / 100) * $total_debt; $reduced_debt_percentage = 30; $reduced_debt = ($reduced_debt_percentage / 100) * $total_debt; ec...
2018/03/21
821
2,640
<issue_start>username_0: I have an app in iOS and am using firebase for my user login/validation etc. I want to be able to login, and if a user closes the app and then re-opens it, they are not forced to re-log in every time. Currently I have this code in my AppDelegate: ``` func setRootViewController(){ if Auth.au...
2018/03/21
770
2,262
<issue_start>username_0: I'm very new to bootstrap so this is probably an easy question for most. I have a navbar, want two nav items and an input field to be on the left side of the navbar. With the two remaining nav items on the right. I have tried messing with the classes to make this happen and using the "float-lef...
2018/03/21
1,639
5,702
<issue_start>username_0: My intention is to build a simple process with which I can split the word into syllables. The approach is to split the word whenever the vowel occurs. However, the trouble is when a consonant is not followed by a vowel, in such a case the split occurs at that consonant. My test cases are as fo...
2018/03/21
1,252
4,606
<issue_start>username_0: I have the following *PDF template* which should be consistent for all the *pages* that gets added in the PDF I am creating , [![enter image description here](https://i.stack.imgur.com/vDSNj.png)](https://i.stack.imgur.com/vDSNj.png) The issue is that, am getting this template only for *Page...
2018/03/21
920
3,549
<issue_start>username_0: I would like to start the program from this repository: <https://github.com/SaifurRahmanMohsin/Personal-Diary> but when I dowload or clone it there is no Install file or no command in the readme file to compile it. How do I use it?<issue_comment>username_1: As explained in the comments, you n...
2018/03/21
1,675
7,018
<issue_start>username_0: I have an applicaton that implements a listener for smartcards reader. When I run the application I send it to tray. When the aplication detects a card I want it to restore the jFrame back to normal so the user can select the options available on the screen. Problem is when I try to restore...
2018/03/21
989
3,950
<issue_start>username_0: How can I make a selenium Project to one exe without installation? I want to embed chromeDriver and geckodriver into my exe. [![enter image description here](https://i.stack.imgur.com/B8KfL.jpg)](https://i.stack.imgur.com/B8KfL.jpg) Is this possible?<issue_comment>username_1: Technically, you...
2018/03/21
285
1,175
<issue_start>username_0: I'm working on Hyper Ledger Composer and integrating the REST API in a nodejs web app "using js client side to call the API " and I'm wondering how can I keep some interface private and prevent from show and post to it . Should I simply call the api server side before or is there an elegant way...
2018/03/21
351
1,313
<issue_start>username_0: I am developing a full text search backend with support for Unicode. (Database PostgreSQL 9.5, PHP7, Ubuntu 17, Apache2). The database is correctly indexing (using tsearch) the relevant text data. So far so good. Now I need to search the data using user-supplied search words. My first idea ...
2018/03/21
558
2,193
<issue_start>username_0: Problem : In collectionview cell which has player if I play two Video simultaneously and seek first Video to end then `AVPlayerItemDidPlayToEndTime` fired for two times and both videos restarted In collection view cell I have ``` override func awakeFromNib() { NotificationCenter.de...
2018/03/21
1,084
4,573
<issue_start>username_0: This is my first question and I've been trying to find a solution to this for hours but can't get it to work. I'm building an android app that takes an input from the user (number of hours) to fast (not eat). The input is then taken to the service where it does a countdown in the background. Al...
2018/03/21
329
1,576
<issue_start>username_0: Is it possible to restrict the purchase order created automatically like when any dropship or special offer item selected in sales order?<issue_comment>username_1: The behaviour of dropship and special order items is dependent on a checkbox. If you clear the checkbox when the order is approved ...
2018/03/21
731
2,613
<issue_start>username_0: Looking for a way that could help me drag a formula over a range with an autofill sentence, depending on a previous selected range through an application.selection. I am stuck in the autofill statement as you can see below. Code: ``` xTitleId = "KutoolsforExcel" Set range2 = Application....
2018/03/21
905
2,603
<issue_start>username_0: I have been trying to work out getting a similar table to a picture that I have been studied from. Which looks like: ![](https://i.stack.imgur.com/Z9OLl.png) However I have been getting something similar: This is what I have done: ![](https://i.stack.imgur.com/vKD6G.png) However im getting...
2018/03/21
189
643
<issue_start>username_0: post has a type observable not array , I need a help [![enter image description here](https://i.stack.imgur.com/jDe23.png)](https://i.stack.imgur.com/jDe23.png)<issue_comment>username_1: Use the async pipe ``` ``` to get the values for the current emit of your Observable. Upvotes: 3 [select...
2018/03/21
270
1,006
<issue_start>username_0: There is an issue with Bootstrap 4 and Safari brower on Mac. When using cols inside a row it breaks it, and doesn't work like on firefox or chrome. I'm using a simple code like this: ``` ### TEXT TEXT TEXT TEXT ``` I'm trying different 'fix codes' from another questions but they doesn'...
2018/03/21
1,066
4,008
<issue_start>username_0: I have two tasks. I run both of them with Task.WhenAll. What happens if one of them throws an exception? Would the other one complete?<issue_comment>username_1: Just run this code to test it: ``` private static async Task TestTaskWhenAll() { try { await Task.WhenAll( ...
2018/03/21
1,049
2,821
<issue_start>username_0: I need to perform the following operation on a dataframe in R 3.4.1 on Windows 1. Split the dataframe by a categorical variable -> get a list of dataframe splitted by that categorical variable (getting the list is not necessary, that's just how I do it). 2. Extract a variable from the splitted...
2018/03/21
244
817
<issue_start>username_0: I am writing an angular 4 web application and I want to integrate the google maps in it? What is the best? Which library should I use?<issue_comment>username_1: You can use the **[`Angular Google Maps (AGM)`](https://angular-maps.com/)** library which is quite popular. ``` import { AgmCoreModu...
2018/03/21
761
2,318
<issue_start>username_0: I have read many post on this topic but I am not yet satisfied. I have a table called `ticket` with the following columns ``` TicketID | AirlineID | PassengerID | TicketPrice | TicketVolume | DestinationCountry | ExitCountry | TicketDate` ``` I have multiple queries like ``` SELECT AVG(Tic...
2018/03/21
951
2,746
<issue_start>username_0: For algorithms like yolo or R-CNN, they use the concept of anchor boxes for predicting objects. <https://pjreddie.com/darknet/yolo/> The anchor boxes are trained on specific dataset, one for COCO dataset is: ``` anchors = 0.57273, 0.677385, 1.87446, 2.06253, 3.33843, 5.47434, 7.88282, 3.5277...
2018/03/21
1,688
4,755
<issue_start>username_0: Apologies if this question has already been asked before - I was struggling to think of how to phrase my searches (hence the awkward title)! What I have is a data frame of single-character values, like so: ``` ------------------------- | Parent | Daughter | ------------------------- | ...
2018/03/21
1,318
3,683
<issue_start>username_0: I'm building a file upload form where users can submit XML configuration files. My goal is to get the full contents and insert them into Wordpress as a new post (custom post type). It's working for the most part, except I am having difficulty pulling the XML tags with the content when using `fi...
2018/03/21
1,560
3,718
<issue_start>username_0: I have a hive table with the following structure: ``` id1, id2, year, value 1, 1, 2000, 20 1, 1, 2002, 23 1, 1, 2003, 24 1, 2, 1999, 34 1, 2, 2000, 35 1, 2, 2001, 37 2, 3, 2005, 50 2, 3, 2006, 56 2, 3, 2008, 60 ``` I have 2 ids which identify the 'user', and for each user and year I have a ...
2018/03/21
764
2,595
<issue_start>username_0: I don't know if the problem is related to jenkins, java or apache. But since i did a server reboot my jenkins.example.com returns a 503 service unavailable. --- What I tried ------------ Restart jenkins, restart apache, reinstall jenkins. While restarting jenkins I was able to see the defa...
2018/03/21
241
858
<issue_start>username_0: XNamespace aw = "<http://www.adventure-works.com>"; How this is possible ? Normally to create an instance of a particular class we need to use the New keyword or a specific static method returning the created instance. There is a specific implementation allowing this to be possible ? Thank's....
2018/03/21
620
2,336
<issue_start>username_0: In my `datagrid`, one of columns is `DataGridComboBoxColumn`, where I'm trying to display different drop down menu in every row. Easy task when creating combo box in XAML instead of doing it programatically. My problem is that I have no idea how to bind it properly. This is what I tried: ``` p...
2018/03/21
678
1,975
<issue_start>username_0: I have a list of list, as such ``` list = [[title, description, ~N[2018-01-01 23:00:07], comment, user], [title, description, ~N[2018-03-02 12:10:18], comment, user]] ``` Now I need to convert every NaiveDateTime to Erlang date (or Unix timestamp). I believe I can do something like ...
2018/03/21
716
2,454
<issue_start>username_0: Updated Android studio. Downloaded Gradle. Changed Gradle folder in PC's environmental settings. In computer, `gradle -version` returns `Gradle 4.4.1`. [![Gradle Settings in Android Studio and Environment](https://i.stack.imgur.com/ltFZB.png)](https://i.stack.imgur.com/ltFZB.png) In Android ...
2018/03/21
1,300
4,517
<issue_start>username_0: How can I redirect to another page when someone access the detail page but without a record or if record is not available? I have detail records like ``` domain.com/abc/ABC1234 ``` When somone enters ``` domain.com/abc/ ``` ... I get: ``` Uncaught TYPO3 Exception #1298012500: Required ...
2018/03/21
1,378
4,455
<issue_start>username_0: I'm struggling with how is it possible to get the data-value of these multiple classes? ```js $(function() { getUserName(); }); function getUserName() { var o = $('div.YoutubePlaylist').length; for (var i = 0; i < o; i++) { console.log($("div.YoutubePlaylist").get(i)); co...
2018/03/21
1,037
2,336
<issue_start>username_0: I have a list of tuples (representing an http request headers), before saving it to the database, I inspected it. For example, an original value: `[{"Content-Type", "application/json"}, {"x-request-id", "fatlud3104arjj91jtig2qrj3u7320la"}]` is saved as: `"[{\"Content-Type\", \"appli...
2018/03/21
419
1,389
<issue_start>username_0: I have a variable that has a hardcoded value, > > customers.name = 'Schmidt' > > > ``` declare @value as nvarchar(max) set @value = 'customers.name = ''Schmidt''' ``` that I would like to change @value in this way > > customers.last\_name = 'Schmidt' > > > how this can be done usi...